@jordan-mace/chaser-design-system 1.2.9 → 2.1.0

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 (326) hide show
  1. package/dist/build-manifest.json +13761 -0
  2. package/dist/chunk-2B6QHVPB.mjs +0 -0
  3. package/dist/chunk-2FRMX7RJ.mjs +62 -0
  4. package/dist/chunk-2L6GQCXR.mjs +0 -0
  5. package/dist/chunk-3AJZLQ2E.mjs +85 -0
  6. package/dist/chunk-3LJMSR5N.mjs +0 -0
  7. package/dist/chunk-54H4HXDY.mjs +0 -0
  8. package/dist/chunk-55JAPPFF.mjs +84 -0
  9. package/dist/chunk-5CRFIUCE.mjs +21 -0
  10. package/dist/chunk-6MO2NAKY.mjs +15 -0
  11. package/dist/chunk-7AY5WUX4.mjs +0 -0
  12. package/dist/chunk-7Y3QCS5S.mjs +8 -0
  13. package/dist/chunk-AEZ77MNG.mjs +51 -0
  14. package/dist/chunk-AIY7XRLG.mjs +0 -0
  15. package/dist/chunk-ARTXRQO6.mjs +0 -0
  16. package/dist/chunk-AYTUOXH4.mjs +214 -0
  17. package/dist/chunk-B2NGT75M.mjs +0 -0
  18. package/dist/chunk-BOWLXLKB.mjs +101 -0
  19. package/dist/chunk-BTENJUDF.mjs +0 -0
  20. package/dist/chunk-BU45HCII.mjs +31 -0
  21. package/dist/chunk-BUO6V4ZK.mjs +0 -0
  22. package/dist/chunk-C7NECQRC.mjs +96 -0
  23. package/dist/chunk-CBKQEKIK.mjs +0 -0
  24. package/dist/chunk-CBPLQAHS.mjs +80 -0
  25. package/dist/chunk-CMNJMZXX.mjs +0 -0
  26. package/dist/chunk-CW4EIBFG.mjs +0 -0
  27. package/dist/chunk-DAGHRIC3.mjs +0 -0
  28. package/dist/chunk-E5ODJY25.mjs +75 -0
  29. package/dist/chunk-E74W45DC.mjs +0 -0
  30. package/dist/chunk-E7OMF6QW.mjs +0 -0
  31. package/dist/chunk-EOH5NK67.mjs +0 -0
  32. package/dist/chunk-EOXTRIQ7.mjs +0 -0
  33. package/dist/chunk-FPTK6LYO.mjs +76 -0
  34. package/dist/chunk-FUN4ITNZ.mjs +0 -0
  35. package/dist/chunk-GD42AS4L.mjs +8 -0
  36. package/dist/chunk-GMAR37YG.mjs +8 -0
  37. package/dist/chunk-GNAJ44RY.mjs +26 -0
  38. package/dist/chunk-GP5UECUC.mjs +0 -0
  39. package/dist/chunk-H4FZYNCW.mjs +118 -0
  40. package/dist/chunk-HUED26BN.mjs +0 -0
  41. package/dist/chunk-HWAS44T7.mjs +49 -0
  42. package/dist/chunk-IGKJYJTY.mjs +0 -0
  43. package/dist/chunk-IMHQ73HA.mjs +0 -0
  44. package/dist/chunk-IOMB7PSL.mjs +93 -0
  45. package/dist/chunk-IUCJBPDL.mjs +20 -0
  46. package/dist/chunk-JFYMSGSU.mjs +0 -0
  47. package/dist/chunk-JIKAPQBJ.mjs +0 -0
  48. package/dist/chunk-JQ42U5FU.mjs +19 -0
  49. package/dist/chunk-KBUHPWEO.mjs +137 -0
  50. package/dist/chunk-KHBV2LXN.mjs +262 -0
  51. package/dist/chunk-KSIX4U53.mjs +32 -0
  52. package/dist/chunk-KT7CGXAH.mjs +0 -0
  53. package/dist/chunk-LAWMLBF3.mjs +41 -0
  54. package/dist/chunk-LV54XRPR.mjs +0 -0
  55. package/dist/chunk-LVPQCMA5.mjs +122 -0
  56. package/dist/chunk-LZLK7IOL.mjs +0 -0
  57. package/dist/chunk-MCWYRP6Y.mjs +53 -0
  58. package/dist/chunk-MQQ5Z3LW.mjs +57 -0
  59. package/dist/chunk-N725HZEB.mjs +0 -0
  60. package/dist/chunk-NIZNDR6T.mjs +0 -0
  61. package/dist/chunk-NWYD6SS7.mjs +69 -0
  62. package/dist/chunk-O3AMXQTY.mjs +0 -0
  63. package/dist/chunk-OB5ONW7Y.mjs +45 -0
  64. package/dist/chunk-PK7I6RMV.mjs +0 -0
  65. package/dist/chunk-PQZZHZIA.mjs +0 -0
  66. package/dist/chunk-PTU7HTXL.mjs +0 -0
  67. package/dist/chunk-PUOWXFSZ.mjs +41 -0
  68. package/dist/chunk-QFQAV7DQ.mjs +207 -0
  69. package/dist/chunk-QNJKEBIF.mjs +0 -0
  70. package/dist/chunk-QUQTMW54.mjs +92 -0
  71. package/dist/chunk-QWBHUGJH.mjs +42 -0
  72. package/dist/chunk-R2GRRFQS.mjs +0 -0
  73. package/dist/chunk-RDFNYCKT.mjs +64 -0
  74. package/dist/chunk-RDN3574U.mjs +18 -0
  75. package/dist/chunk-RESHDXF5.mjs +0 -0
  76. package/dist/chunk-RVFLFKJL.mjs +18 -0
  77. package/dist/chunk-RWSFDIB7.mjs +0 -0
  78. package/dist/chunk-SIGP4IGV.mjs +0 -0
  79. package/dist/chunk-SQ5VQZMA.mjs +43 -0
  80. package/dist/chunk-SZ25BX44.mjs +0 -0
  81. package/dist/chunk-T4CX5DQW.mjs +0 -0
  82. package/dist/chunk-T7MLSQTY.mjs +41 -0
  83. package/dist/chunk-TAXCX6TA.mjs +44 -0
  84. package/dist/chunk-TNDJWHSF.mjs +0 -0
  85. package/dist/chunk-TOAHZ3UX.mjs +0 -0
  86. package/dist/chunk-UCOFGJJH.mjs +39 -0
  87. package/dist/chunk-V35FRMOQ.mjs +0 -0
  88. package/dist/chunk-V7BVU5IU.mjs +30 -0
  89. package/dist/chunk-VGEM65JM.mjs +51 -0
  90. package/dist/chunk-VGHEJ76E.mjs +0 -0
  91. package/dist/chunk-VXYBXS77.mjs +6 -0
  92. package/dist/chunk-W5ZYIAZQ.mjs +55 -0
  93. package/dist/chunk-WDS7ER2E.mjs +117 -0
  94. package/dist/chunk-WPMNFQUN.mjs +0 -0
  95. package/dist/chunk-WQO4PWCK.mjs +0 -0
  96. package/dist/chunk-WTOTRXQH.mjs +20 -0
  97. package/dist/chunk-WV72HREB.mjs +42 -0
  98. package/dist/chunk-WX76GCR5.mjs +0 -0
  99. package/dist/chunk-XAZH3L6X.mjs +119 -0
  100. package/dist/chunk-XIPZW6LD.mjs +34 -0
  101. package/dist/chunk-XOINH6RL.mjs +35 -0
  102. package/dist/chunk-YDLIT2QT.mjs +32 -0
  103. package/dist/chunk-ZDY52AN7.mjs +141 -0
  104. package/dist/chunk-ZSRWE6QR.mjs +0 -0
  105. package/dist/chunk-ZTGLYAVP.mjs +126 -0
  106. package/dist/components/Accordion/Accordion.css +2070 -0
  107. package/dist/components/Accordion/Accordion.mjs +11 -0
  108. package/dist/components/Accordion/index.css +2070 -0
  109. package/dist/components/Accordion/index.mjs +12 -0
  110. package/dist/components/Alert/Alert.css +2059 -0
  111. package/dist/components/Alert/Alert.mjs +11 -0
  112. package/dist/components/Alert/index.css +2059 -0
  113. package/dist/components/Alert/index.mjs +12 -0
  114. package/dist/components/AspectRatio/AspectRatio.css +1955 -0
  115. package/dist/components/AspectRatio/AspectRatio.mjs +10 -0
  116. package/dist/components/AspectRatio/index.css +1955 -0
  117. package/dist/components/AspectRatio/index.mjs +11 -0
  118. package/dist/components/Avatar/Avatar.css +2154 -0
  119. package/dist/components/Avatar/Avatar.mjs +11 -0
  120. package/dist/components/Avatar/index.css +2154 -0
  121. package/dist/components/Avatar/index.mjs +12 -0
  122. package/dist/components/Badge/Badge.css +2081 -0
  123. package/dist/components/Badge/Badge.mjs +11 -0
  124. package/dist/components/Badge/index.css +2081 -0
  125. package/dist/components/Badge/index.mjs +12 -0
  126. package/dist/components/Box/Box.css +1955 -0
  127. package/dist/components/Box/Box.mjs +8 -0
  128. package/dist/components/Box/index.css +1955 -0
  129. package/dist/components/Box/index.mjs +9 -0
  130. package/dist/components/Breadcrumb/Breadcrumb.css +2057 -0
  131. package/dist/components/Breadcrumb/Breadcrumb.mjs +11 -0
  132. package/dist/components/Breadcrumb/index.css +2057 -0
  133. package/dist/components/Breadcrumb/index.mjs +12 -0
  134. package/dist/components/Button/Button.css +2035 -0
  135. package/dist/components/Button/Button.mjs +11 -0
  136. package/dist/components/Button/index.css +2035 -0
  137. package/dist/components/Button/index.mjs +12 -0
  138. package/dist/components/Card/Card.css +2030 -0
  139. package/dist/components/Card/Card.mjs +11 -0
  140. package/dist/components/Card/index.css +2030 -0
  141. package/dist/components/Card/index.mjs +12 -0
  142. package/dist/components/Checkbox/Checkbox.css +2038 -0
  143. package/dist/components/Checkbox/Checkbox.mjs +11 -0
  144. package/dist/components/Checkbox/index.css +2038 -0
  145. package/dist/components/Checkbox/index.mjs +12 -0
  146. package/dist/components/Collapse/Collapse.css +1992 -0
  147. package/dist/components/Collapse/Collapse.mjs +10 -0
  148. package/dist/components/Collapse/index.css +1992 -0
  149. package/dist/components/Collapse/index.mjs +11 -0
  150. package/dist/components/Combobox/Combobox.css +2144 -0
  151. package/dist/components/Combobox/Combobox.mjs +11 -0
  152. package/dist/components/Combobox/index.css +2144 -0
  153. package/dist/components/Combobox/index.mjs +12 -0
  154. package/dist/components/Container/Container.css +1955 -0
  155. package/dist/components/Container/Container.mjs +10 -0
  156. package/dist/components/Container/index.css +1955 -0
  157. package/dist/components/Container/index.mjs +11 -0
  158. package/dist/components/Divider/Divider.css +2042 -0
  159. package/dist/components/Divider/Divider.mjs +11 -0
  160. package/dist/components/Divider/index.css +2042 -0
  161. package/dist/components/Divider/index.mjs +12 -0
  162. package/dist/components/Drawer/Drawer.css +2148 -0
  163. package/dist/components/Drawer/Drawer.mjs +11 -0
  164. package/dist/components/Drawer/index.css +2148 -0
  165. package/dist/components/Drawer/index.mjs +12 -0
  166. package/dist/components/DropdownMenu/DropdownMenu.css +2095 -0
  167. package/dist/components/DropdownMenu/DropdownMenu.mjs +11 -0
  168. package/dist/components/DropdownMenu/index.css +2095 -0
  169. package/dist/components/DropdownMenu/index.mjs +12 -0
  170. package/dist/components/EmptyState/EmptyState.css +2038 -0
  171. package/dist/components/EmptyState/EmptyState.mjs +11 -0
  172. package/dist/components/EmptyState/index.css +2038 -0
  173. package/dist/components/EmptyState/index.mjs +12 -0
  174. package/dist/components/FileUpload/FileUpload.css +2147 -0
  175. package/dist/components/FileUpload/FileUpload.mjs +11 -0
  176. package/dist/components/FileUpload/index.css +2147 -0
  177. package/dist/components/FileUpload/index.mjs +12 -0
  178. package/dist/components/Form/Form.css +1970 -0
  179. package/dist/components/Form/Form.mjs +10 -0
  180. package/dist/components/Form/FormInput.css +4898 -0
  181. package/dist/components/Form/FormInput.mjs +109 -0
  182. package/dist/components/Form/index.css +4898 -0
  183. package/dist/components/Form/index.mjs +112 -0
  184. package/dist/components/Grid/Grid.css +1955 -0
  185. package/dist/components/Grid/Grid.mjs +10 -0
  186. package/dist/components/Grid/index.css +1955 -0
  187. package/dist/components/Grid/index.mjs +11 -0
  188. package/dist/components/Icon/Icon.css +1968 -0
  189. package/dist/components/Icon/Icon.mjs +10 -0
  190. package/dist/components/Icon/index.css +1968 -0
  191. package/dist/components/Icon/index.mjs +11 -0
  192. package/dist/components/Input/Input.css +2030 -0
  193. package/dist/components/Input/Input.mjs +12 -0
  194. package/dist/components/Input/index.css +2030 -0
  195. package/dist/components/Input/index.mjs +13 -0
  196. package/dist/components/Kbd/Kbd.css +2010 -0
  197. package/dist/components/Kbd/Kbd.mjs +9 -0
  198. package/dist/components/Kbd/index.css +2010 -0
  199. package/dist/components/Kbd/index.mjs +10 -0
  200. package/dist/components/List/List.css +2016 -0
  201. package/dist/components/List/List.mjs +12 -0
  202. package/dist/components/List/ListItem.css +2016 -0
  203. package/dist/components/List/ListItem.mjs +12 -0
  204. package/dist/components/List/index.css +2016 -0
  205. package/dist/components/List/index.mjs +17 -0
  206. package/dist/components/Modal/Modal.css +2093 -0
  207. package/dist/components/Modal/Modal.mjs +11 -0
  208. package/dist/components/Modal/index.css +2093 -0
  209. package/dist/components/Modal/index.mjs +12 -0
  210. package/dist/components/Navbar/Navbar.css +1960 -0
  211. package/dist/components/Navbar/Navbar.mjs +11 -0
  212. package/dist/components/Navbar/NavbarItem.css +1960 -0
  213. package/dist/components/Navbar/NavbarItem.mjs +11 -0
  214. package/dist/components/Navbar/index.css +1960 -0
  215. package/dist/components/Navbar/index.mjs +16 -0
  216. package/dist/components/NumberInput/NumberInput.css +2117 -0
  217. package/dist/components/NumberInput/NumberInput.mjs +11 -0
  218. package/dist/components/NumberInput/index.css +2117 -0
  219. package/dist/components/NumberInput/index.mjs +12 -0
  220. package/dist/components/Pagination/Pagination.css +2049 -0
  221. package/dist/components/Pagination/Pagination.mjs +11 -0
  222. package/dist/components/Pagination/index.css +2049 -0
  223. package/dist/components/Pagination/index.mjs +12 -0
  224. package/dist/components/Popover/Popover.css +2194 -0
  225. package/dist/components/Popover/Popover.mjs +11 -0
  226. package/dist/components/Popover/index.css +2194 -0
  227. package/dist/components/Popover/index.mjs +12 -0
  228. package/dist/components/Progress/Progress.css +2074 -0
  229. package/dist/components/Progress/Progress.mjs +11 -0
  230. package/dist/components/Progress/index.css +2074 -0
  231. package/dist/components/Progress/index.mjs +12 -0
  232. package/dist/components/Radio/Radio.css +2049 -0
  233. package/dist/components/Radio/Radio.mjs +11 -0
  234. package/dist/components/Radio/index.css +2049 -0
  235. package/dist/components/Radio/index.mjs +12 -0
  236. package/dist/components/ScrollArea/ScrollArea.css +2030 -0
  237. package/dist/components/ScrollArea/ScrollArea.mjs +11 -0
  238. package/dist/components/ScrollArea/index.css +2030 -0
  239. package/dist/components/ScrollArea/index.mjs +12 -0
  240. package/dist/components/Select/Select.css +2087 -0
  241. package/dist/components/Select/Select.mjs +11 -0
  242. package/dist/components/Select/index.css +2087 -0
  243. package/dist/components/Select/index.mjs +12 -0
  244. package/dist/components/Separator/Separator.css +2028 -0
  245. package/dist/components/Separator/Separator.mjs +11 -0
  246. package/dist/components/Separator/index.css +2028 -0
  247. package/dist/components/Separator/index.mjs +12 -0
  248. package/dist/components/Skeleton/Skeleton.css +2065 -0
  249. package/dist/components/Skeleton/Skeleton.mjs +11 -0
  250. package/dist/components/Skeleton/index.css +2065 -0
  251. package/dist/components/Skeleton/index.mjs +12 -0
  252. package/dist/components/Spinner/Spinner.css +2060 -0
  253. package/dist/components/Spinner/Spinner.mjs +11 -0
  254. package/dist/components/Spinner/index.css +2060 -0
  255. package/dist/components/Spinner/index.mjs +12 -0
  256. package/dist/components/Stack/Stack.css +1955 -0
  257. package/dist/components/Stack/Stack.mjs +10 -0
  258. package/dist/components/Stack/index.css +1955 -0
  259. package/dist/components/Stack/index.mjs +11 -0
  260. package/dist/components/Stepper/Stepper.css +2109 -0
  261. package/dist/components/Stepper/Stepper.mjs +11 -0
  262. package/dist/components/Stepper/index.css +2109 -0
  263. package/dist/components/Stepper/index.mjs +12 -0
  264. package/dist/components/Table/Table.css +2054 -0
  265. package/dist/components/Table/Table.mjs +11 -0
  266. package/dist/components/Table/index.css +2054 -0
  267. package/dist/components/Table/index.mjs +12 -0
  268. package/dist/components/Tabs/Tabs.css +2105 -0
  269. package/dist/components/Tabs/Tabs.mjs +11 -0
  270. package/dist/components/Tabs/index.css +2105 -0
  271. package/dist/components/Tabs/index.mjs +12 -0
  272. package/dist/components/Tag/Tag.css +2098 -0
  273. package/dist/components/Tag/Tag.mjs +11 -0
  274. package/dist/components/Tag/index.css +2098 -0
  275. package/dist/components/Tag/index.mjs +12 -0
  276. package/dist/components/Text/Header.css +2018 -0
  277. package/dist/components/Text/Header.mjs +12 -0
  278. package/dist/components/Text/P.css +2018 -0
  279. package/dist/components/Text/P.mjs +12 -0
  280. package/dist/components/Text/index.css +2018 -0
  281. package/dist/components/Text/index.mjs +17 -0
  282. package/dist/components/TextArea/TextArea.css +2032 -0
  283. package/dist/components/TextArea/TextArea.mjs +12 -0
  284. package/dist/components/TextArea/index.css +2032 -0
  285. package/dist/components/TextArea/index.mjs +13 -0
  286. package/dist/components/Toast/Toast.css +2234 -0
  287. package/dist/components/Toast/Toast.mjs +17 -0
  288. package/dist/components/Toast/index.css +2234 -0
  289. package/dist/components/Toast/index.mjs +18 -0
  290. package/dist/components/Toggle/Toggle.css +2111 -0
  291. package/dist/components/Toggle/Toggle.mjs +11 -0
  292. package/dist/components/Toggle/index.css +2111 -0
  293. package/dist/components/Toggle/index.mjs +12 -0
  294. package/dist/components/Tooltip/Tooltip.css +2089 -0
  295. package/dist/components/Tooltip/Tooltip.mjs +11 -0
  296. package/dist/components/Tooltip/index.css +2089 -0
  297. package/dist/components/Tooltip/index.mjs +12 -0
  298. package/dist/components/VisuallyHidden/VisuallyHidden.css +20 -0
  299. package/dist/components/VisuallyHidden/VisuallyHidden.mjs +7 -0
  300. package/dist/components/VisuallyHidden/index.css +20 -0
  301. package/dist/components/VisuallyHidden/index.mjs +8 -0
  302. package/dist/components/index.css +4898 -0
  303. package/dist/components/index.mjs +263 -0
  304. package/dist/index.core.mjs +263 -0
  305. package/dist/index.css +4898 -0
  306. package/dist/index.mjs +2 -4729
  307. package/dist/styles/layers.css +0 -0
  308. package/dist/styles/reset.css +131 -0
  309. package/dist/styles/reset.css.js +0 -0
  310. package/dist/styles/sprinkles.css +1943 -0
  311. package/dist/styles/sprinkles.css.js +220 -0
  312. package/dist/styles/theme.css +1991 -0
  313. package/dist/styles/theme.css.js +5 -0
  314. package/dist/styles/utils.css +4 -0
  315. package/dist/styles/utils.mjs +15 -0
  316. package/package.json +14 -25
  317. package/src/styles/layers.css.ts +5 -3
  318. package/dist/index.d.mts +0 -1834
  319. package/dist/styles/layers.css.d.mts +0 -6
  320. package/dist/styles/layers.css.mjs +0 -7
  321. package/dist/styles/reset.css.d.mts +0 -1
  322. package/dist/styles/reset.css.mjs +0 -24
  323. package/dist/styles/sprinkles.css.d.mts +0 -246
  324. package/dist/styles/sprinkles.css.mjs +0 -200
  325. package/dist/styles/theme.css.d.mts +0 -41
  326. package/dist/styles/theme.css.mjs +0 -50
File without changes
@@ -0,0 +1,62 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/Checkbox/Checkbox.tsx
6
+ import clsx from "clsx";
7
+ import React, { forwardRef, useEffect, useRef } from "react";
8
+
9
+ // src/components/Checkbox/styles.css.ts
10
+ var checkboxContainer = "styles__ktp4yx0";
11
+ var checkboxInput = "styles_checkboxInput__ktp4yx1";
12
+ var checkboxLabel = "styles__ktp4yx2";
13
+
14
+ // src/components/Checkbox/Checkbox.tsx
15
+ var Checkbox = forwardRef(
16
+ ({ label, className, indeterminate, ...props }, ref) => {
17
+ const inputRef = useRef(null);
18
+ const combinedRef = (node) => {
19
+ if (typeof ref === "function") {
20
+ ref(node);
21
+ } else if (ref) {
22
+ ref.current = node;
23
+ }
24
+ inputRef.current = node;
25
+ };
26
+ useEffect(() => {
27
+ if (inputRef.current) {
28
+ inputRef.current.indeterminate = !!indeterminate;
29
+ }
30
+ }, [indeterminate]);
31
+ return /* @__PURE__ */ React.createElement(
32
+ Box_default,
33
+ {
34
+ as: "label",
35
+ className: clsx(checkboxContainer, className),
36
+ display: "flex",
37
+ alignItems: "center",
38
+ gap: "small",
39
+ cursor: "pointer",
40
+ style: { userSelect: "none" }
41
+ },
42
+ /* @__PURE__ */ React.createElement(
43
+ Box_default,
44
+ {
45
+ as: "input",
46
+ type: "checkbox",
47
+ ref: combinedRef,
48
+ className: checkboxInput,
49
+ style: { width: "18px", height: "18px" },
50
+ ...props
51
+ }
52
+ ),
53
+ label && /* @__PURE__ */ React.createElement(Box_default, { as: "span", className: checkboxLabel }, label)
54
+ );
55
+ }
56
+ );
57
+ Checkbox.displayName = "Checkbox";
58
+ var Checkbox_default = Checkbox;
59
+
60
+ export {
61
+ Checkbox_default
62
+ };
File without changes
@@ -0,0 +1,85 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/Collapse/Collapse.tsx
6
+ import clsx from "clsx";
7
+ import React, { useState, useRef, useEffect } from "react";
8
+
9
+ // src/components/Collapse/styles.css.ts
10
+ var collapseContainer = "styles__1ui5oei2";
11
+ var collapseContent = "styles__1ui5oei3";
12
+
13
+ // src/components/Collapse/Collapse.tsx
14
+ var Collapse = ({
15
+ isOpen,
16
+ children,
17
+ animation = "both",
18
+ duration = 300,
19
+ className,
20
+ onAnimationEnd
21
+ }) => {
22
+ const [height, setHeight] = useState(
23
+ isOpen ? void 0 : 0
24
+ );
25
+ const [isAnimating, setIsAnimating] = useState(false);
26
+ const contentRef = useRef(null);
27
+ useEffect(() => {
28
+ if (isOpen) {
29
+ setIsAnimating(true);
30
+ if (contentRef.current) {
31
+ setHeight(contentRef.current.scrollHeight);
32
+ }
33
+ } else {
34
+ setIsAnimating(true);
35
+ setHeight(0);
36
+ }
37
+ }, [isOpen]);
38
+ const handleTransitionEnd = () => {
39
+ setIsAnimating(false);
40
+ if (isOpen) {
41
+ setHeight(void 0);
42
+ }
43
+ onAnimationEnd?.();
44
+ };
45
+ const getAnimationStyles = () => {
46
+ const baseStyles = {
47
+ transition: `height ${duration}ms ease-out, opacity ${duration}ms ease-out`,
48
+ height: height !== void 0 ? `${height}px` : void 0,
49
+ opacity: isOpen || isAnimating ? 1 : 0
50
+ };
51
+ if (animation === "height") {
52
+ return {
53
+ ...baseStyles,
54
+ transition: `height ${duration}ms ease-out`,
55
+ opacity: 1
56
+ };
57
+ }
58
+ if (animation === "opacity") {
59
+ return {
60
+ ...baseStyles,
61
+ transition: `opacity ${duration}ms ease-out`,
62
+ height: void 0
63
+ };
64
+ }
65
+ return baseStyles;
66
+ };
67
+ if (!isOpen && !isAnimating && animation !== "opacity") {
68
+ return null;
69
+ }
70
+ return /* @__PURE__ */ React.createElement(
71
+ Box_default,
72
+ {
73
+ className: clsx(collapseContainer, className),
74
+ style: getAnimationStyles(),
75
+ onTransitionEnd: handleTransitionEnd,
76
+ "aria-hidden": !isOpen
77
+ },
78
+ /* @__PURE__ */ React.createElement(Box_default, { ref: contentRef, className: collapseContent }, children)
79
+ );
80
+ };
81
+ var Collapse_default = Collapse;
82
+
83
+ export {
84
+ Collapse_default
85
+ };
File without changes
File without changes
@@ -0,0 +1,84 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/Radio/Radio.tsx
6
+ import clsx from "clsx";
7
+ import React, { forwardRef, createContext, useContext } from "react";
8
+
9
+ // src/components/Radio/styles.css.ts
10
+ var radioContainer = "styles__1n3yekb0";
11
+ var radioGroup = "styles__1n3yekb3";
12
+ var radioGroupHorizontal = "styles__1n3yekb4";
13
+ var radioInput = "styles_radioInput__1n3yekb1";
14
+ var radioLabel = "styles__1n3yekb2";
15
+
16
+ // src/components/Radio/Radio.tsx
17
+ var RadioContext = createContext({});
18
+ var Radio = forwardRef(
19
+ ({ label, className, value, ...props }, ref) => {
20
+ const context = useContext(RadioContext);
21
+ const name = context.name || props.name;
22
+ const isChecked = context.value === value;
23
+ const handleChange = () => {
24
+ if (context.onChange) {
25
+ context.onChange(value);
26
+ }
27
+ };
28
+ return /* @__PURE__ */ React.createElement(
29
+ Box_default,
30
+ {
31
+ as: "label",
32
+ className: clsx(radioContainer, className),
33
+ display: "flex",
34
+ alignItems: "center",
35
+ gap: "small",
36
+ cursor: "pointer",
37
+ style: { userSelect: "none" }
38
+ },
39
+ /* @__PURE__ */ React.createElement(
40
+ Box_default,
41
+ {
42
+ as: "input",
43
+ type: "radio",
44
+ ref,
45
+ name,
46
+ value,
47
+ checked: isChecked,
48
+ onChange: handleChange,
49
+ className: radioInput,
50
+ ...props
51
+ }
52
+ ),
53
+ label && /* @__PURE__ */ React.createElement(Box_default, { as: "span", className: radioLabel }, label)
54
+ );
55
+ }
56
+ );
57
+ Radio.displayName = "Radio";
58
+ var RadioGroup = ({
59
+ children,
60
+ name,
61
+ value,
62
+ onChange,
63
+ layout = "vertical",
64
+ className
65
+ }) => {
66
+ return /* @__PURE__ */ React.createElement(RadioContext.Provider, { value: { name, value, onChange } }, /* @__PURE__ */ React.createElement(
67
+ Box_default,
68
+ {
69
+ className: clsx(
70
+ layout === "horizontal" ? radioGroupHorizontal : radioGroup,
71
+ className
72
+ )
73
+ },
74
+ children
75
+ ));
76
+ };
77
+ var RadioComponent = Object.assign(Radio, {
78
+ Group: RadioGroup
79
+ });
80
+ var Radio_default = RadioComponent;
81
+
82
+ export {
83
+ Radio_default
84
+ };
@@ -0,0 +1,21 @@
1
+ import {
2
+ formInputStyle
3
+ } from "./chunk-KSIX4U53.mjs";
4
+ import {
5
+ Input_default
6
+ } from "./chunk-VGEM65JM.mjs";
7
+ import {
8
+ Box_default
9
+ } from "./chunk-QUQTMW54.mjs";
10
+
11
+ // src/components/Form/FormInput.tsx
12
+ import clsx from "clsx";
13
+ import React from "react";
14
+ var FormInput = (props) => {
15
+ return /* @__PURE__ */ React.createElement(Box_default, { as: Input_default, padding: "small", className: clsx(formInputStyle, props.className), label: props.label, ...props });
16
+ };
17
+ var FormInput_default = FormInput;
18
+
19
+ export {
20
+ FormInput_default
21
+ };
@@ -0,0 +1,15 @@
1
+ // src/components/Kbd/Kbd.tsx
2
+ import React from "react";
3
+
4
+ // src/components/Kbd/styles.css.ts
5
+ var kbd = "styles__y0u7oh0";
6
+
7
+ // src/components/Kbd/Kbd.tsx
8
+ var Kbd = ({ children, className, ...props }) => {
9
+ return /* @__PURE__ */ React.createElement("kbd", { className: `${kbd} ${className || ""}`, ...props }, children);
10
+ };
11
+ var Kbd_default = Kbd;
12
+
13
+ export {
14
+ Kbd_default
15
+ };
File without changes
@@ -0,0 +1,8 @@
1
+ // src/components/Navbar/styles.css.ts
2
+ var navbarItemStyle = "styles__1oxooju1";
3
+ var navbarStyle = "styles__1oxooju0";
4
+
5
+ export {
6
+ navbarItemStyle,
7
+ navbarStyle
8
+ };
@@ -0,0 +1,51 @@
1
+ import {
2
+ text
3
+ } from "./chunk-GMAR37YG.mjs";
4
+ import {
5
+ Box_default
6
+ } from "./chunk-QUQTMW54.mjs";
7
+
8
+ // src/components/TextArea/TextArea.tsx
9
+ import clsx from "clsx";
10
+ import React from "react";
11
+
12
+ // src/components/TextArea/styles.css.ts
13
+ var label = "styles__118k1ug1";
14
+ var textAreaStyle = "styles__118k1ug0";
15
+
16
+ // src/components/TextArea/TextArea.tsx
17
+ var TextArea = (props) => {
18
+ return /* @__PURE__ */ React.createElement(
19
+ Box_default,
20
+ {
21
+ display: "flex",
22
+ flexDirection: { mobile: "column", tablet: "row" },
23
+ gap: "small"
24
+ },
25
+ props.label && /* @__PURE__ */ React.createElement(
26
+ Box_default,
27
+ {
28
+ as: "label",
29
+ className: clsx(text, label),
30
+ marginX: { mobile: "auto", tablet: "none" },
31
+ marginY: { mobile: "none", tablet: "auto" },
32
+ htmlFor: props.id
33
+ },
34
+ props.label
35
+ ),
36
+ /* @__PURE__ */ React.createElement(
37
+ Box_default,
38
+ {
39
+ as: "textarea",
40
+ className: clsx(textAreaStyle, props.className),
41
+ width: props.fullWidth ? "100%" : void 0,
42
+ ...props
43
+ }
44
+ )
45
+ );
46
+ };
47
+ var TextArea_default = TextArea;
48
+
49
+ export {
50
+ TextArea_default
51
+ };
File without changes
File without changes
@@ -0,0 +1,214 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/Combobox/Combobox.tsx
6
+ import clsx from "clsx";
7
+ import React, { useState, useRef, useEffect } from "react";
8
+
9
+ // src/components/Combobox/styles.css.ts
10
+ var comboboxArrow = "styles__1xhiitqa";
11
+ var comboboxClearButton = "styles__1xhiitq9";
12
+ var comboboxContainer = "styles__1xhiitq0";
13
+ var comboboxDropdown = "styles__1xhiitq5";
14
+ var comboboxErrorMessage = "styles__1xhiitqd";
15
+ var comboboxHint = "styles__1xhiitqc";
16
+ var comboboxInput = "styles__1xhiitq1";
17
+ var comboboxInputVariants = { "default": "styles_comboboxInputVariants_default__1xhiitq2", error: "styles_comboboxInputVariants_error__1xhiitq3" };
18
+ var comboboxLabel = "styles__1xhiitq4";
19
+ var comboboxNoResults = "styles__1xhiitqb";
20
+ var comboboxOption = "styles__1xhiitq6";
21
+ var comboboxOptionDisabled = "styles__1xhiitq8";
22
+ var comboboxOptionSelected = "styles__1xhiitq7";
23
+
24
+ // src/components/Combobox/Combobox.tsx
25
+ var defaultFilterFn = (option, inputValue) => {
26
+ return option.label.toLowerCase().includes(inputValue.toLowerCase());
27
+ };
28
+ var Combobox = ({
29
+ label,
30
+ options,
31
+ value,
32
+ onChange,
33
+ onInputChange,
34
+ placeholder = "Search...",
35
+ hint,
36
+ error = false,
37
+ errorMessage,
38
+ fullWidth = true,
39
+ clearable = true,
40
+ disabled = false,
41
+ filterFn = defaultFilterFn,
42
+ className,
43
+ ...props
44
+ }) => {
45
+ const [inputValue, setInputValue] = useState("");
46
+ const [isOpen, setIsOpen] = useState(false);
47
+ const [highlightedIndex, setHighlightedIndex] = useState(-1);
48
+ const containerRef = useRef(null);
49
+ const inputRef = useRef(null);
50
+ const selectedOption = options.find((opt) => opt.value === value);
51
+ useEffect(() => {
52
+ if (selectedOption) {
53
+ setInputValue(selectedOption.label);
54
+ } else if (!isOpen) {
55
+ setInputValue("");
56
+ }
57
+ }, [selectedOption, isOpen]);
58
+ const filteredOptions = options.filter(
59
+ (option) => filterFn(option, inputValue)
60
+ );
61
+ useEffect(() => {
62
+ const handleClickOutside = (event) => {
63
+ if (containerRef.current && !containerRef.current.contains(event.target)) {
64
+ setIsOpen(false);
65
+ if (selectedOption) {
66
+ setInputValue(selectedOption.label);
67
+ } else {
68
+ setInputValue("");
69
+ }
70
+ }
71
+ };
72
+ document.addEventListener("mousedown", handleClickOutside);
73
+ return () => document.removeEventListener("mousedown", handleClickOutside);
74
+ }, [selectedOption]);
75
+ const handleInputChange = (e) => {
76
+ const newValue = e.target.value;
77
+ setInputValue(newValue);
78
+ setIsOpen(true);
79
+ setHighlightedIndex(-1);
80
+ onInputChange?.(newValue);
81
+ if (!newValue) {
82
+ onChange?.("", null);
83
+ }
84
+ };
85
+ const handleOptionClick = (option) => {
86
+ if (option.disabled) return;
87
+ setInputValue(option.label);
88
+ setIsOpen(false);
89
+ onChange?.(option.value, option);
90
+ };
91
+ const handleClear = (e) => {
92
+ e.stopPropagation();
93
+ setInputValue("");
94
+ setIsOpen(false);
95
+ onChange?.("", null);
96
+ inputRef.current?.focus();
97
+ };
98
+ const handleKeyDown = (e) => {
99
+ if (disabled) return;
100
+ switch (e.key) {
101
+ case "ArrowDown":
102
+ e.preventDefault();
103
+ if (!isOpen) {
104
+ setIsOpen(true);
105
+ }
106
+ setHighlightedIndex(
107
+ (prev) => prev < filteredOptions.length - 1 ? prev + 1 : prev
108
+ );
109
+ break;
110
+ case "ArrowUp":
111
+ e.preventDefault();
112
+ setHighlightedIndex((prev) => prev > 0 ? prev - 1 : prev);
113
+ break;
114
+ case "Enter":
115
+ e.preventDefault();
116
+ if (isOpen && highlightedIndex >= 0 && filteredOptions[highlightedIndex]) {
117
+ handleOptionClick(filteredOptions[highlightedIndex]);
118
+ } else {
119
+ setIsOpen(!isOpen);
120
+ }
121
+ break;
122
+ case "Escape":
123
+ setIsOpen(false);
124
+ if (selectedOption) {
125
+ setInputValue(selectedOption.label);
126
+ } else {
127
+ setInputValue("");
128
+ }
129
+ break;
130
+ }
131
+ };
132
+ const displayValue = selectedOption && !isOpen ? selectedOption.label : inputValue;
133
+ return /* @__PURE__ */ React.createElement(
134
+ Box_default,
135
+ {
136
+ className: comboboxContainer,
137
+ ref: containerRef,
138
+ width: fullWidth ? "100%" : void 0
139
+ },
140
+ label && /* @__PURE__ */ React.createElement(Box_default, { as: "label", className: comboboxLabel }, label),
141
+ /* @__PURE__ */ React.createElement(Box_default, { position: "relative" }, /* @__PURE__ */ React.createElement(
142
+ Box_default,
143
+ {
144
+ as: "input",
145
+ ref: inputRef,
146
+ type: "text",
147
+ value: displayValue,
148
+ onChange: handleInputChange,
149
+ onKeyDown: handleKeyDown,
150
+ onFocus: () => setIsOpen(true),
151
+ placeholder,
152
+ disabled,
153
+ className: clsx(
154
+ comboboxInput,
155
+ comboboxInputVariants[error ? "error" : "default"],
156
+ className
157
+ ),
158
+ role: "combobox",
159
+ "aria-expanded": isOpen,
160
+ "aria-autocomplete": "list",
161
+ "aria-controls": isOpen ? "combobox-listbox" : void 0,
162
+ "aria-activedescendant": highlightedIndex >= 0 ? `option-${filteredOptions[highlightedIndex]?.value}` : void 0,
163
+ ...props
164
+ }
165
+ ), clearable && inputValue && !disabled && /* @__PURE__ */ React.createElement(
166
+ Box_default,
167
+ {
168
+ as: "button",
169
+ className: comboboxClearButton,
170
+ onClick: handleClear,
171
+ type: "button",
172
+ "aria-label": "Clear selection"
173
+ },
174
+ "\xD7"
175
+ ), /* @__PURE__ */ React.createElement(Box_default, { className: comboboxArrow, "aria-hidden": "true" }, /* @__PURE__ */ React.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "currentColor" }, /* @__PURE__ */ React.createElement("path", { d: "M6 8L1 3h10z" })))),
176
+ isOpen && /* @__PURE__ */ React.createElement(
177
+ Box_default,
178
+ {
179
+ as: "ul",
180
+ id: "combobox-listbox",
181
+ className: comboboxDropdown,
182
+ role: "listbox"
183
+ },
184
+ filteredOptions.length === 0 ? /* @__PURE__ */ React.createElement(Box_default, { as: "li", className: comboboxNoResults }, "No results found") : filteredOptions.map((option, index) => /* @__PURE__ */ React.createElement(
185
+ Box_default,
186
+ {
187
+ key: option.value,
188
+ as: "li",
189
+ id: `option-${option.value}`,
190
+ className: clsx(
191
+ comboboxOption,
192
+ option.value === value && comboboxOptionSelected,
193
+ option.disabled && comboboxOptionDisabled
194
+ ),
195
+ onClick: () => handleOptionClick(option),
196
+ role: "option",
197
+ "aria-selected": option.value === value,
198
+ "aria-disabled": option.disabled,
199
+ style: {
200
+ backgroundColor: index === highlightedIndex ? "var(--highlight-color, #f3f4f6)" : void 0
201
+ }
202
+ },
203
+ option.label
204
+ ))
205
+ ),
206
+ error && errorMessage && /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: comboboxErrorMessage, role: "alert" }, errorMessage),
207
+ hint && !error && /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: comboboxHint }, hint)
208
+ );
209
+ };
210
+ var Combobox_default = Combobox;
211
+
212
+ export {
213
+ Combobox_default
214
+ };
File without changes
@@ -0,0 +1,101 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/Tabs/Tabs.tsx
6
+ import clsx from "clsx";
7
+ import React, { createContext, useContext, useState } from "react";
8
+
9
+ // src/components/Tabs/styles.css.ts
10
+ var tabContent = "styles__1btv2dn7";
11
+ var tabItem = { base: "styles_tabItem_base__1btv2dn4", active: "styles_tabItem_active__1btv2dn5", verticalActive: "styles_tabItem_verticalActive__1btv2dn6" };
12
+ var tabsContainer = "styles__1btv2dn0";
13
+ var tabsList = "styles__1btv2dn1";
14
+ var tabsListHorizontal = "styles__1btv2dn2";
15
+ var tabsListVertical = "styles__1btv2dn3";
16
+
17
+ // src/components/Tabs/Tabs.tsx
18
+ var TabsContext = createContext({
19
+ activeTab: "",
20
+ setActiveTab: () => {
21
+ }
22
+ });
23
+ var Tabs = ({
24
+ children,
25
+ defaultValue = "",
26
+ orientation = "horizontal",
27
+ onChange,
28
+ className,
29
+ ...props
30
+ }) => {
31
+ const [activeTab, setActiveTab] = useState(defaultValue);
32
+ const handleTabChange = (value) => {
33
+ setActiveTab(value);
34
+ if (onChange) {
35
+ onChange(value);
36
+ }
37
+ };
38
+ return /* @__PURE__ */ React.createElement(
39
+ TabsContext.Provider,
40
+ {
41
+ value: { activeTab, setActiveTab: handleTabChange, orientation }
42
+ },
43
+ /* @__PURE__ */ React.createElement(Box_default, { className: clsx(tabsContainer, className), width: "100%", ...props }, children)
44
+ );
45
+ };
46
+ var TabList = ({ children, className }) => {
47
+ const { orientation } = useContext(TabsContext);
48
+ return /* @__PURE__ */ React.createElement(
49
+ Box_default,
50
+ {
51
+ as: "div",
52
+ role: "tablist",
53
+ className: clsx(
54
+ tabsList,
55
+ orientation === "vertical" ? tabsListVertical : tabsListHorizontal,
56
+ className
57
+ )
58
+ },
59
+ children
60
+ );
61
+ };
62
+ var Tab = ({ value, children, disabled = false, className }) => {
63
+ const { activeTab, setActiveTab, orientation } = useContext(TabsContext);
64
+ const isActive = activeTab === value;
65
+ const handleClick = () => {
66
+ if (!disabled) {
67
+ setActiveTab(value);
68
+ }
69
+ };
70
+ return /* @__PURE__ */ React.createElement(
71
+ Box_default,
72
+ {
73
+ as: "button",
74
+ role: "tab",
75
+ "aria-selected": isActive,
76
+ disabled,
77
+ onClick: handleClick,
78
+ className: clsx(
79
+ tabItem[orientation === "vertical" ? isActive ? "verticalActive" : "base" : isActive ? "active" : "base"],
80
+ className
81
+ )
82
+ },
83
+ children
84
+ );
85
+ };
86
+ var TabPanel = ({ value, children, className }) => {
87
+ const { activeTab } = useContext(TabsContext);
88
+ const isActive = activeTab === value;
89
+ if (!isActive) return null;
90
+ return /* @__PURE__ */ React.createElement(Box_default, { as: "div", role: "tabpanel", className: clsx(tabContent, className) }, children);
91
+ };
92
+ var TabsComponent = Object.assign(Tabs, {
93
+ List: TabList,
94
+ Tab,
95
+ Panel: TabPanel
96
+ });
97
+ var Tabs_default = TabsComponent;
98
+
99
+ export {
100
+ Tabs_default
101
+ };
File without changes