@atom-learning/components 2.29.0-beta.3 → 2.29.0-beta.4
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 -44
- 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 +2 -1
|
@@ -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';
|
|
@@ -132,150 +132,150 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
132
132
|
};
|
|
133
133
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
134
134
|
bg: (value: {
|
|
135
|
-
readonly [
|
|
135
|
+
readonly [$$PropertyValue]: "background";
|
|
136
136
|
}) => {
|
|
137
137
|
background: {
|
|
138
|
-
readonly [
|
|
138
|
+
readonly [$$PropertyValue]: "background";
|
|
139
139
|
};
|
|
140
140
|
};
|
|
141
141
|
inset: (value: string | number | {
|
|
142
|
-
readonly [
|
|
142
|
+
readonly [$$ScaleValue]: "space";
|
|
143
143
|
}) => {
|
|
144
144
|
top: string | number | {
|
|
145
|
-
readonly [
|
|
145
|
+
readonly [$$ScaleValue]: "space";
|
|
146
146
|
};
|
|
147
147
|
right: string | number | {
|
|
148
|
-
readonly [
|
|
148
|
+
readonly [$$ScaleValue]: "space";
|
|
149
149
|
};
|
|
150
150
|
bottom: string | number | {
|
|
151
|
-
readonly [
|
|
151
|
+
readonly [$$ScaleValue]: "space";
|
|
152
152
|
};
|
|
153
153
|
left: string | number | {
|
|
154
|
-
readonly [
|
|
154
|
+
readonly [$$ScaleValue]: "space";
|
|
155
155
|
};
|
|
156
156
|
};
|
|
157
157
|
size: (value: string | number | {
|
|
158
|
-
readonly [
|
|
158
|
+
readonly [$$ScaleValue]: "size";
|
|
159
159
|
}) => {
|
|
160
160
|
height: string | number | {
|
|
161
|
-
readonly [
|
|
161
|
+
readonly [$$ScaleValue]: "size";
|
|
162
162
|
};
|
|
163
163
|
width: string | number | {
|
|
164
|
-
readonly [
|
|
164
|
+
readonly [$$ScaleValue]: "size";
|
|
165
165
|
};
|
|
166
166
|
};
|
|
167
167
|
p: (value: string | number | {
|
|
168
|
-
readonly [
|
|
168
|
+
readonly [$$ScaleValue]: "space";
|
|
169
169
|
}) => {
|
|
170
170
|
padding: string | number | {
|
|
171
|
-
readonly [
|
|
171
|
+
readonly [$$ScaleValue]: "space";
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
174
|
pt: (value: string | number | {
|
|
175
|
-
readonly [
|
|
175
|
+
readonly [$$ScaleValue]: "space";
|
|
176
176
|
}) => {
|
|
177
177
|
paddingTop: string | number | {
|
|
178
|
-
readonly [
|
|
178
|
+
readonly [$$ScaleValue]: "space";
|
|
179
179
|
};
|
|
180
180
|
};
|
|
181
181
|
pr: (value: string | number | {
|
|
182
|
-
readonly [
|
|
182
|
+
readonly [$$ScaleValue]: "space";
|
|
183
183
|
}) => {
|
|
184
184
|
paddingRight: string | number | {
|
|
185
|
-
readonly [
|
|
185
|
+
readonly [$$ScaleValue]: "space";
|
|
186
186
|
};
|
|
187
187
|
};
|
|
188
188
|
pb: (value: string | number | {
|
|
189
|
-
readonly [
|
|
189
|
+
readonly [$$ScaleValue]: "space";
|
|
190
190
|
}) => {
|
|
191
191
|
paddingBottom: string | number | {
|
|
192
|
-
readonly [
|
|
192
|
+
readonly [$$ScaleValue]: "space";
|
|
193
193
|
};
|
|
194
194
|
};
|
|
195
195
|
pl: (value: string | number | {
|
|
196
|
-
readonly [
|
|
196
|
+
readonly [$$ScaleValue]: "space";
|
|
197
197
|
}) => {
|
|
198
198
|
paddingLeft: string | number | {
|
|
199
|
-
readonly [
|
|
199
|
+
readonly [$$ScaleValue]: "space";
|
|
200
200
|
};
|
|
201
201
|
};
|
|
202
202
|
px: (value: string | number | {
|
|
203
|
-
readonly [
|
|
203
|
+
readonly [$$ScaleValue]: "space";
|
|
204
204
|
}) => {
|
|
205
205
|
paddingLeft: string | number | {
|
|
206
|
-
readonly [
|
|
206
|
+
readonly [$$ScaleValue]: "space";
|
|
207
207
|
};
|
|
208
208
|
paddingRight: string | number | {
|
|
209
|
-
readonly [
|
|
209
|
+
readonly [$$ScaleValue]: "space";
|
|
210
210
|
};
|
|
211
211
|
};
|
|
212
212
|
py: (value: string | number | {
|
|
213
|
-
readonly [
|
|
213
|
+
readonly [$$ScaleValue]: "space";
|
|
214
214
|
}) => {
|
|
215
215
|
paddingTop: string | number | {
|
|
216
|
-
readonly [
|
|
216
|
+
readonly [$$ScaleValue]: "space";
|
|
217
217
|
};
|
|
218
218
|
paddingBottom: string | number | {
|
|
219
|
-
readonly [
|
|
219
|
+
readonly [$$ScaleValue]: "space";
|
|
220
220
|
};
|
|
221
221
|
};
|
|
222
222
|
m: (value: string | number | {
|
|
223
|
-
readonly [
|
|
223
|
+
readonly [$$ScaleValue]: "space";
|
|
224
224
|
}) => {
|
|
225
225
|
margin: string | number | {
|
|
226
|
-
readonly [
|
|
226
|
+
readonly [$$ScaleValue]: "space";
|
|
227
227
|
};
|
|
228
228
|
};
|
|
229
229
|
mt: (value: string | number | {
|
|
230
|
-
readonly [
|
|
230
|
+
readonly [$$ScaleValue]: "space";
|
|
231
231
|
}) => {
|
|
232
232
|
marginTop: string | number | {
|
|
233
|
-
readonly [
|
|
233
|
+
readonly [$$ScaleValue]: "space";
|
|
234
234
|
};
|
|
235
235
|
};
|
|
236
236
|
mr: (value: string | number | {
|
|
237
|
-
readonly [
|
|
237
|
+
readonly [$$ScaleValue]: "space";
|
|
238
238
|
}) => {
|
|
239
239
|
marginRight: string | number | {
|
|
240
|
-
readonly [
|
|
240
|
+
readonly [$$ScaleValue]: "space";
|
|
241
241
|
};
|
|
242
242
|
};
|
|
243
243
|
mb: (value: string | number | {
|
|
244
|
-
readonly [
|
|
244
|
+
readonly [$$ScaleValue]: "space";
|
|
245
245
|
}) => {
|
|
246
246
|
marginBottom: string | number | {
|
|
247
|
-
readonly [
|
|
247
|
+
readonly [$$ScaleValue]: "space";
|
|
248
248
|
};
|
|
249
249
|
};
|
|
250
250
|
ml: (value: string | number | {
|
|
251
|
-
readonly [
|
|
251
|
+
readonly [$$ScaleValue]: "space";
|
|
252
252
|
}) => {
|
|
253
253
|
marginLeft: string | number | {
|
|
254
|
-
readonly [
|
|
254
|
+
readonly [$$ScaleValue]: "space";
|
|
255
255
|
};
|
|
256
256
|
};
|
|
257
257
|
mx: (value: string | number | {
|
|
258
|
-
readonly [
|
|
258
|
+
readonly [$$ScaleValue]: "space";
|
|
259
259
|
}) => {
|
|
260
260
|
marginLeft: string | number | {
|
|
261
|
-
readonly [
|
|
261
|
+
readonly [$$ScaleValue]: "space";
|
|
262
262
|
};
|
|
263
263
|
marginRight: string | number | {
|
|
264
|
-
readonly [
|
|
264
|
+
readonly [$$ScaleValue]: "space";
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
267
|
my: (value: string | number | {
|
|
268
|
-
readonly [
|
|
268
|
+
readonly [$$ScaleValue]: "space";
|
|
269
269
|
}) => {
|
|
270
270
|
marginTop: string | number | {
|
|
271
|
-
readonly [
|
|
271
|
+
readonly [$$ScaleValue]: "space";
|
|
272
272
|
};
|
|
273
273
|
marginBottom: string | number | {
|
|
274
|
-
readonly [
|
|
274
|
+
readonly [$$ScaleValue]: "space";
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
277
|
}>>;
|
|
278
|
-
declare type ButtonProps = Override<React.ComponentProps<typeof StyledButton>,
|
|
278
|
+
declare type ButtonProps = Override<React.ComponentProps<typeof StyledButton>, VariantProps<typeof StyledButton> & {
|
|
279
279
|
as?: React.ComponentType | React.ElementType;
|
|
280
280
|
children: React.ReactNode;
|
|
281
281
|
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%"}},isRounded:{true:{borderRadius:"$round"}}},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
|
|
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%"}},isRounded:{true:{borderRadius:"$round"}}},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:s,setYear:A,...L})=>{const[a,E]=e.useState(!1),[m,k]=e.useState(n==null?void 0:n.getFullYear()),O=t=>{const r=n;r.setFullYear(t),A(r),E(!1)},W=l&&m-16<=l.getFullYear(),z=s&&m>=s.getFullYear(),B=Array.from({length:16},(t,r)=>{const o=m-r;return s&&o>s.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:s,...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(m-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(m+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",isRounded:!0,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(($,R)=>{const D=`${t}${r}${P}${R}`;if(!$)return e.createElement("div",{key:D});const{date:j,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"},j.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};
|