@taiv/ui 1.3.2 → 1.4.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 (205) hide show
  1. package/dist/components/Data/Cards/ChartCard.d.ts +2 -1
  2. package/dist/components/Data/Cards/ChartCard.d.ts.map +1 -1
  3. package/dist/components/Data/Cards/ChartCard.js +6 -4
  4. package/dist/components/Data/Cards/PieChartCard.d.ts +2 -1
  5. package/dist/components/Data/Cards/PieChartCard.d.ts.map +1 -1
  6. package/dist/components/Data/Cards/PieChartCard.js +6 -4
  7. package/dist/components/Data/Cards/StatsCard.d.ts +1 -1
  8. package/dist/components/Data/Cards/StatsCard.d.ts.map +1 -1
  9. package/dist/components/Data/Cards/StatsCard.js +4 -4
  10. package/dist/components/Data/Chart.js +4 -4
  11. package/dist/components/Data/CheckboxTable.d.ts +1 -1
  12. package/dist/components/Data/CheckboxTable.d.ts.map +1 -1
  13. package/dist/components/Data/CheckboxTable.js +6 -6
  14. package/dist/components/Data/PieChart.js +4 -4
  15. package/dist/components/Info/InfoCard.d.ts +1 -1
  16. package/dist/components/Info/InfoCard.d.ts.map +1 -1
  17. package/dist/components/Info/InfoCard.js +2 -2
  18. package/dist/components/Info/Modals/Modal.js +2 -2
  19. package/dist/components/Info/Notifications/variants.js +1 -1
  20. package/dist/components/Info/Tooltips/FormulaTooltip.js +3 -3
  21. package/dist/components/Info/Tooltips/InfoTooltip.d.ts +16 -1
  22. package/dist/components/Info/Tooltips/InfoTooltip.d.ts.map +1 -1
  23. package/dist/components/Info/Tooltips/InfoTooltip.js +18 -4
  24. package/dist/components/Inputs/Buttons/Button/Button.d.ts +12 -0
  25. package/dist/components/Inputs/Buttons/Button/Button.d.ts.map +1 -0
  26. package/dist/components/Inputs/Buttons/Button/Button.js +37 -0
  27. package/dist/components/Inputs/Buttons/Button/Button.stories.d.ts +11 -0
  28. package/dist/components/Inputs/Buttons/Button/Button.stories.d.ts.map +1 -0
  29. package/dist/components/Inputs/Buttons/Button/Button.stories.js +176 -0
  30. package/dist/components/Inputs/Buttons/Button/sizes.d.ts +25 -0
  31. package/dist/components/Inputs/Buttons/Button/sizes.d.ts.map +1 -0
  32. package/dist/components/Inputs/Buttons/Button/sizes.js +7 -0
  33. package/dist/components/Inputs/Buttons/Button/variants.d.ts +191 -0
  34. package/dist/components/Inputs/Buttons/Button/variants.d.ts.map +1 -0
  35. package/dist/components/Inputs/Buttons/Button/variants.js +191 -0
  36. package/dist/components/Inputs/Buttons/UnstyledButton/UnstyledButton.d.ts +10 -0
  37. package/dist/components/Inputs/Buttons/UnstyledButton/UnstyledButton.d.ts.map +1 -0
  38. package/dist/components/Inputs/Buttons/UnstyledButton/UnstyledButton.js +6 -0
  39. package/dist/components/Inputs/Buttons/UnstyledButton/UnstyledButton.stories.d.ts +8 -0
  40. package/dist/components/Inputs/Buttons/UnstyledButton/UnstyledButton.stories.d.ts.map +1 -0
  41. package/dist/components/Inputs/Buttons/UnstyledButton/UnstyledButton.stories.js +97 -0
  42. package/dist/components/Inputs/Controls/Checkbox/Checkbox.d.ts +27 -0
  43. package/dist/components/Inputs/Controls/Checkbox/Checkbox.d.ts.map +1 -0
  44. package/dist/components/Inputs/Controls/Checkbox/Checkbox.js +55 -0
  45. package/dist/components/Inputs/Controls/Checkbox/Checkbox.stories.d.ts +10 -0
  46. package/dist/components/Inputs/Controls/Checkbox/Checkbox.stories.d.ts.map +1 -0
  47. package/dist/components/Inputs/Controls/Checkbox/Checkbox.stories.js +154 -0
  48. package/dist/components/Inputs/Controls/Radio/Radio.d.ts +8 -0
  49. package/dist/components/Inputs/Controls/Radio/Radio.d.ts.map +1 -0
  50. package/dist/components/Inputs/Controls/Radio/Radio.js +43 -0
  51. package/dist/components/Inputs/Controls/Radio/Radio.stories.d.ts +10 -0
  52. package/dist/components/Inputs/Controls/Radio/Radio.stories.d.ts.map +1 -0
  53. package/dist/components/Inputs/Controls/Radio/Radio.stories.js +143 -0
  54. package/dist/components/Inputs/Controls/RadioList/RadioList.d.ts +16 -0
  55. package/dist/components/Inputs/Controls/RadioList/RadioList.d.ts.map +1 -0
  56. package/dist/components/Inputs/Controls/RadioList/RadioList.js +24 -0
  57. package/dist/components/Inputs/Controls/RadioList/RadioList.stories.d.ts +11 -0
  58. package/dist/components/Inputs/Controls/RadioList/RadioList.stories.d.ts.map +1 -0
  59. package/dist/components/Inputs/Controls/RadioList/RadioList.stories.js +138 -0
  60. package/dist/components/Inputs/Controls/Toggle/Toggle.d.ts +29 -0
  61. package/dist/components/Inputs/Controls/Toggle/Toggle.d.ts.map +1 -0
  62. package/dist/components/Inputs/Controls/Toggle/Toggle.js +40 -0
  63. package/dist/components/Inputs/Controls/Toggle/Toggle.stories.d.ts +11 -0
  64. package/dist/components/Inputs/Controls/Toggle/Toggle.stories.d.ts.map +1 -0
  65. package/dist/components/Inputs/Controls/Toggle/Toggle.stories.js +179 -0
  66. package/dist/components/Inputs/Dates/DatePicker/DatePicker.d.ts +12 -0
  67. package/dist/components/Inputs/Dates/DatePicker/DatePicker.d.ts.map +1 -0
  68. package/dist/components/Inputs/Dates/DatePicker/DatePicker.js +74 -0
  69. package/dist/components/Inputs/Dates/DatePicker/DatePicker.stories.d.ts +12 -0
  70. package/dist/components/Inputs/Dates/DatePicker/DatePicker.stories.d.ts.map +1 -0
  71. package/dist/components/Inputs/Dates/DatePicker/DatePicker.stories.js +203 -0
  72. package/dist/components/Inputs/Dropdowns/CascadingSelect/CascadingSelect.d.ts +17 -0
  73. package/dist/components/Inputs/Dropdowns/CascadingSelect/CascadingSelect.d.ts.map +1 -0
  74. package/dist/components/Inputs/Dropdowns/CascadingSelect/CascadingSelect.js +70 -0
  75. package/dist/components/Inputs/Dropdowns/CascadingSelect/CascadingSelect.stories.d.ts +14 -0
  76. package/dist/components/Inputs/Dropdowns/CascadingSelect/CascadingSelect.stories.d.ts.map +1 -0
  77. package/dist/components/Inputs/Dropdowns/CascadingSelect/CascadingSelect.stories.js +362 -0
  78. package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.d.ts +11 -0
  79. package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.d.ts.map +1 -0
  80. package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.js +48 -0
  81. package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.stories.d.ts +12 -0
  82. package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.stories.d.ts.map +1 -0
  83. package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.stories.js +215 -0
  84. package/dist/components/Inputs/Dropdowns/FontSelect/font-options.d.ts +9 -0
  85. package/dist/components/Inputs/Dropdowns/FontSelect/font-options.d.ts.map +1 -0
  86. package/dist/components/Inputs/Dropdowns/FontSelect/font-options.js +65 -0
  87. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.d.ts +12 -0
  88. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.d.ts.map +1 -0
  89. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.js +94 -0
  90. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.stories.d.ts +12 -0
  91. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.stories.d.ts.map +1 -0
  92. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.stories.js +260 -0
  93. package/dist/components/Inputs/Dropdowns/Select/Select.d.ts +11 -0
  94. package/dist/components/Inputs/Dropdowns/Select/Select.d.ts.map +1 -0
  95. package/dist/components/Inputs/Dropdowns/Select/Select.js +62 -0
  96. package/dist/components/Inputs/Dropdowns/Select/Select.stories.d.ts +12 -0
  97. package/dist/components/Inputs/Dropdowns/Select/Select.stories.d.ts.map +1 -0
  98. package/dist/components/Inputs/Dropdowns/Select/Select.stories.js +242 -0
  99. package/dist/components/Inputs/Sliders/Slider/Slider.d.ts +16 -0
  100. package/dist/components/Inputs/Sliders/Slider/Slider.d.ts.map +1 -0
  101. package/dist/components/Inputs/Sliders/Slider/Slider.js +91 -0
  102. package/dist/components/Inputs/Sliders/VolumeSlider/VolumeSlider.d.ts +6 -0
  103. package/dist/components/Inputs/Sliders/VolumeSlider/VolumeSlider.d.ts.map +1 -0
  104. package/dist/components/Inputs/Sliders/VolumeSlider/VolumeSlider.js +37 -0
  105. package/dist/components/Inputs/TextInputs/AutoComplete/AutoComplete.d.ts +11 -0
  106. package/dist/components/Inputs/TextInputs/AutoComplete/AutoComplete.d.ts.map +1 -0
  107. package/dist/components/Inputs/TextInputs/AutoComplete/AutoComplete.js +57 -0
  108. package/dist/components/Inputs/TextInputs/AutoComplete/AutoComplete.stories.d.ts +12 -0
  109. package/dist/components/Inputs/TextInputs/AutoComplete/AutoComplete.stories.d.ts.map +1 -0
  110. package/dist/components/Inputs/TextInputs/AutoComplete/AutoComplete.stories.js +218 -0
  111. package/dist/components/Inputs/TextInputs/PasswordInput/PasswordInput.d.ts +12 -0
  112. package/dist/components/Inputs/TextInputs/PasswordInput/PasswordInput.d.ts.map +1 -0
  113. package/dist/components/Inputs/TextInputs/PasswordInput/PasswordInput.js +52 -0
  114. package/dist/components/Inputs/TextInputs/PasswordInput/PasswordInput.stories.d.ts +12 -0
  115. package/dist/components/Inputs/TextInputs/PasswordInput/PasswordInput.stories.d.ts.map +1 -0
  116. package/dist/components/Inputs/TextInputs/PasswordInput/PasswordInput.stories.js +235 -0
  117. package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.d.ts +7 -0
  118. package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.d.ts.map +1 -0
  119. package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.js +23 -0
  120. package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.stories.d.ts +12 -0
  121. package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.stories.d.ts.map +1 -0
  122. package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.stories.js +202 -0
  123. package/dist/components/Inputs/TextInputs/TextArea/TextArea.d.ts +12 -0
  124. package/dist/components/Inputs/TextInputs/TextArea/TextArea.d.ts.map +1 -0
  125. package/dist/components/Inputs/TextInputs/TextArea/TextArea.js +33 -0
  126. package/dist/components/Inputs/TextInputs/TextArea/TextArea.stories.d.ts +12 -0
  127. package/dist/components/Inputs/TextInputs/TextArea/TextArea.stories.d.ts.map +1 -0
  128. package/dist/components/Inputs/TextInputs/TextArea/TextArea.stories.js +231 -0
  129. package/dist/components/Inputs/TextInputs/TextInput/TextInput.d.ts +12 -0
  130. package/dist/components/Inputs/TextInputs/TextInput/TextInput.d.ts.map +1 -0
  131. package/dist/components/Inputs/TextInputs/TextInput/TextInput.js +32 -0
  132. package/dist/components/Inputs/TextInputs/TextInput/TextInput.stories.d.ts +12 -0
  133. package/dist/components/Inputs/TextInputs/TextInput/TextInput.stories.d.ts.map +1 -0
  134. package/dist/components/Inputs/TextInputs/TextInput/TextInput.stories.js +219 -0
  135. package/dist/components/Layout/AutoGrid/AutoGrid.d.ts +8 -0
  136. package/dist/components/Layout/AutoGrid/AutoGrid.d.ts.map +1 -0
  137. package/dist/components/Layout/AutoGrid/AutoGrid.js +6 -0
  138. package/dist/components/Layout/Box/Box.d.ts +10 -0
  139. package/dist/components/Layout/Box/Box.d.ts.map +1 -0
  140. package/dist/components/Layout/Box/Box.js +6 -0
  141. package/dist/components/Layout/Box/Box.stories.d.ts +9 -0
  142. package/dist/components/Layout/Box/Box.stories.d.ts.map +1 -0
  143. package/dist/components/Layout/Box/Box.stories.js +121 -0
  144. package/dist/components/Layout/Card/Card.d.ts +8 -0
  145. package/dist/components/Layout/Card/Card.d.ts.map +1 -0
  146. package/dist/components/Layout/Card/Card.js +16 -0
  147. package/dist/components/Layout/Center/Center.d.ts +9 -0
  148. package/dist/components/Layout/Center/Center.d.ts.map +1 -0
  149. package/dist/components/Layout/Center/Center.js +6 -0
  150. package/dist/components/Layout/Divider/Divider.d.ts +10 -0
  151. package/dist/components/Layout/Divider/Divider.d.ts.map +1 -0
  152. package/dist/components/Layout/Divider/Divider.js +7 -0
  153. package/dist/components/Layout/Frame/Frame.d.ts +12 -0
  154. package/dist/components/Layout/Frame/Frame.d.ts.map +1 -0
  155. package/dist/components/Layout/Frame/Frame.js +7 -0
  156. package/dist/components/Layout/Grid/Grid.d.ts +10 -0
  157. package/dist/components/Layout/Grid/Grid.d.ts.map +1 -0
  158. package/dist/components/Layout/Grid/Grid.js +9 -0
  159. package/dist/components/Layout/Group/Group.d.ts +10 -0
  160. package/dist/components/Layout/Group/Group.d.ts.map +1 -0
  161. package/dist/components/Layout/Group/Group.js +6 -0
  162. package/dist/components/Layout/Loader/Loader.d.ts +8 -0
  163. package/dist/components/Layout/Loader/Loader.d.ts.map +1 -0
  164. package/dist/components/Layout/Loader/Loader.js +6 -0
  165. package/dist/components/Layout/SectionCard/SectionCard.d.ts +11 -0
  166. package/dist/components/Layout/SectionCard/SectionCard.d.ts.map +1 -0
  167. package/dist/components/Layout/SectionCard/SectionCard.js +13 -0
  168. package/dist/components/Layout/Stack/Stack.d.ts +10 -0
  169. package/dist/components/Layout/Stack/Stack.d.ts.map +1 -0
  170. package/dist/components/Layout/Stack/Stack.js +6 -0
  171. package/dist/components/Layout/Stack/Stack.stories.d.ts +9 -0
  172. package/dist/components/Layout/Stack/Stack.stories.d.ts.map +1 -0
  173. package/dist/components/Layout/Stack/Stack.stories.js +108 -0
  174. package/dist/components/Layout/Tabs/Tabs.d.ts +17 -0
  175. package/dist/components/Layout/Tabs/Tabs.d.ts.map +1 -0
  176. package/dist/components/Layout/Tabs/Tabs.js +48 -0
  177. package/dist/components/Misc/IconBadge/IconBadge.d.ts +8 -0
  178. package/dist/components/Misc/IconBadge/IconBadge.d.ts.map +1 -0
  179. package/dist/components/Misc/IconBadge/IconBadge.js +28 -0
  180. package/dist/components/Misc/Transition/Transition.d.ts +4 -0
  181. package/dist/components/Misc/Transition/Transition.d.ts.map +1 -0
  182. package/dist/components/Misc/Transition/Transition.js +6 -0
  183. package/dist/components/Typography/CollapsibleText.js +4 -4
  184. package/dist/components/Typography/Formula.d.ts.map +1 -1
  185. package/dist/components/Typography/Formula.js +2 -6
  186. package/dist/components/Typography/Fraction.js +2 -2
  187. package/dist/components/Typography/Text.d.ts.map +1 -1
  188. package/dist/components/Typography/Text.js +0 -2
  189. package/dist/components/index.d.ts +32 -32
  190. package/dist/components/index.d.ts.map +1 -1
  191. package/dist/components/index.js +32 -32
  192. package/dist/constants/index.d.ts +1 -0
  193. package/dist/constants/index.d.ts.map +1 -1
  194. package/dist/constants/index.js +1 -0
  195. package/dist/hooks/useConfirmationModal.d.ts.map +1 -1
  196. package/dist/hooks/useConfirmationModal.js +6 -6
  197. package/dist/hooks/useInfoModal.d.ts.map +1 -1
  198. package/dist/hooks/useInfoModal.js +4 -4
  199. package/dist/utils/index.d.ts +1 -1
  200. package/dist/utils/index.d.ts.map +1 -1
  201. package/dist/utils/index.js +1 -1
  202. package/dist/utils/select.d.ts +1 -0
  203. package/dist/utils/select.d.ts.map +1 -1
  204. package/dist/utils/select.js +18 -0
  205. package/package.json +10 -2
@@ -0,0 +1,219 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { TextInput } from './TextInput';
3
+ import { Group } from '../../../Layout/Group/Group';
4
+ const meta = {
5
+ title: 'Components/Inputs/TextInputs/TextInput',
6
+ component: TextInput,
7
+ parameters: {
8
+ layout: 'centered',
9
+ },
10
+ argTypes: {
11
+ size: {
12
+ control: { type: 'select' },
13
+ options: ['sm', 'md', 'lg'],
14
+ description: 'Controls the text input size',
15
+ table: {
16
+ type: { summary: "'sm' | 'md' | 'lg'" },
17
+ defaultValue: { summary: "'md'" },
18
+ },
19
+ },
20
+ placeholder: {
21
+ control: { type: 'text' },
22
+ description: 'Placeholder text',
23
+ table: {
24
+ type: { summary: 'string' },
25
+ },
26
+ },
27
+ label: {
28
+ control: { type: 'text' },
29
+ description: 'Text input label',
30
+ table: {
31
+ type: { summary: 'string' },
32
+ },
33
+ },
34
+ description: {
35
+ control: { type: 'text' },
36
+ description: 'Description text',
37
+ table: {
38
+ type: { summary: 'string' },
39
+ },
40
+ },
41
+ error: {
42
+ control: { type: 'text' },
43
+ description: 'Error message',
44
+ table: {
45
+ type: { summary: 'string' },
46
+ },
47
+ },
48
+ disabled: {
49
+ control: { type: 'boolean' },
50
+ description: 'Disabled state',
51
+ table: {
52
+ type: { summary: 'boolean' },
53
+ defaultValue: { summary: 'false' },
54
+ },
55
+ },
56
+ required: {
57
+ control: { type: 'boolean' },
58
+ description: 'Required field',
59
+ table: {
60
+ type: { summary: 'boolean' },
61
+ defaultValue: { summary: 'false' },
62
+ },
63
+ },
64
+ fullWidth: {
65
+ control: { type: 'boolean' },
66
+ description: 'Full width of container',
67
+ table: {
68
+ type: { summary: 'boolean' },
69
+ defaultValue: { summary: 'false' },
70
+ },
71
+ },
72
+ width: {
73
+ control: { type: 'text' },
74
+ description: 'Custom width',
75
+ table: {
76
+ type: { summary: 'string | number' },
77
+ },
78
+ },
79
+ type: {
80
+ control: { type: 'select' },
81
+ options: ['text', 'email', 'password', 'number', 'tel', 'url', 'search'],
82
+ description: 'Input type',
83
+ table: {
84
+ type: { summary: 'string' },
85
+ defaultValue: { summary: "'text'" },
86
+ },
87
+ },
88
+ styles: {
89
+ control: { type: 'object' },
90
+ description: 'Custom styles object',
91
+ table: {
92
+ type: { summary: 'Record<string, CSSObject>' },
93
+ },
94
+ },
95
+ onChange: {
96
+ action: 'changed',
97
+ description: 'Change handler function',
98
+ table: {
99
+ type: { summary: '(event: React.ChangeEvent<HTMLInputElement>) => void' },
100
+ },
101
+ },
102
+ },
103
+ };
104
+ export default meta;
105
+ export const Default = {
106
+ args: {
107
+ label: 'Full Name',
108
+ placeholder: 'Enter your full name',
109
+ size: 'md',
110
+ disabled: false,
111
+ required: false,
112
+ fullWidth: false,
113
+ type: 'text',
114
+ },
115
+ parameters: {
116
+ docs: {
117
+ source: {
118
+ code: `<TextInput
119
+ label="Full Name"
120
+ placeholder="Enter your full name"
121
+ value={name}
122
+ onChange={(event) => setName(event.currentTarget.value)}
123
+ />`,
124
+ },
125
+ },
126
+ },
127
+ };
128
+ export const Variants = {
129
+ render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(TextInput, { label: "Basic Text Input" }), _jsx(TextInput, { label: "With Placeholder", placeholder: "Enter your text here" }), _jsx(TextInput, { label: "With Description", description: "This is a description" })] })),
130
+ parameters: {
131
+ docs: {
132
+ source: {
133
+ code: false,
134
+ },
135
+ },
136
+ },
137
+ };
138
+ export const Sizes = {
139
+ render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(TextInput, { size: "sm", label: "Small Input", placeholder: "Small text input" }), _jsx(TextInput, { size: "md", label: "Medium Input (Default)", placeholder: "Medium text input" }), _jsx(TextInput, { size: "lg", label: "Large Input", placeholder: "Large text input" })] })),
140
+ parameters: {
141
+ docs: {
142
+ source: {
143
+ code: `<TextInput size="sm" label="Small Input" placeholder="Small text input" />
144
+ <TextInput size="lg" label="Large Input" placeholder="Large text input" />`,
145
+ },
146
+ },
147
+ },
148
+ };
149
+ export const States = {
150
+ render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(TextInput, { label: "Normal Text Input" }), _jsx(TextInput, { label: "Disabled Text Input", disabled: true }), _jsx(TextInput, { label: "Required Text Input", required: true }), _jsx(TextInput, { label: "Text Input with Description", description: "Please enter your information" }), _jsx(TextInput, { label: "Text Input with Error", error: "This field is required" })] })),
151
+ parameters: {
152
+ docs: {
153
+ source: {
154
+ code: false,
155
+ },
156
+ },
157
+ },
158
+ };
159
+ export const AdditionalFunctionality = {
160
+ render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(TextInput, { label: "Email Address", description: "We'll never share your email", placeholder: "your@email.com", type: "email" }), _jsx(TextInput, { label: "Password", type: "password", placeholder: "Enter password", error: "Password must be at least 8 characters" }), _jsx(TextInput, { label: "Custom Width", placeholder: "Custom width input", width: "300px" })] })),
161
+ parameters: {
162
+ docs: {
163
+ source: {
164
+ code: `<TextInput
165
+ label="Email Address"
166
+ description="We'll never share your email"
167
+ placeholder="your@email.com"
168
+ type="email"
169
+ value={email}
170
+ onChange={handleEmailChange}
171
+ />
172
+
173
+ <TextInput
174
+ label="Password"
175
+ type="password"
176
+ placeholder="Enter password"
177
+ error="Password must be at least 8 characters"
178
+ value={password}
179
+ onChange={handlePasswordChange}
180
+ />`,
181
+ },
182
+ },
183
+ },
184
+ };
185
+ export const CustomStyling = {
186
+ render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(TextInput, { label: "Custom Styled Text Input", styles: {
187
+ input: {
188
+ borderColor: '#ff6b6b',
189
+ '&:focus': {
190
+ borderColor: '#ff6b6b',
191
+ boxShadow: '0 0 0 2px rgba(255, 107, 107, 0.2)',
192
+ },
193
+ },
194
+ label: {
195
+ color: '#ff6b6b',
196
+ fontWeight: 600,
197
+ },
198
+ } }), _jsx(TextInput, { label: "Another Custom Style", styles: {
199
+ input: {
200
+ backgroundColor: '#f8f9fa',
201
+ borderColor: '#4CAF50',
202
+ '&:focus': {
203
+ borderColor: '#4CAF50',
204
+ boxShadow: '0 0 0 2px rgba(76, 175, 80, 0.2)',
205
+ },
206
+ },
207
+ label: {
208
+ color: '#4CAF50',
209
+ fontSize: '16px',
210
+ },
211
+ } })] })),
212
+ parameters: {
213
+ docs: {
214
+ source: {
215
+ code: false,
216
+ },
217
+ },
218
+ },
219
+ };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { SimpleGridProps } from '@mantine/core';
3
+ interface AutoGridProps extends SimpleGridProps {
4
+ children: React.ReactNode;
5
+ }
6
+ declare const AutoGrid: ({ children, ...props }: AutoGridProps) => import("react/jsx-runtime").JSX.Element;
7
+ export { AutoGrid };
8
+ //# sourceMappingURL=AutoGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/AutoGrid/AutoGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAE5D,UAAU,aAAc,SAAQ,eAAe;IAC7C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,QAAQ,GAAI,wBAAwB,aAAa,4CAEtD,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { SimpleGrid } from '@mantine/core';
3
+ const AutoGrid = ({ children, ...props }) => {
4
+ return _jsx(SimpleGrid, { ...props, children: children });
5
+ };
6
+ export { AutoGrid };
@@ -0,0 +1,10 @@
1
+ import { BoxProps as MantineBoxProps } from '@mantine/core';
2
+ import { CSSObject } from '@mantine/styles';
3
+ interface BoxProps extends MantineBoxProps {
4
+ width?: string | number;
5
+ onClick?: () => void;
6
+ styles?: Record<string, CSSObject>;
7
+ }
8
+ declare const Box: ({ width, styles, onClick, ...props }: BoxProps) => import("react/jsx-runtime").JSX.Element;
9
+ export { Box };
10
+ //# sourceMappingURL=Box.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
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 });
5
+ };
6
+ export { Box };
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Box } from './Box';
3
+ declare const meta: Meta<typeof Box>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Alignment: Story;
8
+ export declare const CustomStyling: Story;
9
+ //# sourceMappingURL=Box.stories.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,121 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box } from './Box';
3
+ import { Group } from '../Group/Group';
4
+ const meta = {
5
+ title: 'Components/Layout/Box',
6
+ component: Box,
7
+ argTypes: {
8
+ width: {
9
+ control: { type: 'text' },
10
+ 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
+ },
22
+ onClick: {
23
+ action: 'clicked',
24
+ description: 'Click handler function',
25
+ table: {
26
+ type: { summary: '() => void' },
27
+ },
28
+ },
29
+ },
30
+ };
31
+ export default meta;
32
+ export const Default = {
33
+ 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
+ },
90
+ },
91
+ },
92
+ };
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" })] })),
114
+ parameters: {
115
+ docs: {
116
+ source: {
117
+ code: false,
118
+ },
119
+ },
120
+ },
121
+ };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { CardProps as MantineCardProps } from '@mantine/core';
3
+ export interface CardProps extends MantineCardProps {
4
+ children: React.ReactNode;
5
+ animate?: boolean;
6
+ }
7
+ export declare const Card: ({ children, animate, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=Card.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Card as MantineCard } from '@mantine/core';
3
+ export const Card = ({ children, animate = false, ...props }) => {
4
+ const hoverAnimation = {
5
+ style: { transition: 'transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out' },
6
+ onMouseEnter: (e) => {
7
+ e.currentTarget.style.transform = 'translateY(-5px)';
8
+ e.currentTarget.style.boxShadow = '0px 2px 8px 0px rgba(0, 0, 0, 0.05)';
9
+ },
10
+ onMouseLeave: (e) => {
11
+ e.currentTarget.style.transform = 'translateY(0)';
12
+ e.currentTarget.style.boxShadow = 'none';
13
+ },
14
+ };
15
+ return (_jsx(MantineCard, { p: "1.8rem", radius: "20px", withBorder: true, ...(animate ? hoverAnimation : {}), ...props, children: children }));
16
+ };
@@ -0,0 +1,9 @@
1
+ import { CenterProps as MantineCenterProps } from '@mantine/core';
2
+ import { CSSObject } from '@mantine/styles';
3
+ interface CenterProps extends MantineCenterProps {
4
+ width?: string | number;
5
+ styles?: Record<string, CSSObject>;
6
+ }
7
+ declare const Center: ({ width, styles, ...props }: CenterProps) => import("react/jsx-runtime").JSX.Element;
8
+ export { Center };
9
+ //# sourceMappingURL=Center.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Center as MantineCenter } from '@mantine/core';
3
+ const Center = ({ width, styles, ...props }) => {
4
+ return _jsx(MantineCenter, { w: width, styles: styles, ...props });
5
+ };
6
+ export { Center };
@@ -0,0 +1,10 @@
1
+ import { DividerProps as MantineDividerProps } from '@mantine/core';
2
+ import { CSSObject } from '@mantine/styles';
3
+ interface DividerProps extends MantineDividerProps {
4
+ width?: string | number;
5
+ styles?: Record<string, CSSObject>;
6
+ color?: string;
7
+ }
8
+ declare const Divider: ({ width, styles, color, ...props }: DividerProps) => import("react/jsx-runtime").JSX.Element;
9
+ export { Divider };
10
+ //# sourceMappingURL=Divider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Divider/Divider.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6B,YAAY,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,UAAU,YAAa,SAAQ,mBAAmB;IAChD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,OAAO,GAAI,oCAA2D,YAAY,4CAEvF,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Divider as MantineDivider } from '@mantine/core';
3
+ import { neutral } from '../../../constants/colors';
4
+ const Divider = ({ width = '100%', styles, color = neutral[50], ...props }) => {
5
+ return _jsx(MantineDivider, { color: color, w: width, styles: styles, ...props });
6
+ };
7
+ export { Divider };
@@ -0,0 +1,12 @@
1
+ import { CSSObject } from '@mantine/core';
2
+ import { ReactNode } from 'react';
3
+ interface FrameProps {
4
+ title: string;
5
+ subtitle?: string;
6
+ children: ReactNode;
7
+ width?: string | number;
8
+ styles?: Record<string, CSSObject>;
9
+ }
10
+ declare const Frame: ({ title, subtitle, children, width, styles }: FrameProps) => import("react/jsx-runtime").JSX.Element;
11
+ export { Frame };
12
+ //# sourceMappingURL=Frame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Frame.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Frame/Frame.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,UAAU,UAAU;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,QAAA,MAAM,KAAK,GAAI,8CAA8C,UAAU,4CAUtE,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Stack } from '../Stack/Stack';
3
+ import { Title } from '../../Typography/Title';
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] }));
6
+ };
7
+ export { Frame };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { GridProps as MantineGridProps } from '@mantine/core';
3
+ interface GridProps extends MantineGridProps {
4
+ children: React.ReactNode;
5
+ }
6
+ declare const Grid: (({ children, ...props }: GridProps) => import("react/jsx-runtime").JSX.Element) & {
7
+ Col: React.ForwardRefExoticComponent<import("@mantine/core").ColProps & React.RefAttributes<HTMLDivElement>>;
8
+ };
9
+ export { Grid };
10
+ //# sourceMappingURL=Grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Grid/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAuB,SAAS,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEnF,UAAU,SAAU,SAAQ,gBAAgB;IAC1C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAMD,QAAA,MAAM,IAAI,4BAJqC,SAAS;;CAMtD,CAAC;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Grid as MantineGrid } from '@mantine/core';
3
+ const GridComponent = ({ children, ...props }) => {
4
+ return _jsx(MantineGrid, { ...props, children: children });
5
+ };
6
+ const Grid = Object.assign(GridComponent, {
7
+ Col: MantineGrid.Col,
8
+ });
9
+ export { Grid };
@@ -0,0 +1,10 @@
1
+ import { GroupProps as MantineGroupProps } from '@mantine/core';
2
+ import { CSSObject } from '@mantine/styles';
3
+ interface GroupProps extends MantineGroupProps {
4
+ width?: string | number;
5
+ styles?: Record<string, CSSObject>;
6
+ gap?: string;
7
+ }
8
+ declare const Group: ({ width, gap, styles, ...props }: GroupProps) => import("react/jsx-runtime").JSX.Element;
9
+ export { Group };
10
+ //# sourceMappingURL=Group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Group/Group.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyB,UAAU,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,UAAU,UAAW,SAAQ,iBAAiB;IAC5C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,KAAK,GAAI,kCAAkC,UAAU,4CAE1D,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Group as MantineGroup } from '@mantine/core';
3
+ const Group = ({ width, gap, styles, ...props }) => {
4
+ return _jsx(MantineGroup, { w: width, spacing: gap, styles: styles, ...props });
5
+ };
6
+ export { Group };
@@ -0,0 +1,8 @@
1
+ import { LoaderProps as MantineLoaderProps } from '@mantine/core';
2
+ import { CSSObject } from '@mantine/styles';
3
+ interface LoaderProps extends MantineLoaderProps {
4
+ styles?: Record<string, CSSObject>;
5
+ }
6
+ declare const Loader: ({ styles, ...props }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
7
+ export { Loader };
8
+ //# sourceMappingURL=Loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Loader/Loader.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,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,QAAA,MAAM,MAAM,GAAI,sBAAsB,WAAW,4CAEhD,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Loader as MantineLoader } from '@mantine/core';
3
+ const Loader = ({ styles, ...props }) => {
4
+ return _jsx(MantineLoader, { styles: styles, ...props });
5
+ };
6
+ export { Loader };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { CardProps as MantineCardProps } from '@mantine/core';
3
+ import { colors } from '../../../constants/colors';
4
+ export interface SectionCardProps extends Omit<MantineCardProps, 'children'> {
5
+ title: string;
6
+ subtitle?: string;
7
+ children: React.ReactNode;
8
+ color?: keyof typeof colors;
9
+ }
10
+ export declare const SectionCard: ({ title, subtitle, children, color, ...props }: SectionCardProps) => import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=SectionCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionCard.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/SectionCard/SectionCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAuB,SAAS,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAInD,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,WAAW,GAAI,gDAA4D,gBAAgB,4CAsBvG,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Card as MantineCard } from '@mantine/core';
3
+ import { Stack } from '../Stack/Stack';
4
+ import { Title } from '../../Typography/Title';
5
+ import { Box } from '../Box/Box';
6
+ export const SectionCard = ({ title, subtitle, children, color = 'primary', ...props }) => {
7
+ return (_jsxs(MantineCard, { radius: "20px", shadow: "lg", withBorder: true, padding: 0, ...props, children: [_jsx(Box, { sx: {
8
+ // background: `linear-gradient(to right, ${colors[color][300]}, ${colors[color][200]})`,
9
+ backgroundColor: 'white',
10
+ padding: '1.6rem 2rem 0 2rem',
11
+ borderRadius: '20px 20px 0 0',
12
+ }, children: _jsxs(Stack, { gap: "0.25rem", children: [_jsx(Title, { variant: "cardHeader", children: title }), subtitle && _jsx(Title, { variant: "cardSubheader", children: subtitle })] }) }), _jsx(Box, { sx: { padding: '2rem 3.2rem 3.2rem 3.2rem' }, children: children })] }));
13
+ };
@@ -0,0 +1,10 @@
1
+ import { StackProps as MantineStackProps } from '@mantine/core';
2
+ import { CSSObject } from '@mantine/styles';
3
+ interface StackProps extends MantineStackProps {
4
+ width?: string | number;
5
+ gap?: string;
6
+ styles?: Record<string, CSSObject>;
7
+ }
8
+ declare const Stack: ({ width, gap, styles, ...props }: StackProps) => import("react/jsx-runtime").JSX.Element;
9
+ export { Stack };
10
+ //# sourceMappingURL=Stack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Stack/Stack.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyB,UAAU,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,UAAU,UAAW,SAAQ,iBAAiB;IAC5C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,QAAA,MAAM,KAAK,GAAI,kCAAkC,UAAU,4CAE1D,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Stack as MantineStack } from '@mantine/core';
3
+ const Stack = ({ width, gap, styles, ...props }) => {
4
+ return _jsx(MantineStack, { w: width, spacing: gap, styles: styles, ...props });
5
+ };
6
+ export { Stack };
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Stack } from './Stack';
3
+ declare const meta: Meta<typeof Stack>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const JustifyAlignContent: Story;
8
+ export declare const SpacingGap: Story;
9
+ //# sourceMappingURL=Stack.stories.d.ts.map