File tree Expand file tree Collapse file tree 8 files changed +43
-7
lines changed Expand file tree Collapse file tree 8 files changed +43
-7
lines changed Original file line number Diff line number Diff line change
1
+ <script lang =" ts" >
2
+ import { Icon } from " $lib/index.js" ;
3
+
4
+ export let id = " " ;
5
+ </script >
6
+
7
+ <div class =" avatar" >
8
+ {#if id === " " }
9
+ <Icon icon =" account_circle" />
10
+ {:else }
11
+ <Icon icon =" mood_bad" />
12
+ {/if }
13
+ </div >
14
+
15
+ <style >
16
+ .avatar {
17
+ margin : 0rem var (--token-space-2 );
18
+ }
19
+ </style >
Original file line number Diff line number Diff line change 9
9
export let invalidMessage: string = " Invalid" ;
10
10
export let required: boolean = false ;
11
11
export let onEnter: (event : KeyboardEvent ) => void = () => {};
12
+ export let width: " 100%" ;
12
13
</script >
13
14
14
- <div class =" input-root" >
15
+ <div class ="input-root" style = "width: { width } ;" >
15
16
<label for ={id }>
16
17
{label }
17
18
{#if required }
39
40
<span class =" material-symbols-outlined" aria-hidden =" true" >error</span >
40
41
{invalidMessage }
41
42
</div >
43
+ {:else }
44
+ <div class =" error-placeholder" ></div >
42
45
{/if }
43
46
</div >
44
47
76
79
77
80
.error-message {
78
81
display : flex ;
79
- flex-direction : row ;
80
82
align-items : center ;
81
83
color : var (--token-color-text-danger );
82
84
gap : var (--token-space-1 );
85
+ min-height : 1.4rem ;
86
+ width : 100% ;
87
+ white-space : normal ;
88
+ overflow-wrap : break-word ;
83
89
vertical-align : middle ;
84
90
}
85
91
Original file line number Diff line number Diff line change 1
1
export { default as Modal } from "$lib/components/Overlays/Modal.svelte" ;
2
- export { default as ToolTip } from "$lib/components/Overlays/ToolTip.svelte" ;
2
+
Original file line number Diff line number Diff line change
1
+ <script lang =" ts" >
2
+ export let icon: string ;
3
+ export let size: string = " 1rem" ;
4
+ export let color: string = " var(--token-color-text)" ;
5
+ </script >
6
+
7
+ <span style ="color: {color }; font-size: {size };" class ="icon material-symbols-outlined" translate ="no" aria-hidden ="true" >{icon }</span >
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ export { default as Icon } from "$lib/components/Primitives/Icon.svelte" ;
2
+ export { default as ToolTip } from "$lib/components/Primitives/ToolTip.svelte" ;
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ export * from "$lib/components/Layout/index.js";
4
4
export * from "$lib/components/Loading/index.js" ;
5
5
export * from "$lib/components/Messaging/index.js" ;
6
6
export * from "$lib/components/Overlays/index.js" ;
7
+ export * from "$lib/components/Primitives/index.js" ;
7
8
export * from "$lib/components/Themes/index.js" ;
8
9
9
10
export { default as ConnectivityCheck } from "$lib/components/ConnectivityCheck.svelte" ;
11
+ export { default as Avatar } from "$lib/components/Avatar.svelte" ;
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ export const metadata = {
4
4
version : "1.9.1" ,
5
5
packageName : "@davidnet/svelte-ui" ,
6
6
npmUrl : "https://www.npmjs.com/package/@davidnet/svelte-ui" ,
7
- commitHash : "7708191 " ,
8
- fullCommitHash : "7708191dc087cb3ee86badf1dce7b674c8a05696 " ,
9
- commitDate : "2025-08-06T19:23:08 +02:00" ,
7
+ commitHash : "ec87e51 " ,
8
+ fullCommitHash : "ec87e51d45a3bd1cc37938625667a7979b62d11a " ,
9
+ commitDate : "2025-08-10T12:05:07 +02:00" ,
10
10
branch : "main" ,
11
- commitUrl : "https://github.com/davidnet-net/svelte-ui/commit/7708191dc087cb3ee86badf1dce7b674c8a05696 " ,
11
+ commitUrl : "https://github.com/davidnet-net/svelte-ui/commit/ec87e51d45a3bd1cc37938625667a7979b62d11a " ,
12
12
repoUrl : "https://github.com/davidnet-net/svelte-ui"
13
13
} ;
You can’t perform that action at this time.
0 commit comments