@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,93 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/Toggle/Toggle.tsx
6
+ import clsx from "clsx";
7
+
8
+ // src/components/Toggle/styles.css.ts
9
+ var toggle = "styles__13ijp634";
10
+ var toggleFocusRing = "styles__13ijp63f";
11
+ var toggleInput = "styles__13ijp635";
12
+ var toggleLabel = "styles__13ijp633";
13
+ var toggleSizes = { small: "styles_toggleSizes_small__13ijp630", medium: "styles_toggleSizes_medium__13ijp631", large: "styles_toggleSizes_large__13ijp632" };
14
+ var toggleThumb = "styles__13ijp639";
15
+ var toggleThumbChecked = "styles__13ijp63d";
16
+ var toggleThumbSizes = { small: "styles_toggleThumbSizes_small__13ijp63a", medium: "styles_toggleThumbSizes_medium__13ijp63b", large: "styles_toggleThumbSizes_large__13ijp63c" };
17
+ var toggleThumbUnchecked = "styles__13ijp63e";
18
+ var toggleTrack = "styles__13ijp636";
19
+ var toggleTrackChecked = "styles__13ijp637";
20
+ var toggleTrackUnchecked = "styles__13ijp638";
21
+
22
+ // src/components/Toggle/Toggle.tsx
23
+ import React, { useState, useId } from "react";
24
+ var Toggle = ({
25
+ checked = false,
26
+ onChange,
27
+ size = "medium",
28
+ label,
29
+ disabled = false,
30
+ id,
31
+ ...props
32
+ }) => {
33
+ const [isFocused, setIsFocused] = useState(false);
34
+ const generatedId = useId();
35
+ const toggleId = id || `toggle-${generatedId}`;
36
+ const handleChange = (e) => {
37
+ if (!disabled && onChange) {
38
+ onChange(e.target.checked);
39
+ }
40
+ };
41
+ return /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: toggle }, /* @__PURE__ */ React.createElement(Box_default, { as: "label", htmlFor: toggleId, className: toggleLabel }, /* @__PURE__ */ React.createElement(
42
+ Box_default,
43
+ {
44
+ as: "input",
45
+ type: "checkbox",
46
+ id: toggleId,
47
+ checked,
48
+ onChange: handleChange,
49
+ disabled,
50
+ className: toggleInput,
51
+ onFocus: () => setIsFocused(true),
52
+ onBlur: () => setIsFocused(false),
53
+ "aria-checked": checked,
54
+ role: "switch",
55
+ ...props
56
+ }
57
+ ), /* @__PURE__ */ React.createElement(
58
+ Box_default,
59
+ {
60
+ as: "span",
61
+ className: clsx(
62
+ toggleTrack,
63
+ toggleSizes[size],
64
+ checked ? toggleTrackChecked : toggleTrackUnchecked
65
+ ),
66
+ "data-size": size
67
+ },
68
+ /* @__PURE__ */ React.createElement(
69
+ Box_default,
70
+ {
71
+ as: "span",
72
+ className: clsx(
73
+ toggleThumb,
74
+ toggleThumbSizes[size],
75
+ checked ? toggleThumbChecked : toggleThumbUnchecked
76
+ )
77
+ }
78
+ )
79
+ ), /* @__PURE__ */ React.createElement(
80
+ Box_default,
81
+ {
82
+ as: "span",
83
+ className: toggleFocusRing,
84
+ "data-focused": isFocused,
85
+ "aria-hidden": "true"
86
+ }
87
+ )), label && /* @__PURE__ */ React.createElement(Box_default, { as: "span", marginLeft: "small" }, label));
88
+ };
89
+ var Toggle_default = Toggle;
90
+
91
+ export {
92
+ Toggle_default
93
+ };
@@ -0,0 +1,20 @@
1
+ import {
2
+ list
3
+ } from "./chunk-GD42AS4L.mjs";
4
+ import {
5
+ Box_default
6
+ } from "./chunk-QUQTMW54.mjs";
7
+
8
+ // src/components/List/List.tsx
9
+ import React from "react";
10
+ var List = ({
11
+ children,
12
+ ...props
13
+ }) => {
14
+ return /* @__PURE__ */ React.createElement(Box_default, { as: "ul", className: list, ...props }, children);
15
+ };
16
+ var List_default = List;
17
+
18
+ export {
19
+ List_default
20
+ };
File without changes
File without changes
@@ -0,0 +1,19 @@
1
+ import {
2
+ heading,
3
+ text
4
+ } from "./chunk-GMAR37YG.mjs";
5
+ import {
6
+ Box_default
7
+ } from "./chunk-QUQTMW54.mjs";
8
+
9
+ // src/components/Text/Header.tsx
10
+ import clsx from "clsx";
11
+ import React from "react";
12
+ var Header = ({ variant, children, className }) => {
13
+ return /* @__PURE__ */ React.createElement(Box_default, { as: variant, className: clsx(className, text, heading) }, children);
14
+ };
15
+ var Header_default = Header;
16
+
17
+ export {
18
+ Header_default
19
+ };
@@ -0,0 +1,137 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/Popover/Popover.tsx
6
+ import clsx from "clsx";
7
+ import React, { useState, useRef, useEffect } from "react";
8
+
9
+ // src/components/Popover/styles.css.ts
10
+ var popoverArrow = "styles__733ybic";
11
+ var popoverArrowPositionVariants = { top: "styles_popoverArrowPositionVariants_top__733ybid", bottom: "styles_popoverArrowPositionVariants_bottom__733ybie", left: "styles_popoverArrowPositionVariants_left__733ybif", right: "styles_popoverArrowPositionVariants_right__733ybig", topLeft: "styles_popoverArrowPositionVariants_topLeft__733ybih", topRight: "styles_popoverArrowPositionVariants_topRight__733ybii", bottomLeft: "styles_popoverArrowPositionVariants_bottomLeft__733ybij", bottomRight: "styles_popoverArrowPositionVariants_bottomRight__733ybik" };
12
+ var popoverBody = "styles__733ybio";
13
+ var popoverCloseButton = "styles__733ybin";
14
+ var popoverContainer = "styles__733ybi1";
15
+ var popoverContent = "styles__733ybi3";
16
+ var popoverFooter = "styles__733ybip";
17
+ var popoverHeader = "styles__733ybil";
18
+ var popoverPositionVariants = { top: "styles_popoverPositionVariants_top__733ybi4", bottom: "styles_popoverPositionVariants_bottom__733ybi5", left: "styles_popoverPositionVariants_left__733ybi6", right: "styles_popoverPositionVariants_right__733ybi7", topLeft: "styles_popoverPositionVariants_topLeft__733ybi8", topRight: "styles_popoverPositionVariants_topRight__733ybi9", bottomLeft: "styles_popoverPositionVariants_bottomLeft__733ybia", bottomRight: "styles_popoverPositionVariants_bottomRight__733ybib" };
19
+ var popoverTitle = "styles__733ybim";
20
+ var popoverTrigger = "styles__733ybi2";
21
+
22
+ // src/components/Popover/Popover.tsx
23
+ var Popover = ({
24
+ trigger,
25
+ children,
26
+ position = "bottom",
27
+ title,
28
+ footer,
29
+ showArrow = true,
30
+ triggerType = "click",
31
+ closeOnClickOutside = true,
32
+ closeOnEscape = true,
33
+ defaultOpen = false,
34
+ onOpenChange,
35
+ className,
36
+ ...props
37
+ }) => {
38
+ const [isOpen, setIsOpen] = useState(defaultOpen);
39
+ const containerRef = useRef(null);
40
+ useEffect(() => {
41
+ onOpenChange?.(isOpen);
42
+ }, [isOpen, onOpenChange]);
43
+ useEffect(() => {
44
+ if (!closeOnClickOutside) return;
45
+ const handleClickOutside = (event) => {
46
+ if (containerRef.current && !containerRef.current.contains(event.target)) {
47
+ setIsOpen(false);
48
+ }
49
+ };
50
+ if (isOpen) {
51
+ document.addEventListener("mousedown", handleClickOutside);
52
+ }
53
+ return () => {
54
+ document.removeEventListener("mousedown", handleClickOutside);
55
+ };
56
+ }, [isOpen, closeOnClickOutside]);
57
+ useEffect(() => {
58
+ if (!closeOnEscape) return;
59
+ const handleEscape = (e) => {
60
+ if (e.key === "Escape" && isOpen) {
61
+ setIsOpen(false);
62
+ }
63
+ };
64
+ document.addEventListener("keydown", handleEscape);
65
+ return () => document.removeEventListener("keydown", handleEscape);
66
+ }, [isOpen, closeOnEscape]);
67
+ const handleTriggerClick = () => {
68
+ if (triggerType === "click") {
69
+ setIsOpen(!isOpen);
70
+ }
71
+ };
72
+ const handleTriggerMouseEnter = () => {
73
+ if (triggerType === "hover") {
74
+ setIsOpen(true);
75
+ }
76
+ };
77
+ const handleTriggerMouseLeave = () => {
78
+ if (triggerType === "hover") {
79
+ setIsOpen(false);
80
+ }
81
+ };
82
+ return /* @__PURE__ */ React.createElement(
83
+ Box_default,
84
+ {
85
+ ref: containerRef,
86
+ className: clsx(popoverContainer, className),
87
+ onMouseEnter: handleTriggerMouseEnter,
88
+ onMouseLeave: handleTriggerMouseLeave,
89
+ ...props
90
+ },
91
+ /* @__PURE__ */ React.createElement(
92
+ Box_default,
93
+ {
94
+ className: popoverTrigger,
95
+ onClick: handleTriggerClick,
96
+ "aria-expanded": isOpen
97
+ },
98
+ trigger
99
+ ),
100
+ isOpen && /* @__PURE__ */ React.createElement(
101
+ Box_default,
102
+ {
103
+ className: clsx(popoverContent, popoverPositionVariants[position]),
104
+ role: "dialog",
105
+ "aria-modal": "false"
106
+ },
107
+ showArrow && /* @__PURE__ */ React.createElement(
108
+ Box_default,
109
+ {
110
+ as: "span",
111
+ className: clsx(
112
+ popoverArrow,
113
+ popoverArrowPositionVariants[position]
114
+ )
115
+ }
116
+ ),
117
+ (title || triggerType === "click") && /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: popoverHeader }, title && /* @__PURE__ */ React.createElement(Box_default, { as: "h3", className: popoverTitle }, title), triggerType === "click" && /* @__PURE__ */ React.createElement(
118
+ Box_default,
119
+ {
120
+ as: "button",
121
+ className: popoverCloseButton,
122
+ onClick: () => setIsOpen(false),
123
+ "aria-label": "Close popover",
124
+ type: "button"
125
+ },
126
+ "\xD7"
127
+ )),
128
+ /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: popoverBody }, children),
129
+ footer && /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: popoverFooter }, footer)
130
+ )
131
+ );
132
+ };
133
+ var Popover_default = Popover;
134
+
135
+ export {
136
+ Popover_default
137
+ };
@@ -0,0 +1,262 @@
1
+ import {
2
+ Icon_default
3
+ } from "./chunk-WV72HREB.mjs";
4
+
5
+ // src/components/Toast/Toast.tsx
6
+ import React, { createContext, useContext, useState, useEffect, useCallback, useRef } from "react";
7
+ import { createPortal } from "react-dom";
8
+ import clsx from "clsx";
9
+
10
+ // src/components/Toast/styles.css.ts
11
+ var fadeOutError = "styles_fadeOutError__u0czf5a";
12
+ var fadeOutInfo = "styles_fadeOutInfo__u0czf5c";
13
+ var fadeOutSuccess = "styles_fadeOutSuccess__u0czf59";
14
+ var fadeOutWarning = "styles_fadeOutWarning__u0czf5b";
15
+ var slideInRight = "styles_slideInRight__u0czf50";
16
+ var toastCloseButton = "styles_toastCloseButton__u0czf5m";
17
+ var toastContainer = "styles_toastContainer__u0czf5e";
18
+ var toastContent = "styles__u0czf5p";
19
+ var toastItem = "styles_toastItem__u0czf5l";
20
+ var toastProgressBar = "styles_toastProgressBar__u0czf5o";
21
+ var toastProgressBarContainer = "styles_toastProgressBarContainer__u0czf5n";
22
+ var toastWrapper = { topLeft: "styles_toastWrapper_topLeft__u0czf5f", topCenter: "styles_toastWrapper_topCenter__u0czf5g", topRight: "styles_toastWrapper_topRight__u0czf5h", bottomLeft: "styles_toastWrapper_bottomLeft__u0czf5i", bottomCenter: "styles_toastWrapper_bottomCenter__u0czf5j", bottomRight: "styles_toastWrapper_bottomRight__u0czf5k" };
23
+
24
+ // src/components/Toast/Toast.tsx
25
+ var ToastContext = createContext({
26
+ addToast: () => "",
27
+ removeToast: () => {
28
+ },
29
+ handleDismissAll: () => {
30
+ },
31
+ handleResumeAll: () => {
32
+ }
33
+ });
34
+ var getFadeOutForVariant = (variant) => {
35
+ const fadeOutMap = {
36
+ success: fadeOutSuccess,
37
+ error: fadeOutError,
38
+ warning: fadeOutWarning,
39
+ info: fadeOutInfo
40
+ };
41
+ return fadeOutMap[variant] || fadeOutInfo;
42
+ };
43
+ var positionToClassKey = {
44
+ "top-left": "topLeft",
45
+ "top-center": "topCenter",
46
+ "top-right": "topRight",
47
+ "bottom-left": "bottomLeft",
48
+ "bottom-center": "bottomCenter",
49
+ "bottom-right": "bottomRight"
50
+ };
51
+ var ToastProvider = ({
52
+ children,
53
+ position = "top-right",
54
+ maxVisible = 5,
55
+ stacking = "stack"
56
+ }) => {
57
+ const [toasts, setToasts] = useState([]);
58
+ const [pauseId, setPauseId] = useState(null);
59
+ const timeoutsRef = useRef(/* @__PURE__ */ new Map());
60
+ const pauseTimeoutRef = useRef(null);
61
+ const toastsRef = useRef([]);
62
+ useEffect(() => {
63
+ toastsRef.current = toasts;
64
+ }, [toasts]);
65
+ const removeToastInternal = useCallback((id) => {
66
+ setToasts((prev) => {
67
+ const toast = prev.find((t) => t.id === id);
68
+ if (toast) {
69
+ toast.options.onClose?.();
70
+ }
71
+ return prev.filter((t) => t.id !== id);
72
+ });
73
+ const timeout = timeoutsRef.current.get(id);
74
+ if (timeout) {
75
+ clearTimeout(timeout);
76
+ timeoutsRef.current.delete(id);
77
+ }
78
+ }, []);
79
+ const addToast = useCallback(
80
+ (message, variant = "info", options = {}) => {
81
+ const id = `toast-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
82
+ const duration = options.duration ?? 5e3;
83
+ const startTime = Date.now();
84
+ const newToast = {
85
+ id,
86
+ message,
87
+ variant,
88
+ options: { ...options, duration, position: options.position ?? position },
89
+ startTime,
90
+ paused: false,
91
+ duration
92
+ };
93
+ setToasts((prev) => {
94
+ if (stacking === "replace") {
95
+ return [newToast];
96
+ }
97
+ const filtered = prev.filter((t) => {
98
+ const elapsed = Date.now() - t.startTime;
99
+ return elapsed < (t.options.duration ?? 5e3);
100
+ });
101
+ return [...filtered, newToast].slice(-maxVisible);
102
+ });
103
+ const timeoutId = setTimeout(() => {
104
+ removeToastInternal(id);
105
+ }, duration);
106
+ timeoutsRef.current.set(id, timeoutId);
107
+ return id;
108
+ },
109
+ [maxVisible, stacking, position, removeToastInternal]
110
+ );
111
+ const dismissInternal = useCallback((id) => {
112
+ const toast = toastsRef.current.find((t) => t.id === id);
113
+ if (!toast) return;
114
+ setToasts(
115
+ (prev) => prev.map((t) => {
116
+ if (t.id === id) {
117
+ return { ...t, paused: true };
118
+ }
119
+ return t;
120
+ })
121
+ );
122
+ if (pauseTimeoutRef.current) {
123
+ clearTimeout(pauseTimeoutRef.current);
124
+ }
125
+ setPauseId(id);
126
+ pauseTimeoutRef.current = setTimeout(() => {
127
+ setPauseId(null);
128
+ removeToastInternal(id);
129
+ }, 500);
130
+ const timeout = timeoutsRef.current.get(id);
131
+ if (timeout) {
132
+ clearTimeout(timeout);
133
+ timeoutsRef.current.delete(id);
134
+ }
135
+ }, [removeToastInternal]);
136
+ const dismissAllInternal = useCallback(() => {
137
+ setPauseId("all");
138
+ toastsRef.current.forEach((toast) => {
139
+ const timeout = timeoutsRef.current.get(toast.id);
140
+ if (timeout) {
141
+ clearTimeout(timeout);
142
+ timeoutsRef.current.delete(toast.id);
143
+ }
144
+ });
145
+ }, []);
146
+ const resumeAllInternal = useCallback(() => {
147
+ setPauseId(null);
148
+ toastsRef.current.forEach((toast) => {
149
+ if (toast.paused && toast.duration > 500) {
150
+ const timeout = setTimeout(() => {
151
+ removeToastInternal(toast.id);
152
+ }, toast.duration - (Date.now() - toast.startTime));
153
+ timeoutsRef.current.set(toast.id, timeout);
154
+ }
155
+ });
156
+ }, [removeToastInternal]);
157
+ useEffect(() => {
158
+ return () => {
159
+ timeoutsRef.current.forEach((timeout) => clearTimeout(timeout));
160
+ if (pauseTimeoutRef.current) {
161
+ clearTimeout(pauseTimeoutRef.current);
162
+ }
163
+ };
164
+ }, []);
165
+ const value = {
166
+ addToast,
167
+ removeToast: removeToastInternal,
168
+ handleDismissAll: dismissAllInternal,
169
+ handleResumeAll: resumeAllInternal
170
+ };
171
+ return /* @__PURE__ */ React.createElement(ToastContext.Provider, { value }, children, /* @__PURE__ */ React.createElement(
172
+ ToastContainer,
173
+ {
174
+ toasts,
175
+ position,
176
+ pauseId,
177
+ onDismiss: dismissInternal,
178
+ onDismissAll: dismissAllInternal,
179
+ onResumeAll: resumeAllInternal
180
+ }
181
+ ));
182
+ };
183
+ var ToastContainer = ({
184
+ toasts,
185
+ position,
186
+ pauseId,
187
+ onDismiss,
188
+ onDismissAll,
189
+ onResumeAll
190
+ }) => {
191
+ const [container, setContainer] = useState(null);
192
+ useEffect(() => {
193
+ const existingContainer = document.getElementById("toast-container");
194
+ if (existingContainer) {
195
+ setContainer(existingContainer);
196
+ } else {
197
+ const el = document.createElement("div");
198
+ el.id = "toast-container";
199
+ document.body.appendChild(el);
200
+ setContainer(el);
201
+ }
202
+ }, []);
203
+ if (!container) return null;
204
+ return createPortal(
205
+ /* @__PURE__ */ React.createElement(
206
+ "div",
207
+ {
208
+ className: clsx(toastContainer, toastWrapper[positionToClassKey[position]]),
209
+ onMouseEnter: onDismissAll,
210
+ onMouseLeave: onResumeAll
211
+ },
212
+ toasts.map((toast) => {
213
+ const elapsed = Date.now() - toast.startTime;
214
+ const progress = (toast.duration - elapsed) / toast.duration * 100;
215
+ const fadeOutAnimation = getFadeOutForVariant(toast.variant);
216
+ return /* @__PURE__ */ React.createElement(
217
+ "div",
218
+ {
219
+ key: toast.id,
220
+ className: toastItem,
221
+ style: {
222
+ opacity: toast.paused || pauseId !== null ? 0.7 : 1,
223
+ animation: `${slideInRight} 0.2s ease, 0.2s ease ${fadeOutAnimation} forwards`
224
+ },
225
+ onMouseEnter: () => onDismiss(toast.id)
226
+ },
227
+ /* @__PURE__ */ React.createElement("div", { className: toastContent }, /* @__PURE__ */ React.createElement(Icon_default, { name: toast.variant === "success" ? "check" : toast.variant === "error" ? "error" : "info" }), /* @__PURE__ */ React.createElement("span", { style: { marginLeft: "8px" } }, toast.message), toast.options.closable !== false && /* @__PURE__ */ React.createElement(
228
+ "button",
229
+ {
230
+ type: "button",
231
+ className: toastCloseButton,
232
+ onClick: () => onDismiss(toast.id),
233
+ "aria-label": "Close toast"
234
+ },
235
+ /* @__PURE__ */ React.createElement(Icon_default, { name: "close" })
236
+ ), toast.duration > 0 && /* @__PURE__ */ React.createElement("div", { className: toastProgressBarContainer }, /* @__PURE__ */ React.createElement(
237
+ "div",
238
+ {
239
+ className: toastProgressBar,
240
+ style: { width: `${progress}%` }
241
+ }
242
+ )))
243
+ );
244
+ })
245
+ ),
246
+ container
247
+ );
248
+ };
249
+ var useToast = () => {
250
+ const context = useContext(ToastContext);
251
+ return context;
252
+ };
253
+ var Toast = ({ message, variant = "info", options, className }) => {
254
+ return null;
255
+ };
256
+ Toast.displayName = "Toast";
257
+
258
+ export {
259
+ ToastProvider,
260
+ useToast,
261
+ Toast
262
+ };
@@ -0,0 +1,32 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/Form/Form.tsx
6
+ import clsx from "clsx";
7
+ import React from "react";
8
+
9
+ // src/components/Form/styles.css.ts
10
+ var formInputStyle = "styles__1fdjkwt1";
11
+ var formStyle = "styles__1fdjkwt0";
12
+
13
+ // src/components/Form/Form.tsx
14
+ var Form = (props) => {
15
+ return /* @__PURE__ */ React.createElement(
16
+ Box_default,
17
+ {
18
+ as: "form",
19
+ gap: "medium",
20
+ paddingX: "large",
21
+ className: clsx(formStyle, props.className),
22
+ ...props
23
+ },
24
+ props.children
25
+ );
26
+ };
27
+ var Form_default = Form;
28
+
29
+ export {
30
+ formInputStyle,
31
+ Form_default
32
+ };
File without changes
@@ -0,0 +1,41 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-QUQTMW54.mjs";
4
+
5
+ // src/components/AspectRatio/AspectRatio.tsx
6
+ import React, { forwardRef } from "react";
7
+ var AspectRatio = forwardRef(
8
+ ({ ratio = "1/1", children, ...props }, ref) => {
9
+ const aspectRatio = typeof ratio === "number" ? ratio : ratio;
10
+ return /* @__PURE__ */ React.createElement(
11
+ Box_default,
12
+ {
13
+ ref,
14
+ position: "relative",
15
+ style: {
16
+ aspectRatio,
17
+ overflow: "hidden"
18
+ },
19
+ ...props
20
+ },
21
+ /* @__PURE__ */ React.createElement(
22
+ Box_default,
23
+ {
24
+ position: "absolute",
25
+ width: "100%",
26
+ height: "100%",
27
+ display: "flex",
28
+ alignItems: "center",
29
+ justifyContent: "center"
30
+ },
31
+ children
32
+ )
33
+ );
34
+ }
35
+ );
36
+ AspectRatio.displayName = "AspectRatio";
37
+ var AspectRatio_default = AspectRatio;
38
+
39
+ export {
40
+ AspectRatio_default
41
+ };
File without changes