@jordan-mace/chaser-design-system 1.2.8 → 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 (608) 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 -0
  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 +218 -163
  311. package/dist/styles/theme.css +1986 -0
  312. package/dist/styles/theme.css.js +5 -51
  313. package/dist/styles/utils.mjs +14 -0
  314. package/package.json +14 -16
  315. package/src/components/Box/reset.css.ts +2 -2
  316. package/src/index.ts +6 -1
  317. package/dist/components/Accordion/Accordion.d.ts +0 -15
  318. package/dist/components/Accordion/Accordion.js +0 -43
  319. package/dist/components/Accordion/index.d.ts +0 -1
  320. package/dist/components/Accordion/index.js +0 -1
  321. package/dist/components/Accordion/styles.css.d.ts +0 -7
  322. package/dist/components/Accordion/styles.css.js +0 -65
  323. package/dist/components/Alert/Alert.d.ts +0 -10
  324. package/dist/components/Alert/Alert.js +0 -8
  325. package/dist/components/Alert/index.d.ts +0 -1
  326. package/dist/components/Alert/index.js +0 -1
  327. package/dist/components/Alert/styles.css.d.ts +0 -4
  328. package/dist/components/Alert/styles.css.js +0 -54
  329. package/dist/components/AspectRatio/AspectRatio.d.ts +0 -9
  330. package/dist/components/AspectRatio/AspectRatio.js +0 -12
  331. package/dist/components/AspectRatio/index.d.ts +0 -2
  332. package/dist/components/AspectRatio/index.js +0 -1
  333. package/dist/components/Avatar/Avatar.d.ts +0 -11
  334. package/dist/components/Avatar/Avatar.js +0 -13
  335. package/dist/components/Avatar/index.d.ts +0 -1
  336. package/dist/components/Avatar/index.js +0 -1
  337. package/dist/components/Avatar/styles.css.d.ts +0 -4
  338. package/dist/components/Avatar/styles.css.js +0 -151
  339. package/dist/components/Badge/Badge.d.ts +0 -12
  340. package/dist/components/Badge/Badge.js +0 -8
  341. package/dist/components/Badge/index.d.ts +0 -2
  342. package/dist/components/Badge/index.js +0 -1
  343. package/dist/components/Badge/styles.css.d.ts +0 -5
  344. package/dist/components/Badge/styles.css.js +0 -77
  345. package/dist/components/Box/Box.d.ts +0 -11
  346. package/dist/components/Box/Box.js +0 -54
  347. package/dist/components/Box/index.d.ts +0 -2
  348. package/dist/components/Box/index.js +0 -1
  349. package/dist/components/Box/reset.css.d.ts +0 -1
  350. package/dist/components/Box/reset.css.js +0 -15
  351. package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -13
  352. package/dist/components/Breadcrumb/Breadcrumb.js +0 -8
  353. package/dist/components/Breadcrumb/index.d.ts +0 -1
  354. package/dist/components/Breadcrumb/index.js +0 -1
  355. package/dist/components/Breadcrumb/styles.css.d.ts +0 -6
  356. package/dist/components/Breadcrumb/styles.css.js +0 -50
  357. package/dist/components/Button/Button.d.ts +0 -10
  358. package/dist/components/Button/Button.js +0 -8
  359. package/dist/components/Button/index.d.ts +0 -1
  360. package/dist/components/Button/index.js +0 -1
  361. package/dist/components/Button/styles.css.d.ts +0 -2
  362. package/dist/components/Button/styles.css.js +0 -30
  363. package/dist/components/Card/Card.d.ts +0 -9
  364. package/dist/components/Card/Card.js +0 -8
  365. package/dist/components/Card/index.d.ts +0 -1
  366. package/dist/components/Card/index.js +0 -1
  367. package/dist/components/Card/styles.css.d.ts +0 -2
  368. package/dist/components/Card/styles.css.js +0 -25
  369. package/dist/components/Checkbox/Checkbox.d.ts +0 -151
  370. package/dist/components/Checkbox/Checkbox.js +0 -25
  371. package/dist/components/Checkbox/index.d.ts +0 -1
  372. package/dist/components/Checkbox/index.js +0 -1
  373. package/dist/components/Checkbox/styles.css.d.ts +0 -3
  374. package/dist/components/Checkbox/styles.css.js +0 -31
  375. package/dist/components/Collapse/Collapse.d.ts +0 -12
  376. package/dist/components/Collapse/Collapse.js +0 -56
  377. package/dist/components/Collapse/index.d.ts +0 -2
  378. package/dist/components/Collapse/index.js +0 -1
  379. package/dist/components/Collapse/styles.css.d.ts +0 -3
  380. package/dist/components/Collapse/styles.css.js +0 -36
  381. package/dist/components/Combobox/Combobox.d.ts +0 -24
  382. package/dist/components/Combobox/Combobox.js +0 -111
  383. package/dist/components/Combobox/index.d.ts +0 -2
  384. package/dist/components/Combobox/index.js +0 -1
  385. package/dist/components/Combobox/styles.css.d.ts +0 -13
  386. package/dist/components/Combobox/styles.css.js +0 -142
  387. package/dist/components/Container/Container.d.ts +0 -163
  388. package/dist/components/Container/Container.js +0 -21
  389. package/dist/components/Container/index.d.ts +0 -2
  390. package/dist/components/Container/index.js +0 -1
  391. package/dist/components/Divider/Divider.d.ts +0 -10
  392. package/dist/components/Divider/Divider.js +0 -10
  393. package/dist/components/Divider/index.d.ts +0 -2
  394. package/dist/components/Divider/index.js +0 -1
  395. package/dist/components/Divider/styles.css.d.ts +0 -4
  396. package/dist/components/Divider/styles.css.js +0 -41
  397. package/dist/components/Drawer/Drawer.d.ts +0 -18
  398. package/dist/components/Drawer/Drawer.js +0 -65
  399. package/dist/components/Drawer/index.d.ts +0 -2
  400. package/dist/components/Drawer/index.js +0 -1
  401. package/dist/components/Drawer/styles.css.d.ts +0 -8
  402. package/dist/components/Drawer/styles.css.js +0 -125
  403. package/dist/components/DropdownMenu/DropdownMenu.d.ts +0 -24
  404. package/dist/components/DropdownMenu/DropdownMenu.js +0 -46
  405. package/dist/components/DropdownMenu/index.d.ts +0 -2
  406. package/dist/components/DropdownMenu/index.js +0 -1
  407. package/dist/components/DropdownMenu/styles.css.d.ts +0 -9
  408. package/dist/components/DropdownMenu/styles.css.js +0 -93
  409. package/dist/components/EmptyState/EmptyState.d.ts +0 -10
  410. package/dist/components/EmptyState/EmptyState.js +0 -8
  411. package/dist/components/EmptyState/index.d.ts +0 -2
  412. package/dist/components/EmptyState/index.js +0 -1
  413. package/dist/components/EmptyState/styles.css.d.ts +0 -5
  414. package/dist/components/EmptyState/styles.css.js +0 -30
  415. package/dist/components/FileUpload/FileUpload.d.ts +0 -28
  416. package/dist/components/FileUpload/FileUpload.js +0 -106
  417. package/dist/components/FileUpload/index.d.ts +0 -2
  418. package/dist/components/FileUpload/index.js +0 -1
  419. package/dist/components/FileUpload/styles.css.d.ts +0 -19
  420. package/dist/components/FileUpload/styles.css.js +0 -145
  421. package/dist/components/Form/Form.d.ts +0 -7
  422. package/dist/components/Form/Form.js +0 -8
  423. package/dist/components/Form/FormInput.d.ts +0 -5
  424. package/dist/components/Form/FormInput.js +0 -9
  425. package/dist/components/Form/index.d.ts +0 -2
  426. package/dist/components/Form/index.js +0 -2
  427. package/dist/components/Form/styles.css.d.ts +0 -2
  428. package/dist/components/Form/styles.css.js +0 -11
  429. package/dist/components/Grid/Grid.d.ts +0 -162
  430. package/dist/components/Grid/Grid.js +0 -25
  431. package/dist/components/Grid/index.d.ts +0 -2
  432. package/dist/components/Grid/index.js +0 -1
  433. package/dist/components/Icon/Icon.d.ts +0 -12
  434. package/dist/components/Icon/Icon.js +0 -21
  435. package/dist/components/Icon/index.d.ts +0 -1
  436. package/dist/components/Icon/index.js +0 -1
  437. package/dist/components/Icon/styles.css.d.ts +0 -1
  438. package/dist/components/Icon/styles.css.js +0 -9
  439. package/dist/components/Input/Input.d.ts +0 -8
  440. package/dist/components/Input/Input.js +0 -9
  441. package/dist/components/Input/index.d.ts +0 -1
  442. package/dist/components/Input/index.js +0 -1
  443. package/dist/components/Input/styles.css.d.ts +0 -2
  444. package/dist/components/Input/styles.css.js +0 -8
  445. package/dist/components/Kbd/Kbd.d.ts +0 -7
  446. package/dist/components/Kbd/Kbd.js +0 -6
  447. package/dist/components/Kbd/index.d.ts +0 -2
  448. package/dist/components/Kbd/index.js +0 -1
  449. package/dist/components/Kbd/styles.css.d.ts +0 -1
  450. package/dist/components/Kbd/styles.css.js +0 -16
  451. package/dist/components/List/List.d.ts +0 -6
  452. package/dist/components/List/List.js +0 -7
  453. package/dist/components/List/ListItem.d.ts +0 -6
  454. package/dist/components/List/ListItem.js +0 -7
  455. package/dist/components/List/index.d.ts +0 -2
  456. package/dist/components/List/index.js +0 -2
  457. package/dist/components/List/styles.css.d.ts +0 -2
  458. package/dist/components/List/styles.css.js +0 -11
  459. package/dist/components/Modal/Modal.d.ts +0 -15
  460. package/dist/components/Modal/Modal.js +0 -35
  461. package/dist/components/Modal/index.d.ts +0 -2
  462. package/dist/components/Modal/index.js +0 -1
  463. package/dist/components/Modal/styles.css.d.ts +0 -7
  464. package/dist/components/Modal/styles.css.js +0 -92
  465. package/dist/components/Navbar/Navbar.d.ts +0 -7
  466. package/dist/components/Navbar/Navbar.js +0 -8
  467. package/dist/components/Navbar/NavbarItem.d.ts +0 -7
  468. package/dist/components/Navbar/NavbarItem.js +0 -8
  469. package/dist/components/Navbar/index.d.ts +0 -2
  470. package/dist/components/Navbar/index.js +0 -2
  471. package/dist/components/Navbar/styles.css.d.ts +0 -2
  472. package/dist/components/Navbar/styles.css.js +0 -3
  473. package/dist/components/NumberInput/NumberInput.d.ts +0 -21
  474. package/dist/components/NumberInput/NumberInput.js +0 -39
  475. package/dist/components/NumberInput/index.d.ts +0 -2
  476. package/dist/components/NumberInput/index.js +0 -1
  477. package/dist/components/NumberInput/styles.css.d.ts +0 -10
  478. package/dist/components/NumberInput/styles.css.js +0 -117
  479. package/dist/components/Pagination/Pagination.d.ts +0 -12
  480. package/dist/components/Pagination/Pagination.js +0 -50
  481. package/dist/components/Pagination/index.d.ts +0 -2
  482. package/dist/components/Pagination/index.js +0 -1
  483. package/dist/components/Pagination/styles.css.d.ts +0 -4
  484. package/dist/components/Pagination/styles.css.js +0 -44
  485. package/dist/components/Popover/Popover.d.ts +0 -19
  486. package/dist/components/Popover/Popover.js +0 -56
  487. package/dist/components/Popover/index.d.ts +0 -2
  488. package/dist/components/Popover/index.js +0 -1
  489. package/dist/components/Popover/styles.css.d.ts +0 -11
  490. package/dist/components/Popover/styles.css.js +0 -185
  491. package/dist/components/Progress/Progress.d.ts +0 -11
  492. package/dist/components/Progress/Progress.js +0 -9
  493. package/dist/components/Progress/index.d.ts +0 -1
  494. package/dist/components/Progress/index.js +0 -1
  495. package/dist/components/Progress/styles.css.d.ts +0 -4
  496. package/dist/components/Progress/styles.css.js +0 -71
  497. package/dist/components/Radio/Radio.d.ts +0 -161
  498. package/dist/components/Radio/Radio.js +0 -25
  499. package/dist/components/Radio/index.d.ts +0 -1
  500. package/dist/components/Radio/index.js +0 -1
  501. package/dist/components/Radio/styles.css.d.ts +0 -5
  502. package/dist/components/Radio/styles.css.js +0 -42
  503. package/dist/components/ScrollArea/ScrollArea.d.ts +0 -11
  504. package/dist/components/ScrollArea/ScrollArea.js +0 -12
  505. package/dist/components/ScrollArea/index.d.ts +0 -2
  506. package/dist/components/ScrollArea/index.js +0 -1
  507. package/dist/components/ScrollArea/styles.css.d.ts +0 -3
  508. package/dist/components/ScrollArea/styles.css.js +0 -25
  509. package/dist/components/Select/Select.d.ts +0 -158
  510. package/dist/components/Select/Select.js +0 -10
  511. package/dist/components/Select/index.d.ts +0 -1
  512. package/dist/components/Select/index.js +0 -1
  513. package/dist/components/Select/styles.css.d.ts +0 -4
  514. package/dist/components/Select/styles.css.js +0 -82
  515. package/dist/components/Separator/Separator.d.ts +0 -9
  516. package/dist/components/Separator/Separator.js +0 -8
  517. package/dist/components/Separator/index.d.ts +0 -2
  518. package/dist/components/Separator/index.js +0 -1
  519. package/dist/components/Separator/styles.css.d.ts +0 -4
  520. package/dist/components/Separator/styles.css.js +0 -28
  521. package/dist/components/Skeleton/Skeleton.d.ts +0 -15
  522. package/dist/components/Skeleton/Skeleton.js +0 -13
  523. package/dist/components/Skeleton/index.d.ts +0 -2
  524. package/dist/components/Skeleton/index.js +0 -1
  525. package/dist/components/Skeleton/styles.css.d.ts +0 -4
  526. package/dist/components/Skeleton/styles.css.js +0 -56
  527. package/dist/components/Spinner/Spinner.d.ts +0 -11
  528. package/dist/components/Spinner/Spinner.js +0 -8
  529. package/dist/components/Spinner/index.d.ts +0 -2
  530. package/dist/components/Spinner/index.js +0 -1
  531. package/dist/components/Spinner/styles.css.d.ts +0 -4
  532. package/dist/components/Spinner/styles.css.js +0 -55
  533. package/dist/components/Stack/Stack.d.ts +0 -167
  534. package/dist/components/Stack/Stack.js +0 -24
  535. package/dist/components/Stack/index.d.ts +0 -2
  536. package/dist/components/Stack/index.js +0 -1
  537. package/dist/components/Stepper/Stepper.d.ts +0 -19
  538. package/dist/components/Stepper/Stepper.js +0 -25
  539. package/dist/components/Stepper/index.d.ts +0 -2
  540. package/dist/components/Stepper/index.js +0 -1
  541. package/dist/components/Stepper/styles.css.d.ts +0 -14
  542. package/dist/components/Stepper/styles.css.js +0 -104
  543. package/dist/components/Table/Table.d.ts +0 -41
  544. package/dist/components/Table/Table.js +0 -39
  545. package/dist/components/Table/index.d.ts +0 -1
  546. package/dist/components/Table/index.js +0 -1
  547. package/dist/components/Table/styles.css.d.ts +0 -8
  548. package/dist/components/Table/styles.css.js +0 -49
  549. package/dist/components/Tabs/Tabs.d.ts +0 -29
  550. package/dist/components/Tabs/Tabs.js +0 -52
  551. package/dist/components/Tabs/index.d.ts +0 -1
  552. package/dist/components/Tabs/index.js +0 -1
  553. package/dist/components/Tabs/styles.css.d.ts +0 -6
  554. package/dist/components/Tabs/styles.css.js +0 -100
  555. package/dist/components/Tag/Tag.d.ts +0 -16
  556. package/dist/components/Tag/Tag.js +0 -18
  557. package/dist/components/Tag/index.d.ts +0 -1
  558. package/dist/components/Tag/index.js +0 -1
  559. package/dist/components/Tag/styles.css.d.ts +0 -3
  560. package/dist/components/Tag/styles.css.js +0 -93
  561. package/dist/components/Text/Header.d.ts +0 -8
  562. package/dist/components/Text/Header.js +0 -8
  563. package/dist/components/Text/P.d.ts +0 -7
  564. package/dist/components/Text/P.js +0 -8
  565. package/dist/components/Text/index.d.ts +0 -2
  566. package/dist/components/Text/index.js +0 -2
  567. package/dist/components/Text/styles.css.d.ts +0 -2
  568. package/dist/components/Text/styles.css.js +0 -13
  569. package/dist/components/TextArea/TextArea.d.ts +0 -8
  570. package/dist/components/TextArea/TextArea.js +0 -9
  571. package/dist/components/TextArea/index.d.ts +0 -2
  572. package/dist/components/TextArea/index.js +0 -1
  573. package/dist/components/TextArea/styles.css.d.ts +0 -2
  574. package/dist/components/TextArea/styles.css.js +0 -10
  575. package/dist/components/Toast/Toast.d.ts +0 -34
  576. package/dist/components/Toast/Toast.js +0 -177
  577. package/dist/components/Toast/index.d.ts +0 -1
  578. package/dist/components/Toast/index.js +0 -1
  579. package/dist/components/Toast/styles.css.d.ts +0 -21
  580. package/dist/components/Toast/styles.css.js +0 -192
  581. package/dist/components/Toggle/Toggle.d.ts +0 -11
  582. package/dist/components/Toggle/Toggle.js +0 -17
  583. package/dist/components/Toggle/index.d.ts +0 -2
  584. package/dist/components/Toggle/index.js +0 -1
  585. package/dist/components/Toggle/styles.css.d.ts +0 -12
  586. package/dist/components/Toggle/styles.css.js +0 -118
  587. package/dist/components/Tooltip/Tooltip.d.ts +0 -11
  588. package/dist/components/Tooltip/Tooltip.js +0 -16
  589. package/dist/components/Tooltip/index.d.ts +0 -2
  590. package/dist/components/Tooltip/index.js +0 -1
  591. package/dist/components/Tooltip/styles.css.d.ts +0 -8
  592. package/dist/components/Tooltip/styles.css.js +0 -86
  593. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +0 -8
  594. package/dist/components/VisuallyHidden/VisuallyHidden.js +0 -9
  595. package/dist/components/VisuallyHidden/index.d.ts +0 -2
  596. package/dist/components/VisuallyHidden/index.js +0 -1
  597. package/dist/components/VisuallyHidden/styles.css.d.ts +0 -1
  598. package/dist/components/VisuallyHidden/styles.css.js +0 -12
  599. package/dist/components/index.d.ts +0 -68
  600. package/dist/components/index.js +0 -47
  601. package/dist/index.d.ts +0 -1
  602. package/dist/index.js +0 -1
  603. package/dist/styles/layers.css.d.ts +0 -3
  604. package/dist/styles/layers.css.js +0 -3
  605. package/dist/styles/sprinkles.css.d.ts +0 -241
  606. package/dist/styles/theme.css.d.ts +0 -38
  607. package/dist/styles/utils.d.ts +0 -2
  608. package/dist/styles/utils.js +0 -7
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import { Sprinkles } from '../../styles/sprinkles.css';
3
- type TabsProps = React.HTMLAttributes<HTMLDivElement> & Sprinkles & {
4
- children: React.ReactNode;
5
- defaultValue?: string;
6
- orientation?: 'horizontal' | 'vertical';
7
- onChange?: (value: string) => void;
8
- };
9
- type TabListProps = {
10
- children: React.ReactNode;
11
- className?: string;
12
- };
13
- type TabProps = {
14
- value: string;
15
- children: React.ReactNode;
16
- disabled?: boolean;
17
- className?: string;
18
- };
19
- type TabPanelProps = {
20
- value: string;
21
- children: React.ReactNode;
22
- className?: string;
23
- };
24
- declare const TabsComponent: (({ children, defaultValue, orientation, onChange, className, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element) & {
25
- List: ({ children, className }: TabListProps) => import("react/jsx-runtime").JSX.Element;
26
- Tab: ({ value, children, disabled, className }: TabProps) => import("react/jsx-runtime").JSX.Element;
27
- Panel: ({ value, children, className }: TabPanelProps) => import("react/jsx-runtime").JSX.Element;
28
- };
29
- export default TabsComponent;
@@ -1,52 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import clsx from 'clsx';
3
- import { createContext, useContext, useState } from 'react';
4
- import { tabsContainer, tabsList, tabsListHorizontal, tabsListVertical, tabItem, tabContent, } from './styles.css';
5
- import Box from '../Box';
6
- const TabsContext = createContext({
7
- activeTab: '',
8
- setActiveTab: () => { },
9
- });
10
- const Tabs = ({ children, defaultValue = '', orientation = 'horizontal', onChange, className, ...props }) => {
11
- const [activeTab, setActiveTab] = useState(defaultValue);
12
- const handleTabChange = (value) => {
13
- setActiveTab(value);
14
- if (onChange) {
15
- onChange(value);
16
- }
17
- };
18
- return (_jsx(TabsContext.Provider, { value: { activeTab, setActiveTab: handleTabChange, orientation }, children: _jsx(Box, { className: clsx(tabsContainer, className), width: "100%", ...props, children: children }) }));
19
- };
20
- const TabList = ({ children, className }) => {
21
- const { orientation } = useContext(TabsContext);
22
- return (_jsx(Box, { as: "div", role: "tablist", className: clsx(tabsList, orientation === 'vertical' ? tabsListVertical : tabsListHorizontal, className), children: children }));
23
- };
24
- const Tab = ({ value, children, disabled = false, className }) => {
25
- const { activeTab, setActiveTab, orientation } = useContext(TabsContext);
26
- const isActive = activeTab === value;
27
- const handleClick = () => {
28
- if (!disabled) {
29
- setActiveTab(value);
30
- }
31
- };
32
- return (_jsx(Box, { as: "button", role: "tab", "aria-selected": isActive, disabled: disabled, onClick: handleClick, className: clsx(tabItem[orientation === 'vertical'
33
- ? isActive
34
- ? 'verticalActive'
35
- : 'base'
36
- : isActive
37
- ? 'active'
38
- : 'base'], className), children: children }));
39
- };
40
- const TabPanel = ({ value, children, className }) => {
41
- const { activeTab } = useContext(TabsContext);
42
- const isActive = activeTab === value;
43
- if (!isActive)
44
- return null;
45
- return (_jsx(Box, { as: "div", role: "tabpanel", className: clsx(tabContent, className), children: children }));
46
- };
47
- const TabsComponent = Object.assign(Tabs, {
48
- List: TabList,
49
- Tab,
50
- Panel: TabPanel,
51
- });
52
- export default TabsComponent;
@@ -1 +0,0 @@
1
- export { default as Tabs } from './Tabs';
@@ -1 +0,0 @@
1
- export { default as Tabs } from './Tabs';
@@ -1,6 +0,0 @@
1
- export declare const tabsContainer: string;
2
- export declare const tabsList: string;
3
- export declare const tabsListHorizontal: string;
4
- export declare const tabsListVertical: string;
5
- export declare const tabItem: Record<"active" | "base" | "verticalActive", string>;
6
- export declare const tabContent: string;
@@ -1,100 +0,0 @@
1
- import { styleVariants } from '@vanilla-extract/css';
2
- import { vars } from '../../styles/theme.css';
3
- import { styleWithLayer } from '../../styles/utils';
4
- export const tabsContainer = styleWithLayer({
5
- width: '100%',
6
- });
7
- export const tabsList = styleWithLayer({
8
- display: 'flex',
9
- gap: '4px',
10
- borderBottom: `2px solid ${vars.colors.borderDefault}`,
11
- fontFamily: vars.fontFamily.body,
12
- });
13
- export const tabsListHorizontal = styleWithLayer({
14
- flexDirection: 'row',
15
- overflowX: 'auto',
16
- });
17
- export const tabsListVertical = styleWithLayer({
18
- flexDirection: 'column',
19
- borderBottom: 'none',
20
- borderRight: `2px solid ${vars.colors.borderDefault}`,
21
- });
22
- export const tabItem = styleVariants({
23
- base: {
24
- padding: '0.75rem 1.5rem',
25
- fontSize: '14px',
26
- fontWeight: '500',
27
- color: vars.colors.textSecondary,
28
- cursor: 'pointer',
29
- border: 'none',
30
- backgroundColor: 'transparent',
31
- whiteSpace: 'nowrap',
32
- transition: 'all 0.2s ease',
33
- ':focus-visible': {
34
- outline: `2px solid ${vars.colors.buttonBackgroundPrimary}`,
35
- outlineOffset: '2px',
36
- },
37
- ':hover:not(:disabled)': {
38
- color: vars.colors.textPrimary,
39
- backgroundColor: vars.colors.backgroundMuted,
40
- },
41
- ':disabled': {
42
- cursor: 'not-allowed',
43
- opacity: 0.5,
44
- },
45
- },
46
- active: {
47
- padding: '0.75rem 1.5rem',
48
- fontSize: '14px',
49
- fontWeight: '500',
50
- color: vars.colors.buttonBackgroundPrimary,
51
- cursor: 'pointer',
52
- border: 'none',
53
- backgroundColor: 'transparent',
54
- whiteSpace: 'nowrap',
55
- transition: 'all 0.2s ease',
56
- borderBottom: `2px solid ${vars.colors.buttonBackgroundPrimary}`,
57
- marginBottom: '-2px',
58
- ':focus-visible': {
59
- outline: `2px solid ${vars.colors.buttonBackgroundPrimary}`,
60
- outlineOffset: '2px',
61
- },
62
- ':hover:not(:disabled)': {
63
- backgroundColor: vars.colors.backgroundMuted,
64
- },
65
- ':disabled': {
66
- cursor: 'not-allowed',
67
- opacity: 0.5,
68
- },
69
- },
70
- verticalActive: {
71
- padding: '0.75rem 1.5rem',
72
- fontSize: '14px',
73
- fontWeight: '500',
74
- color: vars.colors.buttonBackgroundPrimary,
75
- cursor: 'pointer',
76
- border: 'none',
77
- backgroundColor: 'transparent',
78
- whiteSpace: 'nowrap',
79
- transition: 'all 0.2s ease',
80
- borderRight: `2px solid ${vars.colors.buttonBackgroundPrimary}`,
81
- marginRight: '-2px',
82
- ':focus-visible': {
83
- outline: `2px solid ${vars.colors.buttonBackgroundPrimary}`,
84
- outlineOffset: '2px',
85
- },
86
- ':hover:not(:disabled)': {
87
- backgroundColor: vars.colors.backgroundMuted,
88
- },
89
- ':disabled': {
90
- cursor: 'not-allowed',
91
- opacity: 0.5,
92
- },
93
- },
94
- });
95
- export const tabContent = styleWithLayer({
96
- padding: '1.5rem 0',
97
- fontFamily: vars.fontFamily.body,
98
- fontSize: '14px',
99
- color: vars.colors.textPrimary,
100
- });
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { Sprinkles } from '../../styles/sprinkles.css';
3
- type TagProps = React.HTMLAttributes<HTMLSpanElement> & Sprinkles & {
4
- children: React.ReactNode;
5
- variant?: 'default' | 'primary' | 'success' | 'warning' | 'error';
6
- onRemove?: () => void;
7
- removable?: boolean;
8
- };
9
- type TagGroupProps = {
10
- children: React.ReactNode;
11
- className?: string;
12
- };
13
- declare const TagComponent: (({ children, variant, onRemove, removable, className, }: TagProps) => import("react/jsx-runtime").JSX.Element) & {
14
- Group: ({ children, className }: TagGroupProps) => import("react/jsx-runtime").JSX.Element;
15
- };
16
- export default TagComponent;
@@ -1,18 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import clsx from 'clsx';
3
- import { tag, removeButton, tagGroup } from './styles.css';
4
- import Box from '../Box';
5
- const Tag = ({ children, variant = 'default', onRemove, removable = false, className, }) => {
6
- return (_jsxs(Box, { as: "span", className: clsx(tag[variant], className), display: "inline", alignItems: "center", children: [children, removable && (_jsx(Box, { as: "span", onClick: onRemove, className: removeButton, role: "button", tabIndex: 0, "aria-label": "Remove tag", onKeyDown: (e) => {
7
- if (e.key === 'Enter' || e.key === ' ') {
8
- onRemove?.();
9
- }
10
- }, children: "\u00D7" }))] }));
11
- };
12
- const TagGroup = ({ children, className }) => {
13
- return (_jsx(Box, { className: clsx(tagGroup, className), display: "flex", gap: "small", style: { flexWrap: 'wrap' }, children: children }));
14
- };
15
- const TagComponent = Object.assign(Tag, {
16
- Group: TagGroup,
17
- });
18
- export default TagComponent;
@@ -1 +0,0 @@
1
- export { default as Tag } from './Tag';
@@ -1 +0,0 @@
1
- export { default as Tag } from './Tag';
@@ -1,3 +0,0 @@
1
- export declare const tag: Record<"default" | "primary" | "base" | "success" | "warning" | "error", string>;
2
- export declare const removeButton: string;
3
- export declare const tagGroup: string;
@@ -1,93 +0,0 @@
1
- import { style, styleVariants } from '@vanilla-extract/css';
2
- import { vars } from '../../styles/theme.css';
3
- import { styleWithLayer } from '../../styles/utils';
4
- export const tag = styleVariants({
5
- base: {
6
- display: 'inline-flex',
7
- alignItems: 'center',
8
- padding: '4px 12px',
9
- fontSize: '12px',
10
- fontWeight: '500',
11
- fontFamily: vars.fontFamily.body,
12
- borderRadius: '16px',
13
- transition: 'all 0.2s ease',
14
- },
15
- default: {
16
- display: 'inline-flex',
17
- alignItems: 'center',
18
- padding: '4px 12px',
19
- fontSize: '12px',
20
- fontWeight: '500',
21
- fontFamily: vars.fontFamily.body,
22
- color: vars.colors.textPrimary,
23
- backgroundColor: vars.colors.backgroundMuted,
24
- borderRadius: '16px',
25
- transition: 'all 0.2s ease',
26
- },
27
- primary: {
28
- display: 'inline-flex',
29
- alignItems: 'center',
30
- padding: '4px 12px',
31
- fontSize: '12px',
32
- fontWeight: '500',
33
- fontFamily: vars.fontFamily.body,
34
- color: vars.colors.buttonTextPrimary,
35
- backgroundColor: vars.colors.buttonBackgroundPrimary,
36
- borderRadius: '16px',
37
- transition: 'all 0.2s ease',
38
- },
39
- success: {
40
- display: 'inline-flex',
41
- alignItems: 'center',
42
- padding: '4px 12px',
43
- fontSize: '12px',
44
- fontWeight: '500',
45
- fontFamily: vars.fontFamily.body,
46
- color: vars.colors.alertSuccessText,
47
- backgroundColor: vars.colors.alertSuccessBackground,
48
- borderRadius: '16px',
49
- transition: 'all 0.2s ease',
50
- },
51
- warning: {
52
- display: 'inline-flex',
53
- alignItems: 'center',
54
- padding: '4px 12px',
55
- fontSize: '12px',
56
- fontWeight: '500',
57
- fontFamily: vars.fontFamily.body,
58
- color: vars.colors.alertWarningText,
59
- backgroundColor: vars.colors.alertWarningBackground,
60
- borderRadius: '16px',
61
- transition: 'all 0.2s ease',
62
- },
63
- error: {
64
- display: 'inline-flex',
65
- alignItems: 'center',
66
- padding: '4px 12px',
67
- fontSize: '12px',
68
- fontWeight: '500',
69
- fontFamily: vars.fontFamily.body,
70
- color: vars.colors.alertErrorText,
71
- backgroundColor: vars.colors.alertErrorBackground,
72
- borderRadius: '16px',
73
- transition: 'all 0.2s ease',
74
- },
75
- });
76
- export const removeButton = style({
77
- cursor: 'pointer',
78
- marginLeft: '8px',
79
- display: 'flex',
80
- alignItems: 'center',
81
- justifyContent: 'center',
82
- color: vars.colors.textSecondary,
83
- fontSize: '16px',
84
- lineHeight: '1',
85
- ':hover': {
86
- color: vars.colors.textPrimary,
87
- },
88
- });
89
- export const tagGroup = styleWithLayer({
90
- display: 'flex',
91
- flexWrap: 'wrap',
92
- gap: '8px',
93
- });
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { Sprinkles } from '../../styles/sprinkles.css';
3
- type HeaderProps = React.HTMLAttributes<HTMLHeadingElement> & Sprinkles & {
4
- variant: 'h1' | 'h2' | 'h3';
5
- children?: React.ReactNode;
6
- };
7
- declare const Header: ({ variant, children, className }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
8
- export default Header;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import clsx from 'clsx';
3
- import { heading, text } from './styles.css';
4
- import Box from '../Box';
5
- const Header = ({ variant, children, className }) => {
6
- return (_jsx(Box, { as: variant, className: clsx(className, text, heading), children: children }));
7
- };
8
- export default Header;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { Sprinkles } from '../../styles/sprinkles.css';
3
- type PProps = React.HTMLAttributes<HTMLParagraphElement> & Sprinkles & {
4
- children: React.ReactNode;
5
- };
6
- declare const P: (props: PProps) => import("react/jsx-runtime").JSX.Element;
7
- export default P;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import clsx from 'clsx';
3
- import { text } from './styles.css';
4
- import Box from '../Box';
5
- const P = (props) => {
6
- return (_jsx(Box, { as: "p", className: clsx(props.className, text), children: props.children }));
7
- };
8
- export default P;
@@ -1,2 +0,0 @@
1
- export { default as P } from './P';
2
- export { default as Header } from './Header';
@@ -1,2 +0,0 @@
1
- export { default as P } from './P';
2
- export { default as Header } from './Header';
@@ -1,2 +0,0 @@
1
- export declare const text: string;
2
- export declare const heading: string;
@@ -1,13 +0,0 @@
1
- import { style } from '@vanilla-extract/css';
2
- import { vars } from '../../styles/theme.css';
3
- export const text = style({
4
- color: vars.colors.textPrimary,
5
- fontFamily: vars.fontFamily.body,
6
- lineHeight: '24px',
7
- });
8
- export const heading = style({
9
- color: vars.colors.textPrimary,
10
- fontFamily: vars.fontFamily.heading,
11
- lineHeight: '32px',
12
- fontWeight: '700',
13
- });
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { Sprinkles } from '../../styles/sprinkles.css';
3
- export type TextAreaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement> & Sprinkles & {
4
- label?: string;
5
- fullWidth?: boolean;
6
- };
7
- declare const TextArea: (props: TextAreaProps) => import("react/jsx-runtime").JSX.Element;
8
- export default TextArea;
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import clsx from 'clsx';
3
- import { textAreaStyle, label } from './styles.css';
4
- import { text } from '../Text/styles.css';
5
- import Box from '../Box';
6
- const TextArea = (props) => {
7
- return (_jsxs(Box, { display: "flex", flexDirection: { mobile: 'column', tablet: 'row' }, gap: "small", children: [props.label && (_jsx(Box, { as: "label", className: clsx(text, label), marginX: { mobile: 'auto', tablet: 'none' }, marginY: { mobile: 'none', tablet: 'auto' }, htmlFor: props.id, children: props.label })), _jsx(Box, { as: "textarea", className: clsx(textAreaStyle, props.className), width: props.fullWidth ? '100%' : undefined, ...props })] }));
8
- };
9
- export default TextArea;
@@ -1,2 +0,0 @@
1
- export { default as TextArea } from './TextArea';
2
- export type { TextAreaProps } from './TextArea';
@@ -1 +0,0 @@
1
- export { default as TextArea } from './TextArea';
@@ -1,2 +0,0 @@
1
- export declare const textAreaStyle: string;
2
- export declare const label: string;
@@ -1,10 +0,0 @@
1
- import { styleWithLayer } from '../../styles/utils';
2
- export const textAreaStyle = styleWithLayer({
3
- padding: '0.5rem 1rem',
4
- borderRadius: '0.5rem',
5
- minHeight: '100px',
6
- resize: 'vertical',
7
- });
8
- export const label = styleWithLayer({
9
- paddingRight: '0.5rem',
10
- });
@@ -1,34 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
3
- export type ToastVariant = 'success' | 'error' | 'warning' | 'info';
4
- export type ToastOptions = {
5
- duration?: number;
6
- closable?: boolean;
7
- position?: ToastPosition;
8
- onClose?: () => void;
9
- };
10
- type ToastContextType = {
11
- addToast: (message: string, variant?: ToastVariant, options?: ToastOptions) => string;
12
- removeToast: (id: string) => void;
13
- handleDismissAll: () => void;
14
- handleResumeAll: () => void;
15
- };
16
- type ToastProviderProps = {
17
- children: ReactNode;
18
- position?: ToastPosition;
19
- maxVisible?: number;
20
- stacking?: 'stack' | 'replace';
21
- };
22
- export declare const ToastProvider: ({ children, position, maxVisible, stacking, }: ToastProviderProps) => import("react/jsx-runtime").JSX.Element;
23
- export declare const useToast: () => ToastContextType;
24
- export type ToastComponentProps = {
25
- message: string;
26
- variant?: ToastVariant;
27
- options?: ToastOptions;
28
- className?: string;
29
- };
30
- export declare const Toast: {
31
- ({ message, variant, options, className }: ToastComponentProps): any;
32
- displayName: string;
33
- };
34
- export {};
@@ -1,177 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { createContext, useContext, useState, useEffect, useCallback, useRef } from 'react';
3
- import { createPortal } from 'react-dom';
4
- import clsx from 'clsx';
5
- import { toastContainer, toastWrapper, toastItem, toastCloseButton, toastProgressBarContainer, toastProgressBar, toastContent, fadeOutSuccess, fadeOutError, fadeOutWarning, fadeOutInfo, slideInRight, } from './styles.css';
6
- import { Icon } from '../Icon';
7
- const ToastContext = createContext({
8
- addToast: () => '',
9
- removeToast: () => { },
10
- handleDismissAll: () => { },
11
- handleResumeAll: () => { },
12
- });
13
- const getFadeOutForVariant = (variant) => {
14
- const fadeOutMap = {
15
- success: fadeOutSuccess,
16
- error: fadeOutError,
17
- warning: fadeOutWarning,
18
- info: fadeOutInfo,
19
- };
20
- return fadeOutMap[variant] || fadeOutInfo;
21
- };
22
- const positionToClassKey = {
23
- 'top-left': 'topLeft',
24
- 'top-center': 'topCenter',
25
- 'top-right': 'topRight',
26
- 'bottom-left': 'bottomLeft',
27
- 'bottom-center': 'bottomCenter',
28
- 'bottom-right': 'bottomRight',
29
- };
30
- export const ToastProvider = ({ children, position = 'top-right', maxVisible = 5, stacking = 'stack', }) => {
31
- const [toasts, setToasts] = useState([]);
32
- const [pauseId, setPauseId] = useState(null);
33
- const timeoutsRef = useRef(new Map());
34
- const pauseTimeoutRef = useRef(null);
35
- const toastsRef = useRef([]);
36
- // Keep ref in sync with state
37
- useEffect(() => {
38
- toastsRef.current = toasts;
39
- }, [toasts]);
40
- const removeToastInternal = useCallback((id) => {
41
- setToasts((prev) => {
42
- const toast = prev.find((t) => t.id === id);
43
- if (toast) {
44
- toast.options.onClose?.();
45
- }
46
- return prev.filter((t) => t.id !== id);
47
- });
48
- const timeout = timeoutsRef.current.get(id);
49
- if (timeout) {
50
- clearTimeout(timeout);
51
- timeoutsRef.current.delete(id);
52
- }
53
- }, []);
54
- const addToast = useCallback((message, variant = 'info', options = {}) => {
55
- const id = `toast-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
56
- const duration = options.duration ?? 5000;
57
- const startTime = Date.now();
58
- const newToast = {
59
- id,
60
- message,
61
- variant,
62
- options: { ...options, duration, position: options.position ?? position },
63
- startTime,
64
- paused: false,
65
- duration,
66
- };
67
- setToasts((prev) => {
68
- if (stacking === 'replace') {
69
- return [newToast];
70
- }
71
- const filtered = prev.filter((t) => {
72
- const elapsed = Date.now() - t.startTime;
73
- return elapsed < (t.options.duration ?? 5000);
74
- });
75
- return [...filtered, newToast].slice(-maxVisible);
76
- });
77
- const timeoutId = setTimeout(() => {
78
- removeToastInternal(id);
79
- }, duration);
80
- timeoutsRef.current.set(id, timeoutId);
81
- return id;
82
- }, [maxVisible, stacking, position, removeToastInternal]);
83
- const dismissInternal = useCallback((id) => {
84
- const toast = toastsRef.current.find((t) => t.id === id);
85
- if (!toast)
86
- return;
87
- setToasts((prev) => prev.map((t) => {
88
- if (t.id === id) {
89
- return { ...t, paused: true };
90
- }
91
- return t;
92
- }));
93
- if (pauseTimeoutRef.current) {
94
- clearTimeout(pauseTimeoutRef.current);
95
- }
96
- setPauseId(id);
97
- pauseTimeoutRef.current = setTimeout(() => {
98
- setPauseId(null);
99
- removeToastInternal(id);
100
- }, 500);
101
- const timeout = timeoutsRef.current.get(id);
102
- if (timeout) {
103
- clearTimeout(timeout);
104
- timeoutsRef.current.delete(id);
105
- }
106
- }, [removeToastInternal]);
107
- const dismissAllInternal = useCallback(() => {
108
- setPauseId('all');
109
- toastsRef.current.forEach((toast) => {
110
- const timeout = timeoutsRef.current.get(toast.id);
111
- if (timeout) {
112
- clearTimeout(timeout);
113
- timeoutsRef.current.delete(toast.id);
114
- }
115
- });
116
- }, []);
117
- const resumeAllInternal = useCallback(() => {
118
- setPauseId(null);
119
- toastsRef.current.forEach((toast) => {
120
- if (toast.paused && toast.duration > 500) {
121
- const timeout = setTimeout(() => {
122
- removeToastInternal(toast.id);
123
- }, toast.duration - (Date.now() - toast.startTime));
124
- timeoutsRef.current.set(toast.id, timeout);
125
- }
126
- });
127
- }, [removeToastInternal]);
128
- useEffect(() => {
129
- return () => {
130
- timeoutsRef.current.forEach((timeout) => clearTimeout(timeout));
131
- if (pauseTimeoutRef.current) {
132
- clearTimeout(pauseTimeoutRef.current);
133
- }
134
- };
135
- }, []);
136
- const value = {
137
- addToast,
138
- removeToast: removeToastInternal,
139
- handleDismissAll: dismissAllInternal,
140
- handleResumeAll: resumeAllInternal,
141
- };
142
- return (_jsxs(ToastContext.Provider, { value: value, children: [children, _jsx(ToastContainer, { toasts: toasts, position: position, pauseId: pauseId, onDismiss: dismissInternal, onDismissAll: dismissAllInternal, onResumeAll: resumeAllInternal })] }));
143
- };
144
- const ToastContainer = ({ toasts, position, pauseId, onDismiss, onDismissAll, onResumeAll, }) => {
145
- const [container, setContainer] = useState(null);
146
- useEffect(() => {
147
- const existingContainer = document.getElementById('toast-container');
148
- if (existingContainer) {
149
- setContainer(existingContainer);
150
- }
151
- else {
152
- const el = document.createElement('div');
153
- el.id = 'toast-container';
154
- document.body.appendChild(el);
155
- setContainer(el);
156
- }
157
- }, []);
158
- if (!container)
159
- return null;
160
- return createPortal(_jsx("div", { className: clsx(toastContainer, toastWrapper[positionToClassKey[position]]), onMouseEnter: onDismissAll, onMouseLeave: onResumeAll, children: toasts.map((toast) => {
161
- const elapsed = Date.now() - toast.startTime;
162
- const progress = ((toast.duration - elapsed) / toast.duration) * 100;
163
- const fadeOutAnimation = getFadeOutForVariant(toast.variant);
164
- return (_jsx("div", { className: toastItem, style: {
165
- opacity: toast.paused || pauseId !== null ? 0.7 : 1,
166
- animation: `${slideInRight} 0.2s ease, 0.2s ease ${fadeOutAnimation} forwards`,
167
- }, onMouseEnter: () => onDismiss(toast.id), children: _jsxs("div", { className: toastContent, children: [_jsx(Icon, { name: toast.variant === 'success' ? 'check' : toast.variant === 'error' ? 'error' : 'info' }), _jsx("span", { style: { marginLeft: '8px' }, children: toast.message }), toast.options.closable !== false && (_jsx("button", { type: "button", className: toastCloseButton, onClick: () => onDismiss(toast.id), "aria-label": "Close toast", children: _jsx(Icon, { name: "close" }) })), toast.duration > 0 && (_jsx("div", { className: toastProgressBarContainer, children: _jsx("div", { className: toastProgressBar, style: { width: `${progress}%` } }) }))] }) }, toast.id));
168
- }) }), container);
169
- };
170
- export const useToast = () => {
171
- const context = useContext(ToastContext);
172
- return context;
173
- };
174
- export const Toast = ({ message, variant = 'info', options, className }) => {
175
- return null;
176
- };
177
- Toast.displayName = 'Toast';
@@ -1 +0,0 @@
1
- export { ToastProvider, Toast, useToast, type ToastOptions, type ToastPosition, type ToastVariant, type ToastComponentProps, } from './Toast';