@hkdigital/lib-sveltekit 0.1.27 → 0.1.28

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.
@@ -10,6 +10,7 @@
10
10
  * role?: 'primary' | 'secondary' | 'tertiary' | 'custom',
11
11
  * size?: 'sm' | 'md' | 'lg',
12
12
  * variant?: string,
13
+ * mode?: 'light'|'dark'
13
14
  * active?: boolean,
14
15
  * selected?: boolean,
15
16
  * loading?: boolean,
@@ -31,6 +32,7 @@
31
32
  role = 'primary',
32
33
  size = 'md',
33
34
  variant = '',
35
+ mode = 'light',
34
36
 
35
37
  // States
36
38
  active = $bindable(false),
@@ -59,6 +61,7 @@
59
61
  data-role={role}
60
62
  data-size={size}
61
63
  data-variant={variant}
64
+ data-mode={mode}
62
65
  type="button"
63
66
  class="{base} {bg} {classes} {stateClasses}"
64
67
  disabled={disabled || loading}
@@ -8,6 +8,7 @@ declare const Button: import("svelte").Component<{
8
8
  role?: "primary" | "secondary" | "tertiary" | "custom";
9
9
  size?: "sm" | "md" | "lg";
10
10
  variant?: string;
11
+ mode?: "light" | "dark";
11
12
  active?: boolean;
12
13
  selected?: boolean;
13
14
  loading?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-sveltekit",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "author": {
5
5
  "name": "HKdigital",
6
6
  "url": "https://hkdigital.nl"