@atom-learning/components 1.0.0-rc.3 → 1.0.1

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 (118) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/components/action-icon/ActionIcon.d.ts +129 -43
  3. package/dist/components/alert-dialog/AlertDialog.d.ts +128 -42
  4. package/dist/components/alert-dialog/AlertDialogContent.d.ts +128 -42
  5. package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
  6. package/dist/components/box/Box.d.ts +128 -42
  7. package/dist/components/button/Button.d.ts +128 -42
  8. package/dist/components/button/Button.js +1 -1
  9. package/dist/components/carousel/Carousel.js +1 -1
  10. package/dist/components/carousel/CarouselPagination.d.ts +128 -42
  11. package/dist/components/carousel/CarouselSlide.d.ts +128 -42
  12. package/dist/components/carousel/CarouselSlider.d.ts +128 -42
  13. package/dist/components/checkbox/Checkbox.d.ts +128 -42
  14. package/dist/components/combobox/Combobox.d.ts +128 -42
  15. package/dist/components/combobox/ComboboxInput.d.ts +128 -42
  16. package/dist/components/combobox/ComboboxInput.js +1 -1
  17. package/dist/components/combobox/ComboboxList.d.ts +128 -42
  18. package/dist/components/combobox/ComboboxOption.d.ts +128 -42
  19. package/dist/components/combobox/ComboboxPopover.d.ts +128 -42
  20. package/dist/components/dialog/Dialog.d.ts +128 -42
  21. package/dist/components/dialog/DialogClose.d.ts +128 -42
  22. package/dist/components/dialog/DialogContent.d.ts +128 -42
  23. package/dist/components/dialog/DialogContent.js +1 -1
  24. package/dist/components/divider/Divider.d.ts +134 -43
  25. package/dist/components/divider/Divider.js +1 -1
  26. package/dist/components/dropdown-menu/DropdownMenu.d.ts +128 -42
  27. package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +128 -42
  28. package/dist/components/dropdown-menu/DropdownMenuContent.js +1 -1
  29. package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +130 -45
  30. package/dist/components/dropdown-menu/DropdownMenuItem.js +1 -1
  31. package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +128 -42
  32. package/dist/components/dropdown-menu/DropdownMenuSeparator.js +1 -1
  33. package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +128 -42
  34. package/dist/components/field-wrapper/InlineFieldWrapper.d.ts +1 -1
  35. package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
  36. package/dist/components/flex/Flex.d.ts +128 -42
  37. package/dist/components/form/Form.d.ts +128 -42
  38. package/dist/components/grid/Grid.d.ts +128 -42
  39. package/dist/components/heading/Heading.d.ts +128 -42
  40. package/dist/components/heading/Heading.js +1 -1
  41. package/dist/components/icon/Icon.d.ts +128 -42
  42. package/dist/components/image/Image.d.ts +128 -42
  43. package/dist/components/index.d.ts +5 -4
  44. package/dist/components/input/Input.d.ts +128 -42
  45. package/dist/components/label/Label.d.ts +129 -43
  46. package/dist/components/label/Label.js +1 -1
  47. package/dist/components/link/Link.d.ts +128 -42
  48. package/dist/components/list/List.d.ts +288 -116
  49. package/dist/components/popover/Popover.d.ts +128 -42
  50. package/dist/components/popover/PopoverContent.d.ts +128 -42
  51. package/dist/components/popover/PopoverContent.js +1 -1
  52. package/dist/components/progress-bar/ProgressBar.d.ts +128 -42
  53. package/dist/components/radio-button/RadioButton.d.ts +275 -0
  54. package/dist/components/radio-button/RadioButton.js +1 -0
  55. package/dist/components/radio-button/RadioButtonGroup.d.ts +269 -0
  56. package/dist/components/{radio → radio-button}/RadioButtonGroup.js +0 -0
  57. package/dist/components/{radio → radio-button}/index.d.ts +0 -0
  58. package/dist/components/{radio-field/RadioGroupField.d.ts → radio-button-field/RadioButtonField.d.ts} +2 -2
  59. package/dist/components/radio-button-field/RadioButtonField.js +1 -0
  60. package/dist/components/{radio-field → radio-button-field}/RadioField.d.ts +1 -1
  61. package/dist/components/radio-button-field/RadioField.js +1 -0
  62. package/dist/components/radio-button-field/index.d.ts +1 -0
  63. package/dist/components/radio-card/RadioCard.d.ts +274 -0
  64. package/dist/components/radio-card/RadioCard.js +1 -0
  65. package/dist/components/radio-card/RadioCardGroup.d.ts +9 -0
  66. package/dist/components/radio-card/RadioCardGroup.js +1 -0
  67. package/dist/components/radio-card/index.d.ts +2 -0
  68. package/dist/components/select/Select.d.ts +128 -42
  69. package/dist/components/select/Select.js +1 -1
  70. package/dist/components/stack/Stack.d.ts +128 -42
  71. package/dist/components/stack-content/StackContent.d.ts +128 -42
  72. package/dist/components/switch/Switch.d.ts +128 -42
  73. package/dist/components/switch/Switch.js +1 -1
  74. package/dist/components/table/Table.d.ts +128 -42
  75. package/dist/components/table/TableBody.d.ts +128 -42
  76. package/dist/components/table/TableCell.d.ts +128 -42
  77. package/dist/components/table/TableCell.js +1 -1
  78. package/dist/components/table/TableFooter.d.ts +128 -42
  79. package/dist/components/table/TableFooterCell.d.ts +128 -42
  80. package/dist/components/table/TableFooterCell.js +1 -1
  81. package/dist/components/table/TableHeader.d.ts +128 -42
  82. package/dist/components/table/TableHeaderCell.d.ts +128 -42
  83. package/dist/components/table/TableRow.d.ts +128 -42
  84. package/dist/components/tabs/TabTrigger.d.ts +128 -42
  85. package/dist/components/tabs/TabTrigger.js +1 -1
  86. package/dist/components/tabs/Tabs.d.ts +432 -174
  87. package/dist/components/text/Text.d.ts +128 -42
  88. package/dist/components/text/Text.js +1 -1
  89. package/dist/components/textarea/Textarea.d.ts +128 -42
  90. package/dist/components/toast/Toast.d.ts +128 -42
  91. package/dist/components/toast/Toast.js +1 -1
  92. package/dist/components/tooltip/Tooltip.js +1 -1
  93. package/dist/components/tooltip/TooltipContent.d.ts +128 -42
  94. package/dist/components/tooltip/TooltipContent.js +1 -1
  95. package/dist/components/video/Video.d.ts +128 -42
  96. package/dist/docgen.json +1 -1
  97. package/dist/docs/Divider.mdx +6 -2
  98. package/dist/docs/DropdownMenu.mdx +5 -3
  99. package/dist/docs/RadioButtonField.mdx +19 -0
  100. package/dist/docs/RadioCard.mdx +62 -0
  101. package/dist/index.cjs.js +1 -1
  102. package/dist/index.js +1 -1
  103. package/dist/stitches.d.ts +610 -200
  104. package/dist/stitches.js +1 -1
  105. package/dist/types/navigatorActions.types.d.ts +2 -5
  106. package/dist/utilities/css-wrapper/CSSWrapper.d.ts +1 -1
  107. package/dist/utilities/css-wrapper/CSSWrapper.js +1 -1
  108. package/dist/utilities/style/index.d.ts +3 -2
  109. package/dist/utilities/style/keyframe-animations.d.ts +24 -0
  110. package/dist/utilities/style/keyframe-animations.js +1 -0
  111. package/package.json +21 -20
  112. package/dist/components/radio/RadioButton.d.ts +0 -189
  113. package/dist/components/radio/RadioButton.js +0 -1
  114. package/dist/components/radio/RadioButtonGroup.d.ts +0 -183
  115. package/dist/components/radio-field/RadioField.js +0 -1
  116. package/dist/components/radio-field/RadioGroupField.js +0 -1
  117. package/dist/components/radio-field/index.d.ts +0 -1
  118. package/dist/docs/RadioField.mdx +0 -19
@@ -13,6 +13,7 @@ export declare const StyledParagraph: import("@stitches/react/types/styled-compo
13
13
  lg: string;
14
14
  xl: string;
15
15
  reducedMotion: string;
16
+ allowMotion: string;
16
17
  hover: string;
17
18
  }, import("@stitches/react/types/css-util").CSS<{
18
19
  sm: string;
@@ -20,6 +21,7 @@ export declare const StyledParagraph: import("@stitches/react/types/styled-compo
20
21
  lg: string;
21
22
  xl: string;
22
23
  reducedMotion: string;
24
+ allowMotion: string;
23
25
  hover: string;
24
26
  }, {
25
27
  colors: {
@@ -126,64 +128,148 @@ export declare const StyledParagraph: import("@stitches/react/types/styled-compo
126
128
  "3": any;
127
129
  };
128
130
  }, import("@stitches/react/types/config").DefaultThemeMap, {
129
- bg: (value: import("@stitches/react").PropertyValue<"background">) => {
130
- background: import("@stitches/react").PropertyValue<"background">;
131
+ bg: (value: {
132
+ readonly [$$PropertyValue]: "background";
133
+ }) => {
134
+ background: {
135
+ readonly [$$PropertyValue]: "background";
136
+ };
131
137
  };
132
- inset: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
133
- top: string | number | import("@stitches/react").ScaleValue<"space">;
134
- right: string | number | import("@stitches/react").ScaleValue<"space">;
135
- bottom: string | number | import("@stitches/react").ScaleValue<"space">;
136
- left: string | number | import("@stitches/react").ScaleValue<"space">;
138
+ inset: (value: string | number | {
139
+ readonly [$$ScaleValue]: "space";
140
+ }) => {
141
+ top: string | number | {
142
+ readonly [$$ScaleValue]: "space";
143
+ };
144
+ right: string | number | {
145
+ readonly [$$ScaleValue]: "space";
146
+ };
147
+ bottom: string | number | {
148
+ readonly [$$ScaleValue]: "space";
149
+ };
150
+ left: string | number | {
151
+ readonly [$$ScaleValue]: "space";
152
+ };
137
153
  };
138
- size: (value: string | number | import("@stitches/react").ScaleValue<"size">) => {
139
- height: string | number | import("@stitches/react").ScaleValue<"size">;
140
- width: string | number | import("@stitches/react").ScaleValue<"size">;
154
+ size: (value: string | number | {
155
+ readonly [$$ScaleValue]: "size";
156
+ }) => {
157
+ height: string | number | {
158
+ readonly [$$ScaleValue]: "size";
159
+ };
160
+ width: string | number | {
161
+ readonly [$$ScaleValue]: "size";
162
+ };
141
163
  };
142
- p: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
143
- padding: string | number | import("@stitches/react").ScaleValue<"space">;
164
+ p: (value: string | number | {
165
+ readonly [$$ScaleValue]: "space";
166
+ }) => {
167
+ padding: string | number | {
168
+ readonly [$$ScaleValue]: "space";
169
+ };
144
170
  };
145
- pt: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
146
- paddingTop: string | number | import("@stitches/react").ScaleValue<"space">;
171
+ pt: (value: string | number | {
172
+ readonly [$$ScaleValue]: "space";
173
+ }) => {
174
+ paddingTop: string | number | {
175
+ readonly [$$ScaleValue]: "space";
176
+ };
147
177
  };
148
- pr: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
149
- paddingRight: string | number | import("@stitches/react").ScaleValue<"space">;
178
+ pr: (value: string | number | {
179
+ readonly [$$ScaleValue]: "space";
180
+ }) => {
181
+ paddingRight: string | number | {
182
+ readonly [$$ScaleValue]: "space";
183
+ };
150
184
  };
151
- pb: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
152
- paddingBottom: string | number | import("@stitches/react").ScaleValue<"space">;
185
+ pb: (value: string | number | {
186
+ readonly [$$ScaleValue]: "space";
187
+ }) => {
188
+ paddingBottom: string | number | {
189
+ readonly [$$ScaleValue]: "space";
190
+ };
153
191
  };
154
- pl: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
155
- paddingLeft: string | number | import("@stitches/react").ScaleValue<"space">;
192
+ pl: (value: string | number | {
193
+ readonly [$$ScaleValue]: "space";
194
+ }) => {
195
+ paddingLeft: string | number | {
196
+ readonly [$$ScaleValue]: "space";
197
+ };
156
198
  };
157
- px: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
158
- paddingLeft: string | number | import("@stitches/react").ScaleValue<"space">;
159
- paddingRight: string | number | import("@stitches/react").ScaleValue<"space">;
199
+ px: (value: string | number | {
200
+ readonly [$$ScaleValue]: "space";
201
+ }) => {
202
+ paddingLeft: string | number | {
203
+ readonly [$$ScaleValue]: "space";
204
+ };
205
+ paddingRight: string | number | {
206
+ readonly [$$ScaleValue]: "space";
207
+ };
160
208
  };
161
- py: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
162
- paddingTop: string | number | import("@stitches/react").ScaleValue<"space">;
163
- paddingBottom: string | number | import("@stitches/react").ScaleValue<"space">;
209
+ py: (value: string | number | {
210
+ readonly [$$ScaleValue]: "space";
211
+ }) => {
212
+ paddingTop: string | number | {
213
+ readonly [$$ScaleValue]: "space";
214
+ };
215
+ paddingBottom: string | number | {
216
+ readonly [$$ScaleValue]: "space";
217
+ };
164
218
  };
165
- m: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
166
- margin: string | number | import("@stitches/react").ScaleValue<"space">;
219
+ m: (value: string | number | {
220
+ readonly [$$ScaleValue]: "space";
221
+ }) => {
222
+ margin: string | number | {
223
+ readonly [$$ScaleValue]: "space";
224
+ };
167
225
  };
168
- mt: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
169
- marginTop: string | number | import("@stitches/react").ScaleValue<"space">;
226
+ mt: (value: string | number | {
227
+ readonly [$$ScaleValue]: "space";
228
+ }) => {
229
+ marginTop: string | number | {
230
+ readonly [$$ScaleValue]: "space";
231
+ };
170
232
  };
171
- mr: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
172
- marginRight: string | number | import("@stitches/react").ScaleValue<"space">;
233
+ mr: (value: string | number | {
234
+ readonly [$$ScaleValue]: "space";
235
+ }) => {
236
+ marginRight: string | number | {
237
+ readonly [$$ScaleValue]: "space";
238
+ };
173
239
  };
174
- mb: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
175
- marginBottom: string | number | import("@stitches/react").ScaleValue<"space">;
240
+ mb: (value: string | number | {
241
+ readonly [$$ScaleValue]: "space";
242
+ }) => {
243
+ marginBottom: string | number | {
244
+ readonly [$$ScaleValue]: "space";
245
+ };
176
246
  };
177
- ml: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
178
- marginLeft: string | number | import("@stitches/react").ScaleValue<"space">;
247
+ ml: (value: string | number | {
248
+ readonly [$$ScaleValue]: "space";
249
+ }) => {
250
+ marginLeft: string | number | {
251
+ readonly [$$ScaleValue]: "space";
252
+ };
179
253
  };
180
- mx: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
181
- marginLeft: string | number | import("@stitches/react").ScaleValue<"space">;
182
- marginRight: string | number | import("@stitches/react").ScaleValue<"space">;
254
+ mx: (value: string | number | {
255
+ readonly [$$ScaleValue]: "space";
256
+ }) => {
257
+ marginLeft: string | number | {
258
+ readonly [$$ScaleValue]: "space";
259
+ };
260
+ marginRight: string | number | {
261
+ readonly [$$ScaleValue]: "space";
262
+ };
183
263
  };
184
- my: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
185
- marginTop: string | number | import("@stitches/react").ScaleValue<"space">;
186
- marginBottom: string | number | import("@stitches/react").ScaleValue<"space">;
264
+ my: (value: string | number | {
265
+ readonly [$$ScaleValue]: "space";
266
+ }) => {
267
+ marginTop: string | number | {
268
+ readonly [$$ScaleValue]: "space";
269
+ };
270
+ marginBottom: string | number | {
271
+ readonly [$$ScaleValue]: "space";
272
+ };
187
273
  };
188
274
  }>>;
189
275
  declare type TextProps = Override<React.ComponentProps<typeof StyledParagraph>, {
@@ -1 +1 @@
1
- const t=["size"];function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}import{forwardRef as i,createElement as r}from"react";import{styled as n}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import{capsize as o}from"../../utilities/style/capsize.js";import"polished";const s=({applyCapsize:t=!0}={})=>({xs:e({fontSize:"$xs",lineHeight:1.6},t?o(.4364):{}),sm:e({fontSize:"$sm",lineHeight:1.53},t?o(.4056):{}),md:e({fontSize:"$md",lineHeight:1.5},t?o(.3864):{}),lg:e({fontSize:"$lg",lineHeight:1.52},t?o(.3983):{}),xl:e({fontSize:"$xl",lineHeight:1.42},t?o(.3506):{})}),l=n("p",{color:"$tonal600",fontFamily:"$body",fontWeight:400,margin:0,variants:{size:s()}}),a=i(((e,i)=>{let{size:n="md"}=e,o=function(t,e){if(null==t)return{};var i,r,n={},o=Object.keys(t);for(r=0;r<o.length;r++)i=o[r],e.indexOf(i)>=0||(n[i]=t[i]);return n}(e,t);return r(l,Object.assign({size:n},o,{ref:i}))}));a.displayName="Text";export{l as StyledParagraph,a as Text,s as textVariantSize};
1
+ const t=["size"];function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}import{forwardRef as i,createElement as r}from"react";import{styled as n}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import{capsize as s}from"../../utilities/style/capsize.js";import"polished";import"../../utilities/style/keyframe-animations.js";const o=({applyCapsize:t=!0}={})=>({xs:e({fontSize:"$xs",lineHeight:1.6},t?s(.4364):{}),sm:e({fontSize:"$sm",lineHeight:1.53},t?s(.4056):{}),md:e({fontSize:"$md",lineHeight:1.5},t?s(.3864):{}),lg:e({fontSize:"$lg",lineHeight:1.52},t?s(.3983):{}),xl:e({fontSize:"$xl",lineHeight:1.42},t?s(.3506):{})}),l=n("p",{color:"$tonal600",fontFamily:"$body",fontWeight:400,margin:0,variants:{size:o()}}),a=i(((e,i)=>{let{size:n="md"}=e,s=function(t,e){if(null==t)return{};var i,r,n={},s=Object.keys(t);for(r=0;r<s.length;r++)i=s[r],e.indexOf(i)>=0||(n[i]=t[i]);return n}(e,t);return r(l,Object.assign({size:n},s,{ref:i}))}));a.displayName="Text";export{l as StyledParagraph,a as Text,o as textVariantSize};
@@ -7,6 +7,7 @@ declare const StyledTextarea: import("@stitches/react/types/styled-component").S
7
7
  lg: string;
8
8
  xl: string;
9
9
  reducedMotion: string;
10
+ allowMotion: string;
10
11
  hover: string;
11
12
  }, import("@stitches/react/types/css-util").CSS<{
12
13
  sm: string;
@@ -14,6 +15,7 @@ declare const StyledTextarea: import("@stitches/react/types/styled-component").S
14
15
  lg: string;
15
16
  xl: string;
16
17
  reducedMotion: string;
18
+ allowMotion: string;
17
19
  hover: string;
18
20
  }, {
19
21
  colors: {
@@ -120,64 +122,148 @@ declare const StyledTextarea: import("@stitches/react/types/styled-component").S
120
122
  "3": any;
121
123
  };
122
124
  }, import("@stitches/react/types/config").DefaultThemeMap, {
123
- bg: (value: import("@stitches/react").PropertyValue<"background">) => {
124
- background: import("@stitches/react").PropertyValue<"background">;
125
+ bg: (value: {
126
+ readonly [$$PropertyValue]: "background";
127
+ }) => {
128
+ background: {
129
+ readonly [$$PropertyValue]: "background";
130
+ };
125
131
  };
126
- inset: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
127
- top: string | number | import("@stitches/react").ScaleValue<"space">;
128
- right: string | number | import("@stitches/react").ScaleValue<"space">;
129
- bottom: string | number | import("@stitches/react").ScaleValue<"space">;
130
- left: string | number | import("@stitches/react").ScaleValue<"space">;
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
+ };
131
147
  };
132
- size: (value: string | number | import("@stitches/react").ScaleValue<"size">) => {
133
- height: string | number | import("@stitches/react").ScaleValue<"size">;
134
- width: string | number | import("@stitches/react").ScaleValue<"size">;
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
+ };
135
157
  };
136
- p: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
137
- padding: string | number | import("@stitches/react").ScaleValue<"space">;
158
+ p: (value: string | number | {
159
+ readonly [$$ScaleValue]: "space";
160
+ }) => {
161
+ padding: string | number | {
162
+ readonly [$$ScaleValue]: "space";
163
+ };
138
164
  };
139
- pt: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
140
- paddingTop: string | number | import("@stitches/react").ScaleValue<"space">;
165
+ pt: (value: string | number | {
166
+ readonly [$$ScaleValue]: "space";
167
+ }) => {
168
+ paddingTop: string | number | {
169
+ readonly [$$ScaleValue]: "space";
170
+ };
141
171
  };
142
- pr: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
143
- paddingRight: string | number | import("@stitches/react").ScaleValue<"space">;
172
+ pr: (value: string | number | {
173
+ readonly [$$ScaleValue]: "space";
174
+ }) => {
175
+ paddingRight: string | number | {
176
+ readonly [$$ScaleValue]: "space";
177
+ };
144
178
  };
145
- pb: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
146
- paddingBottom: string | number | import("@stitches/react").ScaleValue<"space">;
179
+ pb: (value: string | number | {
180
+ readonly [$$ScaleValue]: "space";
181
+ }) => {
182
+ paddingBottom: string | number | {
183
+ readonly [$$ScaleValue]: "space";
184
+ };
147
185
  };
148
- pl: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
149
- paddingLeft: string | number | import("@stitches/react").ScaleValue<"space">;
186
+ pl: (value: string | number | {
187
+ readonly [$$ScaleValue]: "space";
188
+ }) => {
189
+ paddingLeft: string | number | {
190
+ readonly [$$ScaleValue]: "space";
191
+ };
150
192
  };
151
- px: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
152
- paddingLeft: string | number | import("@stitches/react").ScaleValue<"space">;
153
- paddingRight: string | number | import("@stitches/react").ScaleValue<"space">;
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
+ };
154
202
  };
155
- py: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
156
- paddingTop: string | number | import("@stitches/react").ScaleValue<"space">;
157
- paddingBottom: string | number | import("@stitches/react").ScaleValue<"space">;
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
+ };
158
212
  };
159
- m: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
160
- margin: string | number | import("@stitches/react").ScaleValue<"space">;
213
+ m: (value: string | number | {
214
+ readonly [$$ScaleValue]: "space";
215
+ }) => {
216
+ margin: string | number | {
217
+ readonly [$$ScaleValue]: "space";
218
+ };
161
219
  };
162
- mt: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
163
- marginTop: string | number | import("@stitches/react").ScaleValue<"space">;
220
+ mt: (value: string | number | {
221
+ readonly [$$ScaleValue]: "space";
222
+ }) => {
223
+ marginTop: string | number | {
224
+ readonly [$$ScaleValue]: "space";
225
+ };
164
226
  };
165
- mr: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
166
- marginRight: string | number | import("@stitches/react").ScaleValue<"space">;
227
+ mr: (value: string | number | {
228
+ readonly [$$ScaleValue]: "space";
229
+ }) => {
230
+ marginRight: string | number | {
231
+ readonly [$$ScaleValue]: "space";
232
+ };
167
233
  };
168
- mb: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
169
- marginBottom: string | number | import("@stitches/react").ScaleValue<"space">;
234
+ mb: (value: string | number | {
235
+ readonly [$$ScaleValue]: "space";
236
+ }) => {
237
+ marginBottom: string | number | {
238
+ readonly [$$ScaleValue]: "space";
239
+ };
170
240
  };
171
- ml: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
172
- marginLeft: string | number | import("@stitches/react").ScaleValue<"space">;
241
+ ml: (value: string | number | {
242
+ readonly [$$ScaleValue]: "space";
243
+ }) => {
244
+ marginLeft: string | number | {
245
+ readonly [$$ScaleValue]: "space";
246
+ };
173
247
  };
174
- mx: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
175
- marginLeft: string | number | import("@stitches/react").ScaleValue<"space">;
176
- marginRight: string | number | import("@stitches/react").ScaleValue<"space">;
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
+ };
177
257
  };
178
- my: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
179
- marginTop: string | number | import("@stitches/react").ScaleValue<"space">;
180
- marginBottom: string | number | import("@stitches/react").ScaleValue<"space">;
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
+ };
181
267
  };
182
268
  }>>;
183
269
  export declare type TextareaProps = React.ComponentProps<typeof StyledTextarea>;
@@ -9,6 +9,7 @@ declare const StyledToast: import("@stitches/react/types/styled-component").Styl
9
9
  lg: string;
10
10
  xl: string;
11
11
  reducedMotion: string;
12
+ allowMotion: string;
12
13
  hover: string;
13
14
  }, import("@stitches/react/types/css-util").CSS<{
14
15
  sm: string;
@@ -16,6 +17,7 @@ declare const StyledToast: import("@stitches/react/types/styled-component").Styl
16
17
  lg: string;
17
18
  xl: string;
18
19
  reducedMotion: string;
20
+ allowMotion: string;
19
21
  hover: string;
20
22
  }, {
21
23
  colors: {
@@ -122,64 +124,148 @@ declare const StyledToast: import("@stitches/react/types/styled-component").Styl
122
124
  "3": any;
123
125
  };
124
126
  }, import("@stitches/react/types/config").DefaultThemeMap, {
125
- bg: (value: import("@stitches/react").PropertyValue<"background">) => {
126
- background: import("@stitches/react").PropertyValue<"background">;
127
+ bg: (value: {
128
+ readonly [$$PropertyValue]: "background";
129
+ }) => {
130
+ background: {
131
+ readonly [$$PropertyValue]: "background";
132
+ };
127
133
  };
128
- inset: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
129
- top: string | number | import("@stitches/react").ScaleValue<"space">;
130
- right: string | number | import("@stitches/react").ScaleValue<"space">;
131
- bottom: string | number | import("@stitches/react").ScaleValue<"space">;
132
- left: string | number | import("@stitches/react").ScaleValue<"space">;
134
+ inset: (value: string | number | {
135
+ readonly [$$ScaleValue]: "space";
136
+ }) => {
137
+ top: string | number | {
138
+ readonly [$$ScaleValue]: "space";
139
+ };
140
+ right: string | number | {
141
+ readonly [$$ScaleValue]: "space";
142
+ };
143
+ bottom: string | number | {
144
+ readonly [$$ScaleValue]: "space";
145
+ };
146
+ left: string | number | {
147
+ readonly [$$ScaleValue]: "space";
148
+ };
133
149
  };
134
- size: (value: string | number | import("@stitches/react").ScaleValue<"size">) => {
135
- height: string | number | import("@stitches/react").ScaleValue<"size">;
136
- width: string | number | import("@stitches/react").ScaleValue<"size">;
150
+ size: (value: string | number | {
151
+ readonly [$$ScaleValue]: "size";
152
+ }) => {
153
+ height: string | number | {
154
+ readonly [$$ScaleValue]: "size";
155
+ };
156
+ width: string | number | {
157
+ readonly [$$ScaleValue]: "size";
158
+ };
137
159
  };
138
- p: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
139
- padding: string | number | import("@stitches/react").ScaleValue<"space">;
160
+ p: (value: string | number | {
161
+ readonly [$$ScaleValue]: "space";
162
+ }) => {
163
+ padding: string | number | {
164
+ readonly [$$ScaleValue]: "space";
165
+ };
140
166
  };
141
- pt: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
142
- paddingTop: string | number | import("@stitches/react").ScaleValue<"space">;
167
+ pt: (value: string | number | {
168
+ readonly [$$ScaleValue]: "space";
169
+ }) => {
170
+ paddingTop: string | number | {
171
+ readonly [$$ScaleValue]: "space";
172
+ };
143
173
  };
144
- pr: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
145
- paddingRight: string | number | import("@stitches/react").ScaleValue<"space">;
174
+ pr: (value: string | number | {
175
+ readonly [$$ScaleValue]: "space";
176
+ }) => {
177
+ paddingRight: string | number | {
178
+ readonly [$$ScaleValue]: "space";
179
+ };
146
180
  };
147
- pb: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
148
- paddingBottom: string | number | import("@stitches/react").ScaleValue<"space">;
181
+ pb: (value: string | number | {
182
+ readonly [$$ScaleValue]: "space";
183
+ }) => {
184
+ paddingBottom: string | number | {
185
+ readonly [$$ScaleValue]: "space";
186
+ };
149
187
  };
150
- pl: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
151
- paddingLeft: string | number | import("@stitches/react").ScaleValue<"space">;
188
+ pl: (value: string | number | {
189
+ readonly [$$ScaleValue]: "space";
190
+ }) => {
191
+ paddingLeft: string | number | {
192
+ readonly [$$ScaleValue]: "space";
193
+ };
152
194
  };
153
- px: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
154
- paddingLeft: string | number | import("@stitches/react").ScaleValue<"space">;
155
- paddingRight: string | number | import("@stitches/react").ScaleValue<"space">;
195
+ px: (value: string | number | {
196
+ readonly [$$ScaleValue]: "space";
197
+ }) => {
198
+ paddingLeft: string | number | {
199
+ readonly [$$ScaleValue]: "space";
200
+ };
201
+ paddingRight: string | number | {
202
+ readonly [$$ScaleValue]: "space";
203
+ };
156
204
  };
157
- py: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
158
- paddingTop: string | number | import("@stitches/react").ScaleValue<"space">;
159
- paddingBottom: string | number | import("@stitches/react").ScaleValue<"space">;
205
+ py: (value: string | number | {
206
+ readonly [$$ScaleValue]: "space";
207
+ }) => {
208
+ paddingTop: string | number | {
209
+ readonly [$$ScaleValue]: "space";
210
+ };
211
+ paddingBottom: string | number | {
212
+ readonly [$$ScaleValue]: "space";
213
+ };
160
214
  };
161
- m: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
162
- margin: string | number | import("@stitches/react").ScaleValue<"space">;
215
+ m: (value: string | number | {
216
+ readonly [$$ScaleValue]: "space";
217
+ }) => {
218
+ margin: string | number | {
219
+ readonly [$$ScaleValue]: "space";
220
+ };
163
221
  };
164
- mt: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
165
- marginTop: string | number | import("@stitches/react").ScaleValue<"space">;
222
+ mt: (value: string | number | {
223
+ readonly [$$ScaleValue]: "space";
224
+ }) => {
225
+ marginTop: string | number | {
226
+ readonly [$$ScaleValue]: "space";
227
+ };
166
228
  };
167
- mr: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
168
- marginRight: string | number | import("@stitches/react").ScaleValue<"space">;
229
+ mr: (value: string | number | {
230
+ readonly [$$ScaleValue]: "space";
231
+ }) => {
232
+ marginRight: string | number | {
233
+ readonly [$$ScaleValue]: "space";
234
+ };
169
235
  };
170
- mb: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
171
- marginBottom: string | number | import("@stitches/react").ScaleValue<"space">;
236
+ mb: (value: string | number | {
237
+ readonly [$$ScaleValue]: "space";
238
+ }) => {
239
+ marginBottom: string | number | {
240
+ readonly [$$ScaleValue]: "space";
241
+ };
172
242
  };
173
- ml: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
174
- marginLeft: string | number | import("@stitches/react").ScaleValue<"space">;
243
+ ml: (value: string | number | {
244
+ readonly [$$ScaleValue]: "space";
245
+ }) => {
246
+ marginLeft: string | number | {
247
+ readonly [$$ScaleValue]: "space";
248
+ };
175
249
  };
176
- mx: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
177
- marginLeft: string | number | import("@stitches/react").ScaleValue<"space">;
178
- marginRight: string | number | import("@stitches/react").ScaleValue<"space">;
250
+ mx: (value: string | number | {
251
+ readonly [$$ScaleValue]: "space";
252
+ }) => {
253
+ marginLeft: string | number | {
254
+ readonly [$$ScaleValue]: "space";
255
+ };
256
+ marginRight: string | number | {
257
+ readonly [$$ScaleValue]: "space";
258
+ };
179
259
  };
180
- my: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
181
- marginTop: string | number | import("@stitches/react").ScaleValue<"space">;
182
- marginBottom: string | number | import("@stitches/react").ScaleValue<"space">;
260
+ my: (value: string | number | {
261
+ readonly [$$ScaleValue]: "space";
262
+ }) => {
263
+ marginTop: string | number | {
264
+ readonly [$$ScaleValue]: "space";
265
+ };
266
+ marginBottom: string | number | {
267
+ readonly [$$ScaleValue]: "space";
268
+ };
183
269
  };
184
270
  }>>;
185
271
  declare type ToastProps = React.ComponentProps<typeof StyledToast> & ToastInterface & {
@@ -1 +1 @@
1
- import{Error as t,Close as o}from"@atom-learning/icons";import{memo as i,createElement as r}from"react";import{toast as e}from"react-hot-toast";import{keyframes as s,styled as a}from"../../stitches.js";import{ActionIcon as n}from"../action-icon/ActionIcon.js";import{Icon as c}from"../icon/Icon.js";import{Loader as l}from"../loader/Loader.js";import{Text as m}from"../text/Text.js";const p=400,d=a("div",{position:"absolute",width:"100%",variants:{visible:{true:{animation:`${s({"0%":{transform:"translate3d(0,-100%,0)",opacity:0},"100%":{transform:"translate3d(0,0,0)",opacity:1}})} 250ms cubic-bezier(0.22, 1, 0.36, 1)`},false:{animation:`${s({"0%":{transform:"translate3d(0,0,0)",opacity:1},"100%":{transform:"translate3d(0,-100%,0)",opacity:0}})} 250ms cubic-bezier(0.22, 1, 0.36, 1)`,opacity:0}}}}),b=a("div",{alignItems:"center",borderRadius:"$0",boxShadow:"$1",boxSizing:"border-box",color:"white",display:"flex",minHeight:"$5",pl:"$4",position:"relative",pr:"$6",py:"$4",transition:"background-color 50ms ease-out, transform 150ms ease-out",width:"100%","@sm":{width:400},variants:{status:{blank:{bg:"$primary"},error:{bg:"$danger"},loading:{bg:"$primary"},success:{bg:"$success"}}}}),f=i((({ariaLive:i,height:s,id:a,message:p,role:f,type:u="blank",visible:g,calculateOffset:h,updateHeight:$})=>{const v=h(a,{reverseOrder:!0,margin:8});return r(d,{visible:g},r(b,{ref:t=>{t&&void 0===s&&$(a,t.getBoundingClientRect().height)},status:u,role:f,"aria-live":i,style:{transform:`translateY(${v}px)`}},"error"===u&&r(c,{size:"sm",css:{mr:"$3",flex:"0 0 auto"},is:t}),r(m,{css:{color:"inherit"}},p),"loading"===u?r(l,{css:{flex:"0 0 auto",ml:"auto"}}):r(n,{css:{position:"absolute",top:"$2",right:"$2",color:"white","&:hover,&:focus":{color:"white",opacity:.5}},label:"Close alert",onClick:()=>e.dismiss(a)},r(c,{is:o}))))}));export{p as TOAST_WIDTH,f as Toast};
1
+ import{Error as o,Close as t}from"@atom-learning/icons";import{memo as i,createElement as r}from"react";import{toast as a}from"react-hot-toast";import{keyframes as e,styled as s}from"../../stitches.js";import{ActionIcon as n}from"../action-icon/ActionIcon.js";import{Icon as l}from"../icon/Icon.js";import{Loader as c}from"../loader/Loader.js";import{Text as m}from"../text/Text.js";const p=400,d=s("div",{position:"absolute",width:"100%",variants:{visible:{true:{"@allowMotion":{animation:`${e({"0%":{transform:"translate3d(0,-100%,0)",opacity:0},"100%":{transform:"translate3d(0,0,0)",opacity:1}})} 250ms cubic-bezier(0.22, 1, 0.36, 1)`}},false:{opacity:0,"@allowMotion":{animation:`${e({"0%":{transform:"translate3d(0,0,0)",opacity:1},"100%":{transform:"translate3d(0,-100%,0)",opacity:0}})} 250ms cubic-bezier(0.22, 1, 0.36, 1)`}}}}}),b=s("div",{alignItems:"center",borderRadius:"$0",boxShadow:"$1",boxSizing:"border-box",color:"white",display:"flex",minHeight:"$5",pl:"$4",position:"relative",pr:"$6",py:"$4",transition:"background-color 50ms ease-out",width:"100%","@sm":{width:400},"@allowMotion":{transition:"background-color 50ms ease-out, transform 150ms ease-out"},variants:{status:{blank:{bg:"$primary"},error:{bg:"$danger"},loading:{bg:"$primary"},success:{bg:"$success"}}}}),u=i((({ariaLive:i,height:e,id:s,message:p,role:u,type:f="blank",visible:g,calculateOffset:h,updateHeight:$})=>{const v=h(s,{reverseOrder:!0,margin:8});return r(d,{visible:g},r(b,{ref:o=>{o&&void 0===e&&$(s,o.getBoundingClientRect().height)},status:f,role:u,"aria-live":i,style:{transform:`translateY(${v}px)`}},"error"===f&&r(l,{size:"sm",css:{mr:"$3",flex:"0 0 auto"},is:o}),r(m,{css:{color:"inherit"}},p),"loading"===f?r(c,{css:{flex:"0 0 auto",ml:"auto"}}):r(n,{css:{position:"absolute",top:"$2",right:"$2",color:"white","&:hover,&:focus":{color:"white",opacity:.5}},label:"Close alert",onClick:()=>a.dismiss(s)},r(l,{is:t}))))}));export{p as TOAST_WIDTH,u as Toast};