@atom-learning/components 1.18.0 → 1.19.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.
- package/CHANGELOG.md +26 -7
- package/dist/components/accordion/AccordionContent.js +1 -1
- package/dist/components/accordion/AccordionItem.js +1 -1
- package/dist/components/action-icon/ActionIcon.js +1 -1
- package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
- package/dist/components/badge/Badge.js +1 -1
- package/dist/components/button/Button.js +1 -1
- package/dist/components/calendar/Calendar.js +1 -1
- package/dist/components/carousel/CarouselArrows.js +1 -1
- package/dist/components/checkbox/Checkbox.js +1 -1
- package/dist/components/checkbox-field/CheckboxField.js +1 -1
- package/dist/components/combobox/Combobox.js +1 -1
- package/dist/components/date-field/DateField.js +1 -1
- package/dist/components/date-input/DateInput.js +1 -1
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/divider/Divider.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +1 -1
- package/dist/components/field-wrapper/FieldDescription.js +1 -1
- package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
- package/dist/components/file-input/FileInput.js +1 -1
- package/dist/components/grid/Grid.js +1 -1
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/input-field/InputField.js +1 -1
- package/dist/components/label/Label.js +1 -1
- package/dist/components/link/Link.js +1 -1
- package/dist/components/markdown-content/MarkdownContent.js +1 -1
- package/dist/components/markdown-content/components/MarkdownCode.js +1 -1
- package/dist/components/markdown-content/components/MarkdownEmphasis.js +1 -1
- package/dist/components/markdown-content/components/MarkdownHeading.js +1 -1
- package/dist/components/markdown-content/components/MarkdownImage.js +1 -1
- package/dist/components/markdown-content/components/MarkdownLink.js +1 -1
- package/dist/components/markdown-content/components/MarkdownListItem.js +1 -1
- package/dist/components/markdown-content/components/MarkdownParagraph.js +1 -1
- package/dist/components/markdown-content/components/MarkdownStrong.js +1 -1
- package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -1
- package/dist/components/notification-badge/NotificationBadge.js +1 -1
- package/dist/components/password-field/PasswordField.js +1 -1
- package/dist/components/radio-button-field/RadioButtonField.js +1 -1
- package/dist/components/radio-card/RadioCardGroup.js +1 -1
- package/dist/components/search-input/SearchInput.js +1 -1
- package/dist/components/select-field/SelectField.js +1 -1
- package/dist/components/slider/Slider.js +1 -1
- package/dist/components/slider-field/SliderField.js +1 -1
- package/dist/components/stack/Stack.js +1 -1
- package/dist/components/stack-content/StackContent.js +1 -1
- package/dist/components/stepper/Stepper.js +1 -1
- package/dist/components/stepper/StepperStepBack.js +1 -1
- package/dist/components/stepper/StepperStepBullet.d.ts +531 -0
- package/dist/components/stepper/StepperStepBullet.js +1 -0
- package/dist/components/stepper/StepperStepContainer.d.ts +532 -0
- package/dist/components/stepper/StepperStepContainer.js +1 -0
- package/dist/components/stepper/StepperStepForward.js +1 -1
- package/dist/components/stepper/StepperStepLabel.d.ts +541 -0
- package/dist/components/stepper/StepperStepLabel.js +1 -0
- package/dist/components/stepper/StepperSteps.js +1 -1
- package/dist/components/stepper/stepper-context/StepperContext.js +1 -1
- package/dist/components/stepper/types.d.ts +22 -6
- package/dist/components/stepper/types.js +1 -0
- package/dist/components/switch/Switch.js +1 -1
- package/dist/components/table/TableBody.js +1 -1
- package/dist/components/table/TableHeader.js +1 -1
- package/dist/components/tabs/TabTrigger.js +1 -1
- package/dist/components/tabs/Tabs.js +1 -1
- package/dist/components/tabs/utils.js +1 -1
- package/dist/components/textarea-field/TextareaField.js +1 -1
- package/dist/components/toast/Toast.js +1 -1
- package/dist/components/toast/ToastProvider.js +1 -1
- package/dist/components/toggle-group/ToggleGroupButton.js +1 -1
- package/dist/components/toggle-group/ToggleGroupRoot.js +1 -1
- package/dist/components/validation-error/ValidationError.js +1 -1
- package/dist/docgen.json +1 -1
- package/dist/docs/Stepper.mdx +55 -8
- package/dist/index.cjs.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StepperStepLabel: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<Omit<Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "key" | keyof import("react").HTMLAttributes<HTMLParagraphElement>> & {
|
|
3
|
+
ref?: ((instance: HTMLParagraphElement | null) => void) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
|
|
4
|
+
}, "size" | "css"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
5
|
+
size?: ("sm" | "md" | "lg" | "xl" | "xs") | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
sm: string;
|
|
8
|
+
md: string;
|
|
9
|
+
lg: string;
|
|
10
|
+
xl: string;
|
|
11
|
+
reducedMotion: string;
|
|
12
|
+
allowMotion: string;
|
|
13
|
+
hover: string;
|
|
14
|
+
}> & {
|
|
15
|
+
css?: import("@stitches/react/types/css-util").CSS<{
|
|
16
|
+
sm: string;
|
|
17
|
+
md: string;
|
|
18
|
+
lg: string;
|
|
19
|
+
xl: string;
|
|
20
|
+
reducedMotion: string;
|
|
21
|
+
allowMotion: string;
|
|
22
|
+
hover: string;
|
|
23
|
+
}, {
|
|
24
|
+
colors: {
|
|
25
|
+
textForeground: any;
|
|
26
|
+
textSubtle: any;
|
|
27
|
+
textPlaceholder: any;
|
|
28
|
+
background: any;
|
|
29
|
+
backgroundAccent: any;
|
|
30
|
+
tonal50: any;
|
|
31
|
+
tonal100: any;
|
|
32
|
+
tonal200: any;
|
|
33
|
+
tonal300: any;
|
|
34
|
+
tonal400: any;
|
|
35
|
+
tonal500: any;
|
|
36
|
+
tonal600: any;
|
|
37
|
+
alpha100: any;
|
|
38
|
+
alpha150: any;
|
|
39
|
+
alpha200: any;
|
|
40
|
+
alpha250: any;
|
|
41
|
+
alpha600: any;
|
|
42
|
+
primaryLight: any;
|
|
43
|
+
primary: any;
|
|
44
|
+
primaryMid: any;
|
|
45
|
+
primaryDark: any;
|
|
46
|
+
secondary: any;
|
|
47
|
+
brandRed: any;
|
|
48
|
+
brandRedAccent: any;
|
|
49
|
+
brandGreen: any;
|
|
50
|
+
brandGreenAccent: any;
|
|
51
|
+
brandPurple: any;
|
|
52
|
+
brandPurpleAccent: any;
|
|
53
|
+
brandYellow: any;
|
|
54
|
+
brandYellowAccent: any;
|
|
55
|
+
successLight: any;
|
|
56
|
+
success: any;
|
|
57
|
+
successMid: any;
|
|
58
|
+
successDark: any;
|
|
59
|
+
dangerLight: any;
|
|
60
|
+
danger: any;
|
|
61
|
+
dangerMid: any;
|
|
62
|
+
dangerDark: any;
|
|
63
|
+
warningLight: any;
|
|
64
|
+
warning: any;
|
|
65
|
+
warningMid: any;
|
|
66
|
+
warningDark: any;
|
|
67
|
+
subjectEnglish: any;
|
|
68
|
+
subjectMaths: any;
|
|
69
|
+
subjectScience: any;
|
|
70
|
+
subjectVerbalReasoning: any;
|
|
71
|
+
subjectNonVerbalReasoning: any;
|
|
72
|
+
subjectCreativeWriting: any;
|
|
73
|
+
subjectExamSkills: any;
|
|
74
|
+
};
|
|
75
|
+
space: {
|
|
76
|
+
"0": any;
|
|
77
|
+
"1": any;
|
|
78
|
+
"2": any;
|
|
79
|
+
"3": any;
|
|
80
|
+
"4": any;
|
|
81
|
+
"5": any;
|
|
82
|
+
"6": any;
|
|
83
|
+
"7": any;
|
|
84
|
+
"8": any;
|
|
85
|
+
"9": any;
|
|
86
|
+
};
|
|
87
|
+
fontSizes: {
|
|
88
|
+
xs: any;
|
|
89
|
+
sm: any;
|
|
90
|
+
md: any;
|
|
91
|
+
lg: any;
|
|
92
|
+
xl: any;
|
|
93
|
+
"2xl": any;
|
|
94
|
+
"3xl": any;
|
|
95
|
+
"4xl": any;
|
|
96
|
+
};
|
|
97
|
+
fonts: {
|
|
98
|
+
sans: any;
|
|
99
|
+
mono: any;
|
|
100
|
+
display: any;
|
|
101
|
+
body: any;
|
|
102
|
+
};
|
|
103
|
+
sizes: {
|
|
104
|
+
"0": any;
|
|
105
|
+
"1": any;
|
|
106
|
+
"2": any;
|
|
107
|
+
"3": any;
|
|
108
|
+
"4": any;
|
|
109
|
+
"5": any;
|
|
110
|
+
"6": any;
|
|
111
|
+
"7": any;
|
|
112
|
+
"8": any;
|
|
113
|
+
};
|
|
114
|
+
radii: {
|
|
115
|
+
"0": any;
|
|
116
|
+
"1": any;
|
|
117
|
+
"2": any;
|
|
118
|
+
"3": any;
|
|
119
|
+
round: any;
|
|
120
|
+
};
|
|
121
|
+
shadows: {
|
|
122
|
+
"0": any;
|
|
123
|
+
"1": any;
|
|
124
|
+
"2": any;
|
|
125
|
+
"3": any;
|
|
126
|
+
};
|
|
127
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
128
|
+
bg: (value: {
|
|
129
|
+
readonly [$$PropertyValue]: "background";
|
|
130
|
+
}) => {
|
|
131
|
+
background: {
|
|
132
|
+
readonly [$$PropertyValue]: "background";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
inset: (value: string | number | {
|
|
136
|
+
readonly [$$ScaleValue]: "space";
|
|
137
|
+
}) => {
|
|
138
|
+
top: string | number | {
|
|
139
|
+
readonly [$$ScaleValue]: "space";
|
|
140
|
+
};
|
|
141
|
+
right: string | number | {
|
|
142
|
+
readonly [$$ScaleValue]: "space";
|
|
143
|
+
};
|
|
144
|
+
bottom: string | number | {
|
|
145
|
+
readonly [$$ScaleValue]: "space";
|
|
146
|
+
};
|
|
147
|
+
left: string | number | {
|
|
148
|
+
readonly [$$ScaleValue]: "space";
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
size: (value: string | number | {
|
|
152
|
+
readonly [$$ScaleValue]: "size";
|
|
153
|
+
}) => {
|
|
154
|
+
height: string | number | {
|
|
155
|
+
readonly [$$ScaleValue]: "size";
|
|
156
|
+
};
|
|
157
|
+
width: string | number | {
|
|
158
|
+
readonly [$$ScaleValue]: "size";
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
p: (value: string | number | {
|
|
162
|
+
readonly [$$ScaleValue]: "space";
|
|
163
|
+
}) => {
|
|
164
|
+
padding: string | number | {
|
|
165
|
+
readonly [$$ScaleValue]: "space";
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
pt: (value: string | number | {
|
|
169
|
+
readonly [$$ScaleValue]: "space";
|
|
170
|
+
}) => {
|
|
171
|
+
paddingTop: string | number | {
|
|
172
|
+
readonly [$$ScaleValue]: "space";
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
pr: (value: string | number | {
|
|
176
|
+
readonly [$$ScaleValue]: "space";
|
|
177
|
+
}) => {
|
|
178
|
+
paddingRight: string | number | {
|
|
179
|
+
readonly [$$ScaleValue]: "space";
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
pb: (value: string | number | {
|
|
183
|
+
readonly [$$ScaleValue]: "space";
|
|
184
|
+
}) => {
|
|
185
|
+
paddingBottom: string | number | {
|
|
186
|
+
readonly [$$ScaleValue]: "space";
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
pl: (value: string | number | {
|
|
190
|
+
readonly [$$ScaleValue]: "space";
|
|
191
|
+
}) => {
|
|
192
|
+
paddingLeft: string | number | {
|
|
193
|
+
readonly [$$ScaleValue]: "space";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
px: (value: string | number | {
|
|
197
|
+
readonly [$$ScaleValue]: "space";
|
|
198
|
+
}) => {
|
|
199
|
+
paddingLeft: string | number | {
|
|
200
|
+
readonly [$$ScaleValue]: "space";
|
|
201
|
+
};
|
|
202
|
+
paddingRight: string | number | {
|
|
203
|
+
readonly [$$ScaleValue]: "space";
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
py: (value: string | number | {
|
|
207
|
+
readonly [$$ScaleValue]: "space";
|
|
208
|
+
}) => {
|
|
209
|
+
paddingTop: string | number | {
|
|
210
|
+
readonly [$$ScaleValue]: "space";
|
|
211
|
+
};
|
|
212
|
+
paddingBottom: string | number | {
|
|
213
|
+
readonly [$$ScaleValue]: "space";
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
m: (value: string | number | {
|
|
217
|
+
readonly [$$ScaleValue]: "space";
|
|
218
|
+
}) => {
|
|
219
|
+
margin: string | number | {
|
|
220
|
+
readonly [$$ScaleValue]: "space";
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
mt: (value: string | number | {
|
|
224
|
+
readonly [$$ScaleValue]: "space";
|
|
225
|
+
}) => {
|
|
226
|
+
marginTop: string | number | {
|
|
227
|
+
readonly [$$ScaleValue]: "space";
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
mr: (value: string | number | {
|
|
231
|
+
readonly [$$ScaleValue]: "space";
|
|
232
|
+
}) => {
|
|
233
|
+
marginRight: string | number | {
|
|
234
|
+
readonly [$$ScaleValue]: "space";
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
mb: (value: string | number | {
|
|
238
|
+
readonly [$$ScaleValue]: "space";
|
|
239
|
+
}) => {
|
|
240
|
+
marginBottom: string | number | {
|
|
241
|
+
readonly [$$ScaleValue]: "space";
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
ml: (value: string | number | {
|
|
245
|
+
readonly [$$ScaleValue]: "space";
|
|
246
|
+
}) => {
|
|
247
|
+
marginLeft: string | number | {
|
|
248
|
+
readonly [$$ScaleValue]: "space";
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
mx: (value: string | number | {
|
|
252
|
+
readonly [$$ScaleValue]: "space";
|
|
253
|
+
}) => {
|
|
254
|
+
marginLeft: string | number | {
|
|
255
|
+
readonly [$$ScaleValue]: "space";
|
|
256
|
+
};
|
|
257
|
+
marginRight: string | number | {
|
|
258
|
+
readonly [$$ScaleValue]: "space";
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
my: (value: string | number | {
|
|
262
|
+
readonly [$$ScaleValue]: "space";
|
|
263
|
+
}) => {
|
|
264
|
+
marginTop: string | number | {
|
|
265
|
+
readonly [$$ScaleValue]: "space";
|
|
266
|
+
};
|
|
267
|
+
marginBottom: string | number | {
|
|
268
|
+
readonly [$$ScaleValue]: "space";
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
}> | undefined;
|
|
272
|
+
}, "as"> & {
|
|
273
|
+
as?: import("react").ElementType<any> | import("react").ComponentType<{}> | undefined;
|
|
274
|
+
}>, {
|
|
275
|
+
direction?: "horizontal" | "vertical" | undefined;
|
|
276
|
+
status?: "success" | "default" | "active" | "viewed" | undefined;
|
|
277
|
+
}, {
|
|
278
|
+
sm: string;
|
|
279
|
+
md: string;
|
|
280
|
+
lg: string;
|
|
281
|
+
xl: string;
|
|
282
|
+
reducedMotion: string;
|
|
283
|
+
allowMotion: string;
|
|
284
|
+
hover: string;
|
|
285
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
286
|
+
sm: string;
|
|
287
|
+
md: string;
|
|
288
|
+
lg: string;
|
|
289
|
+
xl: string;
|
|
290
|
+
reducedMotion: string;
|
|
291
|
+
allowMotion: string;
|
|
292
|
+
hover: string;
|
|
293
|
+
}, {
|
|
294
|
+
colors: {
|
|
295
|
+
textForeground: any;
|
|
296
|
+
textSubtle: any;
|
|
297
|
+
textPlaceholder: any;
|
|
298
|
+
background: any;
|
|
299
|
+
backgroundAccent: any;
|
|
300
|
+
tonal50: any;
|
|
301
|
+
tonal100: any;
|
|
302
|
+
tonal200: any;
|
|
303
|
+
tonal300: any;
|
|
304
|
+
tonal400: any;
|
|
305
|
+
tonal500: any;
|
|
306
|
+
tonal600: any;
|
|
307
|
+
alpha100: any;
|
|
308
|
+
alpha150: any;
|
|
309
|
+
alpha200: any;
|
|
310
|
+
alpha250: any;
|
|
311
|
+
alpha600: any;
|
|
312
|
+
primaryLight: any;
|
|
313
|
+
primary: any;
|
|
314
|
+
primaryMid: any;
|
|
315
|
+
primaryDark: any;
|
|
316
|
+
secondary: any;
|
|
317
|
+
brandRed: any;
|
|
318
|
+
brandRedAccent: any;
|
|
319
|
+
brandGreen: any;
|
|
320
|
+
brandGreenAccent: any;
|
|
321
|
+
brandPurple: any;
|
|
322
|
+
brandPurpleAccent: any;
|
|
323
|
+
brandYellow: any;
|
|
324
|
+
brandYellowAccent: any;
|
|
325
|
+
successLight: any;
|
|
326
|
+
success: any;
|
|
327
|
+
successMid: any;
|
|
328
|
+
successDark: any;
|
|
329
|
+
dangerLight: any;
|
|
330
|
+
danger: any;
|
|
331
|
+
dangerMid: any;
|
|
332
|
+
dangerDark: any;
|
|
333
|
+
warningLight: any;
|
|
334
|
+
warning: any;
|
|
335
|
+
warningMid: any;
|
|
336
|
+
warningDark: any;
|
|
337
|
+
subjectEnglish: any;
|
|
338
|
+
subjectMaths: any;
|
|
339
|
+
subjectScience: any;
|
|
340
|
+
subjectVerbalReasoning: any;
|
|
341
|
+
subjectNonVerbalReasoning: any;
|
|
342
|
+
subjectCreativeWriting: any;
|
|
343
|
+
subjectExamSkills: any;
|
|
344
|
+
};
|
|
345
|
+
space: {
|
|
346
|
+
"0": any;
|
|
347
|
+
"1": any;
|
|
348
|
+
"2": any;
|
|
349
|
+
"3": any;
|
|
350
|
+
"4": any;
|
|
351
|
+
"5": any;
|
|
352
|
+
"6": any;
|
|
353
|
+
"7": any;
|
|
354
|
+
"8": any;
|
|
355
|
+
"9": any;
|
|
356
|
+
};
|
|
357
|
+
fontSizes: {
|
|
358
|
+
xs: any;
|
|
359
|
+
sm: any;
|
|
360
|
+
md: any;
|
|
361
|
+
lg: any;
|
|
362
|
+
xl: any;
|
|
363
|
+
"2xl": any;
|
|
364
|
+
"3xl": any;
|
|
365
|
+
"4xl": any;
|
|
366
|
+
};
|
|
367
|
+
fonts: {
|
|
368
|
+
sans: any;
|
|
369
|
+
mono: any;
|
|
370
|
+
display: any;
|
|
371
|
+
body: any;
|
|
372
|
+
};
|
|
373
|
+
sizes: {
|
|
374
|
+
"0": any;
|
|
375
|
+
"1": any;
|
|
376
|
+
"2": any;
|
|
377
|
+
"3": any;
|
|
378
|
+
"4": any;
|
|
379
|
+
"5": any;
|
|
380
|
+
"6": any;
|
|
381
|
+
"7": any;
|
|
382
|
+
"8": any;
|
|
383
|
+
};
|
|
384
|
+
radii: {
|
|
385
|
+
"0": any;
|
|
386
|
+
"1": any;
|
|
387
|
+
"2": any;
|
|
388
|
+
"3": any;
|
|
389
|
+
round: any;
|
|
390
|
+
};
|
|
391
|
+
shadows: {
|
|
392
|
+
"0": any;
|
|
393
|
+
"1": any;
|
|
394
|
+
"2": any;
|
|
395
|
+
"3": any;
|
|
396
|
+
};
|
|
397
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
398
|
+
bg: (value: {
|
|
399
|
+
readonly [$$PropertyValue]: "background";
|
|
400
|
+
}) => {
|
|
401
|
+
background: {
|
|
402
|
+
readonly [$$PropertyValue]: "background";
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
inset: (value: string | number | {
|
|
406
|
+
readonly [$$ScaleValue]: "space";
|
|
407
|
+
}) => {
|
|
408
|
+
top: string | number | {
|
|
409
|
+
readonly [$$ScaleValue]: "space";
|
|
410
|
+
};
|
|
411
|
+
right: string | number | {
|
|
412
|
+
readonly [$$ScaleValue]: "space";
|
|
413
|
+
};
|
|
414
|
+
bottom: string | number | {
|
|
415
|
+
readonly [$$ScaleValue]: "space";
|
|
416
|
+
};
|
|
417
|
+
left: string | number | {
|
|
418
|
+
readonly [$$ScaleValue]: "space";
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
size: (value: string | number | {
|
|
422
|
+
readonly [$$ScaleValue]: "size";
|
|
423
|
+
}) => {
|
|
424
|
+
height: string | number | {
|
|
425
|
+
readonly [$$ScaleValue]: "size";
|
|
426
|
+
};
|
|
427
|
+
width: string | number | {
|
|
428
|
+
readonly [$$ScaleValue]: "size";
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
p: (value: string | number | {
|
|
432
|
+
readonly [$$ScaleValue]: "space";
|
|
433
|
+
}) => {
|
|
434
|
+
padding: string | number | {
|
|
435
|
+
readonly [$$ScaleValue]: "space";
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
pt: (value: string | number | {
|
|
439
|
+
readonly [$$ScaleValue]: "space";
|
|
440
|
+
}) => {
|
|
441
|
+
paddingTop: string | number | {
|
|
442
|
+
readonly [$$ScaleValue]: "space";
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
pr: (value: string | number | {
|
|
446
|
+
readonly [$$ScaleValue]: "space";
|
|
447
|
+
}) => {
|
|
448
|
+
paddingRight: string | number | {
|
|
449
|
+
readonly [$$ScaleValue]: "space";
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
pb: (value: string | number | {
|
|
453
|
+
readonly [$$ScaleValue]: "space";
|
|
454
|
+
}) => {
|
|
455
|
+
paddingBottom: string | number | {
|
|
456
|
+
readonly [$$ScaleValue]: "space";
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
pl: (value: string | number | {
|
|
460
|
+
readonly [$$ScaleValue]: "space";
|
|
461
|
+
}) => {
|
|
462
|
+
paddingLeft: string | number | {
|
|
463
|
+
readonly [$$ScaleValue]: "space";
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
px: (value: string | number | {
|
|
467
|
+
readonly [$$ScaleValue]: "space";
|
|
468
|
+
}) => {
|
|
469
|
+
paddingLeft: string | number | {
|
|
470
|
+
readonly [$$ScaleValue]: "space";
|
|
471
|
+
};
|
|
472
|
+
paddingRight: string | number | {
|
|
473
|
+
readonly [$$ScaleValue]: "space";
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
py: (value: string | number | {
|
|
477
|
+
readonly [$$ScaleValue]: "space";
|
|
478
|
+
}) => {
|
|
479
|
+
paddingTop: string | number | {
|
|
480
|
+
readonly [$$ScaleValue]: "space";
|
|
481
|
+
};
|
|
482
|
+
paddingBottom: string | number | {
|
|
483
|
+
readonly [$$ScaleValue]: "space";
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
m: (value: string | number | {
|
|
487
|
+
readonly [$$ScaleValue]: "space";
|
|
488
|
+
}) => {
|
|
489
|
+
margin: string | number | {
|
|
490
|
+
readonly [$$ScaleValue]: "space";
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
mt: (value: string | number | {
|
|
494
|
+
readonly [$$ScaleValue]: "space";
|
|
495
|
+
}) => {
|
|
496
|
+
marginTop: string | number | {
|
|
497
|
+
readonly [$$ScaleValue]: "space";
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
mr: (value: string | number | {
|
|
501
|
+
readonly [$$ScaleValue]: "space";
|
|
502
|
+
}) => {
|
|
503
|
+
marginRight: string | number | {
|
|
504
|
+
readonly [$$ScaleValue]: "space";
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
mb: (value: string | number | {
|
|
508
|
+
readonly [$$ScaleValue]: "space";
|
|
509
|
+
}) => {
|
|
510
|
+
marginBottom: string | number | {
|
|
511
|
+
readonly [$$ScaleValue]: "space";
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
ml: (value: string | number | {
|
|
515
|
+
readonly [$$ScaleValue]: "space";
|
|
516
|
+
}) => {
|
|
517
|
+
marginLeft: string | number | {
|
|
518
|
+
readonly [$$ScaleValue]: "space";
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
mx: (value: string | number | {
|
|
522
|
+
readonly [$$ScaleValue]: "space";
|
|
523
|
+
}) => {
|
|
524
|
+
marginLeft: string | number | {
|
|
525
|
+
readonly [$$ScaleValue]: "space";
|
|
526
|
+
};
|
|
527
|
+
marginRight: string | number | {
|
|
528
|
+
readonly [$$ScaleValue]: "space";
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
my: (value: string | number | {
|
|
532
|
+
readonly [$$ScaleValue]: "space";
|
|
533
|
+
}) => {
|
|
534
|
+
marginTop: string | number | {
|
|
535
|
+
readonly [$$ScaleValue]: "space";
|
|
536
|
+
};
|
|
537
|
+
marginBottom: string | number | {
|
|
538
|
+
readonly [$$ScaleValue]: "space";
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
}>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{styled as t}from"../../stitches.js";import{Text as e}from"../text/Text.js";const o=t(e,{fontWeight:600,textAlign:"center",variants:{direction:{vertical:{ml:"$3"},horizontal:{mt:"$3"}},status:{default:{color:"$tonal400",fontWeight:400},active:{color:"$primaryMid"},viewed:{color:"$primary"},success:{color:"$success"}}}});export{o as StepperStepLabel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import{Ok as E}from"@atom-learning/icons";import*as i from"react";import{styled as f}from"../../stitches.js";import{Flex as v}from"../flex/Flex.js";import{Icon as b}from"../icon/Icon.js";import{StepperStepLabel as C}from"./StepperStepLabel.js";import{StepperStepContainer as h}from"./StepperStepContainer.js";import{StepperStepBullet as $}from"./StepperStepBullet.js";import{useStepper as D}from"./stepper-context/StepperContext.js";import{Status as r}from"./types.js";const I=f(v,{justifyContent:"space-between",variants:{direction:{vertical:{flexDirection:"column"},horizontal:{flexDirection:"row",alignItems:"center"}}}}),g=({css:m})=>{const{steps:o,goToStep:p,activeStep:c,viewedSteps:a,allowSkip:l,direction:n}=D(),u=e=>{const t=o[e];return t.status?t.status:c===e?r.ACTIVE:a.includes(e)?r.VIEWED:r.DEFAULT},S=e=>{var t;const s=(t=o[e])==null?void 0:t.status;return s===r.SUCCESS?r.SUCCESS:s===r.VIEWED||e<Math.max(...a)?r.ACTIVE:r.DEFAULT};return i.createElement(I,{css:m,direction:n},o.map((e,t)=>{const s=u(t),d=S(t);return i.createElement(h,{key:`step_${t}`,direction:n,separator:d,css:n==="horizontal"?{width:`calc(100% / ${o.length})`}:{height:`calc(100% / ${o.length})`}},i.createElement($,{as:l?"button":"div",onClick:()=>l&&a.includes(t)?p==null?void 0:p(t):void 0,status:s,"aria-current":t===c?"step":void 0,"aria-label":e.label?"":`step ${t+1}`,"aria-labelledby":e.label?`step-${t}`:void 0,css:{cursor:l&&a.includes(t)?"pointer":"auto"}},e.status==="success"?i.createElement(b,{is:E}):t+1),e.label&&i.createElement(C,{as:"span",id:`step-${t}`,direction:n,status:s},e.label))}))};export{g as StepperSteps};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as o from"react";const
|
|
1
|
+
import*as o from"react";const u=o.createContext({steps:[],goToPreviousStep:()=>null,goToNextStep:()=>null,goToStep:()=>null,activeStep:0,viewedSteps:[],allowSkip:!1,direction:"horizontal"}),h=({children:r,stepCount:n,allowSkip:S,onComplete:s,onStepChange:p,direction:a,steps:c})=>{const[t,i]=o.useState(0),[v,d]=o.useState([0]),l=!n;o.useEffect(()=>{d(e=>e.includes(t)?e:[...e,t]),p==null||p(t)},[t,p]);const w=()=>{if(s&&t===n-1)return s();if(t<n-1)return i(e=>e+1)},f=()=>{i(e=>e-1)},g=e=>{i(e)};return o.createElement(u.Provider,{value:{steps:c||Array(n).fill(""),goToPreviousStep:l?void 0:f,goToNextStep:l?void 0:w,goToStep:l?void 0:g,activeStep:t,viewedSteps:v,allowSkip:S,direction:a}},r)},m=()=>{const r=o.useContext(u);if(!r)throw new Error("Ensure that you wrap any components with the root component Stepper");return r};export{h as StepperProvider,m as useStepper};
|
|
@@ -1,24 +1,41 @@
|
|
|
1
1
|
import { CSS } from '../../stitches';
|
|
2
|
+
export declare enum Status {
|
|
3
|
+
ACTIVE = "active",
|
|
4
|
+
VIEWED = "viewed",
|
|
5
|
+
SUCCESS = "success",
|
|
6
|
+
DEFAULT = "default"
|
|
7
|
+
}
|
|
8
|
+
export interface Step {
|
|
9
|
+
label?: string;
|
|
10
|
+
status: `${Status}`;
|
|
11
|
+
}
|
|
12
|
+
export declare type Direction = 'vertical' | 'horizontal';
|
|
2
13
|
export declare type Context = {
|
|
3
|
-
steps:
|
|
4
|
-
goToPreviousStep
|
|
5
|
-
goToNextStep
|
|
6
|
-
goToStep
|
|
14
|
+
steps: Step[];
|
|
15
|
+
goToPreviousStep?: () => void;
|
|
16
|
+
goToNextStep?: () => void;
|
|
17
|
+
goToStep?: (index: number) => void;
|
|
7
18
|
activeStep: number;
|
|
8
19
|
viewedSteps: number[];
|
|
9
20
|
allowSkip?: boolean;
|
|
21
|
+
direction?: Direction;
|
|
10
22
|
};
|
|
11
23
|
export declare type StepperProviderProps = {
|
|
12
24
|
stepCount: number;
|
|
13
25
|
allowSkip?: boolean;
|
|
14
26
|
onComplete?: () => void;
|
|
15
27
|
onStepChange?: (activeStep: number) => void;
|
|
28
|
+
direction?: Direction;
|
|
29
|
+
steps: Step[];
|
|
16
30
|
};
|
|
17
31
|
export interface IStepperProps {
|
|
18
|
-
|
|
32
|
+
css?: CSS;
|
|
33
|
+
stepCount?: number;
|
|
19
34
|
allowSkip?: boolean;
|
|
20
35
|
onComplete?: () => void;
|
|
21
36
|
onStepChange?: (activeStep: number) => void;
|
|
37
|
+
direction?: Direction;
|
|
38
|
+
steps?: Step[];
|
|
22
39
|
}
|
|
23
40
|
export interface IStepperNavigateProps {
|
|
24
41
|
label?: (currentStep?: number) => string;
|
|
@@ -26,5 +43,4 @@ export interface IStepperNavigateProps {
|
|
|
26
43
|
}
|
|
27
44
|
export interface IStepperStepsProps {
|
|
28
45
|
css?: CSS;
|
|
29
|
-
stepsWidth?: string;
|
|
30
46
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var E=(t=>(t.ACTIVE="active",t.VIEWED="viewed",t.SUCCESS="success",t.DEFAULT="default",t))(E||{});export{E as Status};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as o from"@radix-ui/react-switch";import*as r from"react";import{styled as
|
|
1
|
+
import*as o from"@radix-ui/react-switch";import*as r from"react";import{styled as a}from"../../stitches.js";const n=a(o.Root,{appearance:"none",backgroundColor:"$tonal200",border:"none",borderRadius:"$round",cursor:"pointer",display:"flex",overflow:"hidden",p:"$0",position:"relative",transition:"all 50ms ease-out",width:"$4","&:hover":{backgroundColor:"$tonal300"},"&:focus":{outline:"2px solid $primary",outlineOffset:"1px"},'&[data-state="checked"]':{backgroundColor:"$primary"},'&[data-state="checked"]:hover':{backgroundColor:"$primaryMid"}}),i=a(o.Thumb,{backgroundColor:"white",borderRadius:"$round",display:"block",size:"$1",transition:"transform 50ms",willChange:"transform",'&[data-state="checked"]':{transform:"translateX(calc($sizes$2 - $space$1))"}}),e=t=>r.createElement(n,{...t},r.createElement(i,null));e.displayName="Switch";export{e as Switch};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{styled as r}from"../../stitches.js";import*as d from"react";import{TableRow as i}from"./TableRow.js";const a=r("tbody",{variants:{striped:{true:{[`${i}`]:{"&:nth-child(odd)":{bg:"white"},"&:nth-child(even)":{bg:"$tonal50"}}},false:{bg:"white"}}}}),
|
|
1
|
+
import{styled as r}from"../../stitches.js";import*as d from"react";import{TableRow as i}from"./TableRow.js";const a=r("tbody",{variants:{striped:{true:{[`${i}`]:{"&:nth-child(odd)":{bg:"white"},"&:nth-child(even)":{bg:"$tonal50"}}},false:{bg:"white"}}}}),t=({striped:e=!0,...o})=>d.createElement(a,{striped:e,...o});t.displayName="TableBody";export{t as TableBody};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import m from"react";import{styled as l}from"../../stitches.js";import{TableHeaderCell as
|
|
1
|
+
import m from"react";import{styled as l}from"../../stitches.js";import{TableHeaderCell as r}from"./TableHeaderCell.js";const o=l("thead",{variants:{theme:{primary:{[`${r}`]:{bg:"$primary"}},primaryDark:{[`${r}`]:{bg:"$primaryDark"}},light:{[`${r}`]:{bg:"$tonal50",color:"$tonal600"}}}}}),e=({theme:a="primaryDark",...t})=>m.createElement(o,{theme:a,...t});e.displayName="TableHeader";export{e as TableHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Trigger as l}from"@radix-ui/react-tabs";import{opacify as
|
|
1
|
+
import{Trigger as l}from"@radix-ui/react-tabs";import{opacify as o}from"color2k";import*as n from"react";import{styled as s,theme as e}from"../../stitches.js";const c=s(l,{background:"none",border:"none",cursor:"pointer",flexShrink:0,fontFamily:"$body",p:"$4",height:"$5",userSelect:"none",transition:"0.3s",variants:{theme:{light:{'&[data-state="active"]':{color:"$primary",fontWeight:600,letterSpacing:"-0.005em",boxShadow:"inset 0 -2px 0 0 currentColor"},'&[data-state="inactive"]':{color:"$tonal500"},"&:not([data-disabled]):hover":{color:"$primary",bg:o(e.colors.primary.value,-.9)},"&:not([data-disabled]):active":{color:"$primary",bg:o(e.colors.primary.value,-.8),boxShadow:"none"},"&[data-disabled],&[data-disabled]:hover":{color:"$tonal200",cursor:"not-allowed"}},dark:{color:"white",'&[data-state="active"]':{fontWeight:600,letterSpacing:"-0.005em",boxShadow:"inset 0 -2px 0 0 currentColor"},"&:not([data-disabled]):hover":{bg:o("white",-.8)},"&:not([data-disabled]):active":{bg:o("white",-.7),boxShadow:"none"},"&[data-disabled],&[data-disabled]:hover":{color:"$tonal200",cursor:"not-allowed"}}}}}),a=({children:t,theme:r,disabled:i=!1,...d})=>n.createElement(c,{disabled:i,theme:r,...d},t);a.displayName="TabTrigger";export{a as TabTrigger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Root as l,Content as n}from"@radix-ui/react-tabs";import*as p from"react";import{styled as
|
|
1
|
+
import{Root as l,Content as n}from"@radix-ui/react-tabs";import*as p from"react";import{styled as e}from"../../stitches.js";import{TriggerListWrapper as t}from"./TabsTriggerList.js";import{TabTrigger as s}from"./TabTrigger.js";import{passPropsToChildren as g}from"./utils.js";const h=e(l,{display:"flex",flexDirection:"column",variants:{theme:{light:{color:"$primary"},dark:{color:"white"}}}}),i=e(n,{flexGrow:1,fontFamily:"$body",variants:{theme:{light:{color:"$textForeground"},dark:{bg:"$primaryDark",color:"white"}}}}),r=({theme:o="light",children:m,...a})=>p.createElement(h,{theme:o,...a},g(m,{theme:o},[t,i]));r.TriggerList=t,r.Trigger=s,r.Content=i,r.displayName="Tabs";export{r as Tabs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from"react";const t=(n,e,i=[])=>o.Children.map(n,l=>o.isValidElement(l)&&i.includes(l==null?void 0:l.type)?o.cloneElement(l,{...e}):l);export{t as passPropsToChildren};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as i from"react";import{useFormContext as c}from"react-hook-form";import{FieldWrapper as f}from"../field-wrapper/FieldWrapper.js";import"../field-wrapper/InlineFieldWrapper.js";import"../form/Form.js";import{useFieldError as u}from"../form/useFieldError.js";import{Textarea as x}from"../textarea/Textarea.js";const a=({css:m=void 0,label:p,name:r,validation:e,prompt:l,description:d,...s})=>{const{register:o}=c(),{error:t}=u(r),n=e?o(e):o;return i.createElement(f,{css:m,description:d,error:t,fieldId:r,label:p,prompt:l,required:Boolean(e
|
|
1
|
+
import*as i from"react";import{useFormContext as c}from"react-hook-form";import{FieldWrapper as f}from"../field-wrapper/FieldWrapper.js";import"../field-wrapper/InlineFieldWrapper.js";import"../form/Form.js";import{useFieldError as u}from"../form/useFieldError.js";import{Textarea as x}from"../textarea/Textarea.js";const a=({css:m=void 0,label:p,name:r,validation:e,prompt:l,description:d,...s})=>{const{register:o}=c(),{error:t}=u(r),n=e?o(e):o;return i.createElement(f,{css:m,description:d,error:t,fieldId:r,label:p,prompt:l,required:Boolean(e==null?void 0:e.required)},i.createElement(x,{id:r,name:r,ref:n,...t&&{state:"error"},...s}))};a.displayName="TextareaField";export{a as TextareaField};
|