@atom-learning/components 2.29.0-beta.3 → 2.29.0-beta.5
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/AccordionContent.js +1 -1
- package/dist/components/accordion/AccordionItem.js +1 -1
- package/dist/components/action-icon/ActionIcon.d.ts +44 -44
- package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
- package/dist/components/avatar/Avatar.js +1 -1
- package/dist/components/button/Button.d.ts +44 -45
- package/dist/components/button/Button.js +1 -1
- package/dist/components/calendar/Calendar.js +1 -1
- package/dist/components/carousel/CarouselArrows.js +1 -1
- package/dist/components/carousel/CarouselSlide.js +1 -1
- package/dist/components/checkbox-field/CheckboxField.js +1 -1
- package/dist/components/chip/Chip.js +1 -1
- package/dist/components/chip/ChipGroup.js +1 -1
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupRoot.js +1 -1
- package/dist/components/data-table/DataTable.js +1 -1
- package/dist/components/data-table/DataTableBody.js +1 -1
- package/dist/components/data-table/DataTableDataCell.js +1 -1
- package/dist/components/data-table/DataTableRow.js +1 -1
- package/dist/components/data-table/drag-and-drop/DraggableRow.js +1 -1
- package/dist/components/data-table/drag-and-drop/Handle.js +1 -1
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/dismissible/DismissibleRoot.js +1 -1
- package/dist/components/dismissible/DismissibleTrigger.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +1 -1
- package/dist/components/field-wrapper/FieldDescription.js +1 -1
- package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
- package/dist/components/file-input/FileInput.js +1 -1
- package/dist/components/grid/Grid.js +1 -1
- package/dist/components/icon/Icon.js +1 -1
- package/dist/components/inline-message/InlineMessage.js +1 -1
- package/dist/components/label/Label.js +1 -1
- package/dist/components/link/Link.js +1 -1
- package/dist/components/list/List.js +1 -1
- package/dist/components/markdown-content/components/MarkdownEmphasis.js +1 -1
- package/dist/components/markdown-content/components/MarkdownHeading.js +1 -1
- package/dist/components/markdown-content/components/MarkdownImage.js +1 -1
- package/dist/components/markdown-content/components/MarkdownInlineCode.js +1 -1
- package/dist/components/markdown-content/components/MarkdownLink.js +1 -1
- package/dist/components/markdown-content/components/MarkdownListItem.js +1 -1
- package/dist/components/markdown-content/components/MarkdownParagraph.js +1 -1
- package/dist/components/markdown-content/components/MarkdownStrong.js +1 -1
- package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -1
- package/dist/components/navigation/NavigationMenuDropdownContent.js +1 -1
- package/dist/components/navigation/NavigationMenuLink.js +1 -1
- package/dist/components/notification-badge/NotificationBadge.js +1 -1
- package/dist/components/number-input/NumberInput.js +1 -1
- package/dist/components/number-input/NumberInputStepper.js +1 -1
- package/dist/components/number-input-field/NumberInputField.js +1 -1
- package/dist/components/popover/PopoverContent.js +1 -1
- package/dist/components/radio-button/RadioButton.js +1 -1
- package/dist/components/radio-button-field/RadioButtonField.js +1 -1
- package/dist/components/radio-button-field/RadioField.js +1 -1
- package/dist/components/radio-card/RadioCardGroup.d.ts +2 -2
- package/dist/components/radio-card/RadioCardGroup.js +1 -1
- package/dist/components/search-input/SearchInput.js +1 -1
- package/dist/components/select-field/SelectField.js +1 -1
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.js +1 -1
- package/dist/components/sidedrawer/SidedrawerContent.js +1 -1
- package/dist/components/slider-field/SliderField.js +1 -1
- package/dist/components/stack-content/StackContent.js +1 -1
- package/dist/components/stepper/StepperStepBack.js +1 -1
- package/dist/components/table/TableHeader.js +1 -1
- package/dist/components/table/TableRow.js +1 -1
- package/dist/components/tabs/Tabs.js +1 -1
- package/dist/components/tabs/utils.js +1 -1
- package/dist/components/toast/Toast.js +1 -1
- package/dist/components/toast/ToastProvider.js +1 -1
- package/dist/components/toggle-group/ToggleGroupButton.js +1 -1
- package/dist/components/tooltip/TooltipContent.js +1 -1
- package/dist/components/video/Video.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/utilities/hooks/useCallbackRef.js +1 -1
- package/package.json +3 -2
- package/dist/docgen.json +0 -1
- package/dist/docs/Accordion.mdx +0 -45
- package/dist/docs/ActionIcon.mdx +0 -87
- package/dist/docs/AlertDialog.mdx +0 -40
- package/dist/docs/Avatar.mdx +0 -129
- package/dist/docs/Badge.mdx +0 -55
- package/dist/docs/Box.mdx +0 -52
- package/dist/docs/Button.mdx +0 -76
- package/dist/docs/CONTRIBUTING.md +0 -224
- package/dist/docs/CSSWrapper.mdx +0 -10
- package/dist/docs/Carousel.mdx +0 -88
- package/dist/docs/Checkbox.mdx +0 -19
- package/dist/docs/CheckboxField.mdx +0 -14
- package/dist/docs/Chip.mdx +0 -118
- package/dist/docs/ChipDismissibleGroup.mdx +0 -33
- package/dist/docs/ChipToggleGroup.mdx +0 -27
- package/dist/docs/Combobox.mdx +0 -44
- package/dist/docs/DataTable.mdx +0 -279
- package/dist/docs/DateField.mdx +0 -20
- package/dist/docs/DateInput.mdx +0 -87
- package/dist/docs/Dialog.mdx +0 -68
- package/dist/docs/Dismissible.mdx +0 -48
- package/dist/docs/DismissibleGroup.mdx +0 -29
- package/dist/docs/Divider.mdx +0 -16
- package/dist/docs/DropdownMenu.mdx +0 -30
- package/dist/docs/EmptyState.mdx +0 -23
- package/dist/docs/FieldWrapper.mdx +0 -30
- package/dist/docs/FileInput.mdx +0 -45
- package/dist/docs/Flex.mdx +0 -16
- package/dist/docs/Form.mdx +0 -411
- package/dist/docs/Grid.mdx +0 -28
- package/dist/docs/Heading.mdx +0 -30
- package/dist/docs/Icon.mdx +0 -30
- package/dist/docs/Image.mdx +0 -14
- package/dist/docs/InlineMessage.mdx +0 -52
- package/dist/docs/Input.mdx +0 -24
- package/dist/docs/InputField.mdx +0 -26
- package/dist/docs/Label.mdx +0 -32
- package/dist/docs/Link.mdx +0 -53
- package/dist/docs/List.mdx +0 -38
- package/dist/docs/Loader.mdx +0 -16
- package/dist/docs/MarkdownContent.mdx +0 -77
- package/dist/docs/NavigationMenu.mdx +0 -144
- package/dist/docs/NotificationBadge.mdx +0 -35
- package/dist/docs/NumberInput.mdx +0 -37
- package/dist/docs/NumberInputField.mdx +0 -26
- package/dist/docs/PasswordField.mdx +0 -23
- package/dist/docs/PasswordInput.mdx +0 -15
- package/dist/docs/Popover.mdx +0 -29
- package/dist/docs/ProgressBar.mdx +0 -56
- package/dist/docs/RadioButton.mdx +0 -10
- package/dist/docs/RadioButtonField.mdx +0 -25
- package/dist/docs/RadioCard.mdx +0 -62
- package/dist/docs/SearchField.mdx +0 -26
- package/dist/docs/SearchInput.mdx +0 -13
- package/dist/docs/Select.mdx +0 -56
- package/dist/docs/SelectField.mdx +0 -17
- package/dist/docs/Sidedrawer.mdx +0 -155
- package/dist/docs/Slider.mdx +0 -117
- package/dist/docs/SliderField.mdx +0 -35
- package/dist/docs/Stack.mdx +0 -24
- package/dist/docs/StackContent.mdx +0 -32
- package/dist/docs/Stepper.mdx +0 -154
- package/dist/docs/Styling.mdx +0 -85
- package/dist/docs/Switch.mdx +0 -28
- package/dist/docs/Table.mdx +0 -146
- package/dist/docs/Tabs.mdx +0 -102
- package/dist/docs/Text.mdx +0 -24
- package/dist/docs/Textarea.mdx +0 -12
- package/dist/docs/TextareaField.mdx +0 -21
- package/dist/docs/Toast.mdx +0 -20
- package/dist/docs/ToggleGroup.mdx +0 -88
- package/dist/docs/Tooltip.mdx +0 -25
- package/dist/docs/TopBar.mdx +0 -95
- package/dist/docs/Video.mdx +0 -12
- package/dist/docs/accessibility.mdx +0 -67
- package/dist/docs/coreconcepts.mdx +0 -77
- package/dist/docs/introduction.mdx +0 -33
- package/dist/docs/versioning.mdx +0 -40
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Content as i}from"@radix-ui/react-accordion";import t from"react";import{keyframes as
|
|
1
|
+
import{Content as i}from"@radix-ui/react-accordion";import t from"react";import{keyframes as o,styled as n}from"../../stitches.js";import{CSSWrapper as c}from"../../utilities/css-wrapper/CSSWrapper.js";const d=o({from:{height:0},to:{height:"var(--radix-accordion-content-height)"}}),m=o({from:{height:"var(--radix-accordion-content-height)"},to:{height:0}}),s=n(i,{border:0,width:"100%",bg:"#fff",'&[data-state="open"]':{borderRadius:"0 0 $0 $0"},"@allowMotion":{'&[data-state="open"]':{animation:`${d} 300ms ease-out`},'&[data-state="closed"]':{animation:`${m} 300ms ease-out`}}}),h=({children:e,css:a,...r})=>t.createElement(s,{...r},t.createElement(c,{css:a},e));export{h as AccordionContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Item as r}from"@radix-ui/react-accordion";import m from"react";import{styled as d}from"../../stitches.js";const l=d(r,{width:"100%",overflow:"hidden","&:not(:last-child)":{mb:"$1"}}),i=({children:
|
|
1
|
+
import{Item as r}from"@radix-ui/react-accordion";import m from"react";import{styled as d}from"../../stitches.js";const l=d(r,{width:"100%",overflow:"hidden","&:not(:last-child)":{mb:"$1"}}),i=({children:o,value:t,...e})=>m.createElement(l,{value:t,...e},o);export{i as AccordionItem};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { VariantProps } from '@stitches/react';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { NavigatorActions } from '../../types';
|
|
4
4
|
import { Override } from '../../utilities';
|
|
@@ -130,150 +130,150 @@ declare const StyledButton: import("@stitches/react/types/styled-component").Sty
|
|
|
130
130
|
};
|
|
131
131
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
132
132
|
bg: (value: {
|
|
133
|
-
readonly [
|
|
133
|
+
readonly [$$PropertyValue]: "background";
|
|
134
134
|
}) => {
|
|
135
135
|
background: {
|
|
136
|
-
readonly [
|
|
136
|
+
readonly [$$PropertyValue]: "background";
|
|
137
137
|
};
|
|
138
138
|
};
|
|
139
139
|
inset: (value: string | number | {
|
|
140
|
-
readonly [
|
|
140
|
+
readonly [$$ScaleValue]: "space";
|
|
141
141
|
}) => {
|
|
142
142
|
top: string | number | {
|
|
143
|
-
readonly [
|
|
143
|
+
readonly [$$ScaleValue]: "space";
|
|
144
144
|
};
|
|
145
145
|
right: string | number | {
|
|
146
|
-
readonly [
|
|
146
|
+
readonly [$$ScaleValue]: "space";
|
|
147
147
|
};
|
|
148
148
|
bottom: string | number | {
|
|
149
|
-
readonly [
|
|
149
|
+
readonly [$$ScaleValue]: "space";
|
|
150
150
|
};
|
|
151
151
|
left: string | number | {
|
|
152
|
-
readonly [
|
|
152
|
+
readonly [$$ScaleValue]: "space";
|
|
153
153
|
};
|
|
154
154
|
};
|
|
155
155
|
size: (value: string | number | {
|
|
156
|
-
readonly [
|
|
156
|
+
readonly [$$ScaleValue]: "size";
|
|
157
157
|
}) => {
|
|
158
158
|
height: string | number | {
|
|
159
|
-
readonly [
|
|
159
|
+
readonly [$$ScaleValue]: "size";
|
|
160
160
|
};
|
|
161
161
|
width: string | number | {
|
|
162
|
-
readonly [
|
|
162
|
+
readonly [$$ScaleValue]: "size";
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
165
|
p: (value: string | number | {
|
|
166
|
-
readonly [
|
|
166
|
+
readonly [$$ScaleValue]: "space";
|
|
167
167
|
}) => {
|
|
168
168
|
padding: string | number | {
|
|
169
|
-
readonly [
|
|
169
|
+
readonly [$$ScaleValue]: "space";
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
172
|
pt: (value: string | number | {
|
|
173
|
-
readonly [
|
|
173
|
+
readonly [$$ScaleValue]: "space";
|
|
174
174
|
}) => {
|
|
175
175
|
paddingTop: string | number | {
|
|
176
|
-
readonly [
|
|
176
|
+
readonly [$$ScaleValue]: "space";
|
|
177
177
|
};
|
|
178
178
|
};
|
|
179
179
|
pr: (value: string | number | {
|
|
180
|
-
readonly [
|
|
180
|
+
readonly [$$ScaleValue]: "space";
|
|
181
181
|
}) => {
|
|
182
182
|
paddingRight: string | number | {
|
|
183
|
-
readonly [
|
|
183
|
+
readonly [$$ScaleValue]: "space";
|
|
184
184
|
};
|
|
185
185
|
};
|
|
186
186
|
pb: (value: string | number | {
|
|
187
|
-
readonly [
|
|
187
|
+
readonly [$$ScaleValue]: "space";
|
|
188
188
|
}) => {
|
|
189
189
|
paddingBottom: string | number | {
|
|
190
|
-
readonly [
|
|
190
|
+
readonly [$$ScaleValue]: "space";
|
|
191
191
|
};
|
|
192
192
|
};
|
|
193
193
|
pl: (value: string | number | {
|
|
194
|
-
readonly [
|
|
194
|
+
readonly [$$ScaleValue]: "space";
|
|
195
195
|
}) => {
|
|
196
196
|
paddingLeft: string | number | {
|
|
197
|
-
readonly [
|
|
197
|
+
readonly [$$ScaleValue]: "space";
|
|
198
198
|
};
|
|
199
199
|
};
|
|
200
200
|
px: (value: string | number | {
|
|
201
|
-
readonly [
|
|
201
|
+
readonly [$$ScaleValue]: "space";
|
|
202
202
|
}) => {
|
|
203
203
|
paddingLeft: string | number | {
|
|
204
|
-
readonly [
|
|
204
|
+
readonly [$$ScaleValue]: "space";
|
|
205
205
|
};
|
|
206
206
|
paddingRight: string | number | {
|
|
207
|
-
readonly [
|
|
207
|
+
readonly [$$ScaleValue]: "space";
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
210
|
py: (value: string | number | {
|
|
211
|
-
readonly [
|
|
211
|
+
readonly [$$ScaleValue]: "space";
|
|
212
212
|
}) => {
|
|
213
213
|
paddingTop: string | number | {
|
|
214
|
-
readonly [
|
|
214
|
+
readonly [$$ScaleValue]: "space";
|
|
215
215
|
};
|
|
216
216
|
paddingBottom: string | number | {
|
|
217
|
-
readonly [
|
|
217
|
+
readonly [$$ScaleValue]: "space";
|
|
218
218
|
};
|
|
219
219
|
};
|
|
220
220
|
m: (value: string | number | {
|
|
221
|
-
readonly [
|
|
221
|
+
readonly [$$ScaleValue]: "space";
|
|
222
222
|
}) => {
|
|
223
223
|
margin: string | number | {
|
|
224
|
-
readonly [
|
|
224
|
+
readonly [$$ScaleValue]: "space";
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
227
|
mt: (value: string | number | {
|
|
228
|
-
readonly [
|
|
228
|
+
readonly [$$ScaleValue]: "space";
|
|
229
229
|
}) => {
|
|
230
230
|
marginTop: string | number | {
|
|
231
|
-
readonly [
|
|
231
|
+
readonly [$$ScaleValue]: "space";
|
|
232
232
|
};
|
|
233
233
|
};
|
|
234
234
|
mr: (value: string | number | {
|
|
235
|
-
readonly [
|
|
235
|
+
readonly [$$ScaleValue]: "space";
|
|
236
236
|
}) => {
|
|
237
237
|
marginRight: string | number | {
|
|
238
|
-
readonly [
|
|
238
|
+
readonly [$$ScaleValue]: "space";
|
|
239
239
|
};
|
|
240
240
|
};
|
|
241
241
|
mb: (value: string | number | {
|
|
242
|
-
readonly [
|
|
242
|
+
readonly [$$ScaleValue]: "space";
|
|
243
243
|
}) => {
|
|
244
244
|
marginBottom: string | number | {
|
|
245
|
-
readonly [
|
|
245
|
+
readonly [$$ScaleValue]: "space";
|
|
246
246
|
};
|
|
247
247
|
};
|
|
248
248
|
ml: (value: string | number | {
|
|
249
|
-
readonly [
|
|
249
|
+
readonly [$$ScaleValue]: "space";
|
|
250
250
|
}) => {
|
|
251
251
|
marginLeft: string | number | {
|
|
252
|
-
readonly [
|
|
252
|
+
readonly [$$ScaleValue]: "space";
|
|
253
253
|
};
|
|
254
254
|
};
|
|
255
255
|
mx: (value: string | number | {
|
|
256
|
-
readonly [
|
|
256
|
+
readonly [$$ScaleValue]: "space";
|
|
257
257
|
}) => {
|
|
258
258
|
marginLeft: string | number | {
|
|
259
|
-
readonly [
|
|
259
|
+
readonly [$$ScaleValue]: "space";
|
|
260
260
|
};
|
|
261
261
|
marginRight: string | number | {
|
|
262
|
-
readonly [
|
|
262
|
+
readonly [$$ScaleValue]: "space";
|
|
263
263
|
};
|
|
264
264
|
};
|
|
265
265
|
my: (value: string | number | {
|
|
266
|
-
readonly [
|
|
266
|
+
readonly [$$ScaleValue]: "space";
|
|
267
267
|
}) => {
|
|
268
268
|
marginTop: string | number | {
|
|
269
|
-
readonly [
|
|
269
|
+
readonly [$$ScaleValue]: "space";
|
|
270
270
|
};
|
|
271
271
|
marginBottom: string | number | {
|
|
272
|
-
readonly [
|
|
272
|
+
readonly [$$ScaleValue]: "space";
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
275
|
}>>;
|
|
276
|
-
declare type ActionIconProps = Override<React.ComponentProps<typeof StyledButton>,
|
|
276
|
+
declare type ActionIconProps = Override<React.ComponentProps<typeof StyledButton>, VariantProps<typeof StyledButton> & {
|
|
277
277
|
as?: string | React.ReactNode;
|
|
278
278
|
children: React.ReactNode;
|
|
279
279
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Overlay as m,Content as d,Portal as l}from"@radix-ui/react-alert-dialog";import*as t from"react";import{DIALOG_Z_INDEX as e}from"../../constants/zIndices.js";import{keyframes as a,styled as n}from"../../stitches.js";import{fadeIn as f,fadeOut as p}from"../../utilities/style/keyframe-animations.js";const o="translate3d(-50%, -50%, 0)",i="translate3d(-50%, 50vh, 0)",c=a({"0%":{transform:i},"100%":{transform:o}}),x=a({"0%":{transform:o},"100%":{transform:i}}),b=n(m,{backgroundColor:"$alpha600",inset:0,position:"fixed",zIndex:e,"@allowMotion":{'&[data-state="open"]':{animation:`${f} 250ms ease-out`},'&[data-state="closed"]':{animation:`${p} 550ms ease-out`}}}),u=n(d,{bg:"white",borderRadius:"$1",boxShadow:"$3",boxSizing:"border-box",left:"50%",maxWidth:"90vw",p:"$5",position:"fixed",top:"50%",transform:o,"&:focus":{outline:"none"},zIndex:e,"@allowMotion":{'&[data-state="open"]':{animation:`${c} 550ms cubic-bezier(0.22, 1, 0.36, 1)`},'&[data-state="closed"]':{animation:`${x} 550ms cubic-bezier(0.22, 1, 0.36, 1)`}},variants:{size:{sm:{width:"380px"},md:{width:"480px"},lg:{width:"600px"}}}})
|
|
1
|
+
import{Overlay as m,Content as d,Portal as l}from"@radix-ui/react-alert-dialog";import*as t from"react";import{DIALOG_Z_INDEX as e}from"../../constants/zIndices.js";import{keyframes as a,styled as n}from"../../stitches.js";import{fadeIn as f,fadeOut as p}from"../../utilities/style/keyframe-animations.js";const o="translate3d(-50%, -50%, 0)",i="translate3d(-50%, 50vh, 0)",c=a({"0%":{transform:i},"100%":{transform:o}}),x=a({"0%":{transform:o},"100%":{transform:i}}),b=n(m,{backgroundColor:"$alpha600",inset:0,position:"fixed",zIndex:e,"@allowMotion":{'&[data-state="open"]':{animation:`${f} 250ms ease-out`},'&[data-state="closed"]':{animation:`${p} 550ms ease-out`}}}),u=n(d,{bg:"white",borderRadius:"$1",boxShadow:"$3",boxSizing:"border-box",left:"50%",maxWidth:"90vw",p:"$5",position:"fixed",top:"50%",transform:o,"&:focus":{outline:"none"},zIndex:e,"@allowMotion":{'&[data-state="open"]':{animation:`${c} 550ms cubic-bezier(0.22, 1, 0.36, 1)`},'&[data-state="closed"]':{animation:`${x} 550ms cubic-bezier(0.22, 1, 0.36, 1)`}},variants:{size:{sm:{width:"380px"},md:{width:"480px"},lg:{width:"600px"}}}}),$=({size:r="sm",...s})=>t.createElement(l,null,t.createElement(b,null),t.createElement(u,{size:r,...s}));export{$ as AlertDialogContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as o from"react";import{styled as n}from"../../stitches.js";import{AvatarPlaceholder as v}from"./AvatarPlaceholder.js";import{AvatarIcon as u}from"./AvatarIcon.js";import{AvatarInitial as b}from"./AvatarInitial.js";import{AvatarImage as p}from"./AvatarImage.js";import{focusVisibleStyleBlock as z}from"../../utilities/style/focus-visible-style-block.js";const s={display:"flex",justifyContent:"center",alignItems:"center",color:"$tonal400",borderRadius:"$round",border:"2px solid $tonal100",backgroundColor:"$white",overflow:"hidden",variants:{size:{xs:{size:"$2"},sm:{size:"$3"},md:{size:"$4"},lg:{size:"$5"},xl:{size:"$6"},xxl:{size:"$7"}}}}
|
|
1
|
+
import*as o from"react";import{styled as n}from"../../stitches.js";import{AvatarPlaceholder as v}from"./AvatarPlaceholder.js";import{AvatarIcon as u}from"./AvatarIcon.js";import{AvatarInitial as b}from"./AvatarInitial.js";import{AvatarImage as p}from"./AvatarImage.js";import{focusVisibleStyleBlock as z}from"../../utilities/style/focus-visible-style-block.js";const s={display:"flex",justifyContent:"center",alignItems:"center",color:"$tonal400",borderRadius:"$round",border:"2px solid $tonal100",backgroundColor:"$white",overflow:"hidden",variants:{size:{xs:{size:"$2"},sm:{size:"$3"},md:{size:"$4"},lg:{size:"$5"},xl:{size:"$6"},xxl:{size:"$7"}}}},f=n("div",s),$=n("button",{all:"unset",...s,"&:not([disabled])":{"&:hover":{borderColor:"$tonal400",backgroundColor:"$tonal50"},"&:active":{borderColor:"$primary",backgroundColor:"$tonal100"},"&:focus-visible":z()},"&[disabled]":{opacity:"30%",cursor:"not-allowed"}}),d=o.createContext({name:void 0,size:"lg"}),m=({children:a,name:e,size:i})=>{const t=o.useMemo(()=>({name:e,size:i}),[e,i]);return o.createElement(d.Provider,{value:t},a)},c=({children:a,size:e="lg",name:i,disabled:t=!1,onClick:l})=>o.createElement(m,{name:i,size:e},l?o.createElement($,{size:e,disabled:t,onClick:t?void 0:l,css:{cursor:t?"auto":"pointer"}},a):o.createElement(f,{size:e},a)),r=c;r.Image=p,r.Initial=b,r.Placeholder=v,r.Icon=u,r.displayName="Avatar";export{r as Avatar,c as AvatarRoot,d as AvatarRootContext,m as AvatarRootProvider};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { VariantProps } from '@stitches/react';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { NavigatorActions } from '../../types';
|
|
4
4
|
import { Override } from '../../utilities';
|
|
@@ -8,7 +8,6 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
8
8
|
size?: "sm" | "md" | "lg" | undefined;
|
|
9
9
|
isLoading?: boolean | "true" | undefined;
|
|
10
10
|
fullWidth?: boolean | "true" | "false" | undefined;
|
|
11
|
-
isRounded?: boolean | "true" | undefined;
|
|
12
11
|
}, {
|
|
13
12
|
sm: string;
|
|
14
13
|
md: string;
|
|
@@ -132,150 +131,150 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
132
131
|
};
|
|
133
132
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
134
133
|
bg: (value: {
|
|
135
|
-
readonly [
|
|
134
|
+
readonly [$$PropertyValue]: "background";
|
|
136
135
|
}) => {
|
|
137
136
|
background: {
|
|
138
|
-
readonly [
|
|
137
|
+
readonly [$$PropertyValue]: "background";
|
|
139
138
|
};
|
|
140
139
|
};
|
|
141
140
|
inset: (value: string | number | {
|
|
142
|
-
readonly [
|
|
141
|
+
readonly [$$ScaleValue]: "space";
|
|
143
142
|
}) => {
|
|
144
143
|
top: string | number | {
|
|
145
|
-
readonly [
|
|
144
|
+
readonly [$$ScaleValue]: "space";
|
|
146
145
|
};
|
|
147
146
|
right: string | number | {
|
|
148
|
-
readonly [
|
|
147
|
+
readonly [$$ScaleValue]: "space";
|
|
149
148
|
};
|
|
150
149
|
bottom: string | number | {
|
|
151
|
-
readonly [
|
|
150
|
+
readonly [$$ScaleValue]: "space";
|
|
152
151
|
};
|
|
153
152
|
left: string | number | {
|
|
154
|
-
readonly [
|
|
153
|
+
readonly [$$ScaleValue]: "space";
|
|
155
154
|
};
|
|
156
155
|
};
|
|
157
156
|
size: (value: string | number | {
|
|
158
|
-
readonly [
|
|
157
|
+
readonly [$$ScaleValue]: "size";
|
|
159
158
|
}) => {
|
|
160
159
|
height: string | number | {
|
|
161
|
-
readonly [
|
|
160
|
+
readonly [$$ScaleValue]: "size";
|
|
162
161
|
};
|
|
163
162
|
width: string | number | {
|
|
164
|
-
readonly [
|
|
163
|
+
readonly [$$ScaleValue]: "size";
|
|
165
164
|
};
|
|
166
165
|
};
|
|
167
166
|
p: (value: string | number | {
|
|
168
|
-
readonly [
|
|
167
|
+
readonly [$$ScaleValue]: "space";
|
|
169
168
|
}) => {
|
|
170
169
|
padding: string | number | {
|
|
171
|
-
readonly [
|
|
170
|
+
readonly [$$ScaleValue]: "space";
|
|
172
171
|
};
|
|
173
172
|
};
|
|
174
173
|
pt: (value: string | number | {
|
|
175
|
-
readonly [
|
|
174
|
+
readonly [$$ScaleValue]: "space";
|
|
176
175
|
}) => {
|
|
177
176
|
paddingTop: string | number | {
|
|
178
|
-
readonly [
|
|
177
|
+
readonly [$$ScaleValue]: "space";
|
|
179
178
|
};
|
|
180
179
|
};
|
|
181
180
|
pr: (value: string | number | {
|
|
182
|
-
readonly [
|
|
181
|
+
readonly [$$ScaleValue]: "space";
|
|
183
182
|
}) => {
|
|
184
183
|
paddingRight: string | number | {
|
|
185
|
-
readonly [
|
|
184
|
+
readonly [$$ScaleValue]: "space";
|
|
186
185
|
};
|
|
187
186
|
};
|
|
188
187
|
pb: (value: string | number | {
|
|
189
|
-
readonly [
|
|
188
|
+
readonly [$$ScaleValue]: "space";
|
|
190
189
|
}) => {
|
|
191
190
|
paddingBottom: string | number | {
|
|
192
|
-
readonly [
|
|
191
|
+
readonly [$$ScaleValue]: "space";
|
|
193
192
|
};
|
|
194
193
|
};
|
|
195
194
|
pl: (value: string | number | {
|
|
196
|
-
readonly [
|
|
195
|
+
readonly [$$ScaleValue]: "space";
|
|
197
196
|
}) => {
|
|
198
197
|
paddingLeft: string | number | {
|
|
199
|
-
readonly [
|
|
198
|
+
readonly [$$ScaleValue]: "space";
|
|
200
199
|
};
|
|
201
200
|
};
|
|
202
201
|
px: (value: string | number | {
|
|
203
|
-
readonly [
|
|
202
|
+
readonly [$$ScaleValue]: "space";
|
|
204
203
|
}) => {
|
|
205
204
|
paddingLeft: string | number | {
|
|
206
|
-
readonly [
|
|
205
|
+
readonly [$$ScaleValue]: "space";
|
|
207
206
|
};
|
|
208
207
|
paddingRight: string | number | {
|
|
209
|
-
readonly [
|
|
208
|
+
readonly [$$ScaleValue]: "space";
|
|
210
209
|
};
|
|
211
210
|
};
|
|
212
211
|
py: (value: string | number | {
|
|
213
|
-
readonly [
|
|
212
|
+
readonly [$$ScaleValue]: "space";
|
|
214
213
|
}) => {
|
|
215
214
|
paddingTop: string | number | {
|
|
216
|
-
readonly [
|
|
215
|
+
readonly [$$ScaleValue]: "space";
|
|
217
216
|
};
|
|
218
217
|
paddingBottom: string | number | {
|
|
219
|
-
readonly [
|
|
218
|
+
readonly [$$ScaleValue]: "space";
|
|
220
219
|
};
|
|
221
220
|
};
|
|
222
221
|
m: (value: string | number | {
|
|
223
|
-
readonly [
|
|
222
|
+
readonly [$$ScaleValue]: "space";
|
|
224
223
|
}) => {
|
|
225
224
|
margin: string | number | {
|
|
226
|
-
readonly [
|
|
225
|
+
readonly [$$ScaleValue]: "space";
|
|
227
226
|
};
|
|
228
227
|
};
|
|
229
228
|
mt: (value: string | number | {
|
|
230
|
-
readonly [
|
|
229
|
+
readonly [$$ScaleValue]: "space";
|
|
231
230
|
}) => {
|
|
232
231
|
marginTop: string | number | {
|
|
233
|
-
readonly [
|
|
232
|
+
readonly [$$ScaleValue]: "space";
|
|
234
233
|
};
|
|
235
234
|
};
|
|
236
235
|
mr: (value: string | number | {
|
|
237
|
-
readonly [
|
|
236
|
+
readonly [$$ScaleValue]: "space";
|
|
238
237
|
}) => {
|
|
239
238
|
marginRight: string | number | {
|
|
240
|
-
readonly [
|
|
239
|
+
readonly [$$ScaleValue]: "space";
|
|
241
240
|
};
|
|
242
241
|
};
|
|
243
242
|
mb: (value: string | number | {
|
|
244
|
-
readonly [
|
|
243
|
+
readonly [$$ScaleValue]: "space";
|
|
245
244
|
}) => {
|
|
246
245
|
marginBottom: string | number | {
|
|
247
|
-
readonly [
|
|
246
|
+
readonly [$$ScaleValue]: "space";
|
|
248
247
|
};
|
|
249
248
|
};
|
|
250
249
|
ml: (value: string | number | {
|
|
251
|
-
readonly [
|
|
250
|
+
readonly [$$ScaleValue]: "space";
|
|
252
251
|
}) => {
|
|
253
252
|
marginLeft: string | number | {
|
|
254
|
-
readonly [
|
|
253
|
+
readonly [$$ScaleValue]: "space";
|
|
255
254
|
};
|
|
256
255
|
};
|
|
257
256
|
mx: (value: string | number | {
|
|
258
|
-
readonly [
|
|
257
|
+
readonly [$$ScaleValue]: "space";
|
|
259
258
|
}) => {
|
|
260
259
|
marginLeft: string | number | {
|
|
261
|
-
readonly [
|
|
260
|
+
readonly [$$ScaleValue]: "space";
|
|
262
261
|
};
|
|
263
262
|
marginRight: string | number | {
|
|
264
|
-
readonly [
|
|
263
|
+
readonly [$$ScaleValue]: "space";
|
|
265
264
|
};
|
|
266
265
|
};
|
|
267
266
|
my: (value: string | number | {
|
|
268
|
-
readonly [
|
|
267
|
+
readonly [$$ScaleValue]: "space";
|
|
269
268
|
}) => {
|
|
270
269
|
marginTop: string | number | {
|
|
271
|
-
readonly [
|
|
270
|
+
readonly [$$ScaleValue]: "space";
|
|
272
271
|
};
|
|
273
272
|
marginBottom: string | number | {
|
|
274
|
-
readonly [
|
|
273
|
+
readonly [$$ScaleValue]: "space";
|
|
275
274
|
};
|
|
276
275
|
};
|
|
277
276
|
}>>;
|
|
278
|
-
declare type ButtonProps = Override<React.ComponentProps<typeof StyledButton>,
|
|
277
|
+
declare type ButtonProps = Override<React.ComponentProps<typeof StyledButton>, VariantProps<typeof StyledButton> & {
|
|
279
278
|
as?: React.ComponentType | React.ElementType;
|
|
280
279
|
children: React.ReactNode;
|
|
281
280
|
isLoading?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{darken as i,opacify as s}from"color2k";import*as o from"react";import{Box as b}from"../box/Box.js";import{Icon as w}from"../icon/Icon.js";import{Loader as k}from"../loader/Loader.js";import{styled as v,theme as l}from"../../stitches.js";const d=(e,r,a)=>({border:"1px solid",borderColor:"currentColor",color:e,"&[disabled]":{borderColor:"$tonal400",color:"$tonal400",cursor:"not-allowed"},"&:not([disabled]):hover, &:not([disabled]):focus":{textDecoration:"none",color:r},"&:not([disabled]):active":{color:a}}),n=(e,r,a,t="white")=>({bg:e,color:t,"&[disabled]":{bg:"$tonal100",color:"$tonal400",cursor:"not-allowed"},"&:not([disabled]):hover, &:not([disabled]):focus":{bg:r,color:t},"&:not([disabled]):active":{bg:a}}),p=v("button",{alignItems:"center",bg:"unset",border:"unset",borderRadius:"$0",cursor:"pointer",display:"flex",fontFamily:"$body",fontWeight:600,justifyContent:"center",p:"unset",textDecoration:"none",transition:"all 100ms ease-out",whiteSpace:"nowrap",width:"max-content",variants:{theme:{primary:{},secondary:{},success:{},warning:{},danger:{},neutral:{}},appearance:{solid:{},outline:{}},size:{sm:{fontSize:"$sm",lineHeight:1.53,height:"$3",px:"$4"},md:{fontSize:"$md",lineHeight:1.5,height:"$4",px:"$5"},lg:{fontSize:"$lg",lineHeight:1.5,height:"$5",px:"$5"}},isLoading:{true:{cursor:"not-allowed",opacity:.6,pointerEvents:"none"}},fullWidth:{false:{width:"max-content"},true:{width:"100%"}}
|
|
1
|
+
import{darken as i,opacify as s}from"color2k";import*as o from"react";import{Box as b}from"../box/Box.js";import{Icon as w}from"../icon/Icon.js";import{Loader as k}from"../loader/Loader.js";import{styled as v,theme as l}from"../../stitches.js";const d=(e,r,a)=>({border:"1px solid",borderColor:"currentColor",color:e,"&[disabled]":{borderColor:"$tonal400",color:"$tonal400",cursor:"not-allowed"},"&:not([disabled]):hover, &:not([disabled]):focus":{textDecoration:"none",color:r},"&:not([disabled]):active":{color:a}}),n=(e,r,a,t="white")=>({bg:e,color:t,"&[disabled]":{bg:"$tonal100",color:"$tonal400",cursor:"not-allowed"},"&:not([disabled]):hover, &:not([disabled]):focus":{bg:r,color:t},"&:not([disabled]):active":{bg:a}}),p=v("button",{alignItems:"center",bg:"unset",border:"unset",borderRadius:"$0",cursor:"pointer",display:"flex",fontFamily:"$body",fontWeight:600,justifyContent:"center",p:"unset",textDecoration:"none",transition:"all 100ms ease-out",whiteSpace:"nowrap",width:"max-content",variants:{theme:{primary:{},secondary:{},success:{},warning:{},danger:{},neutral:{}},appearance:{solid:{},outline:{}},size:{sm:{fontSize:"$sm",lineHeight:1.53,height:"$3",px:"$4"},md:{fontSize:"$md",lineHeight:1.5,height:"$4",px:"$5"},lg:{fontSize:"$lg",lineHeight:1.5,height:"$5",px:"$5"}},isLoading:{true:{cursor:"not-allowed",opacity:.6,pointerEvents:"none"}},fullWidth:{false:{width:"max-content"},true:{width:"100%"}}},compoundVariants:[{theme:"primary",appearance:"solid",css:n("$primary","$primaryMid","$primaryDark")},{theme:"secondary",appearance:"solid",css:n("$primaryDark",i(l.colors.primaryDark.value,.1),i(l.colors.primaryDark.value,.15))},{theme:"success",appearance:"solid",css:n("$success","$successMid","$successDark")},{theme:"warning",appearance:"solid",css:n("$warning","$warningMid","$warningDark","$tonal500")},{theme:"danger",appearance:"solid",css:n("$danger","$dangerMid","$dangerDark")},{theme:"neutral",appearance:"solid",css:n("white",s("white",-.1),s("white",-.25),"$primary")},{theme:"primary",appearance:"outline",css:d("$primary","$primaryMid","$primaryDark")},{theme:"neutral",appearance:"outline",css:d("white",s("white",-.2),s("white",-.35))},{theme:"secondary",appearance:"outline",css:d("$primaryDark",i(l.colors.primaryDark.value,.1),i(l.colors.primaryDark.value,.15))}]}),D=({isLoading:e,children:r})=>o.createElement(o.Fragment,null,o.createElement(k,{css:{opacity:e?1:0,position:"absolute",transition:"opacity 150ms"}}),o.createElement(b,{as:"span",css:e?{opacity:0,transition:"opacity 150ms"}:{}},r)),x=e=>{switch(e){case"lg":return 22;case"md":return 20;case"sm":default:return 16}},m=(e,r)=>o.Children.map(e,(a,t)=>(a==null?void 0:a.type)===w?o.cloneElement(a,{css:{[t===0?"mr":"ml"]:r==="sm"?"$2":"$3",size:x(r),...a.props.css?a.props.css:{}}}):a),u=o.forwardRef(({children:e,isLoading:r,onClick:a,href:t,appearance:h="solid",size:c="md",theme:y="primary",type:g="button",...$},f)=>o.createElement(p,{isLoading:r||!1,onClick:r?void 0:a,appearance:h,size:c,theme:y,...$,...t?{as:"a",href:t,onClick:void 0}:{},...t?{}:{type:g},ref:f},typeof r=="boolean"?o.createElement(D,{isLoading:r},m(e,c)):m(e,c)));u.displayName="Button";export{u as Button,p as StyledButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ChevronLeft as q,ChevronRight as H}from"@atom-learning/icons";import{useDayzed as J}from"dayzed";import*as e from"react";import{ActionIcon as x}from"../action-icon/ActionIcon.js";import{Box as
|
|
1
|
+
import{ChevronLeft as q,ChevronRight as H}from"@atom-learning/icons";import{useDayzed as J}from"dayzed";import*as e from"react";import{ActionIcon as x}from"../action-icon/ActionIcon.js";import{Box as h}from"../box/Box.js";import{Flex as C}from"../flex/Flex.js";import{Icon as Y}from"../icon/Icon.js";import{Text as K}from"../text/Text.js";import{Button as w}from"../button/Button.js";import{styled as F}from"../../stitches.js";import{monthNamesShort as Q,weekdayNamesShort as V,DEFAULT_LABELS as X}from"./constants.js";import{Day as Z}from"./Day.js";const g=F("div",{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gridGap:"$1 $2"}),ee=F(w,{color:"$tonal600",p:"$3",width:"$6",variants:{selected:{false:{color:"$tonal600 !important",fontWeight:"400","&:hover":{bg:"$tonal100 !important",color:"$tonal600 !important"},"&[disabled]":{bg:"white !important"}}}}}),te=(i,c)=>{const u=i.slice(0,c);return i.slice(c).concat(u)},S=({css:i,refDateSelected:c,refDateToday:u,firstDayOfWeek:f=0,monthNames:N=Q,weekdayNames:T=V,labels:y=X,date:n=new Date,minDate:l,maxDate:m,setYear:A,...L})=>{const[a,E]=e.useState(!1),[s,k]=e.useState(n==null?void 0:n.getFullYear()),O=t=>{const r=n;r.setFullYear(t),A(r),E(!1)},W=l&&s-16<=l.getFullYear(),z=m&&s>=m.getFullYear(),B=Array.from({length:16},(t,r)=>{const o=s-r;return m&&o>m.getFullYear()||l&&o<l.getFullYear()?0:o}),{calendars:d,getBackProps:I,getForwardProps:M,getDateProps:G}=J({firstDayOfWeek:f,showOutsideDays:!0,date:n,minDate:l,maxDate:m,...L});return d.length?e.createElement(h,{css:{position:"relative",width:"min-content",mt:"-$1",...i}},e.createElement(C,{css:{position:"absolute",top:0,right:"-$1"}},e.createElement(x,{label:y[a?"previousYear":"previous"],theme:"neutral",size:"md",...!a&&I({calendars:d}),...a&&{onClick:()=>k(s-16)},disabled:a&&W},e.createElement(Y,{is:q})),e.createElement(x,{label:y[a?"nextYear":"next"],theme:"neutral",size:"md",...!a&&M({calendars:d}),...a&&{onClick:()=>k(s+16)},disabled:a&&z},e.createElement(Y,{is:H}))),a&&e.createElement(g,{css:{gridTemplateColumns:"repeat(4, 1fr)",pt:"$7",direction:"rtl",gridGap:"$3 $1"}},B.map((t,r)=>{const o=t===n.getFullYear();return t?e.createElement(ee,{key:`${t}${r}`,theme:o?"primary":"neutral",onClick:()=>O(t),selected:o},t):e.createElement(h,{key:r,css:{width:"$6",height:"$4"}})})),!a&&d.map(({month:t,year:r,weeks:o})=>e.createElement(h,{key:`${t}${r}`},e.createElement(C,{css:{height:"$4",alignItems:"center",mb:"$4"}},e.createElement(w,{theme:"neutral",css:{px:"0",color:"$tonal600"},onClick:()=>E(!0)},N[t]," ",r)),e.createElement(g,{css:{mb:"$3"}},te(T,f).map(p=>e.createElement(K,{as:"span",size:"sm",key:`${t}${r}${p}`,css:{fontWeight:600,textAlign:"center"}},p))),e.createElement(g,null,o.map((p,P)=>p.map(($,j)=>{const D=`${t}${r}${P}${j}`;if(!$)return e.createElement("div",{key:D});const{date:R,selected:b,today:v,prevMonth:U,nextMonth:_}=$;return e.createElement(Z,{isOutsideMonth:U||_,isSelected:b,isToday:v,key:D,ref:b?c:v?u:null,...G({dateObj:$}),type:"button"},R.getDate())})))))):null};S.displayName="Calendar";export{S as Calendar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ChevronLeft as s,ChevronRight as i}from"@atom-learning/icons";import{ButtonBack as a,ButtonNext as l}from"pure-react-carousel";import*as r from"react";import{Icon as
|
|
1
|
+
import{ChevronLeft as s,ChevronRight as i}from"@atom-learning/icons";import{ButtonBack as a,ButtonNext as l}from"pure-react-carousel";import*as r from"react";import{Icon as o}from"../icon/Icon.js";import{styled as t}from"../../stitches.js";const n={alignItems:"center",bg:"unset",border:"unset",color:"$primary",cursor:"pointer",display:"flex",justifyContent:"center",p:"unset",size:"$5",top:"50%",transform:"translateY(-50%)",transition:"color 0.15s ease-in-out","&:hover":{color:"$primaryMid"},"&:active":{color:"$primaryDark"},"&:disabled":{color:"$tonal100"}},m=t(a,n),c=t(l,n),p=e=>r.createElement(m,{...e},r.createElement(o,{is:s})),u=e=>r.createElement(c,{...e},r.createElement(o,{is:i}));export{u as CarouselArrowNext,p as CarouselArrowPrevious};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Slide as
|
|
1
|
+
import{Slide as t}from"pure-react-carousel";import*as e from"react";import{Box as m}from"../box/Box.js";import{styled as i}from"../../stitches.js";const l=i(t,{}),s=({children:o,...r})=>e.createElement(l,{...r,tag:"div"},e.createElement(m,{css:{px:"$3"}},o));export{s as CarouselSlide};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as n from"react";import{useFormContext as p,Controller as C}from"react-hook-form";import{Checkbox as h}from"../checkbox/Checkbox.js";import"../field-wrapper/FieldWrapper.js";import{InlineFieldWrapper as F}from"../field-wrapper/InlineFieldWrapper.js";import"../form/Form.js";import{useFieldError as k}from"../form/useFieldError.js";var b=(e=>(e.ON="on",e.OFF="off",e))(b||{});const i=({css:e,defaultChecked:r=!1,label:m,name:t,validation:o,description:d,...c})=>{const{control:f}=p(),{error:a}=k(t);return n.createElement(C,{control:f,name:t,defaultValue:r,rules:o,render:({onChange:u,value:l,name:s})=>n.createElement(F,{css:e,description:d,error:a,label:m,required:Boolean(o==null?void 0:o.required)},n.createElement(h,{defaultChecked:r,defaultValue:r?"on":"off",checked:l,name:s,onCheckedChange:u,value:l?"on":"off",...a&&{state:"error"},...c}))})};i.displayName="CheckboxField";export{i as CheckboxField};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{Box as C}from"../box/Box.js";import{Flex as
|
|
1
|
+
import*as e from"react";import{Box as C}from"../box/Box.js";import{Flex as g}from"../flex/Flex.js";import{Icon as c}from"../icon/Icon.js";import{getTextVariant as a}from"../text/Text.js";import{styled as m}from"../../stitches.js";import{overrideStitchesVariantValue as z}from"../../utilities/override-stitches-variant-value/overrideStitchesVariantValue.js";const d={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},h=m("span",{display:"inline-flex",alignItems:"center",px:"$1",flexGrow:1,...d,"& > *:not(:last-child)":{mr:"$1"}}),$={sm:"sm",md:"sm",lg:"md"},f=m(c,{flexShrink:0}),l=({...r})=>{const i=e.useContext(p),{size:t}=i,n=e.useMemo(()=>z(t,o=>$[o]),[t]);return e.createElement(f,{...r,size:n})},u=({children:r,...i})=>{const t=e.Children.toArray(r),n=t.length<=1;return e.createElement(h,{...i},t.map(o=>!n&&typeof o=="string"?e.createElement(C,{as:"span",css:d,key:o},o):e.isValidElement(o)&&o.type===c?e.createElement(l,{...o.props}):o))},x=m(g,{px:"$2",border:"1px solid",borderRadius:"$0",alignItems:"center",fontFamily:"$body",maxWidth:"100%",borderColor:"$primary",color:"$primaryMid",bg:"$primaryLight","&[data-disabled]":{opacity:"0.3",pointerEvents:"none"},variants:{size:{sm:{height:"$2",...a({size:"sm"})},md:{height:"$3",...a({size:"sm"})},lg:{height:"$4",...a({size:"md"})}}}}),p=e.createContext({}),y=({size:r,children:i})=>{const t=e.useMemo(()=>({size:r}),[r]);return e.createElement(p.Provider,{value:t},i)},E=e.forwardRef(({asWorkaround:r,size:i="md",...t},n)=>e.createElement(y,{size:i},e.createElement(x,{ref:n,as:r,size:i,...t}))),s=E;s.Content=u,s.Icon=l,s.displayName="Chip";export{s as Chip,l as ChipIcon,p as ChipRootContext,y as ChipRootProvider,h as StyledChipContent,f as StyledChipIcon,x as StyledRoot};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as r from"react";import{Stack as a}from"../stack/Stack.js";const p=r.forwardRef(({gap:o=2,...
|
|
1
|
+
import*as r from"react";import{Stack as a}from"../stack/Stack.js";const p=r.forwardRef(({gap:o=2,...e},t)=>r.createElement(a,{ref:t,direction:"row",gap:o,align:!1,...e}));export{p as ChipGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as o from"react";import"../chip/Chip.js";import{ChipGroup as m}from"../chip/ChipGroup.js";import{DismissibleGroup as p}from"../dismissible-group/index.js";const
|
|
1
|
+
import*as o from"react";import"../chip/Chip.js";import{ChipGroup as m}from"../chip/ChipGroup.js";import{DismissibleGroup as p}from"../dismissible-group/index.js";const e=o.forwardRef((r,i)=>o.createElement(m,{as:p,ref:i,...r}));export{e as ChipDismissibleGroupRoot};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as r from"react";import{DataTableBody as t}from"./DataTableBody.js";import{DataTableProvider as e}from"./DataTableContext.js";import{DataTableDataCell as m}from"./DataTableDataCell.js";import{DataTableError as l}from"./DataTableError.js";import{DataTableGlobalFilter as i}from"./DataTableGlobalFilter.js";import{DataTableHead as p}from"./DataTableHead.js";import{DataTableHeaderCell as b}from"./DataTableHeaderCell.js";import{DataTableLoading as D}from"./DataTableLoading.js";import{DataTableRow as T}from"./DataTableRow.js";import{DataTableTable as f}from"./DataTableTable.js";import"./drag-and-drop/DragAndDropContainer.js";import"../table/Table.js";import"@dnd-kit/utilities";import"@dnd-kit/sortable";import"@tanstack/react-table";import"./drag-and-drop/Handle.js";import{DragAndDropTable as d}from"./drag-and-drop/DragAndDropTable.js";import{Pagination as n}from"./pagination/Pagination.js";const a=o=>r.createElement(e,{...o});a.Body=t,a.DataCell=m,a.DragAndDropTable=d,a.Head=p,a.HeaderCell=b,a.Pagination=n,a.Row=T,a.GlobalFilter=i,a.Table=f,a.Loading=D,a.Error=l;export{a as DataTable};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as o from"react";import{Table as m}from"../table/Table.js";import{useDataTable as p}from"./DataTableContext.js";import{DataTable as i}from"./DataTable.js";const l=({striped:r=!1,...t})=>{const{getRowModel:a}=p();return o.createElement(m.Body,{...t,striped:r},a().rows.map(e=>o.createElement(i.Row,{row:e,key:e.id})))};export{l as DataTableBody};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as l from"react";import{Table as
|
|
1
|
+
import*as l from"react";import{Table as o}from"../table/Table.js";import{flexRender as t}from"@tanstack/react-table";const m=({cell:e})=>l.createElement(o.Cell,{key:e.id},t(e.column.columnDef.cell,e.getContext()));export{m as DataTableDataCell};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as l from"react";import{Table as
|
|
1
|
+
import*as l from"react";import{Table as t}from"../table/Table.js";import{DataTableDataCell as o}from"./DataTableDataCell.js";const r=({row:a})=>l.createElement(t.Row,null,a.getVisibleCells().map((e,m)=>l.createElement(o,{key:e.id,cell:e})));export{r as DataTableRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{Table as l}from"../../table/Table.js";import{DataTableDataCell as f}from"../DataTableDataCell.js";import{useDragAndDropTable as d}from"./DragAndDropContainer.js";import{CSS as g}from"@dnd-kit/utilities";import{useSortable as c}from"@dnd-kit/sortable";import{flexRender as b}from"@tanstack/react-table";import{Handle as D}from"./Handle.js";import"../DataTable.js";import"../DataTable.types.js";import"../DataTableContext.js";import"../DataTableLoading.js";const u=({row:
|
|
1
|
+
import*as e from"react";import{Table as l}from"../../table/Table.js";import{DataTableDataCell as f}from"../DataTableDataCell.js";import{useDragAndDropTable as d}from"./DragAndDropContainer.js";import{CSS as g}from"@dnd-kit/utilities";import{useSortable as c}from"@dnd-kit/sortable";import{flexRender as b}from"@tanstack/react-table";import{Handle as D}from"./Handle.js";import"../DataTable.js";import"../DataTable.types.js";import"../DataTableContext.js";import"../DataTableLoading.js";const u=({row:o})=>{const{idColumn:i}=d(),{attributes:m,listeners:a,transform:n,setNodeRef:s,isDragging:t}=c({id:o.original[i]});return e.createElement(l.Row,{ref:s,css:{transform:g.Transform.toString(n),zIndex:t?5:void 0}},o.getVisibleCells().map((r,p)=>p===0?e.createElement(l.Cell,{key:r.id},e.createElement(D,{...m,...a,isDragging:t,css:{display:"inline-block"},label:"drag and drop"}),b(r.column.columnDef.cell,r.getContext())):e.createElement(f,{key:r.id,cell:r})))};export{u as DraggableRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ActionIcon as n}from"../../action-icon/ActionIcon.js";import{Icon as s}from"../../icon/Icon.js";import{styled as m}from"../../../stitches.js";import{DragHandle as g}from"@atom-learning/icons";import*as r from"react";const i=m(n,{color:"inherit !important",fill:"currentColor",variants:{isDragging:{true:{cursor:"grabbing"},false:{cursor:"grab"}}}}),l=r.forwardRef(({isDragging:o,size:e,...
|
|
1
|
+
import{ActionIcon as n}from"../../action-icon/ActionIcon.js";import{Icon as s}from"../../icon/Icon.js";import{styled as m}from"../../../stitches.js";import{DragHandle as g}from"@atom-learning/icons";import*as r from"react";const i=m(n,{color:"inherit !important",fill:"currentColor",variants:{isDragging:{true:{cursor:"grabbing"},false:{cursor:"grab"}}}}),l=r.forwardRef(({isDragging:o,size:e,...a},t)=>r.createElement(i,{ref:t,isDragging:o,appearance:"simple",size:e,...a},r.createElement(s,{is:g,size:e})));export{l as Handle,i as StyledHandle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Close as h}from"@atom-learning/icons";import{Overlay as x,Content as b,Portal as w,Close as g}from"@radix-ui/react-dialog";import*as
|
|
1
|
+
import{Close as h}from"@atom-learning/icons";import{Overlay as x,Content as b,Portal as w,Close as g}from"@radix-ui/react-dialog";import*as t 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",inset: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})=>t.createElement(w,null,t.createElement(y,{id:d},t.Children.map(a,o=>(o==null?void 0:o.type)===s&&o),t.createElement(E,{size:p,"aria-label":"Dialog",onPointerDownOutside:o=>{const i=o.target;(i==null?void 0:i.id)!==d&&o.preventDefault()},...u},c&&t.createElement(v,{as:g,css:{position:"absolute",right:"$4",top:"$4"},label:f,size:"md",theme:"neutral"},t.createElement($,{is:h})),t.Children.map(a,o=>(o==null?void 0:o.type)!==s&&o))));export{O as DialogContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{Slot as c}from"@radix-ui/react-slot";const r=e.createContext({isDismissed:!1,setIsDismissed:()=>null}),n=({children:
|
|
1
|
+
import*as e from"react";import{Slot as c}from"@radix-ui/react-slot";const r=e.createContext({isDismissed:!1,setIsDismissed:()=>null}),n=({children:i,disabled:s})=>{const[t,o]=e.useState(!1),l=e.useMemo(()=>({disabled:s,isDismissed:t,setIsDismissed:o}),[s,t]);return e.createElement(r.Provider,{value:l},i)},u=({asChild:i=!1,value:s,onDismiss:t,...o})=>{const l=e.useContext(r),{isDismissed:d,disabled:a}=l;if(e.useEffect(()=>{d&&(t==null||t(s))},[d]),d)return null;const m={...a&&{["data-disabled"]:""},...o};return e.createElement(i?c:"div",{...m})},b=({disabled:i=!1,...s})=>e.createElement(n,{disabled:i},e.createElement(u,{...s}));export{b as DismissibleRoot,r as DismissibleRootContext,n as DismissibleRootProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as e from"react";import{Slot as m}from"@radix-ui/react-slot";import{DismissibleRootContext as l}from"./DismissibleRoot.js";const b=s=>e.createElement("button",{type:"button",...s},"Dismiss"),a=({asChild:s=!1,...t})=>{const i=e.useContext(l);if(i===void 0)throw new Error("Dismissible.Trigger can only be used within a Dismissible.Item");const{setIsDismissed:o,disabled:r}=i,n={disabled:r,onClick:()=>{o(!0)},...t};return e.createElement(s?m:b,{...n})};export{a as DismissibleTrigger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{styled as n}from"../../stitches.js";import{DropdownMenuItem as m}from"./DropdownMenuItem.js";const i=n("a",{textDecoration:"none"}),l=({children:
|
|
1
|
+
import e from"react";import{styled as n}from"../../stitches.js";import{DropdownMenuItem as m}from"./DropdownMenuItem.js";const i=n("a",{textDecoration:"none"}),l=({children:o,href:t,...r})=>e.createElement(m,{...r,asChild:!0},e.createElement(i,{href:t,role:"menuitem"},o));export{l as DropdownMenuLinkItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{Text as r}from"../text/Text.js";const s=({children:
|
|
1
|
+
import*as e from"react";import{Text as r}from"../text/Text.js";const s=({children:o,css:t})=>e.createElement(r,{size:"sm",css:{color:"$tonal300",maxWidth:"80ch",...t}},o);export{s as Description};
|