m3-svelte 4.5.4 → 4.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/buttons/TogglePrimitive.svelte +1 -1
- package/package/containers/Dialog.svelte +6 -8
- package/package/forms/TextField.svelte +1 -1
- package/package/forms/TextFieldMultiline.svelte +1 -1
- package/package/forms/TextFieldOutlined.svelte +1 -1
- package/package/forms/TextFieldOutlinedMultiline.svelte +1 -1
- package/package/misc/styles.css +4 -0
- package/package/nav/Tabs.svelte +1 -1
- package/package/nav/VariableTabs.svelte +1 -1
- package/package/utils/DateField.svelte +1 -1
- package/package.json +1 -1
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
</script>
|
|
37
37
|
|
|
38
38
|
<dialog
|
|
39
|
+
class="m3-container"
|
|
39
40
|
oncancel={(e) => {
|
|
40
41
|
if (closeOnEsc) {
|
|
41
42
|
onEsc?.();
|
|
@@ -54,9 +55,9 @@
|
|
|
54
55
|
bind:this={dialog}
|
|
55
56
|
{...extra}
|
|
56
57
|
>
|
|
57
|
-
<div class="
|
|
58
|
+
<div class="d">
|
|
58
59
|
{#if icon}
|
|
59
|
-
<Icon {icon} />
|
|
60
|
+
<Icon {icon} width="1.5rem" height="1.5rem" />
|
|
60
61
|
{/if}
|
|
61
62
|
<p class="headline m3-font-headline-small" class:center={icon}>{headline}</p>
|
|
62
63
|
<div class="content m3-font-body-medium">
|
|
@@ -74,6 +75,7 @@
|
|
|
74
75
|
}
|
|
75
76
|
dialog {
|
|
76
77
|
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
77
79
|
background-color: rgb(var(--m3-scheme-surface-container-high));
|
|
78
80
|
border: none;
|
|
79
81
|
border-radius: var(--m3-dialog-shape);
|
|
@@ -82,17 +84,13 @@
|
|
|
82
84
|
padding: 0;
|
|
83
85
|
overflow: auto;
|
|
84
86
|
}
|
|
85
|
-
.
|
|
87
|
+
.d {
|
|
86
88
|
display: flex;
|
|
87
89
|
flex-direction: column;
|
|
88
90
|
padding: 1.5rem;
|
|
89
|
-
width: 100%;
|
|
90
91
|
}
|
|
91
|
-
|
|
92
|
-
.m3-container > :global(svg) {
|
|
92
|
+
.d > :global(svg) {
|
|
93
93
|
color: rgb(var(--m3-scheme-secondary));
|
|
94
|
-
width: 1.5rem;
|
|
95
|
-
height: 1.5rem;
|
|
96
94
|
|
|
97
95
|
flex-shrink: 0;
|
|
98
96
|
align-self: center;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
error?: boolean;
|
|
20
20
|
value?: string;
|
|
21
21
|
} & HTMLTextareaAttributes = $props();
|
|
22
|
-
const id =
|
|
22
|
+
const id = $props.id();
|
|
23
23
|
const resize = (node: HTMLElement) => {
|
|
24
24
|
const update = () => {
|
|
25
25
|
const textarea = node.firstElementChild as HTMLTextAreaElement;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
error?: boolean;
|
|
20
20
|
value?: string;
|
|
21
21
|
} & HTMLTextareaAttributes = $props();
|
|
22
|
-
const id =
|
|
22
|
+
const id = $props.id();
|
|
23
23
|
const resize = (node: HTMLElement) => {
|
|
24
24
|
const update = () => {
|
|
25
25
|
const textarea = node.firstElementChild as HTMLTextAreaElement;
|
package/package/misc/styles.css
CHANGED
package/package/nav/Tabs.svelte
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}[];
|
|
20
20
|
} & HTMLInputAttributes = $props();
|
|
21
21
|
|
|
22
|
-
const name =
|
|
22
|
+
const name = $props.id();
|
|
23
23
|
let wrapper: HTMLDivElement | undefined = $state();
|
|
24
24
|
const handleInput = (e: Event & { currentTarget: EventTarget & HTMLInputElement }) => {
|
|
25
25
|
const before = tab;
|