@taiv/ui 1.12.0 → 1.14.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 (264) hide show
  1. package/dist/assets/assets.d.ts +5 -0
  2. package/dist/assets/assets.d.ts.map +1 -0
  3. package/dist/assets/assets.js +18 -0
  4. package/dist/assets/icons.d.ts +12 -0
  5. package/dist/assets/icons.d.ts.map +1 -0
  6. package/dist/assets/icons.js +62 -0
  7. package/dist/assets/svgs/GoogleIcon.d.ts +5 -0
  8. package/dist/assets/svgs/GoogleIcon.d.ts.map +1 -0
  9. package/dist/assets/svgs/GoogleIcon.js +2 -0
  10. package/dist/components/Data/Cards/ChartCard/ChartCard.d.ts.map +1 -1
  11. package/dist/components/Data/Cards/ChartCard/ChartCard.js +3 -2
  12. package/dist/components/Data/Cards/PieChartCard/PieChartCard.d.ts.map +1 -1
  13. package/dist/components/Data/Cards/PieChartCard/PieChartCard.js +2 -1
  14. package/dist/components/Data/Cards/StatsCard/StatsCard.d.ts.map +1 -1
  15. package/dist/components/Data/Cards/StatsCard/StatsCard.js +2 -1
  16. package/dist/components/Data/Chart/Chart.d.ts.map +1 -1
  17. package/dist/components/Data/Chart/Chart.js +5 -4
  18. package/dist/components/Data/Chart/Chart.stories.d.ts.map +1 -1
  19. package/dist/components/Data/Chart/Chart.stories.js +6 -5
  20. package/dist/components/Data/CheckboxTable/CheckboxTable.d.ts.map +1 -1
  21. package/dist/components/Data/CheckboxTable/CheckboxTable.js +15 -14
  22. package/dist/components/Data/PieChart/PieChart.d.ts.map +1 -1
  23. package/dist/components/Data/PieChart/PieChart.js +4 -3
  24. package/dist/components/Data/PieChart/PieChart.stories.d.ts.map +1 -1
  25. package/dist/components/Data/PieChart/PieChart.stories.js +4 -3
  26. package/dist/components/Data/Progress/Progress.stories.d.ts.map +1 -1
  27. package/dist/components/Data/Progress/Progress.stories.js +7 -6
  28. package/dist/components/Data/RemovableItemList/RemovableItemList.d.ts.map +1 -1
  29. package/dist/components/Data/RemovableItemList/RemovableItemList.js +4 -3
  30. package/dist/components/Info/Badge/Badge.stories.d.ts.map +1 -1
  31. package/dist/components/Info/Badge/Badge.stories.js +5 -4
  32. package/dist/components/Info/Badge/sizes.d.ts.map +1 -1
  33. package/dist/components/Info/Badge/sizes.js +7 -6
  34. package/dist/components/Info/Badge/variants.d.ts.map +1 -1
  35. package/dist/components/Info/Badge/variants.js +3 -2
  36. package/dist/components/Info/InfoCard/InfoCard.d.ts.map +1 -1
  37. package/dist/components/Info/InfoCard/InfoCard.js +2 -1
  38. package/dist/components/Info/Modals/FormModal/FormModal.d.ts.map +1 -1
  39. package/dist/components/Info/Modals/FormModal/FormModal.js +12 -11
  40. package/dist/components/Info/Modals/FormModal/FormModal.stories.js +11 -11
  41. package/dist/components/Info/Modals/Modal/Modal.d.ts.map +1 -1
  42. package/dist/components/Info/Modals/Modal/Modal.js +7 -6
  43. package/dist/components/Info/Modals/Modal/Modal.stories.d.ts +7 -0
  44. package/dist/components/Info/Modals/Modal/Modal.stories.d.ts.map +1 -0
  45. package/dist/components/Info/Modals/Modal/Modal.stories.js +61 -0
  46. package/dist/components/Info/Modals/Modals.stories.d.ts +16 -0
  47. package/dist/components/Info/Modals/Modals.stories.d.ts.map +1 -0
  48. package/dist/components/Info/Modals/Modals.stories.js +102 -0
  49. package/dist/components/Info/Notifications/NotificationProvider/NotificationProvider.d.ts.map +1 -1
  50. package/dist/components/Info/Notifications/NotificationProvider/NotificationProvider.js +7 -6
  51. package/dist/components/Info/Notifications/Notifications.stories.d.ts +10 -0
  52. package/dist/components/Info/Notifications/Notifications.stories.d.ts.map +1 -0
  53. package/dist/components/Info/Notifications/Notifications.stories.js +107 -0
  54. package/dist/components/Info/Tooltips/FormulaTooltip/FormulaTooltip.d.ts.map +1 -1
  55. package/dist/components/Info/Tooltips/FormulaTooltip/FormulaTooltip.js +2 -1
  56. package/dist/components/Info/Tooltips/InfoTooltip/InfoTooltip.d.ts +4 -4
  57. package/dist/components/Info/Tooltips/InfoTooltip/InfoTooltip.js +4 -4
  58. package/dist/components/Info/Tooltips/Tooltip/Tooltip.d.ts.map +1 -1
  59. package/dist/components/Info/Tooltips/Tooltip/Tooltip.js +2 -1
  60. package/dist/components/Inputs/Buttons/Button/Button.js +2 -2
  61. package/dist/components/Inputs/Buttons/Button/Button.stories.d.ts +1 -0
  62. package/dist/components/Inputs/Buttons/Button/Button.stories.d.ts.map +1 -1
  63. package/dist/components/Inputs/Buttons/Button/Button.stories.js +53 -46
  64. package/dist/components/Inputs/Buttons/Button/sizes.d.ts.map +1 -1
  65. package/dist/components/Inputs/Buttons/Button/sizes.js +4 -3
  66. package/dist/components/Inputs/Buttons/IconButton/IconButton.js +2 -2
  67. package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.d.ts.map +1 -1
  68. package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.js +7 -6
  69. package/dist/components/Inputs/Buttons/IconButton/sizes.d.ts.map +1 -1
  70. package/dist/components/Inputs/Buttons/IconButton/sizes.js +4 -3
  71. package/dist/components/Inputs/Buttons/SSOButton/SSOButton.d.ts +35 -0
  72. package/dist/components/Inputs/Buttons/SSOButton/SSOButton.d.ts.map +1 -0
  73. package/dist/components/Inputs/Buttons/SSOButton/SSOButton.js +37 -0
  74. package/dist/components/Inputs/Buttons/SSOButton/SSOButton.stories.d.ts +14 -0
  75. package/dist/components/Inputs/Buttons/SSOButton/SSOButton.stories.d.ts.map +1 -0
  76. package/dist/components/Inputs/Buttons/SSOButton/SSOButton.stories.js +121 -0
  77. package/dist/components/Inputs/Buttons/UnstyledButton/UnstyledButton.stories.d.ts.map +1 -1
  78. package/dist/components/Inputs/Buttons/UnstyledButton/UnstyledButton.stories.js +4 -3
  79. package/dist/components/Inputs/Buttons/shared/variants.d.ts +29 -29
  80. package/dist/components/Inputs/Buttons/shared/variants.d.ts.map +1 -1
  81. package/dist/components/Inputs/Buttons/shared/variants.js +6 -5
  82. package/dist/components/Inputs/Controls/Checkbox/Checkbox.stories.js +3 -3
  83. package/dist/components/Inputs/Controls/Radio/Radio.js +1 -1
  84. package/dist/components/Inputs/Controls/Radio/Radio.stories.js +3 -3
  85. package/dist/components/Inputs/Controls/RadioList/RadioList.d.ts.map +1 -1
  86. package/dist/components/Inputs/Controls/RadioList/RadioList.js +3 -2
  87. package/dist/components/Inputs/Controls/RadioList/RadioList.stories.d.ts.map +1 -1
  88. package/dist/components/Inputs/Controls/RadioList/RadioList.stories.js +3 -2
  89. package/dist/components/Inputs/Controls/SegmentedControl/SegmentedControl.stories.d.ts.map +1 -1
  90. package/dist/components/Inputs/Controls/SegmentedControl/SegmentedControl.stories.js +6 -5
  91. package/dist/components/Inputs/Controls/Toggle/Toggle.d.ts +4 -4
  92. package/dist/components/Inputs/Controls/Toggle/Toggle.js +5 -5
  93. package/dist/components/Inputs/Controls/Toggle/Toggle.stories.js +4 -4
  94. package/dist/components/Inputs/Dates/DatePicker/DatePicker.d.ts.map +1 -1
  95. package/dist/components/Inputs/Dates/DatePicker/DatePicker.js +5 -4
  96. package/dist/components/Inputs/Dates/DatePicker/DatePicker.stories.js +4 -4
  97. package/dist/components/Inputs/Dropdowns/CascadingSelect/CascadingSelect.d.ts.map +1 -1
  98. package/dist/components/Inputs/Dropdowns/CascadingSelect/CascadingSelect.js +6 -5
  99. package/dist/components/Inputs/Dropdowns/CascadingSelect/CascadingSelect.stories.js +5 -5
  100. package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.js +3 -3
  101. package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.stories.js +5 -5
  102. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.d.ts.map +1 -1
  103. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.js +7 -6
  104. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.stories.js +5 -5
  105. package/dist/components/Inputs/Dropdowns/Select/Select.d.ts.map +1 -1
  106. package/dist/components/Inputs/Dropdowns/Select/Select.js +6 -5
  107. package/dist/components/Inputs/Dropdowns/Select/Select.stories.js +4 -4
  108. package/dist/components/Inputs/Dropdowns/shared/sizes.js +18 -18
  109. package/dist/components/Inputs/Sliders/Slider/Slider.d.ts.map +1 -1
  110. package/dist/components/Inputs/Sliders/Slider/Slider.js +15 -14
  111. package/dist/components/Inputs/Sliders/VolumeSlider/VolumeSlider.d.ts.map +1 -1
  112. package/dist/components/Inputs/Sliders/VolumeSlider/VolumeSlider.js +5 -4
  113. package/dist/components/Inputs/Sliders/shared/sizes.d.ts +9 -9
  114. package/dist/components/Inputs/Sliders/shared/sizes.js +9 -9
  115. package/dist/components/Inputs/TextInputs/AutoComplete/AutoComplete.d.ts.map +1 -1
  116. package/dist/components/Inputs/TextInputs/AutoComplete/AutoComplete.js +5 -4
  117. package/dist/components/Inputs/TextInputs/AutoComplete/AutoComplete.stories.js +5 -5
  118. package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.js +10 -10
  119. package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.stories.js +5 -5
  120. package/dist/components/Inputs/TextInputs/PasswordInput/PasswordInput.js +8 -8
  121. package/dist/components/Inputs/TextInputs/PasswordInput/PasswordInput.stories.js +5 -5
  122. package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.d.ts.map +1 -1
  123. package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.js +4 -3
  124. package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.stories.js +5 -5
  125. package/dist/components/Inputs/TextInputs/TextArea/TextArea.d.ts.map +1 -1
  126. package/dist/components/Inputs/TextInputs/TextArea/TextArea.js +6 -5
  127. package/dist/components/Inputs/TextInputs/TextArea/TextArea.stories.js +5 -5
  128. package/dist/components/Inputs/TextInputs/TextInput/TextInput.js +5 -5
  129. package/dist/components/Inputs/TextInputs/TextInput/TextInput.stories.js +5 -5
  130. package/dist/components/Inputs/TextInputs/shared/sizes.d.ts +6 -6
  131. package/dist/components/Inputs/TextInputs/shared/sizes.js +3 -3
  132. package/dist/components/Layout/AutoGrid/AutoGrid.stories.d.ts +7 -0
  133. package/dist/components/Layout/AutoGrid/AutoGrid.stories.d.ts.map +1 -0
  134. package/dist/components/Layout/AutoGrid/AutoGrid.stories.js +78 -0
  135. package/dist/components/Layout/Box/Box.d.ts +1 -3
  136. package/dist/components/Layout/Box/Box.d.ts.map +1 -1
  137. package/dist/components/Layout/Box/Box.js +2 -2
  138. package/dist/components/Layout/Box/Box.stories.d.ts +1 -2
  139. package/dist/components/Layout/Box/Box.stories.d.ts.map +1 -1
  140. package/dist/components/Layout/Box/Box.stories.js +28 -98
  141. package/dist/components/Layout/Card/Card.d.ts +1 -1
  142. package/dist/components/Layout/Card/Card.d.ts.map +1 -1
  143. package/dist/components/Layout/Card/Card.js +2 -2
  144. package/dist/components/Layout/Card/Card.stories.d.ts +10 -0
  145. package/dist/components/Layout/Card/Card.stories.d.ts.map +1 -0
  146. package/dist/components/Layout/Card/Card.stories.js +92 -0
  147. package/dist/components/Layout/Center/Center.d.ts +2 -3
  148. package/dist/components/Layout/Center/Center.d.ts.map +1 -1
  149. package/dist/components/Layout/Center/Center.js +2 -2
  150. package/dist/components/Layout/Center/Center.stories.d.ts +8 -0
  151. package/dist/components/Layout/Center/Center.stories.d.ts.map +1 -0
  152. package/dist/components/Layout/Center/Center.stories.js +70 -0
  153. package/dist/components/Layout/Divider/Divider.stories.d.ts +7 -0
  154. package/dist/components/Layout/Divider/Divider.stories.d.ts.map +1 -0
  155. package/dist/components/Layout/Divider/Divider.stories.js +67 -0
  156. package/dist/components/Layout/Frame/Frame.js +1 -1
  157. package/dist/components/Layout/Frame/Frame.stories.d.ts +8 -0
  158. package/dist/components/Layout/Frame/Frame.stories.d.ts.map +1 -0
  159. package/dist/components/Layout/Frame/Frame.stories.js +78 -0
  160. package/dist/components/Layout/Grid/Grid.stories.d.ts +8 -0
  161. package/dist/components/Layout/Grid/Grid.stories.d.ts.map +1 -0
  162. package/dist/components/Layout/Grid/Grid.stories.js +72 -0
  163. package/dist/components/Layout/Group/Group.stories.d.ts +10 -0
  164. package/dist/components/Layout/Group/Group.stories.d.ts.map +1 -0
  165. package/dist/components/Layout/Group/Group.stories.js +114 -0
  166. package/dist/components/Layout/Loader/Loader.stories.d.ts +10 -0
  167. package/dist/components/Layout/Loader/Loader.stories.d.ts.map +1 -0
  168. package/dist/components/Layout/Loader/Loader.stories.js +68 -0
  169. package/dist/components/Layout/SectionCard/SectionCard.d.ts +3 -5
  170. package/dist/components/Layout/SectionCard/SectionCard.d.ts.map +1 -1
  171. package/dist/components/Layout/SectionCard/SectionCard.js +3 -8
  172. package/dist/components/Layout/SectionCard/SectionCard.stories.d.ts +9 -0
  173. package/dist/components/Layout/SectionCard/SectionCard.stories.d.ts.map +1 -0
  174. package/dist/components/Layout/SectionCard/SectionCard.stories.js +98 -0
  175. package/dist/components/Layout/Stack/Stack.stories.d.ts +1 -2
  176. package/dist/components/Layout/Stack/Stack.stories.d.ts.map +1 -1
  177. package/dist/components/Layout/Stack/Stack.stories.js +47 -66
  178. package/dist/components/Layout/Table/Table.stories.d.ts.map +1 -1
  179. package/dist/components/Layout/Table/Table.stories.js +4 -3
  180. package/dist/components/Layout/Tabs/Tabs.d.ts +2 -4
  181. package/dist/components/Layout/Tabs/Tabs.d.ts.map +1 -1
  182. package/dist/components/Layout/Tabs/Tabs.js +7 -6
  183. package/dist/components/Layout/Tabs/Tabs.stories.d.ts +9 -0
  184. package/dist/components/Layout/Tabs/Tabs.stories.d.ts.map +1 -0
  185. package/dist/components/Layout/Tabs/Tabs.stories.js +141 -0
  186. package/dist/components/Misc/IconBadge/IconBadge.js +1 -1
  187. package/dist/components/Misc/IconBadge/IconBadge.stories.d.ts +7 -0
  188. package/dist/components/Misc/IconBadge/IconBadge.stories.d.ts.map +1 -0
  189. package/dist/components/Misc/IconBadge/IconBadge.stories.js +48 -0
  190. package/dist/components/Misc/Stepper/Step.d.ts +16 -0
  191. package/dist/components/Misc/Stepper/Step.d.ts.map +1 -0
  192. package/dist/components/Misc/Stepper/Step.js +7 -0
  193. package/dist/components/Misc/Stepper/Step.stories.d.ts +477 -0
  194. package/dist/components/Misc/Stepper/Step.stories.d.ts.map +1 -0
  195. package/dist/components/Misc/Stepper/Step.stories.js +83 -0
  196. package/dist/components/Misc/Stepper/Stepper.d.ts +10 -0
  197. package/dist/components/Misc/Stepper/Stepper.d.ts.map +1 -0
  198. package/dist/components/Misc/Stepper/Stepper.js +72 -0
  199. package/dist/components/Misc/Stepper/Stepper.stories.d.ts +13 -0
  200. package/dist/components/Misc/Stepper/Stepper.stories.d.ts.map +1 -0
  201. package/dist/components/Misc/Stepper/Stepper.stories.js +126 -0
  202. package/dist/components/Misc/Stepper/variants.d.ts +54 -0
  203. package/dist/components/Misc/Stepper/variants.d.ts.map +1 -0
  204. package/dist/components/Misc/Stepper/variants.js +48 -0
  205. package/dist/components/Typography/CollapsibleText/CollapsibleText.d.ts.map +1 -1
  206. package/dist/components/Typography/CollapsibleText/CollapsibleText.js +2 -1
  207. package/dist/components/Typography/CollapsibleText/CollapsibleText.stories.d.ts.map +1 -1
  208. package/dist/components/Typography/CollapsibleText/CollapsibleText.stories.js +4 -3
  209. package/dist/components/Typography/CollapsibleTitle/CollapsibleTitle.d.ts.map +1 -1
  210. package/dist/components/Typography/CollapsibleTitle/CollapsibleTitle.js +2 -1
  211. package/dist/components/Typography/CollapsibleTitle/CollapsibleTitle.stories.d.ts.map +1 -1
  212. package/dist/components/Typography/CollapsibleTitle/CollapsibleTitle.stories.js +4 -3
  213. package/dist/components/Typography/Formula/Formula.d.ts.map +1 -1
  214. package/dist/components/Typography/Formula/Formula.js +5 -4
  215. package/dist/components/Typography/Formula/Formula.stories.d.ts +10 -0
  216. package/dist/components/Typography/Formula/Formula.stories.d.ts.map +1 -0
  217. package/dist/components/Typography/Formula/Formula.stories.js +85 -0
  218. package/dist/components/Typography/Fraction/Fraction.d.ts.map +1 -1
  219. package/dist/components/Typography/Fraction/Fraction.js +2 -1
  220. package/dist/components/Typography/Fraction/Fraction.stories.d.ts +9 -0
  221. package/dist/components/Typography/Fraction/Fraction.stories.d.ts.map +1 -0
  222. package/dist/components/Typography/Fraction/Fraction.stories.js +87 -0
  223. package/dist/components/Typography/Text/Text.d.ts.map +1 -1
  224. package/dist/components/Typography/Text/Text.js +6 -0
  225. package/dist/components/Typography/Text/Text.stories.d.ts +10 -0
  226. package/dist/components/Typography/Text/Text.stories.d.ts.map +1 -0
  227. package/dist/components/Typography/Text/Text.stories.js +101 -0
  228. package/dist/components/Typography/Title/Title.stories.d.ts +9 -0
  229. package/dist/components/Typography/Title/Title.stories.d.ts.map +1 -0
  230. package/dist/components/Typography/Title/Title.stories.js +98 -0
  231. package/dist/components/index.d.ts +3 -0
  232. package/dist/components/index.d.ts.map +1 -1
  233. package/dist/components/index.js +3 -0
  234. package/dist/constants/breakpoints.d.ts +1 -1
  235. package/dist/constants/breakpoints.js +1 -1
  236. package/dist/constants/colors.d.ts +1 -0
  237. package/dist/constants/colors.d.ts.map +1 -1
  238. package/dist/constants/colors.js +1 -0
  239. package/dist/constants/font.js +10 -10
  240. package/dist/constants/index.d.ts +1 -0
  241. package/dist/constants/index.d.ts.map +1 -1
  242. package/dist/constants/index.js +1 -0
  243. package/dist/constants/spacing.d.ts +12 -0
  244. package/dist/constants/spacing.d.ts.map +1 -0
  245. package/dist/constants/spacing.js +11 -0
  246. package/dist/docs/AIGeneratedBanner.d.ts +2 -0
  247. package/dist/docs/AIGeneratedBanner.d.ts.map +1 -0
  248. package/dist/docs/AIGeneratedBanner.js +5 -0
  249. package/dist/docs/design/Colors.stories.d.ts +7 -0
  250. package/dist/docs/design/Colors.stories.d.ts.map +1 -0
  251. package/dist/docs/design/Colors.stories.js +29 -0
  252. package/dist/docs/design/Spacing.stories.d.ts +6 -0
  253. package/dist/docs/design/Spacing.stories.d.ts.map +1 -0
  254. package/dist/docs/design/Spacing.stories.js +24 -0
  255. package/dist/docs/hooks/Copy.stories.d.ts +6 -0
  256. package/dist/docs/hooks/Copy.stories.d.ts.map +1 -0
  257. package/dist/docs/hooks/Copy.stories.js +61 -0
  258. package/dist/hooks/useConfirmationModal.d.ts.map +1 -1
  259. package/dist/hooks/useConfirmationModal.js +10 -9
  260. package/dist/hooks/useInfoModal.d.ts.map +1 -1
  261. package/dist/hooks/useInfoModal.js +10 -9
  262. package/dist/hooks/useMediaQuery.d.ts +2 -2
  263. package/dist/hooks/useMediaQuery.js +6 -6
  264. package/package.json +43 -32
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { AutoGrid } from './AutoGrid';
3
+ declare const meta: Meta<typeof AutoGrid>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ //# sourceMappingURL=AutoGrid.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoGrid.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/AutoGrid/AutoGrid.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAqD/B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAkBnC,eAAO,MAAM,OAAO,EAAE,KAoBrB,CAAC"}
@@ -0,0 +1,78 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { AutoGrid } from './AutoGrid';
3
+ import { Card } from '../Card/Card';
4
+ import { Title } from '../../Typography/Title/Title';
5
+ const meta = {
6
+ title: 'Components/Layout/AutoGrid',
7
+ component: AutoGrid,
8
+ parameters: {
9
+ layout: 'centered',
10
+ docs: {
11
+ description: {
12
+ component: "[View Mantine Docs](https://v6.mantine.dev/core/simple-grid/)\n\nThe AutoGrid component is a responsive grid where each item takes an equal amount of space. It extends Mantine v6's SimpleGrid component and provides automatic column distribution with customizable spacing.",
13
+ },
14
+ },
15
+ },
16
+ argTypes: {
17
+ children: {
18
+ control: false,
19
+ description: 'Content for the AutoGrid - each child node is a grid item',
20
+ table: {
21
+ type: { summary: 'ReactNode' },
22
+ },
23
+ },
24
+ cols: {
25
+ control: { type: 'number' },
26
+ description: 'Number of columns in each row',
27
+ table: {
28
+ type: { summary: 'number | ResponsiveObject' },
29
+ defaultValue: { summary: '1' },
30
+ },
31
+ },
32
+ spacing: {
33
+ control: { type: 'select' },
34
+ options: ['xs', 'sm', 'md', 'lg', 'xl'],
35
+ description: 'Horizontal spacing between items',
36
+ table: {
37
+ type: { summary: "'xs' | 'sm' | 'md' | 'lg' | 'xl' | number" },
38
+ defaultValue: { summary: "'md'" },
39
+ },
40
+ },
41
+ verticalSpacing: {
42
+ control: { type: 'select' },
43
+ options: ['xs', 'sm', 'md', 'lg', 'xl'],
44
+ description: 'Vertical spacing between items',
45
+ table: {
46
+ type: { summary: "'xs' | 'sm' | 'md' | 'lg' | 'xl' | number" },
47
+ },
48
+ },
49
+ styles: {
50
+ control: { type: 'object' },
51
+ description: 'Custom styles to override with if necessary',
52
+ table: {
53
+ type: { summary: 'Record<string, CSSObject>' },
54
+ },
55
+ },
56
+ },
57
+ };
58
+ export default meta;
59
+ const SampleCard = ({ title, description }) => (_jsxs(Card, { animate: true, padding: "lg", children: [_jsx(Title, { variant: "cardHeader", children: title }), _jsx(Title, { variant: "cardSubheader", children: description })] }));
60
+ const items = [
61
+ { id: 1, title: 'Item 1', description: 'Grid item content' },
62
+ { id: 2, title: 'Item 2', description: 'Grid item content' },
63
+ { id: 3, title: 'Item 3', description: 'Grid item content' },
64
+ { id: 4, title: 'Item 4', description: 'Grid item content' },
65
+ { id: 5, title: 'Item 5', description: 'Grid item content' },
66
+ { id: 6, title: 'Item 6', description: 'Grid item content' },
67
+ ];
68
+ export const Default = {
69
+ args: {
70
+ children: undefined,
71
+ cols: 3,
72
+ spacing: 'md',
73
+ },
74
+ decorators: [
75
+ (Story) => (_jsx("div", { style: { width: '700px' }, children: _jsx(Story, {}) })),
76
+ ],
77
+ render: (args) => (_jsx(AutoGrid, { ...args, children: items.map((item) => (_jsx(SampleCard, { title: item.title, description: item.description }, item.id))) })),
78
+ };
@@ -1,10 +1,8 @@
1
1
  import { BoxProps as MantineBoxProps } from '@mantine/core';
2
- import { CSSObject } from '@mantine/styles';
3
2
  interface BoxProps extends MantineBoxProps {
4
3
  width?: string | number;
5
4
  onClick?: () => void;
6
- styles?: Record<string, CSSObject>;
7
5
  }
8
- declare const Box: ({ width, styles, onClick, ...props }: BoxProps) => import("react/jsx-runtime").JSX.Element;
6
+ declare const Box: ({ width, onClick, ...props }: BoxProps) => import("react/jsx-runtime").JSX.Element;
9
7
  export { Box };
10
8
  //# sourceMappingURL=Box.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,QAAQ,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,UAAU,QAAS,SAAQ,eAAe;IACxC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,QAAA,MAAM,GAAG,GAAI,sCAAsC,QAAQ,4CAE1D,CAAC;AAEF,OAAO,EAAE,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,QAAQ,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAE/E,UAAU,QAAS,SAAQ,eAAe;IACxC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,GAAG,GAAI,8BAA8B,QAAQ,4CAElD,CAAC;AAEF,OAAO,EAAE,GAAG,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Box as MantineBox } from '@mantine/core';
3
- const Box = ({ width, styles, onClick, ...props }) => {
4
- return _jsx(MantineBox, { w: width, styles: styles, onClick: onClick, ...props });
3
+ const Box = ({ width, onClick, ...props }) => {
4
+ return _jsx(MantineBox, { w: width, onClick: onClick, ...props });
5
5
  };
6
6
  export { Box };
@@ -4,6 +4,5 @@ declare const meta: Meta<typeof Box>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const Default: Story;
7
- export declare const Alignment: Story;
8
- export declare const CustomStyling: Story;
7
+ export declare const BoxStyling: Story;
9
8
  //# sourceMappingURL=Box.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Box.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Box/Box.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG5B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,GAAG,CA0B1B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAwBrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAqDvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAyC3B,CAAC"}
1
+ {"version":3,"file":"Box.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Box/Box.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAM5B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,GAAG,CAuB1B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAgBxB,CAAC"}
@@ -1,121 +1,51 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Box } from './Box';
3
- import { Group } from '../Group/Group';
3
+ import { Text } from '../../Typography/Text/Text';
4
+ import { neutral } from '../../../constants/colors';
5
+ import { spacing } from '../../../constants/spacing';
4
6
  const meta = {
5
- title: 'Layouts/Box',
7
+ title: 'Components/Layout/Box',
6
8
  component: Box,
9
+ parameters: {
10
+ layout: 'centered',
11
+ },
7
12
  argTypes: {
13
+ children: {
14
+ control: { type: 'text' },
15
+ description: 'Content to render inside the Box',
16
+ table: { type: { summary: 'ReactNode' } },
17
+ },
8
18
  width: {
9
19
  control: { type: 'text' },
10
20
  description: 'Custom width',
11
- table: {
12
- type: { summary: 'string | number' },
13
- },
14
- },
15
- styles: {
16
- control: { type: 'object' },
17
- description: 'Custom styles object',
18
- table: {
19
- type: { summary: 'Record<string, CSSObject>' },
20
- },
21
+ table: { type: { summary: 'string | number' } },
21
22
  },
22
23
  onClick: {
23
24
  action: 'clicked',
24
25
  description: 'Click handler function',
25
- table: {
26
- type: { summary: '() => void' },
27
- },
26
+ table: { type: { summary: '() => void' } },
28
27
  },
29
28
  },
30
29
  };
31
30
  export default meta;
32
31
  export const Default = {
33
32
  args: {
34
- children: 'Box lets you add inline styles with sx prop',
35
- },
36
- parameters: {
37
- docs: {
38
- source: {
39
- code: `<Box
40
- sx={(theme) => ({
41
- backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[6] : theme.colors.gray[0],
42
- textAlign: 'center',
43
- padding: theme.spacing.xl,
44
- borderRadius: theme.radius.md,
45
- cursor: 'pointer',
46
- '&:hover': {
47
- backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[5] : theme.colors.gray[1],
48
- },
49
- })}
50
- >
51
- Box lets you add inline styles with sx prop
52
- </Box>`,
53
- },
54
- },
55
- },
56
- };
57
- export const Alignment = {
58
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(Box, { sx: (theme) => ({
59
- backgroundColor: theme.colors.blue[0],
60
- padding: theme.spacing.md,
61
- borderRadius: theme.radius.md,
62
- textAlign: 'left',
63
- border: `1px solid ${theme.colors.blue[3]}`,
64
- }), children: "Left Aligned" }), _jsx(Box, { sx: (theme) => ({
65
- backgroundColor: theme.colors.green[0],
66
- padding: theme.spacing.md,
67
- borderRadius: theme.radius.md,
68
- textAlign: 'center',
69
- border: `1px solid ${theme.colors.green[3]}`,
70
- }), children: "Center Aligned" }), _jsx(Box, { sx: (theme) => ({
71
- backgroundColor: theme.colors.orange[0],
72
- padding: theme.spacing.md,
73
- borderRadius: theme.radius.md,
74
- textAlign: 'right',
75
- border: `1px solid ${theme.colors.orange[3]}`,
76
- }), children: "Right Aligned" })] })),
77
- parameters: {
78
- docs: {
79
- source: {
80
- code: `<Box
81
- sx={(theme) => ({
82
- textAlign: 'center',
83
- padding: theme.spacing.md,
84
- backgroundColor: theme.colors.blue[0],
85
- })}
86
- >
87
- Center Aligned Content
88
- </Box>`,
89
- },
33
+ children: 'Box is a styled div use it as a wrapper or for custom styling',
34
+ sx: {
35
+ backgroundColor: neutral[50],
36
+ padding: spacing.xl,
37
+ borderRadius: '8px',
90
38
  },
91
39
  },
92
40
  };
93
- export const CustomStyling = {
94
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(Box, { sx: (theme) => ({
95
- backgroundColor: theme.colors.red[0],
96
- color: theme.colors.red[9],
97
- padding: theme.spacing.lg,
98
- borderRadius: theme.radius.lg,
99
- border: `2px solid ${theme.colors.red[3]}`,
100
- boxShadow: theme.shadows.md,
101
- '&:hover': {
102
- transform: 'translateY(-2px)',
103
- boxShadow: theme.shadows.lg,
104
- },
105
- }), children: "Custom Styled Box" }), _jsx(Box, { sx: (theme) => ({
106
- background: `linear-gradient(45deg, ${theme.colors.violet[3]}, ${theme.colors.pink[3]})`,
107
- color: 'white',
108
- padding: theme.spacing.xl,
109
- borderRadius: theme.radius.xl,
110
- textAlign: 'center',
111
- fontWeight: 600,
112
- boxShadow: theme.shadows.xl,
113
- }), children: "Gradient Box" })] })),
41
+ export const BoxStyling = {
42
+ render: () => (_jsx(Box, { sx: {
43
+ backgroundColor: neutral[25],
44
+ padding: spacing.xl,
45
+ borderRadius: '8px',
46
+ border: `1px dashed ${neutral[100]}`,
47
+ }, children: _jsx(Text, { weight: "semibold", children: "This is a box that has been styled" }) })),
114
48
  parameters: {
115
- docs: {
116
- source: {
117
- code: false,
118
- },
119
- },
49
+ docs: { source: { code: false } },
120
50
  },
121
51
  };
@@ -4,5 +4,5 @@ export interface CardProps extends MantineCardProps {
4
4
  children: React.ReactNode;
5
5
  animate?: boolean;
6
6
  }
7
- export declare const Card: ({ children, animate, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Card: ({ children, animate, p, radius, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
8
8
  //# sourceMappingURL=Card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAuB,SAAS,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEnF,MAAM,WAAW,SAAU,SAAQ,gBAAgB;IACjD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,IAAI,GAAI,iCAAyC,SAAS,4CAiBtE,CAAC"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAuB,SAAS,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEnF,MAAM,WAAW,SAAU,SAAQ,gBAAgB;IACjD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,IAAI,GAAI,4CAAkE,SAAS,4CAiB/F,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Card as MantineCard } from '@mantine/core';
3
- export const Card = ({ children, animate = false, ...props }) => {
3
+ export const Card = ({ children, animate = false, p = "24px", radius = "20px", ...props }) => {
4
4
  const hoverAnimation = {
5
5
  style: { transition: 'transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out' },
6
6
  onMouseEnter: (e) => {
@@ -12,5 +12,5 @@ export const Card = ({ children, animate = false, ...props }) => {
12
12
  e.currentTarget.style.boxShadow = 'none';
13
13
  },
14
14
  };
15
- return (_jsx(MantineCard, { p: "1.8rem", radius: "20px", withBorder: true, ...(animate ? hoverAnimation : {}), ...props, children: children }));
15
+ return (_jsx(MantineCard, { p: p, radius: radius, withBorder: true, ...(animate ? hoverAnimation : {}), ...props, children: children }));
16
16
  };
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Card } from './Card';
3
+ declare const meta: Meta<typeof Card>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Animation: Story;
8
+ export declare const WithAutoGrid: Story;
9
+ export declare const CustomStyling: Story;
10
+ //# sourceMappingURL=Card.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Card/Card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAO9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CA+C3B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAoBrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KASvB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAa1B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KA2B3B,CAAC"}
@@ -0,0 +1,92 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Card } from './Card';
3
+ import { AutoGrid } from '../AutoGrid/AutoGrid';
4
+ import { Title } from '../../Typography/Title/Title';
5
+ import { primary } from '../../../constants/colors';
6
+ import { spacing } from '../../../constants/spacing';
7
+ const meta = {
8
+ title: 'Components/Layout/Card',
9
+ component: Card,
10
+ parameters: {
11
+ layout: 'centered',
12
+ },
13
+ argTypes: {
14
+ children: {
15
+ control: false,
16
+ description: 'The content to display inside the card',
17
+ table: {
18
+ type: { summary: 'ReactNode' },
19
+ },
20
+ },
21
+ radius: {
22
+ control: { type: 'select' },
23
+ options: ['xs', 'sm', 'md', 'lg', 'xl'],
24
+ description: 'Border radius of the card',
25
+ table: {
26
+ type: { summary: "'xs' | 'sm' | 'md' | 'lg' | 'xl' | string | number" },
27
+ defaultValue: { summary: "'20px'" },
28
+ },
29
+ },
30
+ withBorder: {
31
+ control: { type: 'boolean' },
32
+ description: 'Show/hide card border',
33
+ table: {
34
+ type: { summary: 'boolean' },
35
+ defaultValue: { summary: 'true' },
36
+ },
37
+ },
38
+ animate: {
39
+ control: { type: 'boolean' },
40
+ description: 'Enable a lifting hover animation',
41
+ table: {
42
+ type: { summary: 'boolean' },
43
+ defaultValue: { summary: 'false' },
44
+ },
45
+ },
46
+ sx: {
47
+ control: { type: 'object' },
48
+ description: 'Custom styles to override with if necessary. Targets the root card element.',
49
+ table: {
50
+ type: { summary: 'Record<string, CSSObject>' },
51
+ },
52
+ },
53
+ },
54
+ };
55
+ export default meta;
56
+ export const Default = {
57
+ args: {
58
+ children: undefined,
59
+ animate: false,
60
+ radius: '20px',
61
+ withBorder: true,
62
+ },
63
+ decorators: [
64
+ (Story) => (_jsx("div", { style: { width: '400px' }, children: _jsx(Story, {}) })),
65
+ ],
66
+ render: (args) => (_jsxs(Card, { ...args, children: [_jsx(Title, { variant: "cardHeader", children: "Card Title" }), _jsx(Title, { variant: "cardSubheader", children: "This is a basic card component that provides a clean container for grouping related content." })] })),
67
+ };
68
+ export const Animation = {
69
+ render: () => (_jsx("div", { style: { width: '400px' }, children: _jsxs(Card, { animate: true, children: [_jsx(Title, { variant: "cardHeader", children: "Hover over me" }), _jsx(Title, { variant: "cardSubheader", children: "This card lifts and enhances on hover." })] }) })),
70
+ };
71
+ export const WithAutoGrid = {
72
+ render: () => (_jsx("div", { style: { width: '700px' }, children: _jsx(AutoGrid, { cols: 3, spacing: spacing.md, children: [1, 2, 3, 4, 5, 6].map((item) => (_jsxs(Card, { animate: true, children: [_jsxs(Title, { variant: "cardHeader", children: ["Card ", item] }), _jsx(Title, { variant: "cardSubheader", children: "Card content" })] }, item))) }) })),
73
+ };
74
+ export const CustomStyling = {
75
+ decorators: [
76
+ (Story) => (_jsx("div", { style: { width: '400px' }, children: _jsx(Story, {}) })),
77
+ ],
78
+ render: () => (_jsxs(Card, { withBorder: false, sx: { background: primary[25], border: `1px solid ${primary[50]}` }, children: [_jsx(Title, { variant: "cardHeader", children: "Custom Card" }), _jsx(Title, { variant: "cardSubheader", children: "Styled with a custom background color and border." })] })),
79
+ parameters: {
80
+ docs: {
81
+ source: {
82
+ code: `<Card
83
+ withBorder={false}
84
+ sx={{ background: primary[25], border: '1px solid ${primary[50]}' }}
85
+ >
86
+ <Title variant="cardHeader">Custom Card</Title>
87
+ <Text>Styled with a custom background color and border.</Text>
88
+ </Card>`,
89
+ },
90
+ },
91
+ },
92
+ };
@@ -1,9 +1,8 @@
1
1
  import { CenterProps as MantineCenterProps } from '@mantine/core';
2
- import { CSSObject } from '@mantine/styles';
3
2
  interface CenterProps extends MantineCenterProps {
4
3
  width?: string | number;
5
- styles?: Record<string, CSSObject>;
4
+ height?: string | number;
6
5
  }
7
- declare const Center: ({ width, styles, ...props }: CenterProps) => import("react/jsx-runtime").JSX.Element;
6
+ declare const Center: ({ width, height, ...props }: CenterProps) => import("react/jsx-runtime").JSX.Element;
8
7
  export { Center };
9
8
  //# sourceMappingURL=Center.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Center/Center.tsx"],"names":[],"mappings":"AACA,OAAO,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC3F,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,UAAU,WAAY,SAAQ,kBAAkB;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,QAAA,MAAM,MAAM,GAAI,6BAA6B,WAAW,4CAEvD,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Center/Center.tsx"],"names":[],"mappings":"AACA,OAAO,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAE3F,UAAU,WAAY,SAAQ,kBAAkB;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,QAAA,MAAM,MAAM,GAAI,6BAA6B,WAAW,4CAEvD,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Center as MantineCenter } from '@mantine/core';
3
- const Center = ({ width, styles, ...props }) => {
4
- return _jsx(MantineCenter, { w: width, styles: styles, ...props });
3
+ const Center = ({ width, height, ...props }) => {
4
+ return _jsx(MantineCenter, { w: width, h: height, ...props });
5
5
  };
6
6
  export { Center };
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Center } from './Center';
3
+ declare const meta: Meta<typeof Center>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const CenteringLayouts: Story;
8
+ //# sourceMappingURL=Center.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Center.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Center/Center.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOlC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAsC7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAC;AASF,eAAO,MAAM,gBAAgB,EAAE,KAkB9B,CAAC"}
@@ -0,0 +1,70 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Center } from './Center';
3
+ import { Text } from '../../Typography/Text/Text';
4
+ import { neutral } from '../../../constants/colors';
5
+ import { spacing } from '../../../constants/spacing';
6
+ import { Title } from '../../Typography/Title/Title';
7
+ import { Card, Stack } from '../../..';
8
+ const meta = {
9
+ title: 'Components/Layout/Center',
10
+ component: Center,
11
+ parameters: {
12
+ layout: 'centered',
13
+ },
14
+ argTypes: {
15
+ children: {
16
+ control: false,
17
+ description: 'Content within the container to center',
18
+ table: {
19
+ type: { summary: 'ReactNode' },
20
+ },
21
+ },
22
+ width: {
23
+ control: { type: 'text' },
24
+ description: 'Width of the center container',
25
+ table: {
26
+ type: { summary: 'string | number' },
27
+ defaultValue: { summary: 'auto' },
28
+ },
29
+ },
30
+ height: {
31
+ control: { type: 'text' },
32
+ description: 'Height of the center container',
33
+ table: {
34
+ type: { summary: 'string | number' },
35
+ defaultValue: { summary: 'auto' },
36
+ },
37
+ },
38
+ sx: {
39
+ control: { type: 'object' },
40
+ description: 'Custom styles applied to the root element',
41
+ table: {
42
+ type: { summary: 'CSSObject' },
43
+ },
44
+ },
45
+ },
46
+ };
47
+ export default meta;
48
+ export const Default = {
49
+ args: {
50
+ children: undefined,
51
+ width: '400px',
52
+ height: '400px',
53
+ sx: {
54
+ backgroundColor: neutral[25],
55
+ },
56
+ },
57
+ render: (args) => (_jsx(Center, { ...args, children: _jsx(Text, { children: "Centered Content" }) })),
58
+ };
59
+ const SampleCard = ({ title, description }) => (_jsxs(Card, { animate: true, children: [_jsx(Title, { variant: "cardHeader", children: title }), _jsx(Title, { variant: "cardSubheader", children: description })] }));
60
+ export const CenteringLayouts = {
61
+ args: {
62
+ height: '500px',
63
+ width: '700px',
64
+ sx: {
65
+ backgroundColor: neutral[25],
66
+ border: `1px dashed ${neutral[50]}`,
67
+ },
68
+ },
69
+ render: (args) => (_jsx(Center, { ...args, children: _jsxs(Stack, { spacing: spacing.md, sx: { width: '300px' }, children: [_jsx(SampleCard, { title: "Card 1", description: "Centered layout" }), _jsx(SampleCard, { title: "Card 2", description: "Centered layout" }), _jsx(SampleCard, { title: "Card 3", description: "Centered layout" })] }) })),
70
+ };
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Divider } from './Divider';
3
+ declare const meta: Meta<typeof Divider>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ //# sourceMappingURL=Divider.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Divider/Divider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAiD9B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAqBrB,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Divider } from './Divider';
3
+ import { Text } from '../../Typography/Text/Text';
4
+ import { Stack } from '../Stack/Stack';
5
+ const meta = {
6
+ title: 'Components/Layout/Divider',
7
+ component: Divider,
8
+ parameters: {
9
+ layout: 'centered',
10
+ },
11
+ argTypes: {
12
+ orientation: {
13
+ control: { type: 'select' },
14
+ options: ['horizontal', 'vertical'],
15
+ description: 'Orientation of the divider (WIP)',
16
+ table: {
17
+ type: { summary: "'horizontal' | 'vertical'" },
18
+ defaultValue: { summary: "'horizontal'" },
19
+ },
20
+ },
21
+ size: {
22
+ control: { type: 'select' },
23
+ options: ['xs', 'sm', 'md', 'lg', 'xl'],
24
+ description: 'Thickness of the divider',
25
+ table: {
26
+ type: { summary: "'xs' | 'sm' | 'md' | 'lg' | 'xl' | string | number" },
27
+ defaultValue: { summary: "'md'" },
28
+ },
29
+ },
30
+ color: {
31
+ control: { type: 'color' },
32
+ description: 'Color of the divider',
33
+ table: {
34
+ type: { summary: 'string' },
35
+ defaultValue: { summary: 'neutral[50]' },
36
+ },
37
+ },
38
+ width: {
39
+ control: { type: 'text' },
40
+ description: 'Custom width override',
41
+ table: {
42
+ type: { summary: 'string | number' },
43
+ defaultValue: { summary: "'100%'" },
44
+ },
45
+ },
46
+ styles: {
47
+ control: { type: 'object' },
48
+ description: 'Custom styles override - use this sparingly',
49
+ table: {
50
+ type: { summary: 'Record<string, CSSObject>' },
51
+ },
52
+ },
53
+ },
54
+ };
55
+ export default meta;
56
+ export const Default = {
57
+ args: {
58
+ size: undefined,
59
+ color: undefined,
60
+ width: undefined,
61
+ orientation: undefined,
62
+ },
63
+ decorators: [
64
+ (Story) => (_jsx("div", { style: { width: '400px' }, children: _jsx(Story, {}) })),
65
+ ],
66
+ render: (args) => (_jsxs(Stack, { children: [_jsx(Text, { children: "Content above" }), _jsx(Divider, { ...args }), _jsx(Text, { children: "Content below" })] })),
67
+ };
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Stack } from '../Stack/Stack';
3
3
  import { Title } from '../../Typography/Title/Title';
4
4
  const Frame = ({ title, subtitle, children, width, styles }) => {
5
- return (_jsxs(Stack, { mt: "1.25rem", width: width || '100%', gap: "0", ...styles, children: [_jsxs(Stack, { mb: "1.25rem", gap: "0", children: [_jsx(Title, { variant: "sectionHeader", children: title }), subtitle && _jsx(Title, { variant: "sectionSubheader", children: subtitle })] }), children] }));
5
+ return (_jsxs(Stack, { mt: "12.5px", width: width || '100%', gap: "0", ...styles, children: [_jsxs(Stack, { mb: "12.5px", gap: "0", children: [_jsx(Title, { variant: "sectionHeader", children: title }), subtitle && _jsx(Title, { variant: "sectionSubheader", children: subtitle })] }), children] }));
6
6
  };
7
7
  export { Frame };
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Frame } from './Frame';
3
+ declare const meta: Meta<typeof Frame>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const UseCases: Story;
8
+ //# sourceMappingURL=Frame.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Frame.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Frame/Frame.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAWhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CA4C5B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAyBrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAqDtB,CAAC"}