@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.
Files changed (108) hide show
  1. package/CHANGELOG.md +3 -22
  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.d.ts +1 -0
  7. package/dist/components/alert-dialog/AlertDialog.d.ts +1 -0
  8. package/dist/components/alert-dialog/AlertDialogContent.d.ts +1 -0
  9. package/dist/components/badge/Badge.d.ts +2 -0
  10. package/dist/components/box/Box.d.ts +1 -0
  11. package/dist/components/button/Button.d.ts +1 -0
  12. package/dist/components/calendar/Day.d.ts +1 -0
  13. package/dist/components/carousel/CarouselPagination.d.ts +1 -0
  14. package/dist/components/carousel/CarouselSlide.d.ts +1 -0
  15. package/dist/components/carousel/CarouselSlider.d.ts +1 -0
  16. package/dist/components/checkbox/Checkbox.d.ts +1 -0
  17. package/dist/components/combobox/Combobox.d.ts +1 -0
  18. package/dist/components/combobox/ComboboxInput.d.ts +1 -0
  19. package/dist/components/combobox/ComboboxList.d.ts +1 -0
  20. package/dist/components/combobox/ComboboxOption.d.ts +1 -0
  21. package/dist/components/combobox/ComboboxPopover.d.ts +1 -0
  22. package/dist/components/dialog/Dialog.d.ts +1 -0
  23. package/dist/components/dialog/DialogBackground.d.ts +2 -0
  24. package/dist/components/dialog/DialogClose.d.ts +1 -0
  25. package/dist/components/dialog/DialogContent.d.ts +1 -0
  26. package/dist/components/divider/Divider.d.ts +1 -0
  27. package/dist/components/dropdown-menu/DropdownMenu.d.ts +1 -0
  28. package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +1 -0
  29. package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +1 -0
  30. package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +1 -0
  31. package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +1 -0
  32. package/dist/components/empty-state/EmptyState.d.ts +2 -0
  33. package/dist/components/empty-state/EmptyStateBody.d.ts +2 -0
  34. package/dist/components/empty-state/EmptyStateImage.d.ts +2 -0
  35. package/dist/components/empty-state/EmptyStateTitle.d.ts +1 -0
  36. package/dist/components/field-wrapper/FieldWrapper.js +1 -1
  37. package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
  38. package/dist/components/flex/Flex.d.ts +1 -0
  39. package/dist/components/form/Form.d.ts +1 -0
  40. package/dist/components/grid/Grid.d.ts +1 -0
  41. package/dist/components/heading/Heading.d.ts +1 -0
  42. package/dist/components/icon/Icon.d.ts +1 -0
  43. package/dist/components/image/Image.d.ts +1 -0
  44. package/dist/components/index.d.ts +1 -1
  45. package/dist/components/inline-message/InlineMessage.config.d.ts +5 -0
  46. package/dist/components/inline-message/InlineMessage.config.js +1 -0
  47. package/dist/components/inline-message/InlineMessage.d.ts +541 -0
  48. package/dist/components/inline-message/InlineMessage.js +1 -0
  49. package/dist/components/inline-message/InlineMessage.types.d.ts +1 -0
  50. package/dist/components/inline-message/index.d.ts +1 -0
  51. package/dist/components/input/Input.d.ts +1 -0
  52. package/dist/components/label/Label.d.ts +1 -0
  53. package/dist/components/link/Link.d.ts +1 -0
  54. package/dist/components/list/List.d.ts +2 -0
  55. package/dist/components/notification-badge/NotificationBadge.d.ts +2 -0
  56. package/dist/components/popover/Popover.d.ts +1 -0
  57. package/dist/components/popover/PopoverContent.d.ts +1 -0
  58. package/dist/components/progress-bar/ProgressBar.d.ts +1 -0
  59. package/dist/components/radio-button/RadioButton.d.ts +1 -0
  60. package/dist/components/radio-button/RadioButtonGroup.d.ts +1 -0
  61. package/dist/components/radio-button-field/RadioButtonField.js +1 -1
  62. package/dist/components/radio-card/RadioCard.d.ts +1 -0
  63. package/dist/components/select/Select.d.ts +1 -0
  64. package/dist/components/slider/Slider.d.ts +1 -0
  65. package/dist/components/stack/Stack.d.ts +1 -0
  66. package/dist/components/stack-content/StackContent.d.ts +1 -0
  67. package/dist/components/stepper/StepperStepBullet.d.ts +2 -0
  68. package/dist/components/stepper/StepperStepContainer.d.ts +2 -0
  69. package/dist/components/stepper/StepperStepLabel.d.ts +2 -0
  70. package/dist/components/switch/Switch.d.ts +1 -0
  71. package/dist/components/table/Table.d.ts +1 -0
  72. package/dist/components/table/TableBody.d.ts +1 -0
  73. package/dist/components/table/TableCell.d.ts +1 -0
  74. package/dist/components/table/TableFooter.d.ts +1 -0
  75. package/dist/components/table/TableFooterCell.d.ts +1 -0
  76. package/dist/components/table/TableHeader.d.ts +1 -0
  77. package/dist/components/table/TableHeaderCell.d.ts +1 -0
  78. package/dist/components/table/TableRow.d.ts +1 -0
  79. package/dist/components/tabs/TabTrigger.d.ts +1 -0
  80. package/dist/components/tabs/Tabs.d.ts +2 -0
  81. package/dist/components/tabs/TabsTriggerList.d.ts +1 -0
  82. package/dist/components/text/Text.d.ts +1 -0
  83. package/dist/components/textarea/Textarea.d.ts +1 -0
  84. package/dist/components/toast/Toast.d.ts +1 -0
  85. package/dist/components/toggle-group/ToggleGroupButton.d.ts +2 -0
  86. package/dist/components/toggle-group/ToggleGroupItem.d.ts +2 -0
  87. package/dist/components/toggle-group/ToggleGroupRoot.d.ts +1 -0
  88. package/dist/components/toggle-group/index.d.ts +5 -0
  89. package/dist/components/tooltip/TooltipContent.d.ts +1 -0
  90. package/dist/components/video/Video.d.ts +2 -0
  91. package/dist/docgen.json +1 -1
  92. package/dist/docs/CheckboxField.mdx +1 -1
  93. package/dist/docs/DateField.mdx +2 -2
  94. package/dist/docs/FieldWrapper.mdx +1 -1
  95. package/dist/docs/Form.mdx +3 -3
  96. package/dist/docs/InlineMessage.mdx +52 -0
  97. package/dist/docs/InputField.mdx +2 -2
  98. package/dist/docs/RadioButtonField.mdx +2 -2
  99. package/dist/docs/SelectField.mdx +2 -2
  100. package/dist/docs/TextareaField.mdx +1 -1
  101. package/dist/index.cjs.js +1 -1
  102. package/dist/index.js +1 -1
  103. package/dist/stitches.d.ts +10 -0
  104. package/package.json +3 -2
  105. package/dist/components/validation-error/ValidationError.d.ts +0 -7
  106. package/dist/components/validation-error/ValidationError.js +0 -1
  107. package/dist/components/validation-error/index.d.ts +0 -1
  108. package/dist/docs/ValidationError.mdx +0 -12
package/CHANGELOG.md CHANGED
@@ -1,28 +1,9 @@
1
- # [2.0.0](https://github.com/Atom-Learning/components/compare/v1.24.2...v2.0.0) (2022-09-06)
1
+ # [2.1.0](https://github.com/Atom-Learning/components/compare/v2.0.0...v2.1.0) (2022-09-09)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * action icon sizes ([e46f613](https://github.com/Atom-Learning/components/commit/e46f613c030e3e3cc15ab2c8e148fa95e11f01e8))
7
- * align sizes to buttons ([4df4f1f](https://github.com/Atom-Learning/components/commit/4df4f1fbd8e1a2eaf6f26166a28086a70009a2c2))
8
- * always base icon size on actionicon size ([2570aaa](https://github.com/Atom-Learning/components/commit/2570aaa26fa919355f33f7eb8fea5f16be6df787))
9
- * attempting manual merge ([51a1c66](https://github.com/Atom-Learning/components/commit/51a1c666de0b6cad1c086bcc6efe1dd1f57ab47d))
10
- * changing back missed icon size ([23348a3](https://github.com/Atom-Learning/components/commit/23348a3c3588329de9285aa9002ba77497ac0789))
11
- * display px value in docs ([fe24ca0](https://github.com/Atom-Learning/components/commit/fe24ca09a74cdfd4c4e8d3fb3603f2c3b61e6c24))
12
- * fixing type issue ([1510885](https://github.com/Atom-Learning/components/commit/1510885f5b0e97e75d48e8e1414e7b4324dc8ba6))
13
- * further aligning with design after unintended change to icon ([1ccaf5e](https://github.com/Atom-Learning/components/commit/1ccaf5e087475411f194bd359a6567977c91b9af))
14
- * merge in main ([52176f2](https://github.com/Atom-Learning/components/commit/52176f203441f96d4e8b702ca63d79db715d4242))
15
- * moving logic into compound variants ([8567512](https://github.com/Atom-Learning/components/commit/85675123c43f7e4e0c71093163380e42a91fb3ed))
16
- * moving to size map rather than compound variants ([ab10933](https://github.com/Atom-Learning/components/commit/ab10933dc308cc563dd11fe29245717705c1262b))
17
- * retaining conditional logic on input fields ([72c1e52](https://github.com/Atom-Learning/components/commit/72c1e52562d4939b1a4cc10771d4885f1f2e55ce))
18
- * updating mdx to remove unused prop ([94444f3](https://github.com/Atom-Learning/components/commit/94444f3aff999ad4b56216f47fda4e08464667db))
19
- * updating snapshot ([59e1460](https://github.com/Atom-Learning/components/commit/59e14605b727eb6e46827dc8d524059dd0f6f658))
20
- * updating snapshots after merge conflict ([8c0577a](https://github.com/Atom-Learning/components/commit/8c0577a4223936fdfbad6c2950798d7c9dbfcddc))
21
-
22
-
23
- ### BREAKING CHANGES
24
-
25
- * { sizes for ActionIcon are going from sm-xl to xs-lg }
6
+ * inline message ([e973432](https://github.com/Atom-Learning/components/commit/e97343211f5ed65a53d3b82bba5157b3854161a5))
26
7
 
27
8
  # [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
28
9
 
@@ -62,6 +62,7 @@ declare const StyledRoot: import("@stitches/react/types/styled-component").Style
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;
@@ -59,6 +59,7 @@ declare const StyledContent: import("@stitches/react/types/styled-component").St
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;
@@ -59,6 +59,7 @@ declare const StyledItem: import("@stitches/react/types/styled-component").Style
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;
@@ -61,6 +61,7 @@ declare const StyledTrigger: import("@stitches/react/types/styled-component").St
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;
@@ -67,6 +67,7 @@ declare const StyledButton: import("@stitches/react/types/styled-component").Sty
67
67
  warning: any;
68
68
  warningMid: any;
69
69
  warningDark: any;
70
+ warningText: any;
70
71
  subjectEnglish: any;
71
72
  subjectMaths: any;
72
73
  subjectScience: any;
@@ -61,6 +61,7 @@ declare const StyledAlertDialog: 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;
@@ -61,6 +61,7 @@ declare const StyledAlertDialogContent: import("@stitches/react/types/styled-com
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;
@@ -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;
@@ -326,6 +327,7 @@ declare const StyledBadge: import("@stitches/react/types/styled-component").Styl
326
327
  warning: any;
327
328
  warningMid: any;
328
329
  warningDark: any;
330
+ warningText: any;
329
331
  subjectEnglish: any;
330
332
  subjectMaths: any;
331
333
  subjectScience: any;
@@ -58,6 +58,7 @@ export declare const Box: import("@stitches/react/types/styled-component").Style
58
58
  warning: any;
59
59
  warningMid: any;
60
60
  warningDark: any;
61
+ warningText: any;
61
62
  subjectEnglish: any;
62
63
  subjectMaths: any;
63
64
  subjectScience: any;
@@ -69,6 +69,7 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
69
69
  warning: any;
70
70
  warningMid: any;
71
71
  warningDark: any;
72
+ warningText: any;
72
73
  subjectEnglish: any;
73
74
  subjectMaths: any;
74
75
  subjectScience: any;
@@ -62,6 +62,7 @@ export declare const Day: import("@stitches/react/types/styled-component").Style
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;
@@ -59,6 +59,7 @@ export declare const CarouselPagination: import("@stitches/react/types/styled-co
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;
@@ -59,6 +59,7 @@ declare const StyledSlide: 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;
@@ -61,6 +61,7 @@ export declare const CarouselSlider: import("@stitches/react/types/styled-compon
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 StyledCheckbox: import("@stitches/react/types/styled-component").S
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;
@@ -64,6 +64,7 @@ declare const StyledCombobox: import("@stitches/react/types/styled-component").S
64
64
  warning: any;
65
65
  warningMid: any;
66
66
  warningDark: any;
67
+ warningText: any;
67
68
  subjectEnglish: any;
68
69
  subjectMaths: any;
69
70
  subjectScience: any;
@@ -60,6 +60,7 @@ export declare const ComboboxInput: import("@stitches/react/types/styled-compone
60
60
  warning: any;
61
61
  warningMid: any;
62
62
  warningDark: any;
63
+ warningText: any;
63
64
  subjectEnglish: any;
64
65
  subjectMaths: any;
65
66
  subjectScience: any;
@@ -58,6 +58,7 @@ export declare const ComboboxList: import("@stitches/react/types/styled-componen
58
58
  warning: any;
59
59
  warningMid: any;
60
60
  warningDark: any;
61
+ warningText: any;
61
62
  subjectEnglish: any;
62
63
  subjectMaths: any;
63
64
  subjectScience: any;
@@ -58,6 +58,7 @@ export declare const ComboboxOption: import("@stitches/react/types/styled-compon
58
58
  warning: any;
59
59
  warningMid: any;
60
60
  warningDark: any;
61
+ warningText: any;
61
62
  subjectEnglish: any;
62
63
  subjectMaths: any;
63
64
  subjectScience: any;
@@ -58,6 +58,7 @@ export declare const ComboboxPopover: import("@stitches/react/types/styled-compo
58
58
  warning: any;
59
59
  warningMid: any;
60
60
  warningDark: any;
61
+ warningText: any;
61
62
  subjectEnglish: any;
62
63
  subjectMaths: any;
63
64
  subjectScience: any;
@@ -63,6 +63,7 @@ declare const StyledDialog: import("@stitches/react/types/styled-component").Sty
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;
@@ -58,6 +58,7 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
58
58
  warning: any;
59
59
  warningMid: any;
60
60
  warningDark: any;
61
+ warningText: any;
61
62
  subjectEnglish: any;
62
63
  subjectMaths: any;
63
64
  subjectScience: any;
@@ -322,6 +323,7 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
322
323
  warning: any;
323
324
  warningMid: any;
324
325
  warningDark: any;
326
+ warningText: any;
325
327
  subjectEnglish: any;
326
328
  subjectMaths: any;
327
329
  subjectScience: any;
@@ -59,6 +59,7 @@ export declare const DialogClose: 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;
@@ -61,6 +61,7 @@ declare const StyledDialogContent: import("@stitches/react/types/styled-componen
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;
@@ -61,6 +61,7 @@ export declare const StyledDivider: import("@stitches/react/types/styled-compone
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;
@@ -64,6 +64,7 @@ declare const Root: import("@stitches/react/types/styled-component").StyledCompo
64
64
  warning: any;
65
65
  warningMid: any;
66
66
  warningDark: any;
67
+ warningText: any;
67
68
  subjectEnglish: any;
68
69
  subjectMaths: any;
69
70
  subjectScience: any;
@@ -59,6 +59,7 @@ export declare const DropdownMenuContent: import("@stitches/react/types/styled-c
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;
@@ -92,6 +92,7 @@ export declare const DropdownMenuItem: import("@stitches/react/types/styled-comp
92
92
  warning: any;
93
93
  warningMid: any;
94
94
  warningDark: any;
95
+ warningText: any;
95
96
  subjectEnglish: any;
96
97
  subjectMaths: any;
97
98
  subjectScience: any;
@@ -59,6 +59,7 @@ export declare const DropdownMenuSeparator: import("@stitches/react/types/styled
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;
@@ -59,6 +59,7 @@ export declare const DropdownMenuTrigger: import("@stitches/react/types/styled-c
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;
@@ -62,6 +62,7 @@ declare const EmptyStateContainer: import("@stitches/react/types/styled-componen
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;
@@ -328,6 +329,7 @@ declare const EmptyStateContainer: import("@stitches/react/types/styled-componen
328
329
  warning: any;
329
330
  warningMid: any;
330
331
  warningDark: any;
332
+ warningText: any;
331
333
  subjectEnglish: any;
332
334
  subjectMaths: any;
333
335
  subjectScience: any;
@@ -64,6 +64,7 @@ export declare const EmptyStateBody: import("@stitches/react/types/styled-compon
64
64
  warning: any;
65
65
  warningMid: any;
66
66
  warningDark: any;
67
+ warningText: any;
67
68
  subjectEnglish: any;
68
69
  subjectMaths: any;
69
70
  subjectScience: any;
@@ -333,6 +334,7 @@ export declare const EmptyStateBody: import("@stitches/react/types/styled-compon
333
334
  warning: any;
334
335
  warningMid: any;
335
336
  warningDark: any;
337
+ warningText: any;
336
338
  subjectEnglish: any;
337
339
  subjectMaths: any;
338
340
  subjectScience: any;
@@ -62,6 +62,7 @@ export declare const EmptyStateImage: import("@stitches/react/types/styled-compo
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;
@@ -331,6 +332,7 @@ export declare const EmptyStateImage: import("@stitches/react/types/styled-compo
331
332
  warning: any;
332
333
  warningMid: any;
333
334
  warningDark: any;
335
+ warningText: any;
334
336
  subjectEnglish: any;
335
337
  subjectMaths: any;
336
338
  subjectScience: any;
@@ -60,6 +60,7 @@ export declare const EmptyStateTitle: import("@stitches/react/types/styled-compo
60
60
  warning: any;
61
61
  warningMid: any;
62
62
  warningDark: any;
63
+ warningText: any;
63
64
  subjectEnglish: any;
64
65
  subjectMaths: any;
65
66
  subjectScience: any;
@@ -1 +1 @@
1
- import*as e from"react";import{Box as p}from"../box/Box.js";import{Flex as c}from"../flex/Flex.js";import{Label as d}from"../label/Label.js";import{Link as f}from"../link/Link.js";import{ValidationError as E}from"../validation-error/ValidationError.js";import{Description as b}from"./FieldDescription.js";const o=({css:i,children:l,error:t,fieldId:s,label:a,prompt:r,description:m,required:n})=>e.createElement(p,{css:i},e.createElement(c,{css:{justifyContent:"space-between",alignItems:"center",mb:"$3"}},e.createElement(d,{htmlFor:s,required:n},a),r&&e.createElement(f,{href:r.link,size:"sm"},r.label)),m&&e.createElement(b,{css:{mb:"$3"}},m),l,t&&e.createElement(E,{css:{mt:"$2"}},t));o.displayName="FieldWrapper";export{o as FieldWrapper};
1
+ import*as e from"react";import{Box as a}from"../box/Box.js";import{Flex as c}from"../flex/Flex.js";import{Label as f}from"../label/Label.js";import{Link as d}from"../link/Link.js";import{InlineMessage as b}from"../inline-message/InlineMessage.js";import{Description as E}from"./FieldDescription.js";const i=({css:o,children:l,error:t,fieldId:s,label:n,prompt:r,description:m,required:p})=>e.createElement(a,{css:o},e.createElement(c,{css:{justifyContent:"space-between",alignItems:"center",mb:"$3"}},e.createElement(f,{htmlFor:s,required:p},n),r&&e.createElement(d,{href:r.link,size:"sm"},r.label)),m&&e.createElement(E,{css:{mb:"$3"}},m),l,t&&e.createElement(b,{css:{mt:"$2"}},t));i.displayName="FieldWrapper";export{i as FieldWrapper};
@@ -1 +1 @@
1
- import*as e from"react";import{Box as m}from"../box/Box.js";import{Checkbox as d}from"../checkbox/Checkbox.js";import{Label as $}from"../label/Label.js";import{RadioButton as f}from"../radio-button/RadioButton.js";import"../radio-button/RadioButtonGroup.js";import{ValidationError as E}from"../validation-error/ValidationError.js";import{Description as u}from"./FieldDescription.js";const l=({align:n="start",children:a,css:s,description:i,direction:t="row",error:o,label:p,required:c})=>e.createElement(m,{css:s},e.createElement($,{align:n,direction:t,required:c,type:"inline"},e.Children.map(a,r=>e.createElement(m,{css:{[t==="reverse"?"ml":"mr"]:"$3",...((r==null?void 0:r.type)===d||(r==null?void 0:r.type)===f)&&{transform:"translateY($space$1)"}}},r)),p),o&&e.createElement(E,{css:{mt:"$2"}},o),i&&e.createElement(u,{css:{mt:"$2",[t==="reverse"?"mr":"ml"]:"calc($space$3 + $sizes$1)"}},i));l.displayName="InlineFieldWrapper";export{l as InlineFieldWrapper};
1
+ import*as e from"react";import{Box as o}from"../box/Box.js";import{Checkbox as d}from"../checkbox/Checkbox.js";import{Label as $}from"../label/Label.js";import{RadioButton as f}from"../radio-button/RadioButton.js";import"../radio-button/RadioButtonGroup.js";import{InlineMessage as u}from"../inline-message/InlineMessage.js";import{Description as E}from"./FieldDescription.js";const l=({align:n="start",children:a,css:s,description:i,direction:t="row",error:m,label:p,required:c})=>e.createElement(o,{css:s},e.createElement($,{align:n,direction:t,required:c,type:"inline"},e.Children.map(a,r=>e.createElement(o,{css:{[t==="reverse"?"ml":"mr"]:"$3",...((r==null?void 0:r.type)===d||(r==null?void 0:r.type)===f)&&{transform:"translateY($space$1)"}}},r)),p),m&&e.createElement(u,{css:{mt:"$2"}},m),i&&e.createElement(E,{css:{mt:"$2",[t==="reverse"?"mr":"ml"]:"calc($space$3 + $sizes$1)"}},i));l.displayName="InlineFieldWrapper";export{l as InlineFieldWrapper};
@@ -58,6 +58,7 @@ export declare const Flex: import("@stitches/react/types/styled-component").Styl
58
58
  warning: any;
59
59
  warningMid: any;
60
60
  warningDark: any;
61
+ warningText: any;
61
62
  subjectEnglish: any;
62
63
  subjectMaths: any;
63
64
  subjectScience: any;
@@ -60,6 +60,7 @@ declare const StyledForm: import("@stitches/react/types/styled-component").Style
60
60
  warning: any;
61
61
  warningMid: any;
62
62
  warningDark: any;
63
+ warningText: any;
63
64
  subjectEnglish: any;
64
65
  subjectMaths: any;
65
66
  subjectScience: any;
@@ -61,6 +61,7 @@ declare const GridContainer: import("@stitches/react/types/styled-component").St
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 StyledHeading: import("@stitches/react/types/styled-compone
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;
@@ -62,6 +62,7 @@ export declare const StyledIcon: 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;
@@ -60,6 +60,7 @@ export declare const StyledImage: import("@stitches/react/types/styled-component
60
60
  warning: any;
61
61
  warningMid: any;
62
62
  warningDark: any;
63
+ warningText: any;
63
64
  subjectEnglish: any;
64
65
  subjectMaths: any;
65
66
  subjectScience: any;
@@ -22,6 +22,7 @@ export { Grid } from './grid';
22
22
  export { Heading } from './heading';
23
23
  export { Icon } from './icon';
24
24
  export { Image } from './image';
25
+ export { InlineMessage } from './inline-message';
25
26
  export { Input } from './input';
26
27
  export { FileInput } from './file-input';
27
28
  export { InputField } from './input-field';
@@ -55,5 +56,4 @@ export { TextareaField } from './textarea-field';
55
56
  export { ToastProvider, toast } from './toast';
56
57
  export { ToggleGroup } from './toggle-group';
57
58
  export { Tooltip } from './tooltip';
58
- export { ValidationError } from './validation-error';
59
59
  export { Video } from './video';
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import { InlineMessageTheme } from "./InlineMessage.types";
3
+ import type { CSS } from '../../stitches';
4
+ export declare const INLINE_MESSAGE_THEMES: Record<InlineMessageTheme, CSS>;
5
+ export declare const INLINE_MESSAGE_ICONS: Record<InlineMessageTheme, React.FC<React.SVGProps<SVGSVGElement>>>;
@@ -0,0 +1 @@
1
+ import{OkCircle as o,Danger as n,Info as r,Error as c}from"@atom-learning/icons";const e={success:{color:"$success"},warning:{color:"$warningText","& svg":{color:"$warningDark"}},info:{color:"$primary"},neutral:{color:"$tonal400"},error:{color:"$danger"}},a={success:o,warning:n,info:r,neutral:r,error:c};export{a as INLINE_MESSAGE_ICONS,e as INLINE_MESSAGE_THEMES};