@atom-learning/components 2.0.0 → 2.1.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 +3 -22
- package/dist/components/accordion/Accordion.d.ts +1 -0
- package/dist/components/accordion/AccordionContent.d.ts +1 -0
- package/dist/components/accordion/AccordionItem.d.ts +1 -0
- package/dist/components/accordion/AccordionTrigger.d.ts +1 -0
- package/dist/components/action-icon/ActionIcon.d.ts +1 -0
- package/dist/components/alert-dialog/AlertDialog.d.ts +1 -0
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +1 -0
- package/dist/components/badge/Badge.d.ts +2 -0
- package/dist/components/box/Box.d.ts +1 -0
- package/dist/components/button/Button.d.ts +1 -0
- package/dist/components/calendar/Day.d.ts +1 -0
- package/dist/components/carousel/CarouselPagination.d.ts +1 -0
- package/dist/components/carousel/CarouselSlide.d.ts +1 -0
- package/dist/components/carousel/CarouselSlider.d.ts +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +1 -0
- package/dist/components/combobox/Combobox.d.ts +1 -0
- package/dist/components/combobox/ComboboxInput.d.ts +1 -0
- package/dist/components/combobox/ComboboxList.d.ts +1 -0
- package/dist/components/combobox/ComboboxOption.d.ts +1 -0
- package/dist/components/combobox/ComboboxPopover.d.ts +1 -0
- package/dist/components/dialog/Dialog.d.ts +1 -0
- package/dist/components/dialog/DialogBackground.d.ts +2 -0
- package/dist/components/dialog/DialogClose.d.ts +1 -0
- package/dist/components/dialog/DialogContent.d.ts +1 -0
- package/dist/components/divider/Divider.d.ts +1 -0
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +1 -0
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +1 -0
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +1 -0
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +1 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +1 -0
- package/dist/components/empty-state/EmptyState.d.ts +2 -0
- package/dist/components/empty-state/EmptyStateBody.d.ts +2 -0
- package/dist/components/empty-state/EmptyStateImage.d.ts +2 -0
- package/dist/components/empty-state/EmptyStateTitle.d.ts +1 -0
- package/dist/components/field-wrapper/FieldWrapper.js +1 -1
- package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
- package/dist/components/flex/Flex.d.ts +1 -0
- package/dist/components/form/Form.d.ts +1 -0
- package/dist/components/grid/Grid.d.ts +1 -0
- package/dist/components/heading/Heading.d.ts +1 -0
- package/dist/components/icon/Icon.d.ts +1 -0
- package/dist/components/image/Image.d.ts +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/inline-message/InlineMessage.config.d.ts +5 -0
- package/dist/components/inline-message/InlineMessage.config.js +1 -0
- package/dist/components/inline-message/InlineMessage.d.ts +541 -0
- package/dist/components/inline-message/InlineMessage.js +1 -0
- package/dist/components/inline-message/InlineMessage.types.d.ts +1 -0
- package/dist/components/inline-message/index.d.ts +1 -0
- package/dist/components/input/Input.d.ts +1 -0
- package/dist/components/label/Label.d.ts +1 -0
- package/dist/components/link/Link.d.ts +1 -0
- package/dist/components/list/List.d.ts +2 -0
- package/dist/components/notification-badge/NotificationBadge.d.ts +2 -0
- package/dist/components/popover/Popover.d.ts +1 -0
- package/dist/components/popover/PopoverContent.d.ts +1 -0
- package/dist/components/progress-bar/ProgressBar.d.ts +1 -0
- package/dist/components/radio-button/RadioButton.d.ts +1 -0
- package/dist/components/radio-button/RadioButtonGroup.d.ts +1 -0
- package/dist/components/radio-button-field/RadioButtonField.js +1 -1
- package/dist/components/radio-card/RadioCard.d.ts +1 -0
- package/dist/components/select/Select.d.ts +1 -0
- package/dist/components/slider/Slider.d.ts +1 -0
- package/dist/components/stack/Stack.d.ts +1 -0
- package/dist/components/stack-content/StackContent.d.ts +1 -0
- package/dist/components/stepper/StepperStepBullet.d.ts +2 -0
- package/dist/components/stepper/StepperStepContainer.d.ts +2 -0
- package/dist/components/stepper/StepperStepLabel.d.ts +2 -0
- package/dist/components/switch/Switch.d.ts +1 -0
- package/dist/components/table/Table.d.ts +1 -0
- package/dist/components/table/TableBody.d.ts +1 -0
- package/dist/components/table/TableCell.d.ts +1 -0
- package/dist/components/table/TableFooter.d.ts +1 -0
- package/dist/components/table/TableFooterCell.d.ts +1 -0
- package/dist/components/table/TableHeader.d.ts +1 -0
- package/dist/components/table/TableHeaderCell.d.ts +1 -0
- package/dist/components/table/TableRow.d.ts +1 -0
- package/dist/components/tabs/TabTrigger.d.ts +1 -0
- package/dist/components/tabs/Tabs.d.ts +2 -0
- package/dist/components/tabs/TabsTriggerList.d.ts +1 -0
- package/dist/components/text/Text.d.ts +1 -0
- package/dist/components/textarea/Textarea.d.ts +1 -0
- package/dist/components/toast/Toast.d.ts +1 -0
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +2 -0
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +2 -0
- package/dist/components/toggle-group/ToggleGroupRoot.d.ts +1 -0
- package/dist/components/toggle-group/index.d.ts +5 -0
- package/dist/components/tooltip/TooltipContent.d.ts +1 -0
- package/dist/components/video/Video.d.ts +2 -0
- package/dist/docgen.json +1 -1
- package/dist/docs/CheckboxField.mdx +1 -1
- package/dist/docs/DateField.mdx +2 -2
- package/dist/docs/FieldWrapper.mdx +1 -1
- package/dist/docs/Form.mdx +3 -3
- package/dist/docs/InlineMessage.mdx +52 -0
- package/dist/docs/InputField.mdx +2 -2
- package/dist/docs/RadioButtonField.mdx +2 -2
- package/dist/docs/SelectField.mdx +2 -2
- package/dist/docs/TextareaField.mdx +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.js +1 -1
- package/dist/stitches.d.ts +10 -0
- package/package.json +3 -2
- package/dist/components/validation-error/ValidationError.d.ts +0 -7
- package/dist/components/validation-error/ValidationError.js +0 -1
- package/dist/components/validation-error/index.d.ts +0 -1
- package/dist/docs/ValidationError.mdx +0 -12
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { InlineMessageTheme } from './InlineMessage.types';
|
|
3
|
+
declare const InlineMessageContainer: import("@stitches/react/types/styled-component").StyledComponent<import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
4
|
+
sm: string;
|
|
5
|
+
md: string;
|
|
6
|
+
lg: string;
|
|
7
|
+
xl: string;
|
|
8
|
+
reducedMotion: string;
|
|
9
|
+
allowMotion: string;
|
|
10
|
+
hover: string;
|
|
11
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
12
|
+
sm: string;
|
|
13
|
+
md: string;
|
|
14
|
+
lg: string;
|
|
15
|
+
xl: string;
|
|
16
|
+
reducedMotion: string;
|
|
17
|
+
allowMotion: string;
|
|
18
|
+
hover: string;
|
|
19
|
+
}, {
|
|
20
|
+
colors: {
|
|
21
|
+
textForeground: any;
|
|
22
|
+
textSubtle: any;
|
|
23
|
+
textPlaceholder: any;
|
|
24
|
+
background: any;
|
|
25
|
+
backgroundAccent: any;
|
|
26
|
+
tonal50: any;
|
|
27
|
+
tonal100: any;
|
|
28
|
+
tonal200: any;
|
|
29
|
+
tonal300: any;
|
|
30
|
+
tonal400: any;
|
|
31
|
+
tonal500: any;
|
|
32
|
+
tonal600: any;
|
|
33
|
+
alpha100: any;
|
|
34
|
+
alpha150: any;
|
|
35
|
+
alpha200: any;
|
|
36
|
+
alpha250: any;
|
|
37
|
+
alpha600: any;
|
|
38
|
+
primaryLight: any;
|
|
39
|
+
primary: any;
|
|
40
|
+
primaryMid: any;
|
|
41
|
+
primaryDark: any;
|
|
42
|
+
secondary: any;
|
|
43
|
+
brandRed: any;
|
|
44
|
+
brandRedAccent: any;
|
|
45
|
+
brandGreen: any;
|
|
46
|
+
brandGreenAccent: any;
|
|
47
|
+
brandPurple: any;
|
|
48
|
+
brandPurpleAccent: any;
|
|
49
|
+
brandYellow: any;
|
|
50
|
+
brandYellowAccent: any;
|
|
51
|
+
successLight: any;
|
|
52
|
+
success: any;
|
|
53
|
+
successMid: any;
|
|
54
|
+
successDark: any;
|
|
55
|
+
dangerLight: any;
|
|
56
|
+
danger: any;
|
|
57
|
+
dangerMid: any;
|
|
58
|
+
dangerDark: any;
|
|
59
|
+
warningLight: any;
|
|
60
|
+
warning: any;
|
|
61
|
+
warningMid: any;
|
|
62
|
+
warningDark: any;
|
|
63
|
+
warningText: any;
|
|
64
|
+
subjectEnglish: any;
|
|
65
|
+
subjectMaths: any;
|
|
66
|
+
subjectScience: any;
|
|
67
|
+
subjectVerbalReasoning: any;
|
|
68
|
+
subjectNonVerbalReasoning: any;
|
|
69
|
+
subjectCreativeWriting: any;
|
|
70
|
+
subjectExamSkills: any;
|
|
71
|
+
};
|
|
72
|
+
space: {
|
|
73
|
+
"0": any;
|
|
74
|
+
"1": any;
|
|
75
|
+
"2": any;
|
|
76
|
+
"3": any;
|
|
77
|
+
"4": any;
|
|
78
|
+
"5": any;
|
|
79
|
+
"6": any;
|
|
80
|
+
"7": any;
|
|
81
|
+
"8": any;
|
|
82
|
+
"9": any;
|
|
83
|
+
};
|
|
84
|
+
fontSizes: {
|
|
85
|
+
xs: any;
|
|
86
|
+
sm: any;
|
|
87
|
+
md: any;
|
|
88
|
+
lg: any;
|
|
89
|
+
xl: any;
|
|
90
|
+
"2xl": any;
|
|
91
|
+
"3xl": any;
|
|
92
|
+
"4xl": any;
|
|
93
|
+
};
|
|
94
|
+
fonts: {
|
|
95
|
+
sans: any;
|
|
96
|
+
mono: any;
|
|
97
|
+
display: any;
|
|
98
|
+
body: any;
|
|
99
|
+
};
|
|
100
|
+
sizes: {
|
|
101
|
+
"0": any;
|
|
102
|
+
"1": any;
|
|
103
|
+
"2": any;
|
|
104
|
+
"3": any;
|
|
105
|
+
"4": any;
|
|
106
|
+
"5": any;
|
|
107
|
+
"6": any;
|
|
108
|
+
"7": any;
|
|
109
|
+
"8": any;
|
|
110
|
+
};
|
|
111
|
+
radii: {
|
|
112
|
+
"0": any;
|
|
113
|
+
"1": any;
|
|
114
|
+
"2": any;
|
|
115
|
+
"3": any;
|
|
116
|
+
round: any;
|
|
117
|
+
};
|
|
118
|
+
shadows: {
|
|
119
|
+
"0": any;
|
|
120
|
+
"1": any;
|
|
121
|
+
"2": any;
|
|
122
|
+
"3": any;
|
|
123
|
+
};
|
|
124
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
125
|
+
bg: (value: {
|
|
126
|
+
readonly [$$PropertyValue]: "background";
|
|
127
|
+
}) => {
|
|
128
|
+
background: {
|
|
129
|
+
readonly [$$PropertyValue]: "background";
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
inset: (value: string | number | {
|
|
133
|
+
readonly [$$ScaleValue]: "space";
|
|
134
|
+
}) => {
|
|
135
|
+
top: string | number | {
|
|
136
|
+
readonly [$$ScaleValue]: "space";
|
|
137
|
+
};
|
|
138
|
+
right: string | number | {
|
|
139
|
+
readonly [$$ScaleValue]: "space";
|
|
140
|
+
};
|
|
141
|
+
bottom: string | number | {
|
|
142
|
+
readonly [$$ScaleValue]: "space";
|
|
143
|
+
};
|
|
144
|
+
left: string | number | {
|
|
145
|
+
readonly [$$ScaleValue]: "space";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
size: (value: string | number | {
|
|
149
|
+
readonly [$$ScaleValue]: "size";
|
|
150
|
+
}) => {
|
|
151
|
+
height: string | number | {
|
|
152
|
+
readonly [$$ScaleValue]: "size";
|
|
153
|
+
};
|
|
154
|
+
width: string | number | {
|
|
155
|
+
readonly [$$ScaleValue]: "size";
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
p: (value: string | number | {
|
|
159
|
+
readonly [$$ScaleValue]: "space";
|
|
160
|
+
}) => {
|
|
161
|
+
padding: string | number | {
|
|
162
|
+
readonly [$$ScaleValue]: "space";
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
pt: (value: string | number | {
|
|
166
|
+
readonly [$$ScaleValue]: "space";
|
|
167
|
+
}) => {
|
|
168
|
+
paddingTop: string | number | {
|
|
169
|
+
readonly [$$ScaleValue]: "space";
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
pr: (value: string | number | {
|
|
173
|
+
readonly [$$ScaleValue]: "space";
|
|
174
|
+
}) => {
|
|
175
|
+
paddingRight: string | number | {
|
|
176
|
+
readonly [$$ScaleValue]: "space";
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
pb: (value: string | number | {
|
|
180
|
+
readonly [$$ScaleValue]: "space";
|
|
181
|
+
}) => {
|
|
182
|
+
paddingBottom: string | number | {
|
|
183
|
+
readonly [$$ScaleValue]: "space";
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
pl: (value: string | number | {
|
|
187
|
+
readonly [$$ScaleValue]: "space";
|
|
188
|
+
}) => {
|
|
189
|
+
paddingLeft: string | number | {
|
|
190
|
+
readonly [$$ScaleValue]: "space";
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
px: (value: string | number | {
|
|
194
|
+
readonly [$$ScaleValue]: "space";
|
|
195
|
+
}) => {
|
|
196
|
+
paddingLeft: string | number | {
|
|
197
|
+
readonly [$$ScaleValue]: "space";
|
|
198
|
+
};
|
|
199
|
+
paddingRight: string | number | {
|
|
200
|
+
readonly [$$ScaleValue]: "space";
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
py: (value: string | number | {
|
|
204
|
+
readonly [$$ScaleValue]: "space";
|
|
205
|
+
}) => {
|
|
206
|
+
paddingTop: string | number | {
|
|
207
|
+
readonly [$$ScaleValue]: "space";
|
|
208
|
+
};
|
|
209
|
+
paddingBottom: string | number | {
|
|
210
|
+
readonly [$$ScaleValue]: "space";
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
m: (value: string | number | {
|
|
214
|
+
readonly [$$ScaleValue]: "space";
|
|
215
|
+
}) => {
|
|
216
|
+
margin: string | number | {
|
|
217
|
+
readonly [$$ScaleValue]: "space";
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
mt: (value: string | number | {
|
|
221
|
+
readonly [$$ScaleValue]: "space";
|
|
222
|
+
}) => {
|
|
223
|
+
marginTop: string | number | {
|
|
224
|
+
readonly [$$ScaleValue]: "space";
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
mr: (value: string | number | {
|
|
228
|
+
readonly [$$ScaleValue]: "space";
|
|
229
|
+
}) => {
|
|
230
|
+
marginRight: string | number | {
|
|
231
|
+
readonly [$$ScaleValue]: "space";
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
mb: (value: string | number | {
|
|
235
|
+
readonly [$$ScaleValue]: "space";
|
|
236
|
+
}) => {
|
|
237
|
+
marginBottom: string | number | {
|
|
238
|
+
readonly [$$ScaleValue]: "space";
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
ml: (value: string | number | {
|
|
242
|
+
readonly [$$ScaleValue]: "space";
|
|
243
|
+
}) => {
|
|
244
|
+
marginLeft: string | number | {
|
|
245
|
+
readonly [$$ScaleValue]: "space";
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
mx: (value: string | number | {
|
|
249
|
+
readonly [$$ScaleValue]: "space";
|
|
250
|
+
}) => {
|
|
251
|
+
marginLeft: string | number | {
|
|
252
|
+
readonly [$$ScaleValue]: "space";
|
|
253
|
+
};
|
|
254
|
+
marginRight: string | number | {
|
|
255
|
+
readonly [$$ScaleValue]: "space";
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
my: (value: string | number | {
|
|
259
|
+
readonly [$$ScaleValue]: "space";
|
|
260
|
+
}) => {
|
|
261
|
+
marginTop: string | number | {
|
|
262
|
+
readonly [$$ScaleValue]: "space";
|
|
263
|
+
};
|
|
264
|
+
marginBottom: string | number | {
|
|
265
|
+
readonly [$$ScaleValue]: "space";
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
}>>, {
|
|
269
|
+
theme?: InlineMessageTheme | undefined;
|
|
270
|
+
}, {
|
|
271
|
+
sm: string;
|
|
272
|
+
md: string;
|
|
273
|
+
lg: string;
|
|
274
|
+
xl: string;
|
|
275
|
+
reducedMotion: string;
|
|
276
|
+
allowMotion: string;
|
|
277
|
+
hover: string;
|
|
278
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
279
|
+
sm: string;
|
|
280
|
+
md: string;
|
|
281
|
+
lg: string;
|
|
282
|
+
xl: string;
|
|
283
|
+
reducedMotion: string;
|
|
284
|
+
allowMotion: string;
|
|
285
|
+
hover: string;
|
|
286
|
+
}, {
|
|
287
|
+
colors: {
|
|
288
|
+
textForeground: any;
|
|
289
|
+
textSubtle: any;
|
|
290
|
+
textPlaceholder: any;
|
|
291
|
+
background: any;
|
|
292
|
+
backgroundAccent: any;
|
|
293
|
+
tonal50: any;
|
|
294
|
+
tonal100: any;
|
|
295
|
+
tonal200: any;
|
|
296
|
+
tonal300: any;
|
|
297
|
+
tonal400: any;
|
|
298
|
+
tonal500: any;
|
|
299
|
+
tonal600: any;
|
|
300
|
+
alpha100: any;
|
|
301
|
+
alpha150: any;
|
|
302
|
+
alpha200: any;
|
|
303
|
+
alpha250: any;
|
|
304
|
+
alpha600: any;
|
|
305
|
+
primaryLight: any;
|
|
306
|
+
primary: any;
|
|
307
|
+
primaryMid: any;
|
|
308
|
+
primaryDark: any;
|
|
309
|
+
secondary: any;
|
|
310
|
+
brandRed: any;
|
|
311
|
+
brandRedAccent: any;
|
|
312
|
+
brandGreen: any;
|
|
313
|
+
brandGreenAccent: any;
|
|
314
|
+
brandPurple: any;
|
|
315
|
+
brandPurpleAccent: any;
|
|
316
|
+
brandYellow: any;
|
|
317
|
+
brandYellowAccent: any;
|
|
318
|
+
successLight: any;
|
|
319
|
+
success: any;
|
|
320
|
+
successMid: any;
|
|
321
|
+
successDark: any;
|
|
322
|
+
dangerLight: any;
|
|
323
|
+
danger: any;
|
|
324
|
+
dangerMid: any;
|
|
325
|
+
dangerDark: any;
|
|
326
|
+
warningLight: any;
|
|
327
|
+
warning: any;
|
|
328
|
+
warningMid: any;
|
|
329
|
+
warningDark: any;
|
|
330
|
+
warningText: any;
|
|
331
|
+
subjectEnglish: any;
|
|
332
|
+
subjectMaths: any;
|
|
333
|
+
subjectScience: any;
|
|
334
|
+
subjectVerbalReasoning: any;
|
|
335
|
+
subjectNonVerbalReasoning: any;
|
|
336
|
+
subjectCreativeWriting: any;
|
|
337
|
+
subjectExamSkills: any;
|
|
338
|
+
};
|
|
339
|
+
space: {
|
|
340
|
+
"0": any;
|
|
341
|
+
"1": any;
|
|
342
|
+
"2": any;
|
|
343
|
+
"3": any;
|
|
344
|
+
"4": any;
|
|
345
|
+
"5": any;
|
|
346
|
+
"6": any;
|
|
347
|
+
"7": any;
|
|
348
|
+
"8": any;
|
|
349
|
+
"9": any;
|
|
350
|
+
};
|
|
351
|
+
fontSizes: {
|
|
352
|
+
xs: any;
|
|
353
|
+
sm: any;
|
|
354
|
+
md: any;
|
|
355
|
+
lg: any;
|
|
356
|
+
xl: any;
|
|
357
|
+
"2xl": any;
|
|
358
|
+
"3xl": any;
|
|
359
|
+
"4xl": any;
|
|
360
|
+
};
|
|
361
|
+
fonts: {
|
|
362
|
+
sans: any;
|
|
363
|
+
mono: any;
|
|
364
|
+
display: any;
|
|
365
|
+
body: any;
|
|
366
|
+
};
|
|
367
|
+
sizes: {
|
|
368
|
+
"0": any;
|
|
369
|
+
"1": any;
|
|
370
|
+
"2": any;
|
|
371
|
+
"3": any;
|
|
372
|
+
"4": any;
|
|
373
|
+
"5": any;
|
|
374
|
+
"6": any;
|
|
375
|
+
"7": any;
|
|
376
|
+
"8": any;
|
|
377
|
+
};
|
|
378
|
+
radii: {
|
|
379
|
+
"0": any;
|
|
380
|
+
"1": any;
|
|
381
|
+
"2": any;
|
|
382
|
+
"3": any;
|
|
383
|
+
round: any;
|
|
384
|
+
};
|
|
385
|
+
shadows: {
|
|
386
|
+
"0": any;
|
|
387
|
+
"1": any;
|
|
388
|
+
"2": any;
|
|
389
|
+
"3": any;
|
|
390
|
+
};
|
|
391
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
392
|
+
bg: (value: {
|
|
393
|
+
readonly [$$PropertyValue]: "background";
|
|
394
|
+
}) => {
|
|
395
|
+
background: {
|
|
396
|
+
readonly [$$PropertyValue]: "background";
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
inset: (value: string | number | {
|
|
400
|
+
readonly [$$ScaleValue]: "space";
|
|
401
|
+
}) => {
|
|
402
|
+
top: string | number | {
|
|
403
|
+
readonly [$$ScaleValue]: "space";
|
|
404
|
+
};
|
|
405
|
+
right: string | number | {
|
|
406
|
+
readonly [$$ScaleValue]: "space";
|
|
407
|
+
};
|
|
408
|
+
bottom: string | number | {
|
|
409
|
+
readonly [$$ScaleValue]: "space";
|
|
410
|
+
};
|
|
411
|
+
left: string | number | {
|
|
412
|
+
readonly [$$ScaleValue]: "space";
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
size: (value: string | number | {
|
|
416
|
+
readonly [$$ScaleValue]: "size";
|
|
417
|
+
}) => {
|
|
418
|
+
height: string | number | {
|
|
419
|
+
readonly [$$ScaleValue]: "size";
|
|
420
|
+
};
|
|
421
|
+
width: string | number | {
|
|
422
|
+
readonly [$$ScaleValue]: "size";
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
p: (value: string | number | {
|
|
426
|
+
readonly [$$ScaleValue]: "space";
|
|
427
|
+
}) => {
|
|
428
|
+
padding: string | number | {
|
|
429
|
+
readonly [$$ScaleValue]: "space";
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
pt: (value: string | number | {
|
|
433
|
+
readonly [$$ScaleValue]: "space";
|
|
434
|
+
}) => {
|
|
435
|
+
paddingTop: string | number | {
|
|
436
|
+
readonly [$$ScaleValue]: "space";
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
pr: (value: string | number | {
|
|
440
|
+
readonly [$$ScaleValue]: "space";
|
|
441
|
+
}) => {
|
|
442
|
+
paddingRight: string | number | {
|
|
443
|
+
readonly [$$ScaleValue]: "space";
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
pb: (value: string | number | {
|
|
447
|
+
readonly [$$ScaleValue]: "space";
|
|
448
|
+
}) => {
|
|
449
|
+
paddingBottom: string | number | {
|
|
450
|
+
readonly [$$ScaleValue]: "space";
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
pl: (value: string | number | {
|
|
454
|
+
readonly [$$ScaleValue]: "space";
|
|
455
|
+
}) => {
|
|
456
|
+
paddingLeft: string | number | {
|
|
457
|
+
readonly [$$ScaleValue]: "space";
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
px: (value: string | number | {
|
|
461
|
+
readonly [$$ScaleValue]: "space";
|
|
462
|
+
}) => {
|
|
463
|
+
paddingLeft: string | number | {
|
|
464
|
+
readonly [$$ScaleValue]: "space";
|
|
465
|
+
};
|
|
466
|
+
paddingRight: string | number | {
|
|
467
|
+
readonly [$$ScaleValue]: "space";
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
py: (value: string | number | {
|
|
471
|
+
readonly [$$ScaleValue]: "space";
|
|
472
|
+
}) => {
|
|
473
|
+
paddingTop: string | number | {
|
|
474
|
+
readonly [$$ScaleValue]: "space";
|
|
475
|
+
};
|
|
476
|
+
paddingBottom: string | number | {
|
|
477
|
+
readonly [$$ScaleValue]: "space";
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
m: (value: string | number | {
|
|
481
|
+
readonly [$$ScaleValue]: "space";
|
|
482
|
+
}) => {
|
|
483
|
+
margin: string | number | {
|
|
484
|
+
readonly [$$ScaleValue]: "space";
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
mt: (value: string | number | {
|
|
488
|
+
readonly [$$ScaleValue]: "space";
|
|
489
|
+
}) => {
|
|
490
|
+
marginTop: string | number | {
|
|
491
|
+
readonly [$$ScaleValue]: "space";
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
mr: (value: string | number | {
|
|
495
|
+
readonly [$$ScaleValue]: "space";
|
|
496
|
+
}) => {
|
|
497
|
+
marginRight: string | number | {
|
|
498
|
+
readonly [$$ScaleValue]: "space";
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
mb: (value: string | number | {
|
|
502
|
+
readonly [$$ScaleValue]: "space";
|
|
503
|
+
}) => {
|
|
504
|
+
marginBottom: string | number | {
|
|
505
|
+
readonly [$$ScaleValue]: "space";
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
ml: (value: string | number | {
|
|
509
|
+
readonly [$$ScaleValue]: "space";
|
|
510
|
+
}) => {
|
|
511
|
+
marginLeft: string | number | {
|
|
512
|
+
readonly [$$ScaleValue]: "space";
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
mx: (value: string | number | {
|
|
516
|
+
readonly [$$ScaleValue]: "space";
|
|
517
|
+
}) => {
|
|
518
|
+
marginLeft: string | number | {
|
|
519
|
+
readonly [$$ScaleValue]: "space";
|
|
520
|
+
};
|
|
521
|
+
marginRight: string | number | {
|
|
522
|
+
readonly [$$ScaleValue]: "space";
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
my: (value: string | number | {
|
|
526
|
+
readonly [$$ScaleValue]: "space";
|
|
527
|
+
}) => {
|
|
528
|
+
marginTop: string | number | {
|
|
529
|
+
readonly [$$ScaleValue]: "space";
|
|
530
|
+
};
|
|
531
|
+
marginBottom: string | number | {
|
|
532
|
+
readonly [$$ScaleValue]: "space";
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
}>>;
|
|
536
|
+
declare type TInlineMessageProps = React.ComponentProps<typeof InlineMessageContainer> & {
|
|
537
|
+
showIcon?: boolean;
|
|
538
|
+
size?: 'xs' | 'sm' | 'md';
|
|
539
|
+
};
|
|
540
|
+
export declare const InlineMessage: React.FC<TInlineMessageProps>;
|
|
541
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";import{INLINE_MESSAGE_THEMES as c,INLINE_MESSAGE_ICONS as a}from"./InlineMessage.config.js";import{Flex as E}from"../flex/Flex.js";import{Text as l}from"../text/Text.js";import{Icon as f}from"../icon/Icon.js";import{styled as t}from"../../stitches.js";const p=t(E,{variants:{theme:c}}),I=t(f,{flexShrink:"0",mr:"$2"}),h=({css:s,showIcon:m=!0,theme:r="error",size:o="sm",children:i,...n})=>e.createElement(p,{theme:r,css:s,...n},m&&e.createElement(I,{size:"sm",is:a[r]}),e.createElement(l,{as:"span",size:o,css:{color:"inherit",transform:"translateY($space$0)"}},i));export{h as InlineMessage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type InlineMessageTheme = 'warning' | 'error' | 'success' | 'info' | 'neutral';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InlineMessage } from './InlineMessage';
|
|
@@ -59,6 +59,7 @@ export declare const StyledLi: import("@stitches/react/types/styled-component").
|
|
|
59
59
|
warning: any;
|
|
60
60
|
warningMid: any;
|
|
61
61
|
warningDark: any;
|
|
62
|
+
warningText: any;
|
|
62
63
|
subjectEnglish: any;
|
|
63
64
|
subjectMaths: any;
|
|
64
65
|
subjectScience: any;
|
|
@@ -327,6 +328,7 @@ export declare const StyledList: import("@stitches/react/types/styled-component"
|
|
|
327
328
|
warning: any;
|
|
328
329
|
warningMid: any;
|
|
329
330
|
warningDark: any;
|
|
331
|
+
warningText: any;
|
|
330
332
|
subjectEnglish: any;
|
|
331
333
|
subjectMaths: any;
|
|
332
334
|
subjectScience: any;
|
|
@@ -59,6 +59,7 @@ declare const StyledBadge: import("@stitches/react/types/styled-component").Styl
|
|
|
59
59
|
warning: any;
|
|
60
60
|
warningMid: any;
|
|
61
61
|
warningDark: any;
|
|
62
|
+
warningText: any;
|
|
62
63
|
subjectEnglish: any;
|
|
63
64
|
subjectMaths: any;
|
|
64
65
|
subjectScience: any;
|
|
@@ -323,6 +324,7 @@ declare const StyledBadge: import("@stitches/react/types/styled-component").Styl
|
|
|
323
324
|
warning: any;
|
|
324
325
|
warningMid: any;
|
|
325
326
|
warningDark: any;
|
|
327
|
+
warningText: any;
|
|
326
328
|
subjectEnglish: any;
|
|
327
329
|
subjectMaths: any;
|
|
328
330
|
subjectScience: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{useFormContext as
|
|
1
|
+
import*as e from"react";import{useFormContext as g,Controller as C}from"react-hook-form";import{Description as F}from"../field-wrapper/FieldDescription.js";import"../form/Form.js";import{useFieldError as V}from"../form/useFieldError.js";import{Label as b}from"../label/Label.js";import"../radio-button/RadioButton.js";import{RadioButtonGroup as h}from"../radio-button/RadioButtonGroup.js";import{InlineMessage as v}from"../inline-message/InlineMessage.js";import{styled as B}from"../../stitches.js";import{RadioField as R}from"./RadioField.js";const q=B("fieldset",{all:"unset"}),r=({children:s,css:d,direction:u="column",defaultValue:t,description:l,label:c,name:n,validation:o,onValueChange:a})=>{const{control:p}=g(),{error:i}=V(n);return e.createElement(q,{css:d},e.createElement(b,{as:"legend",css:{p:0,mb:"$3"},required:Boolean(o==null?void 0:o.required)},c),l&&e.createElement(F,{css:{mb:"$3"}},l),e.createElement(C,{control:p,name:n,rules:o,defaultValue:t,render:({onChange:f,value:E})=>e.createElement(h,{direction:u,defaultValue:t,onValueChange:m=>{f(m),a==null||a(m)},value:E},s)}),i&&e.createElement(v,{css:{mt:"$2"}},i))};r.Item=R,r.displayName="RadioButtonField";export{r as RadioButtonField};
|