@atom-learning/components 2.29.1 → 2.31.0-beta.0
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/dist/components/accordion/Accordion.d.ts +37 -127
- package/dist/components/accordion/AccordionContent.d.ts +37 -127
- package/dist/components/accordion/AccordionContent.js +1 -1
- package/dist/components/accordion/AccordionItem.d.ts +37 -127
- package/dist/components/accordion/AccordionItem.js +1 -1
- package/dist/components/accordion/AccordionTrigger.d.ts +42 -131
- package/dist/components/accordion/AccordionTrigger.js +1 -1
- package/dist/components/action-icon/ActionIcon.d.ts +37 -127
- package/dist/components/alert-dialog/AlertDialog.d.ts +37 -127
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +37 -127
- package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
- package/dist/components/avatar/Avatar.d.ts +104 -284
- package/dist/components/badge/Badge.d.ts +104 -284
- package/dist/components/box/Box.d.ts +37 -127
- package/dist/components/button/Button.d.ts +37 -127
- package/dist/components/calendar/Day.d.ts +37 -127
- package/dist/components/carousel/CarouselPagination.d.ts +37 -127
- package/dist/components/carousel/CarouselSlide.d.ts +37 -127
- package/dist/components/carousel/CarouselSlider.d.ts +37 -127
- package/dist/components/checkbox/Checkbox.d.ts +37 -127
- package/dist/components/chip/Chip.d.ts +304 -934
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +74 -254
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +74 -254
- package/dist/components/chip-toggle-group/ChipToggleGroupRoot.d.ts +104 -284
- package/dist/components/combobox/Combobox.d.ts +37 -127
- package/dist/components/combobox/ComboboxInput.d.ts +37 -127
- package/dist/components/combobox/ComboboxList.d.ts +37 -127
- package/dist/components/combobox/ComboboxOption.d.ts +37 -127
- package/dist/components/combobox/ComboboxPopover.d.ts +37 -127
- package/dist/components/data-table/DataTableLoading.d.ts +37 -127
- package/dist/components/data-table/drag-and-drop/Handle.d.ts +74 -254
- package/dist/components/data-table/pagination/Pagination.d.ts +37 -127
- package/dist/components/dialog/Dialog.d.ts +37 -127
- package/dist/components/dialog/DialogBackground.d.ts +104 -284
- package/dist/components/dialog/DialogClose.d.ts +37 -127
- package/dist/components/dialog/DialogContent.d.ts +37 -127
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/divider/Divider.d.ts +37 -127
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +37 -127
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +37 -127
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +37 -127
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +37 -127
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +37 -127
- package/dist/components/empty-state/EmptyState.d.ts +104 -284
- package/dist/components/empty-state/EmptyStateBody.d.ts +74 -254
- package/dist/components/empty-state/EmptyStateImage.d.ts +74 -254
- package/dist/components/empty-state/EmptyStateTitle.d.ts +37 -127
- package/dist/components/flex/Flex.d.ts +37 -127
- package/dist/components/form/Form.d.ts +37 -127
- package/dist/components/grid/Grid.d.ts +37 -127
- package/dist/components/heading/Heading.d.ts +37 -127
- package/dist/components/icon/Icon.d.ts +37 -127
- package/dist/components/image/Image.d.ts +37 -127
- package/dist/components/inline-message/InlineMessage.d.ts +104 -284
- package/dist/components/input/Input.d.ts +37 -127
- package/dist/components/label/Label.d.ts +37 -127
- package/dist/components/link/Link.d.ts +37 -127
- package/dist/components/list/List.d.ts +104 -284
- package/dist/components/markdown-content/components/MarkdownEmphasis.d.ts +37 -127
- package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +74 -254
- package/dist/components/notification-badge/NotificationBadge.d.ts +104 -284
- package/dist/components/popover/Popover.d.ts +37 -127
- package/dist/components/popover/PopoverContent.d.ts +37 -127
- package/dist/components/progress-bar/ProgressBar.d.ts +37 -127
- package/dist/components/radio-button/RadioButton.d.ts +37 -127
- package/dist/components/radio-button/RadioButtonGroup.d.ts +37 -127
- package/dist/components/radio-card/RadioCard.d.ts +37 -127
- package/dist/components/select/Select.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerContent.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerFooter.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerHeader.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerOverlay.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerTrigger.d.ts +37 -127
- package/dist/components/slider/Slider.d.ts +37 -127
- package/dist/components/stack/Stack.d.ts +37 -127
- package/dist/components/stack-content/StackContent.d.ts +37 -127
- package/dist/components/stepper/StepperStepBullet.d.ts +104 -284
- package/dist/components/stepper/StepperStepContainer.d.ts +104 -284
- package/dist/components/stepper/StepperStepLabel.d.ts +74 -254
- package/dist/components/switch/Switch.d.ts +37 -127
- package/dist/components/table/Table.d.ts +37 -127
- package/dist/components/table/TableBody.d.ts +37 -127
- package/dist/components/table/TableCell.d.ts +37 -127
- package/dist/components/table/TableFooter.d.ts +37 -127
- package/dist/components/table/TableFooterCell.d.ts +37 -127
- package/dist/components/table/TableHeader.d.ts +37 -127
- package/dist/components/table/TableHeaderCell.d.ts +37 -127
- package/dist/components/table/TableRow.d.ts +74 -254
- package/dist/components/tabs/Tabs.d.ts +44 -403
- package/dist/components/tabs/Tabs.js +1 -1
- package/dist/components/tabs/TabsContent.d.ts +177 -0
- package/dist/components/tabs/TabsContent.js +1 -0
- package/dist/components/tabs/TabsTrigger.d.ts +182 -0
- package/dist/components/tabs/TabsTrigger.js +1 -0
- package/dist/components/tabs/TabsTriggerList.d.ts +42 -136
- package/dist/components/tabs/TabsTriggerList.js +1 -1
- package/dist/components/text/Text.d.ts +37 -127
- package/dist/components/textarea/Textarea.d.ts +37 -127
- package/dist/components/toast/Toast.d.ts +37 -127
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +104 -284
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +104 -284
- package/dist/components/toggle-group/ToggleGroupRoot.d.ts +37 -127
- package/dist/components/toggle-group/index.d.ts +245 -695
- package/dist/components/tooltip/TooltipContent.d.ts +37 -127
- package/dist/components/top-bar/TopBar.d.ts +37 -127
- package/dist/components/top-bar/TopBarBrand.d.ts +111 -381
- package/dist/components/video/Video.d.ts +104 -284
- package/dist/docgen.json +1 -1
- package/dist/docs/Accordion.mdx +56 -7
- package/dist/docs/README.mdx +79 -0
- package/dist/docs/Tabs.mdx +31 -57
- package/dist/experiments/color-scheme/ColorScheme.d.ts +111 -0
- package/dist/experiments/color-scheme/ColorScheme.js +1 -0
- package/dist/experiments/color-scheme/blue.json.js +1 -0
- package/dist/experiments/color-scheme/generateAlphaColors.d.ts +1 -0
- package/dist/experiments/color-scheme/generateAlphaColors.js +1 -0
- package/dist/experiments/color-scheme/index.d.ts +1 -0
- package/dist/experiments/color-scheme/slate.json.js +1 -0
- package/dist/experiments/color-scheme/stitches.colorscheme.config.d.ts +256 -0
- package/dist/experiments/color-scheme/stitches.colorscheme.config.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/stitches.d.ts +474 -786
- package/dist/stitches.js +1 -1
- package/dist/utilities/hooks/useCallbackRef.js +1 -1
- package/dist/utilities/hooks/useWindowSize.d.ts +8 -0
- package/dist/utilities/hooks/useWindowSize.js +1 -0
- package/package.json +4 -3
- package/CHANGELOG.md +0 -210
- package/dist/components/tabs/TabTrigger.d.ts +0 -275
- package/dist/components/tabs/TabTrigger.js +0 -1
- package/dist/components/tabs/utils.d.ts +0 -2
- package/dist/components/tabs/utils.js +0 -1
|
@@ -121,147 +121,57 @@ export declare const DialogClose: import("@stitches/react/types/styled-component
|
|
|
121
121
|
"3": any;
|
|
122
122
|
};
|
|
123
123
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
124
|
-
bg: (value: {
|
|
125
|
-
|
|
126
|
-
}) => {
|
|
127
|
-
background: {
|
|
128
|
-
readonly [$$PropertyValue]: "background";
|
|
129
|
-
};
|
|
124
|
+
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
125
|
+
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
130
126
|
};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
top: string | number | {
|
|
135
|
-
readonly [$$ScaleValue]: "space";
|
|
136
|
-
};
|
|
137
|
-
right: string | number | {
|
|
138
|
-
readonly [$$ScaleValue]: "space";
|
|
139
|
-
};
|
|
140
|
-
bottom: string | number | {
|
|
141
|
-
readonly [$$ScaleValue]: "space";
|
|
142
|
-
};
|
|
143
|
-
left: string | number | {
|
|
144
|
-
readonly [$$ScaleValue]: "space";
|
|
145
|
-
};
|
|
127
|
+
size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
|
|
128
|
+
height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
129
|
+
width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
146
130
|
};
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}) => {
|
|
150
|
-
height: string | number | {
|
|
151
|
-
readonly [$$ScaleValue]: "size";
|
|
152
|
-
};
|
|
153
|
-
width: string | number | {
|
|
154
|
-
readonly [$$ScaleValue]: "size";
|
|
155
|
-
};
|
|
131
|
+
p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
132
|
+
padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
156
133
|
};
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}) => {
|
|
160
|
-
padding: string | number | {
|
|
161
|
-
readonly [$$ScaleValue]: "space";
|
|
162
|
-
};
|
|
134
|
+
pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
135
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
163
136
|
};
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}) => {
|
|
167
|
-
paddingTop: string | number | {
|
|
168
|
-
readonly [$$ScaleValue]: "space";
|
|
169
|
-
};
|
|
137
|
+
pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
138
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
170
139
|
};
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}) => {
|
|
174
|
-
paddingRight: string | number | {
|
|
175
|
-
readonly [$$ScaleValue]: "space";
|
|
176
|
-
};
|
|
140
|
+
pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
141
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
177
142
|
};
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}) => {
|
|
181
|
-
paddingBottom: string | number | {
|
|
182
|
-
readonly [$$ScaleValue]: "space";
|
|
183
|
-
};
|
|
143
|
+
pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
144
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
184
145
|
};
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
paddingLeft: string | number | {
|
|
189
|
-
readonly [$$ScaleValue]: "space";
|
|
190
|
-
};
|
|
146
|
+
px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
147
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
148
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
191
149
|
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
paddingLeft: string | number | {
|
|
196
|
-
readonly [$$ScaleValue]: "space";
|
|
197
|
-
};
|
|
198
|
-
paddingRight: string | number | {
|
|
199
|
-
readonly [$$ScaleValue]: "space";
|
|
200
|
-
};
|
|
150
|
+
py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
151
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
152
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
201
153
|
};
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}) => {
|
|
205
|
-
paddingTop: string | number | {
|
|
206
|
-
readonly [$$ScaleValue]: "space";
|
|
207
|
-
};
|
|
208
|
-
paddingBottom: string | number | {
|
|
209
|
-
readonly [$$ScaleValue]: "space";
|
|
210
|
-
};
|
|
154
|
+
m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
155
|
+
margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
211
156
|
};
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}) => {
|
|
215
|
-
margin: string | number | {
|
|
216
|
-
readonly [$$ScaleValue]: "space";
|
|
217
|
-
};
|
|
157
|
+
mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
158
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
218
159
|
};
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}) => {
|
|
222
|
-
marginTop: string | number | {
|
|
223
|
-
readonly [$$ScaleValue]: "space";
|
|
224
|
-
};
|
|
160
|
+
mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
161
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
225
162
|
};
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
}) => {
|
|
229
|
-
marginRight: string | number | {
|
|
230
|
-
readonly [$$ScaleValue]: "space";
|
|
231
|
-
};
|
|
163
|
+
mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
164
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
232
165
|
};
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
}) => {
|
|
236
|
-
marginBottom: string | number | {
|
|
237
|
-
readonly [$$ScaleValue]: "space";
|
|
238
|
-
};
|
|
166
|
+
ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
167
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
239
168
|
};
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
marginLeft: string | number | {
|
|
244
|
-
readonly [$$ScaleValue]: "space";
|
|
245
|
-
};
|
|
169
|
+
mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
170
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
171
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
246
172
|
};
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
marginLeft: string | number | {
|
|
251
|
-
readonly [$$ScaleValue]: "space";
|
|
252
|
-
};
|
|
253
|
-
marginRight: string | number | {
|
|
254
|
-
readonly [$$ScaleValue]: "space";
|
|
255
|
-
};
|
|
256
|
-
};
|
|
257
|
-
my: (value: string | number | {
|
|
258
|
-
readonly [$$ScaleValue]: "space";
|
|
259
|
-
}) => {
|
|
260
|
-
marginTop: string | number | {
|
|
261
|
-
readonly [$$ScaleValue]: "space";
|
|
262
|
-
};
|
|
263
|
-
marginBottom: string | number | {
|
|
264
|
-
readonly [$$ScaleValue]: "space";
|
|
265
|
-
};
|
|
173
|
+
my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
174
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
175
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
266
176
|
};
|
|
267
177
|
}>>;
|
|
@@ -123,148 +123,58 @@ declare const StyledDialogContent: import("@stitches/react/types/styled-componen
|
|
|
123
123
|
"3": any;
|
|
124
124
|
};
|
|
125
125
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
126
|
-
bg: (value: {
|
|
127
|
-
|
|
128
|
-
}) => {
|
|
129
|
-
background: {
|
|
130
|
-
readonly [$$PropertyValue]: "background";
|
|
131
|
-
};
|
|
126
|
+
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
127
|
+
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
132
128
|
};
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
top: string | number | {
|
|
137
|
-
readonly [$$ScaleValue]: "space";
|
|
138
|
-
};
|
|
139
|
-
right: string | number | {
|
|
140
|
-
readonly [$$ScaleValue]: "space";
|
|
141
|
-
};
|
|
142
|
-
bottom: string | number | {
|
|
143
|
-
readonly [$$ScaleValue]: "space";
|
|
144
|
-
};
|
|
145
|
-
left: string | number | {
|
|
146
|
-
readonly [$$ScaleValue]: "space";
|
|
147
|
-
};
|
|
129
|
+
size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
|
|
130
|
+
height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
131
|
+
width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
148
132
|
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}) => {
|
|
152
|
-
height: string | number | {
|
|
153
|
-
readonly [$$ScaleValue]: "size";
|
|
154
|
-
};
|
|
155
|
-
width: string | number | {
|
|
156
|
-
readonly [$$ScaleValue]: "size";
|
|
157
|
-
};
|
|
133
|
+
p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
134
|
+
padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
158
135
|
};
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}) => {
|
|
162
|
-
padding: string | number | {
|
|
163
|
-
readonly [$$ScaleValue]: "space";
|
|
164
|
-
};
|
|
136
|
+
pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
137
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
165
138
|
};
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}) => {
|
|
169
|
-
paddingTop: string | number | {
|
|
170
|
-
readonly [$$ScaleValue]: "space";
|
|
171
|
-
};
|
|
139
|
+
pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
140
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
172
141
|
};
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}) => {
|
|
176
|
-
paddingRight: string | number | {
|
|
177
|
-
readonly [$$ScaleValue]: "space";
|
|
178
|
-
};
|
|
142
|
+
pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
143
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
179
144
|
};
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}) => {
|
|
183
|
-
paddingBottom: string | number | {
|
|
184
|
-
readonly [$$ScaleValue]: "space";
|
|
185
|
-
};
|
|
145
|
+
pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
146
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
186
147
|
};
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
paddingLeft: string | number | {
|
|
191
|
-
readonly [$$ScaleValue]: "space";
|
|
192
|
-
};
|
|
148
|
+
px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
149
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
150
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
193
151
|
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
paddingLeft: string | number | {
|
|
198
|
-
readonly [$$ScaleValue]: "space";
|
|
199
|
-
};
|
|
200
|
-
paddingRight: string | number | {
|
|
201
|
-
readonly [$$ScaleValue]: "space";
|
|
202
|
-
};
|
|
152
|
+
py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
153
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
154
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
203
155
|
};
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}) => {
|
|
207
|
-
paddingTop: string | number | {
|
|
208
|
-
readonly [$$ScaleValue]: "space";
|
|
209
|
-
};
|
|
210
|
-
paddingBottom: string | number | {
|
|
211
|
-
readonly [$$ScaleValue]: "space";
|
|
212
|
-
};
|
|
156
|
+
m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
157
|
+
margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
213
158
|
};
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}) => {
|
|
217
|
-
margin: string | number | {
|
|
218
|
-
readonly [$$ScaleValue]: "space";
|
|
219
|
-
};
|
|
159
|
+
mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
160
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
220
161
|
};
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}) => {
|
|
224
|
-
marginTop: string | number | {
|
|
225
|
-
readonly [$$ScaleValue]: "space";
|
|
226
|
-
};
|
|
162
|
+
mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
163
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
227
164
|
};
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}) => {
|
|
231
|
-
marginRight: string | number | {
|
|
232
|
-
readonly [$$ScaleValue]: "space";
|
|
233
|
-
};
|
|
165
|
+
mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
166
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
234
167
|
};
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}) => {
|
|
238
|
-
marginBottom: string | number | {
|
|
239
|
-
readonly [$$ScaleValue]: "space";
|
|
240
|
-
};
|
|
168
|
+
ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
169
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
241
170
|
};
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
marginLeft: string | number | {
|
|
246
|
-
readonly [$$ScaleValue]: "space";
|
|
247
|
-
};
|
|
171
|
+
mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
172
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
173
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
248
174
|
};
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
marginLeft: string | number | {
|
|
253
|
-
readonly [$$ScaleValue]: "space";
|
|
254
|
-
};
|
|
255
|
-
marginRight: string | number | {
|
|
256
|
-
readonly [$$ScaleValue]: "space";
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
my: (value: string | number | {
|
|
260
|
-
readonly [$$ScaleValue]: "space";
|
|
261
|
-
}) => {
|
|
262
|
-
marginTop: string | number | {
|
|
263
|
-
readonly [$$ScaleValue]: "space";
|
|
264
|
-
};
|
|
265
|
-
marginBottom: string | number | {
|
|
266
|
-
readonly [$$ScaleValue]: "space";
|
|
267
|
-
};
|
|
175
|
+
my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
176
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
177
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
268
178
|
};
|
|
269
179
|
}>>;
|
|
270
180
|
declare type DialogContentProps = React.ComponentProps<typeof StyledDialogContent> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Close as h}from"@atom-learning/icons";import{Overlay as x,Content as b,Portal as
|
|
1
|
+
import{Close as h}from"@atom-learning/icons";import{Overlay as x,Content as b,Portal as g,Close as w}from"@radix-ui/react-dialog";import*as o from"react";import{DIALOG_Z_INDEX as r}from"../../constants/zIndices.js";import{keyframes as n,styled as l}from"../../stitches.js";import{ActionIcon as v}from"../action-icon/ActionIcon.js";import{Icon as $}from"../icon/Icon.js";import{DialogBackground as s}from"./DialogBackground.js";import{fadeIn as z,fadeOut as C}from"../../utilities/style/keyframe-animations.js";const e="translate3d(-50%, -50%, 0)",m="translate3d(-50%, 50vh, 0)",d="modal_overlay",D=n({"0%":{transform:m},"100%":{transform:e}}),I=n({"0%":{transform:e},"100%":{transform:m}}),y=l(x,{backgroundColor:"$alpha600",top:0,right:0,bottom:0,left:0,position:"fixed",overflowY:"auto",zIndex:r,"@allowMotion":{'&[data-state="open"]':{animation:`${z} 250ms ease-out`},'&[data-state="closed"]':{animation:`${C} 550ms ease-out`}}}),E=l(b,{bg:"white",borderRadius:"$1",boxShadow:"$3",boxSizing:"border-box",left:"50%",maxWidth:"90vw",maxHeight:"90vh",overflowY:"auto",p:"$5",position:"fixed",top:"50%",transform:e,zIndex:r,"&:focus":{outline:"none"},"@allowMotion":{'&[data-state="open"]':{animation:`${D} 550ms cubic-bezier(0.22, 1, 0.36, 1)`},'&[data-state="closed"]':{animation:`${I} 550ms cubic-bezier(0.22, 1, 0.36, 1)`}},variants:{size:{xs:{width:"380px"},sm:{width:"480px"},md:{width:"600px"},lg:{width:"800px"},xl:{width:"1100px"}}}}),O=({size:p="sm",children:a,closeDialogText:f="Close dialog",showCloseButton:c=!0,...u})=>o.createElement(g,null,o.createElement(y,{id:d},o.Children.map(a,t=>(t==null?void 0:t.type)===s&&t),o.createElement(E,{size:p,"aria-label":"Dialog",onPointerDownOutside:t=>{const i=t.target;(i==null?void 0:i.id)!==d&&t.preventDefault()},...u},c&&o.createElement(v,{as:w,css:{position:"absolute",right:"$4",top:"$4"},label:f,size:"md",theme:"neutral"},o.createElement($,{is:h})),o.Children.map(a,t=>(t==null?void 0:t.type)!==s&&t))));export{O as DialogContent};
|
|
@@ -123,148 +123,58 @@ export declare const StyledDivider: import("@stitches/react/types/styled-compone
|
|
|
123
123
|
"3": any;
|
|
124
124
|
};
|
|
125
125
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
126
|
-
bg: (value: {
|
|
127
|
-
|
|
128
|
-
}) => {
|
|
129
|
-
background: {
|
|
130
|
-
readonly [$$PropertyValue]: "background";
|
|
131
|
-
};
|
|
126
|
+
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
127
|
+
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
132
128
|
};
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
top: string | number | {
|
|
137
|
-
readonly [$$ScaleValue]: "space";
|
|
138
|
-
};
|
|
139
|
-
right: string | number | {
|
|
140
|
-
readonly [$$ScaleValue]: "space";
|
|
141
|
-
};
|
|
142
|
-
bottom: string | number | {
|
|
143
|
-
readonly [$$ScaleValue]: "space";
|
|
144
|
-
};
|
|
145
|
-
left: string | number | {
|
|
146
|
-
readonly [$$ScaleValue]: "space";
|
|
147
|
-
};
|
|
129
|
+
size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
|
|
130
|
+
height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
131
|
+
width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
148
132
|
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}) => {
|
|
152
|
-
height: string | number | {
|
|
153
|
-
readonly [$$ScaleValue]: "size";
|
|
154
|
-
};
|
|
155
|
-
width: string | number | {
|
|
156
|
-
readonly [$$ScaleValue]: "size";
|
|
157
|
-
};
|
|
133
|
+
p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
134
|
+
padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
158
135
|
};
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}) => {
|
|
162
|
-
padding: string | number | {
|
|
163
|
-
readonly [$$ScaleValue]: "space";
|
|
164
|
-
};
|
|
136
|
+
pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
137
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
165
138
|
};
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}) => {
|
|
169
|
-
paddingTop: string | number | {
|
|
170
|
-
readonly [$$ScaleValue]: "space";
|
|
171
|
-
};
|
|
139
|
+
pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
140
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
172
141
|
};
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}) => {
|
|
176
|
-
paddingRight: string | number | {
|
|
177
|
-
readonly [$$ScaleValue]: "space";
|
|
178
|
-
};
|
|
142
|
+
pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
143
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
179
144
|
};
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}) => {
|
|
183
|
-
paddingBottom: string | number | {
|
|
184
|
-
readonly [$$ScaleValue]: "space";
|
|
185
|
-
};
|
|
145
|
+
pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
146
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
186
147
|
};
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
paddingLeft: string | number | {
|
|
191
|
-
readonly [$$ScaleValue]: "space";
|
|
192
|
-
};
|
|
148
|
+
px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
149
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
150
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
193
151
|
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
paddingLeft: string | number | {
|
|
198
|
-
readonly [$$ScaleValue]: "space";
|
|
199
|
-
};
|
|
200
|
-
paddingRight: string | number | {
|
|
201
|
-
readonly [$$ScaleValue]: "space";
|
|
202
|
-
};
|
|
152
|
+
py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
153
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
154
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
203
155
|
};
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}) => {
|
|
207
|
-
paddingTop: string | number | {
|
|
208
|
-
readonly [$$ScaleValue]: "space";
|
|
209
|
-
};
|
|
210
|
-
paddingBottom: string | number | {
|
|
211
|
-
readonly [$$ScaleValue]: "space";
|
|
212
|
-
};
|
|
156
|
+
m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
157
|
+
margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
213
158
|
};
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}) => {
|
|
217
|
-
margin: string | number | {
|
|
218
|
-
readonly [$$ScaleValue]: "space";
|
|
219
|
-
};
|
|
159
|
+
mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
160
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
220
161
|
};
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}) => {
|
|
224
|
-
marginTop: string | number | {
|
|
225
|
-
readonly [$$ScaleValue]: "space";
|
|
226
|
-
};
|
|
162
|
+
mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
163
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
227
164
|
};
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}) => {
|
|
231
|
-
marginRight: string | number | {
|
|
232
|
-
readonly [$$ScaleValue]: "space";
|
|
233
|
-
};
|
|
165
|
+
mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
166
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
234
167
|
};
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}) => {
|
|
238
|
-
marginBottom: string | number | {
|
|
239
|
-
readonly [$$ScaleValue]: "space";
|
|
240
|
-
};
|
|
168
|
+
ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
169
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
241
170
|
};
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
marginLeft: string | number | {
|
|
246
|
-
readonly [$$ScaleValue]: "space";
|
|
247
|
-
};
|
|
171
|
+
mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
172
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
173
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
248
174
|
};
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
marginLeft: string | number | {
|
|
253
|
-
readonly [$$ScaleValue]: "space";
|
|
254
|
-
};
|
|
255
|
-
marginRight: string | number | {
|
|
256
|
-
readonly [$$ScaleValue]: "space";
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
my: (value: string | number | {
|
|
260
|
-
readonly [$$ScaleValue]: "space";
|
|
261
|
-
}) => {
|
|
262
|
-
marginTop: string | number | {
|
|
263
|
-
readonly [$$ScaleValue]: "space";
|
|
264
|
-
};
|
|
265
|
-
marginBottom: string | number | {
|
|
266
|
-
readonly [$$ScaleValue]: "space";
|
|
267
|
-
};
|
|
175
|
+
my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
176
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
177
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
268
178
|
};
|
|
269
179
|
}>>;
|
|
270
180
|
export declare const Divider: React.ForwardRefExoticComponent<React.ComponentProps<typeof StyledDivider>>;
|