@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { ValidationOptions } from './form';
|
|
2
|
+
export { ActionIcon } from './action-icon';
|
|
2
3
|
export { AlertDialog, useAlert, AlertProvider } from './alert-dialog';
|
|
3
4
|
export { Box } from './box';
|
|
4
5
|
export { Button, StyledButton } from './button';
|
|
@@ -14,7 +15,6 @@ export { Flex } from './flex';
|
|
|
14
15
|
export { Form } from './form';
|
|
15
16
|
export { Grid } from './grid';
|
|
16
17
|
export { Heading } from './heading';
|
|
17
|
-
export { ActionIcon } from './action-icon';
|
|
18
18
|
export { Icon } from './icon';
|
|
19
19
|
export { Image } from './image';
|
|
20
20
|
export { Input } from './input';
|
|
@@ -23,13 +23,14 @@ export { Label } from './label';
|
|
|
23
23
|
export { Link, StyledLink } from './link';
|
|
24
24
|
export { List } from './list';
|
|
25
25
|
export { Loader } from './loader';
|
|
26
|
+
export { MarkdownContent } from './markdown-content';
|
|
26
27
|
export { PasswordField } from './password-field';
|
|
27
28
|
export { PasswordInput } from './password-input';
|
|
28
29
|
export { Popover } from './popover';
|
|
29
30
|
export { ProgressBar } from './progress-bar';
|
|
30
|
-
export { RadioButton, RadioButtonGroup } from './radio';
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
31
|
+
export { RadioButton, RadioButtonGroup } from './radio-button';
|
|
32
|
+
export { RadioCard, RadioCardGroup } from './radio-card';
|
|
33
|
+
export { RadioButtonField } from './radio-button-field';
|
|
33
34
|
export { SearchInput } from './search-input';
|
|
34
35
|
export { Select } from './select';
|
|
35
36
|
export { SelectField } from './select-field';
|
|
@@ -9,6 +9,7 @@ declare const StyledInput: 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 StyledInput: 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 StyledInput: 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
|
export declare type InputProps = Override<React.ComponentProps<typeof StyledInput>, {
|
|
@@ -3,7 +3,7 @@ import type { Override } from '../../utilities/types';
|
|
|
3
3
|
declare const StyledLabel: import("@stitches/react/types/styled-component").StyledComponent<"label", {
|
|
4
4
|
size?: "sm" | "md" | undefined;
|
|
5
5
|
type?: "block" | "inline" | undefined;
|
|
6
|
-
align?: "center" | "
|
|
6
|
+
align?: "center" | "start" | undefined;
|
|
7
7
|
direction?: "reverse" | "row" | undefined;
|
|
8
8
|
}, {
|
|
9
9
|
sm: string;
|
|
@@ -11,6 +11,7 @@ declare const StyledLabel: import("@stitches/react/types/styled-component").Styl
|
|
|
11
11
|
lg: string;
|
|
12
12
|
xl: string;
|
|
13
13
|
reducedMotion: string;
|
|
14
|
+
allowMotion: string;
|
|
14
15
|
hover: string;
|
|
15
16
|
}, import("@stitches/react/types/css-util").CSS<{
|
|
16
17
|
sm: string;
|
|
@@ -18,6 +19,7 @@ declare const StyledLabel: import("@stitches/react/types/styled-component").Styl
|
|
|
18
19
|
lg: string;
|
|
19
20
|
xl: string;
|
|
20
21
|
reducedMotion: string;
|
|
22
|
+
allowMotion: string;
|
|
21
23
|
hover: string;
|
|
22
24
|
}, {
|
|
23
25
|
colors: {
|
|
@@ -124,64 +126,148 @@ declare const StyledLabel: import("@stitches/react/types/styled-component").Styl
|
|
|
124
126
|
"3": any;
|
|
125
127
|
};
|
|
126
128
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
127
|
-
bg: (value:
|
|
128
|
-
|
|
129
|
+
bg: (value: {
|
|
130
|
+
readonly [$$PropertyValue]: "background";
|
|
131
|
+
}) => {
|
|
132
|
+
background: {
|
|
133
|
+
readonly [$$PropertyValue]: "background";
|
|
134
|
+
};
|
|
129
135
|
};
|
|
130
|
-
inset: (value: string | number |
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
136
|
+
inset: (value: string | number | {
|
|
137
|
+
readonly [$$ScaleValue]: "space";
|
|
138
|
+
}) => {
|
|
139
|
+
top: string | number | {
|
|
140
|
+
readonly [$$ScaleValue]: "space";
|
|
141
|
+
};
|
|
142
|
+
right: string | number | {
|
|
143
|
+
readonly [$$ScaleValue]: "space";
|
|
144
|
+
};
|
|
145
|
+
bottom: string | number | {
|
|
146
|
+
readonly [$$ScaleValue]: "space";
|
|
147
|
+
};
|
|
148
|
+
left: string | number | {
|
|
149
|
+
readonly [$$ScaleValue]: "space";
|
|
150
|
+
};
|
|
135
151
|
};
|
|
136
|
-
size: (value: string | number |
|
|
137
|
-
|
|
138
|
-
|
|
152
|
+
size: (value: string | number | {
|
|
153
|
+
readonly [$$ScaleValue]: "size";
|
|
154
|
+
}) => {
|
|
155
|
+
height: string | number | {
|
|
156
|
+
readonly [$$ScaleValue]: "size";
|
|
157
|
+
};
|
|
158
|
+
width: string | number | {
|
|
159
|
+
readonly [$$ScaleValue]: "size";
|
|
160
|
+
};
|
|
139
161
|
};
|
|
140
|
-
p: (value: string | number |
|
|
141
|
-
|
|
162
|
+
p: (value: string | number | {
|
|
163
|
+
readonly [$$ScaleValue]: "space";
|
|
164
|
+
}) => {
|
|
165
|
+
padding: string | number | {
|
|
166
|
+
readonly [$$ScaleValue]: "space";
|
|
167
|
+
};
|
|
142
168
|
};
|
|
143
|
-
pt: (value: string | number |
|
|
144
|
-
|
|
169
|
+
pt: (value: string | number | {
|
|
170
|
+
readonly [$$ScaleValue]: "space";
|
|
171
|
+
}) => {
|
|
172
|
+
paddingTop: string | number | {
|
|
173
|
+
readonly [$$ScaleValue]: "space";
|
|
174
|
+
};
|
|
145
175
|
};
|
|
146
|
-
pr: (value: string | number |
|
|
147
|
-
|
|
176
|
+
pr: (value: string | number | {
|
|
177
|
+
readonly [$$ScaleValue]: "space";
|
|
178
|
+
}) => {
|
|
179
|
+
paddingRight: string | number | {
|
|
180
|
+
readonly [$$ScaleValue]: "space";
|
|
181
|
+
};
|
|
148
182
|
};
|
|
149
|
-
pb: (value: string | number |
|
|
150
|
-
|
|
183
|
+
pb: (value: string | number | {
|
|
184
|
+
readonly [$$ScaleValue]: "space";
|
|
185
|
+
}) => {
|
|
186
|
+
paddingBottom: string | number | {
|
|
187
|
+
readonly [$$ScaleValue]: "space";
|
|
188
|
+
};
|
|
151
189
|
};
|
|
152
|
-
pl: (value: string | number |
|
|
153
|
-
|
|
190
|
+
pl: (value: string | number | {
|
|
191
|
+
readonly [$$ScaleValue]: "space";
|
|
192
|
+
}) => {
|
|
193
|
+
paddingLeft: string | number | {
|
|
194
|
+
readonly [$$ScaleValue]: "space";
|
|
195
|
+
};
|
|
154
196
|
};
|
|
155
|
-
px: (value: string | number |
|
|
156
|
-
|
|
157
|
-
|
|
197
|
+
px: (value: string | number | {
|
|
198
|
+
readonly [$$ScaleValue]: "space";
|
|
199
|
+
}) => {
|
|
200
|
+
paddingLeft: string | number | {
|
|
201
|
+
readonly [$$ScaleValue]: "space";
|
|
202
|
+
};
|
|
203
|
+
paddingRight: string | number | {
|
|
204
|
+
readonly [$$ScaleValue]: "space";
|
|
205
|
+
};
|
|
158
206
|
};
|
|
159
|
-
py: (value: string | number |
|
|
160
|
-
|
|
161
|
-
|
|
207
|
+
py: (value: string | number | {
|
|
208
|
+
readonly [$$ScaleValue]: "space";
|
|
209
|
+
}) => {
|
|
210
|
+
paddingTop: string | number | {
|
|
211
|
+
readonly [$$ScaleValue]: "space";
|
|
212
|
+
};
|
|
213
|
+
paddingBottom: string | number | {
|
|
214
|
+
readonly [$$ScaleValue]: "space";
|
|
215
|
+
};
|
|
162
216
|
};
|
|
163
|
-
m: (value: string | number |
|
|
164
|
-
|
|
217
|
+
m: (value: string | number | {
|
|
218
|
+
readonly [$$ScaleValue]: "space";
|
|
219
|
+
}) => {
|
|
220
|
+
margin: string | number | {
|
|
221
|
+
readonly [$$ScaleValue]: "space";
|
|
222
|
+
};
|
|
165
223
|
};
|
|
166
|
-
mt: (value: string | number |
|
|
167
|
-
|
|
224
|
+
mt: (value: string | number | {
|
|
225
|
+
readonly [$$ScaleValue]: "space";
|
|
226
|
+
}) => {
|
|
227
|
+
marginTop: string | number | {
|
|
228
|
+
readonly [$$ScaleValue]: "space";
|
|
229
|
+
};
|
|
168
230
|
};
|
|
169
|
-
mr: (value: string | number |
|
|
170
|
-
|
|
231
|
+
mr: (value: string | number | {
|
|
232
|
+
readonly [$$ScaleValue]: "space";
|
|
233
|
+
}) => {
|
|
234
|
+
marginRight: string | number | {
|
|
235
|
+
readonly [$$ScaleValue]: "space";
|
|
236
|
+
};
|
|
171
237
|
};
|
|
172
|
-
mb: (value: string | number |
|
|
173
|
-
|
|
238
|
+
mb: (value: string | number | {
|
|
239
|
+
readonly [$$ScaleValue]: "space";
|
|
240
|
+
}) => {
|
|
241
|
+
marginBottom: string | number | {
|
|
242
|
+
readonly [$$ScaleValue]: "space";
|
|
243
|
+
};
|
|
174
244
|
};
|
|
175
|
-
ml: (value: string | number |
|
|
176
|
-
|
|
245
|
+
ml: (value: string | number | {
|
|
246
|
+
readonly [$$ScaleValue]: "space";
|
|
247
|
+
}) => {
|
|
248
|
+
marginLeft: string | number | {
|
|
249
|
+
readonly [$$ScaleValue]: "space";
|
|
250
|
+
};
|
|
177
251
|
};
|
|
178
|
-
mx: (value: string | number |
|
|
179
|
-
|
|
180
|
-
|
|
252
|
+
mx: (value: string | number | {
|
|
253
|
+
readonly [$$ScaleValue]: "space";
|
|
254
|
+
}) => {
|
|
255
|
+
marginLeft: string | number | {
|
|
256
|
+
readonly [$$ScaleValue]: "space";
|
|
257
|
+
};
|
|
258
|
+
marginRight: string | number | {
|
|
259
|
+
readonly [$$ScaleValue]: "space";
|
|
260
|
+
};
|
|
181
261
|
};
|
|
182
|
-
my: (value: string | number |
|
|
183
|
-
|
|
184
|
-
|
|
262
|
+
my: (value: string | number | {
|
|
263
|
+
readonly [$$ScaleValue]: "space";
|
|
264
|
+
}) => {
|
|
265
|
+
marginTop: string | number | {
|
|
266
|
+
readonly [$$ScaleValue]: "space";
|
|
267
|
+
};
|
|
268
|
+
marginBottom: string | number | {
|
|
269
|
+
readonly [$$ScaleValue]: "space";
|
|
270
|
+
};
|
|
185
271
|
};
|
|
186
272
|
}>>;
|
|
187
273
|
declare type LabelProps = Override<React.ComponentPropsWithoutRef<typeof StyledLabel>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=["align","as","direction","size","type","children","required"];import{createElement as
|
|
1
|
+
const e=["align","as","direction","size","type","children","required"];import{createElement as t}from"react";import{styled as i}from"../../stitches.js";import{textVariantSize as r}from"../text/Text.js";const{sm:n,md:o}=r(),l=i("label",{color:"$tonal500",fontFamily:"$body",m:0,variants:{size:{sm:n,md:o},type:{block:{display:"block",fontWeight:600},inline:{display:"flex",fontWeight:400,maxWidth:"max-content"}},align:{start:{alignItems:"flex-start"},center:{alignItems:"center"}},direction:{reverse:{flexDirection:"row-reverse"},row:{flexDirection:"row"}}}}),a=i("span",{color:"$danger",ml:"$1",fontWeight:400}),s=i=>{let{align:r="start",as:n="label",direction:o="row",size:s="md",type:c="block",children:d,required:m}=i,f=function(e,t){if(null==e)return{};var i,r,n={},o=Object.keys(e);for(r=0;r<o.length;r++)i=o[r],t.indexOf(i)>=0||(n[i]=e[i]);return n}(i,e);return t(l,Object.assign({as:n,size:s,type:c,align:r,direction:o},f),d,m&&t(a,{"aria-hidden":!0},"*"))};s.displayName="Label";export{s as Label};
|