@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,22 +1,20 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { R as V, T as v, a as T, b as c } from "../../index-z-AJyzdv.js";
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { R as V, T as v, b as T, a as c } from "../../index-CJsYodgi.js";
3
3
  import { forwardRef as b, useRef as j, useState as k, useImperativeHandle as w, useEffect as y, useCallback as C } from "react";
4
- import "../../contexts/theme.context.js";
5
- import { useTheme as S } from "../../contexts/theme.hook.js";
6
- import "../../js.cookie-OLEfuq_g.js";
7
4
  import { cn as t } from "../../utils/index.js";
8
- import { rangeVariants as $, trackVariants as E, rangeOutsideVariants as H, thumbVariants as i } from "./Range.variants.js";
9
- const J = b(
5
+ import { rangeVariants as S, trackVariants as $, rangeOutsideVariants as E, thumbVariants as i } from "./Range.variants.js";
6
+ import { useTheme as H } from "../../contexts/theme.hook.js";
7
+ const F = b(
10
8
  ({
11
- label: m,
9
+ label: l,
12
10
  defaultValue: o = [0, 100],
13
11
  name: u,
14
12
  theme: h,
15
- size: l,
13
+ size: m,
16
14
  showValue: f,
17
15
  ...d
18
16
  }, p) => {
19
- const a = j(null), [s, x] = k(o), { theme: N } = S(), r = h ?? N;
17
+ const a = j(null), [s, x] = k(o), { theme: N } = H(), n = h ?? N;
20
18
  w(p, () => a.current, [a]), y(() => {
21
19
  a.current && (a.current.value = `[${s.toString()}]`);
22
20
  }, [s]);
@@ -24,17 +22,17 @@ const J = b(
24
22
  (R) => x(R),
25
23
  []
26
24
  );
27
- return /* @__PURE__ */ n("div", { className: "w-full relative flex flex-col gap-3", children: [
28
- /* @__PURE__ */ n(
25
+ return /* @__PURE__ */ r("div", { className: "w-full relative flex flex-col gap-3", children: [
26
+ /* @__PURE__ */ r(
29
27
  "div",
30
28
  {
31
29
  className: t(
32
30
  "flex items-center",
33
- m ? "justify-between" : "justify-end"
31
+ l ? "justify-between" : "justify-end"
34
32
  ),
35
33
  children: [
36
- m ? /* @__PURE__ */ e("label", { children: m }) : null,
37
- f ? /* @__PURE__ */ n("span", { className: "text-xs", children: [
34
+ l ? /* @__PURE__ */ e("label", { children: l }) : null,
35
+ f ? /* @__PURE__ */ r("span", { className: "text-xs", children: [
38
36
  s[0],
39
37
  " - ",
40
38
  s[1]
@@ -43,22 +41,22 @@ const J = b(
43
41
  }
44
42
  ),
45
43
  /* @__PURE__ */ e("input", { ref: a, name: u, className: "hidden", type: "text" }),
46
- /* @__PURE__ */ n(
44
+ /* @__PURE__ */ r(
47
45
  V,
48
46
  {
49
47
  value: s,
50
- className: t($({ theme: r })),
48
+ className: t(S({ theme: n })),
51
49
  onValueChange: g,
52
50
  ...d,
53
51
  children: [
54
- /* @__PURE__ */ e(v, { className: t(E({ theme: r, size: l })), children: /* @__PURE__ */ e(
52
+ /* @__PURE__ */ e(v, { className: t($({ theme: n, size: m })), children: /* @__PURE__ */ e(
55
53
  T,
56
54
  {
57
- className: t(H({ theme: r }))
55
+ className: t(E({ theme: n }))
58
56
  }
59
57
  ) }),
60
- /* @__PURE__ */ e(c, { className: t(i({ theme: r, size: l })) }),
61
- /* @__PURE__ */ e(c, { className: t(i({ theme: r, size: l })) })
58
+ /* @__PURE__ */ e(c, { className: t(i({ theme: n, size: m })) }),
59
+ /* @__PURE__ */ e(c, { className: t(i({ theme: n, size: m })) })
62
60
  ]
63
61
  }
64
62
  )
@@ -66,5 +64,5 @@ const J = b(
66
64
  }
67
65
  );
68
66
  export {
69
- J as Range
67
+ F as Range
70
68
  };
@@ -1,27 +1,25 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import "../../contexts/theme.context.js";
3
- import "react";
4
2
  import { ThemeProvider as t } from "../../contexts/theme.provider.js";
5
- import { Footer as a } from "./components/Footer/Footer.js";
6
- import { Logo as m } from "./components/Logo/Logo.js";
7
- import { Navigation as p } from "./components/Navigation/Navigation.js";
8
- import { NavigationGroup as n } from "./components/NavigationGroup/NavigationGroup.js";
9
- import { NavigationOption as e } from "./components/NavigationOption/NavigationOption.js";
10
- import { NavigationSeparator as g } from "./components/NavigationSeparator/NavigationSeparator.js";
11
- import { Wrapper as f } from "./components/Wrapper/Wrapper.js";
12
- const o = (i) => /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(f, { ...i }) });
13
- o.Footer = a;
14
- o.Logo = m;
15
- o.Navigation = p;
16
- o.NavigationGroup = n;
17
- o.NavigationOption = e;
18
- o.NavigationSeparator = g;
3
+ import { Wrapper as a } from "./components/Wrapper/Wrapper.js";
4
+ import { Footer as m } from "./components/Footer/Footer.js";
5
+ import { Logo as p } from "./components/Logo/Logo.js";
6
+ import { Navigation as n } from "./components/Navigation/Navigation.js";
7
+ import { NavigationGroup as e } from "./components/NavigationGroup/NavigationGroup.js";
8
+ import { NavigationOption as g } from "./components/NavigationOption/NavigationOption.js";
9
+ import { NavigationSeparator as f } from "./components/NavigationSeparator/NavigationSeparator.js";
10
+ const o = (i) => /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(a, { ...i }) });
11
+ o.Footer = m;
12
+ o.Logo = p;
13
+ o.Navigation = n;
14
+ o.NavigationGroup = e;
15
+ o.NavigationOption = g;
16
+ o.NavigationSeparator = f;
19
17
  export {
20
- a as Footer,
21
- m as Logo,
22
- p as Navigation,
23
- n as NavigationGroup,
24
- e as NavigationOption,
25
- g as NavigationSeparator,
18
+ m as Footer,
19
+ p as Logo,
20
+ n as Navigation,
21
+ e as NavigationGroup,
22
+ g as NavigationOption,
23
+ f as NavigationSeparator,
26
24
  o as Sidebar
27
25
  };
@@ -1,22 +1,19 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import "../../../../contexts/theme.context.js";
3
- import { useTheme as i } from "../../../../contexts/theme.hook.js";
4
- import "react";
5
- import "../../../../js.cookie-OLEfuq_g.js";
6
- import { cn as p } from "../../../../utils/index.js";
7
- import { footerVariants as s } from "./Footer.variants.js";
8
- const T = ({ theme: o, className: t, children: r }) => {
9
- const { theme: e } = i();
2
+ import { cn as s } from "../../../../utils/index.js";
3
+ import { footerVariants as f } from "./Footer.variants.js";
4
+ import { useTheme as n } from "../../../../contexts/theme.hook.js";
5
+ const h = ({ theme: o, className: e, children: t }) => {
6
+ const { theme: r } = n();
10
7
  return /* @__PURE__ */ m(
11
8
  "footer",
12
9
  {
13
- className: p(
14
- s({ theme: o ?? e, className: t })
10
+ className: s(
11
+ f({ theme: o ?? r, className: e })
15
12
  ),
16
- children: r
13
+ children: t
17
14
  }
18
15
  );
19
16
  };
20
17
  export {
21
- T as Footer
18
+ h as Footer
22
19
  };
@@ -1,20 +1,17 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import "../../../../contexts/theme.context.js";
3
- import { useTheme as i } from "../../../../contexts/theme.hook.js";
4
- import "react";
5
- import "../../../../js.cookie-OLEfuq_g.js";
6
- import { cn as p } from "../../../../utils/index.js";
7
- import { logoVariants as s } from "./Logo.variants.js";
8
- const l = ({ children: o, theme: m, className: r }) => {
9
- const { theme: t } = i();
10
- return /* @__PURE__ */ e(
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { cn as s } from "../../../../utils/index.js";
3
+ import { logoVariants as n } from "./Logo.variants.js";
4
+ import { useTheme as a } from "../../../../contexts/theme.hook.js";
5
+ const f = ({ children: o, theme: e, className: m }) => {
6
+ const { theme: r } = a();
7
+ return /* @__PURE__ */ t(
11
8
  "header",
12
9
  {
13
- className: p(s({ theme: m ?? t, className: r })),
10
+ className: s(n({ theme: e ?? r, className: m })),
14
11
  children: o
15
12
  }
16
13
  );
17
14
  };
18
15
  export {
19
- l as Logo
16
+ f as Logo
20
17
  };
@@ -1,34 +1,31 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import "../../../../contexts/theme.context.js";
3
- import { useTheme as n } from "../../../../contexts/theme.hook.js";
4
- import "react";
5
- import "../../../../js.cookie-OLEfuq_g.js";
6
- import { cn as p } from "../../../../utils/index.js";
2
+ import { cn as n } from "../../../../utils/index.js";
7
3
  import { NavigationGroup as e } from "../NavigationGroup/NavigationGroup.js";
8
- import { NavigationOption as v } from "../NavigationOption/NavigationOption.js";
9
- import { NavigationSeparator as g } from "../NavigationSeparator/NavigationSeparator.js";
10
- import { NavigationTitle as N } from "../NavigationTitle/NavigationTitle.js";
11
- import { navigationVariants as f } from "./Navigation.variants.js";
4
+ import { NavigationOption as p } from "../NavigationOption/NavigationOption.js";
5
+ import { NavigationSeparator as v } from "../NavigationSeparator/NavigationSeparator.js";
6
+ import { NavigationTitle as g } from "../NavigationTitle/NavigationTitle.js";
7
+ import { navigationVariants as N } from "./Navigation.variants.js";
8
+ import { useTheme as f } from "../../../../contexts/theme.hook.js";
12
9
  const o = ({
13
10
  className: i,
14
11
  theme: t,
15
12
  children: a
16
13
  }) => {
17
- const { theme: r } = n();
14
+ const { theme: r } = f();
18
15
  return /* @__PURE__ */ m(
19
16
  "nav",
20
17
  {
21
- className: p(
22
- f({ theme: t ?? r, className: i })
18
+ className: n(
19
+ N({ theme: t ?? r, className: i })
23
20
  ),
24
21
  children: a
25
22
  }
26
23
  );
27
24
  };
28
25
  o.NavigationGroup = e;
29
- o.NavigationOption = v;
30
- o.NavigationSeparator = g;
31
- o.NavigationTitle = N;
26
+ o.NavigationOption = p;
27
+ o.NavigationSeparator = v;
28
+ o.NavigationTitle = g;
32
29
  export {
33
30
  o as Navigation
34
31
  };
@@ -1,35 +1,32 @@
1
- import { jsxs as p, Fragment as u, jsx as o } from "react/jsx-runtime";
2
- import { cn as l } from "../../../../utils/index.js";
1
+ import { jsxs as u, Fragment as l, jsx as o } from "react/jsx-runtime";
2
+ import { cn as p } from "../../../../utils/index.js";
3
3
  import { NavigationTitle as c } from "../NavigationTitle/NavigationTitle.js";
4
4
  import { navigationGroupsVariants as f } from "./NavigationGroup.variants.js";
5
- import "../../../../contexts/theme.context.js";
6
5
  import { useTheme as h } from "../../../../contexts/theme.hook.js";
7
- import "react";
8
- import "../../../../js.cookie-OLEfuq_g.js";
9
- const F = ({
6
+ const j = ({
10
7
  children: t,
11
8
  title: r,
12
- className: m,
13
- theme: e,
14
- titleClassName: i,
15
- isVisible: n = !0,
9
+ className: e,
10
+ theme: m,
11
+ titleClassName: n,
12
+ isVisible: i = !0,
16
13
  ...a
17
14
  }) => {
18
15
  const { theme: s } = h();
19
- return n ? /* @__PURE__ */ p(u, { children: [
16
+ return i ? /* @__PURE__ */ u(l, { children: [
20
17
  r ? /* @__PURE__ */ o(
21
18
  c,
22
19
  {
23
20
  title: r,
24
- className: i,
21
+ className: n,
25
22
  ...a
26
23
  }
27
24
  ) : null,
28
25
  /* @__PURE__ */ o(
29
26
  "ul",
30
27
  {
31
- className: l(
32
- f({ theme: e ?? s, className: m })
28
+ className: p(
29
+ f({ theme: m ?? s, className: e })
33
30
  ),
34
31
  children: t
35
32
  }
@@ -37,5 +34,5 @@ const F = ({
37
34
  ] }) : null;
38
35
  };
39
36
  export {
40
- F as NavigationGroup
37
+ j as NavigationGroup
41
38
  };
@@ -1,29 +1,26 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import "../../../../contexts/theme.context.js";
3
- import { useTheme as a } from "../../../../contexts/theme.hook.js";
4
- import "react";
5
- import "../../../../js.cookie-OLEfuq_g.js";
6
- import { cn as s } from "../../../../utils/index.js";
7
- import { navigationOptionVariants as c } from "./NavigationOption.variants.js";
8
- const N = ({
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { cn as p } from "../../../../utils/index.js";
3
+ import { navigationOptionVariants as s } from "./NavigationOption.variants.js";
4
+ import { useTheme as c } from "../../../../contexts/theme.hook.js";
5
+ const x = ({
9
6
  children: t,
10
7
  className: o,
11
- theme: r,
12
- isVisible: i = !0,
13
- isActive: e,
14
- ...m
8
+ theme: e,
9
+ isVisible: r = !0,
10
+ isActive: i,
11
+ ...n
15
12
  }) => {
16
- const { theme: n } = a();
17
- return i ? /* @__PURE__ */ p(
13
+ const { theme: m } = c();
14
+ return r ? /* @__PURE__ */ a(
18
15
  "li",
19
16
  {
20
- ...m,
17
+ ...n,
21
18
  role: "option",
22
- className: s(
23
- c({
24
- theme: r ?? n,
19
+ className: p(
20
+ s({
21
+ theme: e ?? m,
25
22
  className: o,
26
- isActive: e
23
+ isActive: i
27
24
  })
28
25
  ),
29
26
  children: t
@@ -31,5 +28,5 @@ const N = ({
31
28
  ) : null;
32
29
  };
33
30
  export {
34
- N as NavigationOption
31
+ x as NavigationOption
35
32
  };
@@ -1,24 +1,21 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import "../../../../contexts/theme.context.js";
3
- import { useTheme as e } from "../../../../contexts/theme.hook.js";
4
- import "react";
5
- import "../../../../js.cookie-OLEfuq_g.js";
6
- import { cn as i } from "../../../../utils/index.js";
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { cn as m } from "../../../../utils/index.js";
7
3
  import { navigationSeparatorVariant as a } from "./NavigationSeparator.variants.js";
8
- const x = ({
4
+ import { useTheme as i } from "../../../../contexts/theme.hook.js";
5
+ const f = ({
9
6
  className: t,
10
7
  theme: o
11
8
  }) => {
12
- const { theme: r } = e();
13
- return /* @__PURE__ */ m(
9
+ const { theme: r } = i();
10
+ return /* @__PURE__ */ e(
14
11
  "div",
15
12
  {
16
- className: i(
13
+ className: m(
17
14
  a({ className: t, theme: o ?? r })
18
15
  )
19
16
  }
20
17
  );
21
18
  };
22
19
  export {
23
- x as NavigationSeparator
20
+ f as NavigationSeparator
24
21
  };
@@ -1,27 +1,24 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import "../../../../contexts/theme.context.js";
3
- import { useTheme as n } from "../../../../contexts/theme.hook.js";
4
- import "react";
5
- import "../../../../js.cookie-OLEfuq_g.js";
6
- import { cn as a } from "../../../../utils/index.js";
7
- import { navigationTitleVariants as p } from "./NavigationTitle.variants.js";
8
- const x = ({
2
+ import { cn as n } from "../../../../utils/index.js";
3
+ import { navigationTitleVariants as a } from "./NavigationTitle.variants.js";
4
+ import { useTheme as s } from "../../../../contexts/theme.hook.js";
5
+ const p = ({
9
6
  title: t,
10
- className: r,
11
- theme: e,
7
+ className: e,
8
+ theme: r,
12
9
  isVisible: o = !0
13
10
  }) => {
14
- const { theme: i } = n();
11
+ const { theme: i } = s();
15
12
  return o ? /* @__PURE__ */ m(
16
13
  "h2",
17
14
  {
18
- className: a(
19
- p({ theme: e ?? i, className: r })
15
+ className: n(
16
+ a({ theme: r ?? i, className: e })
20
17
  ),
21
18
  children: t
22
19
  }
23
20
  ) : null;
24
21
  };
25
22
  export {
26
- x as NavigationTitle
23
+ p as NavigationTitle
27
24
  };
@@ -1,31 +1,33 @@
1
- import { jsxs as x, jsx as C } from "react/jsx-runtime";
2
- import { useRef as d, useCallback as l, useMemo as s, Children as a, isValidElement as v, useEffect as D } from "react";
3
- import "../../../../contexts/theme.context.js";
4
- import { useTheme as T } from "../../../../contexts/theme.hook.js";
5
- import "../../../../js.cookie-OLEfuq_g.js";
1
+ import { Footer as x } from "../Footer/Footer.js";
2
+ import { Logo as C } from "../Logo/Logo.js";
3
+ import { Navigation as D } from "../Navigation/Navigation.js";
4
+ import "../NavigationGroup/NavigationGroup.js";
5
+ import "../NavigationOption/NavigationOption.js";
6
+ import "../NavigationSeparator/NavigationSeparator.js";
7
+ import "../NavigationTitle/NavigationTitle.js";
8
+ import { jsxs as T, jsx as V } from "react/jsx-runtime";
9
+ import { useRef as d, useCallback as l, useMemo as s, Children as i, isValidElement as v, useEffect as b } from "react";
6
10
  import { cn as E } from "../../../../utils/index.js";
7
- import { wrapperSiderbarVariants as V, dragVariants as b } from "../../Sidebar.variants.js";
8
- import { Footer as j } from "../Footer/Footer.js";
9
- import { Logo as z } from "../Logo/Logo.js";
10
- import { Navigation as k } from "../Navigation/Navigation.js";
11
- const I = ({
11
+ import { wrapperSiderbarVariants as j, dragVariants as z } from "../../Sidebar.variants.js";
12
+ import { useTheme as k } from "../../../../contexts/theme.hook.js";
13
+ const K = ({
12
14
  canResize: M = !0,
13
15
  children: y,
14
- maxWith: i = 300,
16
+ maxWith: a = 300,
15
17
  minWith: m = 240,
16
18
  theme: c,
17
19
  wrapperClassName: w
18
20
  }) => {
19
- const r = d(null), u = d(null), f = d(!1), { theme: g, setTheme: L } = T(), n = l(
21
+ const r = d(null), u = d(null), f = d(!1), { theme: g, setTheme: L } = k(), n = l(
20
22
  (e) => {
21
23
  if (!f.current) {
22
24
  r.current && (r.current.style.opacity = "0");
23
25
  return;
24
26
  }
25
27
  let o = e.clientX;
26
- o < m && (o = m), o > i && (o = i), u.current && r.current && (u.current.style.width = `${o}px`, r.current.classList.add("opacity-100"));
28
+ o < m && (o = m), o > a && (o = a), u.current && r.current && (u.current.style.width = `${o}px`, r.current.classList.add("opacity-100"));
27
29
  },
28
- [i, m]
30
+ [a, m]
29
31
  ), p = l(() => {
30
32
  f.current = !1, r.current && r.current.classList.remove("opacity-100"), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", p);
31
33
  }, [n]), R = l(
@@ -34,32 +36,32 @@ const I = ({
34
36
  },
35
37
  [n, p]
36
38
  ), t = s(
37
- () => a.toArray(y),
39
+ () => i.toArray(y),
38
40
  [y]
39
41
  ), h = s(
40
- () => a.toArray(t).find(
41
- (e) => v(e) && e.type === z
42
+ () => i.toArray(t).find(
43
+ (e) => v(e) && e.type === C
42
44
  ),
43
45
  [t]
44
46
  ), A = s(
45
- () => a.toArray(t).find(
46
- (e) => v(e) && e.type === k
47
+ () => i.toArray(t).find(
48
+ (e) => v(e) && e.type === D
47
49
  ),
48
50
  [t]
49
51
  ), N = s(
50
- () => a.toArray(t).find(
51
- (e) => v(e) && e.type === j
52
+ () => i.toArray(t).find(
53
+ (e) => v(e) && e.type === x
52
54
  ),
53
55
  [t]
54
56
  );
55
- return D(() => {
57
+ return b(() => {
56
58
  c && L(c);
57
- }, [L, c]), /* @__PURE__ */ x(
59
+ }, [L, c]), /* @__PURE__ */ T(
58
60
  "aside",
59
61
  {
60
62
  ref: u,
61
63
  className: E(
62
- V({
64
+ j({
63
65
  className: w,
64
66
  theme: g
65
67
  })
@@ -68,11 +70,11 @@ const I = ({
68
70
  h,
69
71
  A,
70
72
  N,
71
- M && /* @__PURE__ */ C(
73
+ M && /* @__PURE__ */ V(
72
74
  "div",
73
75
  {
74
76
  ref: r,
75
- className: E(b({ theme: g })),
77
+ className: E(z({ theme: g })),
76
78
  onMouseDown: R
77
79
  }
78
80
  )
@@ -81,5 +83,5 @@ const I = ({
81
83
  );
82
84
  };
83
85
  export {
84
- I as Wrapper
86
+ K as Wrapper
85
87
  };
@@ -1,17 +1,15 @@
1
1
  import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
- import { R as v, T, b as V } from "../../index-z-AJyzdv.js";
3
- import { forwardRef as b, useRef as R, useState as g, useImperativeHandle as j, useEffect as k, useCallback as w } from "react";
4
- import "../../contexts/theme.context.js";
5
- import { useTheme as y } from "../../contexts/theme.hook.js";
6
- import "../../js.cookie-OLEfuq_g.js";
7
- import { cn as a } from "../../utils/index.js";
8
- import { sliderVariants as C, trackVariants as S, thumbVariants as E } from "./Slider.variants.js";
9
- const J = b(
10
- ({ label: s, defaultValue: i = [0], name: c, theme: o, size: m, showValue: u, ...f }, h) => {
11
- const e = R(null), [r, d] = g(i), { theme: p } = y(), n = o ?? p;
2
+ import { R as v, T, a as V } from "../../index-CJsYodgi.js";
3
+ import { forwardRef as R, useRef as b, useState as g, useImperativeHandle as j, useEffect as k, useCallback as w } from "react";
4
+ import { cn as r } from "../../utils/index.js";
5
+ import { sliderVariants as y, trackVariants as C, thumbVariants as S } from "./Slider.variants.js";
6
+ import { useTheme as E } from "../../contexts/theme.hook.js";
7
+ const F = R(
8
+ ({ label: s, defaultValue: c = [0], name: i, theme: o, size: m, showValue: u, ...f }, h) => {
9
+ const e = b(null), [a, d] = g(c), { theme: p } = E(), n = o ?? p;
12
10
  j(h, () => e.current, [e]), k(() => {
13
- e.current && (e.current.value = r.toString());
14
- }, [r]);
11
+ e.current && (e.current.value = a.toString());
12
+ }, [a]);
15
13
  const x = w(
16
14
  (N) => d(N),
17
15
  []
@@ -20,27 +18,27 @@ const J = b(
20
18
  /* @__PURE__ */ l(
21
19
  "div",
22
20
  {
23
- className: a(
21
+ className: r(
24
22
  "flex items-center",
25
23
  s ? "justify-between" : "justify-end"
26
24
  ),
27
25
  children: [
28
26
  s ? /* @__PURE__ */ t("label", { children: s }) : null,
29
- u ? /* @__PURE__ */ t("span", { className: "text-xs", children: r }) : null
27
+ u ? /* @__PURE__ */ t("span", { className: "text-xs", children: a }) : null
30
28
  ]
31
29
  }
32
30
  ),
33
- /* @__PURE__ */ t("input", { ref: e, name: c, className: "hidden", type: "number" }),
31
+ /* @__PURE__ */ t("input", { ref: e, name: i, className: "hidden", type: "number" }),
34
32
  /* @__PURE__ */ l(
35
33
  v,
36
34
  {
37
- value: r,
38
- className: a(C({ theme: n })),
35
+ value: a,
36
+ className: r(y({ theme: n })),
39
37
  onValueChange: x,
40
38
  ...f,
41
39
  children: [
42
- /* @__PURE__ */ t(T, { className: a(S({ theme: n, size: m })) }),
43
- /* @__PURE__ */ t(V, { className: a(E({ theme: n, size: m })) })
40
+ /* @__PURE__ */ t(T, { className: r(C({ theme: n, size: m })) }),
41
+ /* @__PURE__ */ t(V, { className: r(S({ theme: n, size: m })) })
44
42
  ]
45
43
  }
46
44
  )
@@ -48,5 +46,5 @@ const J = b(
48
46
  }
49
47
  );
50
48
  export {
51
- J as Slider
49
+ F as Slider
52
50
  };