@atom-learning/components 1.24.2 → 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.
Files changed (120) hide show
  1. package/CHANGELOG.md +3 -3
  2. package/dist/components/accordion/Accordion.d.ts +1 -0
  3. package/dist/components/accordion/AccordionContent.d.ts +1 -0
  4. package/dist/components/accordion/AccordionItem.d.ts +1 -0
  5. package/dist/components/accordion/AccordionTrigger.d.ts +1 -0
  6. package/dist/components/action-icon/ActionIcon.constants.d.ts +6 -0
  7. package/dist/components/action-icon/ActionIcon.constants.js +1 -0
  8. package/dist/components/action-icon/ActionIcon.d.ts +2 -1
  9. package/dist/components/action-icon/ActionIcon.js +1 -1
  10. package/dist/components/alert-dialog/AlertDialog.d.ts +1 -0
  11. package/dist/components/alert-dialog/AlertDialogContent.d.ts +1 -0
  12. package/dist/components/badge/Badge.d.ts +2 -0
  13. package/dist/components/box/Box.d.ts +1 -0
  14. package/dist/components/button/Button.d.ts +1 -0
  15. package/dist/components/calendar/Calendar.js +1 -1
  16. package/dist/components/calendar/Day.d.ts +1 -0
  17. package/dist/components/carousel/CarouselPagination.d.ts +1 -0
  18. package/dist/components/carousel/CarouselSlide.d.ts +1 -0
  19. package/dist/components/carousel/CarouselSlider.d.ts +1 -0
  20. package/dist/components/checkbox/Checkbox.d.ts +1 -0
  21. package/dist/components/combobox/Combobox.d.ts +1 -0
  22. package/dist/components/combobox/ComboboxInput.d.ts +1 -0
  23. package/dist/components/combobox/ComboboxList.d.ts +1 -0
  24. package/dist/components/combobox/ComboboxOption.d.ts +1 -0
  25. package/dist/components/combobox/ComboboxPopover.d.ts +1 -0
  26. package/dist/components/date-input/DateInput.js +1 -1
  27. package/dist/components/dialog/Dialog.d.ts +1 -0
  28. package/dist/components/dialog/DialogBackground.d.ts +2 -0
  29. package/dist/components/dialog/DialogClose.d.ts +1 -0
  30. package/dist/components/dialog/DialogContent.d.ts +1 -0
  31. package/dist/components/dialog/DialogContent.js +1 -1
  32. package/dist/components/divider/Divider.d.ts +1 -0
  33. package/dist/components/dropdown-menu/DropdownMenu.d.ts +1 -0
  34. package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +1 -0
  35. package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +1 -0
  36. package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +1 -0
  37. package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +1 -0
  38. package/dist/components/empty-state/EmptyState.d.ts +2 -0
  39. package/dist/components/empty-state/EmptyStateBody.d.ts +2 -0
  40. package/dist/components/empty-state/EmptyStateImage.d.ts +2 -0
  41. package/dist/components/empty-state/EmptyStateTitle.d.ts +1 -0
  42. package/dist/components/field-wrapper/FieldWrapper.js +1 -1
  43. package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
  44. package/dist/components/flex/Flex.d.ts +1 -0
  45. package/dist/components/form/Form.d.ts +1 -0
  46. package/dist/components/grid/Grid.d.ts +1 -0
  47. package/dist/components/heading/Heading.d.ts +1 -0
  48. package/dist/components/icon/Icon.d.ts +1 -0
  49. package/dist/components/image/Image.d.ts +1 -0
  50. package/dist/components/index.d.ts +1 -1
  51. package/dist/components/inline-message/InlineMessage.config.d.ts +5 -0
  52. package/dist/components/inline-message/InlineMessage.config.js +1 -0
  53. package/dist/components/inline-message/InlineMessage.d.ts +541 -0
  54. package/dist/components/inline-message/InlineMessage.js +1 -0
  55. package/dist/components/inline-message/InlineMessage.types.d.ts +1 -0
  56. package/dist/components/inline-message/index.d.ts +1 -0
  57. package/dist/components/input/Input.d.ts +1 -0
  58. package/dist/components/label/Label.d.ts +1 -0
  59. package/dist/components/link/Link.d.ts +1 -0
  60. package/dist/components/list/List.d.ts +2 -0
  61. package/dist/components/notification-badge/NotificationBadge.d.ts +2 -0
  62. package/dist/components/password-input/PasswordInput.js +1 -1
  63. package/dist/components/popover/Popover.d.ts +1 -0
  64. package/dist/components/popover/PopoverContent.d.ts +1 -0
  65. package/dist/components/popover/PopoverContent.js +1 -1
  66. package/dist/components/progress-bar/ProgressBar.d.ts +1 -0
  67. package/dist/components/radio-button/RadioButton.d.ts +1 -0
  68. package/dist/components/radio-button/RadioButtonGroup.d.ts +1 -0
  69. package/dist/components/radio-button-field/RadioButtonField.js +1 -1
  70. package/dist/components/radio-card/RadioCard.d.ts +1 -0
  71. package/dist/components/search-input/SearchInput.js +1 -1
  72. package/dist/components/select/Select.d.ts +1 -0
  73. package/dist/components/slider/Slider.d.ts +1 -0
  74. package/dist/components/stack/Stack.d.ts +1 -0
  75. package/dist/components/stack-content/StackContent.d.ts +1 -0
  76. package/dist/components/stepper/StepperStepBullet.d.ts +2 -0
  77. package/dist/components/stepper/StepperStepContainer.d.ts +2 -0
  78. package/dist/components/stepper/StepperStepLabel.d.ts +2 -0
  79. package/dist/components/switch/Switch.d.ts +1 -0
  80. package/dist/components/table/Table.d.ts +1 -0
  81. package/dist/components/table/TableBody.d.ts +1 -0
  82. package/dist/components/table/TableCell.d.ts +1 -0
  83. package/dist/components/table/TableFooter.d.ts +1 -0
  84. package/dist/components/table/TableFooterCell.d.ts +1 -0
  85. package/dist/components/table/TableHeader.d.ts +1 -0
  86. package/dist/components/table/TableHeaderCell.d.ts +1 -0
  87. package/dist/components/table/TableRow.d.ts +1 -0
  88. package/dist/components/tabs/TabTrigger.d.ts +1 -0
  89. package/dist/components/tabs/Tabs.d.ts +2 -0
  90. package/dist/components/tabs/TabsTriggerList.d.ts +1 -0
  91. package/dist/components/tabs/TabsTriggerList.js +1 -1
  92. package/dist/components/text/Text.d.ts +1 -0
  93. package/dist/components/textarea/Textarea.d.ts +1 -0
  94. package/dist/components/toast/Toast.d.ts +1 -0
  95. package/dist/components/toggle-group/ToggleGroupButton.d.ts +2 -0
  96. package/dist/components/toggle-group/ToggleGroupItem.d.ts +2 -0
  97. package/dist/components/toggle-group/ToggleGroupRoot.d.ts +1 -0
  98. package/dist/components/toggle-group/index.d.ts +5 -0
  99. package/dist/components/tooltip/TooltipContent.d.ts +1 -0
  100. package/dist/components/video/Video.d.ts +2 -0
  101. package/dist/docgen.json +1 -1
  102. package/dist/docs/ActionIcon.mdx +13 -19
  103. package/dist/docs/CheckboxField.mdx +1 -1
  104. package/dist/docs/DateField.mdx +2 -2
  105. package/dist/docs/FieldWrapper.mdx +1 -1
  106. package/dist/docs/Form.mdx +3 -3
  107. package/dist/docs/Icon.mdx +1 -1
  108. package/dist/docs/InlineMessage.mdx +52 -0
  109. package/dist/docs/InputField.mdx +2 -2
  110. package/dist/docs/RadioButtonField.mdx +2 -2
  111. package/dist/docs/SelectField.mdx +2 -2
  112. package/dist/docs/TextareaField.mdx +1 -1
  113. package/dist/index.cjs.js +1 -1
  114. package/dist/index.js +1 -1
  115. package/dist/stitches.d.ts +10 -0
  116. package/package.json +3 -2
  117. package/dist/components/validation-error/ValidationError.d.ts +0 -7
  118. package/dist/components/validation-error/ValidationError.js +0 -1
  119. package/dist/components/validation-error/index.d.ts +0 -1
  120. 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';
@@ -63,6 +63,7 @@ declare const StyledInput: import("@stitches/react/types/styled-component").Styl
63
63
  warning: any;
64
64
  warningMid: any;
65
65
  warningDark: any;
66
+ warningText: any;
66
67
  subjectEnglish: any;
67
68
  subjectMaths: any;
68
69
  subjectScience: any;
@@ -65,6 +65,7 @@ declare const StyledLabel: import("@stitches/react/types/styled-component").Styl
65
65
  warning: any;
66
66
  warningMid: any;
67
67
  warningDark: any;
68
+ warningText: any;
68
69
  subjectEnglish: any;
69
70
  subjectMaths: any;
70
71
  subjectScience: any;
@@ -63,6 +63,7 @@ export declare const StyledLink: import("@stitches/react/types/styled-component"
63
63
  warning: any;
64
64
  warningMid: any;
65
65
  warningDark: any;
66
+ warningText: any;
66
67
  subjectEnglish: any;
67
68
  subjectMaths: any;
68
69
  subjectScience: any;
@@ -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{Eye as l,EyeCrossed as d}from"@atom-learning/icons";import*as e from"react";import{useState as f}from"react";import{ActionIcon as w}from"../action-icon/ActionIcon.js";import{Box as u}from"../box/Box.js";import{Icon as E}from"../icon/Icon.js";import{Input as h}from"../input/Input.js";const t=e.forwardRef(({css:r,hidePasswordText:a="Hide password",showPasswordText:i="Show password",...m},p)=>{const[o,n]=f(!1),c=()=>n(s=>!s);return e.createElement(u,{css:{position:"relative",...r}},e.createElement(h,{...m,type:o?"text":"password",ref:p,css:{pr:"$sizes$2"}}),e.createElement(w,{appearance:"simple",theme:"neutral",css:{bottom:0,position:"absolute",right:0},label:o?a:i,onClick:c,onMouseDown:s=>s.preventDefault(),size:"lg"},e.createElement(E,{is:o?l:d,css:{size:20}})))});t.displayName="PasswordInput";export{t as PasswordInput};
1
+ import{Eye as l,EyeCrossed as f}from"@atom-learning/icons";import*as e from"react";import{useState as w}from"react";import{ActionIcon as u}from"../action-icon/ActionIcon.js";import{Box as E}from"../box/Box.js";import{Icon as h}from"../icon/Icon.js";import{Input as x}from"../input/Input.js";const r=e.forwardRef(({css:a,hidePasswordText:i="Hide password",showPasswordText:m="Show password",size:t="md",...p},n)=>{const[o,c]=w(!1),d=()=>c(s=>!s);return e.createElement(E,{css:{position:"relative",...a}},e.createElement(x,{...p,size:t,type:o?"text":"password",ref:n,css:{pr:"$sizes$2"}}),e.createElement(u,{appearance:"simple",theme:"neutral",css:{bottom:0,position:"absolute",right:0},label:o?i:m,onClick:d,onMouseDown:s=>s.preventDefault(),size:t},e.createElement(h,{is:o?l:f})))});r.displayName="PasswordInput";export{r as PasswordInput};
@@ -61,6 +61,7 @@ declare const StyledRoot: import("@stitches/react/types/styled-component").Style
61
61
  warning: any;
62
62
  warningMid: any;
63
63
  warningDark: any;
64
+ warningText: any;
64
65
  subjectEnglish: any;
65
66
  subjectMaths: any;
66
67
  subjectScience: any;
@@ -62,6 +62,7 @@ declare const StyledContent: import("@stitches/react/types/styled-component").St
62
62
  warning: any;
63
63
  warningMid: any;
64
64
  warningDark: any;
65
+ warningText: any;
65
66
  subjectEnglish: any;
66
67
  subjectMaths: any;
67
68
  subjectScience: any;
@@ -1 +1 @@
1
- import{Close as r}from"@atom-learning/icons";import{Content as l,Arrow as p,Close as h}from"@radix-ui/react-popover";import*as e from"react";import{styled as t}from"../../stitches.js";import{ActionIcon as c}from"../action-icon/ActionIcon.js";import{Icon as f}from"../icon/Icon.js";import{slideDownAndFade as $,slideLeftAndFade as g,slideUpAndFade as x,slideRightAndFade as w}from"../../utilities/style/keyframe-animations.js";const b=t(l,{bg:"white",borderRadius:"$1",boxShadow:"$2",maxWidth:"90vw",p:"$sizes$2",pr:"$6",position:"relative","@allowMotion":{animationDuration:"75ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",'&[data-state="open"]':{'&[data-side="top"]':{animationName:$},'&[data-side="right"]':{animationName:g},'&[data-side="bottom"]':{animationName:x},'&[data-side="left"]':{animationName:w}}},variants:{size:{sm:{maxWidth:"200px"},md:{maxWidth:"400px"},lg:{maxWidth:"600px"}}}}),z=t(p,{fill:"white",zIndex:1,'[data-align="end"] &':{mr:"$sizes$2"},'[data-align="start"] &':{ml:"$sizes$2"}}),C=({children:i,side:o="top",sideOffset:a=8,closePopoverText:s="Close popover",showCloseButton:n=!0,size:m="md",...d})=>e.createElement(b,{size:m,side:o,sideOffset:a,...d},n&&e.createElement(c,{as:h,css:{position:"absolute",right:"$0",top:"$0"},label:s,size:"lg",theme:"neutral"},e.createElement(f,{is:r})),i,e.createElement(z,{width:16,height:8}));export{C as PopoverContent};
1
+ import{Close as r}from"@atom-learning/icons";import{Content as l,Arrow as p,Close as h}from"@radix-ui/react-popover";import*as e from"react";import{styled as t}from"../../stitches.js";import{ActionIcon as c}from"../action-icon/ActionIcon.js";import{Icon as f}from"../icon/Icon.js";import{slideDownAndFade as $,slideLeftAndFade as x,slideUpAndFade as g,slideRightAndFade as w}from"../../utilities/style/keyframe-animations.js";const b=t(l,{bg:"white",borderRadius:"$1",boxShadow:"$2",maxWidth:"90vw",p:"$sizes$2",pr:"$6",position:"relative","@allowMotion":{animationDuration:"75ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",'&[data-state="open"]':{'&[data-side="top"]':{animationName:$},'&[data-side="right"]':{animationName:x},'&[data-side="bottom"]':{animationName:g},'&[data-side="left"]':{animationName:w}}},variants:{size:{sm:{maxWidth:"200px"},md:{maxWidth:"400px"},lg:{maxWidth:"600px"}}}}),z=t(p,{fill:"white",zIndex:1,'[data-align="end"] &':{mr:"$sizes$2"},'[data-align="start"] &':{ml:"$sizes$2"}}),C=({children:i,side:o="top",sideOffset:a=8,closePopoverText:s="Close popover",showCloseButton:n=!0,size:m="md",...d})=>e.createElement(b,{size:m,side:o,sideOffset:a,...d},n&&e.createElement(c,{as:h,css:{position:"absolute",right:"$0",top:"$0"},label:s,size:"md",theme:"neutral"},e.createElement(f,{is:r})),i,e.createElement(z,{width:16,height:8}));export{C as PopoverContent};
@@ -62,6 +62,7 @@ declare const StyledProgressBar: import("@stitches/react/types/styled-component"
62
62
  warning: any;
63
63
  warningMid: any;
64
64
  warningDark: any;
65
+ warningText: any;
65
66
  subjectEnglish: any;
66
67
  subjectMaths: any;
67
68
  subjectScience: any;
@@ -61,6 +61,7 @@ declare const StyledRadioButton: import("@stitches/react/types/styled-component"
61
61
  warning: any;
62
62
  warningMid: any;
63
63
  warningDark: any;
64
+ warningText: any;
64
65
  subjectEnglish: any;
65
66
  subjectMaths: any;
66
67
  subjectScience: any;
@@ -62,6 +62,7 @@ export declare const RadioButtonGroup: import("@stitches/react/types/styled-comp
62
62
  warning: any;
63
63
  warningMid: any;
64
64
  warningDark: any;
65
+ warningText: any;
65
66
  subjectEnglish: any;
66
67
  subjectMaths: any;
67
68
  subjectScience: any;
@@ -1 +1 @@
1
- import*as e from"react";import{useFormContext as V,Controller as C}from"react-hook-form";import{Description as F}from"../field-wrapper/FieldDescription.js";import"../form/Form.js";import{useFieldError as b}from"../form/useFieldError.js";import{Label as g}from"../label/Label.js";import"../radio-button/RadioButton.js";import{RadioButtonGroup as h}from"../radio-button/RadioButtonGroup.js";import{ValidationError as v}from"../validation-error/ValidationError.js";import{styled as B}from"../../stitches.js";import{RadioField as R}from"./RadioField.js";const q=B("fieldset",{all:"unset"}),r=({children:d,css:u,direction:s="column",defaultValue:t,description:l,label:c,name:n,validation:o,onValueChange:a})=>{const{control:p}=V(),{error:i}=b(n);return e.createElement(q,{css:u},e.createElement(g,{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:s,defaultValue:t,onValueChange:m=>{f(m),a==null||a(m)},value:E},d)}),i&&e.createElement(v,{css:{mt:"$2"}},i))};r.Item=R,r.displayName="RadioButtonField";export{r as RadioButtonField};
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};