@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
@@ -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 { RadioGroupField } from './radio-field';
32
- export { MarkdownContent } from './markdown-content';
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: 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
  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" | "baseline" | undefined;
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: import("@stitches/react").PropertyValue<"background">) => {
128
- background: import("@stitches/react").PropertyValue<"background">;
129
+ bg: (value: {
130
+ readonly [$$PropertyValue]: "background";
131
+ }) => {
132
+ background: {
133
+ readonly [$$PropertyValue]: "background";
134
+ };
129
135
  };
130
- inset: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
131
- top: string | number | import("@stitches/react").ScaleValue<"space">;
132
- right: string | number | import("@stitches/react").ScaleValue<"space">;
133
- bottom: string | number | import("@stitches/react").ScaleValue<"space">;
134
- left: string | number | import("@stitches/react").ScaleValue<"space">;
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 | import("@stitches/react").ScaleValue<"size">) => {
137
- height: string | number | import("@stitches/react").ScaleValue<"size">;
138
- width: string | number | import("@stitches/react").ScaleValue<"size">;
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 | import("@stitches/react").ScaleValue<"space">) => {
141
- padding: string | number | import("@stitches/react").ScaleValue<"space">;
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 | import("@stitches/react").ScaleValue<"space">) => {
144
- paddingTop: string | number | import("@stitches/react").ScaleValue<"space">;
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 | import("@stitches/react").ScaleValue<"space">) => {
147
- paddingRight: string | number | import("@stitches/react").ScaleValue<"space">;
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 | import("@stitches/react").ScaleValue<"space">) => {
150
- paddingBottom: string | number | import("@stitches/react").ScaleValue<"space">;
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 | import("@stitches/react").ScaleValue<"space">) => {
153
- paddingLeft: string | number | import("@stitches/react").ScaleValue<"space">;
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 | import("@stitches/react").ScaleValue<"space">) => {
156
- paddingLeft: string | number | import("@stitches/react").ScaleValue<"space">;
157
- paddingRight: string | number | import("@stitches/react").ScaleValue<"space">;
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 | import("@stitches/react").ScaleValue<"space">) => {
160
- paddingTop: string | number | import("@stitches/react").ScaleValue<"space">;
161
- paddingBottom: string | number | import("@stitches/react").ScaleValue<"space">;
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 | import("@stitches/react").ScaleValue<"space">) => {
164
- margin: string | number | import("@stitches/react").ScaleValue<"space">;
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 | import("@stitches/react").ScaleValue<"space">) => {
167
- marginTop: string | number | import("@stitches/react").ScaleValue<"space">;
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 | import("@stitches/react").ScaleValue<"space">) => {
170
- marginRight: string | number | import("@stitches/react").ScaleValue<"space">;
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 | import("@stitches/react").ScaleValue<"space">) => {
173
- marginBottom: string | number | import("@stitches/react").ScaleValue<"space">;
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 | import("@stitches/react").ScaleValue<"space">) => {
176
- marginLeft: string | number | import("@stitches/react").ScaleValue<"space">;
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 | import("@stitches/react").ScaleValue<"space">) => {
179
- marginLeft: string | number | import("@stitches/react").ScaleValue<"space">;
180
- marginRight: string | number | import("@stitches/react").ScaleValue<"space">;
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 | import("@stitches/react").ScaleValue<"space">) => {
183
- marginTop: string | number | import("@stitches/react").ScaleValue<"space">;
184
- marginBottom: string | number | import("@stitches/react").ScaleValue<"space">;
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 i}from"react";import{styled as t}from"../../stitches.js";import{textVariantSize as n}from"../text/Text.js";const{sm:r,md:l}=n(),o=t("label",{color:"$tonal500",fontFamily:"$body",m:0,variants:{size:{sm:r,md:l},type:{block:{display:"block",fontWeight:600},inline:{display:"flex",fontWeight:400,maxWidth:"max-content"}},align:{baseline:{alignItems:"baseline"},center:{alignItems:"center"}},direction:{reverse:{flexDirection:"row-reverse"},row:{flexDirection:"row"}}}}),a=t("span",{color:"$danger",ml:"$1",fontWeight:400}),s=t=>{let{align:n="baseline",as:r="label",direction:l="row",size:s="md",type:c="block",children:d,required:m}=t,f=function(e,i){if(null==e)return{};var t,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)t=l[n],i.indexOf(t)>=0||(r[t]=e[t]);return r}(t,e);return i(o,Object.assign({as:r,size:s,type:c,align:n,direction:l},f),d,m&&i(a,{"aria-hidden":!0},"*"))};s.displayName="Label";export{s as Label};
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};