@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.
- package/CHANGELOG.md +16 -0
- package/dist/components/action-icon/ActionIcon.d.ts +129 -43
- package/dist/components/alert-dialog/AlertDialog.d.ts +128 -42
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +128 -42
- package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
- package/dist/components/box/Box.d.ts +128 -42
- package/dist/components/button/Button.d.ts +128 -42
- package/dist/components/button/Button.js +1 -1
- package/dist/components/carousel/Carousel.js +1 -1
- package/dist/components/carousel/CarouselPagination.d.ts +128 -42
- package/dist/components/carousel/CarouselSlide.d.ts +128 -42
- package/dist/components/carousel/CarouselSlider.d.ts +128 -42
- package/dist/components/checkbox/Checkbox.d.ts +128 -42
- package/dist/components/combobox/Combobox.d.ts +128 -42
- package/dist/components/combobox/ComboboxInput.d.ts +128 -42
- package/dist/components/combobox/ComboboxInput.js +1 -1
- package/dist/components/combobox/ComboboxList.d.ts +128 -42
- package/dist/components/combobox/ComboboxOption.d.ts +128 -42
- package/dist/components/combobox/ComboboxPopover.d.ts +128 -42
- package/dist/components/dialog/Dialog.d.ts +128 -42
- package/dist/components/dialog/DialogClose.d.ts +128 -42
- package/dist/components/dialog/DialogContent.d.ts +128 -42
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/divider/Divider.d.ts +134 -43
- package/dist/components/divider/Divider.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +128 -42
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +128 -42
- package/dist/components/dropdown-menu/DropdownMenuContent.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +130 -45
- package/dist/components/dropdown-menu/DropdownMenuItem.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +128 -42
- package/dist/components/dropdown-menu/DropdownMenuSeparator.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +128 -42
- package/dist/components/field-wrapper/InlineFieldWrapper.d.ts +1 -1
- package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
- package/dist/components/flex/Flex.d.ts +128 -42
- package/dist/components/form/Form.d.ts +128 -42
- package/dist/components/grid/Grid.d.ts +128 -42
- package/dist/components/heading/Heading.d.ts +128 -42
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/icon/Icon.d.ts +128 -42
- package/dist/components/image/Image.d.ts +128 -42
- package/dist/components/index.d.ts +5 -4
- package/dist/components/input/Input.d.ts +128 -42
- package/dist/components/label/Label.d.ts +129 -43
- package/dist/components/label/Label.js +1 -1
- package/dist/components/link/Link.d.ts +128 -42
- package/dist/components/list/List.d.ts +288 -116
- package/dist/components/popover/Popover.d.ts +128 -42
- package/dist/components/popover/PopoverContent.d.ts +128 -42
- package/dist/components/popover/PopoverContent.js +1 -1
- package/dist/components/progress-bar/ProgressBar.d.ts +128 -42
- package/dist/components/radio-button/RadioButton.d.ts +275 -0
- package/dist/components/radio-button/RadioButton.js +1 -0
- package/dist/components/radio-button/RadioButtonGroup.d.ts +269 -0
- package/dist/components/{radio → radio-button}/RadioButtonGroup.js +0 -0
- package/dist/components/{radio → radio-button}/index.d.ts +0 -0
- package/dist/components/{radio-field/RadioGroupField.d.ts → radio-button-field/RadioButtonField.d.ts} +2 -2
- package/dist/components/radio-button-field/RadioButtonField.js +1 -0
- package/dist/components/{radio-field → radio-button-field}/RadioField.d.ts +1 -1
- package/dist/components/radio-button-field/RadioField.js +1 -0
- package/dist/components/radio-button-field/index.d.ts +1 -0
- package/dist/components/radio-card/RadioCard.d.ts +274 -0
- package/dist/components/radio-card/RadioCard.js +1 -0
- package/dist/components/radio-card/RadioCardGroup.d.ts +9 -0
- package/dist/components/radio-card/RadioCardGroup.js +1 -0
- package/dist/components/radio-card/index.d.ts +2 -0
- package/dist/components/select/Select.d.ts +128 -42
- package/dist/components/select/Select.js +1 -1
- package/dist/components/stack/Stack.d.ts +128 -42
- package/dist/components/stack-content/StackContent.d.ts +128 -42
- package/dist/components/switch/Switch.d.ts +128 -42
- package/dist/components/switch/Switch.js +1 -1
- package/dist/components/table/Table.d.ts +128 -42
- package/dist/components/table/TableBody.d.ts +128 -42
- package/dist/components/table/TableCell.d.ts +128 -42
- package/dist/components/table/TableCell.js +1 -1
- package/dist/components/table/TableFooter.d.ts +128 -42
- package/dist/components/table/TableFooterCell.d.ts +128 -42
- package/dist/components/table/TableFooterCell.js +1 -1
- package/dist/components/table/TableHeader.d.ts +128 -42
- package/dist/components/table/TableHeaderCell.d.ts +128 -42
- package/dist/components/table/TableRow.d.ts +128 -42
- package/dist/components/tabs/TabTrigger.d.ts +128 -42
- package/dist/components/tabs/TabTrigger.js +1 -1
- package/dist/components/tabs/Tabs.d.ts +432 -174
- package/dist/components/text/Text.d.ts +128 -42
- package/dist/components/text/Text.js +1 -1
- package/dist/components/textarea/Textarea.d.ts +128 -42
- package/dist/components/toast/Toast.d.ts +128 -42
- package/dist/components/toast/Toast.js +1 -1
- package/dist/components/tooltip/Tooltip.js +1 -1
- package/dist/components/tooltip/TooltipContent.d.ts +128 -42
- package/dist/components/tooltip/TooltipContent.js +1 -1
- package/dist/components/video/Video.d.ts +128 -42
- package/dist/docgen.json +1 -1
- package/dist/docs/Divider.mdx +6 -2
- package/dist/docs/DropdownMenu.mdx +5 -3
- package/dist/docs/RadioButtonField.mdx +19 -0
- package/dist/docs/RadioCard.mdx +62 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.js +1 -1
- package/dist/stitches.d.ts +610 -200
- package/dist/stitches.js +1 -1
- package/dist/types/navigatorActions.types.d.ts +2 -5
- package/dist/utilities/css-wrapper/CSSWrapper.d.ts +1 -1
- package/dist/utilities/css-wrapper/CSSWrapper.js +1 -1
- package/dist/utilities/style/index.d.ts +3 -2
- package/dist/utilities/style/keyframe-animations.d.ts +24 -0
- package/dist/utilities/style/keyframe-animations.js +1 -0
- package/package.json +21 -20
- package/dist/components/radio/RadioButton.d.ts +0 -189
- package/dist/components/radio/RadioButton.js +0 -1
- package/dist/components/radio/RadioButtonGroup.d.ts +0 -183
- package/dist/components/radio-field/RadioField.js +0 -1
- package/dist/components/radio-field/RadioGroupField.js +0 -1
- package/dist/components/radio-field/index.d.ts +0 -1
- 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:
|
|
130
|
-
|
|
131
|
+
bg: (value: {
|
|
132
|
+
readonly [$$PropertyValue]: "background";
|
|
133
|
+
}) => {
|
|
134
|
+
background: {
|
|
135
|
+
readonly [$$PropertyValue]: "background";
|
|
136
|
+
};
|
|
131
137
|
};
|
|
132
|
-
inset: (value: string | number |
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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 |
|
|
139
|
-
|
|
140
|
-
|
|
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 |
|
|
143
|
-
|
|
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 |
|
|
146
|
-
|
|
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 |
|
|
149
|
-
|
|
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 |
|
|
152
|
-
|
|
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 |
|
|
155
|
-
|
|
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 |
|
|
158
|
-
|
|
159
|
-
|
|
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 |
|
|
162
|
-
|
|
163
|
-
|
|
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 |
|
|
166
|
-
|
|
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 |
|
|
169
|
-
|
|
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 |
|
|
172
|
-
|
|
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 |
|
|
175
|
-
|
|
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 |
|
|
178
|
-
|
|
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 |
|
|
181
|
-
|
|
182
|
-
|
|
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 |
|
|
185
|
-
|
|
186
|
-
|
|
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
|
|
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:
|
|
124
|
-
|
|
125
|
+
bg: (value: {
|
|
126
|
+
readonly [$$PropertyValue]: "background";
|
|
127
|
+
}) => {
|
|
128
|
+
background: {
|
|
129
|
+
readonly [$$PropertyValue]: "background";
|
|
130
|
+
};
|
|
125
131
|
};
|
|
126
|
-
inset: (value: string | number |
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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 |
|
|
133
|
-
|
|
134
|
-
|
|
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 |
|
|
137
|
-
|
|
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 |
|
|
140
|
-
|
|
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 |
|
|
143
|
-
|
|
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 |
|
|
146
|
-
|
|
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 |
|
|
149
|
-
|
|
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 |
|
|
152
|
-
|
|
153
|
-
|
|
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 |
|
|
156
|
-
|
|
157
|
-
|
|
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 |
|
|
160
|
-
|
|
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 |
|
|
163
|
-
|
|
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 |
|
|
166
|
-
|
|
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 |
|
|
169
|
-
|
|
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 |
|
|
172
|
-
|
|
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 |
|
|
175
|
-
|
|
176
|
-
|
|
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 |
|
|
179
|
-
|
|
180
|
-
|
|
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:
|
|
126
|
-
|
|
127
|
+
bg: (value: {
|
|
128
|
+
readonly [$$PropertyValue]: "background";
|
|
129
|
+
}) => {
|
|
130
|
+
background: {
|
|
131
|
+
readonly [$$PropertyValue]: "background";
|
|
132
|
+
};
|
|
127
133
|
};
|
|
128
|
-
inset: (value: string | number |
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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 |
|
|
135
|
-
|
|
136
|
-
|
|
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 |
|
|
139
|
-
|
|
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 |
|
|
142
|
-
|
|
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 |
|
|
145
|
-
|
|
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 |
|
|
148
|
-
|
|
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 |
|
|
151
|
-
|
|
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 |
|
|
154
|
-
|
|
155
|
-
|
|
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 |
|
|
158
|
-
|
|
159
|
-
|
|
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 |
|
|
162
|
-
|
|
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 |
|
|
165
|
-
|
|
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 |
|
|
168
|
-
|
|
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 |
|
|
171
|
-
|
|
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 |
|
|
174
|
-
|
|
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 |
|
|
177
|
-
|
|
178
|
-
|
|
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 |
|
|
181
|
-
|
|
182
|
-
|
|
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
|
|
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};
|