intelliwaketssveltekitv25 1.0.1 → 1.0.3
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/dist/ButtonGroup.svelte
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
class: clazz = '',
|
|
8
8
|
name = undefined,
|
|
9
9
|
readonly = false,
|
|
10
|
+
dataColor,
|
|
10
11
|
...restProps
|
|
11
12
|
}: {
|
|
12
13
|
value?: T | null
|
|
@@ -18,7 +19,8 @@
|
|
|
18
19
|
})[]
|
|
19
20
|
class?: string
|
|
20
21
|
name?: string
|
|
21
|
-
readonly?: boolean
|
|
22
|
+
readonly?: boolean,
|
|
23
|
+
dataColor?: TDefaultColorPalate
|
|
22
24
|
} = $props()
|
|
23
25
|
|
|
24
26
|
let inputElement = $state<HTMLInputElement | undefined>(undefined)
|
|
@@ -77,6 +79,7 @@
|
|
|
77
79
|
class:active={isActive}
|
|
78
80
|
disabled={readonly || option.disabled}
|
|
79
81
|
tabindex={-1}
|
|
82
|
+
data-color={dataColor}
|
|
80
83
|
onclick={() => {
|
|
81
84
|
if (!readonly && !option.disabled) {
|
|
82
85
|
value = option.key
|
package/dist/DropDown.svelte
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
button,
|
|
27
27
|
verbose = false,
|
|
28
28
|
actions,
|
|
29
|
+
dataColor,
|
|
29
30
|
clientWidth = $bindable()
|
|
30
31
|
}: {
|
|
31
32
|
show?: boolean
|
|
@@ -47,6 +48,7 @@
|
|
|
47
48
|
button?: Snippet
|
|
48
49
|
verbose?: boolean
|
|
49
50
|
actions?: Snippet,
|
|
51
|
+
dataColor?: TDefaultColorPalate
|
|
50
52
|
clientWidth?: number
|
|
51
53
|
} = $props()
|
|
52
54
|
|
|
@@ -272,6 +274,7 @@
|
|
|
272
274
|
aria-expanded={show}
|
|
273
275
|
aria-haspopup='true'
|
|
274
276
|
onkeydown={keyDownButton}
|
|
277
|
+
data-color={dataColor}
|
|
275
278
|
tabindex={0}>
|
|
276
279
|
{#if button}
|
|
277
280
|
{@render button()}
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
hidden = false,
|
|
39
39
|
toggle,
|
|
40
40
|
body,
|
|
41
|
+
dataColor,
|
|
41
42
|
clientWidth = $bindable()
|
|
42
43
|
}: {
|
|
43
44
|
show?: boolean
|
|
@@ -68,6 +69,7 @@
|
|
|
68
69
|
hidden?: boolean
|
|
69
70
|
toggle?: Snippet
|
|
70
71
|
body?: Snippet
|
|
72
|
+
dataColor?: TDefaultColorPalate
|
|
71
73
|
clientWidth?: number
|
|
72
74
|
} = $props()
|
|
73
75
|
|
|
@@ -312,6 +314,7 @@
|
|
|
312
314
|
bind:clientWidth={clientWidth}
|
|
313
315
|
aria-haspopup='true'
|
|
314
316
|
onclick={doShow}
|
|
317
|
+
data-color={dataColor}
|
|
315
318
|
onkeydown={toggleKeyDown}>
|
|
316
319
|
{#if toggle}
|
|
317
320
|
{@render toggle()}
|
|
@@ -30,6 +30,7 @@ type $$ComponentProps = {
|
|
|
30
30
|
hidden?: boolean;
|
|
31
31
|
toggle?: Snippet;
|
|
32
32
|
body?: Snippet;
|
|
33
|
+
dataColor?: TDefaultColorPalate;
|
|
33
34
|
clientWidth?: number;
|
|
34
35
|
};
|
|
35
36
|
declare const DropDownControl: import("svelte").Component<$$ComponentProps, {}, "show" | "parentDivElement" | "clientWidth">;
|