@konstructio/ui 0.0.12-alpha.0 → 0.0.12-alpha.1

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 (257) hide show
  1. package/dist/{Combination-Cmu9JRkv.js → Combination-BQYb0Gw7.js} +72 -72
  2. package/dist/{Modal-L73dmnHv.js → Modal-W2GbkC_F.js} +238 -246
  3. package/dist/{chevron-up-CvquEaNg.js → chevron-up-DgLBQCKD.js} +1 -1
  4. package/dist/components/AlertDialog/AlertDialog.js +20 -23
  5. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -6
  6. package/dist/components/AlertDialog/components/index.js +1 -1
  7. package/dist/components/Autocomplete/Autocomplete.js +15 -17
  8. package/dist/components/Autocomplete/components/List/List.js +7 -7
  9. package/dist/components/Breadcrumb/Breadcrumb.js +68 -69
  10. package/dist/components/Breadcrumb/Breadcrumb.variants.js +16 -17
  11. package/dist/components/Breadcrumb/components/Item/Item.js +61 -0
  12. package/dist/components/Breadcrumb/components/Item/Item.variants.js +90 -0
  13. package/dist/components/Breadcrumb/components/index.js +4 -0
  14. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -3
  15. package/dist/components/Button/Button.js +14 -16
  16. package/dist/components/Card/Card.js +10 -12
  17. package/dist/components/Checkbox/Checkbox.js +13 -15
  18. package/dist/components/Dropdown/Dropdown.js +4 -6
  19. package/dist/components/Dropdown/components/List/List.js +9 -10
  20. package/dist/components/Dropdown/components/ListItem/ListItem.js +20 -21
  21. package/dist/components/Dropdown/components/Wrapper.js +31 -34
  22. package/dist/components/Dropdown/contexts/dropdown.provider.js +4 -4
  23. package/dist/components/Dropdown/hooks/useDropdown.js +12 -14
  24. package/dist/components/Dropdown/hooks/useNavigationList.js +8 -10
  25. package/dist/components/Input/Input.js +12 -14
  26. package/dist/components/Modal/Modal.js +3 -3
  27. package/dist/components/Modal/components/Wrapper/Wrapper.js +7 -9
  28. package/dist/components/Modal/components/index.js +1 -1
  29. package/dist/components/Modal/contexts/Modal.provider.js +4 -4
  30. package/dist/components/NumberInput/NumberInput.js +9 -11
  31. package/dist/components/ProgressBar/ProgressBar.js +13 -16
  32. package/dist/components/Radio/Radio.js +55 -37
  33. package/dist/components/Radio/Radio.variants.js +69 -16
  34. package/dist/components/RadioCard/RadioCard.js +41 -0
  35. package/dist/components/RadioCard/RadioCard.variants.js +19 -0
  36. package/dist/components/RadioCardGroup/RadioCardGroup.js +47 -0
  37. package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +21 -0
  38. package/dist/components/RadioGroup/RadioGroup.js +37 -27
  39. package/dist/components/RadioGroup/RadioGroup.variants.js +21 -0
  40. package/dist/components/Range/Range.js +20 -22
  41. package/dist/components/Sidebar/Sidebar.js +20 -22
  42. package/dist/components/Sidebar/components/Footer/Footer.js +9 -12
  43. package/dist/components/Sidebar/components/Logo/Logo.js +9 -12
  44. package/dist/components/Sidebar/components/Navigation/Navigation.js +12 -15
  45. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +12 -15
  46. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +17 -20
  47. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +8 -11
  48. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +10 -13
  49. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -27
  50. package/dist/components/Slider/Slider.js +18 -20
  51. package/dist/components/Switch/Switch.js +19 -21
  52. package/dist/components/TagSelect/TagSelect.js +19 -21
  53. package/dist/components/TextArea/TextArea.js +17 -19
  54. package/dist/components/Toast/Toast.js +52 -54
  55. package/dist/components/Tooltip/Tooltip.js +10 -12
  56. package/dist/components/index.js +50 -44
  57. package/dist/contexts/theme.provider.js +84 -14
  58. package/dist/{index-BaNV0qac.js → index-1GLoikpT.js} +6555 -6585
  59. package/dist/{AlertDialogTrigger-D4Tm_9M0.js → index-BVppSRDQ.js} +19 -21
  60. package/dist/{index-D68N8v8R.js → index-C5psggHV.js} +17 -17
  61. package/dist/{index-z-AJyzdv.js → index-CJsYodgi.js} +10 -10
  62. package/dist/{index-BedjZUuB.js → index-CoqDsznq.js} +1 -1
  63. package/dist/{index-BtibbG81.js → index-KEdwcThH.js} +1 -1
  64. package/dist/index.d.ts +522 -4
  65. package/dist/index.js +59 -53
  66. package/dist/package.json +1 -1
  67. package/dist/plugins/konstruct.js +3 -3
  68. package/dist/styles.css +1 -1
  69. package/dist/styles.js +1 -1
  70. package/dist/useBreadcrumb-CojbXFVD.js +1279 -0
  71. package/dist/{x-CRBgmX1Q.js → x-DU-Zw-L_.js} +1 -1
  72. package/package.json +1 -1
  73. package/dist/components/AlertDialog/AlertDialog.d.ts +0 -3
  74. package/dist/components/AlertDialog/AlertDialog.types.d.ts +0 -18
  75. package/dist/components/AlertDialog/AlertDialog.types.js +0 -1
  76. package/dist/components/AlertDialog/AlertDialog.variants.d.ts +0 -3
  77. package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +0 -3
  78. package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +0 -6
  79. package/dist/components/AlertDialog/components/AlertDialogTrigger.types.js +0 -1
  80. package/dist/components/AlertDialog/components/index.d.ts +0 -1
  81. package/dist/components/AlertDialog/hooks/index.d.ts +0 -1
  82. package/dist/components/AlertDialog/hooks/useAlertDialog.d.ts +0 -7
  83. package/dist/components/Autocomplete/Autocomplete.d.ts +0 -3
  84. package/dist/components/Autocomplete/Autocomplete.types.d.ts +0 -18
  85. package/dist/components/Autocomplete/Autocomplete.types.js +0 -1
  86. package/dist/components/Autocomplete/Autocomplete.variants.d.ts +0 -8
  87. package/dist/components/Autocomplete/components/List/List.d.ts +0 -3
  88. package/dist/components/Autocomplete/components/List/List.types.d.ts +0 -13
  89. package/dist/components/Autocomplete/components/List/List.types.js +0 -1
  90. package/dist/components/Autocomplete/components/List/List.variants.d.ts +0 -16
  91. package/dist/components/Autocomplete/components/index.d.ts +0 -1
  92. package/dist/components/Autocomplete/hooks/index.d.ts +0 -2
  93. package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +0 -17
  94. package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +0 -10
  95. package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -3
  96. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -11
  97. package/dist/components/Breadcrumb/Breadcrumb.types.js +0 -1
  98. package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +0 -12
  99. package/dist/components/Breadcrumb/hooks/useBreadcrumb.d.ts +0 -3
  100. package/dist/components/Button/Button.d.ts +0 -4
  101. package/dist/components/Button/Button.types.d.ts +0 -7
  102. package/dist/components/Button/Button.types.js +0 -1
  103. package/dist/components/Button/Button.variants.d.ts +0 -7
  104. package/dist/components/Card/Card.d.ts +0 -4
  105. package/dist/components/Card/Card.types.d.ts +0 -8
  106. package/dist/components/Card/Card.types.js +0 -1
  107. package/dist/components/Card/Card.variants.d.ts +0 -10
  108. package/dist/components/Checkbox/Checkbox.d.ts +0 -3
  109. package/dist/components/Checkbox/Checkbox.types.d.ts +0 -14
  110. package/dist/components/Checkbox/Checkbox.types.js +0 -1
  111. package/dist/components/Checkbox/Checkbox.variants.d.ts +0 -9
  112. package/dist/components/Dropdown/Dropdown.d.ts +0 -3
  113. package/dist/components/Dropdown/Dropdown.types.d.ts +0 -16
  114. package/dist/components/Dropdown/Dropdown.types.js +0 -1
  115. package/dist/components/Dropdown/Dropdown.variants.d.ts +0 -3
  116. package/dist/components/Dropdown/components/EmptyList.d.ts +0 -2
  117. package/dist/components/Dropdown/components/List/List.d.ts +0 -3
  118. package/dist/components/Dropdown/components/List/List.types.d.ts +0 -6
  119. package/dist/components/Dropdown/components/List/List.types.js +0 -1
  120. package/dist/components/Dropdown/components/List/List.variants.d.ts +0 -3
  121. package/dist/components/Dropdown/components/ListItem/ListItem.d.ts +0 -3
  122. package/dist/components/Dropdown/components/ListItem/ListItem.types.d.ts +0 -4
  123. package/dist/components/Dropdown/components/ListItem/ListItem.types.js +0 -1
  124. package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +0 -3
  125. package/dist/components/Dropdown/components/Wrapper.d.ts +0 -3
  126. package/dist/components/Dropdown/components/index.d.ts +0 -3
  127. package/dist/components/Dropdown/contexts/dropdown.context.d.ts +0 -8
  128. package/dist/components/Dropdown/contexts/dropdown.hook.d.ts +0 -2
  129. package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +0 -5
  130. package/dist/components/Dropdown/contexts/index.d.ts +0 -2
  131. package/dist/components/Dropdown/hooks/useDropdown.d.ts +0 -11
  132. package/dist/components/Dropdown/hooks/useNavigationList.d.ts +0 -8
  133. package/dist/components/Input/Input.d.ts +0 -3
  134. package/dist/components/Input/Input.types.d.ts +0 -9
  135. package/dist/components/Input/Input.types.js +0 -1
  136. package/dist/components/Input/Input.variants.d.ts +0 -4
  137. package/dist/components/Modal/Modal.d.ts +0 -8
  138. package/dist/components/Modal/Modal.types.d.ts +0 -12
  139. package/dist/components/Modal/Modal.types.js +0 -1
  140. package/dist/components/Modal/components/Body/Body.d.ts +0 -3
  141. package/dist/components/Modal/components/Body/Body.types.d.ts +0 -5
  142. package/dist/components/Modal/components/Body/Body.types.js +0 -1
  143. package/dist/components/Modal/components/Footer/Footer.d.ts +0 -3
  144. package/dist/components/Modal/components/Footer/Footer.types.d.ts +0 -5
  145. package/dist/components/Modal/components/Footer/Footer.types.js +0 -1
  146. package/dist/components/Modal/components/Header/Header.d.ts +0 -3
  147. package/dist/components/Modal/components/Header/Header.types.d.ts +0 -5
  148. package/dist/components/Modal/components/Header/Header.types.js +0 -1
  149. package/dist/components/Modal/components/Wrapper/Wrapper.d.ts +0 -3
  150. package/dist/components/Modal/components/Wrapper/Wrapper.types.d.ts +0 -7
  151. package/dist/components/Modal/components/Wrapper/Wrapper.types.js +0 -1
  152. package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +0 -6
  153. package/dist/components/Modal/components/index.d.ts +0 -4
  154. package/dist/components/Modal/contexts/Modal.context.d.ts +0 -2
  155. package/dist/components/Modal/contexts/Modal.provider.d.ts +0 -4
  156. package/dist/components/Modal/contexts/Modal.types.d.ts +0 -9
  157. package/dist/components/Modal/contexts/Modal.types.js +0 -1
  158. package/dist/components/Modal/contexts/index.d.ts +0 -1
  159. package/dist/components/Modal/hooks/index.d.ts +0 -1
  160. package/dist/components/Modal/hooks/useModal.d.ts +0 -9
  161. package/dist/components/NumberInput/NumberInput.d.ts +0 -3
  162. package/dist/components/NumberInput/NumberInput.types.d.ts +0 -11
  163. package/dist/components/NumberInput/NumberInput.types.js +0 -1
  164. package/dist/components/NumberInput/NumberInput.variants.d.ts +0 -11
  165. package/dist/components/ProgressBar/ProgressBar.d.ts +0 -3
  166. package/dist/components/ProgressBar/ProgressBar.types.d.ts +0 -8
  167. package/dist/components/ProgressBar/ProgressBar.types.js +0 -1
  168. package/dist/components/ProgressBar/ProgressBar.variants.d.ts +0 -7
  169. package/dist/components/Radio/Radio.d.ts +0 -3
  170. package/dist/components/Radio/Radio.types.d.ts +0 -12
  171. package/dist/components/Radio/Radio.types.js +0 -1
  172. package/dist/components/Radio/Radio.variants.d.ts +0 -3
  173. package/dist/components/RadioGroup/RadioGroup.d.ts +0 -3
  174. package/dist/components/RadioGroup/RadioGroup.types.d.ts +0 -12
  175. package/dist/components/RadioGroup/RadioGroup.types.js +0 -1
  176. package/dist/components/Range/Range.d.ts +0 -3
  177. package/dist/components/Range/Range.types.d.ts +0 -13
  178. package/dist/components/Range/Range.types.js +0 -1
  179. package/dist/components/Range/Range.variants.d.ts +0 -14
  180. package/dist/components/Sidebar/Sidebar.d.ts +0 -5
  181. package/dist/components/Sidebar/Sidebar.types.d.ts +0 -18
  182. package/dist/components/Sidebar/Sidebar.types.js +0 -1
  183. package/dist/components/Sidebar/Sidebar.variants.d.ts +0 -6
  184. package/dist/components/Sidebar/components/Footer/Footer.d.ts +0 -3
  185. package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +0 -6
  186. package/dist/components/Sidebar/components/Footer/Footer.types.js +0 -1
  187. package/dist/components/Sidebar/components/Footer/Footer.variants.d.ts +0 -3
  188. package/dist/components/Sidebar/components/Logo/Logo.d.ts +0 -3
  189. package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +0 -6
  190. package/dist/components/Sidebar/components/Logo/Logo.types.js +0 -1
  191. package/dist/components/Sidebar/components/Logo/Logo.variants.d.ts +0 -3
  192. package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +0 -4
  193. package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +0 -16
  194. package/dist/components/Sidebar/components/Navigation/Navigation.types.js +0 -1
  195. package/dist/components/Sidebar/components/Navigation/Navigation.variants.d.ts +0 -3
  196. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +0 -3
  197. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +0 -8
  198. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.js +0 -1
  199. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +0 -3
  200. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +0 -3
  201. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +0 -17
  202. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.js +0 -1
  203. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +0 -4
  204. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +0 -3
  205. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +0 -5
  206. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.js +0 -1
  207. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +0 -3
  208. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +0 -3
  209. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +0 -8
  210. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.js +0 -1
  211. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +0 -3
  212. package/dist/components/Sidebar/components/Wrapper/Wrapper.d.ts +0 -3
  213. package/dist/components/Sidebar/components/index.d.ts +0 -15
  214. package/dist/components/Slider/Slider.d.ts +0 -3
  215. package/dist/components/Slider/Slider.types.d.ts +0 -13
  216. package/dist/components/Slider/Slider.types.js +0 -1
  217. package/dist/components/Slider/Slider.variants.d.ts +0 -11
  218. package/dist/components/Switch/Switch.d.ts +0 -3
  219. package/dist/components/Switch/Switch.types.d.ts +0 -10
  220. package/dist/components/Switch/Switch.types.js +0 -1
  221. package/dist/components/Switch/Switch.variants.d.ts +0 -6
  222. package/dist/components/Tag/Tag.d.ts +0 -3
  223. package/dist/components/Tag/Tag.types.d.ts +0 -4
  224. package/dist/components/Tag/Tag.types.js +0 -1
  225. package/dist/components/Tag/Tag.variants.d.ts +0 -3
  226. package/dist/components/TagSelect/TagSelect.d.ts +0 -3
  227. package/dist/components/TagSelect/TagSelect.types.d.ts +0 -9
  228. package/dist/components/TagSelect/TagSelect.types.js +0 -1
  229. package/dist/components/TagSelect/TagSelect.variants.d.ts +0 -9
  230. package/dist/components/TagSelect/hooks/useTagSelect.d.ts +0 -9
  231. package/dist/components/TextArea/TextArea.d.ts +0 -3
  232. package/dist/components/TextArea/TextArea.types.d.ts +0 -10
  233. package/dist/components/TextArea/TextArea.types.js +0 -1
  234. package/dist/components/TextArea/TextArea.variants.d.ts +0 -3
  235. package/dist/components/Toast/Toast.d.ts +0 -3
  236. package/dist/components/Toast/Toast.types.d.ts +0 -12
  237. package/dist/components/Toast/Toast.types.js +0 -1
  238. package/dist/components/Toast/Toast.variants.d.ts +0 -9
  239. package/dist/components/Tooltip/Tooltip.d.ts +0 -3
  240. package/dist/components/Tooltip/Tooltip.types.d.ts +0 -8
  241. package/dist/components/Tooltip/Tooltip.types.js +0 -1
  242. package/dist/components/Tooltip/Tooltip.variants.d.ts +0 -8
  243. package/dist/components/Tooltip/hooks/useTooltip.d.ts +0 -4
  244. package/dist/components/index.d.ts +0 -21
  245. package/dist/contexts/index.d.ts +0 -3
  246. package/dist/contexts/theme.context.d.ts +0 -6
  247. package/dist/contexts/theme.hook.d.ts +0 -7
  248. package/dist/contexts/theme.provider.d.ts +0 -6
  249. package/dist/hooks/index.d.ts +0 -1
  250. package/dist/hooks/useToggle.d.ts +0 -1
  251. package/dist/js.cookie-OLEfuq_g.js +0 -74
  252. package/dist/plugins/index.d.ts +0 -1
  253. package/dist/plugins/konstruct.d.ts +0 -4
  254. package/dist/plugins/utils/colors.d.ts +0 -328
  255. package/dist/styles.d.ts +0 -0
  256. package/dist/useBreadcrumb-DxYsZvj_.js +0 -1398
  257. package/dist/utils/index.d.ts +0 -4
@@ -1,5 +1,5 @@
1
1
  import l, { forwardRef as c } from "react";
2
- import { P as a } from "./index-D68N8v8R.js";
2
+ import { P as a } from "./index-C5psggHV.js";
3
3
  function p() {
4
4
  return p = Object.assign || function(e) {
5
5
  for (var o = 1; o < arguments.length; o++) {
@@ -1,52 +1,49 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { R as C, A as b, P as y, O as N, C as O, T as A, D, a as T, b as v } from "../../AlertDialogTrigger-D4Tm_9M0.js";
3
- import "../../contexts/theme.context.js";
4
- import { useTheme as j } from "../../contexts/theme.hook.js";
5
- import "react";
6
- import "../../js.cookie-OLEfuq_g.js";
7
- import { cn as r } from "../../utils/index.js";
8
- import { Button as l } from "../Button/Button.js";
9
- import { useAlertDialog as k } from "./hooks/useAlertDialog.js";
10
- const G = ({
2
+ import { R as C, A as b, P as y, O as N, C as O, T as A, D, a as T, b as v } from "../../index-BVppSRDQ.js";
3
+ import { cn as l } from "../../utils/index.js";
4
+ import { Button as r } from "../Button/Button.js";
5
+ import { useAlertDialog as j } from "./hooks/useAlertDialog.js";
6
+ import { useTheme as k } from "../../contexts/theme.hook.js";
7
+ const z = ({
11
8
  buttonCancelClassName: o,
12
9
  buttonCancelText: i = "Cancel",
13
10
  buttonConfirmClassName: s,
14
11
  buttonConfirmText: c = "OK",
15
- buttonText: m,
16
- description: d,
12
+ buttonText: d,
13
+ description: m,
17
14
  theme: a,
18
- title: p,
19
- onConfirm: h
15
+ title: h,
16
+ onConfirm: p
20
17
  }) => {
21
- const { theme: n } = j(), { isOpen: f, handleCancel: x, handleConfirm: g, handleOpen: u } = k({
22
- onConfirm: h
18
+ const { theme: n } = k(), { isOpen: f, handleCancel: x, handleConfirm: g, handleOpen: u } = j({
19
+ onConfirm: p
23
20
  });
24
21
  return /* @__PURE__ */ t(C, { open: f, children: [
25
- /* @__PURE__ */ e(b, { text: m, theme: a, onOpen: u }),
22
+ /* @__PURE__ */ e(b, { text: d, theme: a, onOpen: u }),
26
23
  /* @__PURE__ */ t(y, { children: [
27
24
  /* @__PURE__ */ e(N, { className: "bg-black opacity-75 inset-0 fixed" }),
28
25
  /* @__PURE__ */ t(O, { className: "bg-white rounded-md fixed top-1/2 left-1/2 -translate-y-2/4 -translate-x-2/4 flex flex-col gap-8 p-6", children: [
29
- /* @__PURE__ */ e(A, { className: "font-bold text-center text-2xl", children: p }),
30
- /* @__PURE__ */ e(D, { children: d }),
26
+ /* @__PURE__ */ e(A, { className: "font-bold text-center text-2xl", children: h }),
27
+ /* @__PURE__ */ e(D, { children: m }),
31
28
  /* @__PURE__ */ t("div", { className: "flex flex-row gap-5 justify-end", children: [
32
29
  /* @__PURE__ */ e(T, { asChild: !0, children: /* @__PURE__ */ e(
33
- l,
30
+ r,
34
31
  {
35
32
  type: "button",
36
33
  theme: a ?? n,
37
34
  variant: "secondary",
38
- className: r(o),
35
+ className: l(o),
39
36
  onClick: x,
40
37
  children: i
41
38
  }
42
39
  ) }),
43
40
  /* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(
44
- l,
41
+ r,
45
42
  {
46
43
  type: "button",
47
44
  theme: a ?? n,
48
45
  variant: "danger",
49
- className: r(s),
46
+ className: l(s),
50
47
  onClick: g,
51
48
  children: c
52
49
  }
@@ -57,5 +54,5 @@ const G = ({
57
54
  ] });
58
55
  };
59
56
  export {
60
- G as AlertDialog
57
+ z as AlertDialog
61
58
  };
@@ -1,10 +1,7 @@
1
1
  import "react/jsx-runtime";
2
- import { A as a } from "../../../AlertDialogTrigger-D4Tm_9M0.js";
3
- import "../../../contexts/theme.context.js";
4
- import "../../../contexts/theme.hook.js";
5
- import "react";
6
- import "../../../js.cookie-OLEfuq_g.js";
2
+ import { A as p } from "../../../index-BVppSRDQ.js";
7
3
  import "../../Button/Button.js";
4
+ import "../../../contexts/theme.hook.js";
8
5
  export {
9
- a as AlertDialogTrigger
6
+ p as AlertDialogTrigger
10
7
  };
@@ -1,4 +1,4 @@
1
- import { A as g } from "../../../AlertDialogTrigger-D4Tm_9M0.js";
1
+ import { A as g } from "../../../index-BVppSRDQ.js";
2
2
  export {
3
3
  g as AlertDialogTrigger
4
4
  };
@@ -1,12 +1,10 @@
1
1
  import { jsxs as R, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as A, useRef as p, useId as O, useImperativeHandle as T } from "react";
3
- import "../../contexts/theme.context.js";
4
- import { useTheme as V } from "../../contexts/theme.hook.js";
5
- import "../../js.cookie-OLEfuq_g.js";
6
- import { cn as c } from "../../utils/index.js";
7
- import { useAutocomplete as g } from "./hooks/useAutocomplete.js";
8
- import { List as j } from "./components/List/List.js";
9
- import { labelVariants as y, autocompleteVariants as I } from "./Autocomplete.variants.js";
2
+ import { forwardRef as A, useRef as i, useId as O, useImperativeHandle as T } from "react";
3
+ import { cn as p } from "../../utils/index.js";
4
+ import { labelVariants as V, autocompleteVariants as g } from "./Autocomplete.variants.js";
5
+ import { useAutocomplete as j } from "./hooks/useAutocomplete.js";
6
+ import { List as y } from "./components/List/List.js";
7
+ import { useTheme as I } from "../../contexts/theme.hook.js";
10
8
  const k = A(
11
9
  ({
12
10
  autoComplete: u = "off",
@@ -22,9 +20,9 @@ const k = A(
22
20
  variant: r,
23
21
  onChange: b
24
22
  }, v) => {
25
- const s = p(null), o = p(null), i = O(), { theme: C } = V(), m = N ?? C;
23
+ const s = i(null), o = i(null), c = O(), { theme: C } = I(), m = N ?? C;
26
24
  T(v, () => o.current, [o]);
27
- const e = g({
25
+ const e = j({
28
26
  options: f,
29
27
  inputRef: o,
30
28
  wrapperRef: s,
@@ -34,9 +32,9 @@ const k = A(
34
32
  n ? /* @__PURE__ */ t(
35
33
  "label",
36
34
  {
37
- htmlFor: l ?? i,
38
- className: c(
39
- y({
35
+ htmlFor: l ?? c,
36
+ className: p(
37
+ V({
40
38
  theme: m,
41
39
  variant: r,
42
40
  className: d
@@ -49,13 +47,13 @@ const k = A(
49
47
  "input",
50
48
  {
51
49
  ref: o,
52
- id: l ?? i,
50
+ id: l ?? c,
53
51
  type: "text",
54
52
  name: l,
55
53
  role: "combobox",
56
54
  autoComplete: u,
57
- className: c(
58
- I({
55
+ className: p(
56
+ g({
59
57
  theme: m,
60
58
  variant: r,
61
59
  className: a
@@ -68,7 +66,7 @@ const k = A(
68
66
  }
69
67
  ),
70
68
  e.showOptions && /* @__PURE__ */ t("div", { className: "absolute z-10 top-full w-full rounded-md mt-1 border shadow-sm", children: /* @__PURE__ */ t(
71
- j,
69
+ y,
72
70
  {
73
71
  className: a,
74
72
  inputRef: o,
@@ -1,8 +1,8 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { useRef as u } from "react";
3
3
  import { cn as l } from "../../../../utils/index.js";
4
- import { useNavigationUlList as b } from "../../hooks/useNavigationList.js";
5
- import { emptyListVariants as N, listVariants as d, listItemVariants as x, buttonVariants as V } from "./List.variants.js";
4
+ import { emptyListVariants as b, listVariants as N, listItemVariants as d, buttonVariants as x } from "./List.variants.js";
5
+ import { useNavigationUlList as V } from "../../hooks/useNavigationList.js";
6
6
  const R = ({
7
7
  className: e,
8
8
  inputRef: a,
@@ -15,11 +15,11 @@ const R = ({
15
15
  onClick: p
16
16
  }) => {
17
17
  const n = u(null);
18
- return b({ ulRef: n, inputRef: a, wrapperRef: f, options: o }), o.length === 0 ? /* @__PURE__ */ s(
18
+ return V({ ulRef: n, inputRef: a, wrapperRef: f, options: o }), o.length === 0 ? /* @__PURE__ */ s(
19
19
  "span",
20
20
  {
21
21
  className: l(
22
- N({
22
+ b({
23
23
  theme: r,
24
24
  variant: t,
25
25
  className: c
@@ -32,19 +32,19 @@ const R = ({
32
32
  {
33
33
  ref: n,
34
34
  role: "listbox",
35
- className: l(d({ variant: t, theme: r, className: e })),
35
+ className: l(N({ variant: t, theme: r, className: e })),
36
36
  children: o.map(({ value: i }) => /* @__PURE__ */ s(
37
37
  "li",
38
38
  {
39
39
  role: "option",
40
40
  tabIndex: 0,
41
- className: l(x({ theme: r, variant: t })),
41
+ className: l(d({ theme: r, variant: t })),
42
42
  children: /* @__PURE__ */ s(
43
43
  "button",
44
44
  {
45
45
  type: "button",
46
46
  role: "button",
47
- className: l(V({ theme: r, variant: t })),
47
+ className: l(x({ theme: r, variant: t })),
48
48
  onClick: () => p(i),
49
49
  children: i
50
50
  }
@@ -1,110 +1,109 @@
1
- import { jsx as a, jsxs as g, Fragment as b } from "react/jsx-runtime";
2
- import d, { forwardRef as y, Fragment as O } from "react";
3
- import "../../contexts/theme.context.js";
4
- import { useTheme as j } from "../../contexts/theme.hook.js";
5
- import "../../js.cookie-OLEfuq_g.js";
6
- import { cn as h } from "../../utils/index.js";
7
- import { breadcrumbVariants as w, breadcrumbItemVariants as x, chevronVariants as P } from "./Breadcrumb.variants.js";
8
- import { u as k, L as N } from "../../useBreadcrumb-DxYsZvj_.js";
9
- import { P as c } from "../../index-D68N8v8R.js";
10
- function f() {
11
- return f = Object.assign || function(e) {
1
+ import { jsx as a, jsxs as y } from "react/jsx-runtime";
2
+ import d, { forwardRef as O, useId as j, Fragment as w } from "react";
3
+ import { cn as c } from "../../utils/index.js";
4
+ import { breadcrumbWrapperVariants as x, breadcrumbVariants as P, chevronVariants as T } from "./Breadcrumb.variants.js";
5
+ import { Item as k } from "./components/Item/Item.js";
6
+ import { P as s } from "../../index-C5psggHV.js";
7
+ import { useTheme as N } from "../../contexts/theme.hook.js";
8
+ function h() {
9
+ return h = Object.assign || function(e) {
12
10
  for (var n = 1; n < arguments.length; n++) {
13
- var t = arguments[n];
14
- for (var r in t)
15
- Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
11
+ var r = arguments[n];
12
+ for (var t in r)
13
+ Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
16
14
  }
17
15
  return e;
18
- }, f.apply(this, arguments);
16
+ }, h.apply(this, arguments);
19
17
  }
20
- function T(e, n) {
18
+ function _(e, n) {
21
19
  if (e == null) return {};
22
- var t = L(e, n), r, o;
20
+ var r = L(e, n), t, o;
23
21
  if (Object.getOwnPropertySymbols) {
24
22
  var i = Object.getOwnPropertySymbols(e);
25
23
  for (o = 0; o < i.length; o++)
26
- r = i[o], !(n.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (t[r] = e[r]);
24
+ t = i[o], !(n.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
27
25
  }
28
- return t;
26
+ return r;
29
27
  }
30
28
  function L(e, n) {
31
29
  if (e == null) return {};
32
- var t = {}, r = Object.keys(e), o, i;
33
- for (i = 0; i < r.length; i++)
34
- o = r[i], !(n.indexOf(o) >= 0) && (t[o] = e[o]);
35
- return t;
30
+ var r = {}, t = Object.keys(e), o, i;
31
+ for (i = 0; i < t.length; i++)
32
+ o = t[i], !(n.indexOf(o) >= 0) && (r[o] = e[o]);
33
+ return r;
36
34
  }
37
- var p = y(function(e, n) {
38
- var t = e.color, r = t === void 0 ? "currentColor" : t, o = e.size, i = o === void 0 ? 24 : o, s = T(e, ["color", "size"]);
39
- return /* @__PURE__ */ d.createElement("svg", f({
35
+ var p = O(function(e, n) {
36
+ var r = e.color, t = r === void 0 ? "currentColor" : r, o = e.size, i = o === void 0 ? 24 : o, l = _(e, ["color", "size"]);
37
+ return /* @__PURE__ */ d.createElement("svg", h({
40
38
  ref: n,
41
39
  xmlns: "http://www.w3.org/2000/svg",
42
40
  width: i,
43
41
  height: i,
44
42
  viewBox: "0 0 24 24",
45
43
  fill: "none",
46
- stroke: r,
44
+ stroke: t,
47
45
  strokeWidth: "2",
48
46
  strokeLinecap: "round",
49
47
  strokeLinejoin: "round"
50
- }, s), /* @__PURE__ */ d.createElement("polyline", {
48
+ }, l), /* @__PURE__ */ d.createElement("polyline", {
51
49
  points: "9 18 15 12 9 6"
52
50
  }));
53
51
  });
54
52
  p.propTypes = {
55
- color: c.string,
56
- size: c.oneOfType([c.string, c.number])
53
+ color: s.string,
54
+ size: s.oneOfType([s.string, s.number])
57
55
  };
58
56
  p.displayName = "ChevronRight";
59
- const W = ({
57
+ const V = ({
60
58
  className: e,
61
59
  size: n,
62
- steps: t,
63
- theme: r
60
+ steps: r,
61
+ theme: t,
62
+ "aria-label": o = "breadcrumb",
63
+ wrapperClassName: i,
64
+ ...l
64
65
  }) => {
65
- const { theme: o } = j(), { isInsideRouter: i } = k(), s = r ?? o;
66
- return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", children: /* @__PURE__ */ a(
67
- "ol",
66
+ const g = j(), { theme: v } = N(), m = t ?? v;
67
+ return /* @__PURE__ */ a(
68
+ "nav",
68
69
  {
69
- className: h(
70
- w({ theme: s, className: e, size: n })
70
+ "aria-label": o,
71
+ className: c(
72
+ x({
73
+ className: i,
74
+ theme: m
75
+ })
71
76
  ),
72
- children: t.map(({ label: m, to: l, target: u }, v) => /* @__PURE__ */ g(O, { children: [
73
- /* @__PURE__ */ a(
74
- "li",
75
- {
76
- className: h(
77
- x({ theme: s, size: n })
78
- ),
79
- children: l ? /* @__PURE__ */ a(b, { children: i ? /* @__PURE__ */ a(
80
- N,
77
+ children: /* @__PURE__ */ a(
78
+ "ol",
79
+ {
80
+ className: c(
81
+ P({ theme: m, className: e, size: n })
82
+ ),
83
+ ...l,
84
+ children: r.map(({ label: f, ...b }, u) => /* @__PURE__ */ y(w, { children: [
85
+ /* @__PURE__ */ a(
86
+ k,
81
87
  {
82
- to: l,
83
- target: u,
84
- className: "hover:underline hover:underline-offset-2",
85
- children: m
88
+ ...b,
89
+ label: f,
90
+ isLast: u === r.length - 1,
91
+ size: n,
92
+ theme: m
86
93
  }
87
- ) : /* @__PURE__ */ a(
88
- "a",
94
+ ),
95
+ u !== r.length - 1 && /* @__PURE__ */ a("li", { "aria-hidden": "true", children: /* @__PURE__ */ a(
96
+ p,
89
97
  {
90
- href: l,
91
- target: u,
92
- className: "hover:underline hover:underline-offset-2",
93
- children: m
98
+ className: c(T({ size: n, theme: m }))
94
99
  }
95
- ) }) : /* @__PURE__ */ a("span", { "aria-current": "page", children: m })
96
- }
97
- ),
98
- v !== t.length - 1 && /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(
99
- p,
100
- {
101
- className: h(P({ size: n, theme: s }))
102
- }
103
- ) })
104
- ] }, m))
100
+ ) })
101
+ ] }, `${g}-${f}`))
102
+ }
103
+ )
105
104
  }
106
- ) });
105
+ );
107
106
  };
108
107
  export {
109
- W as Breadcrumb
108
+ V as Breadcrumb
110
109
  };
@@ -1,5 +1,5 @@
1
1
  import { c as e } from "../../index-BNmRGtA6.js";
2
- const s = e(["flex", "gap-1.5", "items-center"], {
2
+ const a = e(["text-slate-500"], {
3
3
  variants: {
4
4
  theme: {
5
5
  kubefirst: "",
@@ -14,10 +14,9 @@ const s = e(["flex", "gap-1.5", "items-center"], {
14
14
  }
15
15
  },
16
16
  defaultVariants: {
17
- theme: "kubefirst",
18
- size: "base"
17
+ theme: "kubefirst"
19
18
  }
20
- }), a = e(["text-slate-400", "font-semibold"], {
19
+ }), s = e(["flex", "gap-1", "items-center"], {
21
20
  variants: {
22
21
  theme: {
23
22
  kubefirst: "",
@@ -25,28 +24,28 @@ const s = e(["flex", "gap-1.5", "items-center"], {
25
24
  civo: ""
26
25
  },
27
26
  size: {
28
- sm: "text-sm",
29
- base: "text-base",
30
- lg: "text-lg",
31
- xl: "text-xl"
27
+ sm: "",
28
+ base: "",
29
+ lg: "",
30
+ xl: ""
32
31
  }
33
32
  },
34
33
  defaultVariants: {
35
34
  theme: "kubefirst",
36
35
  size: "base"
37
36
  }
38
- }), i = e("", {
37
+ }), r = e("text-[#abadc6]", {
39
38
  variants: {
40
39
  theme: {
41
- kubefirst: "text-kubefirst-primary",
42
- colony: "text-red-500",
40
+ kubefirst: "",
41
+ colony: "",
43
42
  civo: ""
44
43
  },
45
44
  size: {
46
- sm: ["w-2", "h-2"],
47
- base: ["w-3", "h-3"],
48
- lg: ["w-4", "h-4"],
49
- xl: ["w-5", "h-5"]
45
+ sm: ["w-3", "h-3"],
46
+ base: ["w-4", "h-4"],
47
+ lg: ["w-5", "h-5"],
48
+ xl: ["w-6", "h-6"]
50
49
  }
51
50
  },
52
51
  defaultVariants: {
@@ -55,7 +54,7 @@ const s = e(["flex", "gap-1.5", "items-center"], {
55
54
  }
56
55
  });
57
56
  export {
58
- a as breadcrumbItemVariants,
59
57
  s as breadcrumbVariants,
60
- i as chevronVariants
58
+ a as breadcrumbWrapperVariants,
59
+ r as chevronVariants
61
60
  };
@@ -0,0 +1,61 @@
1
+ import { jsx as r, Fragment as p } from "react/jsx-runtime";
2
+ import { cn as n } from "../../../../utils/index.js";
3
+ import { u as b, L as k } from "../../../../useBreadcrumb-CojbXFVD.js";
4
+ import { breadcrumbItemVariants as L, breadcrumbLinkVariants as c, breadcrumbLabelVariants as N } from "./Item.variants.js";
5
+ import { useTheme as x } from "../../../../contexts/theme.hook.js";
6
+ const j = ({
7
+ isActive: e,
8
+ isLast: o,
9
+ label: s,
10
+ size: d,
11
+ target: t,
12
+ theme: h,
13
+ to: a
14
+ }) => {
15
+ const { theme: l } = x(), { isInsideRouter: u } = b(), m = h ?? l, i = (f) => {
16
+ a === "#" && f.preventDefault();
17
+ };
18
+ return /* @__PURE__ */ r(
19
+ "li",
20
+ {
21
+ "aria-current": o ? "page" : void 0,
22
+ className: n(L({ theme: m, size: d })),
23
+ children: a ? /* @__PURE__ */ r(p, { children: u ? /* @__PURE__ */ r(
24
+ k,
25
+ {
26
+ to: a,
27
+ target: t,
28
+ className: n(
29
+ c({ theme: m, isActive: e })
30
+ ),
31
+ "aria-disabled": e ? "true" : "false",
32
+ onClick: i,
33
+ children: s
34
+ }
35
+ ) : /* @__PURE__ */ r(
36
+ "a",
37
+ {
38
+ href: a,
39
+ target: t,
40
+ className: n(
41
+ c({ theme: m, isActive: e })
42
+ ),
43
+ "aria-disabled": e ? "true" : "false",
44
+ onClick: i,
45
+ children: s
46
+ }
47
+ ) }) : /* @__PURE__ */ r(
48
+ "span",
49
+ {
50
+ className: n(
51
+ N({ theme: m, isActive: e })
52
+ ),
53
+ children: s
54
+ }
55
+ )
56
+ }
57
+ );
58
+ };
59
+ export {
60
+ j as Item
61
+ };
@@ -0,0 +1,90 @@
1
+ import { c as t } from "../../../../index-BNmRGtA6.js";
2
+ const i = t(
3
+ ["group", "font-semibold", "text-inherit"],
4
+ {
5
+ variants: {
6
+ theme: {
7
+ kubefirst: "",
8
+ colony: "",
9
+ civo: ""
10
+ },
11
+ size: {
12
+ sm: "text-xs",
13
+ base: "text-sm",
14
+ lg: "text-base",
15
+ xl: "text-lg"
16
+ }
17
+ },
18
+ defaultVariants: {
19
+ theme: "kubefirst",
20
+ size: "base"
21
+ }
22
+ }
23
+ ), o = t(["text-inherit"], {
24
+ variants: {
25
+ theme: {
26
+ kubefirst: "",
27
+ colony: "",
28
+ civo: ""
29
+ },
30
+ isActive: {
31
+ true: "",
32
+ false: ["text-slate-400", "cursor-auto"]
33
+ }
34
+ },
35
+ defaultVariants: {
36
+ theme: "kubefirst",
37
+ isActive: !0
38
+ },
39
+ compoundVariants: [
40
+ {
41
+ isActive: !0,
42
+ class: [
43
+ "group-focus-within:no-underline",
44
+ "group-focus-within:outline",
45
+ "group-focus-within:outline-8",
46
+ "group-focus-within:outline-offset-4",
47
+ "group-focus-within:outline-slate-500",
48
+ "group-focus-within:rounded-sm",
49
+ "group-hover:rounded-sm",
50
+ "hover:no-underline",
51
+ "hover:text-slate-500"
52
+ ]
53
+ },
54
+ {
55
+ isActive: void 0,
56
+ class: [
57
+ "group-focus-within:no-underline",
58
+ "group-focus-within:outline",
59
+ "group-focus-within:outline-8",
60
+ "group-focus-within:outline-offset-4",
61
+ "group-focus-within:outline-slate-500",
62
+ "group-focus-within:rounded-sm",
63
+ "group-hover:rounded-sm",
64
+ "hover:no-underline",
65
+ "hover:text-slate-500"
66
+ ]
67
+ }
68
+ ]
69
+ }), s = t(["text-inherit"], {
70
+ variants: {
71
+ theme: {
72
+ kubefirst: "",
73
+ colony: "",
74
+ civo: ""
75
+ },
76
+ isActive: {
77
+ true: "",
78
+ false: ["text-slate-400"]
79
+ }
80
+ },
81
+ defaultVariants: {
82
+ theme: "kubefirst",
83
+ isActive: !0
84
+ }
85
+ });
86
+ export {
87
+ i as breadcrumbItemVariants,
88
+ s as breadcrumbLabelVariants,
89
+ o as breadcrumbLinkVariants
90
+ };
@@ -0,0 +1,4 @@
1
+ import { Item as o } from "./Item/Item.js";
2
+ export {
3
+ o as Item
4
+ };
@@ -1,5 +1,4 @@
1
- import "react";
2
- import { u as o } from "../../../useBreadcrumb-DxYsZvj_.js";
1
+ import { u } from "../../../useBreadcrumb-CojbXFVD.js";
3
2
  export {
4
- o as useBreadcrumb
3
+ u as useBreadcrumb
5
4
  };