intelliwaketssveltekitv25 0.3.80 → 1.0.2

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.
@@ -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
@@ -10,6 +10,7 @@ declare class __sveltets_Render<T> {
10
10
  class?: string;
11
11
  name?: string;
12
12
  readonly?: boolean;
13
+ dataColor?: TDefaultColorPalate;
13
14
  };
14
15
  events(): {};
15
16
  slots(): {};
@@ -75,7 +75,7 @@ export type TListGroupItem = {
75
75
  selected?: boolean;
76
76
  href?: string;
77
77
  strikeThrough?: boolean;
78
- linkClick?: () => void | Promise<void>;
78
+ linkClick?: (() => void | Promise<void>);
79
79
  /** undefined = don't show, null = show with spinner, number (0, 1, etc.) = show */
80
80
  badgeValue?: number | string | null;
81
81
  badgeColor?: TDefaultColorPalate | null;
@@ -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()}
@@ -20,6 +20,7 @@ type $$ComponentProps = {
20
20
  button?: Snippet;
21
21
  verbose?: boolean;
22
22
  actions?: Snippet;
23
+ dataColor?: TDefaultColorPalate;
23
24
  clientWidth?: number;
24
25
  };
25
26
  declare const DropDown: import("svelte").Component<$$ComponentProps, {}, "show" | "clientWidth">;
@@ -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">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "0.3.80",
3
+ "version": "1.0.2",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",