@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
@@ -0,0 +1,122 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/DropdownMenu/DropdownMenu.tsx
6
+ import clsx from "clsx";
7
+ import React, { useState, useRef, useEffect } from "react";
8
+
9
+ // src/components/DropdownMenu/styles.css.ts
10
+ var dropdownMenuContainer = "styles__zvis9o0";
11
+ var dropdownMenuContent = "styles__zvis9o2";
12
+ var dropdownMenuGroup = "styles__zvis9oc";
13
+ var dropdownMenuItem = "styles__zvis9o7";
14
+ var dropdownMenuItemVariants = { "default": "styles_dropdownMenuItemVariants_default__zvis9o8", destructive: "styles_dropdownMenuItemVariants_destructive__zvis9o9", disabled: "styles_dropdownMenuItemVariants_disabled__zvis9oa" };
15
+ var dropdownMenuLabel = "styles__zvis9od";
16
+ var dropdownMenuPositionVariants = { bottomLeft: "styles_dropdownMenuPositionVariants_bottomLeft__zvis9o3", bottomRight: "styles_dropdownMenuPositionVariants_bottomRight__zvis9o4", topLeft: "styles_dropdownMenuPositionVariants_topLeft__zvis9o5", topRight: "styles_dropdownMenuPositionVariants_topRight__zvis9o6" };
17
+ var dropdownMenuSeparator = "styles__zvis9ob";
18
+ var dropdownMenuTrigger = "styles__zvis9o1";
19
+
20
+ // src/components/DropdownMenu/DropdownMenu.tsx
21
+ var DropdownMenu = ({
22
+ trigger,
23
+ items = [],
24
+ groups = [],
25
+ position = "bottomLeft",
26
+ closeOnItemClick = true,
27
+ className,
28
+ ...props
29
+ }) => {
30
+ const [isOpen, setIsOpen] = useState(false);
31
+ const containerRef = useRef(null);
32
+ useEffect(() => {
33
+ const handleClickOutside = (event) => {
34
+ if (containerRef.current && !containerRef.current.contains(event.target)) {
35
+ setIsOpen(false);
36
+ }
37
+ };
38
+ if (isOpen) {
39
+ document.addEventListener("mousedown", handleClickOutside);
40
+ }
41
+ return () => {
42
+ document.removeEventListener("mousedown", handleClickOutside);
43
+ };
44
+ }, [isOpen]);
45
+ useEffect(() => {
46
+ const handleEscape = (e) => {
47
+ if (e.key === "Escape" && isOpen) {
48
+ setIsOpen(false);
49
+ }
50
+ };
51
+ document.addEventListener("keydown", handleEscape);
52
+ return () => document.removeEventListener("keydown", handleEscape);
53
+ }, [isOpen]);
54
+ const handleItemClick = (item) => {
55
+ if (item.disabled || item.variant === "disabled") return;
56
+ item.onClick?.();
57
+ if (closeOnItemClick) {
58
+ setIsOpen(false);
59
+ }
60
+ };
61
+ const renderItem = (item, index) => /* @__PURE__ */ React.createElement(
62
+ Box_default,
63
+ {
64
+ key: index,
65
+ as: "button",
66
+ className: clsx(
67
+ dropdownMenuItem,
68
+ dropdownMenuItemVariants[item.disabled || item.variant === "disabled" ? "disabled" : item.variant || "default"]
69
+ ),
70
+ onClick: () => handleItemClick(item),
71
+ disabled: item.disabled || item.variant === "disabled",
72
+ role: "menuitem",
73
+ type: "button"
74
+ },
75
+ item.icon && /* @__PURE__ */ React.createElement("span", null, item.icon),
76
+ item.label
77
+ );
78
+ const renderGroup = (group, index) => /* @__PURE__ */ React.createElement(Box_default, { key: index, className: dropdownMenuGroup, role: "group" }, group.label && /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: dropdownMenuLabel, role: "presentation" }, group.label), group.items.map((item, itemIndex) => renderItem(item, itemIndex)));
79
+ return /* @__PURE__ */ React.createElement(
80
+ Box_default,
81
+ {
82
+ ref: containerRef,
83
+ className: clsx(dropdownMenuContainer, className),
84
+ ...props
85
+ },
86
+ /* @__PURE__ */ React.createElement(
87
+ Box_default,
88
+ {
89
+ className: dropdownMenuTrigger,
90
+ onClick: () => setIsOpen(!isOpen),
91
+ "aria-expanded": isOpen,
92
+ "aria-haspopup": "true"
93
+ },
94
+ trigger
95
+ ),
96
+ isOpen && /* @__PURE__ */ React.createElement(
97
+ Box_default,
98
+ {
99
+ className: clsx(
100
+ dropdownMenuContent,
101
+ dropdownMenuPositionVariants[position]
102
+ ),
103
+ role: "menu",
104
+ "aria-orientation": "vertical"
105
+ },
106
+ items.length > 0 && /* @__PURE__ */ React.createElement(Box_default, { className: dropdownMenuGroup }, items.map((item, index) => renderItem(item, index))),
107
+ groups.map((group, index) => /* @__PURE__ */ React.createElement(React.Fragment, { key: index }, index > 0 && /* @__PURE__ */ React.createElement(
108
+ Box_default,
109
+ {
110
+ as: "div",
111
+ className: dropdownMenuSeparator,
112
+ role: "separator"
113
+ }
114
+ ), renderGroup(group, index)))
115
+ )
116
+ );
117
+ };
118
+ var DropdownMenu_default = DropdownMenu;
119
+
120
+ export {
121
+ DropdownMenu_default
122
+ };
File without changes
@@ -0,0 +1,53 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/Skeleton/Skeleton.tsx
6
+ import clsx from "clsx";
7
+ import React from "react";
8
+
9
+ // src/components/Skeleton/styles.css.ts
10
+ var skeleton = "styles__1tdpoprb";
11
+ var skeletonAnimation = { shimmer: "styles_skeletonAnimation_shimmer__1tdpopr8", pulse: "styles_skeletonAnimation_pulse__1tdpopr9", none: "styles_skeletonAnimation_none__1tdpopra" };
12
+ var skeletonSizes = { small: "styles_skeletonSizes_small__1tdpopr5", medium: "styles_skeletonSizes_medium__1tdpopr6", large: "styles_skeletonSizes_large__1tdpopr7" };
13
+ var skeletonVariants = { text: "styles_skeletonVariants_text__1tdpopr2", circle: "styles_skeletonVariants_circle__1tdpopr3", rectangle: "styles_skeletonVariants_rectangle__1tdpopr4" };
14
+
15
+ // src/components/Skeleton/Skeleton.tsx
16
+ var Skeleton = ({
17
+ variant = "text",
18
+ size = "medium",
19
+ animation = "shimmer",
20
+ width,
21
+ height,
22
+ count = 1,
23
+ className,
24
+ ...props
25
+ }) => {
26
+ const style = {
27
+ width,
28
+ height
29
+ };
30
+ const skeletons = Array.from({ length: count }, (_, index) => /* @__PURE__ */ React.createElement(
31
+ Box_default,
32
+ {
33
+ key: index,
34
+ as: "span",
35
+ className: clsx(
36
+ skeleton,
37
+ skeletonVariants[variant],
38
+ skeletonSizes[size],
39
+ skeletonAnimation[animation],
40
+ className
41
+ ),
42
+ style,
43
+ "aria-hidden": "true",
44
+ ...props
45
+ }
46
+ ));
47
+ return /* @__PURE__ */ React.createElement(Box_default, { display: "flex", flexDirection: "column", gap: "small" }, skeletons);
48
+ };
49
+ var Skeleton_default = Skeleton;
50
+
51
+ export {
52
+ Skeleton_default
53
+ };
@@ -0,0 +1,57 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/Stack/Stack.tsx
6
+ import React, { forwardRef } from "react";
7
+ var alignMap = {
8
+ start: "flex-start",
9
+ center: "center",
10
+ end: "flex-end",
11
+ stretch: "stretch"
12
+ };
13
+ var justifyMap = {
14
+ start: "flex-start",
15
+ center: "center",
16
+ end: "flex-end",
17
+ between: "space-between",
18
+ around: "space-around",
19
+ evenly: "space-evenly"
20
+ };
21
+ var Stack = forwardRef(
22
+ ({
23
+ direction = "column",
24
+ align,
25
+ justify,
26
+ gap,
27
+ wrap,
28
+ children,
29
+ className,
30
+ style,
31
+ ...rest
32
+ }, ref) => {
33
+ const alignItems = align ? alignMap[align] : void 0;
34
+ const justifyContent = justify ? justifyMap[justify] : void 0;
35
+ return /* @__PURE__ */ React.createElement(
36
+ Box_default,
37
+ {
38
+ ref,
39
+ display: "flex",
40
+ flexDirection: direction,
41
+ alignItems,
42
+ justifyContent,
43
+ gap,
44
+ className,
45
+ style: { flexWrap: wrap ? "wrap" : void 0, ...style },
46
+ ...rest
47
+ },
48
+ children
49
+ );
50
+ }
51
+ );
52
+ Stack.displayName = "Stack";
53
+ var Stack_default = Stack;
54
+
55
+ export {
56
+ Stack_default
57
+ };
File without changes
File without changes
@@ -0,0 +1,69 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/Tag/Tag.tsx
6
+ import clsx from "clsx";
7
+ import React from "react";
8
+
9
+ // src/components/Tag/styles.css.ts
10
+ var removeButton = "styles_removeButton__1xe66kw6";
11
+ var tag = { base: "styles_tag_base__1xe66kw0", "default": "styles_tag_default__1xe66kw1", primary: "styles_tag_primary__1xe66kw2", success: "styles_tag_success__1xe66kw3", warning: "styles_tag_warning__1xe66kw4", error: "styles_tag_error__1xe66kw5" };
12
+ var tagGroup = "styles__1xe66kw7";
13
+
14
+ // src/components/Tag/Tag.tsx
15
+ var Tag = ({
16
+ children,
17
+ variant = "default",
18
+ onRemove,
19
+ removable = false,
20
+ className
21
+ }) => {
22
+ return /* @__PURE__ */ React.createElement(
23
+ Box_default,
24
+ {
25
+ as: "span",
26
+ className: clsx(tag[variant], className),
27
+ display: "inline",
28
+ alignItems: "center"
29
+ },
30
+ children,
31
+ removable && /* @__PURE__ */ React.createElement(
32
+ Box_default,
33
+ {
34
+ as: "span",
35
+ onClick: onRemove,
36
+ className: removeButton,
37
+ role: "button",
38
+ tabIndex: 0,
39
+ "aria-label": "Remove tag",
40
+ onKeyDown: (e) => {
41
+ if (e.key === "Enter" || e.key === " ") {
42
+ onRemove?.();
43
+ }
44
+ }
45
+ },
46
+ "\xD7"
47
+ )
48
+ );
49
+ };
50
+ var TagGroup = ({ children, className }) => {
51
+ return /* @__PURE__ */ React.createElement(
52
+ Box_default,
53
+ {
54
+ className: clsx(tagGroup, className),
55
+ display: "flex",
56
+ gap: "small",
57
+ style: { flexWrap: "wrap" }
58
+ },
59
+ children
60
+ );
61
+ };
62
+ var TagComponent = Object.assign(Tag, {
63
+ Group: TagGroup
64
+ });
65
+ var Tag_default = TagComponent;
66
+
67
+ export {
68
+ Tag_default
69
+ };
File without changes
@@ -0,0 +1,45 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/ScrollArea/ScrollArea.tsx
6
+ import clsx from "clsx";
7
+ import React from "react";
8
+
9
+ // src/components/ScrollArea/styles.css.ts
10
+ var scrollArea = "styles__1jlur7n0";
11
+ var scrollAreaOrientation = { vertical: "styles_scrollAreaOrientation_vertical__1jlur7n1", horizontal: "styles_scrollAreaOrientation_horizontal__1jlur7n2", both: "styles_scrollAreaOrientation_both__1jlur7n3" };
12
+ var scrollAreaViewport = "styles__1jlur7n4";
13
+
14
+ // src/components/ScrollArea/ScrollArea.tsx
15
+ var ScrollArea = ({
16
+ children,
17
+ orientation = "vertical",
18
+ maxHeight,
19
+ maxWidth,
20
+ className,
21
+ ...props
22
+ }) => {
23
+ const style = {
24
+ maxHeight,
25
+ maxWidth
26
+ };
27
+ return /* @__PURE__ */ React.createElement(
28
+ Box_default,
29
+ {
30
+ className: clsx(
31
+ scrollArea,
32
+ scrollAreaOrientation[orientation],
33
+ className
34
+ ),
35
+ style,
36
+ ...props
37
+ },
38
+ /* @__PURE__ */ React.createElement(Box_default, { className: scrollAreaViewport }, children)
39
+ );
40
+ };
41
+ var ScrollArea_default = ScrollArea;
42
+
43
+ export {
44
+ ScrollArea_default
45
+ };
File without changes
File without changes
File without changes
@@ -0,0 +1,41 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/Divider/Divider.tsx
6
+ import clsx from "clsx";
7
+
8
+ // src/components/Divider/styles.css.ts
9
+ var divider = "styles__q20avm5";
10
+ var dividerOrientations = { horizontal: "styles_dividerOrientations_horizontal__q20avm0", vertical: "styles_dividerOrientations_vertical__q20avm1" };
11
+ var dividerSizes = { small: "styles_dividerSizes_small__q20avm2", medium: "styles_dividerSizes_medium__q20avm3", large: "styles_dividerSizes_large__q20avm4" };
12
+ var dividerVerticalSizes = { small: "styles_dividerVerticalSizes_small__q20avm6", medium: "styles_dividerVerticalSizes_medium__q20avm7", large: "styles_dividerVerticalSizes_large__q20avm8" };
13
+
14
+ // src/components/Divider/Divider.tsx
15
+ import React from "react";
16
+ var Divider = ({
17
+ orientation = "horizontal",
18
+ size = "medium",
19
+ ...props
20
+ }) => {
21
+ return /* @__PURE__ */ React.createElement(
22
+ Box_default,
23
+ {
24
+ as: "hr",
25
+ className: clsx(
26
+ divider,
27
+ dividerOrientations[orientation],
28
+ orientation === "vertical" ? dividerVerticalSizes[size] : dividerSizes[size],
29
+ props.className
30
+ ),
31
+ role: "separator",
32
+ "aria-orientation": orientation,
33
+ ...props
34
+ }
35
+ );
36
+ };
37
+ var Divider_default = Divider;
38
+
39
+ export {
40
+ Divider_default
41
+ };
@@ -0,0 +1,207 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/FileUpload/FileUpload.tsx
6
+ import clsx from "clsx";
7
+ import React, { useState, useRef, useCallback } from "react";
8
+
9
+ // src/components/FileUpload/styles.css.ts
10
+ var fileUploadContainer = "styles__t7nsl90";
11
+ var fileUploadDropzone = "styles__t7nsl91";
12
+ var fileUploadDropzoneVariants = { "default": "styles_fileUploadDropzoneVariants_default__t7nsl92", dragOver: "styles_fileUploadDropzoneVariants_dragOver__t7nsl93", error: "styles_fileUploadDropzoneVariants_error__t7nsl94", disabled: "styles_fileUploadDropzoneVariants_disabled__t7nsl95" };
13
+ var fileUploadError = "styles__t7nsl9h";
14
+ var fileUploadHint = "styles__t7nsl98";
15
+ var fileUploadIcon = "styles__t7nsl9i";
16
+ var fileUploadInput = "styles__t7nsl99";
17
+ var fileUploadItem = "styles__t7nsl9b";
18
+ var fileUploadItemInfo = "styles__t7nsl9c";
19
+ var fileUploadItemName = "styles__t7nsl9d";
20
+ var fileUploadItemSize = "styles__t7nsl9e";
21
+ var fileUploadLabel = "styles__t7nsl96";
22
+ var fileUploadList = "styles__t7nsl9a";
23
+ var fileUploadProgressBar = "styles__t7nsl9j";
24
+ var fileUploadProgressFill = "styles__t7nsl9k";
25
+ var fileUploadProgressFillVariants = { uploading: "styles_fileUploadProgressFillVariants_uploading__t7nsl9l", success: "styles_fileUploadProgressFillVariants_success__t7nsl9m", error: "styles_fileUploadProgressFillVariants_error__t7nsl9n" };
26
+ var fileUploadRemoveButton = "styles__t7nsl9g";
27
+ var fileUploadText = "styles__t7nsl97";
28
+
29
+ // src/components/FileUpload/FileUpload.tsx
30
+ var formatFileSize = (bytes) => {
31
+ if (bytes === 0) return "0 Bytes";
32
+ const k = 1024;
33
+ const sizes = ["Bytes", "KB", "MB", "GB"];
34
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
35
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + " " + sizes[i];
36
+ };
37
+ var FileUpload = ({
38
+ label,
39
+ files = [],
40
+ onFilesChange,
41
+ onFileAdd,
42
+ onFileRemove,
43
+ accept,
44
+ multiple = false,
45
+ maxFileSize,
46
+ maxFiles,
47
+ disabled = false,
48
+ dropzoneText = "Drag and drop files here, or click to browse",
49
+ hint,
50
+ showProgress = true,
51
+ className,
52
+ ...props
53
+ }) => {
54
+ const [isDragOver, setIsDragOver] = useState(false);
55
+ const [error, setError] = useState(null);
56
+ const inputRef = useRef(null);
57
+ const validateFile = (file) => {
58
+ if (maxFileSize && file.size > maxFileSize) {
59
+ return `File size exceeds ${formatFileSize(maxFileSize)}`;
60
+ }
61
+ if (accept) {
62
+ const acceptedTypes = accept.split(",").map((type) => type.trim());
63
+ const isAccepted = acceptedTypes.some((type) => {
64
+ if (type.includes("*")) {
65
+ return file.type.startsWith(type.replace("/*", ""));
66
+ }
67
+ return file.type === type || file.name.endsWith(type);
68
+ });
69
+ if (!isAccepted) {
70
+ return `File type not accepted. Allowed: ${accept}`;
71
+ }
72
+ }
73
+ return null;
74
+ };
75
+ const handleFiles = useCallback(
76
+ (fileList) => {
77
+ if (!fileList || disabled) return;
78
+ const newFiles = [];
79
+ const errors = [];
80
+ Array.from(fileList).forEach((file) => {
81
+ const validationError = validateFile(file);
82
+ if (validationError) {
83
+ errors.push(`${file.name}: ${validationError}`);
84
+ } else {
85
+ newFiles.push(file);
86
+ }
87
+ });
88
+ if (maxFiles && files.length + newFiles.length > maxFiles) {
89
+ errors.push(`Maximum ${maxFiles} files allowed`);
90
+ newFiles.splice(maxFiles - files.length);
91
+ }
92
+ if (errors.length > 0) {
93
+ setError(errors.join(", "));
94
+ } else {
95
+ setError(null);
96
+ }
97
+ if (newFiles.length > 0) {
98
+ onFileAdd?.(newFiles);
99
+ }
100
+ },
101
+ [disabled, files.length, maxFileSize, maxFiles, accept, onFileAdd]
102
+ );
103
+ const handleDragOver = (e) => {
104
+ e.preventDefault();
105
+ if (!disabled) {
106
+ setIsDragOver(true);
107
+ }
108
+ };
109
+ const handleDragLeave = (e) => {
110
+ e.preventDefault();
111
+ setIsDragOver(false);
112
+ };
113
+ const handleDrop = (e) => {
114
+ e.preventDefault();
115
+ setIsDragOver(false);
116
+ handleFiles(e.dataTransfer.files);
117
+ };
118
+ const handleClick = () => {
119
+ if (!disabled) {
120
+ inputRef.current?.click();
121
+ }
122
+ };
123
+ const handleInputChange = (e) => {
124
+ handleFiles(e.target.files);
125
+ e.target.value = "";
126
+ };
127
+ const handleRemove = (fileId) => {
128
+ onFileRemove?.(fileId);
129
+ };
130
+ const getVariant = () => {
131
+ if (disabled) return "disabled";
132
+ if (error) return "error";
133
+ if (isDragOver) return "dragOver";
134
+ return "default";
135
+ };
136
+ return /* @__PURE__ */ React.createElement(Box_default, { className: clsx(fileUploadContainer, className), ...props }, label && /* @__PURE__ */ React.createElement(Box_default, { as: "label", className: fileUploadLabel }, label), /* @__PURE__ */ React.createElement(
137
+ Box_default,
138
+ {
139
+ as: "div",
140
+ className: clsx(
141
+ fileUploadDropzone,
142
+ fileUploadDropzoneVariants[getVariant()]
143
+ ),
144
+ onDragOver: handleDragOver,
145
+ onDragLeave: handleDragLeave,
146
+ onDrop: handleDrop,
147
+ onClick: handleClick,
148
+ role: "button",
149
+ tabIndex: disabled ? -1 : 0,
150
+ "aria-disabled": disabled
151
+ },
152
+ /* @__PURE__ */ React.createElement(Box_default, { className: fileUploadIcon, "aria-hidden": "true" }, /* @__PURE__ */ React.createElement(
153
+ "svg",
154
+ {
155
+ width: "48",
156
+ height: "48",
157
+ viewBox: "0 0 24 24",
158
+ fill: "none",
159
+ stroke: "currentColor",
160
+ strokeWidth: "2"
161
+ },
162
+ /* @__PURE__ */ React.createElement("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
163
+ /* @__PURE__ */ React.createElement("polyline", { points: "17,8 12,3 7,8" }),
164
+ /* @__PURE__ */ React.createElement("line", { x1: "12", y1: "3", x2: "12", y2: "15" })
165
+ )),
166
+ /* @__PURE__ */ React.createElement(Box_default, { as: "p", className: fileUploadText }, dropzoneText),
167
+ hint && /* @__PURE__ */ React.createElement(Box_default, { as: "p", className: fileUploadHint }, hint),
168
+ /* @__PURE__ */ React.createElement(
169
+ Box_default,
170
+ {
171
+ as: "input",
172
+ ref: inputRef,
173
+ type: "file",
174
+ className: fileUploadInput,
175
+ onChange: handleInputChange,
176
+ accept,
177
+ multiple,
178
+ disabled,
179
+ "aria-label": "File upload input"
180
+ }
181
+ )
182
+ ), error && /* @__PURE__ */ React.createElement(Box_default, { as: "p", className: fileUploadError, role: "alert" }, error), files.length > 0 && /* @__PURE__ */ React.createElement(Box_default, { as: "ul", className: fileUploadList, "aria-label": "Uploaded files" }, files.map((file) => /* @__PURE__ */ React.createElement(Box_default, { key: file.id, as: "li", className: fileUploadItem }, /* @__PURE__ */ React.createElement(Box_default, { className: fileUploadItemInfo }, /* @__PURE__ */ React.createElement(Box_default, { as: "p", className: fileUploadItemName, title: file.name }, file.name), /* @__PURE__ */ React.createElement(Box_default, { as: "p", className: fileUploadItemSize }, formatFileSize(file.size), file.status === "uploading" && showProgress && " \u2022 Uploading...", file.status === "success" && " \u2022 Complete", file.status === "error" && file.errorMessage && ` \u2022 ${file.errorMessage}`), showProgress && file.status === "uploading" && /* @__PURE__ */ React.createElement(Box_default, { className: fileUploadProgressBar }, /* @__PURE__ */ React.createElement(
183
+ Box_default,
184
+ {
185
+ className: clsx(
186
+ fileUploadProgressFill,
187
+ fileUploadProgressFillVariants[file.status]
188
+ ),
189
+ style: { width: `${file.progress}%` }
190
+ }
191
+ ))), /* @__PURE__ */ React.createElement(
192
+ Box_default,
193
+ {
194
+ as: "button",
195
+ className: fileUploadRemoveButton,
196
+ onClick: () => handleRemove(file.id),
197
+ type: "button",
198
+ "aria-label": `Remove ${file.name}`
199
+ },
200
+ "\xD7"
201
+ )))));
202
+ };
203
+ var FileUpload_default = FileUpload;
204
+
205
+ export {
206
+ FileUpload_default
207
+ };
File without changes