@jordan-mace/chaser-design-system 2.1.1 → 2.2.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 (438) hide show
  1. package/dist/build-manifest.json +3907 -2574
  2. package/dist/{chunk-HBOFTN7I.mjs → chunk-24E47QJX.mjs} +1 -1
  3. package/dist/{chunk-JB2SH5K4.mjs → chunk-2AM6EHWC.mjs} +1 -1
  4. package/dist/{chunk-2M2O5QYL.mjs → chunk-34M3CLNC.mjs} +1 -1
  5. package/dist/{chunk-MYB73VU4.mjs → chunk-3XZTG5WI.mjs} +1 -1
  6. package/dist/{chunk-6OTPPKZC.mjs → chunk-4QC6YGK4.mjs} +1 -1
  7. package/dist/{chunk-FTVTIQ7C.mjs → chunk-5BXOPXCK.mjs} +1 -1
  8. package/dist/{chunk-ZDHTXOH6.mjs → chunk-5EXQ5OSW.mjs} +2 -2
  9. package/dist/{chunk-ZJWACSKA.mjs → chunk-5PIDF6HN.mjs} +1 -1
  10. package/dist/{chunk-OAWQE37W.mjs → chunk-5TKSC2CZ.mjs} +1 -1
  11. package/dist/{chunk-TVBPMHAO.mjs → chunk-5XVM2VHM.mjs} +1 -1
  12. package/dist/{chunk-AZAZWLOZ.mjs → chunk-6CXECRSK.mjs} +1 -1
  13. package/dist/{chunk-CWZXIE25.mjs → chunk-6V5J7YNO.mjs} +1 -1
  14. package/dist/{chunk-RFUMCXIV.mjs → chunk-7ZQ74CAY.mjs} +1 -1
  15. package/dist/{chunk-TWBKPDDT.mjs → chunk-A2TBEVTU.mjs} +1 -1
  16. package/dist/{chunk-LZXTV7NS.mjs → chunk-AANFTPN7.mjs} +1 -1
  17. package/dist/{chunk-75ZNW3TT.mjs → chunk-AJZZGWRI.mjs} +1 -1
  18. package/dist/{chunk-5ENAZ3IB.mjs → chunk-AWU27D7T.mjs} +1 -1
  19. package/dist/{chunk-ENFJSMFD.mjs → chunk-BANEVGDO.mjs} +1 -1
  20. package/dist/{chunk-37O6YSDZ.mjs → chunk-BZAV7XQ5.mjs} +1 -1
  21. package/dist/{chunk-6B3OBSKM.mjs → chunk-CBWIBJ5J.mjs} +1 -1
  22. package/dist/{chunk-GO5MSGBX.mjs → chunk-CGKVSHV7.mjs} +1 -2
  23. package/dist/{chunk-LWC3CYYT.mjs → chunk-CJ5OBPQ7.mjs} +2 -1
  24. package/dist/{chunk-BCKGNPAG.mjs → chunk-DLVBLJS5.mjs} +2 -2
  25. package/dist/{chunk-J5U2WOZU.mjs → chunk-E2VDDA2L.mjs} +1 -1
  26. package/dist/{chunk-J7BN4TT3.mjs → chunk-ENWO6S4B.mjs} +1 -1
  27. package/dist/{chunk-ATUTWCCV.mjs → chunk-F6L4TAOQ.mjs} +1 -1
  28. package/dist/{chunk-5JGFAWSD.mjs → chunk-GJTMCP2V.mjs} +2 -5
  29. package/dist/{chunk-KNMUPZCN.mjs → chunk-GSQOK623.mjs} +1 -1
  30. package/dist/{chunk-FJSR4KZC.mjs → chunk-GWMUTYRW.mjs} +2 -2
  31. package/dist/{chunk-URXIEOSF.mjs → chunk-HI55SZ2D.mjs} +1 -1
  32. package/dist/{chunk-ACN6T242.mjs → chunk-IDWVC5YP.mjs} +1 -1
  33. package/dist/{chunk-LT7XCZ44.mjs → chunk-JSI23L35.mjs} +1 -1
  34. package/dist/{chunk-MRKCBN4F.mjs → chunk-N2X7G7HT.mjs} +1 -1
  35. package/dist/{chunk-MKECF2YN.mjs → chunk-P6ITY5TK.mjs} +1 -2
  36. package/dist/{chunk-ZUPEOSIO.mjs → chunk-Q7XUOB3J.mjs} +1 -1
  37. package/dist/{chunk-K2H25KPN.mjs → chunk-QDHJEOLM.mjs} +1 -1
  38. package/dist/{chunk-BDEHRPE4.mjs → chunk-QNY6NPTN.mjs} +1 -1
  39. package/dist/{chunk-UXUI35Y4.mjs → chunk-S24ZXUDM.mjs} +1 -1
  40. package/dist/chunk-SFBWW27O.mjs +93 -0
  41. package/dist/{chunk-WO3CSQE2.mjs → chunk-TXAGRBWE.mjs} +3 -3
  42. package/dist/{chunk-Y2HKJDNL.mjs → chunk-U4XNTUXL.mjs} +1 -1
  43. package/dist/{chunk-X23WB6KC.mjs → chunk-W426ZNEN.mjs} +1 -1
  44. package/dist/{chunk-KEZ3C3GP.mjs → chunk-W5T7D7ZJ.mjs} +1 -1
  45. package/dist/{chunk-7KOEPCWT.mjs → chunk-WBE75WTG.mjs} +2 -3
  46. package/dist/{chunk-XXDAXVSI.mjs → chunk-WV2TDE35.mjs} +2 -5
  47. package/dist/{chunk-BY4Q7Y7P.mjs → chunk-X3BOK6LQ.mjs} +1 -1
  48. package/dist/{chunk-EFVPSBQ7.mjs → chunk-YKUJ2KUN.mjs} +2 -2
  49. package/dist/{chunk-FDWTBYLX.mjs → chunk-YQZYQUK5.mjs} +1 -1
  50. package/dist/{chunk-FG4FKMTW.mjs → chunk-ZT5III36.mjs} +1 -2
  51. package/dist/components/Accordion/Accordion.css +946 -694
  52. package/dist/components/Accordion/Accordion.mjs +5 -3
  53. package/dist/components/Accordion/Accordion.types.mjs +0 -0
  54. package/dist/components/Accordion/index.css +946 -694
  55. package/dist/components/Accordion/index.mjs +6 -4
  56. package/dist/components/Alert/Alert.css +946 -694
  57. package/dist/components/Alert/Alert.mjs +3 -3
  58. package/dist/components/Alert/Alert.types.mjs +0 -0
  59. package/dist/components/Alert/index.css +946 -694
  60. package/dist/components/Alert/index.mjs +3 -3
  61. package/dist/components/AspectRatio/AspectRatio.css +946 -694
  62. package/dist/components/AspectRatio/AspectRatio.mjs +3 -3
  63. package/dist/components/AspectRatio/AspectRatio.types.mjs +0 -0
  64. package/dist/components/AspectRatio/index.css +946 -694
  65. package/dist/components/AspectRatio/index.mjs +3 -3
  66. package/dist/components/Avatar/Avatar.css +946 -694
  67. package/dist/components/Avatar/Avatar.mjs +3 -3
  68. package/dist/components/Avatar/Avatar.types.mjs +0 -0
  69. package/dist/components/Avatar/index.css +946 -694
  70. package/dist/components/Avatar/index.mjs +3 -3
  71. package/dist/components/Badge/Badge.css +946 -694
  72. package/dist/components/Badge/Badge.mjs +3 -3
  73. package/dist/components/Badge/Badge.types.mjs +0 -0
  74. package/dist/components/Badge/index.css +946 -694
  75. package/dist/components/Badge/index.mjs +3 -3
  76. package/dist/components/Box/Box.css +946 -694
  77. package/dist/components/Box/Box.mjs +2 -2
  78. package/dist/components/Box/Box.types.mjs +0 -0
  79. package/dist/components/Box/index.css +946 -694
  80. package/dist/components/Box/index.mjs +2 -2
  81. package/dist/components/Breadcrumb/Breadcrumb.css +946 -694
  82. package/dist/components/Breadcrumb/Breadcrumb.mjs +3 -3
  83. package/dist/components/Breadcrumb/Breadcrumb.types.mjs +0 -0
  84. package/dist/components/Breadcrumb/index.css +946 -694
  85. package/dist/components/Breadcrumb/index.mjs +3 -3
  86. package/dist/components/Button/Button.css +946 -694
  87. package/dist/components/Button/Button.mjs +3 -3
  88. package/dist/components/Button/Button.types.mjs +0 -0
  89. package/dist/components/Button/index.css +946 -694
  90. package/dist/components/Button/index.mjs +3 -3
  91. package/dist/components/Card/Card.css +946 -694
  92. package/dist/components/Card/Card.mjs +3 -3
  93. package/dist/components/Card/Card.types.mjs +0 -0
  94. package/dist/components/Card/index.css +946 -694
  95. package/dist/components/Card/index.mjs +3 -3
  96. package/dist/components/Checkbox/Checkbox.css +946 -694
  97. package/dist/components/Checkbox/Checkbox.mjs +3 -3
  98. package/dist/components/Checkbox/Checkbox.types.mjs +0 -0
  99. package/dist/components/Checkbox/index.css +946 -694
  100. package/dist/components/Checkbox/index.mjs +3 -3
  101. package/dist/components/Collapse/Collapse.css +946 -694
  102. package/dist/components/Collapse/Collapse.mjs +3 -3
  103. package/dist/components/Collapse/Collapse.types.mjs +0 -0
  104. package/dist/components/Collapse/index.css +946 -694
  105. package/dist/components/Collapse/index.mjs +3 -3
  106. package/dist/components/Combobox/Combobox.css +946 -694
  107. package/dist/components/Combobox/Combobox.mjs +3 -3
  108. package/dist/components/Combobox/Combobox.types.mjs +0 -0
  109. package/dist/components/Combobox/index.css +946 -694
  110. package/dist/components/Combobox/index.mjs +3 -3
  111. package/dist/components/Container/Container.css +946 -694
  112. package/dist/components/Container/Container.mjs +3 -3
  113. package/dist/components/Container/Container.types.mjs +0 -0
  114. package/dist/components/Container/index.css +946 -694
  115. package/dist/components/Container/index.mjs +3 -3
  116. package/dist/components/Divider/Divider.css +946 -694
  117. package/dist/components/Divider/Divider.mjs +3 -3
  118. package/dist/components/Divider/Divider.types.mjs +0 -0
  119. package/dist/components/Divider/index.css +946 -694
  120. package/dist/components/Divider/index.mjs +3 -3
  121. package/dist/components/Drawer/Drawer.css +946 -694
  122. package/dist/components/Drawer/Drawer.mjs +3 -3
  123. package/dist/components/Drawer/Drawer.types.mjs +0 -0
  124. package/dist/components/Drawer/index.css +946 -694
  125. package/dist/components/Drawer/index.mjs +3 -3
  126. package/dist/components/DropdownMenu/DropdownMenu.css +946 -694
  127. package/dist/components/DropdownMenu/DropdownMenu.mjs +3 -3
  128. package/dist/components/DropdownMenu/DropdownMenu.types.mjs +0 -0
  129. package/dist/components/DropdownMenu/index.css +946 -694
  130. package/dist/components/DropdownMenu/index.mjs +3 -3
  131. package/dist/components/EmptyState/EmptyState.css +946 -694
  132. package/dist/components/EmptyState/EmptyState.mjs +3 -3
  133. package/dist/components/EmptyState/EmptyState.types.mjs +0 -0
  134. package/dist/components/EmptyState/index.css +946 -694
  135. package/dist/components/EmptyState/index.mjs +3 -3
  136. package/dist/components/FileUpload/FileUpload.css +946 -694
  137. package/dist/components/FileUpload/FileUpload.mjs +3 -3
  138. package/dist/components/FileUpload/FileUpload.types.mjs +0 -0
  139. package/dist/components/FileUpload/index.css +946 -694
  140. package/dist/components/FileUpload/index.mjs +3 -3
  141. package/dist/components/Form/Form.css +946 -694
  142. package/dist/components/Form/Form.mjs +3 -3
  143. package/dist/components/Form/Form.types.mjs +0 -0
  144. package/dist/components/Form/FormInput.css +946 -694
  145. package/dist/components/Form/FormInput.mjs +65 -65
  146. package/dist/components/Form/FormInput.types.mjs +0 -0
  147. package/dist/components/Form/index.css +946 -694
  148. package/dist/components/Form/index.mjs +65 -65
  149. package/dist/components/Grid/Grid.css +946 -694
  150. package/dist/components/Grid/Grid.mjs +3 -3
  151. package/dist/components/Grid/Grid.types.mjs +0 -0
  152. package/dist/components/Grid/index.css +946 -694
  153. package/dist/components/Grid/index.mjs +3 -3
  154. package/dist/components/Icon/Icon.css +946 -694
  155. package/dist/components/Icon/Icon.mjs +3 -3
  156. package/dist/components/Icon/Icon.types.mjs +0 -0
  157. package/dist/components/Icon/index.css +946 -694
  158. package/dist/components/Icon/index.mjs +3 -3
  159. package/dist/components/Input/Input.css +946 -694
  160. package/dist/components/Input/Input.mjs +3 -3
  161. package/dist/components/Input/Input.types.mjs +0 -0
  162. package/dist/components/Input/index.css +946 -694
  163. package/dist/components/Input/index.mjs +3 -3
  164. package/dist/components/Kbd/Kbd.css +946 -694
  165. package/dist/components/Kbd/Kbd.mjs +1 -1
  166. package/dist/components/Kbd/Kbd.types.mjs +0 -0
  167. package/dist/components/Kbd/index.css +946 -694
  168. package/dist/components/Kbd/index.mjs +1 -1
  169. package/dist/components/List/List.css +946 -694
  170. package/dist/components/List/List.mjs +3 -3
  171. package/dist/components/List/List.types.mjs +0 -0
  172. package/dist/components/List/ListItem.css +946 -694
  173. package/dist/components/List/ListItem.mjs +3 -3
  174. package/dist/components/List/ListItem.types.mjs +0 -0
  175. package/dist/components/List/index.css +946 -694
  176. package/dist/components/List/index.mjs +4 -4
  177. package/dist/components/Modal/Modal.css +946 -694
  178. package/dist/components/Modal/Modal.mjs +3 -3
  179. package/dist/components/Modal/Modal.types.mjs +0 -0
  180. package/dist/components/Modal/index.css +946 -694
  181. package/dist/components/Modal/index.mjs +3 -3
  182. package/dist/components/Navbar/Navbar.css +946 -694
  183. package/dist/components/Navbar/Navbar.mjs +3 -3
  184. package/dist/components/Navbar/Navbar.types.mjs +0 -0
  185. package/dist/components/Navbar/NavbarItem.css +946 -694
  186. package/dist/components/Navbar/NavbarItem.mjs +3 -3
  187. package/dist/components/Navbar/NavbarItem.types.mjs +0 -0
  188. package/dist/components/Navbar/index.css +946 -694
  189. package/dist/components/Navbar/index.mjs +6 -6
  190. package/dist/components/NumberInput/NumberInput.css +946 -694
  191. package/dist/components/NumberInput/NumberInput.mjs +3 -3
  192. package/dist/components/NumberInput/NumberInput.types.mjs +0 -0
  193. package/dist/components/NumberInput/index.css +946 -694
  194. package/dist/components/NumberInput/index.mjs +3 -3
  195. package/dist/components/Pagination/Pagination.css +946 -694
  196. package/dist/components/Pagination/Pagination.mjs +3 -3
  197. package/dist/components/Pagination/Pagination.types.mjs +0 -0
  198. package/dist/components/Pagination/index.css +946 -694
  199. package/dist/components/Pagination/index.mjs +3 -3
  200. package/dist/components/Popover/Popover.css +946 -694
  201. package/dist/components/Popover/Popover.mjs +3 -3
  202. package/dist/components/Popover/Popover.types.mjs +0 -0
  203. package/dist/components/Popover/index.css +946 -694
  204. package/dist/components/Popover/index.mjs +3 -3
  205. package/dist/components/Progress/Progress.css +946 -694
  206. package/dist/components/Progress/Progress.mjs +3 -3
  207. package/dist/components/Progress/Progress.types.mjs +0 -0
  208. package/dist/components/Progress/index.css +946 -694
  209. package/dist/components/Progress/index.mjs +3 -3
  210. package/dist/components/Radio/Radio.css +946 -694
  211. package/dist/components/Radio/Radio.mjs +3 -3
  212. package/dist/components/Radio/Radio.types.mjs +0 -0
  213. package/dist/components/Radio/index.css +946 -694
  214. package/dist/components/Radio/index.mjs +3 -3
  215. package/dist/components/ScrollArea/ScrollArea.css +946 -694
  216. package/dist/components/ScrollArea/ScrollArea.mjs +3 -3
  217. package/dist/components/ScrollArea/ScrollArea.types.mjs +0 -0
  218. package/dist/components/ScrollArea/index.css +946 -694
  219. package/dist/components/ScrollArea/index.mjs +3 -3
  220. package/dist/components/Select/Select.css +946 -694
  221. package/dist/components/Select/Select.mjs +3 -3
  222. package/dist/components/Select/Select.types.mjs +0 -0
  223. package/dist/components/Select/index.css +946 -694
  224. package/dist/components/Select/index.mjs +3 -3
  225. package/dist/components/Separator/Separator.css +946 -694
  226. package/dist/components/Separator/Separator.mjs +3 -3
  227. package/dist/components/Separator/Separator.types.mjs +0 -0
  228. package/dist/components/Separator/index.css +946 -694
  229. package/dist/components/Separator/index.mjs +3 -3
  230. package/dist/components/Skeleton/Skeleton.css +946 -694
  231. package/dist/components/Skeleton/Skeleton.mjs +3 -3
  232. package/dist/components/Skeleton/Skeleton.types.mjs +0 -0
  233. package/dist/components/Skeleton/index.css +946 -694
  234. package/dist/components/Skeleton/index.mjs +3 -3
  235. package/dist/components/Spinner/Spinner.css +946 -694
  236. package/dist/components/Spinner/Spinner.mjs +3 -3
  237. package/dist/components/Spinner/Spinner.types.mjs +0 -0
  238. package/dist/components/Spinner/index.css +946 -694
  239. package/dist/components/Spinner/index.mjs +3 -3
  240. package/dist/components/Stack/Stack.css +946 -694
  241. package/dist/components/Stack/Stack.mjs +3 -3
  242. package/dist/components/Stack/Stack.types.mjs +0 -0
  243. package/dist/components/Stack/index.css +946 -694
  244. package/dist/components/Stack/index.mjs +3 -3
  245. package/dist/components/Stepper/Stepper.css +946 -694
  246. package/dist/components/Stepper/Stepper.mjs +3 -3
  247. package/dist/components/Stepper/Stepper.types.mjs +0 -0
  248. package/dist/components/Stepper/index.css +946 -694
  249. package/dist/components/Stepper/index.mjs +3 -3
  250. package/dist/components/Table/Table.css +946 -694
  251. package/dist/components/Table/Table.mjs +3 -3
  252. package/dist/components/Table/Table.types.mjs +0 -0
  253. package/dist/components/Table/index.css +946 -694
  254. package/dist/components/Table/index.mjs +3 -3
  255. package/dist/components/Tabs/Tabs.css +946 -694
  256. package/dist/components/Tabs/Tabs.mjs +3 -3
  257. package/dist/components/Tabs/Tabs.types.mjs +0 -0
  258. package/dist/components/Tabs/index.css +946 -694
  259. package/dist/components/Tabs/index.mjs +3 -3
  260. package/dist/components/Tag/Tag.css +946 -694
  261. package/dist/components/Tag/Tag.mjs +3 -3
  262. package/dist/components/Tag/Tag.types.mjs +0 -0
  263. package/dist/components/Tag/index.css +946 -694
  264. package/dist/components/Tag/index.mjs +3 -3
  265. package/dist/components/Text/Header.css +946 -694
  266. package/dist/components/Text/Header.mjs +3 -3
  267. package/dist/components/Text/P.css +946 -694
  268. package/dist/components/Text/P.mjs +3 -3
  269. package/dist/components/Text/Text.types.mjs +0 -0
  270. package/dist/components/Text/index.css +946 -694
  271. package/dist/components/Text/index.mjs +4 -4
  272. package/dist/components/TextArea/TextArea.css +946 -694
  273. package/dist/components/TextArea/TextArea.mjs +3 -3
  274. package/dist/components/TextArea/TextArea.types.mjs +0 -0
  275. package/dist/components/TextArea/index.css +946 -694
  276. package/dist/components/TextArea/index.mjs +3 -3
  277. package/dist/components/Toast/Toast.css +946 -694
  278. package/dist/components/Toast/Toast.mjs +4 -4
  279. package/dist/components/Toast/Toast.types.mjs +0 -0
  280. package/dist/components/Toast/index.css +946 -694
  281. package/dist/components/Toast/index.mjs +4 -4
  282. package/dist/components/Toggle/Toggle.css +946 -694
  283. package/dist/components/Toggle/Toggle.mjs +3 -3
  284. package/dist/components/Toggle/Toggle.types.mjs +0 -0
  285. package/dist/components/Toggle/index.css +946 -694
  286. package/dist/components/Toggle/index.mjs +3 -3
  287. package/dist/components/Tooltip/Tooltip.css +946 -694
  288. package/dist/components/Tooltip/Tooltip.mjs +3 -3
  289. package/dist/components/Tooltip/Tooltip.types.mjs +0 -0
  290. package/dist/components/Tooltip/index.css +946 -694
  291. package/dist/components/Tooltip/index.mjs +3 -3
  292. package/dist/components/VisuallyHidden/VisuallyHidden.types.mjs +0 -0
  293. package/dist/components/index.css +946 -694
  294. package/dist/components/index.mjs +93 -93
  295. package/dist/index.core.mjs +93 -93
  296. package/dist/index.css +946 -694
  297. package/dist/styles/sprinkles.css +946 -694
  298. package/dist/styles/sprinkles.css.js +2 -2
  299. package/dist/styles/theme.css +946 -694
  300. package/package.json +1 -1
  301. package/src/components/Accordion/Accordion.tsx +7 -22
  302. package/src/components/Accordion/Accordion.types.ts +21 -0
  303. package/src/components/Accordion/index.ts +2 -1
  304. package/src/components/Alert/Alert.tsx +1 -9
  305. package/src/components/Alert/Alert.types.ts +12 -0
  306. package/src/components/AspectRatio/AspectRatio.tsx +2 -8
  307. package/src/components/AspectRatio/AspectRatio.types.ts +9 -0
  308. package/src/components/Avatar/Avatar.tsx +1 -10
  309. package/src/components/Avatar/Avatar.types.ts +13 -0
  310. package/src/components/Badge/Badge.tsx +1 -13
  311. package/src/components/Badge/Badge.types.ts +13 -0
  312. package/src/components/Box/Box.tsx +2 -8
  313. package/src/components/Box/Box.types.ts +9 -0
  314. package/src/components/Breadcrumb/Breadcrumb.stories.tsx +0 -2
  315. package/src/components/Breadcrumb/Breadcrumb.tsx +1 -14
  316. package/src/components/Breadcrumb/Breadcrumb.types.ts +14 -0
  317. package/src/components/Button/Button.tsx +1 -9
  318. package/src/components/Button/Button.types.ts +12 -0
  319. package/src/components/Card/Card.tsx +1 -8
  320. package/src/components/Card/Card.types.ts +12 -0
  321. package/src/components/Checkbox/Checkbox.tsx +1 -7
  322. package/src/components/Checkbox/Checkbox.types.ts +8 -0
  323. package/src/components/Collapse/Collapse.stories.tsx +0 -2
  324. package/src/components/Collapse/Collapse.tsx +2 -14
  325. package/src/components/Collapse/Collapse.types.ts +13 -0
  326. package/src/components/Collapse/styles.css.ts +1 -2
  327. package/src/components/Combobox/Combobox.stories.tsx +1 -1
  328. package/src/components/Combobox/Combobox.tsx +2 -28
  329. package/src/components/Combobox/Combobox.types.ts +28 -0
  330. package/src/components/Combobox/styles.css.ts +1 -1
  331. package/src/components/Container/Container.tsx +1 -11
  332. package/src/components/Container/Container.types.ts +12 -0
  333. package/src/components/Divider/Divider.tsx +1 -11
  334. package/src/components/Divider/Divider.types.ts +11 -0
  335. package/src/components/Drawer/Drawer.tsx +1 -18
  336. package/src/components/Drawer/Drawer.types.ts +19 -0
  337. package/src/components/Drawer/styles.css.ts +1 -1
  338. package/src/components/DropdownMenu/DropdownMenu.tsx +5 -30
  339. package/src/components/DropdownMenu/DropdownMenu.types.ts +31 -0
  340. package/src/components/DropdownMenu/styles.css.ts +1 -1
  341. package/src/components/EmptyState/EmptyState.tsx +1 -9
  342. package/src/components/EmptyState/EmptyState.types.ts +10 -0
  343. package/src/components/EmptyState/styles.css.ts +1 -1
  344. package/src/components/FileUpload/FileUpload.stories.tsx +1 -1
  345. package/src/components/FileUpload/FileUpload.tsx +2 -30
  346. package/src/components/FileUpload/FileUpload.types.ts +31 -0
  347. package/src/components/FileUpload/styles.css.ts +1 -1
  348. package/src/components/Form/Form.stories.tsx +0 -4
  349. package/src/components/Form/Form.tsx +1 -6
  350. package/src/components/Form/Form.types.ts +7 -0
  351. package/src/components/Form/FormInput.tsx +1 -3
  352. package/src/components/Form/FormInput.types.ts +4 -0
  353. package/src/components/Grid/Grid.tsx +1 -12
  354. package/src/components/Grid/Grid.types.ts +13 -0
  355. package/src/components/Icon/Icon.tsx +1 -8
  356. package/src/components/Icon/Icon.types.ts +9 -0
  357. package/src/components/Icon/styles.css.ts +1 -1
  358. package/src/components/Input/Input.stories.tsx +0 -3
  359. package/src/components/Input/Input.tsx +1 -7
  360. package/src/components/Input/Input.types.ts +8 -0
  361. package/src/components/Input/index.ts +1 -0
  362. package/src/components/Kbd/Kbd.tsx +1 -6
  363. package/src/components/Kbd/Kbd.types.ts +7 -0
  364. package/src/components/Kbd/styles.css.ts +1 -1
  365. package/src/components/List/List.tsx +2 -5
  366. package/src/components/List/List.types.ts +6 -0
  367. package/src/components/List/ListItem.tsx +2 -5
  368. package/src/components/List/ListItem.types.ts +6 -0
  369. package/src/components/Modal/Modal.tsx +1 -15
  370. package/src/components/Modal/Modal.types.ts +16 -0
  371. package/src/components/Navbar/Navbar.stories.tsx +0 -3
  372. package/src/components/Navbar/Navbar.tsx +1 -5
  373. package/src/components/Navbar/Navbar.types.ts +6 -0
  374. package/src/components/Navbar/NavbarItem.tsx +1 -5
  375. package/src/components/Navbar/NavbarItem.types.ts +6 -0
  376. package/src/components/NumberInput/NumberInput.stories.tsx +1 -1
  377. package/src/components/NumberInput/NumberInput.tsx +1 -24
  378. package/src/components/NumberInput/NumberInput.types.ts +25 -0
  379. package/src/components/NumberInput/styles.css.ts +1 -1
  380. package/src/components/Pagination/Pagination.stories.tsx +0 -2
  381. package/src/components/Pagination/Pagination.tsx +1 -11
  382. package/src/components/Pagination/Pagination.types.ts +12 -0
  383. package/src/components/Popover/Popover.stories.tsx +0 -2
  384. package/src/components/Popover/Popover.tsx +1 -27
  385. package/src/components/Popover/Popover.types.ts +28 -0
  386. package/src/components/Popover/styles.css.ts +1 -1
  387. package/src/components/Progress/Progress.stories.tsx +0 -2
  388. package/src/components/Progress/Progress.tsx +1 -10
  389. package/src/components/Progress/Progress.types.ts +13 -0
  390. package/src/components/Radio/Radio.tsx +5 -25
  391. package/src/components/Radio/Radio.types.ts +28 -0
  392. package/src/components/ScrollArea/ScrollArea.tsx +1 -11
  393. package/src/components/ScrollArea/ScrollArea.types.ts +12 -0
  394. package/src/components/ScrollArea/styles.css.ts +1 -1
  395. package/src/components/Select/Select.stories.tsx +0 -2
  396. package/src/components/Select/Select.tsx +2 -16
  397. package/src/components/Select/Select.types.ts +16 -0
  398. package/src/components/Select/styles.css.ts +1 -1
  399. package/src/components/Separator/Separator.tsx +1 -9
  400. package/src/components/Separator/Separator.types.ts +10 -0
  401. package/src/components/Separator/styles.css.ts +1 -1
  402. package/src/components/Skeleton/Skeleton.tsx +1 -15
  403. package/src/components/Skeleton/Skeleton.types.ts +16 -0
  404. package/src/components/Skeleton/styles.css.ts +1 -1
  405. package/src/components/Spinner/Spinner.tsx +1 -17
  406. package/src/components/Spinner/Spinner.types.ts +18 -0
  407. package/src/components/Stack/Stack.tsx +1 -21
  408. package/src/components/Stack/Stack.types.ts +23 -0
  409. package/src/components/Stepper/Stepper.stories.tsx +1 -1
  410. package/src/components/Stepper/Stepper.tsx +1 -20
  411. package/src/components/Stepper/Stepper.types.ts +21 -0
  412. package/src/components/Stepper/styles.css.ts +1 -1
  413. package/src/components/Table/Table.tsx +9 -40
  414. package/src/components/Table/Table.types.ts +40 -0
  415. package/src/components/Tabs/Tabs.tsx +7 -33
  416. package/src/components/Tabs/Tabs.types.ts +36 -0
  417. package/src/components/Tag/Tag.tsx +1 -14
  418. package/src/components/Tag/Tag.types.ts +17 -0
  419. package/src/components/Text/Header.tsx +1 -7
  420. package/src/components/Text/P.stories.tsx +0 -2
  421. package/src/components/Text/P.tsx +1 -6
  422. package/src/components/Text/Text.types.ts +15 -0
  423. package/src/components/TextArea/TextArea.stories.tsx +0 -2
  424. package/src/components/TextArea/TextArea.tsx +1 -7
  425. package/src/components/TextArea/TextArea.types.ts +8 -0
  426. package/src/components/Toast/Toast.tsx +13 -59
  427. package/src/components/Toast/Toast.types.ts +58 -0
  428. package/src/components/Toggle/Toggle.tsx +1 -14
  429. package/src/components/Toggle/Toggle.types.ts +15 -0
  430. package/src/components/Tooltip/Tooltip.tsx +1 -11
  431. package/src/components/Tooltip/Tooltip.types.ts +12 -0
  432. package/src/components/VisuallyHidden/VisuallyHidden.tsx +1 -6
  433. package/src/components/VisuallyHidden/VisuallyHidden.types.ts +7 -0
  434. package/src/components/VisuallyHidden/styles.css.ts +1 -1
  435. package/src/components/index.ts +96 -21
  436. package/src/styles/sprinkles.css.ts +5 -3
  437. package/dist/chunk-MHS3C6GX.mjs +0 -93
  438. /package/dist/{chunk-Q4OIJ7H7.mjs → chunk-6TV4TMYT.mjs} +0 -0
@@ -7,17 +7,7 @@ import {
7
7
  ellipsis,
8
8
  } from './styles.css';
9
9
  import Box from '../Box';
10
- import { Sprinkles } from '../../styles/sprinkles.css';
11
-
12
- export type PaginationProps = React.HTMLAttributes<HTMLDivElement> &
13
- Sprinkles & {
14
- currentPage: number;
15
- totalPages: number;
16
- onPageChange: (page: number) => void;
17
- siblingCount?: number;
18
- showFirstLast?: boolean;
19
- showPrevNext?: boolean;
20
- };
10
+ import { type PaginationProps } from './Pagination.types';
21
11
 
22
12
  const Pagination = ({
23
13
  currentPage,
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { Sprinkles } from '../../styles/sprinkles.css';
3
+
4
+ export type PaginationProps = React.HTMLAttributes<HTMLDivElement> &
5
+ Sprinkles & {
6
+ currentPage: number;
7
+ totalPages: number;
8
+ onPageChange: (page: number) => void;
9
+ siblingCount?: number;
10
+ showFirstLast?: boolean;
11
+ showPrevNext?: boolean;
12
+ };
@@ -1,6 +1,4 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { fn } from 'storybook/test';
3
- import React from 'react';
4
2
  import { Popover } from '.';
5
3
  import { Button } from '../Button';
6
4
 
@@ -14,33 +14,7 @@ import {
14
14
  popoverFooter,
15
15
  } from './styles.css';
16
16
  import Box from '../Box';
17
- import { Sprinkles } from '../../styles/sprinkles.css';
18
-
19
- export type PopoverPosition =
20
- | 'top'
21
- | 'bottom'
22
- | 'left'
23
- | 'right'
24
- | 'topLeft'
25
- | 'topRight'
26
- | 'bottomLeft'
27
- | 'bottomRight';
28
- export type PopoverTriggerType = 'click' | 'hover';
29
-
30
- export type PopoverProps = React.HTMLAttributes<HTMLDivElement> &
31
- Sprinkles & {
32
- trigger: React.ReactNode;
33
- children: React.ReactNode;
34
- position?: PopoverPosition;
35
- title?: string;
36
- footer?: React.ReactNode;
37
- showArrow?: boolean;
38
- triggerType?: PopoverTriggerType;
39
- closeOnClickOutside?: boolean;
40
- closeOnEscape?: boolean;
41
- defaultOpen?: boolean;
42
- onOpenChange?: (isOpen: boolean) => void;
43
- };
17
+ import { type PopoverProps } from './Popover.types';
44
18
 
45
19
  const Popover = ({
46
20
  trigger,
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { Sprinkles } from '../../styles/sprinkles.css';
3
+
4
+ export type PopoverPosition =
5
+ | 'top'
6
+ | 'bottom'
7
+ | 'left'
8
+ | 'right'
9
+ | 'topLeft'
10
+ | 'topRight'
11
+ | 'bottomLeft'
12
+ | 'bottomRight';
13
+ export type PopoverTriggerType = 'click' | 'hover';
14
+
15
+ export type PopoverProps = React.HTMLAttributes<HTMLDivElement> &
16
+ Sprinkles & {
17
+ trigger: React.ReactNode;
18
+ children: React.ReactNode;
19
+ position?: PopoverPosition;
20
+ title?: string;
21
+ footer?: React.ReactNode;
22
+ showArrow?: boolean;
23
+ triggerType?: PopoverTriggerType;
24
+ closeOnClickOutside?: boolean;
25
+ closeOnEscape?: boolean;
26
+ defaultOpen?: boolean;
27
+ onOpenChange?: (isOpen: boolean) => void;
28
+ };
@@ -1,4 +1,4 @@
1
- import { style, styleVariants, keyframes } from '@vanilla-extract/css';
1
+ import { styleVariants, keyframes } from '@vanilla-extract/css';
2
2
  import { vars } from '../../styles/theme.css';
3
3
  import { styleWithLayer } from '../../styles/utils';
4
4
 
@@ -1,8 +1,6 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
 
3
3
  import { Progress } from '.';
4
- import React from 'react';
5
-
6
4
  const meta = {
7
5
  title: 'Components/Progress',
8
6
  component: Progress,
@@ -7,16 +7,7 @@ import {
7
7
  progressLabel,
8
8
  } from './styles.css';
9
9
  import Box from '../Box';
10
- import { Sprinkles } from '../../styles/sprinkles.css';
11
-
12
- type ProgressProps = React.HTMLAttributes<HTMLDivElement> &
13
- Sprinkles & {
14
- value: number;
15
- max?: number;
16
- label?: string;
17
- showPercentage?: boolean;
18
- variant?: 'default' | 'success' | 'warning' | 'error';
19
- };
10
+ import { type ProgressProps } from './Progress.types';
20
11
 
21
12
  const Progress = ({
22
13
  value,
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { Sprinkles } from '../../styles/sprinkles.css';
3
+
4
+ export type ProgressVariant = 'default' | 'success' | 'warning' | 'error';
5
+
6
+ export type ProgressProps = React.HTMLAttributes<HTMLDivElement> &
7
+ Sprinkles & {
8
+ value: number;
9
+ max?: number;
10
+ label?: string;
11
+ showPercentage?: boolean;
12
+ variant?: ProgressVariant;
13
+ };
@@ -8,25 +8,14 @@ import {
8
8
  radioGroupHorizontal,
9
9
  } from './styles.css';
10
10
  import Box from '../Box';
11
- import { Sprinkles } from '../../styles/sprinkles.css';
12
-
13
- type RadioContextType = {
14
- name?: string;
15
- value?: string;
16
- onChange?: (value: string) => void;
17
- };
11
+ import {
12
+ type RadioProps,
13
+ type RadioGroupProps,
14
+ type RadioContextType,
15
+ } from './Radio.types';
18
16
 
19
17
  const RadioContext = createContext<RadioContextType>({});
20
18
 
21
- type RadioProps = Omit<
22
- React.InputHTMLAttributes<HTMLInputElement>,
23
- 'type' | 'value' | 'onChange'
24
- > &
25
- Sprinkles & {
26
- label?: string;
27
- value: string;
28
- };
29
-
30
19
  const Radio = forwardRef<HTMLInputElement, RadioProps>(
31
20
  ({ label, className, value, ...props }, ref) => {
32
21
  const context = useContext(RadioContext);
@@ -72,15 +61,6 @@ const Radio = forwardRef<HTMLInputElement, RadioProps>(
72
61
 
73
62
  Radio.displayName = 'Radio';
74
63
 
75
- type RadioGroupProps = {
76
- children: React.ReactNode;
77
- name: string;
78
- value?: string;
79
- onChange?: (value: string) => void;
80
- layout?: 'vertical' | 'horizontal';
81
- className?: string;
82
- };
83
-
84
64
  const RadioGroup = ({
85
65
  children,
86
66
  name,
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { Sprinkles } from '../../styles/sprinkles.css';
3
+
4
+ export type RadioLayout = 'vertical' | 'horizontal';
5
+
6
+ export type RadioContextType = {
7
+ name?: string;
8
+ value?: string;
9
+ onChange?: (value: string) => void;
10
+ };
11
+
12
+ export type RadioProps = Omit<
13
+ React.InputHTMLAttributes<HTMLInputElement>,
14
+ 'type' | 'value' | 'onChange'
15
+ > &
16
+ Sprinkles & {
17
+ label?: string;
18
+ value: string;
19
+ };
20
+
21
+ export type RadioGroupProps = {
22
+ children: React.ReactNode;
23
+ name: string;
24
+ value?: string;
25
+ onChange?: (value: string) => void;
26
+ layout?: RadioLayout;
27
+ className?: string;
28
+ };
@@ -6,17 +6,7 @@ import {
6
6
  scrollAreaViewport,
7
7
  } from './styles.css';
8
8
  import Box from '../Box';
9
- import { Sprinkles } from '../../styles/sprinkles.css';
10
-
11
- export type ScrollAreaOrientation = 'vertical' | 'horizontal' | 'both';
12
-
13
- export type ScrollAreaProps = React.HTMLAttributes<HTMLDivElement> &
14
- Sprinkles & {
15
- children: React.ReactNode;
16
- orientation?: ScrollAreaOrientation;
17
- maxHeight?: string | number;
18
- maxWidth?: string | number;
19
- };
9
+ import { type ScrollAreaProps } from './ScrollArea.types';
20
10
 
21
11
  const ScrollArea = ({
22
12
  children,
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { Sprinkles } from '../../styles/sprinkles.css';
3
+
4
+ export type ScrollAreaOrientation = 'vertical' | 'horizontal' | 'both';
5
+
6
+ export type ScrollAreaProps = React.HTMLAttributes<HTMLDivElement> &
7
+ Sprinkles & {
8
+ children: React.ReactNode;
9
+ orientation?: ScrollAreaOrientation;
10
+ maxHeight?: string | number;
11
+ maxWidth?: string | number;
12
+ };
@@ -1,4 +1,4 @@
1
- import { style, styleVariants } from '@vanilla-extract/css';
1
+ import { styleVariants } from '@vanilla-extract/css';
2
2
  import { vars } from '../../styles/theme.css';
3
3
  import { styleWithLayer } from '../../styles/utils';
4
4
 
@@ -2,8 +2,6 @@ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { fn } from 'storybook/test';
3
3
 
4
4
  import { Select } from '.';
5
- import React from 'react';
6
-
7
5
  const meta = {
8
6
  title: 'Components/Select',
9
7
  component: Select,
@@ -1,22 +1,8 @@
1
1
  import clsx from 'clsx';
2
- import React, { forwardRef } from 'react';
2
+ import { forwardRef } from 'react';
3
3
  import { select, selectLabel, selectWrapper } from './styles.css';
4
4
  import Box from '../Box';
5
- import { Sprinkles } from '../../styles/sprinkles.css';
6
-
7
- type SelectOption = {
8
- value: string;
9
- label: string;
10
- disabled?: boolean;
11
- };
12
-
13
- type SelectProps = Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'size'> &
14
- Sprinkles & {
15
- label?: string;
16
- options: SelectOption[];
17
- error?: boolean;
18
- fullWidth?: boolean;
19
- };
5
+ import { type SelectProps } from './Select.types';
20
6
 
21
7
  const Select = forwardRef<HTMLSelectElement, SelectProps>(
22
8
  (
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { Sprinkles } from '../../styles/sprinkles.css';
3
+
4
+ export type SelectOption = {
5
+ value: string;
6
+ label: string;
7
+ disabled?: boolean;
8
+ };
9
+
10
+ export type SelectProps = Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'size'> &
11
+ Sprinkles & {
12
+ label?: string;
13
+ options: SelectOption[];
14
+ error?: boolean;
15
+ fullWidth?: boolean;
16
+ };
@@ -1,4 +1,4 @@
1
- import { style, styleVariants } from '@vanilla-extract/css';
1
+ import { styleVariants } from '@vanilla-extract/css';
2
2
  import { vars } from '../../styles/theme.css';
3
3
  import { styleWithLayer } from '../../styles/utils';
4
4
 
@@ -2,15 +2,7 @@ import clsx from 'clsx';
2
2
  import React from 'react';
3
3
  import { separator, separatorOrientation } from './styles.css';
4
4
  import Box from '../Box';
5
- import { Sprinkles } from '../../styles/sprinkles.css';
6
-
7
- export type SeparatorOrientation = 'horizontal' | 'vertical';
8
-
9
- export type SeparatorProps = React.HTMLAttributes<HTMLHRElement> &
10
- Sprinkles & {
11
- orientation?: SeparatorOrientation;
12
- decorative?: boolean;
13
- };
5
+ import { type SeparatorProps } from './Separator.types';
14
6
 
15
7
  const Separator = ({
16
8
  orientation = 'horizontal',
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Sprinkles } from '../../styles/sprinkles.css';
3
+
4
+ export type SeparatorOrientation = 'horizontal' | 'vertical';
5
+
6
+ export type SeparatorProps = React.HTMLAttributes<HTMLHRElement> &
7
+ Sprinkles & {
8
+ orientation?: SeparatorOrientation;
9
+ decorative?: boolean;
10
+ };
@@ -1,4 +1,4 @@
1
- import { style, styleVariants } from '@vanilla-extract/css';
1
+ import { styleVariants } from '@vanilla-extract/css';
2
2
  import { vars } from '../../styles/theme.css';
3
3
  import { styleWithLayer } from '../../styles/utils';
4
4
 
@@ -7,21 +7,7 @@ import {
7
7
  skeletonAnimation,
8
8
  } from './styles.css';
9
9
  import Box from '../Box';
10
- import { Sprinkles } from '../../styles/sprinkles.css';
11
-
12
- export type SkeletonVariant = 'text' | 'circle' | 'rectangle';
13
- export type SkeletonSize = 'small' | 'medium' | 'large';
14
- export type SkeletonAnimation = 'shimmer' | 'pulse' | 'none';
15
-
16
- export type SkeletonProps = React.HTMLAttributes<HTMLDivElement> &
17
- Sprinkles & {
18
- variant?: SkeletonVariant;
19
- size?: SkeletonSize;
20
- animation?: SkeletonAnimation;
21
- width?: string | number;
22
- height?: string | number;
23
- count?: number;
24
- };
10
+ import { type SkeletonProps } from './Skeleton.types';
25
11
 
26
12
  const Skeleton = ({
27
13
  variant = 'text',
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { Sprinkles } from '../../styles/sprinkles.css';
3
+
4
+ export type SkeletonVariant = 'text' | 'circle' | 'rectangle';
5
+ export type SkeletonSize = 'small' | 'medium' | 'large';
6
+ export type SkeletonAnimation = 'shimmer' | 'pulse' | 'none';
7
+
8
+ export type SkeletonProps = React.HTMLAttributes<HTMLDivElement> &
9
+ Sprinkles & {
10
+ variant?: SkeletonVariant;
11
+ size?: SkeletonSize;
12
+ animation?: SkeletonAnimation;
13
+ width?: string | number;
14
+ height?: string | number;
15
+ count?: number;
16
+ };
@@ -1,4 +1,4 @@
1
- import { style, styleVariants, keyframes } from '@vanilla-extract/css';
1
+ import { styleVariants, keyframes } from '@vanilla-extract/css';
2
2
  import { vars } from '../../styles/theme.css';
3
3
  import { styleWithLayer } from '../../styles/utils';
4
4
 
@@ -2,23 +2,7 @@ import clsx from 'clsx';
2
2
  import { spinner, spinnerColors, spinnerSizes } from './styles.css';
3
3
  import React from 'react';
4
4
  import Box from '../Box';
5
- import { Sprinkles } from '../../styles/sprinkles.css';
6
-
7
- export type SpinnerColor =
8
- | 'primary'
9
- | 'secondary'
10
- | 'success'
11
- | 'warning'
12
- | 'error'
13
- | 'info';
14
- export type SpinnerSize = 'small' | 'medium' | 'large';
15
-
16
- export type SpinnerProps = React.HTMLAttributes<HTMLDivElement> &
17
- Sprinkles & {
18
- color?: SpinnerColor;
19
- size?: SpinnerSize;
20
- role?: string;
21
- };
5
+ import { type SpinnerProps } from './Spinner.types';
22
6
 
23
7
  const Spinner = ({
24
8
  color = 'primary',
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { Sprinkles } from '../../styles/sprinkles.css';
3
+
4
+ export type SpinnerColor =
5
+ | 'primary'
6
+ | 'secondary'
7
+ | 'success'
8
+ | 'warning'
9
+ | 'error'
10
+ | 'info';
11
+ export type SpinnerSize = 'small' | 'medium' | 'large';
12
+
13
+ export type SpinnerProps = React.HTMLAttributes<HTMLDivElement> &
14
+ Sprinkles & {
15
+ color?: SpinnerColor;
16
+ size?: SpinnerSize;
17
+ role?: string;
18
+ };
@@ -1,26 +1,6 @@
1
1
  import React, { forwardRef } from 'react';
2
2
  import Box from '../Box';
3
- import { Sprinkles } from '../../styles/sprinkles.css';
4
-
5
- export type StackDirection = 'row' | 'column';
6
- export type StackAlign = 'start' | 'center' | 'end' | 'stretch';
7
- export type StackJustify =
8
- | 'start'
9
- | 'center'
10
- | 'end'
11
- | 'between'
12
- | 'around'
13
- | 'evenly';
14
-
15
- export type StackProps = React.HTMLAttributes<HTMLDivElement> &
16
- Sprinkles & {
17
- direction?: StackDirection;
18
- align?: StackAlign;
19
- justify?: StackJustify;
20
- gap?: 'none' | 'small' | 'medium' | 'large';
21
- wrap?: boolean;
22
- children?: React.ReactNode;
23
- };
3
+ import { type StackProps, type StackAlign, type StackJustify } from './Stack.types';
24
4
 
25
5
  const alignMap: Record<StackAlign, string> = {
26
6
  start: 'flex-start',
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { Sprinkles } from '../../styles/sprinkles.css';
3
+
4
+ export type StackDirection = 'row' | 'column';
5
+ export type StackAlign = 'start' | 'center' | 'end' | 'stretch';
6
+ export type StackJustify =
7
+ | 'start'
8
+ | 'center'
9
+ | 'end'
10
+ | 'between'
11
+ | 'around'
12
+ | 'evenly';
13
+ export type StackGap = 'none' | 'small' | 'medium' | 'large';
14
+
15
+ export type StackProps = React.HTMLAttributes<HTMLDivElement> &
16
+ Sprinkles & {
17
+ direction?: StackDirection;
18
+ align?: StackAlign;
19
+ justify?: StackJustify;
20
+ gap?: StackGap;
21
+ wrap?: boolean;
22
+ children?: React.ReactNode;
23
+ };
@@ -1,6 +1,6 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { fn } from 'storybook/test';
3
- import React from 'react';
3
+
4
4
  import { Stepper } from '.';
5
5
 
6
6
  const meta = {
@@ -17,26 +17,7 @@ import {
17
17
  stepConnectorVertical,
18
18
  } from './styles.css';
19
19
  import Box from '../Box';
20
- import { Sprinkles } from '../../styles/sprinkles.css';
21
-
22
- export type StepperOrientation = 'horizontal' | 'vertical';
23
- export type StepStatus = 'pending' | 'current' | 'completed';
24
-
25
- export interface Step {
26
- title: string;
27
- description?: string;
28
- status?: StepStatus;
29
- }
30
-
31
- export type StepperProps = React.HTMLAttributes<HTMLDivElement> &
32
- Sprinkles & {
33
- steps: Step[];
34
- currentStep?: number;
35
- orientation?: StepperOrientation;
36
- showConnectors?: boolean;
37
- onStepClick?: (stepIndex: number) => void;
38
- clickable?: boolean;
39
- };
20
+ import { type StepperProps, type StepStatus } from './Stepper.types';
40
21
 
41
22
  const Stepper = ({
42
23
  steps,
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { Sprinkles } from '../../styles/sprinkles.css';
3
+
4
+ export type StepperOrientation = 'horizontal' | 'vertical';
5
+ export type StepStatus = 'pending' | 'current' | 'completed';
6
+
7
+ export interface Step {
8
+ title: string;
9
+ description?: string;
10
+ status?: StepStatus;
11
+ }
12
+
13
+ export type StepperProps = React.HTMLAttributes<HTMLDivElement> &
14
+ Sprinkles & {
15
+ steps: Step[];
16
+ currentStep?: number;
17
+ orientation?: StepperOrientation;
18
+ showConnectors?: boolean;
19
+ onStepClick?: (stepIndex: number) => void;
20
+ clickable?: boolean;
21
+ };
@@ -1,4 +1,4 @@
1
- import { style, styleVariants } from '@vanilla-extract/css';
1
+ import { styleVariants } from '@vanilla-extract/css';
2
2
  import { vars } from '../../styles/theme.css';
3
3
  import { styleWithLayer } from '../../styles/utils';
4
4