@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,9 +1,13 @@
1
- export declare const Divider: import("@stitches/react/types/styled-component").StyledComponent<"hr", {}, {
1
+ import React from 'react';
2
+ declare const StyledDivider: import("@stitches/react/types/styled-component").StyledComponent<"hr", {
3
+ orientation?: "horizontal" | "vertical" | undefined;
4
+ }, {
2
5
  sm: string;
3
6
  md: string;
4
7
  lg: string;
5
8
  xl: string;
6
9
  reducedMotion: string;
10
+ allowMotion: string;
7
11
  hover: string;
8
12
  }, import("@stitches/react/types/css-util").CSS<{
9
13
  sm: string;
@@ -11,6 +15,7 @@ export declare const Divider: import("@stitches/react/types/styled-component").S
11
15
  lg: string;
12
16
  xl: string;
13
17
  reducedMotion: string;
18
+ allowMotion: string;
14
19
  hover: string;
15
20
  }, {
16
21
  colors: {
@@ -117,63 +122,149 @@ export declare const Divider: import("@stitches/react/types/styled-component").S
117
122
  "3": any;
118
123
  };
119
124
  }, import("@stitches/react/types/config").DefaultThemeMap, {
120
- bg: (value: import("@stitches/react").PropertyValue<"background">) => {
121
- background: import("@stitches/react").PropertyValue<"background">;
125
+ bg: (value: {
126
+ readonly [$$PropertyValue]: "background";
127
+ }) => {
128
+ background: {
129
+ readonly [$$PropertyValue]: "background";
130
+ };
122
131
  };
123
- inset: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
124
- top: string | number | import("@stitches/react").ScaleValue<"space">;
125
- right: string | number | import("@stitches/react").ScaleValue<"space">;
126
- bottom: string | number | import("@stitches/react").ScaleValue<"space">;
127
- left: string | number | import("@stitches/react").ScaleValue<"space">;
132
+ inset: (value: string | number | {
133
+ readonly [$$ScaleValue]: "space";
134
+ }) => {
135
+ top: string | number | {
136
+ readonly [$$ScaleValue]: "space";
137
+ };
138
+ right: string | number | {
139
+ readonly [$$ScaleValue]: "space";
140
+ };
141
+ bottom: string | number | {
142
+ readonly [$$ScaleValue]: "space";
143
+ };
144
+ left: string | number | {
145
+ readonly [$$ScaleValue]: "space";
146
+ };
128
147
  };
129
- size: (value: string | number | import("@stitches/react").ScaleValue<"size">) => {
130
- height: string | number | import("@stitches/react").ScaleValue<"size">;
131
- width: string | number | import("@stitches/react").ScaleValue<"size">;
148
+ size: (value: string | number | {
149
+ readonly [$$ScaleValue]: "size";
150
+ }) => {
151
+ height: string | number | {
152
+ readonly [$$ScaleValue]: "size";
153
+ };
154
+ width: string | number | {
155
+ readonly [$$ScaleValue]: "size";
156
+ };
132
157
  };
133
- p: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
134
- padding: string | number | import("@stitches/react").ScaleValue<"space">;
158
+ p: (value: string | number | {
159
+ readonly [$$ScaleValue]: "space";
160
+ }) => {
161
+ padding: string | number | {
162
+ readonly [$$ScaleValue]: "space";
163
+ };
135
164
  };
136
- pt: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
137
- paddingTop: string | number | import("@stitches/react").ScaleValue<"space">;
165
+ pt: (value: string | number | {
166
+ readonly [$$ScaleValue]: "space";
167
+ }) => {
168
+ paddingTop: string | number | {
169
+ readonly [$$ScaleValue]: "space";
170
+ };
138
171
  };
139
- pr: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
140
- paddingRight: string | number | import("@stitches/react").ScaleValue<"space">;
172
+ pr: (value: string | number | {
173
+ readonly [$$ScaleValue]: "space";
174
+ }) => {
175
+ paddingRight: string | number | {
176
+ readonly [$$ScaleValue]: "space";
177
+ };
141
178
  };
142
- pb: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
143
- paddingBottom: string | number | import("@stitches/react").ScaleValue<"space">;
179
+ pb: (value: string | number | {
180
+ readonly [$$ScaleValue]: "space";
181
+ }) => {
182
+ paddingBottom: string | number | {
183
+ readonly [$$ScaleValue]: "space";
184
+ };
144
185
  };
145
- pl: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
146
- paddingLeft: string | number | import("@stitches/react").ScaleValue<"space">;
186
+ pl: (value: string | number | {
187
+ readonly [$$ScaleValue]: "space";
188
+ }) => {
189
+ paddingLeft: string | number | {
190
+ readonly [$$ScaleValue]: "space";
191
+ };
147
192
  };
148
- px: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
149
- paddingLeft: string | number | import("@stitches/react").ScaleValue<"space">;
150
- paddingRight: string | number | import("@stitches/react").ScaleValue<"space">;
193
+ px: (value: string | number | {
194
+ readonly [$$ScaleValue]: "space";
195
+ }) => {
196
+ paddingLeft: string | number | {
197
+ readonly [$$ScaleValue]: "space";
198
+ };
199
+ paddingRight: string | number | {
200
+ readonly [$$ScaleValue]: "space";
201
+ };
151
202
  };
152
- py: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
153
- paddingTop: string | number | import("@stitches/react").ScaleValue<"space">;
154
- paddingBottom: string | number | import("@stitches/react").ScaleValue<"space">;
203
+ py: (value: string | number | {
204
+ readonly [$$ScaleValue]: "space";
205
+ }) => {
206
+ paddingTop: string | number | {
207
+ readonly [$$ScaleValue]: "space";
208
+ };
209
+ paddingBottom: string | number | {
210
+ readonly [$$ScaleValue]: "space";
211
+ };
155
212
  };
156
- m: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
157
- margin: string | number | import("@stitches/react").ScaleValue<"space">;
213
+ m: (value: string | number | {
214
+ readonly [$$ScaleValue]: "space";
215
+ }) => {
216
+ margin: string | number | {
217
+ readonly [$$ScaleValue]: "space";
218
+ };
158
219
  };
159
- mt: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
160
- marginTop: string | number | import("@stitches/react").ScaleValue<"space">;
220
+ mt: (value: string | number | {
221
+ readonly [$$ScaleValue]: "space";
222
+ }) => {
223
+ marginTop: string | number | {
224
+ readonly [$$ScaleValue]: "space";
225
+ };
161
226
  };
162
- mr: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
163
- marginRight: string | number | import("@stitches/react").ScaleValue<"space">;
227
+ mr: (value: string | number | {
228
+ readonly [$$ScaleValue]: "space";
229
+ }) => {
230
+ marginRight: string | number | {
231
+ readonly [$$ScaleValue]: "space";
232
+ };
164
233
  };
165
- mb: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
166
- marginBottom: string | number | import("@stitches/react").ScaleValue<"space">;
234
+ mb: (value: string | number | {
235
+ readonly [$$ScaleValue]: "space";
236
+ }) => {
237
+ marginBottom: string | number | {
238
+ readonly [$$ScaleValue]: "space";
239
+ };
167
240
  };
168
- ml: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
169
- marginLeft: string | number | import("@stitches/react").ScaleValue<"space">;
241
+ ml: (value: string | number | {
242
+ readonly [$$ScaleValue]: "space";
243
+ }) => {
244
+ marginLeft: string | number | {
245
+ readonly [$$ScaleValue]: "space";
246
+ };
170
247
  };
171
- mx: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
172
- marginLeft: string | number | import("@stitches/react").ScaleValue<"space">;
173
- marginRight: string | number | import("@stitches/react").ScaleValue<"space">;
248
+ mx: (value: string | number | {
249
+ readonly [$$ScaleValue]: "space";
250
+ }) => {
251
+ marginLeft: string | number | {
252
+ readonly [$$ScaleValue]: "space";
253
+ };
254
+ marginRight: string | number | {
255
+ readonly [$$ScaleValue]: "space";
256
+ };
174
257
  };
175
- my: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
176
- marginTop: string | number | import("@stitches/react").ScaleValue<"space">;
177
- marginBottom: string | number | import("@stitches/react").ScaleValue<"space">;
258
+ my: (value: string | number | {
259
+ readonly [$$ScaleValue]: "space";
260
+ }) => {
261
+ marginTop: string | number | {
262
+ readonly [$$ScaleValue]: "space";
263
+ };
264
+ marginBottom: string | number | {
265
+ readonly [$$ScaleValue]: "space";
266
+ };
178
267
  };
179
268
  }>>;
269
+ export declare const Divider: React.FC<React.ComponentProps<typeof StyledDivider>>;
270
+ export {};
@@ -1 +1 @@
1
- import{styled as o}from"../../stitches.js";const r=o("hr",{border:0,borderTop:"1px solid $tonal200",mx:"auto",width:"50%"});export{r as Divider};
1
+ const t=["orientation"];import r from"react";import{styled as e}from"../../stitches.js";const i=e("hr",{border:0,bg:"$tonal200",variants:{orientation:{horizontal:{height:1,width:"100%"},vertical:{height:"100%",width:1,minHeight:"$3"}}}}),n=e=>{let{orientation:n="horizontal"}=e,o=function(t,r){if(null==t)return{};var e,i,n={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],r.indexOf(e)>=0||(n[e]=t[e]);return n}(e,t);return r.createElement(i,Object.assign({orientation:n},o))};export{n as Divider};
@@ -10,6 +10,7 @@ declare const Root: import("@stitches/react/types/styled-component").StyledCompo
10
10
  lg: string;
11
11
  xl: string;
12
12
  reducedMotion: string;
13
+ allowMotion: string;
13
14
  hover: string;
14
15
  }, import("@stitches/react/types/css-util").CSS<{
15
16
  sm: string;
@@ -17,6 +18,7 @@ declare const Root: import("@stitches/react/types/styled-component").StyledCompo
17
18
  lg: string;
18
19
  xl: string;
19
20
  reducedMotion: string;
21
+ allowMotion: string;
20
22
  hover: string;
21
23
  }, {
22
24
  colors: {
@@ -123,64 +125,148 @@ declare const Root: import("@stitches/react/types/styled-component").StyledCompo
123
125
  "3": any;
124
126
  };
125
127
  }, import("@stitches/react/types/config").DefaultThemeMap, {
126
- bg: (value: import("@stitches/react").PropertyValue<"background">) => {
127
- background: import("@stitches/react").PropertyValue<"background">;
128
+ bg: (value: {
129
+ readonly [$$PropertyValue]: "background";
130
+ }) => {
131
+ background: {
132
+ readonly [$$PropertyValue]: "background";
133
+ };
128
134
  };
129
- inset: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
130
- top: string | number | import("@stitches/react").ScaleValue<"space">;
131
- right: string | number | import("@stitches/react").ScaleValue<"space">;
132
- bottom: string | number | import("@stitches/react").ScaleValue<"space">;
133
- left: string | number | import("@stitches/react").ScaleValue<"space">;
135
+ inset: (value: string | number | {
136
+ readonly [$$ScaleValue]: "space";
137
+ }) => {
138
+ top: string | number | {
139
+ readonly [$$ScaleValue]: "space";
140
+ };
141
+ right: string | number | {
142
+ readonly [$$ScaleValue]: "space";
143
+ };
144
+ bottom: string | number | {
145
+ readonly [$$ScaleValue]: "space";
146
+ };
147
+ left: string | number | {
148
+ readonly [$$ScaleValue]: "space";
149
+ };
134
150
  };
135
- size: (value: string | number | import("@stitches/react").ScaleValue<"size">) => {
136
- height: string | number | import("@stitches/react").ScaleValue<"size">;
137
- width: string | number | import("@stitches/react").ScaleValue<"size">;
151
+ size: (value: string | number | {
152
+ readonly [$$ScaleValue]: "size";
153
+ }) => {
154
+ height: string | number | {
155
+ readonly [$$ScaleValue]: "size";
156
+ };
157
+ width: string | number | {
158
+ readonly [$$ScaleValue]: "size";
159
+ };
138
160
  };
139
- p: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
140
- padding: string | number | import("@stitches/react").ScaleValue<"space">;
161
+ p: (value: string | number | {
162
+ readonly [$$ScaleValue]: "space";
163
+ }) => {
164
+ padding: string | number | {
165
+ readonly [$$ScaleValue]: "space";
166
+ };
141
167
  };
142
- pt: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
143
- paddingTop: string | number | import("@stitches/react").ScaleValue<"space">;
168
+ pt: (value: string | number | {
169
+ readonly [$$ScaleValue]: "space";
170
+ }) => {
171
+ paddingTop: string | number | {
172
+ readonly [$$ScaleValue]: "space";
173
+ };
144
174
  };
145
- pr: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
146
- paddingRight: string | number | import("@stitches/react").ScaleValue<"space">;
175
+ pr: (value: string | number | {
176
+ readonly [$$ScaleValue]: "space";
177
+ }) => {
178
+ paddingRight: string | number | {
179
+ readonly [$$ScaleValue]: "space";
180
+ };
147
181
  };
148
- pb: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
149
- paddingBottom: string | number | import("@stitches/react").ScaleValue<"space">;
182
+ pb: (value: string | number | {
183
+ readonly [$$ScaleValue]: "space";
184
+ }) => {
185
+ paddingBottom: string | number | {
186
+ readonly [$$ScaleValue]: "space";
187
+ };
150
188
  };
151
- pl: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
152
- paddingLeft: string | number | import("@stitches/react").ScaleValue<"space">;
189
+ pl: (value: string | number | {
190
+ readonly [$$ScaleValue]: "space";
191
+ }) => {
192
+ paddingLeft: string | number | {
193
+ readonly [$$ScaleValue]: "space";
194
+ };
153
195
  };
154
- px: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
155
- paddingLeft: string | number | import("@stitches/react").ScaleValue<"space">;
156
- paddingRight: string | number | import("@stitches/react").ScaleValue<"space">;
196
+ px: (value: string | number | {
197
+ readonly [$$ScaleValue]: "space";
198
+ }) => {
199
+ paddingLeft: string | number | {
200
+ readonly [$$ScaleValue]: "space";
201
+ };
202
+ paddingRight: string | number | {
203
+ readonly [$$ScaleValue]: "space";
204
+ };
157
205
  };
158
- py: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
159
- paddingTop: string | number | import("@stitches/react").ScaleValue<"space">;
160
- paddingBottom: string | number | import("@stitches/react").ScaleValue<"space">;
206
+ py: (value: string | number | {
207
+ readonly [$$ScaleValue]: "space";
208
+ }) => {
209
+ paddingTop: string | number | {
210
+ readonly [$$ScaleValue]: "space";
211
+ };
212
+ paddingBottom: string | number | {
213
+ readonly [$$ScaleValue]: "space";
214
+ };
161
215
  };
162
- m: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
163
- margin: string | number | import("@stitches/react").ScaleValue<"space">;
216
+ m: (value: string | number | {
217
+ readonly [$$ScaleValue]: "space";
218
+ }) => {
219
+ margin: string | number | {
220
+ readonly [$$ScaleValue]: "space";
221
+ };
164
222
  };
165
- mt: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
166
- marginTop: string | number | import("@stitches/react").ScaleValue<"space">;
223
+ mt: (value: string | number | {
224
+ readonly [$$ScaleValue]: "space";
225
+ }) => {
226
+ marginTop: string | number | {
227
+ readonly [$$ScaleValue]: "space";
228
+ };
167
229
  };
168
- mr: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
169
- marginRight: string | number | import("@stitches/react").ScaleValue<"space">;
230
+ mr: (value: string | number | {
231
+ readonly [$$ScaleValue]: "space";
232
+ }) => {
233
+ marginRight: string | number | {
234
+ readonly [$$ScaleValue]: "space";
235
+ };
170
236
  };
171
- mb: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
172
- marginBottom: string | number | import("@stitches/react").ScaleValue<"space">;
237
+ mb: (value: string | number | {
238
+ readonly [$$ScaleValue]: "space";
239
+ }) => {
240
+ marginBottom: string | number | {
241
+ readonly [$$ScaleValue]: "space";
242
+ };
173
243
  };
174
- ml: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
175
- marginLeft: string | number | import("@stitches/react").ScaleValue<"space">;
244
+ ml: (value: string | number | {
245
+ readonly [$$ScaleValue]: "space";
246
+ }) => {
247
+ marginLeft: string | number | {
248
+ readonly [$$ScaleValue]: "space";
249
+ };
176
250
  };
177
- mx: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
178
- marginLeft: string | number | import("@stitches/react").ScaleValue<"space">;
179
- marginRight: string | number | import("@stitches/react").ScaleValue<"space">;
251
+ mx: (value: string | number | {
252
+ readonly [$$ScaleValue]: "space";
253
+ }) => {
254
+ marginLeft: string | number | {
255
+ readonly [$$ScaleValue]: "space";
256
+ };
257
+ marginRight: string | number | {
258
+ readonly [$$ScaleValue]: "space";
259
+ };
180
260
  };
181
- my: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
182
- marginTop: string | number | import("@stitches/react").ScaleValue<"space">;
183
- marginBottom: string | number | import("@stitches/react").ScaleValue<"space">;
261
+ my: (value: string | number | {
262
+ readonly [$$ScaleValue]: "space";
263
+ }) => {
264
+ marginTop: string | number | {
265
+ readonly [$$ScaleValue]: "space";
266
+ };
267
+ marginBottom: string | number | {
268
+ readonly [$$ScaleValue]: "space";
269
+ };
184
270
  };
185
271
  }>>;
186
272
  export declare const DropdownMenu: React.FC<React.ComponentProps<typeof Root>> & {
@@ -5,6 +5,7 @@ export declare const DropdownMenuContent: import("@stitches/react/types/styled-c
5
5
  lg: string;
6
6
  xl: string;
7
7
  reducedMotion: string;
8
+ allowMotion: string;
8
9
  hover: string;
9
10
  }, import("@stitches/react/types/css-util").CSS<{
10
11
  sm: string;
@@ -12,6 +13,7 @@ export declare const DropdownMenuContent: import("@stitches/react/types/styled-c
12
13
  lg: string;
13
14
  xl: string;
14
15
  reducedMotion: string;
16
+ allowMotion: string;
15
17
  hover: string;
16
18
  }, {
17
19
  colors: {
@@ -118,63 +120,147 @@ export declare const DropdownMenuContent: import("@stitches/react/types/styled-c
118
120
  "3": any;
119
121
  };
120
122
  }, import("@stitches/react/types/config").DefaultThemeMap, {
121
- bg: (value: import("@stitches/react").PropertyValue<"background">) => {
122
- background: import("@stitches/react").PropertyValue<"background">;
123
+ bg: (value: {
124
+ readonly [$$PropertyValue]: "background";
125
+ }) => {
126
+ background: {
127
+ readonly [$$PropertyValue]: "background";
128
+ };
123
129
  };
124
- inset: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
125
- top: string | number | import("@stitches/react").ScaleValue<"space">;
126
- right: string | number | import("@stitches/react").ScaleValue<"space">;
127
- bottom: string | number | import("@stitches/react").ScaleValue<"space">;
128
- left: string | number | import("@stitches/react").ScaleValue<"space">;
130
+ inset: (value: string | number | {
131
+ readonly [$$ScaleValue]: "space";
132
+ }) => {
133
+ top: string | number | {
134
+ readonly [$$ScaleValue]: "space";
135
+ };
136
+ right: string | number | {
137
+ readonly [$$ScaleValue]: "space";
138
+ };
139
+ bottom: string | number | {
140
+ readonly [$$ScaleValue]: "space";
141
+ };
142
+ left: string | number | {
143
+ readonly [$$ScaleValue]: "space";
144
+ };
129
145
  };
130
- size: (value: string | number | import("@stitches/react").ScaleValue<"size">) => {
131
- height: string | number | import("@stitches/react").ScaleValue<"size">;
132
- width: string | number | import("@stitches/react").ScaleValue<"size">;
146
+ size: (value: string | number | {
147
+ readonly [$$ScaleValue]: "size";
148
+ }) => {
149
+ height: string | number | {
150
+ readonly [$$ScaleValue]: "size";
151
+ };
152
+ width: string | number | {
153
+ readonly [$$ScaleValue]: "size";
154
+ };
133
155
  };
134
- p: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
135
- padding: string | number | import("@stitches/react").ScaleValue<"space">;
156
+ p: (value: string | number | {
157
+ readonly [$$ScaleValue]: "space";
158
+ }) => {
159
+ padding: string | number | {
160
+ readonly [$$ScaleValue]: "space";
161
+ };
136
162
  };
137
- pt: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
138
- paddingTop: string | number | import("@stitches/react").ScaleValue<"space">;
163
+ pt: (value: string | number | {
164
+ readonly [$$ScaleValue]: "space";
165
+ }) => {
166
+ paddingTop: string | number | {
167
+ readonly [$$ScaleValue]: "space";
168
+ };
139
169
  };
140
- pr: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
141
- paddingRight: string | number | import("@stitches/react").ScaleValue<"space">;
170
+ pr: (value: string | number | {
171
+ readonly [$$ScaleValue]: "space";
172
+ }) => {
173
+ paddingRight: string | number | {
174
+ readonly [$$ScaleValue]: "space";
175
+ };
142
176
  };
143
- pb: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
144
- paddingBottom: string | number | import("@stitches/react").ScaleValue<"space">;
177
+ pb: (value: string | number | {
178
+ readonly [$$ScaleValue]: "space";
179
+ }) => {
180
+ paddingBottom: string | number | {
181
+ readonly [$$ScaleValue]: "space";
182
+ };
145
183
  };
146
- pl: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
147
- paddingLeft: string | number | import("@stitches/react").ScaleValue<"space">;
184
+ pl: (value: string | number | {
185
+ readonly [$$ScaleValue]: "space";
186
+ }) => {
187
+ paddingLeft: string | number | {
188
+ readonly [$$ScaleValue]: "space";
189
+ };
148
190
  };
149
- px: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
150
- paddingLeft: string | number | import("@stitches/react").ScaleValue<"space">;
151
- paddingRight: string | number | import("@stitches/react").ScaleValue<"space">;
191
+ px: (value: string | number | {
192
+ readonly [$$ScaleValue]: "space";
193
+ }) => {
194
+ paddingLeft: string | number | {
195
+ readonly [$$ScaleValue]: "space";
196
+ };
197
+ paddingRight: string | number | {
198
+ readonly [$$ScaleValue]: "space";
199
+ };
152
200
  };
153
- py: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
154
- paddingTop: string | number | import("@stitches/react").ScaleValue<"space">;
155
- paddingBottom: string | number | import("@stitches/react").ScaleValue<"space">;
201
+ py: (value: string | number | {
202
+ readonly [$$ScaleValue]: "space";
203
+ }) => {
204
+ paddingTop: string | number | {
205
+ readonly [$$ScaleValue]: "space";
206
+ };
207
+ paddingBottom: string | number | {
208
+ readonly [$$ScaleValue]: "space";
209
+ };
156
210
  };
157
- m: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
158
- margin: string | number | import("@stitches/react").ScaleValue<"space">;
211
+ m: (value: string | number | {
212
+ readonly [$$ScaleValue]: "space";
213
+ }) => {
214
+ margin: string | number | {
215
+ readonly [$$ScaleValue]: "space";
216
+ };
159
217
  };
160
- mt: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
161
- marginTop: string | number | import("@stitches/react").ScaleValue<"space">;
218
+ mt: (value: string | number | {
219
+ readonly [$$ScaleValue]: "space";
220
+ }) => {
221
+ marginTop: string | number | {
222
+ readonly [$$ScaleValue]: "space";
223
+ };
162
224
  };
163
- mr: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
164
- marginRight: string | number | import("@stitches/react").ScaleValue<"space">;
225
+ mr: (value: string | number | {
226
+ readonly [$$ScaleValue]: "space";
227
+ }) => {
228
+ marginRight: string | number | {
229
+ readonly [$$ScaleValue]: "space";
230
+ };
165
231
  };
166
- mb: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
167
- marginBottom: string | number | import("@stitches/react").ScaleValue<"space">;
232
+ mb: (value: string | number | {
233
+ readonly [$$ScaleValue]: "space";
234
+ }) => {
235
+ marginBottom: string | number | {
236
+ readonly [$$ScaleValue]: "space";
237
+ };
168
238
  };
169
- ml: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
170
- marginLeft: string | number | import("@stitches/react").ScaleValue<"space">;
239
+ ml: (value: string | number | {
240
+ readonly [$$ScaleValue]: "space";
241
+ }) => {
242
+ marginLeft: string | number | {
243
+ readonly [$$ScaleValue]: "space";
244
+ };
171
245
  };
172
- mx: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
173
- marginLeft: string | number | import("@stitches/react").ScaleValue<"space">;
174
- marginRight: string | number | import("@stitches/react").ScaleValue<"space">;
246
+ mx: (value: string | number | {
247
+ readonly [$$ScaleValue]: "space";
248
+ }) => {
249
+ marginLeft: string | number | {
250
+ readonly [$$ScaleValue]: "space";
251
+ };
252
+ marginRight: string | number | {
253
+ readonly [$$ScaleValue]: "space";
254
+ };
175
255
  };
176
- my: (value: string | number | import("@stitches/react").ScaleValue<"space">) => {
177
- marginTop: string | number | import("@stitches/react").ScaleValue<"space">;
178
- marginBottom: string | number | import("@stitches/react").ScaleValue<"space">;
256
+ my: (value: string | number | {
257
+ readonly [$$ScaleValue]: "space";
258
+ }) => {
259
+ marginTop: string | number | {
260
+ readonly [$$ScaleValue]: "space";
261
+ };
262
+ marginBottom: string | number | {
263
+ readonly [$$ScaleValue]: "space";
264
+ };
179
265
  };
180
266
  }>>;
@@ -1 +1 @@
1
- import{Content as a}from"@radix-ui/react-dropdown-menu";import{keyframes as t,styled as o}from"../../stitches.js";const r=t({"0%":{opacity:0,transform:"translateY(2px)"},"100%":{opacity:1,transform:"translateY(0)"}}),i=t({"0%":{opacity:0,transform:"translateX(-2px)"},"100%":{opacity:1,transform:"translateX(0)"}}),n=o(a,{bg:"white",borderRadius:"$0",boxShadow:"$0",py:"$3","@media (prefers-reduced-motion: no-preference)":{animationDuration:"400ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",'&[data-state="open"]':{'&[data-side="top"]':{animationName:t({"0%":{opacity:0,transform:"translateY(-2px)"},"100%":{opacity:1,transform:"translateY(0)"}})},'&[data-side="right"]':{animationName:t({"0%":{opacity:0,transform:"translateX(2px)"},"100%":{opacity:1,transform:"translateX(0)"}})},'&[data-side="bottom"]':{animationName:r},'&[data-side="left"]':{animationName:i}}}});export{n as DropdownMenuContent};
1
+ import{Content as i}from"@radix-ui/react-dropdown-menu";import{styled as a}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"polished";import{slideDownAndFade as t,slideLeftAndFade as o,slideUpAndFade as e,slideRightAndFade as m}from"../../utilities/style/keyframe-animations.js";const n=a(i,{bg:"white",borderRadius:"$0",boxShadow:"$0",py:"$2","@allowMotion":{animationDuration:"250ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",'&[data-state="open"]':{'&[data-side="top"]':{animationName:t},'&[data-side="right"]':{animationName:o},'&[data-side="bottom"]':{animationName:e},'&[data-side="left"]':{animationName:m}}}});export{n as DropdownMenuContent};