@jordan-mace/chaser-design-system 1.2.8 → 1.2.9

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 (307) hide show
  1. package/dist/index.d.mts +1834 -0
  2. package/dist/index.mjs +4729 -0
  3. package/dist/styles/layers.css.d.mts +6 -0
  4. package/dist/styles/layers.css.mjs +7 -0
  5. package/dist/styles/reset.css.d.mts +1 -0
  6. package/dist/styles/reset.css.mjs +24 -0
  7. package/dist/styles/sprinkles.css.d.mts +246 -0
  8. package/dist/styles/sprinkles.css.mjs +200 -0
  9. package/dist/styles/theme.css.d.mts +41 -0
  10. package/dist/styles/theme.css.mjs +50 -0
  11. package/package.json +18 -9
  12. package/src/components/Box/reset.css.ts +2 -2
  13. package/src/index.ts +6 -1
  14. package/dist/components/Accordion/Accordion.d.ts +0 -15
  15. package/dist/components/Accordion/Accordion.js +0 -43
  16. package/dist/components/Accordion/index.d.ts +0 -1
  17. package/dist/components/Accordion/index.js +0 -1
  18. package/dist/components/Accordion/styles.css.d.ts +0 -7
  19. package/dist/components/Accordion/styles.css.js +0 -65
  20. package/dist/components/Alert/Alert.d.ts +0 -10
  21. package/dist/components/Alert/Alert.js +0 -8
  22. package/dist/components/Alert/index.d.ts +0 -1
  23. package/dist/components/Alert/index.js +0 -1
  24. package/dist/components/Alert/styles.css.d.ts +0 -4
  25. package/dist/components/Alert/styles.css.js +0 -54
  26. package/dist/components/AspectRatio/AspectRatio.d.ts +0 -9
  27. package/dist/components/AspectRatio/AspectRatio.js +0 -12
  28. package/dist/components/AspectRatio/index.d.ts +0 -2
  29. package/dist/components/AspectRatio/index.js +0 -1
  30. package/dist/components/Avatar/Avatar.d.ts +0 -11
  31. package/dist/components/Avatar/Avatar.js +0 -13
  32. package/dist/components/Avatar/index.d.ts +0 -1
  33. package/dist/components/Avatar/index.js +0 -1
  34. package/dist/components/Avatar/styles.css.d.ts +0 -4
  35. package/dist/components/Avatar/styles.css.js +0 -151
  36. package/dist/components/Badge/Badge.d.ts +0 -12
  37. package/dist/components/Badge/Badge.js +0 -8
  38. package/dist/components/Badge/index.d.ts +0 -2
  39. package/dist/components/Badge/index.js +0 -1
  40. package/dist/components/Badge/styles.css.d.ts +0 -5
  41. package/dist/components/Badge/styles.css.js +0 -77
  42. package/dist/components/Box/Box.d.ts +0 -11
  43. package/dist/components/Box/Box.js +0 -54
  44. package/dist/components/Box/index.d.ts +0 -2
  45. package/dist/components/Box/index.js +0 -1
  46. package/dist/components/Box/reset.css.d.ts +0 -1
  47. package/dist/components/Box/reset.css.js +0 -15
  48. package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -13
  49. package/dist/components/Breadcrumb/Breadcrumb.js +0 -8
  50. package/dist/components/Breadcrumb/index.d.ts +0 -1
  51. package/dist/components/Breadcrumb/index.js +0 -1
  52. package/dist/components/Breadcrumb/styles.css.d.ts +0 -6
  53. package/dist/components/Breadcrumb/styles.css.js +0 -50
  54. package/dist/components/Button/Button.d.ts +0 -10
  55. package/dist/components/Button/Button.js +0 -8
  56. package/dist/components/Button/index.d.ts +0 -1
  57. package/dist/components/Button/index.js +0 -1
  58. package/dist/components/Button/styles.css.d.ts +0 -2
  59. package/dist/components/Button/styles.css.js +0 -30
  60. package/dist/components/Card/Card.d.ts +0 -9
  61. package/dist/components/Card/Card.js +0 -8
  62. package/dist/components/Card/index.d.ts +0 -1
  63. package/dist/components/Card/index.js +0 -1
  64. package/dist/components/Card/styles.css.d.ts +0 -2
  65. package/dist/components/Card/styles.css.js +0 -25
  66. package/dist/components/Checkbox/Checkbox.d.ts +0 -151
  67. package/dist/components/Checkbox/Checkbox.js +0 -25
  68. package/dist/components/Checkbox/index.d.ts +0 -1
  69. package/dist/components/Checkbox/index.js +0 -1
  70. package/dist/components/Checkbox/styles.css.d.ts +0 -3
  71. package/dist/components/Checkbox/styles.css.js +0 -31
  72. package/dist/components/Collapse/Collapse.d.ts +0 -12
  73. package/dist/components/Collapse/Collapse.js +0 -56
  74. package/dist/components/Collapse/index.d.ts +0 -2
  75. package/dist/components/Collapse/index.js +0 -1
  76. package/dist/components/Collapse/styles.css.d.ts +0 -3
  77. package/dist/components/Collapse/styles.css.js +0 -36
  78. package/dist/components/Combobox/Combobox.d.ts +0 -24
  79. package/dist/components/Combobox/Combobox.js +0 -111
  80. package/dist/components/Combobox/index.d.ts +0 -2
  81. package/dist/components/Combobox/index.js +0 -1
  82. package/dist/components/Combobox/styles.css.d.ts +0 -13
  83. package/dist/components/Combobox/styles.css.js +0 -142
  84. package/dist/components/Container/Container.d.ts +0 -163
  85. package/dist/components/Container/Container.js +0 -21
  86. package/dist/components/Container/index.d.ts +0 -2
  87. package/dist/components/Container/index.js +0 -1
  88. package/dist/components/Divider/Divider.d.ts +0 -10
  89. package/dist/components/Divider/Divider.js +0 -10
  90. package/dist/components/Divider/index.d.ts +0 -2
  91. package/dist/components/Divider/index.js +0 -1
  92. package/dist/components/Divider/styles.css.d.ts +0 -4
  93. package/dist/components/Divider/styles.css.js +0 -41
  94. package/dist/components/Drawer/Drawer.d.ts +0 -18
  95. package/dist/components/Drawer/Drawer.js +0 -65
  96. package/dist/components/Drawer/index.d.ts +0 -2
  97. package/dist/components/Drawer/index.js +0 -1
  98. package/dist/components/Drawer/styles.css.d.ts +0 -8
  99. package/dist/components/Drawer/styles.css.js +0 -125
  100. package/dist/components/DropdownMenu/DropdownMenu.d.ts +0 -24
  101. package/dist/components/DropdownMenu/DropdownMenu.js +0 -46
  102. package/dist/components/DropdownMenu/index.d.ts +0 -2
  103. package/dist/components/DropdownMenu/index.js +0 -1
  104. package/dist/components/DropdownMenu/styles.css.d.ts +0 -9
  105. package/dist/components/DropdownMenu/styles.css.js +0 -93
  106. package/dist/components/EmptyState/EmptyState.d.ts +0 -10
  107. package/dist/components/EmptyState/EmptyState.js +0 -8
  108. package/dist/components/EmptyState/index.d.ts +0 -2
  109. package/dist/components/EmptyState/index.js +0 -1
  110. package/dist/components/EmptyState/styles.css.d.ts +0 -5
  111. package/dist/components/EmptyState/styles.css.js +0 -30
  112. package/dist/components/FileUpload/FileUpload.d.ts +0 -28
  113. package/dist/components/FileUpload/FileUpload.js +0 -106
  114. package/dist/components/FileUpload/index.d.ts +0 -2
  115. package/dist/components/FileUpload/index.js +0 -1
  116. package/dist/components/FileUpload/styles.css.d.ts +0 -19
  117. package/dist/components/FileUpload/styles.css.js +0 -145
  118. package/dist/components/Form/Form.d.ts +0 -7
  119. package/dist/components/Form/Form.js +0 -8
  120. package/dist/components/Form/FormInput.d.ts +0 -5
  121. package/dist/components/Form/FormInput.js +0 -9
  122. package/dist/components/Form/index.d.ts +0 -2
  123. package/dist/components/Form/index.js +0 -2
  124. package/dist/components/Form/styles.css.d.ts +0 -2
  125. package/dist/components/Form/styles.css.js +0 -11
  126. package/dist/components/Grid/Grid.d.ts +0 -162
  127. package/dist/components/Grid/Grid.js +0 -25
  128. package/dist/components/Grid/index.d.ts +0 -2
  129. package/dist/components/Grid/index.js +0 -1
  130. package/dist/components/Icon/Icon.d.ts +0 -12
  131. package/dist/components/Icon/Icon.js +0 -21
  132. package/dist/components/Icon/index.d.ts +0 -1
  133. package/dist/components/Icon/index.js +0 -1
  134. package/dist/components/Icon/styles.css.d.ts +0 -1
  135. package/dist/components/Icon/styles.css.js +0 -9
  136. package/dist/components/Input/Input.d.ts +0 -8
  137. package/dist/components/Input/Input.js +0 -9
  138. package/dist/components/Input/index.d.ts +0 -1
  139. package/dist/components/Input/index.js +0 -1
  140. package/dist/components/Input/styles.css.d.ts +0 -2
  141. package/dist/components/Input/styles.css.js +0 -8
  142. package/dist/components/Kbd/Kbd.d.ts +0 -7
  143. package/dist/components/Kbd/Kbd.js +0 -6
  144. package/dist/components/Kbd/index.d.ts +0 -2
  145. package/dist/components/Kbd/index.js +0 -1
  146. package/dist/components/Kbd/styles.css.d.ts +0 -1
  147. package/dist/components/Kbd/styles.css.js +0 -16
  148. package/dist/components/List/List.d.ts +0 -6
  149. package/dist/components/List/List.js +0 -7
  150. package/dist/components/List/ListItem.d.ts +0 -6
  151. package/dist/components/List/ListItem.js +0 -7
  152. package/dist/components/List/index.d.ts +0 -2
  153. package/dist/components/List/index.js +0 -2
  154. package/dist/components/List/styles.css.d.ts +0 -2
  155. package/dist/components/List/styles.css.js +0 -11
  156. package/dist/components/Modal/Modal.d.ts +0 -15
  157. package/dist/components/Modal/Modal.js +0 -35
  158. package/dist/components/Modal/index.d.ts +0 -2
  159. package/dist/components/Modal/index.js +0 -1
  160. package/dist/components/Modal/styles.css.d.ts +0 -7
  161. package/dist/components/Modal/styles.css.js +0 -92
  162. package/dist/components/Navbar/Navbar.d.ts +0 -7
  163. package/dist/components/Navbar/Navbar.js +0 -8
  164. package/dist/components/Navbar/NavbarItem.d.ts +0 -7
  165. package/dist/components/Navbar/NavbarItem.js +0 -8
  166. package/dist/components/Navbar/index.d.ts +0 -2
  167. package/dist/components/Navbar/index.js +0 -2
  168. package/dist/components/Navbar/styles.css.d.ts +0 -2
  169. package/dist/components/Navbar/styles.css.js +0 -3
  170. package/dist/components/NumberInput/NumberInput.d.ts +0 -21
  171. package/dist/components/NumberInput/NumberInput.js +0 -39
  172. package/dist/components/NumberInput/index.d.ts +0 -2
  173. package/dist/components/NumberInput/index.js +0 -1
  174. package/dist/components/NumberInput/styles.css.d.ts +0 -10
  175. package/dist/components/NumberInput/styles.css.js +0 -117
  176. package/dist/components/Pagination/Pagination.d.ts +0 -12
  177. package/dist/components/Pagination/Pagination.js +0 -50
  178. package/dist/components/Pagination/index.d.ts +0 -2
  179. package/dist/components/Pagination/index.js +0 -1
  180. package/dist/components/Pagination/styles.css.d.ts +0 -4
  181. package/dist/components/Pagination/styles.css.js +0 -44
  182. package/dist/components/Popover/Popover.d.ts +0 -19
  183. package/dist/components/Popover/Popover.js +0 -56
  184. package/dist/components/Popover/index.d.ts +0 -2
  185. package/dist/components/Popover/index.js +0 -1
  186. package/dist/components/Popover/styles.css.d.ts +0 -11
  187. package/dist/components/Popover/styles.css.js +0 -185
  188. package/dist/components/Progress/Progress.d.ts +0 -11
  189. package/dist/components/Progress/Progress.js +0 -9
  190. package/dist/components/Progress/index.d.ts +0 -1
  191. package/dist/components/Progress/index.js +0 -1
  192. package/dist/components/Progress/styles.css.d.ts +0 -4
  193. package/dist/components/Progress/styles.css.js +0 -71
  194. package/dist/components/Radio/Radio.d.ts +0 -161
  195. package/dist/components/Radio/Radio.js +0 -25
  196. package/dist/components/Radio/index.d.ts +0 -1
  197. package/dist/components/Radio/index.js +0 -1
  198. package/dist/components/Radio/styles.css.d.ts +0 -5
  199. package/dist/components/Radio/styles.css.js +0 -42
  200. package/dist/components/ScrollArea/ScrollArea.d.ts +0 -11
  201. package/dist/components/ScrollArea/ScrollArea.js +0 -12
  202. package/dist/components/ScrollArea/index.d.ts +0 -2
  203. package/dist/components/ScrollArea/index.js +0 -1
  204. package/dist/components/ScrollArea/styles.css.d.ts +0 -3
  205. package/dist/components/ScrollArea/styles.css.js +0 -25
  206. package/dist/components/Select/Select.d.ts +0 -158
  207. package/dist/components/Select/Select.js +0 -10
  208. package/dist/components/Select/index.d.ts +0 -1
  209. package/dist/components/Select/index.js +0 -1
  210. package/dist/components/Select/styles.css.d.ts +0 -4
  211. package/dist/components/Select/styles.css.js +0 -82
  212. package/dist/components/Separator/Separator.d.ts +0 -9
  213. package/dist/components/Separator/Separator.js +0 -8
  214. package/dist/components/Separator/index.d.ts +0 -2
  215. package/dist/components/Separator/index.js +0 -1
  216. package/dist/components/Separator/styles.css.d.ts +0 -4
  217. package/dist/components/Separator/styles.css.js +0 -28
  218. package/dist/components/Skeleton/Skeleton.d.ts +0 -15
  219. package/dist/components/Skeleton/Skeleton.js +0 -13
  220. package/dist/components/Skeleton/index.d.ts +0 -2
  221. package/dist/components/Skeleton/index.js +0 -1
  222. package/dist/components/Skeleton/styles.css.d.ts +0 -4
  223. package/dist/components/Skeleton/styles.css.js +0 -56
  224. package/dist/components/Spinner/Spinner.d.ts +0 -11
  225. package/dist/components/Spinner/Spinner.js +0 -8
  226. package/dist/components/Spinner/index.d.ts +0 -2
  227. package/dist/components/Spinner/index.js +0 -1
  228. package/dist/components/Spinner/styles.css.d.ts +0 -4
  229. package/dist/components/Spinner/styles.css.js +0 -55
  230. package/dist/components/Stack/Stack.d.ts +0 -167
  231. package/dist/components/Stack/Stack.js +0 -24
  232. package/dist/components/Stack/index.d.ts +0 -2
  233. package/dist/components/Stack/index.js +0 -1
  234. package/dist/components/Stepper/Stepper.d.ts +0 -19
  235. package/dist/components/Stepper/Stepper.js +0 -25
  236. package/dist/components/Stepper/index.d.ts +0 -2
  237. package/dist/components/Stepper/index.js +0 -1
  238. package/dist/components/Stepper/styles.css.d.ts +0 -14
  239. package/dist/components/Stepper/styles.css.js +0 -104
  240. package/dist/components/Table/Table.d.ts +0 -41
  241. package/dist/components/Table/Table.js +0 -39
  242. package/dist/components/Table/index.d.ts +0 -1
  243. package/dist/components/Table/index.js +0 -1
  244. package/dist/components/Table/styles.css.d.ts +0 -8
  245. package/dist/components/Table/styles.css.js +0 -49
  246. package/dist/components/Tabs/Tabs.d.ts +0 -29
  247. package/dist/components/Tabs/Tabs.js +0 -52
  248. package/dist/components/Tabs/index.d.ts +0 -1
  249. package/dist/components/Tabs/index.js +0 -1
  250. package/dist/components/Tabs/styles.css.d.ts +0 -6
  251. package/dist/components/Tabs/styles.css.js +0 -100
  252. package/dist/components/Tag/Tag.d.ts +0 -16
  253. package/dist/components/Tag/Tag.js +0 -18
  254. package/dist/components/Tag/index.d.ts +0 -1
  255. package/dist/components/Tag/index.js +0 -1
  256. package/dist/components/Tag/styles.css.d.ts +0 -3
  257. package/dist/components/Tag/styles.css.js +0 -93
  258. package/dist/components/Text/Header.d.ts +0 -8
  259. package/dist/components/Text/Header.js +0 -8
  260. package/dist/components/Text/P.d.ts +0 -7
  261. package/dist/components/Text/P.js +0 -8
  262. package/dist/components/Text/index.d.ts +0 -2
  263. package/dist/components/Text/index.js +0 -2
  264. package/dist/components/Text/styles.css.d.ts +0 -2
  265. package/dist/components/Text/styles.css.js +0 -13
  266. package/dist/components/TextArea/TextArea.d.ts +0 -8
  267. package/dist/components/TextArea/TextArea.js +0 -9
  268. package/dist/components/TextArea/index.d.ts +0 -2
  269. package/dist/components/TextArea/index.js +0 -1
  270. package/dist/components/TextArea/styles.css.d.ts +0 -2
  271. package/dist/components/TextArea/styles.css.js +0 -10
  272. package/dist/components/Toast/Toast.d.ts +0 -34
  273. package/dist/components/Toast/Toast.js +0 -177
  274. package/dist/components/Toast/index.d.ts +0 -1
  275. package/dist/components/Toast/index.js +0 -1
  276. package/dist/components/Toast/styles.css.d.ts +0 -21
  277. package/dist/components/Toast/styles.css.js +0 -192
  278. package/dist/components/Toggle/Toggle.d.ts +0 -11
  279. package/dist/components/Toggle/Toggle.js +0 -17
  280. package/dist/components/Toggle/index.d.ts +0 -2
  281. package/dist/components/Toggle/index.js +0 -1
  282. package/dist/components/Toggle/styles.css.d.ts +0 -12
  283. package/dist/components/Toggle/styles.css.js +0 -118
  284. package/dist/components/Tooltip/Tooltip.d.ts +0 -11
  285. package/dist/components/Tooltip/Tooltip.js +0 -16
  286. package/dist/components/Tooltip/index.d.ts +0 -2
  287. package/dist/components/Tooltip/index.js +0 -1
  288. package/dist/components/Tooltip/styles.css.d.ts +0 -8
  289. package/dist/components/Tooltip/styles.css.js +0 -86
  290. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +0 -8
  291. package/dist/components/VisuallyHidden/VisuallyHidden.js +0 -9
  292. package/dist/components/VisuallyHidden/index.d.ts +0 -2
  293. package/dist/components/VisuallyHidden/index.js +0 -1
  294. package/dist/components/VisuallyHidden/styles.css.d.ts +0 -1
  295. package/dist/components/VisuallyHidden/styles.css.js +0 -12
  296. package/dist/components/index.d.ts +0 -68
  297. package/dist/components/index.js +0 -47
  298. package/dist/index.d.ts +0 -1
  299. package/dist/index.js +0 -1
  300. package/dist/styles/layers.css.d.ts +0 -3
  301. package/dist/styles/layers.css.js +0 -3
  302. package/dist/styles/sprinkles.css.d.ts +0 -241
  303. package/dist/styles/sprinkles.css.js +0 -165
  304. package/dist/styles/theme.css.d.ts +0 -38
  305. package/dist/styles/theme.css.js +0 -51
  306. package/dist/styles/utils.d.ts +0 -2
  307. package/dist/styles/utils.js +0 -7
@@ -1,167 +0,0 @@
1
- import React from 'react';
2
- import { Sprinkles } from '../../styles/sprinkles.css';
3
- export type StackDirection = 'row' | 'column';
4
- export type StackAlign = 'start' | 'center' | 'end' | 'stretch';
5
- export type StackJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
6
- export type StackProps = React.HTMLAttributes<HTMLDivElement> & Sprinkles & {
7
- direction?: StackDirection;
8
- align?: StackAlign;
9
- justify?: StackJustify;
10
- gap?: 'none' | 'small' | 'medium' | 'large';
11
- wrap?: boolean;
12
- children?: React.ReactNode;
13
- };
14
- declare const Stack: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
15
- display?: ("flex" | "none" | "block" | "inline" | {
16
- mobile?: "flex" | "none" | "block" | "inline";
17
- tablet?: "flex" | "none" | "block" | "inline";
18
- desktop?: "flex" | "none" | "block" | "inline";
19
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "flex" | "none" | "block" | "inline">;
20
- width?: ("auto" | "100%" | "50%" | "25%" | {
21
- mobile?: "auto" | "100%" | "50%" | "25%";
22
- tablet?: "auto" | "100%" | "50%" | "25%";
23
- desktop?: "auto" | "100%" | "50%" | "25%";
24
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "100%" | "50%" | "25%">;
25
- height?: ("auto" | "100%" | "50%" | "25%" | {
26
- mobile?: "auto" | "100%" | "50%" | "25%";
27
- tablet?: "auto" | "100%" | "50%" | "25%";
28
- desktop?: "auto" | "100%" | "50%" | "25%";
29
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "100%" | "50%" | "25%">;
30
- flexDirection?: ("column" | "row" | {
31
- mobile?: "column" | "row";
32
- tablet?: "column" | "row";
33
- desktop?: "column" | "row";
34
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "column" | "row">;
35
- justifyContent?: ("space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start" | {
36
- mobile?: "space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start";
37
- tablet?: "space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start";
38
- desktop?: "space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start";
39
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start">;
40
- alignItems?: ("stretch" | "center" | "flex-end" | "flex-start" | {
41
- mobile?: "stretch" | "center" | "flex-end" | "flex-start";
42
- tablet?: "stretch" | "center" | "flex-end" | "flex-start";
43
- desktop?: "stretch" | "center" | "flex-end" | "flex-start";
44
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "stretch" | "center" | "flex-end" | "flex-start">;
45
- paddingTop?: ("auto" | "medium" | "none" | "large" | "small" | {
46
- mobile?: "auto" | "medium" | "none" | "large" | "small";
47
- tablet?: "auto" | "medium" | "none" | "large" | "small";
48
- desktop?: "auto" | "medium" | "none" | "large" | "small";
49
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
50
- paddingBottom?: ("auto" | "medium" | "none" | "large" | "small" | {
51
- mobile?: "auto" | "medium" | "none" | "large" | "small";
52
- tablet?: "auto" | "medium" | "none" | "large" | "small";
53
- desktop?: "auto" | "medium" | "none" | "large" | "small";
54
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
55
- paddingLeft?: ("auto" | "medium" | "none" | "large" | "small" | {
56
- mobile?: "auto" | "medium" | "none" | "large" | "small";
57
- tablet?: "auto" | "medium" | "none" | "large" | "small";
58
- desktop?: "auto" | "medium" | "none" | "large" | "small";
59
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
60
- paddingRight?: ("auto" | "medium" | "none" | "large" | "small" | {
61
- mobile?: "auto" | "medium" | "none" | "large" | "small";
62
- tablet?: "auto" | "medium" | "none" | "large" | "small";
63
- desktop?: "auto" | "medium" | "none" | "large" | "small";
64
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
65
- marginLeft?: ("auto" | "medium" | "none" | "large" | "small" | {
66
- mobile?: "auto" | "medium" | "none" | "large" | "small";
67
- tablet?: "auto" | "medium" | "none" | "large" | "small";
68
- desktop?: "auto" | "medium" | "none" | "large" | "small";
69
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
70
- marginRight?: ("auto" | "medium" | "none" | "large" | "small" | {
71
- mobile?: "auto" | "medium" | "none" | "large" | "small";
72
- tablet?: "auto" | "medium" | "none" | "large" | "small";
73
- desktop?: "auto" | "medium" | "none" | "large" | "small";
74
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
75
- marginTop?: ("auto" | "medium" | "none" | "large" | "small" | {
76
- mobile?: "auto" | "medium" | "none" | "large" | "small";
77
- tablet?: "auto" | "medium" | "none" | "large" | "small";
78
- desktop?: "auto" | "medium" | "none" | "large" | "small";
79
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
80
- marginBottom?: ("auto" | "medium" | "none" | "large" | "small" | {
81
- mobile?: "auto" | "medium" | "none" | "large" | "small";
82
- tablet?: "auto" | "medium" | "none" | "large" | "small";
83
- desktop?: "auto" | "medium" | "none" | "large" | "small";
84
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
85
- borderLeft?: ("auto" | "medium" | "none" | "large" | "small" | {
86
- mobile?: "auto" | "medium" | "none" | "large" | "small";
87
- tablet?: "auto" | "medium" | "none" | "large" | "small";
88
- desktop?: "auto" | "medium" | "none" | "large" | "small";
89
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
90
- borderRight?: ("auto" | "medium" | "none" | "large" | "small" | {
91
- mobile?: "auto" | "medium" | "none" | "large" | "small";
92
- tablet?: "auto" | "medium" | "none" | "large" | "small";
93
- desktop?: "auto" | "medium" | "none" | "large" | "small";
94
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
95
- borderTop?: ("auto" | "medium" | "none" | "large" | "small" | {
96
- mobile?: "auto" | "medium" | "none" | "large" | "small";
97
- tablet?: "auto" | "medium" | "none" | "large" | "small";
98
- desktop?: "auto" | "medium" | "none" | "large" | "small";
99
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
100
- borderBottom?: ("auto" | "medium" | "none" | "large" | "small" | {
101
- mobile?: "auto" | "medium" | "none" | "large" | "small";
102
- tablet?: "auto" | "medium" | "none" | "large" | "small";
103
- desktop?: "auto" | "medium" | "none" | "large" | "small";
104
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
105
- borderRadius?: ("auto" | "medium" | "none" | "large" | "small" | {
106
- mobile?: "auto" | "medium" | "none" | "large" | "small";
107
- tablet?: "auto" | "medium" | "none" | "large" | "small";
108
- desktop?: "auto" | "medium" | "none" | "large" | "small";
109
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
110
- gap?: ("auto" | "medium" | "none" | "large" | "small" | {
111
- mobile?: "auto" | "medium" | "none" | "large" | "small";
112
- tablet?: "auto" | "medium" | "none" | "large" | "small";
113
- desktop?: "auto" | "medium" | "none" | "large" | "small";
114
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
115
- padding?: ("auto" | "medium" | "none" | "large" | "small" | {
116
- mobile?: "auto" | "medium" | "none" | "large" | "small";
117
- tablet?: "auto" | "medium" | "none" | "large" | "small";
118
- desktop?: "auto" | "medium" | "none" | "large" | "small";
119
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
120
- border?: ("auto" | "medium" | "none" | "large" | "small" | {
121
- mobile?: "auto" | "medium" | "none" | "large" | "small";
122
- tablet?: "auto" | "medium" | "none" | "large" | "small";
123
- desktop?: "auto" | "medium" | "none" | "large" | "small";
124
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
125
- paddingX?: ("auto" | "medium" | "none" | "large" | "small" | {
126
- mobile?: "auto" | "medium" | "none" | "large" | "small";
127
- tablet?: "auto" | "medium" | "none" | "large" | "small";
128
- desktop?: "auto" | "medium" | "none" | "large" | "small";
129
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
130
- paddingY?: ("auto" | "medium" | "none" | "large" | "small" | {
131
- mobile?: "auto" | "medium" | "none" | "large" | "small";
132
- tablet?: "auto" | "medium" | "none" | "large" | "small";
133
- desktop?: "auto" | "medium" | "none" | "large" | "small";
134
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
135
- marginX?: ("auto" | "medium" | "none" | "large" | "small" | {
136
- mobile?: "auto" | "medium" | "none" | "large" | "small";
137
- tablet?: "auto" | "medium" | "none" | "large" | "small";
138
- desktop?: "auto" | "medium" | "none" | "large" | "small";
139
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
140
- marginY?: ("auto" | "medium" | "none" | "large" | "small" | {
141
- mobile?: "auto" | "medium" | "none" | "large" | "small";
142
- tablet?: "auto" | "medium" | "none" | "large" | "small";
143
- desktop?: "auto" | "medium" | "none" | "large" | "small";
144
- }) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
145
- placeItems?: import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "stretch" | "center" | "flex-end" | "flex-start"> | ("stretch" | "center" | "flex-end" | "flex-start" | {
146
- mobile?: "stretch" | "center" | "flex-end" | "flex-start";
147
- tablet?: "stretch" | "center" | "flex-end" | "flex-start";
148
- desktop?: "stretch" | "center" | "flex-end" | "flex-start";
149
- });
150
- } & {
151
- color?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900" | {
152
- lightMode?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900";
153
- darkMode?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900";
154
- };
155
- background?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900" | {
156
- lightMode?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900";
157
- darkMode?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900";
158
- };
159
- } & {
160
- direction?: StackDirection;
161
- align?: StackAlign;
162
- justify?: StackJustify;
163
- gap?: "none" | "small" | "medium" | "large";
164
- wrap?: boolean;
165
- children?: React.ReactNode;
166
- } & React.RefAttributes<HTMLElement>>;
167
- export default Stack;
@@ -1,24 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef } from 'react';
3
- import Box from '../Box';
4
- const alignMap = {
5
- start: 'flex-start',
6
- center: 'center',
7
- end: 'flex-end',
8
- stretch: 'stretch',
9
- };
10
- const justifyMap = {
11
- start: 'flex-start',
12
- center: 'center',
13
- end: 'flex-end',
14
- between: 'space-between',
15
- around: 'space-around',
16
- evenly: 'space-evenly',
17
- };
18
- const Stack = forwardRef(({ direction = 'column', align, justify, gap, wrap, children, className, style, ...rest }, ref) => {
19
- const alignItems = align ? alignMap[align] : undefined;
20
- const justifyContent = justify ? justifyMap[justify] : undefined;
21
- return (_jsx(Box, { ref: ref, display: "flex", flexDirection: direction, alignItems: alignItems, justifyContent: justifyContent, gap: gap, className: className, style: { flexWrap: wrap ? 'wrap' : undefined, ...style }, ...rest, children: children }));
22
- });
23
- Stack.displayName = 'Stack';
24
- export default Stack;
@@ -1,2 +0,0 @@
1
- export { default as Stack } from './Stack';
2
- export type { StackProps, StackDirection, StackAlign, StackJustify } from './Stack';
@@ -1 +0,0 @@
1
- export { default as Stack } from './Stack';
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { Sprinkles } from '../../styles/sprinkles.css';
3
- export type StepperOrientation = 'horizontal' | 'vertical';
4
- export type StepStatus = 'pending' | 'current' | 'completed';
5
- export interface Step {
6
- title: string;
7
- description?: string;
8
- status?: StepStatus;
9
- }
10
- export type StepperProps = React.HTMLAttributes<HTMLDivElement> & Sprinkles & {
11
- steps: Step[];
12
- currentStep?: number;
13
- orientation?: StepperOrientation;
14
- showConnectors?: boolean;
15
- onStepClick?: (stepIndex: number) => void;
16
- clickable?: boolean;
17
- };
18
- declare const Stepper: ({ steps, currentStep, orientation, showConnectors, onStepClick, clickable, className, ...props }: StepperProps) => import("react/jsx-runtime").JSX.Element;
19
- export default Stepper;
@@ -1,25 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import clsx from 'clsx';
3
- import { stepperContainer, stepperHorizontal, stepperVertical, step, stepVertical, stepIndicator, stepIndicatorVariants, stepContent, stepContentVertical, stepTitle, stepDescription, stepConnector, stepConnectorCompleted, stepConnectorVertical, } from './styles.css';
4
- import Box from '../Box';
5
- const Stepper = ({ steps, currentStep = 0, orientation = 'horizontal', showConnectors = true, onStepClick, clickable = false, className, ...props }) => {
6
- const getStepStatus = (index) => {
7
- if (index < currentStep)
8
- return 'completed';
9
- if (index === currentStep)
10
- return 'current';
11
- return 'pending';
12
- };
13
- const handleStepClick = (index) => {
14
- if (clickable && onStepClick) {
15
- onStepClick(index);
16
- }
17
- };
18
- return (_jsx(Box, { className: clsx(stepperContainer, orientation === 'horizontal' ? stepperHorizontal : stepperVertical, className), role: "list", "aria-label": "Step progress", ...props, children: steps.map((stepItem, index) => {
19
- const status = stepItem.status || getStepStatus(index);
20
- const isLast = index === steps.length - 1;
21
- const isCompleted = status === 'completed';
22
- return (_jsxs(Box, { className: clsx(step, orientation === 'vertical' && stepVertical), role: "listitem", "aria-current": status === 'current' ? 'step' : undefined, children: [showConnectors && !isLast && orientation === 'horizontal' && (_jsx(Box, { className: clsx(stepConnector, isCompleted && stepConnectorCompleted), "aria-hidden": "true" })), showConnectors && !isLast && orientation === 'vertical' && (_jsx(Box, { className: stepConnectorVertical, style: { backgroundColor: isCompleted ? undefined : undefined }, "aria-hidden": "true" })), _jsx(Box, { className: clsx(stepIndicator, stepIndicatorVariants[status]), onClick: () => handleStepClick(index), style: { cursor: clickable ? 'pointer' : 'default' }, "aria-label": `Step ${index + 1}: ${stepItem.title}`, children: status === 'completed' ? '✓' : index + 1 }), _jsxs(Box, { className: clsx(stepContent, orientation === 'vertical' && stepContentVertical), children: [_jsx(Box, { as: "h4", className: stepTitle, children: stepItem.title }), stepItem.description && (_jsx(Box, { as: "p", className: stepDescription, children: stepItem.description }))] })] }, index));
23
- }) }));
24
- };
25
- export default Stepper;
@@ -1,2 +0,0 @@
1
- export { default as Stepper } from './Stepper';
2
- export type { StepperProps, Step, StepperOrientation, StepStatus } from './Stepper';
@@ -1 +0,0 @@
1
- export { default as Stepper } from './Stepper';
@@ -1,14 +0,0 @@
1
- export declare const stepperContainer: string;
2
- export declare const stepperHorizontal: string;
3
- export declare const stepperVertical: string;
4
- export declare const step: string;
5
- export declare const stepVertical: string;
6
- export declare const stepIndicator: string;
7
- export declare const stepIndicatorVariants: Record<"current" | "pending" | "completed", string>;
8
- export declare const stepContent: string;
9
- export declare const stepContentVertical: string;
10
- export declare const stepTitle: string;
11
- export declare const stepDescription: string;
12
- export declare const stepConnector: string;
13
- export declare const stepConnectorCompleted: string;
14
- export declare const stepConnectorVertical: string;
@@ -1,104 +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 stepperContainer = styleWithLayer({
5
- display: 'flex',
6
- alignItems: 'flex-start',
7
- width: '100%',
8
- });
9
- export const stepperHorizontal = styleWithLayer({
10
- flexDirection: 'row',
11
- justifyContent: 'space-between',
12
- });
13
- export const stepperVertical = styleWithLayer({
14
- flexDirection: 'column',
15
- gap: '1rem',
16
- });
17
- export const step = styleWithLayer({
18
- display: 'flex',
19
- flexDirection: 'column',
20
- alignItems: 'center',
21
- position: 'relative',
22
- flex: 1,
23
- });
24
- export const stepVertical = styleWithLayer({
25
- flexDirection: 'row',
26
- alignItems: 'flex-start',
27
- gap: '1rem',
28
- });
29
- export const stepIndicator = styleWithLayer({
30
- width: '2.5rem',
31
- height: '2.5rem',
32
- borderRadius: '50%',
33
- display: 'flex',
34
- alignItems: 'center',
35
- justifyContent: 'center',
36
- fontWeight: '600',
37
- fontSize: '14px',
38
- transition: 'all 0.3s ease',
39
- zIndex: 1,
40
- });
41
- export const stepIndicatorVariants = styleVariants({
42
- pending: {
43
- backgroundColor: vars.colors.borderMuted,
44
- color: vars.colors.textSecondary,
45
- border: `2px solid ${vars.colors.borderMuted}`,
46
- },
47
- current: {
48
- backgroundColor: vars.colors.buttonBackgroundPrimary,
49
- color: vars.colors.buttonTextPrimary,
50
- border: `2px solid ${vars.colors.buttonBackgroundPrimary}`,
51
- boxShadow: `0 0 0 4px ${vars.colors.alertInfoBackground}`,
52
- },
53
- completed: {
54
- backgroundColor: vars.colors.alertSuccessBorder,
55
- color: vars.colors.buttonTextPrimary,
56
- border: `2px solid ${vars.colors.alertSuccessBorder}`,
57
- },
58
- });
59
- export const stepContent = styleWithLayer({
60
- display: 'flex',
61
- flexDirection: 'column',
62
- alignItems: 'center',
63
- marginTop: '0.5rem',
64
- textAlign: 'center',
65
- });
66
- export const stepContentVertical = styleWithLayer({
67
- alignItems: 'flex-start',
68
- marginTop: 0,
69
- textAlign: 'left',
70
- });
71
- export const stepTitle = styleWithLayer({
72
- fontFamily: vars.fontFamily.heading,
73
- fontSize: '14px',
74
- fontWeight: '600',
75
- color: vars.colors.textPrimary,
76
- margin: 0,
77
- });
78
- export const stepDescription = styleWithLayer({
79
- fontSize: '12px',
80
- color: vars.colors.textSecondary,
81
- marginTop: '0.25rem',
82
- maxWidth: '200px',
83
- });
84
- export const stepConnector = styleWithLayer({
85
- position: 'absolute',
86
- top: '1.25rem',
87
- left: 'calc(50% + 1.5rem)',
88
- right: 'calc(-50% + 1.5rem)',
89
- height: '2px',
90
- backgroundColor: vars.colors.borderMuted,
91
- zIndex: 0,
92
- });
93
- export const stepConnectorCompleted = styleWithLayer({
94
- backgroundColor: vars.colors.alertSuccessBorder,
95
- });
96
- export const stepConnectorVertical = styleWithLayer({
97
- position: 'absolute',
98
- top: '2.5rem',
99
- left: '1.25rem',
100
- width: '2px',
101
- height: 'calc(100% + 1rem)',
102
- backgroundColor: vars.colors.borderMuted,
103
- zIndex: 0,
104
- });
@@ -1,41 +0,0 @@
1
- import React from 'react';
2
- import { Sprinkles } from '../../styles/sprinkles.css';
3
- type TableProps = React.HTMLAttributes<HTMLTableElement> & Sprinkles & {
4
- children: React.ReactNode;
5
- striped?: boolean;
6
- };
7
- type TheadProps = {
8
- children: React.ReactNode;
9
- className?: string;
10
- };
11
- type TbodyProps = {
12
- children: React.ReactNode;
13
- className?: string;
14
- };
15
- type TfootProps = {
16
- children: React.ReactNode;
17
- className?: string;
18
- };
19
- type TrProps = {
20
- children: React.ReactNode;
21
- className?: string;
22
- };
23
- type ThProps = {
24
- children?: React.ReactNode;
25
- className?: string;
26
- };
27
- type TdProps = {
28
- children?: React.ReactNode;
29
- className?: string;
30
- colSpan?: number;
31
- rowSpan?: number;
32
- };
33
- declare const Table: (({ children, striped, className, ...props }: TableProps) => import("react/jsx-runtime").JSX.Element) & {
34
- Thead: ({ children, className }: TheadProps) => import("react/jsx-runtime").JSX.Element;
35
- Tbody: ({ children, className }: TbodyProps) => import("react/jsx-runtime").JSX.Element;
36
- Tfoot: ({ children, className }: TfootProps) => import("react/jsx-runtime").JSX.Element;
37
- Tr: ({ children, className }: TrProps) => import("react/jsx-runtime").JSX.Element;
38
- Th: ({ children, className }: ThProps) => import("react/jsx-runtime").JSX.Element;
39
- Td: ({ children, className, colSpan, rowSpan }: TdProps) => import("react/jsx-runtime").JSX.Element;
40
- };
41
- export default Table;
@@ -1,39 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import clsx from 'clsx';
3
- import { createContext, useContext } from 'react';
4
- import { table, thead, tbody, tfoot, tr, th, td, tableContainer, } from './styles.css';
5
- import Box from '../Box';
6
- // Context to pass striping info to rows
7
- const TableContext = createContext({});
8
- const TableComponent = ({ children, striped = false, className, ...props }) => {
9
- return (_jsx(TableContext.Provider, { value: { striped }, children: _jsx(Box, { className: clsx(tableContainer, className), width: "100%", children: _jsx(Box, { as: "table", className: clsx(table), ...props, children: children }) }) }));
10
- };
11
- const Thead = ({ children, className }) => {
12
- return (_jsx(Box, { as: "thead", className: clsx(thead, className), children: children }));
13
- };
14
- const Tbody = ({ children, className }) => {
15
- return (_jsx(Box, { as: "tbody", className: clsx(tbody, className), children: children }));
16
- };
17
- const Tfoot = ({ children, className }) => {
18
- return (_jsx(Box, { as: "tfoot", className: clsx(tfoot, className), children: children }));
19
- };
20
- const Tr = ({ children, className }) => {
21
- const { striped } = useContext(TableContext);
22
- return (_jsx(Box, { as: "tr", className: clsx(tr[striped ? 'striped' : 'default'], className), children: children }));
23
- };
24
- const Th = ({ children, className }) => {
25
- return (_jsx(Box, { as: "th", className: clsx(th, className), children: children }));
26
- };
27
- const Td = ({ children, className, colSpan, rowSpan }) => {
28
- return (_jsx(Box, { as: "td", className: clsx(td, className), colSpan: colSpan, rowSpan: rowSpan, children: children }));
29
- };
30
- // Attach sub-components
31
- const Table = Object.assign(TableComponent, {
32
- Thead,
33
- Tbody,
34
- Tfoot,
35
- Tr,
36
- Th,
37
- Td,
38
- });
39
- export default Table;
@@ -1 +0,0 @@
1
- export { default as Table } from './Table';
@@ -1 +0,0 @@
1
- export { default as Table } from './Table';
@@ -1,8 +0,0 @@
1
- export declare const table: string;
2
- export declare const thead: string;
3
- export declare const tbody: string;
4
- export declare const tfoot: string;
5
- export declare const tr: Record<"default" | "striped", string>;
6
- export declare const th: string;
7
- export declare const td: string;
8
- export declare const tableContainer: string;
@@ -1,49 +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 table = styleWithLayer({
5
- width: '100%',
6
- borderCollapse: 'collapse',
7
- borderSpacing: 0,
8
- fontFamily: vars.fontFamily.body,
9
- });
10
- export const thead = styleWithLayer({
11
- backgroundColor: vars.colors.backgroundDefault,
12
- borderBottom: `2px solid ${vars.colors.borderDefault}`,
13
- });
14
- export const tbody = styleWithLayer({
15
- backgroundColor: 'transparent',
16
- });
17
- export const tfoot = styleWithLayer({
18
- backgroundColor: vars.colors.backgroundMuted,
19
- borderTop: `2px solid ${vars.colors.borderDefault}`,
20
- fontWeight: 'bold',
21
- });
22
- export const tr = styleVariants({
23
- default: {
24
- borderBottom: `1px solid ${vars.colors.borderMuted}`,
25
- ':hover': {
26
- backgroundColor: vars.colors.backgroundMuted,
27
- },
28
- },
29
- striped: {
30
- borderBottom: `1px solid ${vars.colors.borderMuted}`,
31
- },
32
- });
33
- export const th = styleWithLayer({
34
- padding: '12px 16px',
35
- textAlign: 'left',
36
- fontWeight: '600',
37
- color: vars.colors.textPrimary,
38
- whiteSpace: 'nowrap',
39
- });
40
- export const td = styleWithLayer({
41
- padding: '12px 16px',
42
- color: vars.colors.textPrimary,
43
- borderBottom: `1px solid ${vars.colors.borderMuted}`,
44
- });
45
- export const tableContainer = styleWithLayer({
46
- overflowX: 'auto',
47
- border: `1px solid ${vars.colors.borderDefault}`,
48
- borderRadius: '8px',
49
- });
@@ -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';