@konstructio/ui 0.0.2 → 0.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.
Files changed (117) hide show
  1. package/dist/{AlertDialogTrigger-BIbxXexQ.js → AlertDialogTrigger-lenvKoGF.js} +4 -4
  2. package/dist/Modal-Bg9UG35z.js +909 -0
  3. package/dist/{chevron-up-Cmu1oXfj.js → chevron-up-CvquEaNg.js} +1 -1
  4. package/dist/clsx-OuTLNxxd.js +16 -0
  5. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  6. package/dist/components/AlertDialog/AlertDialog.variants.d.ts +1 -1
  7. package/dist/components/AlertDialog/AlertDialog.variants.js +4 -5
  8. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  9. package/dist/components/AlertDialog/components/index.js +1 -1
  10. package/dist/components/Autocomplete/Autocomplete.variants.d.ts +2 -2
  11. package/dist/components/Autocomplete/Autocomplete.variants.js +8 -8
  12. package/dist/components/Autocomplete/components/List.types.d.ts +3 -3
  13. package/dist/components/Autocomplete/components/List.variants.d.ts +4 -4
  14. package/dist/components/Autocomplete/components/List.variants.js +13 -13
  15. package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +4 -4
  16. package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +4 -4
  17. package/dist/components/Breadcrumb/Breadcrumb.js +57 -412
  18. package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +3 -3
  19. package/dist/components/Breadcrumb/Breadcrumb.variants.js +12 -12
  20. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  21. package/dist/components/Button/Button.js +23 -21
  22. package/dist/components/Button/Button.variants.d.ts +2 -1
  23. package/dist/components/Button/Button.variants.js +122 -23
  24. package/dist/components/Checkbox/Checkbox.js +4 -4
  25. package/dist/components/Checkbox/Checkbox.variants.d.ts +2 -2
  26. package/dist/components/Checkbox/Checkbox.variants.js +7 -16
  27. package/dist/components/Dropdown/Dropdown.js +5 -5
  28. package/dist/components/Dropdown/Dropdown.types.d.ts +1 -0
  29. package/dist/components/Dropdown/Dropdown.variants.d.ts +1 -1
  30. package/dist/components/Dropdown/Dropdown.variants.js +5 -9
  31. package/dist/components/Dropdown/components/List/List.d.ts +2 -2
  32. package/dist/components/Dropdown/components/List/List.types.d.ts +3 -3
  33. package/dist/components/Dropdown/components/List/List.variants.d.ts +1 -1
  34. package/dist/components/Dropdown/components/List/List.variants.js +3 -3
  35. package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +1 -1
  36. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +3 -3
  37. package/dist/components/Dropdown/components/Wrapper.d.ts +2 -2
  38. package/dist/components/Dropdown/components/Wrapper.js +1 -1
  39. package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +4 -1
  40. package/dist/components/Dropdown/contexts/dropdown.provider.js +19 -8
  41. package/dist/components/Dropdown/hooks/useDropdown.d.ts +4 -4
  42. package/dist/components/Dropdown/hooks/useNavigationList.d.ts +4 -4
  43. package/dist/components/Input/Input.js +1 -1
  44. package/dist/components/Input/Input.variants.d.ts +1 -1
  45. package/dist/components/Input/Input.variants.js +3 -3
  46. package/dist/components/Modal/Modal.js +2 -2
  47. package/dist/components/Modal/components/Body/Body.js +1 -1
  48. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  49. package/dist/components/Modal/components/Header/Header.js +1 -1
  50. package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -3
  51. package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +2 -2
  52. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +10 -10
  53. package/dist/components/Modal/components/index.js +1 -1
  54. package/dist/components/Modal/hooks/useModal.d.ts +1 -1
  55. package/dist/components/NumberInput/NumberInput.js +96 -87
  56. package/dist/components/NumberInput/NumberInput.variants.d.ts +3 -3
  57. package/dist/components/NumberInput/NumberInput.variants.js +14 -21
  58. package/dist/components/ProgressBar/ProgressBar.variants.d.ts +2 -2
  59. package/dist/components/ProgressBar/ProgressBar.variants.js +7 -12
  60. package/dist/components/Radio/Radio.variants.d.ts +1 -1
  61. package/dist/components/Radio/Radio.variants.js +4 -7
  62. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  63. package/dist/components/Range/Range.js +1 -1
  64. package/dist/components/Range/Range.variants.d.ts +4 -4
  65. package/dist/components/Range/Range.variants.js +18 -18
  66. package/dist/components/Slider/Slider.js +1 -1
  67. package/dist/components/Slider/Slider.variants.d.ts +3 -3
  68. package/dist/components/Slider/Slider.variants.js +12 -12
  69. package/dist/components/Switch/Switch.js +2 -2
  70. package/dist/components/Switch/Switch.variants.d.ts +2 -2
  71. package/dist/components/Switch/Switch.variants.js +6 -6
  72. package/dist/components/Tag/Tag.variants.js +1 -1
  73. package/dist/components/TagSelect/TagSelect.js +1 -1
  74. package/dist/components/TagSelect/TagSelect.variants.d.ts +3 -3
  75. package/dist/components/TagSelect/TagSelect.variants.js +11 -14
  76. package/dist/components/TagSelect/hooks/useTagSelect.d.ts +1 -1
  77. package/dist/components/TextArea/TextArea.variants.d.ts +1 -1
  78. package/dist/components/TextArea/TextArea.variants.js +5 -5
  79. package/dist/components/Toast/Toast.js +104 -101
  80. package/dist/components/Toast/Toast.variants.d.ts +3 -3
  81. package/dist/components/Toast/Toast.variants.js +12 -12
  82. package/dist/components/Tooltip/Tooltip.js +1 -1
  83. package/dist/components/Tooltip/Tooltip.variants.d.ts +2 -2
  84. package/dist/components/Tooltip/Tooltip.variants.js +9 -9
  85. package/dist/components/Tooltip/hooks/useTooltip.d.ts +1 -1
  86. package/dist/components/index.js +1 -1
  87. package/dist/contexts/theme.context.d.ts +1 -1
  88. package/dist/contexts/theme.hook.js +3 -6
  89. package/dist/contexts/theme.provider.d.ts +2 -3
  90. package/dist/contexts/theme.provider.js +4 -1
  91. package/dist/index-BBjak_0p.js +47 -0
  92. package/dist/index-BNmRGtA6.js +34 -0
  93. package/dist/{index-DFbnnPzA.js → index-Ci9Yg4G1.js} +5 -5
  94. package/dist/{index-B_GWswUP.js → index-D4Q2rMby.js} +1 -1
  95. package/dist/{index-DQMInta3.js → index-D68N8v8R.js} +214 -209
  96. package/dist/index-DoOsnuB6.js +72 -0
  97. package/dist/{index-2K8qjK4R.js → index-O3j1K921.js} +36 -37
  98. package/dist/index-OOfdXoxx.js +423 -0
  99. package/dist/index-ffjBR8Av.js +32 -0
  100. package/dist/index.js +1 -1
  101. package/dist/package.json +38 -38
  102. package/dist/plugins/konstruct.js +61 -50
  103. package/dist/plugins/utils/colors.d.ts +127 -10
  104. package/dist/plugins/utils/colors.js +210 -510
  105. package/dist/styles.css +1 -1
  106. package/dist/useBreadcrumb-tyxjV-a1.js +1398 -0
  107. package/dist/utils/index.js +150 -162
  108. package/dist/x-CRBgmX1Q.js +62 -0
  109. package/package.json +38 -38
  110. package/dist/Modal-CO0_SnXD.js +0 -909
  111. package/dist/index-2hJuj4UN.js +0 -19069
  112. package/dist/index-4qm4jAkj.js +0 -92
  113. package/dist/index-BJ7FQg17.js +0 -35
  114. package/dist/index-BqM_XclQ.js +0 -94
  115. package/dist/index-BwYCDOHZ.js +0 -44
  116. package/dist/index-CCavb-1K.js +0 -57
  117. package/dist/useBreadcrumb-BSMnc4Fu.js +0 -341
@@ -1,42 +1,47 @@
1
- import { c as e } from "../../index-BwYCDOHZ.js";
1
+ import { c as e } from "../../index-BNmRGtA6.js";
2
2
  const t = e(
3
3
  [
4
- "border-2",
4
+ "border",
5
+ "cursor-pointer",
5
6
  "disabled:pointer-events-none",
7
+ "flex",
6
8
  "focus-visible:outline-none",
7
9
  "focus-visible:ring-1",
8
10
  "focus-visible:ring-ring",
9
- "gap-1",
11
+ "font-semibold",
12
+ "gap-2",
10
13
  "inline-flex",
11
14
  "items-center",
12
15
  "justify-center",
13
- "rounded-md",
14
- "text-base",
16
+ "rounded",
15
17
  "transition-colors",
16
- "whitespace-nowrap",
17
- "cursor-pointer",
18
- "font-semibold"
18
+ "whitespace-nowrap"
19
19
  ],
20
20
  {
21
21
  variants: {
22
22
  variant: {
23
- primary: ["text-white", "border-current"],
23
+ primary: ["text-white"],
24
24
  secondary: ["bg-white"],
25
25
  danger: [
26
- "border-current",
26
+ "border-red-600",
27
27
  "bg-red-600",
28
28
  "text-white",
29
- "hover:bg-red-700"
29
+ "hover:bg-red-700",
30
+ "hover:border-red-700"
30
31
  ],
31
32
  text: ["bg-transparent", "border-transparent", "text-slate-500"]
32
33
  },
34
+ version: {
35
+ default: "",
36
+ alternate: ""
37
+ },
33
38
  theme: {
39
+ civo: "",
34
40
  colony: "",
35
- konstruct: "",
36
41
  kubefirst: ""
37
42
  },
38
43
  size: {
39
- default: "px-5 py-2"
44
+ default: "h-10 p-4 text-sm"
40
45
  },
41
46
  disabled: {
42
47
  true: ["text-zinc-500", "border-zinc-200", "bg-zinc-200"],
@@ -48,40 +53,133 @@ const t = e(
48
53
  variant: "primary",
49
54
  theme: "kubefirst",
50
55
  disabled: !1,
51
- class: ["bg-kubefirst-purple-light", "hover:bg-kubefirst-purple-dark"]
56
+ class: [
57
+ "border-kubefirst-primary",
58
+ "bg-kubefirst-primary",
59
+ "hover:bg-kubefirst-secondary",
60
+ "hover:border-kubefirst-secondary"
61
+ ]
52
62
  },
53
63
  {
54
64
  variant: "primary",
55
65
  theme: "colony",
56
66
  disabled: !1,
57
- class: ["bg-red-700", "hover:bg-red-900"]
67
+ class: [
68
+ "bg-colony-primary",
69
+ "border-colony-primary",
70
+ "hover:bg-colony-secondary",
71
+ "hover:border-colony-secondary"
72
+ ]
58
73
  },
59
74
  {
60
75
  variant: "primary",
61
- theme: "konstruct",
76
+ theme: "civo",
62
77
  disabled: !1,
63
- class: ["bg-orange-500", "hover:bg-orange-700"]
78
+ class: [
79
+ "bg-civo-primary",
80
+ "border-civo-primary",
81
+ "hover:bg-civo-secondary",
82
+ "hover:border-civo-secondary"
83
+ ]
64
84
  },
65
85
  {
66
86
  variant: "secondary",
87
+ theme: "kubefirst",
67
88
  disabled: !1,
68
89
  class: [
69
- "text-kubefirst-purple-light",
70
- "border-kubefirst-purple-light",
71
- "hover:text-kubefirst-purple-dark",
72
- "hover:border-kubefirst-purple-dark",
90
+ "text-kubefirst-primary",
91
+ "border-kubefirst-primary",
92
+ "hover:text-kubefirst-secondary",
93
+ "hover:border-kubefirst-secondary",
73
94
  "hover:bg-purple-50"
74
95
  ]
75
96
  },
76
97
  {
77
98
  variant: "secondary",
99
+ theme: "colony",
100
+ disabled: !1,
101
+ class: [
102
+ "text-colony-primary",
103
+ "border-colony-primary",
104
+ "hover:text-colony-secondary",
105
+ "hover:border-colony-secondary",
106
+ "hover:bg-pink-50"
107
+ ]
108
+ },
109
+ {
110
+ variant: "secondary",
111
+ theme: "civo",
112
+ disabled: !1,
113
+ class: [
114
+ "text-[#324154]",
115
+ "border-[#cbd5e0]",
116
+ "hover:text-[#5d6776]",
117
+ "hover:border-[#d6dde6]"
118
+ ]
119
+ },
120
+ {
121
+ variant: "primary",
78
122
  disabled: !0,
79
- class: ["border-zinc-500"]
123
+ class: ["bg-zinc-200", "border-zinc-200", "text-zinc-500"]
124
+ },
125
+ {
126
+ variant: "secondary",
127
+ disabled: !0,
128
+ class: ["bg-white", "border-zinc-500", "text-zinc-500"]
129
+ },
130
+ {
131
+ variant: "text",
132
+ theme: "kubefirst",
133
+ disabled: !1,
134
+ version: "default",
135
+ class: ["hover:text-kubefirst-primary", "hover:bg-purple-50"]
136
+ },
137
+ {
138
+ variant: "text",
139
+ theme: "colony",
140
+ disabled: !1,
141
+ version: "default",
142
+ class: ["hover:text-colony-primary", "hover:bg-pink-50"]
80
143
  },
81
144
  {
82
145
  variant: "text",
146
+ theme: "civo",
83
147
  disabled: !1,
84
- class: ["hover:text-kubefirst-purple-dark", "hover:bg-purple-50"]
148
+ version: "default",
149
+ class: ["hover:text-civo-primary", "hover:bg-blue-50"]
150
+ },
151
+ {
152
+ variant: "text",
153
+ theme: "kubefirst",
154
+ disabled: !1,
155
+ version: "alternate",
156
+ class: [
157
+ "text-kubefirst-primary",
158
+ "hover:text-kubefirst-primary",
159
+ "hover:bg-purple-50"
160
+ ]
161
+ },
162
+ {
163
+ variant: "text",
164
+ theme: "colony",
165
+ disabled: !1,
166
+ version: "alternate",
167
+ class: [
168
+ "text-colony-primary",
169
+ "hover:text-colony-primary",
170
+ "hover:bg-pink-50"
171
+ ]
172
+ },
173
+ {
174
+ variant: "text",
175
+ theme: "civo",
176
+ disabled: !1,
177
+ version: "alternate",
178
+ class: [
179
+ "text-civo-primary",
180
+ "hover:text-civo-primary",
181
+ "hover:bg-blue-50"
182
+ ]
85
183
  },
86
184
  {
87
185
  variant: "text",
@@ -92,6 +190,7 @@ const t = e(
92
190
  defaultVariants: {
93
191
  variant: "primary",
94
192
  theme: "kubefirst",
193
+ version: "default",
95
194
  size: "default",
96
195
  disabled: !1
97
196
  }
@@ -1,17 +1,17 @@
1
1
  import { jsxs as N, jsx as p } from "react/jsx-runtime";
2
2
  import * as f from "react";
3
3
  import j, { forwardRef as S, useId as M, useCallback as A } from "react";
4
- import { u as H } from "../../index-CCavb-1K.js";
4
+ import { u as H } from "../../index-DoOsnuB6.js";
5
5
  import { c as K, a as W, d as I } from "../../index-8vgf-x5i.js";
6
6
  import { u as $, a as q } from "../../index-BxeV34ij.js";
7
- import { P as F } from "../../index-B_GWswUP.js";
8
- import { P as _ } from "../../index-BJ7FQg17.js";
7
+ import { P as F } from "../../index-D4Q2rMby.js";
8
+ import { P as _ } from "../../index-OOfdXoxx.js";
9
9
  import { useToggle as V } from "../../hooks/useToggle.js";
10
10
  import { checkboxVariants as X, labelVariants as G } from "./Checkbox.variants.js";
11
11
  import "../../contexts/theme.context.js";
12
12
  import { useTheme as J } from "../../contexts/theme.hook.js";
13
13
  import "../../js.cookie-OLEfuq_g.js";
14
- import { P as y } from "../../index-DQMInta3.js";
14
+ import { P as y } from "../../index-D68N8v8R.js";
15
15
  function w() {
16
16
  return w = Object.assign || function(e) {
17
17
  for (var s = 1; s < arguments.length; s++) {
@@ -1,9 +1,9 @@
1
1
  export declare const checkboxVariants: (props?: ({
2
2
  variant?: "default" | null | undefined;
3
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
3
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
4
4
  checked?: boolean | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  export declare const labelVariants: (props?: ({
7
7
  variant?: "default" | null | undefined;
8
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
8
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
9
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,4 +1,4 @@
1
- import { c as e } from "../../index-BwYCDOHZ.js";
1
+ import { c as e } from "../../index-BNmRGtA6.js";
2
2
  const r = e(
3
3
  [
4
4
  "cursor-pointer",
@@ -18,8 +18,8 @@ const r = e(
18
18
  },
19
19
  theme: {
20
20
  colony: "",
21
- konstruct: "",
22
- kubefirst: ""
21
+ kubefirst: "",
22
+ civo: ""
23
23
  },
24
24
  checked: {
25
25
  true: "",
@@ -29,21 +29,12 @@ const r = e(
29
29
  compoundVariants: [
30
30
  {
31
31
  theme: "kubefirst",
32
- class: ["border-kubefirst-purple-light"]
32
+ class: ["border-kubefirst-primary"]
33
33
  },
34
34
  {
35
35
  theme: "kubefirst",
36
36
  checked: !0,
37
- class: ["bg-kubefirst-purple-light"]
38
- },
39
- {
40
- theme: "konstruct",
41
- class: ["border-orange-600"]
42
- },
43
- {
44
- theme: "konstruct",
45
- checked: !0,
46
- class: ["bg-orange-600"]
37
+ class: ["bg-kubefirst-primary"]
47
38
  },
48
39
  {
49
40
  theme: "colony",
@@ -67,8 +58,8 @@ const r = e(
67
58
  },
68
59
  theme: {
69
60
  colony: "",
70
- konstruct: "",
71
- kubefirst: ""
61
+ kubefirst: "",
62
+ civo: ""
72
63
  }
73
64
  },
74
65
  defaultVariants: {
@@ -1,10 +1,10 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as m } from "react";
2
+ import { forwardRef as i } from "react";
3
3
  import "./components/List/List.js";
4
- import { Wrapper as i } from "./components/Wrapper.js";
4
+ import { Wrapper as t } from "./components/Wrapper.js";
5
5
  import "./contexts/dropdown.context.js";
6
- import { DropdownProvider as t } from "./contexts/dropdown.provider.js";
7
- const c = m(({ ...o }, p) => /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(i, { ref: p, ...o }) }));
6
+ import { DropdownProvider as f } from "./contexts/dropdown.provider.js";
7
+ const s = i(({ onChange: o, ...p }, m) => /* @__PURE__ */ r(f, { onChange: o, children: /* @__PURE__ */ r(t, { ref: m, ...p }) }));
8
8
  export {
9
- c as Dropdown
9
+ s as Dropdown
10
10
  };
@@ -12,4 +12,5 @@ export interface DropdownProps extends VariantProps<typeof dropdownVariants> {
12
12
  name?: string;
13
13
  options: Option[];
14
14
  placeholder?: string;
15
+ onChange?: (value: Option) => void;
15
16
  }
@@ -1,3 +1,3 @@
1
1
  export declare const dropdownVariants: (props?: ({
2
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
2
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
3
3
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,4 +1,4 @@
1
- import { c as e } from "../../index-BwYCDOHZ.js";
1
+ import { c as e } from "../../index-BNmRGtA6.js";
2
2
  const a = e(
3
3
  [
4
4
  "border",
@@ -18,21 +18,17 @@ const a = e(
18
18
  {
19
19
  variants: {
20
20
  theme: {
21
- konstruct: [
22
- "aria-expanded:border-orange-400",
23
- "aria-expanded:text-orange-400",
24
- "focus-visible:bg-orange-100"
25
- ],
26
21
  kubefirst: [
27
- "aria-expanded:border-kubefirst-purple-light",
28
- "aria-expanded:text-kubefirst-purple-dark",
22
+ "aria-expanded:border-kubefirst-primary",
23
+ "aria-expanded:text-kubefirst-secondary",
29
24
  "focus-visible:bg-purple-100"
30
25
  ],
31
26
  colony: [
32
27
  "aria-expanded:border-red-400",
33
28
  "aria-expanded:text-red-400",
34
29
  "focus-visible:bg-red-100"
35
- ]
30
+ ],
31
+ civo: ""
36
32
  }
37
33
  },
38
34
  defaultVariants: {
@@ -1,3 +1,3 @@
1
- import { ElementRef, ForwardRefExoticComponent, RefAttributes } from 'react';
1
+ import { ComponentRef, ForwardRefExoticComponent, RefAttributes } from 'react';
2
2
  import { ListProps } from './List.types';
3
- export declare const List: ForwardRefExoticComponent<ListProps & RefAttributes<ElementRef<'ul'>>>;
3
+ export declare const List: ForwardRefExoticComponent<ListProps & RefAttributes<ComponentRef<'ul'>>>;
@@ -1,8 +1,8 @@
1
- import { RefObject } from 'react';
1
+ import { ComponentRef, RefObject } from 'react';
2
2
  import { DropdownProps } from '../../Dropdown.types';
3
3
  export type ListProps = {
4
4
  options: DropdownProps['options'];
5
5
  theme: DropdownProps['theme'];
6
- wrapperRef: RefObject<HTMLDivElement>;
7
- wrapperInputRef: RefObject<HTMLDivElement>;
6
+ wrapperRef: RefObject<ComponentRef<'div'> | null>;
7
+ wrapperInputRef: RefObject<ComponentRef<'div'> | null>;
8
8
  };
@@ -1,3 +1,3 @@
1
1
  export declare const listVariants: (props?: ({
2
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
2
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
3
3
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,4 +1,4 @@
1
- import { c as r } from "../../../../index-BwYCDOHZ.js";
1
+ import { c as r } from "../../../../index-BNmRGtA6.js";
2
2
  const t = r(
3
3
  [
4
4
  "absolute",
@@ -20,8 +20,8 @@ const t = r(
20
20
  variants: {
21
21
  theme: {
22
22
  colony: ["border-red-400"],
23
- konstruct: ["border-orange-400"],
24
- kubefirst: ["border-kubefirst-purple-light"]
23
+ kubefirst: ["border-kubefirst-primary"],
24
+ civo: ""
25
25
  }
26
26
  },
27
27
  defaultVariants: {
@@ -1,3 +1,3 @@
1
1
  export declare const listItemVariants: (props?: ({
2
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
2
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
3
3
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,12 +1,12 @@
1
- import { c as e } from "../../../../index-BwYCDOHZ.js";
1
+ import { c as e } from "../../../../index-BNmRGtA6.js";
2
2
  const o = e(
3
3
  ["cursor-pointer", "py-1", "px-2", "h-full", "focus-visible:outline-none"],
4
4
  {
5
5
  variants: {
6
6
  theme: {
7
7
  kubefirst: ["focus:bg-purple-100", "hover:bg-purple-100"],
8
- konstruct: ["focus:bg-orange-100", "hover:bg-orange-100"],
9
- colony: ["focus:bg-red-100", "hover:bg-red-100"]
8
+ colony: ["focus:bg-red-100", "hover:bg-red-100"],
9
+ civo: ""
10
10
  }
11
11
  },
12
12
  defaultVariants: {
@@ -1,3 +1,3 @@
1
- import { ElementRef, ForwardRefExoticComponent, RefAttributes } from 'react';
1
+ import { ComponentRef, ForwardRefExoticComponent, RefAttributes } from 'react';
2
2
  import { DropdownProps } from '../Dropdown.types';
3
- export declare const Wrapper: ForwardRefExoticComponent<DropdownProps & RefAttributes<ElementRef<'input'>>>;
3
+ export declare const Wrapper: ForwardRefExoticComponent<DropdownProps & RefAttributes<ComponentRef<'input'>>>;
@@ -9,7 +9,7 @@ import { useDropdown as U } from "../hooks/useDropdown.js";
9
9
  import { useDropdownContext as W } from "../contexts/dropdown.hook.js";
10
10
  import "../contexts/dropdown.context.js";
11
11
  import { List as q } from "./List/List.js";
12
- import { C as z } from "../../../chevron-up-Cmu1oXfj.js";
12
+ import { C as z } from "../../../chevron-up-CvquEaNg.js";
13
13
  const _ = D(
14
14
  ({ theme: R, label: f, placeholder: g, name: i, options: l, defaultValue: c }, O) => {
15
15
  const p = F(), r = b(null), u = b(null), { wrapperRef: n, wrapperInputRef: d, handleOpen: j, handleOpenIfClosed: E } = U({ ulRef: u }), { isOpen: h, value: e, setValue: x, toggleOpen: w } = W(), { theme: T } = A(), v = R ?? T, C = i ? `${p}-${i}` : p;
@@ -1,2 +1,5 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
- export declare const DropdownProvider: FC<PropsWithChildren>;
2
+ import { DropdownProps } from '../Dropdown.types';
3
+ export declare const DropdownProvider: FC<PropsWithChildren & {
4
+ onChange?: DropdownProps['onChange'];
5
+ }>;
@@ -1,11 +1,22 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { useState as s } from "react";
3
- import { useToggle as l } from "../../../hooks/useToggle.js";
4
- import { DropdownContext as m } from "./dropdown.context.js";
5
- const d = ({ children: o }) => {
6
- const [e, r] = l(!1), [t, n] = s(null);
7
- return /* @__PURE__ */ p(m.Provider, { value: { value: t, isOpen: e, setValue: n, toggleOpen: r }, children: o });
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { useState as i, useCallback as c } from "react";
3
+ import { useToggle as d } from "../../../hooks/useToggle.js";
4
+ import { DropdownContext as f } from "./dropdown.context.js";
5
+ const w = ({ children: t, onChange: o }) => {
6
+ const [e, s] = d(!1), [l, p] = i(null), m = c(
7
+ (r) => {
8
+ o == null || o(r), p(r);
9
+ },
10
+ [o]
11
+ );
12
+ return /* @__PURE__ */ u(
13
+ f.Provider,
14
+ {
15
+ value: { value: l, isOpen: e, setValue: m, toggleOpen: s },
16
+ children: t
17
+ }
18
+ );
8
19
  };
9
20
  export {
10
- d as DropdownProvider
21
+ w as DropdownProvider
11
22
  };
@@ -1,10 +1,10 @@
1
- import { ElementRef, RefObject } from 'react';
1
+ import { ComponentRef, RefObject } from 'react';
2
2
  type UseDropDownParams = {
3
- ulRef: RefObject<ElementRef<'ul'>>;
3
+ ulRef: RefObject<ComponentRef<'ul'> | null>;
4
4
  };
5
5
  export declare const useDropdown: ({ ulRef }: UseDropDownParams) => {
6
- wrapperRef: RefObject<HTMLDivElement>;
7
- wrapperInputRef: RefObject<HTMLDivElement>;
6
+ wrapperRef: RefObject<HTMLDivElement | null>;
7
+ wrapperInputRef: RefObject<HTMLDivElement | null>;
8
8
  handleOpen: () => void;
9
9
  handleOpenIfClosed: () => void;
10
10
  };
@@ -1,8 +1,8 @@
1
- import { RefObject } from 'react';
1
+ import { ComponentRef, RefObject } from 'react';
2
2
  type UseNavigationListProps = {
3
- ulRef: RefObject<HTMLUListElement>;
4
- wrapperRef: RefObject<HTMLDivElement>;
5
- wrapperInputRef: RefObject<HTMLDivElement>;
3
+ ulRef: RefObject<ComponentRef<'ul'> | null>;
4
+ wrapperRef: RefObject<ComponentRef<'div'> | null>;
5
+ wrapperInputRef: RefObject<ComponentRef<'div'> | null>;
6
6
  };
7
7
  export declare const useNavigationUlList: ({ ulRef, wrapperRef, wrapperInputRef, }: UseNavigationListProps) => void;
8
8
  export {};
@@ -5,7 +5,7 @@ import { inputVariants as j } from "./Input.variants.js";
5
5
  import "../../contexts/theme.context.js";
6
6
  import { useTheme as N } from "../../contexts/theme.hook.js";
7
7
  import "../../js.cookie-OLEfuq_g.js";
8
- import { P as l } from "../../index-DQMInta3.js";
8
+ import { P as l } from "../../index-D68N8v8R.js";
9
9
  function p() {
10
10
  return p = Object.assign || function(e) {
11
11
  for (var o = 1; o < arguments.length; o++) {
@@ -1,4 +1,4 @@
1
1
  export declare const inputVariants: (props?: ({
2
2
  variant?: "default" | "error" | null | undefined;
3
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
3
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
4
4
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,4 +1,4 @@
1
- import { c as r } from "../../index-BwYCDOHZ.js";
1
+ import { c as r } from "../../index-BNmRGtA6.js";
2
2
  const t = r(
3
3
  [
4
4
  "bg-transparent",
@@ -27,9 +27,9 @@ const t = r(
27
27
  error: ["border-red-600", "pr-8", "focus-visible:ring-transparent"]
28
28
  },
29
29
  theme: {
30
- kubefirst: "focus:ring-kubefirst-purple-light",
30
+ kubefirst: "focus:ring-kubefirst-primary",
31
31
  colony: "",
32
- konstruct: ""
32
+ civo: ""
33
33
  }
34
34
  },
35
35
  defaultVariants: {
@@ -1,9 +1,9 @@
1
1
  import "react/jsx-runtime";
2
- import "../../index-2hJuj4UN.js";
2
+ import "../../index-OOfdXoxx.js";
3
3
  import "./components/Body/Body.js";
4
4
  import "./components/Footer/Footer.js";
5
5
  import "./components/Header/Header.js";
6
- import { M as d } from "../../Modal-CO0_SnXD.js";
6
+ import { M as d } from "../../Modal-Bg9UG35z.js";
7
7
  import "./hooks/useModal.js";
8
8
  export {
9
9
  d as Modal
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { S as n } from "../../../../index-CCavb-1K.js";
2
+ import { S as n } from "../../../../index-DoOsnuB6.js";
3
3
  import { cn as e } from "../../../../utils/index.js";
4
4
  const i = ({ children: o, asChild: t, className: m }) => /* @__PURE__ */ r(t ? n : "div", { className: e("flex-1", m), children: o });
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { S as m } from "../../../../index-CCavb-1K.js";
2
+ import { S as m } from "../../../../index-DoOsnuB6.js";
3
3
  const i = ({ children: o, asChild: t, className: r }) => /* @__PURE__ */ n(t ? m : "div", { className: r, children: o });
4
4
  export {
5
5
  i as Footer
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { S as e } from "../../../../index-CCavb-1K.js";
2
+ import { S as e } from "../../../../index-DoOsnuB6.js";
3
3
  const i = ({ children: o, asChild: t, className: r }) => /* @__PURE__ */ n(t ? e : "div", { className: r, children: o });
4
4
  export {
5
5
  i as Header
@@ -1,13 +1,14 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { W as x } from "../../../../Modal-CO0_SnXD.js";
3
+ import { W as b } from "../../../../Modal-Bg9UG35z.js";
4
4
  import "../../../../Combination-Cmu9JRkv.js";
5
- import "../../../../index-4qm4jAkj.js";
5
+ import "../../../../index-ffjBR8Av.js";
6
6
  import "../../../../contexts/theme.context.js";
7
7
  import "../../../../contexts/theme.hook.js";
8
8
  import "../../../../js.cookie-OLEfuq_g.js";
9
9
  import "../../hooks/useModal.js";
10
10
  import "./Wrapper.variants.js";
11
+ import "../../../../x-CRBgmX1Q.js";
11
12
  export {
12
- x as Wrapper
13
+ b as Wrapper
13
14
  };
@@ -1,6 +1,6 @@
1
1
  export declare const modalVariants: (props?: ({
2
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
2
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
3
3
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
4
4
  export declare const buttonCloseVariants: (props?: ({
5
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
5
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;