@konstructio/ui 0.0.12-alpha.0 → 0.0.12-alpha.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.
Files changed (277) hide show
  1. package/dist/{Combination-Cmu9JRkv.js → Combination-b348x__d.js} +89 -89
  2. package/dist/Modal-DZUwNzSW.js +914 -0
  3. package/dist/{chevron-up-CvquEaNg.js → chevron-up-DgLBQCKD.js} +1 -1
  4. package/dist/components/Alert/Alert.js +58 -0
  5. package/dist/components/Alert/Alert.variants.js +77 -0
  6. package/dist/components/AlertDialog/AlertDialog.js +20 -23
  7. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -6
  8. package/dist/components/AlertDialog/components/index.js +1 -1
  9. package/dist/components/Autocomplete/Autocomplete.js +15 -17
  10. package/dist/components/Autocomplete/components/List/List.js +7 -7
  11. package/dist/components/Breadcrumb/Breadcrumb.js +68 -69
  12. package/dist/components/Breadcrumb/Breadcrumb.variants.js +16 -17
  13. package/dist/components/Breadcrumb/components/Item/Item.js +61 -0
  14. package/dist/components/Breadcrumb/components/Item/Item.variants.js +90 -0
  15. package/dist/components/Breadcrumb/components/index.js +4 -0
  16. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -3
  17. package/dist/components/Button/Button.js +15 -17
  18. package/dist/components/Card/Card.js +11 -13
  19. package/dist/components/Checkbox/Checkbox.js +16 -18
  20. package/dist/components/Divider/Divider.js +10 -0
  21. package/dist/components/Divider/Divider.variants.js +14 -0
  22. package/dist/components/Dropdown/Dropdown.js +4 -6
  23. package/dist/components/Dropdown/components/List/List.js +9 -10
  24. package/dist/components/Dropdown/components/ListItem/ListItem.js +20 -21
  25. package/dist/components/Dropdown/components/Wrapper.js +31 -34
  26. package/dist/components/Dropdown/contexts/dropdown.provider.js +4 -4
  27. package/dist/components/Dropdown/hooks/useDropdown.js +12 -14
  28. package/dist/components/Dropdown/hooks/useNavigationList.js +8 -10
  29. package/dist/components/Input/Input.js +12 -14
  30. package/dist/components/Loading/Loading.js +28 -0
  31. package/dist/components/Loading/Loading.variants.js +20 -0
  32. package/dist/components/Modal/Modal.js +3 -3
  33. package/dist/components/Modal/components/Body/Body.js +1 -1
  34. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  35. package/dist/components/Modal/components/Header/Header.js +1 -1
  36. package/dist/components/Modal/components/Wrapper/Wrapper.js +7 -9
  37. package/dist/components/Modal/components/index.js +1 -1
  38. package/dist/components/Modal/contexts/Modal.provider.js +4 -4
  39. package/dist/components/NumberInput/NumberInput.js +9 -11
  40. package/dist/components/ProgressBar/ProgressBar.js +12 -15
  41. package/dist/components/Radio/Radio.js +55 -37
  42. package/dist/components/Radio/Radio.variants.js +69 -16
  43. package/dist/components/RadioCard/RadioCard.js +41 -0
  44. package/dist/components/RadioCard/RadioCard.variants.js +19 -0
  45. package/dist/components/RadioCardGroup/RadioCardGroup.js +47 -0
  46. package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +21 -0
  47. package/dist/components/RadioGroup/RadioGroup.js +37 -27
  48. package/dist/components/RadioGroup/RadioGroup.variants.js +21 -0
  49. package/dist/components/Range/Range.js +20 -22
  50. package/dist/components/Sidebar/Sidebar.js +20 -22
  51. package/dist/components/Sidebar/components/Footer/Footer.js +9 -12
  52. package/dist/components/Sidebar/components/Logo/Logo.js +9 -12
  53. package/dist/components/Sidebar/components/Navigation/Navigation.js +12 -15
  54. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +12 -15
  55. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +17 -20
  56. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +8 -11
  57. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +10 -13
  58. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -27
  59. package/dist/components/Slider/Slider.js +11 -13
  60. package/dist/components/Switch/Switch.js +28 -30
  61. package/dist/components/TagSelect/TagSelect.js +18 -20
  62. package/dist/components/TextArea/TextArea.js +17 -19
  63. package/dist/components/Toast/Toast.js +56 -58
  64. package/dist/components/Tooltip/Tooltip.js +10 -12
  65. package/dist/components/Typography/Typography.js +30 -0
  66. package/dist/components/Typography/Typography.variants.js +36 -0
  67. package/dist/components/index.js +64 -50
  68. package/dist/contexts/theme.provider.js +84 -14
  69. package/dist/{AlertDialogTrigger-D4Tm_9M0.js → index-3jTPaVvh.js} +25 -27
  70. package/dist/{index-BxeV34ij.js → index-4ecjw_Aj.js} +1 -1
  71. package/dist/{index-BedjZUuB.js → index-B33at13_.js} +3 -3
  72. package/dist/{index-BaNV0qac.js → index-BTeAm7mx.js} +7113 -7144
  73. package/dist/index-B_6_jmOO.js +68 -0
  74. package/dist/{index-BBjak_0p.js → index-BbsJ0VIJ.js} +2 -2
  75. package/dist/{index-D68N8v8R.js → index-C5psggHV.js} +17 -17
  76. package/dist/{index-z-AJyzdv.js → index-C6WtlN_F.js} +11 -11
  77. package/dist/{index-8vgf-x5i.js → index-Cva-e5M4.js} +2 -2
  78. package/dist/{index-D4Q2rMby.js → index-Dj1pom3_.js} +2 -2
  79. package/dist/{index-BtibbG81.js → index-Z1voPZOH.js} +1 -1
  80. package/dist/index.d.ts +561 -4
  81. package/dist/index.js +74 -60
  82. package/dist/package.json +27 -28
  83. package/dist/plugins/konstruct.js +34 -31
  84. package/dist/plugins/utils/animation.styles.js +162 -0
  85. package/dist/plugins/utils/index.js +7 -0
  86. package/dist/styles.css +1 -1
  87. package/dist/styles.js +1 -1
  88. package/dist/useBreadcrumb-BsIeMoR1.js +1279 -0
  89. package/dist/{x-CRBgmX1Q.js → x-DU-Zw-L_.js} +1 -1
  90. package/package.json +27 -28
  91. package/dist/Modal-L73dmnHv.js +0 -914
  92. package/dist/components/AlertDialog/AlertDialog.d.ts +0 -3
  93. package/dist/components/AlertDialog/AlertDialog.types.d.ts +0 -18
  94. package/dist/components/AlertDialog/AlertDialog.types.js +0 -1
  95. package/dist/components/AlertDialog/AlertDialog.variants.d.ts +0 -3
  96. package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +0 -3
  97. package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +0 -6
  98. package/dist/components/AlertDialog/components/AlertDialogTrigger.types.js +0 -1
  99. package/dist/components/AlertDialog/components/index.d.ts +0 -1
  100. package/dist/components/AlertDialog/hooks/index.d.ts +0 -1
  101. package/dist/components/AlertDialog/hooks/useAlertDialog.d.ts +0 -7
  102. package/dist/components/Autocomplete/Autocomplete.d.ts +0 -3
  103. package/dist/components/Autocomplete/Autocomplete.types.d.ts +0 -18
  104. package/dist/components/Autocomplete/Autocomplete.types.js +0 -1
  105. package/dist/components/Autocomplete/Autocomplete.variants.d.ts +0 -8
  106. package/dist/components/Autocomplete/components/List/List.d.ts +0 -3
  107. package/dist/components/Autocomplete/components/List/List.types.d.ts +0 -13
  108. package/dist/components/Autocomplete/components/List/List.types.js +0 -1
  109. package/dist/components/Autocomplete/components/List/List.variants.d.ts +0 -16
  110. package/dist/components/Autocomplete/components/index.d.ts +0 -1
  111. package/dist/components/Autocomplete/hooks/index.d.ts +0 -2
  112. package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +0 -17
  113. package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +0 -10
  114. package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -3
  115. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -11
  116. package/dist/components/Breadcrumb/Breadcrumb.types.js +0 -1
  117. package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +0 -12
  118. package/dist/components/Breadcrumb/hooks/useBreadcrumb.d.ts +0 -3
  119. package/dist/components/Button/Button.d.ts +0 -4
  120. package/dist/components/Button/Button.types.d.ts +0 -7
  121. package/dist/components/Button/Button.types.js +0 -1
  122. package/dist/components/Button/Button.variants.d.ts +0 -7
  123. package/dist/components/Card/Card.d.ts +0 -4
  124. package/dist/components/Card/Card.types.d.ts +0 -8
  125. package/dist/components/Card/Card.types.js +0 -1
  126. package/dist/components/Card/Card.variants.d.ts +0 -10
  127. package/dist/components/Checkbox/Checkbox.d.ts +0 -3
  128. package/dist/components/Checkbox/Checkbox.types.d.ts +0 -14
  129. package/dist/components/Checkbox/Checkbox.types.js +0 -1
  130. package/dist/components/Checkbox/Checkbox.variants.d.ts +0 -9
  131. package/dist/components/Dropdown/Dropdown.d.ts +0 -3
  132. package/dist/components/Dropdown/Dropdown.types.d.ts +0 -16
  133. package/dist/components/Dropdown/Dropdown.types.js +0 -1
  134. package/dist/components/Dropdown/Dropdown.variants.d.ts +0 -3
  135. package/dist/components/Dropdown/components/EmptyList.d.ts +0 -2
  136. package/dist/components/Dropdown/components/List/List.d.ts +0 -3
  137. package/dist/components/Dropdown/components/List/List.types.d.ts +0 -6
  138. package/dist/components/Dropdown/components/List/List.types.js +0 -1
  139. package/dist/components/Dropdown/components/List/List.variants.d.ts +0 -3
  140. package/dist/components/Dropdown/components/ListItem/ListItem.d.ts +0 -3
  141. package/dist/components/Dropdown/components/ListItem/ListItem.types.d.ts +0 -4
  142. package/dist/components/Dropdown/components/ListItem/ListItem.types.js +0 -1
  143. package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +0 -3
  144. package/dist/components/Dropdown/components/Wrapper.d.ts +0 -3
  145. package/dist/components/Dropdown/components/index.d.ts +0 -3
  146. package/dist/components/Dropdown/contexts/dropdown.context.d.ts +0 -8
  147. package/dist/components/Dropdown/contexts/dropdown.hook.d.ts +0 -2
  148. package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +0 -5
  149. package/dist/components/Dropdown/contexts/index.d.ts +0 -2
  150. package/dist/components/Dropdown/hooks/useDropdown.d.ts +0 -11
  151. package/dist/components/Dropdown/hooks/useNavigationList.d.ts +0 -8
  152. package/dist/components/Input/Input.d.ts +0 -3
  153. package/dist/components/Input/Input.types.d.ts +0 -9
  154. package/dist/components/Input/Input.types.js +0 -1
  155. package/dist/components/Input/Input.variants.d.ts +0 -4
  156. package/dist/components/Modal/Modal.d.ts +0 -8
  157. package/dist/components/Modal/Modal.types.d.ts +0 -12
  158. package/dist/components/Modal/Modal.types.js +0 -1
  159. package/dist/components/Modal/components/Body/Body.d.ts +0 -3
  160. package/dist/components/Modal/components/Body/Body.types.d.ts +0 -5
  161. package/dist/components/Modal/components/Body/Body.types.js +0 -1
  162. package/dist/components/Modal/components/Footer/Footer.d.ts +0 -3
  163. package/dist/components/Modal/components/Footer/Footer.types.d.ts +0 -5
  164. package/dist/components/Modal/components/Footer/Footer.types.js +0 -1
  165. package/dist/components/Modal/components/Header/Header.d.ts +0 -3
  166. package/dist/components/Modal/components/Header/Header.types.d.ts +0 -5
  167. package/dist/components/Modal/components/Header/Header.types.js +0 -1
  168. package/dist/components/Modal/components/Wrapper/Wrapper.d.ts +0 -3
  169. package/dist/components/Modal/components/Wrapper/Wrapper.types.d.ts +0 -7
  170. package/dist/components/Modal/components/Wrapper/Wrapper.types.js +0 -1
  171. package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +0 -6
  172. package/dist/components/Modal/components/index.d.ts +0 -4
  173. package/dist/components/Modal/contexts/Modal.context.d.ts +0 -2
  174. package/dist/components/Modal/contexts/Modal.provider.d.ts +0 -4
  175. package/dist/components/Modal/contexts/Modal.types.d.ts +0 -9
  176. package/dist/components/Modal/contexts/Modal.types.js +0 -1
  177. package/dist/components/Modal/contexts/index.d.ts +0 -1
  178. package/dist/components/Modal/hooks/index.d.ts +0 -1
  179. package/dist/components/Modal/hooks/useModal.d.ts +0 -9
  180. package/dist/components/NumberInput/NumberInput.d.ts +0 -3
  181. package/dist/components/NumberInput/NumberInput.types.d.ts +0 -11
  182. package/dist/components/NumberInput/NumberInput.types.js +0 -1
  183. package/dist/components/NumberInput/NumberInput.variants.d.ts +0 -11
  184. package/dist/components/ProgressBar/ProgressBar.d.ts +0 -3
  185. package/dist/components/ProgressBar/ProgressBar.types.d.ts +0 -8
  186. package/dist/components/ProgressBar/ProgressBar.types.js +0 -1
  187. package/dist/components/ProgressBar/ProgressBar.variants.d.ts +0 -7
  188. package/dist/components/Radio/Radio.d.ts +0 -3
  189. package/dist/components/Radio/Radio.types.d.ts +0 -12
  190. package/dist/components/Radio/Radio.types.js +0 -1
  191. package/dist/components/Radio/Radio.variants.d.ts +0 -3
  192. package/dist/components/RadioGroup/RadioGroup.d.ts +0 -3
  193. package/dist/components/RadioGroup/RadioGroup.types.d.ts +0 -12
  194. package/dist/components/RadioGroup/RadioGroup.types.js +0 -1
  195. package/dist/components/Range/Range.d.ts +0 -3
  196. package/dist/components/Range/Range.types.d.ts +0 -13
  197. package/dist/components/Range/Range.types.js +0 -1
  198. package/dist/components/Range/Range.variants.d.ts +0 -14
  199. package/dist/components/Sidebar/Sidebar.d.ts +0 -5
  200. package/dist/components/Sidebar/Sidebar.types.d.ts +0 -18
  201. package/dist/components/Sidebar/Sidebar.types.js +0 -1
  202. package/dist/components/Sidebar/Sidebar.variants.d.ts +0 -6
  203. package/dist/components/Sidebar/components/Footer/Footer.d.ts +0 -3
  204. package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +0 -6
  205. package/dist/components/Sidebar/components/Footer/Footer.types.js +0 -1
  206. package/dist/components/Sidebar/components/Footer/Footer.variants.d.ts +0 -3
  207. package/dist/components/Sidebar/components/Logo/Logo.d.ts +0 -3
  208. package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +0 -6
  209. package/dist/components/Sidebar/components/Logo/Logo.types.js +0 -1
  210. package/dist/components/Sidebar/components/Logo/Logo.variants.d.ts +0 -3
  211. package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +0 -4
  212. package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +0 -16
  213. package/dist/components/Sidebar/components/Navigation/Navigation.types.js +0 -1
  214. package/dist/components/Sidebar/components/Navigation/Navigation.variants.d.ts +0 -3
  215. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +0 -3
  216. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +0 -8
  217. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.js +0 -1
  218. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +0 -3
  219. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +0 -3
  220. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +0 -17
  221. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.js +0 -1
  222. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +0 -4
  223. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +0 -3
  224. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +0 -5
  225. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.js +0 -1
  226. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +0 -3
  227. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +0 -3
  228. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +0 -8
  229. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.js +0 -1
  230. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +0 -3
  231. package/dist/components/Sidebar/components/Wrapper/Wrapper.d.ts +0 -3
  232. package/dist/components/Sidebar/components/index.d.ts +0 -15
  233. package/dist/components/Slider/Slider.d.ts +0 -3
  234. package/dist/components/Slider/Slider.types.d.ts +0 -13
  235. package/dist/components/Slider/Slider.types.js +0 -1
  236. package/dist/components/Slider/Slider.variants.d.ts +0 -11
  237. package/dist/components/Switch/Switch.d.ts +0 -3
  238. package/dist/components/Switch/Switch.types.d.ts +0 -10
  239. package/dist/components/Switch/Switch.types.js +0 -1
  240. package/dist/components/Switch/Switch.variants.d.ts +0 -6
  241. package/dist/components/Tag/Tag.d.ts +0 -3
  242. package/dist/components/Tag/Tag.types.d.ts +0 -4
  243. package/dist/components/Tag/Tag.types.js +0 -1
  244. package/dist/components/Tag/Tag.variants.d.ts +0 -3
  245. package/dist/components/TagSelect/TagSelect.d.ts +0 -3
  246. package/dist/components/TagSelect/TagSelect.types.d.ts +0 -9
  247. package/dist/components/TagSelect/TagSelect.types.js +0 -1
  248. package/dist/components/TagSelect/TagSelect.variants.d.ts +0 -9
  249. package/dist/components/TagSelect/hooks/useTagSelect.d.ts +0 -9
  250. package/dist/components/TextArea/TextArea.d.ts +0 -3
  251. package/dist/components/TextArea/TextArea.types.d.ts +0 -10
  252. package/dist/components/TextArea/TextArea.types.js +0 -1
  253. package/dist/components/TextArea/TextArea.variants.d.ts +0 -3
  254. package/dist/components/Toast/Toast.d.ts +0 -3
  255. package/dist/components/Toast/Toast.types.d.ts +0 -12
  256. package/dist/components/Toast/Toast.types.js +0 -1
  257. package/dist/components/Toast/Toast.variants.d.ts +0 -9
  258. package/dist/components/Tooltip/Tooltip.d.ts +0 -3
  259. package/dist/components/Tooltip/Tooltip.types.d.ts +0 -8
  260. package/dist/components/Tooltip/Tooltip.types.js +0 -1
  261. package/dist/components/Tooltip/Tooltip.variants.d.ts +0 -8
  262. package/dist/components/Tooltip/hooks/useTooltip.d.ts +0 -4
  263. package/dist/components/index.d.ts +0 -21
  264. package/dist/contexts/index.d.ts +0 -3
  265. package/dist/contexts/theme.context.d.ts +0 -6
  266. package/dist/contexts/theme.hook.d.ts +0 -7
  267. package/dist/contexts/theme.provider.d.ts +0 -6
  268. package/dist/hooks/index.d.ts +0 -1
  269. package/dist/hooks/useToggle.d.ts +0 -1
  270. package/dist/index-DoOsnuB6.js +0 -72
  271. package/dist/js.cookie-OLEfuq_g.js +0 -74
  272. package/dist/plugins/index.d.ts +0 -1
  273. package/dist/plugins/konstruct.d.ts +0 -4
  274. package/dist/plugins/utils/colors.d.ts +0 -328
  275. package/dist/styles.d.ts +0 -0
  276. package/dist/useBreadcrumb-DxYsZvj_.js +0 -1398
  277. package/dist/utils/index.d.ts +0 -4
@@ -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-BsIeMoR1.js";
4
+ import { breadcrumbLinkVariants as c, breadcrumbLabelVariants as L, breadcrumbItemVariants 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(N({ 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
+ L({ 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-BsIeMoR1.js";
3
2
  export {
4
- o as useBreadcrumb
3
+ u as useBreadcrumb
5
4
  };
@@ -1,39 +1,37 @@
1
1
  import { jsx as h } from "react/jsx-runtime";
2
2
  import { forwardRef as c } from "react";
3
- import { S as u } from "../../index-DoOsnuB6.js";
3
+ import { S as u } from "../../index-B_6_jmOO.js";
4
4
  import { cn as l } from "../../utils/index.js";
5
- import "../../contexts/theme.context.js";
6
- import { useTheme as x } from "../../contexts/theme.hook.js";
7
- import "../../js.cookie-OLEfuq_g.js";
8
- import { buttonVariants as T } from "./Button.variants.js";
5
+ import { buttonVariants as x } from "./Button.variants.js";
6
+ import { useTheme as T } from "../../contexts/theme.hook.js";
9
7
  const B = c(
10
8
  ({
11
9
  className: o,
12
- variant: m,
13
- theme: e,
10
+ variant: e,
11
+ theme: m,
14
12
  size: r,
15
13
  version: n,
16
14
  disabled: t = !1,
17
- asChild: i = !1,
18
- ...s
19
- }, p) => {
20
- const f = i ? u : "button", { theme: a } = x();
15
+ asChild: s = !1,
16
+ ...i
17
+ }, f) => {
18
+ const a = s ? u : "button", { theme: p } = T();
21
19
  return /* @__PURE__ */ h(
22
- f,
20
+ a,
23
21
  {
24
- ref: p,
22
+ ref: f,
25
23
  className: l(
26
- T({
27
- variant: m,
24
+ x({
25
+ variant: e,
28
26
  disabled: t,
29
- theme: e ?? a,
27
+ theme: m ?? p,
30
28
  size: r,
31
29
  className: o,
32
30
  version: n
33
31
  })
34
32
  ),
35
33
  disabled: t,
36
- ...s
34
+ ...i
37
35
  }
38
36
  );
39
37
  }
@@ -1,20 +1,18 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as c } from "react";
3
- import "../../contexts/theme.context.js";
4
- import { useTheme as f } from "../../contexts/theme.hook.js";
5
- import "../../js.cookie-OLEfuq_g.js";
2
+ import { forwardRef as f } from "react";
6
3
  import { cn as t } from "../../utils/index.js";
7
- import { cardBaseVariants as n, cardVariants as h } from "./Card.variants.js";
8
- const l = c(
9
- ({ className: s, theme: r, isActive: m, canHover: a, wrapperClassName: i, ...d }, p) => {
10
- const { theme: e } = f();
4
+ import { cardVariants as n, cardBaseVariants as p } from "./Card.variants.js";
5
+ import { useTheme as h } from "../../contexts/theme.hook.js";
6
+ const l = f(
7
+ ({ className: s, theme: r, isActive: m, canHover: a, wrapperClassName: d, ...i }, c) => {
8
+ const { theme: e } = h();
11
9
  return /* @__PURE__ */ o(
12
10
  "div",
13
11
  {
14
12
  className: t(
15
- n({
13
+ p({
16
14
  canHover: a,
17
- className: i,
15
+ className: d,
18
16
  isActive: m,
19
17
  theme: r ?? e
20
18
  })
@@ -22,16 +20,16 @@ const l = c(
22
20
  children: /* @__PURE__ */ o(
23
21
  "div",
24
22
  {
25
- ref: p,
23
+ ref: c,
26
24
  className: t(
27
- h({
25
+ n({
28
26
  className: s,
29
27
  theme: r ?? e,
30
28
  isActive: m,
31
29
  canHover: a
32
30
  })
33
31
  ),
34
- ...d
32
+ ...i
35
33
  }
36
34
  )
37
35
  }
@@ -1,18 +1,16 @@
1
1
  import { jsxs as S, jsx as f } from "react/jsx-runtime";
2
2
  import * as u from "react";
3
3
  import j, { forwardRef as _, useId as A, useCallback as H } from "react";
4
- import { u as K } from "../../index-DoOsnuB6.js";
5
- import { c as W, a as $, d as I } from "../../index-8vgf-x5i.js";
6
- import { u as q, a as F } from "../../index-BxeV34ij.js";
7
- import { P as V } from "../../index-D4Q2rMby.js";
8
- import { P as T } from "../../index-BaNV0qac.js";
9
- import "../../contexts/theme.context.js";
10
- import { useTheme as X } from "../../contexts/theme.hook.js";
11
- import "../../js.cookie-OLEfuq_g.js";
4
+ import { u as K } from "../../index-B_6_jmOO.js";
5
+ import { a as W, c as $, b as I } from "../../index-Cva-e5M4.js";
6
+ import { u as q, a as F } from "../../index-4ecjw_Aj.js";
7
+ import { P as V } from "../../index-Dj1pom3_.js";
8
+ import { P as T } from "../../index-BTeAm7mx.js";
12
9
  import { cn as N } from "../../utils/index.js";
13
- import { useToggle as G } from "../../hooks/useToggle.js";
14
- import { checkboxVariants as J, labelVariants as Q } from "./Checkbox.variants.js";
15
- import { P } from "../../index-D68N8v8R.js";
10
+ import { checkboxVariants as X, labelVariants as G } from "./Checkbox.variants.js";
11
+ import { useToggle as J } from "../../hooks/useToggle.js";
12
+ import { P } from "../../index-C5psggHV.js";
13
+ import { useTheme as Q } from "../../contexts/theme.hook.js";
16
14
  function E() {
17
15
  return E = Object.assign || function(e) {
18
16
  for (var s = 1; s < arguments.length; s++) {
@@ -62,7 +60,7 @@ O.propTypes = {
62
60
  size: P.oneOfType([P.string, P.number])
63
61
  };
64
62
  O.displayName = "Check";
65
- var R = "Checkbox", [Z, Ce] = W(R), [ee, te] = Z(R), z = u.forwardRef(
63
+ var R = "Checkbox", [Z, ke] = $(R), [ee, te] = Z(R), z = u.forwardRef(
66
64
  (e, s) => {
67
65
  const {
68
66
  __scopeCheckbox: t,
@@ -75,7 +73,7 @@ var R = "Checkbox", [Z, Ce] = W(R), [ee, te] = Z(R), z = u.forwardRef(
75
73
  onCheckedChange: C,
76
74
  form: d,
77
75
  ...p
78
- } = e, [i, k] = u.useState(null), v = K(s, (c) => k(c)), x = u.useRef(!1), g = i ? d || !!i.closest("form") : !0, [m = !1, w] = $({
76
+ } = e, [i, k] = u.useState(null), v = K(s, (c) => k(c)), x = u.useRef(!1), g = i ? d || !!i.closest("form") : !0, [m = !1, w] = W({
79
77
  prop: n,
80
78
  defaultProp: r,
81
79
  onChange: C
@@ -180,7 +178,7 @@ function B(e) {
180
178
  return h(e) ? "indeterminate" : e ? "checked" : "unchecked";
181
179
  }
182
180
  var oe = z, ne = D;
183
- const xe = _(
181
+ const ve = _(
184
182
  ({
185
183
  ariaLabelledBy: e,
186
184
  className: s,
@@ -195,7 +193,7 @@ const xe = _(
195
193
  variant: d,
196
194
  onChange: p
197
195
  }, i) => {
198
- const [k, v] = G(t), x = A(), { theme: g } = X(), m = H(() => {
196
+ const [k, v] = J(t), x = A(), { theme: g } = Q(), m = H(() => {
199
197
  v(), p == null || p();
200
198
  }, [p, v]);
201
199
  return /* @__PURE__ */ S("div", { className: "flex items-center gap-2", children: [
@@ -210,7 +208,7 @@ const xe = _(
210
208
  "aria-labelledby": e,
211
209
  title: C,
212
210
  className: N(
213
- J({
211
+ X({
214
212
  className: s,
215
213
  theme: b ?? g,
216
214
  variant: d,
@@ -226,7 +224,7 @@ const xe = _(
226
224
  {
227
225
  htmlFor: a ?? n,
228
226
  className: N(
229
- Q({
227
+ G({
230
228
  variant: d,
231
229
  theme: b,
232
230
  className: l
@@ -239,5 +237,5 @@ const xe = _(
239
237
  }
240
238
  );
241
239
  export {
242
- xe as Checkbox
240
+ ve as Checkbox
243
241
  };
@@ -0,0 +1,10 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { dividerVariants as a } from "./Divider.variants.js";
3
+ const d = ({
4
+ className: i,
5
+ ...r
6
+ }) => /* @__PURE__ */ e("div", { className: a({ className: i }), ...r });
7
+ d.displayName = "Divider";
8
+ export {
9
+ d as Divider
10
+ };
@@ -0,0 +1,14 @@
1
+ import { c as a } from "../../index-BNmRGtA6.js";
2
+ const i = a(["h-[1px]", "bg-zinc-200", "w-full"], {
3
+ variants: {
4
+ variant: {
5
+ default: ""
6
+ }
7
+ },
8
+ defaultVariants: {
9
+ variant: "default"
10
+ }
11
+ });
12
+ export {
13
+ i as dividerVariants
14
+ };
@@ -1,10 +1,8 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as i } from "react";
3
- import "./components/List/List.js";
2
+ import { forwardRef as f } from "react";
3
+ import { DropdownProvider as i } from "./contexts/dropdown.provider.js";
4
4
  import { Wrapper as t } from "./components/Wrapper.js";
5
- import "./contexts/dropdown.context.js";
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 }) }));
5
+ const a = f(({ onChange: o, ...p }, m) => /* @__PURE__ */ r(i, { onChange: o, children: /* @__PURE__ */ r(t, { ref: m, ...p }) }));
8
6
  export {
9
- s as Dropdown
7
+ a as Dropdown
10
8
  };
@@ -1,26 +1,25 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as p, useRef as a, useImperativeHandle as u } from "react";
2
+ import { forwardRef as a, useRef as p, useImperativeHandle as u } from "react";
3
3
  import { cn as c } from "../../../../utils/index.js";
4
4
  import { useNavigationUlList as d } from "../../hooks/useNavigationList.js";
5
- import { useDropdownContext as x } from "../../contexts/dropdown.hook.js";
6
- import "../../contexts/dropdown.context.js";
7
- import { ListItem as v } from "../ListItem/ListItem.js";
8
- import { listVariants as L } from "./List.variants.js";
9
- const C = p(
5
+ import { ListItem as x } from "../ListItem/ListItem.js";
6
+ import { listVariants as v } from "./List.variants.js";
7
+ import { useDropdownContext as L } from "../../contexts/dropdown.hook.js";
8
+ const j = a(
10
9
  ({ options: i, theme: t, wrapperRef: m, wrapperInputRef: s, name: l }, n) => {
11
- const r = a(null), { isOpen: f } = x();
10
+ const r = p(null), { isOpen: f } = L();
12
11
  return u(n, () => r.current, [r]), d({ ulRef: r, wrapperRef: m, wrapperInputRef: s }), /* @__PURE__ */ e(
13
12
  "ul",
14
13
  {
15
14
  ref: r,
16
15
  title: l,
17
16
  role: "listbox",
18
- className: c(L({ theme: t }), f ? "flex" : "hidden"),
19
- children: i.map((o) => /* @__PURE__ */ e(v, { theme: t, ...o }, o.value))
17
+ className: c(v({ theme: t }), f ? "flex" : "hidden"),
18
+ children: i.map((o) => /* @__PURE__ */ e(x, { theme: t, ...o }, o.value))
20
19
  }
21
20
  );
22
21
  }
23
22
  );
24
23
  export {
25
- C as List
24
+ j as List
26
25
  };
@@ -1,37 +1,36 @@
1
- import { jsxs as i, jsx as f } from "react/jsx-runtime";
2
- import { useRef as u, useCallback as s } from "react";
3
- import { cn as p } from "../../../../utils/index.js";
4
- import { useDropdownContext as d } from "../../contexts/dropdown.hook.js";
5
- import "../../contexts/dropdown.context.js";
6
- import { listItemVariants as x } from "./ListItem.variants.js";
7
- const b = ({ theme: o, ...e }) => {
8
- const { setValue: n, toggleOpen: r } = d(), c = u(null), l = s(
9
- (t) => {
10
- n(t), r(!1);
1
+ import { jsxs as f, jsx as i } from "react/jsx-runtime";
2
+ import { useRef as u, useCallback as r } from "react";
3
+ import { cn as d } from "../../../../utils/index.js";
4
+ import { listItemVariants as p } from "./ListItem.variants.js";
5
+ import { useDropdownContext as x } from "../../contexts/dropdown.hook.js";
6
+ const C = ({ theme: o, ...e }) => {
7
+ const { setValue: n, toggleOpen: s } = x(), c = u(null), t = r(
8
+ (l) => {
9
+ n(l), s(!1);
11
10
  },
12
- [n, r]
13
- ), m = s(
14
- (t, a) => {
15
- t.key === "Enter" && l(a);
11
+ [n, s]
12
+ ), a = r(
13
+ (l, m) => {
14
+ l.key === "Enter" && t(m);
16
15
  },
17
- [l]
16
+ [t]
18
17
  );
19
- return /* @__PURE__ */ i(
18
+ return /* @__PURE__ */ f(
20
19
  "li",
21
20
  {
22
21
  ref: c,
23
22
  role: "option",
24
- className: p(x({ theme: o })),
23
+ className: d(p({ theme: o })),
25
24
  tabIndex: 0,
26
- onClick: () => l(e),
27
- onKeyDown: (t) => m(t, e),
25
+ onClick: () => t(e),
26
+ onKeyDown: (l) => a(l, e),
28
27
  children: [
29
- e.leftIcon ? /* @__PURE__ */ f("span", { className: "w-4 h-4 flex justify-center items-center", children: e.leftIcon }) : null,
28
+ e.leftIcon ? /* @__PURE__ */ i("span", { className: "w-4 h-4 flex justify-center items-center", children: e.leftIcon }) : null,
30
29
  e.label
31
30
  ]
32
31
  }
33
32
  );
34
33
  };
35
34
  export {
36
- b as ListItem
35
+ C as ListItem
37
36
  };
@@ -1,68 +1,65 @@
1
- import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as F, useId as L, useRef as N, useImperativeHandle as $, useEffect as f } from "react";
1
+ import { jsxs as f, jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as F, useId as L, useRef as N, useImperativeHandle as $, useEffect as m } from "react";
3
3
  import { cn as R } from "../../../utils/index.js";
4
- import "../../../contexts/theme.context.js";
5
- import { useTheme as A } from "../../../contexts/theme.hook.js";
6
- import "../../../js.cookie-OLEfuq_g.js";
7
- import { dropdownVariants as H } from "../Dropdown.variants.js";
8
- import { useDropdown as U } from "../hooks/useDropdown.js";
9
- import { useDropdownContext as W } from "../contexts/dropdown.hook.js";
10
- import "../contexts/dropdown.context.js";
11
- import { List as q } from "./List/List.js";
12
- import { C as z } from "../../../chevron-up-CvquEaNg.js";
13
- const _ = F(
4
+ import { dropdownVariants as A } from "../Dropdown.variants.js";
5
+ import { useDropdown as H } from "../hooks/useDropdown.js";
6
+ import { List as U } from "./List/List.js";
7
+ import { C as W } from "../../../chevron-up-DgLBQCKD.js";
8
+ import { useDropdownContext as q } from "../contexts/dropdown.hook.js";
9
+ import { useTheme as z } from "../../../contexts/theme.hook.js";
10
+ const X = F(
14
11
  ({ theme: g, label: p, placeholder: O, name: o, options: a, defaultValue: c }, j) => {
15
- const d = L(), r = N(null), u = N(null), { wrapperRef: n, wrapperInputRef: h, handleOpen: y, handleOpenIfClosed: E } = U({ ulRef: u }), { isOpen: x, value: e, setValue: w, toggleOpen: b } = W(), { theme: T } = A(), v = g ?? T, i = o ? `${d}-${o}` : d;
16
- $(j, () => r.current, [r]), f(() => {
12
+ const d = L(), r = N(null), u = N(null), { wrapperRef: n, wrapperInputRef: h, handleOpen: y, handleOpenIfClosed: E } = H({ ulRef: u }), { isOpen: x, value: e, setValue: w, toggleOpen: b } = q(), { theme: T } = z(), v = g ?? T, s = o ? `${d}-${o}` : d;
13
+ $(j, () => r.current, [r]), m(() => {
17
14
  r.current && (r.current.value = e ? e.value : "");
18
- }, [e]), f(() => {
15
+ }, [e]), m(() => {
19
16
  if (c) {
20
- const s = a.find(
21
- (l) => l.value === c
17
+ const l = a.find(
18
+ (i) => i.value === c
22
19
  );
23
- s && w(s);
20
+ l && w(l);
24
21
  }
25
- }, [c, a, w]), f(() => {
26
- var l;
27
- const s = new AbortController();
28
- return (l = n.current) == null || l.addEventListener("focusout", (D) => {
22
+ }, [c, a, w]), m(() => {
23
+ var i;
24
+ const l = new AbortController();
25
+ return (i = n.current) == null || i.addEventListener("focusout", (D) => {
29
26
  var I;
30
27
  const C = D.relatedTarget;
31
28
  (!C || !((I = n.current) != null && I.contains(C))) && b(!1);
32
29
  }), () => {
33
- s.abort();
30
+ l.abort();
34
31
  };
35
32
  }, [b, n]);
36
33
  const k = () => e != null && e.leftIcon ? /* @__PURE__ */ t("span", { className: "w-4 h-4 flex justify-center items-center", children: e.leftIcon }) : null;
37
- return /* @__PURE__ */ m("div", { ref: n, className: "flex flex-col w-full relative", children: [
34
+ return /* @__PURE__ */ f("div", { ref: n, className: "flex flex-col w-full relative", children: [
38
35
  p ? /* @__PURE__ */ t(
39
36
  "label",
40
37
  {
41
- id: i,
38
+ id: s,
42
39
  className: "m-2 cursor-pointer",
43
- htmlFor: i,
40
+ htmlFor: s,
44
41
  onClick: E,
45
42
  children: p
46
43
  }
47
44
  ) : null,
48
- /* @__PURE__ */ m(
45
+ /* @__PURE__ */ f(
49
46
  "div",
50
47
  {
51
48
  ref: h,
52
- id: i,
53
- className: R(H({ theme: v })),
49
+ id: s,
50
+ className: R(A({ theme: v })),
54
51
  role: "combobox",
55
52
  onClick: y,
56
53
  "aria-expanded": x,
57
54
  tabIndex: 0,
58
- "aria-labelledby": i,
55
+ "aria-labelledby": s,
59
56
  children: [
60
- /* @__PURE__ */ t("span", { className: "text-base text-inherit", children: e ? /* @__PURE__ */ m("span", { className: "flex gap-3 items-center", children: [
57
+ /* @__PURE__ */ t("span", { className: "text-base text-inherit", children: e ? /* @__PURE__ */ f("span", { className: "flex gap-3 items-center", children: [
61
58
  k(),
62
59
  e.label
63
60
  ] }) : O }),
64
61
  /* @__PURE__ */ t(
65
- z,
62
+ W,
66
63
  {
67
64
  className: R(
68
65
  "w-4 h-4 text-inherit transition-all duration-50",
@@ -84,7 +81,7 @@ const _ = F(
84
81
  }
85
82
  ),
86
83
  /* @__PURE__ */ t(
87
- q,
84
+ U,
88
85
  {
89
86
  ref: u,
90
87
  name: o,
@@ -98,5 +95,5 @@ const _ = F(
98
95
  }
99
96
  );
100
97
  export {
101
- _ as Wrapper
98
+ X as Wrapper
102
99
  };
@@ -1,16 +1,16 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
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";
3
+ import { DropdownContext as d } from "./dropdown.context.js";
4
+ import { useToggle as f } from "../../../hooks/useToggle.js";
5
5
  const w = ({ children: t, onChange: o }) => {
6
- const [e, s] = d(!1), [l, p] = i(null), m = c(
6
+ const [e, s] = f(!1), [l, p] = i(null), m = c(
7
7
  (r) => {
8
8
  o == null || o(r), p(r);
9
9
  },
10
10
  [o]
11
11
  );
12
12
  return /* @__PURE__ */ u(
13
- f.Provider,
13
+ d.Provider,
14
14
  {
15
15
  value: { value: l, isOpen: e, setValue: m, toggleOpen: s },
16
16
  children: t