@jordan-mace/chaser-design-system 1.2.9 → 2.0.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 (323) hide show
  1. package/dist/build-manifest.json +12797 -0
  2. package/dist/chunk-23CHBI4O.mjs +92 -0
  3. package/dist/chunk-265HFPSB.mjs +75 -0
  4. package/dist/chunk-2B6QHVPB.mjs +0 -0
  5. package/dist/chunk-2D54Z56T.mjs +119 -0
  6. package/dist/chunk-2GXDW577.mjs +8 -0
  7. package/dist/chunk-3LJMSR5N.mjs +0 -0
  8. package/dist/chunk-44TZLEZ7.mjs +44 -0
  9. package/dist/chunk-4FZIKPNK.mjs +0 -0
  10. package/dist/chunk-4H42TV7W.mjs +137 -0
  11. package/dist/chunk-54H4HXDY.mjs +0 -0
  12. package/dist/chunk-5GW3EWPT.mjs +8 -0
  13. package/dist/chunk-5IIKGFRC.mjs +69 -0
  14. package/dist/chunk-5LIOEN4L.mjs +214 -0
  15. package/dist/chunk-5MWWVBIZ.mjs +20 -0
  16. package/dist/chunk-7AY5WUX4.mjs +0 -0
  17. package/dist/chunk-7NAAMXLS.mjs +18 -0
  18. package/dist/chunk-7UZS7ZPM.mjs +31 -0
  19. package/dist/chunk-AIBPYS7I.mjs +55 -0
  20. package/dist/chunk-AIY7XRLG.mjs +0 -0
  21. package/dist/chunk-ARTXRQO6.mjs +0 -0
  22. package/dist/chunk-BTENJUDF.mjs +0 -0
  23. package/dist/chunk-BUO6V4ZK.mjs +0 -0
  24. package/dist/chunk-CBKQEKIK.mjs +0 -0
  25. package/dist/chunk-CHNB6YGZ.mjs +35 -0
  26. package/dist/chunk-CICFJYOG.mjs +20 -0
  27. package/dist/chunk-CMNJMZXX.mjs +0 -0
  28. package/dist/chunk-CW4EIBFG.mjs +0 -0
  29. package/dist/chunk-DAGHRIC3.mjs +0 -0
  30. package/dist/chunk-DGWDQRZU.mjs +42 -0
  31. package/dist/chunk-E74W45DC.mjs +0 -0
  32. package/dist/chunk-E7OMF6QW.mjs +0 -0
  33. package/dist/chunk-E7VYLVBQ.mjs +84 -0
  34. package/dist/chunk-EOGH5LUH.mjs +8 -0
  35. package/dist/chunk-EOH5NK67.mjs +0 -0
  36. package/dist/chunk-EOXTRIQ7.mjs +0 -0
  37. package/dist/chunk-EPFXGPPF.mjs +62 -0
  38. package/dist/chunk-ERWDS6PF.mjs +32 -0
  39. package/dist/chunk-FCW25RIV.mjs +117 -0
  40. package/dist/chunk-FSIRD5AM.mjs +57 -0
  41. package/dist/chunk-FUN4ITNZ.mjs +0 -0
  42. package/dist/chunk-G2SNFO2A.mjs +41 -0
  43. package/dist/chunk-GP2LGGIN.mjs +207 -0
  44. package/dist/chunk-GP5UECUC.mjs +0 -0
  45. package/dist/chunk-HGOZPEWG.mjs +39 -0
  46. package/dist/chunk-HJCAHUC5.mjs +45 -0
  47. package/dist/chunk-HPP5HXXH.mjs +51 -0
  48. package/dist/chunk-HUED26BN.mjs +0 -0
  49. package/dist/chunk-HY4GCFFE.mjs +41 -0
  50. package/dist/chunk-IGKJYJTY.mjs +0 -0
  51. package/dist/chunk-IMHQ73HA.mjs +0 -0
  52. package/dist/chunk-J7OJPUGH.mjs +26 -0
  53. package/dist/chunk-JFYMSGSU.mjs +0 -0
  54. package/dist/chunk-JG27KRP3.mjs +41 -0
  55. package/dist/chunk-JIKAPQBJ.mjs +0 -0
  56. package/dist/chunk-JJMLW4EM.mjs +32 -0
  57. package/dist/chunk-KEHMUWQ5.mjs +19 -0
  58. package/dist/chunk-KT7CGXAH.mjs +0 -0
  59. package/dist/chunk-LV54XRPR.mjs +0 -0
  60. package/dist/chunk-LVVXUOBP.mjs +49 -0
  61. package/dist/chunk-LZLK7IOL.mjs +0 -0
  62. package/dist/chunk-MI63MVYQ.mjs +53 -0
  63. package/dist/chunk-MWP3WUVH.mjs +0 -0
  64. package/dist/chunk-N725HZEB.mjs +0 -0
  65. package/dist/chunk-NIZNDR6T.mjs +0 -0
  66. package/dist/chunk-NXJKX4QQ.mjs +126 -0
  67. package/dist/chunk-O3AMXQTY.mjs +0 -0
  68. package/dist/chunk-OGXD2YVI.mjs +96 -0
  69. package/dist/chunk-OTC2PREM.mjs +64 -0
  70. package/dist/chunk-P7WZRYQP.mjs +34 -0
  71. package/dist/chunk-PK7I6RMV.mjs +0 -0
  72. package/dist/chunk-PQZZHZIA.mjs +0 -0
  73. package/dist/chunk-PTU7HTXL.mjs +0 -0
  74. package/dist/chunk-QNJKEBIF.mjs +0 -0
  75. package/dist/chunk-R2GRRFQS.mjs +0 -0
  76. package/dist/chunk-RESHDXF5.mjs +0 -0
  77. package/dist/chunk-RG5W2FNQ.mjs +42 -0
  78. package/dist/chunk-RWSFDIB7.mjs +0 -0
  79. package/dist/chunk-S4M6HQWR.mjs +76 -0
  80. package/dist/chunk-SGEVTBAH.mjs +80 -0
  81. package/dist/chunk-SIGP4IGV.mjs +0 -0
  82. package/dist/chunk-SZ25BX44.mjs +0 -0
  83. package/dist/chunk-T4CX5DQW.mjs +0 -0
  84. package/dist/chunk-TNDJWHSF.mjs +0 -0
  85. package/dist/chunk-UAOAQXIP.mjs +18 -0
  86. package/dist/chunk-UVITSUYL.mjs +21 -0
  87. package/dist/chunk-V35FRMOQ.mjs +0 -0
  88. package/dist/chunk-VGHEJ76E.mjs +0 -0
  89. package/dist/chunk-VMZLIR3R.mjs +122 -0
  90. package/dist/chunk-VVJYGPZF.mjs +85 -0
  91. package/dist/chunk-W2PKPRKR.mjs +51 -0
  92. package/dist/chunk-WO4QVNEQ.mjs +15 -0
  93. package/dist/chunk-WPMNFQUN.mjs +0 -0
  94. package/dist/chunk-WQO4PWCK.mjs +0 -0
  95. package/dist/chunk-WUO4DJIA.mjs +30 -0
  96. package/dist/chunk-WX76GCR5.mjs +0 -0
  97. package/dist/chunk-WXCMK5GH.mjs +141 -0
  98. package/dist/chunk-X4TLQAME.mjs +118 -0
  99. package/dist/chunk-X5ENABHC.mjs +6 -0
  100. package/dist/chunk-XN3QS4PQ.mjs +262 -0
  101. package/dist/chunk-YHWKSBUV.mjs +93 -0
  102. package/dist/chunk-YPTRIIDI.mjs +101 -0
  103. package/dist/chunk-Z3N6BHKG.mjs +43 -0
  104. package/dist/chunk-ZSRWE6QR.mjs +0 -0
  105. package/dist/components/Accordion/Accordion.css +2065 -0
  106. package/dist/components/Accordion/Accordion.mjs +10 -0
  107. package/dist/components/Accordion/index.css +2065 -0
  108. package/dist/components/Accordion/index.mjs +11 -0
  109. package/dist/components/Alert/Alert.css +2054 -0
  110. package/dist/components/Alert/Alert.mjs +10 -0
  111. package/dist/components/Alert/index.css +2054 -0
  112. package/dist/components/Alert/index.mjs +11 -0
  113. package/dist/components/AspectRatio/AspectRatio.css +1950 -0
  114. package/dist/components/AspectRatio/AspectRatio.mjs +9 -0
  115. package/dist/components/AspectRatio/index.css +1950 -0
  116. package/dist/components/AspectRatio/index.mjs +10 -0
  117. package/dist/components/Avatar/Avatar.css +2149 -0
  118. package/dist/components/Avatar/Avatar.mjs +10 -0
  119. package/dist/components/Avatar/index.css +2149 -0
  120. package/dist/components/Avatar/index.mjs +11 -0
  121. package/dist/components/Badge/Badge.css +2076 -0
  122. package/dist/components/Badge/Badge.mjs +10 -0
  123. package/dist/components/Badge/index.css +2076 -0
  124. package/dist/components/Badge/index.mjs +11 -0
  125. package/dist/components/Box/Box.css +1950 -0
  126. package/dist/components/Box/Box.mjs +7 -0
  127. package/dist/components/Box/index.css +1950 -0
  128. package/dist/components/Box/index.mjs +8 -0
  129. package/dist/components/Breadcrumb/Breadcrumb.css +2052 -0
  130. package/dist/components/Breadcrumb/Breadcrumb.mjs +10 -0
  131. package/dist/components/Breadcrumb/index.css +2052 -0
  132. package/dist/components/Breadcrumb/index.mjs +11 -0
  133. package/dist/components/Button/Button.css +2030 -0
  134. package/dist/components/Button/Button.mjs +10 -0
  135. package/dist/components/Button/index.css +2030 -0
  136. package/dist/components/Button/index.mjs +11 -0
  137. package/dist/components/Card/Card.css +2025 -0
  138. package/dist/components/Card/Card.mjs +10 -0
  139. package/dist/components/Card/index.css +2025 -0
  140. package/dist/components/Card/index.mjs +11 -0
  141. package/dist/components/Checkbox/Checkbox.css +2033 -0
  142. package/dist/components/Checkbox/Checkbox.mjs +10 -0
  143. package/dist/components/Checkbox/index.css +2033 -0
  144. package/dist/components/Checkbox/index.mjs +11 -0
  145. package/dist/components/Collapse/Collapse.css +1987 -0
  146. package/dist/components/Collapse/Collapse.mjs +9 -0
  147. package/dist/components/Collapse/index.css +1987 -0
  148. package/dist/components/Collapse/index.mjs +10 -0
  149. package/dist/components/Combobox/Combobox.css +2139 -0
  150. package/dist/components/Combobox/Combobox.mjs +10 -0
  151. package/dist/components/Combobox/index.css +2139 -0
  152. package/dist/components/Combobox/index.mjs +11 -0
  153. package/dist/components/Container/Container.css +1950 -0
  154. package/dist/components/Container/Container.mjs +9 -0
  155. package/dist/components/Container/index.css +1950 -0
  156. package/dist/components/Container/index.mjs +10 -0
  157. package/dist/components/Divider/Divider.css +2037 -0
  158. package/dist/components/Divider/Divider.mjs +10 -0
  159. package/dist/components/Divider/index.css +2037 -0
  160. package/dist/components/Divider/index.mjs +11 -0
  161. package/dist/components/Drawer/Drawer.css +2143 -0
  162. package/dist/components/Drawer/Drawer.mjs +10 -0
  163. package/dist/components/Drawer/index.css +2143 -0
  164. package/dist/components/Drawer/index.mjs +11 -0
  165. package/dist/components/DropdownMenu/DropdownMenu.css +2090 -0
  166. package/dist/components/DropdownMenu/DropdownMenu.mjs +10 -0
  167. package/dist/components/DropdownMenu/index.css +2090 -0
  168. package/dist/components/DropdownMenu/index.mjs +11 -0
  169. package/dist/components/EmptyState/EmptyState.css +2033 -0
  170. package/dist/components/EmptyState/EmptyState.mjs +10 -0
  171. package/dist/components/EmptyState/index.css +2033 -0
  172. package/dist/components/EmptyState/index.mjs +11 -0
  173. package/dist/components/FileUpload/FileUpload.css +2142 -0
  174. package/dist/components/FileUpload/FileUpload.mjs +10 -0
  175. package/dist/components/FileUpload/index.css +2142 -0
  176. package/dist/components/FileUpload/index.mjs +11 -0
  177. package/dist/components/Form/Form.css +1965 -0
  178. package/dist/components/Form/Form.mjs +9 -0
  179. package/dist/components/Form/FormInput.css +4893 -0
  180. package/dist/components/Form/FormInput.mjs +108 -0
  181. package/dist/components/Form/index.css +4893 -0
  182. package/dist/components/Form/index.mjs +111 -0
  183. package/dist/components/Grid/Grid.css +1950 -0
  184. package/dist/components/Grid/Grid.mjs +9 -0
  185. package/dist/components/Grid/index.css +1950 -0
  186. package/dist/components/Grid/index.mjs +10 -0
  187. package/dist/components/Icon/Icon.css +1963 -0
  188. package/dist/components/Icon/Icon.mjs +9 -0
  189. package/dist/components/Icon/index.css +1963 -0
  190. package/dist/components/Icon/index.mjs +10 -0
  191. package/dist/components/Input/Input.css +2025 -0
  192. package/dist/components/Input/Input.mjs +11 -0
  193. package/dist/components/Input/index.css +2025 -0
  194. package/dist/components/Input/index.mjs +12 -0
  195. package/dist/components/Kbd/Kbd.css +2005 -0
  196. package/dist/components/Kbd/Kbd.mjs +8 -0
  197. package/dist/components/Kbd/index.css +2005 -0
  198. package/dist/components/Kbd/index.mjs +9 -0
  199. package/dist/components/List/List.css +2011 -0
  200. package/dist/components/List/List.mjs +11 -0
  201. package/dist/components/List/ListItem.css +2011 -0
  202. package/dist/components/List/ListItem.mjs +11 -0
  203. package/dist/components/List/index.css +2011 -0
  204. package/dist/components/List/index.mjs +16 -0
  205. package/dist/components/Modal/Modal.css +2088 -0
  206. package/dist/components/Modal/Modal.mjs +10 -0
  207. package/dist/components/Modal/index.css +2088 -0
  208. package/dist/components/Modal/index.mjs +11 -0
  209. package/dist/components/Navbar/Navbar.css +1955 -0
  210. package/dist/components/Navbar/Navbar.mjs +10 -0
  211. package/dist/components/Navbar/NavbarItem.css +1955 -0
  212. package/dist/components/Navbar/NavbarItem.mjs +10 -0
  213. package/dist/components/Navbar/index.css +1955 -0
  214. package/dist/components/Navbar/index.mjs +15 -0
  215. package/dist/components/NumberInput/NumberInput.css +2112 -0
  216. package/dist/components/NumberInput/NumberInput.mjs +10 -0
  217. package/dist/components/NumberInput/index.css +2112 -0
  218. package/dist/components/NumberInput/index.mjs +11 -0
  219. package/dist/components/Pagination/Pagination.css +2044 -0
  220. package/dist/components/Pagination/Pagination.mjs +10 -0
  221. package/dist/components/Pagination/index.css +2044 -0
  222. package/dist/components/Pagination/index.mjs +11 -0
  223. package/dist/components/Popover/Popover.css +2189 -0
  224. package/dist/components/Popover/Popover.mjs +10 -0
  225. package/dist/components/Popover/index.css +2189 -0
  226. package/dist/components/Popover/index.mjs +11 -0
  227. package/dist/components/Progress/Progress.css +2069 -0
  228. package/dist/components/Progress/Progress.mjs +10 -0
  229. package/dist/components/Progress/index.css +2069 -0
  230. package/dist/components/Progress/index.mjs +11 -0
  231. package/dist/components/Radio/Radio.css +2044 -0
  232. package/dist/components/Radio/Radio.mjs +10 -0
  233. package/dist/components/Radio/index.css +2044 -0
  234. package/dist/components/Radio/index.mjs +11 -0
  235. package/dist/components/ScrollArea/ScrollArea.css +2025 -0
  236. package/dist/components/ScrollArea/ScrollArea.mjs +10 -0
  237. package/dist/components/ScrollArea/index.css +2025 -0
  238. package/dist/components/ScrollArea/index.mjs +11 -0
  239. package/dist/components/Select/Select.css +2082 -0
  240. package/dist/components/Select/Select.mjs +10 -0
  241. package/dist/components/Select/index.css +2082 -0
  242. package/dist/components/Select/index.mjs +11 -0
  243. package/dist/components/Separator/Separator.css +2023 -0
  244. package/dist/components/Separator/Separator.mjs +10 -0
  245. package/dist/components/Separator/index.css +2023 -0
  246. package/dist/components/Separator/index.mjs +11 -0
  247. package/dist/components/Skeleton/Skeleton.css +2060 -0
  248. package/dist/components/Skeleton/Skeleton.mjs +10 -0
  249. package/dist/components/Skeleton/index.css +2060 -0
  250. package/dist/components/Skeleton/index.mjs +11 -0
  251. package/dist/components/Spinner/Spinner.css +2055 -0
  252. package/dist/components/Spinner/Spinner.mjs +10 -0
  253. package/dist/components/Spinner/index.css +2055 -0
  254. package/dist/components/Spinner/index.mjs +11 -0
  255. package/dist/components/Stack/Stack.css +1950 -0
  256. package/dist/components/Stack/Stack.mjs +9 -0
  257. package/dist/components/Stack/index.css +1950 -0
  258. package/dist/components/Stack/index.mjs +10 -0
  259. package/dist/components/Stepper/Stepper.css +2104 -0
  260. package/dist/components/Stepper/Stepper.mjs +10 -0
  261. package/dist/components/Stepper/index.css +2104 -0
  262. package/dist/components/Stepper/index.mjs +11 -0
  263. package/dist/components/Table/Table.css +2049 -0
  264. package/dist/components/Table/Table.mjs +10 -0
  265. package/dist/components/Table/index.css +2049 -0
  266. package/dist/components/Table/index.mjs +11 -0
  267. package/dist/components/Tabs/Tabs.css +2100 -0
  268. package/dist/components/Tabs/Tabs.mjs +10 -0
  269. package/dist/components/Tabs/index.css +2100 -0
  270. package/dist/components/Tabs/index.mjs +11 -0
  271. package/dist/components/Tag/Tag.css +2093 -0
  272. package/dist/components/Tag/Tag.mjs +10 -0
  273. package/dist/components/Tag/index.css +2093 -0
  274. package/dist/components/Tag/index.mjs +11 -0
  275. package/dist/components/Text/Header.css +2013 -0
  276. package/dist/components/Text/Header.mjs +11 -0
  277. package/dist/components/Text/P.css +2013 -0
  278. package/dist/components/Text/P.mjs +11 -0
  279. package/dist/components/Text/index.css +2013 -0
  280. package/dist/components/Text/index.mjs +16 -0
  281. package/dist/components/TextArea/TextArea.css +2027 -0
  282. package/dist/components/TextArea/TextArea.mjs +11 -0
  283. package/dist/components/TextArea/index.css +2027 -0
  284. package/dist/components/TextArea/index.mjs +12 -0
  285. package/dist/components/Toast/Toast.css +2229 -0
  286. package/dist/components/Toast/Toast.mjs +16 -0
  287. package/dist/components/Toast/index.css +2229 -0
  288. package/dist/components/Toast/index.mjs +17 -0
  289. package/dist/components/Toggle/Toggle.css +2106 -0
  290. package/dist/components/Toggle/Toggle.mjs +10 -0
  291. package/dist/components/Toggle/index.css +2106 -0
  292. package/dist/components/Toggle/index.mjs +11 -0
  293. package/dist/components/Tooltip/Tooltip.css +2084 -0
  294. package/dist/components/Tooltip/Tooltip.mjs +10 -0
  295. package/dist/components/Tooltip/index.css +2084 -0
  296. package/dist/components/Tooltip/index.mjs +11 -0
  297. package/dist/components/VisuallyHidden/VisuallyHidden.css +15 -0
  298. package/dist/components/VisuallyHidden/VisuallyHidden.mjs +6 -0
  299. package/dist/components/VisuallyHidden/index.css +15 -0
  300. package/dist/components/VisuallyHidden/index.mjs +7 -0
  301. package/dist/components/index.css +4893 -0
  302. package/dist/components/index.mjs +262 -0
  303. package/dist/index.core.mjs +262 -0
  304. package/dist/index.css +4893 -0
  305. package/dist/index.mjs +2 -4729
  306. package/dist/styles/layers.css +0 -0
  307. package/dist/styles/reset.css +126 -0
  308. package/dist/styles/reset.css.js +0 -0
  309. package/dist/styles/sprinkles.css +1938 -0
  310. package/dist/styles/sprinkles.css.js +220 -0
  311. package/dist/styles/theme.css +1986 -0
  312. package/dist/styles/theme.css.js +5 -0
  313. package/dist/styles/utils.mjs +14 -0
  314. package/package.json +14 -25
  315. package/dist/index.d.mts +0 -1834
  316. package/dist/styles/layers.css.d.mts +0 -6
  317. package/dist/styles/layers.css.mjs +0 -7
  318. package/dist/styles/reset.css.d.mts +0 -1
  319. package/dist/styles/reset.css.mjs +0 -24
  320. package/dist/styles/sprinkles.css.d.mts +0 -246
  321. package/dist/styles/sprinkles.css.mjs +0 -200
  322. package/dist/styles/theme.css.d.mts +0 -41
  323. package/dist/styles/theme.css.mjs +0 -50
@@ -0,0 +1,76 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-23CHBI4O.mjs";
4
+
5
+ // src/components/Table/Table.tsx
6
+ import clsx from "clsx";
7
+ import React, { createContext, useContext } from "react";
8
+
9
+ // src/components/Table/styles.css.ts
10
+ var table = "styles__1xzbqi40";
11
+ var tableContainer = "styles__1xzbqi48";
12
+ var tbody = "styles__1xzbqi42";
13
+ var td = "styles__1xzbqi47";
14
+ var tfoot = "styles__1xzbqi43";
15
+ var th = "styles__1xzbqi46";
16
+ var thead = "styles__1xzbqi41";
17
+ var tr = { "default": "styles_tr_default__1xzbqi44", striped: "styles_tr_striped__1xzbqi45" };
18
+
19
+ // src/components/Table/Table.tsx
20
+ var TableContext = createContext({});
21
+ var TableComponent = ({
22
+ children,
23
+ striped = false,
24
+ className,
25
+ ...props
26
+ }) => {
27
+ return /* @__PURE__ */ React.createElement(TableContext.Provider, { value: { striped } }, /* @__PURE__ */ React.createElement(Box_default, { className: clsx(tableContainer, className), width: "100%" }, /* @__PURE__ */ React.createElement(Box_default, { as: "table", className: clsx(table), ...props }, children)));
28
+ };
29
+ var Thead = ({ children, className }) => {
30
+ return /* @__PURE__ */ React.createElement(Box_default, { as: "thead", className: clsx(thead, className) }, children);
31
+ };
32
+ var Tbody = ({ children, className }) => {
33
+ return /* @__PURE__ */ React.createElement(Box_default, { as: "tbody", className: clsx(tbody, className) }, children);
34
+ };
35
+ var Tfoot = ({ children, className }) => {
36
+ return /* @__PURE__ */ React.createElement(Box_default, { as: "tfoot", className: clsx(tfoot, className) }, children);
37
+ };
38
+ var Tr = ({ children, className }) => {
39
+ const { striped } = useContext(TableContext);
40
+ return /* @__PURE__ */ React.createElement(
41
+ Box_default,
42
+ {
43
+ as: "tr",
44
+ className: clsx(tr[striped ? "striped" : "default"], className)
45
+ },
46
+ children
47
+ );
48
+ };
49
+ var Th = ({ children, className }) => {
50
+ return /* @__PURE__ */ React.createElement(Box_default, { as: "th", className: clsx(th, className) }, children);
51
+ };
52
+ var Td = ({ children, className, colSpan, rowSpan }) => {
53
+ return /* @__PURE__ */ React.createElement(
54
+ Box_default,
55
+ {
56
+ as: "td",
57
+ className: clsx(td, className),
58
+ colSpan,
59
+ rowSpan
60
+ },
61
+ children
62
+ );
63
+ };
64
+ var Table = Object.assign(TableComponent, {
65
+ Thead,
66
+ Tbody,
67
+ Tfoot,
68
+ Tr,
69
+ Th,
70
+ Td
71
+ });
72
+ var Table_default = Table;
73
+
74
+ export {
75
+ Table_default
76
+ };
@@ -0,0 +1,80 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-23CHBI4O.mjs";
4
+
5
+ // src/components/Modal/Modal.tsx
6
+ import clsx from "clsx";
7
+
8
+ // src/components/Modal/styles.css.ts
9
+ var modal = "styles__d41lqm4";
10
+ var modalBody = "styles__d41lqm8";
11
+ var modalCloseButton = "styles__d41lqm7";
12
+ var modalFooter = "styles__d41lqm9";
13
+ var modalHeader = "styles__d41lqm5";
14
+ var modalTitle = "styles__d41lqm6";
15
+ var modalVariants = { small: "styles_modalVariants_small__d41lqm0", medium: "styles_modalVariants_medium__d41lqm1", large: "styles_modalVariants_large__d41lqm2", full: "styles_modalVariants_full__d41lqm3" };
16
+
17
+ // src/components/Modal/Modal.tsx
18
+ import React, { useEffect, useRef } from "react";
19
+ var Modal = ({
20
+ isOpen,
21
+ onClose,
22
+ title,
23
+ size = "medium",
24
+ children,
25
+ footer,
26
+ showCloseButton = true,
27
+ ...props
28
+ }) => {
29
+ const dialogRef = useRef(null);
30
+ useEffect(() => {
31
+ const dialog = dialogRef.current;
32
+ if (!dialog) return;
33
+ if (isOpen) {
34
+ dialog.showModal();
35
+ dialog.classList.add("open");
36
+ } else {
37
+ dialog.close();
38
+ dialog.classList.remove("open");
39
+ }
40
+ const handleClose = () => {
41
+ onClose();
42
+ };
43
+ dialog.addEventListener("close", handleClose);
44
+ return () => {
45
+ dialog.removeEventListener("close", handleClose);
46
+ };
47
+ }, [isOpen, onClose]);
48
+ return /* @__PURE__ */ React.createElement(
49
+ Box_default,
50
+ {
51
+ as: "dialog",
52
+ ref: dialogRef,
53
+ className: clsx(modal, modalVariants[size]),
54
+ onClick: (e) => {
55
+ if (e.target === dialogRef.current) {
56
+ onClose();
57
+ }
58
+ },
59
+ ...props
60
+ },
61
+ title && /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: modalHeader }, /* @__PURE__ */ React.createElement(Box_default, { as: "h2", className: modalTitle }, title), showCloseButton && /* @__PURE__ */ React.createElement(
62
+ Box_default,
63
+ {
64
+ as: "button",
65
+ className: modalCloseButton,
66
+ onClick: onClose,
67
+ "aria-label": "Close modal",
68
+ type: "button"
69
+ },
70
+ "\xD7"
71
+ )),
72
+ /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: modalBody }, children),
73
+ footer && /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: modalFooter }, footer)
74
+ );
75
+ };
76
+ var Modal_default = Modal;
77
+
78
+ export {
79
+ Modal_default
80
+ };
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,18 @@
1
+ import {
2
+ navbarItemStyle
3
+ } from "./chunk-2GXDW577.mjs";
4
+ import {
5
+ Box_default
6
+ } from "./chunk-23CHBI4O.mjs";
7
+
8
+ // src/components/Navbar/NavbarItem.tsx
9
+ import clsx from "clsx";
10
+ import React from "react";
11
+ var NavbarItem = (props) => {
12
+ return /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: clsx(navbarItemStyle, props.className), ...props });
13
+ };
14
+ var NavbarItem_default = NavbarItem;
15
+
16
+ export {
17
+ NavbarItem_default
18
+ };
@@ -0,0 +1,21 @@
1
+ import {
2
+ formInputStyle
3
+ } from "./chunk-ERWDS6PF.mjs";
4
+ import {
5
+ Input_default
6
+ } from "./chunk-HPP5HXXH.mjs";
7
+ import {
8
+ Box_default
9
+ } from "./chunk-23CHBI4O.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
+ };
File without changes
File without changes
@@ -0,0 +1,122 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-23CHBI4O.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
+ };
@@ -0,0 +1,85 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-23CHBI4O.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
+ };
@@ -0,0 +1,51 @@
1
+ import {
2
+ text
3
+ } from "./chunk-EOGH5LUH.mjs";
4
+ import {
5
+ Box_default
6
+ } from "./chunk-23CHBI4O.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
+ };
@@ -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
File without changes
@@ -0,0 +1,30 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-23CHBI4O.mjs";
4
+
5
+ // src/components/EmptyState/EmptyState.tsx
6
+ import clsx from "clsx";
7
+ import React from "react";
8
+
9
+ // src/components/EmptyState/styles.css.ts
10
+ var emptyState = "styles__19qw0q50";
11
+ var emptyStateAction = "styles__19qw0q54";
12
+ var emptyStateDescription = "styles__19qw0q53";
13
+ var emptyStateIcon = "styles__19qw0q51";
14
+ var emptyStateTitle = "styles__19qw0q52";
15
+
16
+ // src/components/EmptyState/EmptyState.tsx
17
+ var EmptyState = ({
18
+ icon,
19
+ title,
20
+ description,
21
+ action,
22
+ className
23
+ }) => {
24
+ return /* @__PURE__ */ React.createElement(Box_default, { className: clsx(emptyState, className), role: "status" }, icon && /* @__PURE__ */ React.createElement(Box_default, { className: emptyStateIcon, "aria-hidden": "true" }, icon), title && /* @__PURE__ */ React.createElement(Box_default, { as: "h3", className: emptyStateTitle }, title), description && /* @__PURE__ */ React.createElement(Box_default, { as: "p", className: emptyStateDescription }, description), action && /* @__PURE__ */ React.createElement(Box_default, { className: emptyStateAction }, action));
25
+ };
26
+ var EmptyState_default = EmptyState;
27
+
28
+ export {
29
+ EmptyState_default
30
+ };
File without changes
@@ -0,0 +1,141 @@
1
+ import {
2
+ Box_default
3
+ } from "./chunk-23CHBI4O.mjs";
4
+
5
+ // src/components/Accordion/Accordion.tsx
6
+ import clsx from "clsx";
7
+ import React, { createContext, useContext, useState, useCallback } from "react";
8
+
9
+ // src/components/Accordion/styles.css.ts
10
+ var accordionContent = { collapsed: "styles_accordionContent_collapsed__8xsr6z3", expanded: "styles_accordionContent_expanded__8xsr6z4" };
11
+ var accordionGroup = "styles__8xsr6z7";
12
+ var accordionHeader = "styles_accordionHeader__8xsr6z2";
13
+ var accordionIcon = "styles_accordionIcon__8xsr6z5";
14
+ var accordionIconExpanded = "styles_accordionIconExpanded__8xsr6z6";
15
+ var accordionItem = "styles_accordionItem__8xsr6z1";
16
+
17
+ // src/components/Accordion/Accordion.tsx
18
+ var AccordionContext = createContext({
19
+ allowMultiple: false,
20
+ expandedItems: /* @__PURE__ */ new Set(),
21
+ toggleItem: () => {
22
+ }
23
+ });
24
+ var Accordion = ({
25
+ children,
26
+ allowMultiple = false,
27
+ ...props
28
+ }) => {
29
+ const [expandedItems, setExpandedItems] = useState(/* @__PURE__ */ new Set());
30
+ const toggleItem = (value) => {
31
+ setExpandedItems((prev) => {
32
+ const newSet = new Set(prev);
33
+ if (newSet.has(value)) {
34
+ newSet.delete(value);
35
+ } else {
36
+ if (allowMultiple) {
37
+ newSet.add(value);
38
+ } else {
39
+ return /* @__PURE__ */ new Set([value]);
40
+ }
41
+ }
42
+ return newSet;
43
+ });
44
+ };
45
+ return /* @__PURE__ */ React.createElement(
46
+ AccordionContext.Provider,
47
+ {
48
+ value: { allowMultiple, expandedItems, toggleItem }
49
+ },
50
+ /* @__PURE__ */ React.createElement(
51
+ Box_default,
52
+ {
53
+ className: clsx(accordionGroup, props.className),
54
+ width: "100%",
55
+ ...props
56
+ },
57
+ children
58
+ )
59
+ );
60
+ };
61
+ var AccordionItem = ({
62
+ value,
63
+ title,
64
+ children,
65
+ ...props
66
+ }) => {
67
+ const { expandedItems, toggleItem } = useContext(AccordionContext);
68
+ const isExpanded = expandedItems.has(value);
69
+ const toggleExpanded = useCallback(() => {
70
+ toggleItem(value);
71
+ }, [value, toggleItem]);
72
+ return /* @__PURE__ */ React.createElement(
73
+ Box_default,
74
+ {
75
+ as: "div",
76
+ className: clsx(accordionItem, props.className),
77
+ width: "100%",
78
+ marginBottom: "small",
79
+ border: "small",
80
+ borderRadius: "large",
81
+ overflow: "hidden",
82
+ ...props
83
+ },
84
+ /* @__PURE__ */ React.createElement(
85
+ Box_default,
86
+ {
87
+ as: "button",
88
+ onClick: toggleExpanded,
89
+ className: accordionHeader,
90
+ display: "flex",
91
+ alignItems: "center",
92
+ justifyContent: "space-between",
93
+ padding: "small",
94
+ cursor: "pointer",
95
+ style: { userSelect: "none" },
96
+ fontSize: "14px",
97
+ fontWeight: "500",
98
+ color: "c5-700",
99
+ "aria-expanded": isExpanded,
100
+ "aria-controls": `accordion-content-${value}`
101
+ },
102
+ /* @__PURE__ */ React.createElement(Box_default, { as: "span" }, title),
103
+ /* @__PURE__ */ React.createElement(
104
+ Box_default,
105
+ {
106
+ as: "span",
107
+ className: clsx(accordionIcon, isExpanded && accordionIconExpanded),
108
+ fontSize: "12px",
109
+ display: "flex",
110
+ alignItems: "center",
111
+ justifyContent: "center",
112
+ "aria-hidden": "true"
113
+ },
114
+ "\u25BC"
115
+ )
116
+ ),
117
+ /* @__PURE__ */ React.createElement(
118
+ Box_default,
119
+ {
120
+ as: "div",
121
+ id: `accordion-content-${value}`,
122
+ className: clsx(
123
+ accordionContent[isExpanded ? "expanded" : "collapsed"]
124
+ ),
125
+ padding: "small",
126
+ fontSize: "14px",
127
+ color: "c5-700",
128
+ role: "region"
129
+ },
130
+ children
131
+ )
132
+ );
133
+ };
134
+ var AccordionComponent = Object.assign(Accordion, {
135
+ Item: AccordionItem
136
+ });
137
+ var Accordion_default = AccordionComponent;
138
+
139
+ export {
140
+ Accordion_default
141
+ };