@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
|
@@ -7,6 +7,7 @@ declare const StyledAlertDialogContent: import("@stitches/react/types/styled-com
|
|
|
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 StyledAlertDialogContent: import("@stitches/react/types/styled-com
|
|
|
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 StyledAlertDialogContent: import("@stitches/react/types/styled-com
|
|
|
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
|
declare type AlertDialogContentProps = React.ComponentProps<typeof StyledAlertDialogContent>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=["size"];import{Overlay as a,Content as
|
|
1
|
+
const t=["size"];import{Overlay as a,Content as i}from"@radix-ui/react-alert-dialog";import{createElement as e,Fragment as o}from"react";import{keyframes as r,styled as s}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"polished";import{fadeIn as n,fadeOut as l}from"../../utilities/style/keyframe-animations.js";const m=r({"0%":{transform:"translate3d(-50%, 50vh, 0)"},"100%":{transform:"translate3d(-50%, -50%, 0)"}}),d=r({"0%":{transform:"translate3d(-50%, -50%, 0)"},"100%":{transform:"translate3d(-50%, 50vh, 0)"}}),p=s(a,{backgroundColor:"$alpha600",inset:0,position:"fixed","@allowMotion":{'&[data-state="open"]':{animation:`${n} 250ms ease-out`},'&[data-state="closed"]':{animation:`${l} 550ms ease-out`}}}),f=s(i,{bg:"white",borderRadius:"$1",boxShadow:"$3",boxSizing:"border-box",left:"50%",maxWidth:"90vw",p:"$5",position:"fixed",top:"50%",transform:"translate3d(-50%, -50%, 0)","&:focus":{outline:"none"},"@allowMotion":{'&[data-state="open"]':{animation:`${m} 550ms cubic-bezier(0.22, 1, 0.36, 1)`},'&[data-state="closed"]':{animation:`${d} 550ms cubic-bezier(0.22, 1, 0.36, 1)`}},variants:{size:{sm:{width:"380px"},md:{width:"480px"},lg:{width:"600px"}}}}),u=a=>{let{size:i="sm"}=a,r=function(t,a){if(null==t)return{};var i,e,o={},r=Object.keys(t);for(e=0;e<r.length;e++)i=r[e],a.indexOf(i)>=0||(o[i]=t[i]);return o}(a,t);return e(o,null,e(p,null),e(f,Object.assign({size:i},r)))};export{u as AlertDialogContent};
|
|
@@ -4,6 +4,7 @@ export declare const Box: import("@stitches/react/types/styled-component").Style
|
|
|
4
4
|
lg: string;
|
|
5
5
|
xl: string;
|
|
6
6
|
reducedMotion: string;
|
|
7
|
+
allowMotion: string;
|
|
7
8
|
hover: string;
|
|
8
9
|
}, import("@stitches/react/types/css-util").CSS<{
|
|
9
10
|
sm: string;
|
|
@@ -11,6 +12,7 @@ export declare const Box: import("@stitches/react/types/styled-component").Style
|
|
|
11
12
|
lg: string;
|
|
12
13
|
xl: string;
|
|
13
14
|
reducedMotion: string;
|
|
15
|
+
allowMotion: string;
|
|
14
16
|
hover: string;
|
|
15
17
|
}, {
|
|
16
18
|
colors: {
|
|
@@ -117,63 +119,147 @@ export declare const Box: import("@stitches/react/types/styled-component").Style
|
|
|
117
119
|
"3": any;
|
|
118
120
|
};
|
|
119
121
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
120
|
-
bg: (value:
|
|
121
|
-
|
|
122
|
+
bg: (value: {
|
|
123
|
+
readonly [$$PropertyValue]: "background";
|
|
124
|
+
}) => {
|
|
125
|
+
background: {
|
|
126
|
+
readonly [$$PropertyValue]: "background";
|
|
127
|
+
};
|
|
122
128
|
};
|
|
123
|
-
inset: (value: string | number |
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
129
|
+
inset: (value: string | number | {
|
|
130
|
+
readonly [$$ScaleValue]: "space";
|
|
131
|
+
}) => {
|
|
132
|
+
top: string | number | {
|
|
133
|
+
readonly [$$ScaleValue]: "space";
|
|
134
|
+
};
|
|
135
|
+
right: string | number | {
|
|
136
|
+
readonly [$$ScaleValue]: "space";
|
|
137
|
+
};
|
|
138
|
+
bottom: string | number | {
|
|
139
|
+
readonly [$$ScaleValue]: "space";
|
|
140
|
+
};
|
|
141
|
+
left: string | number | {
|
|
142
|
+
readonly [$$ScaleValue]: "space";
|
|
143
|
+
};
|
|
128
144
|
};
|
|
129
|
-
size: (value: string | number |
|
|
130
|
-
|
|
131
|
-
|
|
145
|
+
size: (value: string | number | {
|
|
146
|
+
readonly [$$ScaleValue]: "size";
|
|
147
|
+
}) => {
|
|
148
|
+
height: string | number | {
|
|
149
|
+
readonly [$$ScaleValue]: "size";
|
|
150
|
+
};
|
|
151
|
+
width: string | number | {
|
|
152
|
+
readonly [$$ScaleValue]: "size";
|
|
153
|
+
};
|
|
132
154
|
};
|
|
133
|
-
p: (value: string | number |
|
|
134
|
-
|
|
155
|
+
p: (value: string | number | {
|
|
156
|
+
readonly [$$ScaleValue]: "space";
|
|
157
|
+
}) => {
|
|
158
|
+
padding: string | number | {
|
|
159
|
+
readonly [$$ScaleValue]: "space";
|
|
160
|
+
};
|
|
135
161
|
};
|
|
136
|
-
pt: (value: string | number |
|
|
137
|
-
|
|
162
|
+
pt: (value: string | number | {
|
|
163
|
+
readonly [$$ScaleValue]: "space";
|
|
164
|
+
}) => {
|
|
165
|
+
paddingTop: string | number | {
|
|
166
|
+
readonly [$$ScaleValue]: "space";
|
|
167
|
+
};
|
|
138
168
|
};
|
|
139
|
-
pr: (value: string | number |
|
|
140
|
-
|
|
169
|
+
pr: (value: string | number | {
|
|
170
|
+
readonly [$$ScaleValue]: "space";
|
|
171
|
+
}) => {
|
|
172
|
+
paddingRight: string | number | {
|
|
173
|
+
readonly [$$ScaleValue]: "space";
|
|
174
|
+
};
|
|
141
175
|
};
|
|
142
|
-
pb: (value: string | number |
|
|
143
|
-
|
|
176
|
+
pb: (value: string | number | {
|
|
177
|
+
readonly [$$ScaleValue]: "space";
|
|
178
|
+
}) => {
|
|
179
|
+
paddingBottom: string | number | {
|
|
180
|
+
readonly [$$ScaleValue]: "space";
|
|
181
|
+
};
|
|
144
182
|
};
|
|
145
|
-
pl: (value: string | number |
|
|
146
|
-
|
|
183
|
+
pl: (value: string | number | {
|
|
184
|
+
readonly [$$ScaleValue]: "space";
|
|
185
|
+
}) => {
|
|
186
|
+
paddingLeft: string | number | {
|
|
187
|
+
readonly [$$ScaleValue]: "space";
|
|
188
|
+
};
|
|
147
189
|
};
|
|
148
|
-
px: (value: string | number |
|
|
149
|
-
|
|
150
|
-
|
|
190
|
+
px: (value: string | number | {
|
|
191
|
+
readonly [$$ScaleValue]: "space";
|
|
192
|
+
}) => {
|
|
193
|
+
paddingLeft: string | number | {
|
|
194
|
+
readonly [$$ScaleValue]: "space";
|
|
195
|
+
};
|
|
196
|
+
paddingRight: string | number | {
|
|
197
|
+
readonly [$$ScaleValue]: "space";
|
|
198
|
+
};
|
|
151
199
|
};
|
|
152
|
-
py: (value: string | number |
|
|
153
|
-
|
|
154
|
-
|
|
200
|
+
py: (value: string | number | {
|
|
201
|
+
readonly [$$ScaleValue]: "space";
|
|
202
|
+
}) => {
|
|
203
|
+
paddingTop: string | number | {
|
|
204
|
+
readonly [$$ScaleValue]: "space";
|
|
205
|
+
};
|
|
206
|
+
paddingBottom: string | number | {
|
|
207
|
+
readonly [$$ScaleValue]: "space";
|
|
208
|
+
};
|
|
155
209
|
};
|
|
156
|
-
m: (value: string | number |
|
|
157
|
-
|
|
210
|
+
m: (value: string | number | {
|
|
211
|
+
readonly [$$ScaleValue]: "space";
|
|
212
|
+
}) => {
|
|
213
|
+
margin: string | number | {
|
|
214
|
+
readonly [$$ScaleValue]: "space";
|
|
215
|
+
};
|
|
158
216
|
};
|
|
159
|
-
mt: (value: string | number |
|
|
160
|
-
|
|
217
|
+
mt: (value: string | number | {
|
|
218
|
+
readonly [$$ScaleValue]: "space";
|
|
219
|
+
}) => {
|
|
220
|
+
marginTop: string | number | {
|
|
221
|
+
readonly [$$ScaleValue]: "space";
|
|
222
|
+
};
|
|
161
223
|
};
|
|
162
|
-
mr: (value: string | number |
|
|
163
|
-
|
|
224
|
+
mr: (value: string | number | {
|
|
225
|
+
readonly [$$ScaleValue]: "space";
|
|
226
|
+
}) => {
|
|
227
|
+
marginRight: string | number | {
|
|
228
|
+
readonly [$$ScaleValue]: "space";
|
|
229
|
+
};
|
|
164
230
|
};
|
|
165
|
-
mb: (value: string | number |
|
|
166
|
-
|
|
231
|
+
mb: (value: string | number | {
|
|
232
|
+
readonly [$$ScaleValue]: "space";
|
|
233
|
+
}) => {
|
|
234
|
+
marginBottom: string | number | {
|
|
235
|
+
readonly [$$ScaleValue]: "space";
|
|
236
|
+
};
|
|
167
237
|
};
|
|
168
|
-
ml: (value: string | number |
|
|
169
|
-
|
|
238
|
+
ml: (value: string | number | {
|
|
239
|
+
readonly [$$ScaleValue]: "space";
|
|
240
|
+
}) => {
|
|
241
|
+
marginLeft: string | number | {
|
|
242
|
+
readonly [$$ScaleValue]: "space";
|
|
243
|
+
};
|
|
170
244
|
};
|
|
171
|
-
mx: (value: string | number |
|
|
172
|
-
|
|
173
|
-
|
|
245
|
+
mx: (value: string | number | {
|
|
246
|
+
readonly [$$ScaleValue]: "space";
|
|
247
|
+
}) => {
|
|
248
|
+
marginLeft: string | number | {
|
|
249
|
+
readonly [$$ScaleValue]: "space";
|
|
250
|
+
};
|
|
251
|
+
marginRight: string | number | {
|
|
252
|
+
readonly [$$ScaleValue]: "space";
|
|
253
|
+
};
|
|
174
254
|
};
|
|
175
|
-
my: (value: string | number |
|
|
176
|
-
|
|
177
|
-
|
|
255
|
+
my: (value: string | number | {
|
|
256
|
+
readonly [$$ScaleValue]: "space";
|
|
257
|
+
}) => {
|
|
258
|
+
marginTop: string | number | {
|
|
259
|
+
readonly [$$ScaleValue]: "space";
|
|
260
|
+
};
|
|
261
|
+
marginBottom: string | number | {
|
|
262
|
+
readonly [$$ScaleValue]: "space";
|
|
263
|
+
};
|
|
178
264
|
};
|
|
179
265
|
}>>;
|
|
@@ -15,6 +15,7 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
15
15
|
lg: string;
|
|
16
16
|
xl: string;
|
|
17
17
|
reducedMotion: string;
|
|
18
|
+
allowMotion: string;
|
|
18
19
|
hover: string;
|
|
19
20
|
}, import("@stitches/react/types/css-util").CSS<{
|
|
20
21
|
sm: string;
|
|
@@ -22,6 +23,7 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
22
23
|
lg: string;
|
|
23
24
|
xl: string;
|
|
24
25
|
reducedMotion: string;
|
|
26
|
+
allowMotion: string;
|
|
25
27
|
hover: string;
|
|
26
28
|
}, {
|
|
27
29
|
colors: {
|
|
@@ -128,64 +130,148 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
128
130
|
"3": any;
|
|
129
131
|
};
|
|
130
132
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
131
|
-
bg: (value:
|
|
132
|
-
|
|
133
|
+
bg: (value: {
|
|
134
|
+
readonly [$$PropertyValue]: "background";
|
|
135
|
+
}) => {
|
|
136
|
+
background: {
|
|
137
|
+
readonly [$$PropertyValue]: "background";
|
|
138
|
+
};
|
|
133
139
|
};
|
|
134
|
-
inset: (value: string | number |
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
140
|
+
inset: (value: string | number | {
|
|
141
|
+
readonly [$$ScaleValue]: "space";
|
|
142
|
+
}) => {
|
|
143
|
+
top: string | number | {
|
|
144
|
+
readonly [$$ScaleValue]: "space";
|
|
145
|
+
};
|
|
146
|
+
right: string | number | {
|
|
147
|
+
readonly [$$ScaleValue]: "space";
|
|
148
|
+
};
|
|
149
|
+
bottom: string | number | {
|
|
150
|
+
readonly [$$ScaleValue]: "space";
|
|
151
|
+
};
|
|
152
|
+
left: string | number | {
|
|
153
|
+
readonly [$$ScaleValue]: "space";
|
|
154
|
+
};
|
|
139
155
|
};
|
|
140
|
-
size: (value: string | number |
|
|
141
|
-
|
|
142
|
-
|
|
156
|
+
size: (value: string | number | {
|
|
157
|
+
readonly [$$ScaleValue]: "size";
|
|
158
|
+
}) => {
|
|
159
|
+
height: string | number | {
|
|
160
|
+
readonly [$$ScaleValue]: "size";
|
|
161
|
+
};
|
|
162
|
+
width: string | number | {
|
|
163
|
+
readonly [$$ScaleValue]: "size";
|
|
164
|
+
};
|
|
143
165
|
};
|
|
144
|
-
p: (value: string | number |
|
|
145
|
-
|
|
166
|
+
p: (value: string | number | {
|
|
167
|
+
readonly [$$ScaleValue]: "space";
|
|
168
|
+
}) => {
|
|
169
|
+
padding: string | number | {
|
|
170
|
+
readonly [$$ScaleValue]: "space";
|
|
171
|
+
};
|
|
146
172
|
};
|
|
147
|
-
pt: (value: string | number |
|
|
148
|
-
|
|
173
|
+
pt: (value: string | number | {
|
|
174
|
+
readonly [$$ScaleValue]: "space";
|
|
175
|
+
}) => {
|
|
176
|
+
paddingTop: string | number | {
|
|
177
|
+
readonly [$$ScaleValue]: "space";
|
|
178
|
+
};
|
|
149
179
|
};
|
|
150
|
-
pr: (value: string | number |
|
|
151
|
-
|
|
180
|
+
pr: (value: string | number | {
|
|
181
|
+
readonly [$$ScaleValue]: "space";
|
|
182
|
+
}) => {
|
|
183
|
+
paddingRight: string | number | {
|
|
184
|
+
readonly [$$ScaleValue]: "space";
|
|
185
|
+
};
|
|
152
186
|
};
|
|
153
|
-
pb: (value: string | number |
|
|
154
|
-
|
|
187
|
+
pb: (value: string | number | {
|
|
188
|
+
readonly [$$ScaleValue]: "space";
|
|
189
|
+
}) => {
|
|
190
|
+
paddingBottom: string | number | {
|
|
191
|
+
readonly [$$ScaleValue]: "space";
|
|
192
|
+
};
|
|
155
193
|
};
|
|
156
|
-
pl: (value: string | number |
|
|
157
|
-
|
|
194
|
+
pl: (value: string | number | {
|
|
195
|
+
readonly [$$ScaleValue]: "space";
|
|
196
|
+
}) => {
|
|
197
|
+
paddingLeft: string | number | {
|
|
198
|
+
readonly [$$ScaleValue]: "space";
|
|
199
|
+
};
|
|
158
200
|
};
|
|
159
|
-
px: (value: string | number |
|
|
160
|
-
|
|
161
|
-
|
|
201
|
+
px: (value: string | number | {
|
|
202
|
+
readonly [$$ScaleValue]: "space";
|
|
203
|
+
}) => {
|
|
204
|
+
paddingLeft: string | number | {
|
|
205
|
+
readonly [$$ScaleValue]: "space";
|
|
206
|
+
};
|
|
207
|
+
paddingRight: string | number | {
|
|
208
|
+
readonly [$$ScaleValue]: "space";
|
|
209
|
+
};
|
|
162
210
|
};
|
|
163
|
-
py: (value: string | number |
|
|
164
|
-
|
|
165
|
-
|
|
211
|
+
py: (value: string | number | {
|
|
212
|
+
readonly [$$ScaleValue]: "space";
|
|
213
|
+
}) => {
|
|
214
|
+
paddingTop: string | number | {
|
|
215
|
+
readonly [$$ScaleValue]: "space";
|
|
216
|
+
};
|
|
217
|
+
paddingBottom: string | number | {
|
|
218
|
+
readonly [$$ScaleValue]: "space";
|
|
219
|
+
};
|
|
166
220
|
};
|
|
167
|
-
m: (value: string | number |
|
|
168
|
-
|
|
221
|
+
m: (value: string | number | {
|
|
222
|
+
readonly [$$ScaleValue]: "space";
|
|
223
|
+
}) => {
|
|
224
|
+
margin: string | number | {
|
|
225
|
+
readonly [$$ScaleValue]: "space";
|
|
226
|
+
};
|
|
169
227
|
};
|
|
170
|
-
mt: (value: string | number |
|
|
171
|
-
|
|
228
|
+
mt: (value: string | number | {
|
|
229
|
+
readonly [$$ScaleValue]: "space";
|
|
230
|
+
}) => {
|
|
231
|
+
marginTop: string | number | {
|
|
232
|
+
readonly [$$ScaleValue]: "space";
|
|
233
|
+
};
|
|
172
234
|
};
|
|
173
|
-
mr: (value: string | number |
|
|
174
|
-
|
|
235
|
+
mr: (value: string | number | {
|
|
236
|
+
readonly [$$ScaleValue]: "space";
|
|
237
|
+
}) => {
|
|
238
|
+
marginRight: string | number | {
|
|
239
|
+
readonly [$$ScaleValue]: "space";
|
|
240
|
+
};
|
|
175
241
|
};
|
|
176
|
-
mb: (value: string | number |
|
|
177
|
-
|
|
242
|
+
mb: (value: string | number | {
|
|
243
|
+
readonly [$$ScaleValue]: "space";
|
|
244
|
+
}) => {
|
|
245
|
+
marginBottom: string | number | {
|
|
246
|
+
readonly [$$ScaleValue]: "space";
|
|
247
|
+
};
|
|
178
248
|
};
|
|
179
|
-
ml: (value: string | number |
|
|
180
|
-
|
|
249
|
+
ml: (value: string | number | {
|
|
250
|
+
readonly [$$ScaleValue]: "space";
|
|
251
|
+
}) => {
|
|
252
|
+
marginLeft: string | number | {
|
|
253
|
+
readonly [$$ScaleValue]: "space";
|
|
254
|
+
};
|
|
181
255
|
};
|
|
182
|
-
mx: (value: string | number |
|
|
183
|
-
|
|
184
|
-
|
|
256
|
+
mx: (value: string | number | {
|
|
257
|
+
readonly [$$ScaleValue]: "space";
|
|
258
|
+
}) => {
|
|
259
|
+
marginLeft: string | number | {
|
|
260
|
+
readonly [$$ScaleValue]: "space";
|
|
261
|
+
};
|
|
262
|
+
marginRight: string | number | {
|
|
263
|
+
readonly [$$ScaleValue]: "space";
|
|
264
|
+
};
|
|
185
265
|
};
|
|
186
|
-
my: (value: string | number |
|
|
187
|
-
|
|
188
|
-
|
|
266
|
+
my: (value: string | number | {
|
|
267
|
+
readonly [$$ScaleValue]: "space";
|
|
268
|
+
}) => {
|
|
269
|
+
marginTop: string | number | {
|
|
270
|
+
readonly [$$ScaleValue]: "space";
|
|
271
|
+
};
|
|
272
|
+
marginBottom: string | number | {
|
|
273
|
+
readonly [$$ScaleValue]: "space";
|
|
274
|
+
};
|
|
189
275
|
};
|
|
190
276
|
}>>;
|
|
191
277
|
declare type ButtonProps = Override<React.ComponentProps<typeof StyledButton>, Stitches.VariantProps<typeof StyledButton> & {
|