@atom-learning/components 2.28.3 → 2.28.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.
Files changed (78) hide show
  1. package/CHANGELOG.md +2 -3
  2. package/dist/components/accordion/AccordionContent.js +1 -1
  3. package/dist/components/accordion/AccordionItem.js +1 -1
  4. package/dist/components/action-icon/ActionIcon.d.ts +44 -44
  5. package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
  6. package/dist/components/avatar/Avatar.js +1 -1
  7. package/dist/components/badge/Badge.js +1 -1
  8. package/dist/components/button/Button.d.ts +44 -44
  9. package/dist/components/calendar/Calendar.js +1 -1
  10. package/dist/components/carousel/CarouselArrows.js +1 -1
  11. package/dist/components/carousel/CarouselSlide.js +1 -1
  12. package/dist/components/checkbox-field/CheckboxField.js +1 -1
  13. package/dist/components/chip/Chip.js +1 -1
  14. package/dist/components/chip/ChipGroup.js +1 -1
  15. package/dist/components/chip-dismissible-group/ChipDismissibleGroupRoot.js +1 -1
  16. package/dist/components/data-table/DataTable.js +1 -1
  17. package/dist/components/data-table/DataTableBody.js +1 -1
  18. package/dist/components/data-table/DataTableDataCell.js +1 -1
  19. package/dist/components/data-table/DataTableRow.js +1 -1
  20. package/dist/components/data-table/drag-and-drop/DraggableRow.js +1 -1
  21. package/dist/components/data-table/drag-and-drop/Handle.js +1 -1
  22. package/dist/components/dialog/DialogContent.js +1 -1
  23. package/dist/components/dismissible/DismissibleRoot.js +1 -1
  24. package/dist/components/dismissible/DismissibleTrigger.js +1 -1
  25. package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +1 -1
  26. package/dist/components/field-wrapper/FieldDescription.js +1 -1
  27. package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
  28. package/dist/components/file-input/FileInput.js +1 -1
  29. package/dist/components/grid/Grid.js +1 -1
  30. package/dist/components/icon/Icon.js +1 -1
  31. package/dist/components/inline-message/InlineMessage.js +1 -1
  32. package/dist/components/label/Label.js +1 -1
  33. package/dist/components/link/Link.js +1 -1
  34. package/dist/components/list/List.js +1 -1
  35. package/dist/components/markdown-content/components/MarkdownEmphasis.js +1 -1
  36. package/dist/components/markdown-content/components/MarkdownHeading.js +1 -1
  37. package/dist/components/markdown-content/components/MarkdownImage.js +1 -1
  38. package/dist/components/markdown-content/components/MarkdownInlineCode.js +1 -1
  39. package/dist/components/markdown-content/components/MarkdownLink.js +1 -1
  40. package/dist/components/markdown-content/components/MarkdownListItem.js +1 -1
  41. package/dist/components/markdown-content/components/MarkdownParagraph.js +1 -1
  42. package/dist/components/markdown-content/components/MarkdownStrong.js +1 -1
  43. package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -1
  44. package/dist/components/navigation/NavigationMenuDropdownContent.js +1 -1
  45. package/dist/components/navigation/NavigationMenuLink.js +1 -1
  46. package/dist/components/notification-badge/NotificationBadge.js +1 -1
  47. package/dist/components/number-input/NumberInput.js +1 -1
  48. package/dist/components/number-input/NumberInputStepper.js +1 -1
  49. package/dist/components/number-input-field/NumberInputField.js +1 -1
  50. package/dist/components/popover/PopoverContent.js +1 -1
  51. package/dist/components/radio-button/RadioButton.js +1 -1
  52. package/dist/components/radio-button-field/RadioButtonField.js +1 -1
  53. package/dist/components/radio-button-field/RadioField.js +1 -1
  54. package/dist/components/radio-card/RadioCardGroup.d.ts +2 -2
  55. package/dist/components/radio-card/RadioCardGroup.js +1 -1
  56. package/dist/components/search-input/SearchInput.js +1 -1
  57. package/dist/components/select-field/SelectField.js +1 -1
  58. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.js +1 -1
  59. package/dist/components/sidedrawer/SidedrawerContent.js +1 -1
  60. package/dist/components/slider-field/SliderField.js +1 -1
  61. package/dist/components/stack-content/StackContent.js +1 -1
  62. package/dist/components/stepper/StepperStepBack.js +1 -1
  63. package/dist/components/table/TableHeader.js +1 -1
  64. package/dist/components/table/TableRow.js +1 -1
  65. package/dist/components/tabs/Tabs.js +1 -1
  66. package/dist/components/tabs/utils.js +1 -1
  67. package/dist/components/toast/Toast.js +1 -1
  68. package/dist/components/toast/ToastProvider.js +1 -1
  69. package/dist/components/toggle-group/ToggleGroupButton.js +1 -1
  70. package/dist/components/tooltip/TooltipContent.js +1 -1
  71. package/dist/components/video/Video.js +1 -1
  72. package/dist/docs/Badge.mdx +1 -1
  73. package/dist/docs/ToggleGroup.mdx +1 -1
  74. package/dist/index.cjs.js +1 -1
  75. package/dist/stitches.d.ts +338 -338
  76. package/dist/stitches.js +1 -1
  77. package/dist/utilities/hooks/useCallbackRef.js +1 -1
  78. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,10 +1,9 @@
1
- ## [2.28.3](https://github.com/Atom-Learning/components/compare/v2.28.2...v2.28.3) (2023-01-24)
1
+ ## [2.28.5](https://github.com/Atom-Learning/components/compare/v2.28.4...v2.28.5) (2023-01-26)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * remove isRounded button variant ([102a47f](https://github.com/Atom-Learning/components/commit/102a47ffbeba4d41756508ca32c2f642286a1611))
7
- * stop using isRounded in calendar component ([765ba5c](https://github.com/Atom-Learning/components/commit/765ba5ce3a78fe8618ee75e43cf2561c8ead0590))
6
+ * allow numbers to be rendered when checking and wrapping type checked children ([79c8744](https://github.com/Atom-Learning/components/commit/79c8744ea3464b85e5be352a1d532462b3bad2ce))
8
7
 
9
8
  # [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
10
9
 
@@ -1 +1 @@
1
- import{Content as i}from"@radix-ui/react-accordion";import t from"react";import{keyframes as e,styled as n}from"../../stitches.js";import{CSSWrapper as c}from"../../utilities/css-wrapper/CSSWrapper.js";const d=e({from:{height:0},to:{height:"var(--radix-accordion-content-height)"}}),m=e({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:o,css:a,...r})=>t.createElement(s,{...r},t.createElement(c,{css:a},o));export{h as AccordionContent};
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:t,value:e,...o})=>m.createElement(l,{value:e,...o},t);export{i as AccordionItem};
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 * as Stitches from '@stitches/react';
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 [Stitches.$$PropertyValue]: "background";
133
+ readonly [$$PropertyValue]: "background";
134
134
  }) => {
135
135
  background: {
136
- readonly [Stitches.$$PropertyValue]: "background";
136
+ readonly [$$PropertyValue]: "background";
137
137
  };
138
138
  };
139
139
  inset: (value: string | number | {
140
- readonly [Stitches.$$ScaleValue]: "space";
140
+ readonly [$$ScaleValue]: "space";
141
141
  }) => {
142
142
  top: string | number | {
143
- readonly [Stitches.$$ScaleValue]: "space";
143
+ readonly [$$ScaleValue]: "space";
144
144
  };
145
145
  right: string | number | {
146
- readonly [Stitches.$$ScaleValue]: "space";
146
+ readonly [$$ScaleValue]: "space";
147
147
  };
148
148
  bottom: string | number | {
149
- readonly [Stitches.$$ScaleValue]: "space";
149
+ readonly [$$ScaleValue]: "space";
150
150
  };
151
151
  left: string | number | {
152
- readonly [Stitches.$$ScaleValue]: "space";
152
+ readonly [$$ScaleValue]: "space";
153
153
  };
154
154
  };
155
155
  size: (value: string | number | {
156
- readonly [Stitches.$$ScaleValue]: "size";
156
+ readonly [$$ScaleValue]: "size";
157
157
  }) => {
158
158
  height: string | number | {
159
- readonly [Stitches.$$ScaleValue]: "size";
159
+ readonly [$$ScaleValue]: "size";
160
160
  };
161
161
  width: string | number | {
162
- readonly [Stitches.$$ScaleValue]: "size";
162
+ readonly [$$ScaleValue]: "size";
163
163
  };
164
164
  };
165
165
  p: (value: string | number | {
166
- readonly [Stitches.$$ScaleValue]: "space";
166
+ readonly [$$ScaleValue]: "space";
167
167
  }) => {
168
168
  padding: string | number | {
169
- readonly [Stitches.$$ScaleValue]: "space";
169
+ readonly [$$ScaleValue]: "space";
170
170
  };
171
171
  };
172
172
  pt: (value: string | number | {
173
- readonly [Stitches.$$ScaleValue]: "space";
173
+ readonly [$$ScaleValue]: "space";
174
174
  }) => {
175
175
  paddingTop: string | number | {
176
- readonly [Stitches.$$ScaleValue]: "space";
176
+ readonly [$$ScaleValue]: "space";
177
177
  };
178
178
  };
179
179
  pr: (value: string | number | {
180
- readonly [Stitches.$$ScaleValue]: "space";
180
+ readonly [$$ScaleValue]: "space";
181
181
  }) => {
182
182
  paddingRight: string | number | {
183
- readonly [Stitches.$$ScaleValue]: "space";
183
+ readonly [$$ScaleValue]: "space";
184
184
  };
185
185
  };
186
186
  pb: (value: string | number | {
187
- readonly [Stitches.$$ScaleValue]: "space";
187
+ readonly [$$ScaleValue]: "space";
188
188
  }) => {
189
189
  paddingBottom: string | number | {
190
- readonly [Stitches.$$ScaleValue]: "space";
190
+ readonly [$$ScaleValue]: "space";
191
191
  };
192
192
  };
193
193
  pl: (value: string | number | {
194
- readonly [Stitches.$$ScaleValue]: "space";
194
+ readonly [$$ScaleValue]: "space";
195
195
  }) => {
196
196
  paddingLeft: string | number | {
197
- readonly [Stitches.$$ScaleValue]: "space";
197
+ readonly [$$ScaleValue]: "space";
198
198
  };
199
199
  };
200
200
  px: (value: string | number | {
201
- readonly [Stitches.$$ScaleValue]: "space";
201
+ readonly [$$ScaleValue]: "space";
202
202
  }) => {
203
203
  paddingLeft: string | number | {
204
- readonly [Stitches.$$ScaleValue]: "space";
204
+ readonly [$$ScaleValue]: "space";
205
205
  };
206
206
  paddingRight: string | number | {
207
- readonly [Stitches.$$ScaleValue]: "space";
207
+ readonly [$$ScaleValue]: "space";
208
208
  };
209
209
  };
210
210
  py: (value: string | number | {
211
- readonly [Stitches.$$ScaleValue]: "space";
211
+ readonly [$$ScaleValue]: "space";
212
212
  }) => {
213
213
  paddingTop: string | number | {
214
- readonly [Stitches.$$ScaleValue]: "space";
214
+ readonly [$$ScaleValue]: "space";
215
215
  };
216
216
  paddingBottom: string | number | {
217
- readonly [Stitches.$$ScaleValue]: "space";
217
+ readonly [$$ScaleValue]: "space";
218
218
  };
219
219
  };
220
220
  m: (value: string | number | {
221
- readonly [Stitches.$$ScaleValue]: "space";
221
+ readonly [$$ScaleValue]: "space";
222
222
  }) => {
223
223
  margin: string | number | {
224
- readonly [Stitches.$$ScaleValue]: "space";
224
+ readonly [$$ScaleValue]: "space";
225
225
  };
226
226
  };
227
227
  mt: (value: string | number | {
228
- readonly [Stitches.$$ScaleValue]: "space";
228
+ readonly [$$ScaleValue]: "space";
229
229
  }) => {
230
230
  marginTop: string | number | {
231
- readonly [Stitches.$$ScaleValue]: "space";
231
+ readonly [$$ScaleValue]: "space";
232
232
  };
233
233
  };
234
234
  mr: (value: string | number | {
235
- readonly [Stitches.$$ScaleValue]: "space";
235
+ readonly [$$ScaleValue]: "space";
236
236
  }) => {
237
237
  marginRight: string | number | {
238
- readonly [Stitches.$$ScaleValue]: "space";
238
+ readonly [$$ScaleValue]: "space";
239
239
  };
240
240
  };
241
241
  mb: (value: string | number | {
242
- readonly [Stitches.$$ScaleValue]: "space";
242
+ readonly [$$ScaleValue]: "space";
243
243
  }) => {
244
244
  marginBottom: string | number | {
245
- readonly [Stitches.$$ScaleValue]: "space";
245
+ readonly [$$ScaleValue]: "space";
246
246
  };
247
247
  };
248
248
  ml: (value: string | number | {
249
- readonly [Stitches.$$ScaleValue]: "space";
249
+ readonly [$$ScaleValue]: "space";
250
250
  }) => {
251
251
  marginLeft: string | number | {
252
- readonly [Stitches.$$ScaleValue]: "space";
252
+ readonly [$$ScaleValue]: "space";
253
253
  };
254
254
  };
255
255
  mx: (value: string | number | {
256
- readonly [Stitches.$$ScaleValue]: "space";
256
+ readonly [$$ScaleValue]: "space";
257
257
  }) => {
258
258
  marginLeft: string | number | {
259
- readonly [Stitches.$$ScaleValue]: "space";
259
+ readonly [$$ScaleValue]: "space";
260
260
  };
261
261
  marginRight: string | number | {
262
- readonly [Stitches.$$ScaleValue]: "space";
262
+ readonly [$$ScaleValue]: "space";
263
263
  };
264
264
  };
265
265
  my: (value: string | number | {
266
- readonly [Stitches.$$ScaleValue]: "space";
266
+ readonly [$$ScaleValue]: "space";
267
267
  }) => {
268
268
  marginTop: string | number | {
269
- readonly [Stitches.$$ScaleValue]: "space";
269
+ readonly [$$ScaleValue]: "space";
270
270
  };
271
271
  marginBottom: string | number | {
272
- readonly [Stitches.$$ScaleValue]: "space";
272
+ readonly [$$ScaleValue]: "space";
273
273
  };
274
274
  };
275
275
  }>>;
276
- declare type ActionIconProps = Override<React.ComponentProps<typeof StyledButton>, Stitches.VariantProps<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"}}}}),h=({size:r="sm",...s})=>t.createElement(l,null,t.createElement(b,null),t.createElement(u,{size:r,...s}));export{h as AlertDialogContent};
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"}}}},$=n("div",s),f=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(f,{size:e,disabled:t,onClick:t?void 0:l,css:{cursor:t?"auto":"pointer"}},a):o.createElement($,{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
+ 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 +1 @@
1
- import*as t from"react";import{styled as m}from"../../stitches.js";import{Box as l}from"../box/Box.js";import{Flex as a}from"../flex/Flex.js";import{Icon as d}from"../icon/Icon.js";const c=m(a,{justifyContent:"center",alignItems:"center",borderRadius:"$0",minWidth:0,border:"1px solid #FFFFFF",fontFamily:"$body","& > *:not(:last-child)":{mr:"$1"},variants:{theme:{success:{bg:"$successLight",color:"$successMid"},warning:{bg:"$warningLight",color:"$warningText"},danger:{bg:"$dangerLight",color:"$dangerMid"},neutral:{bg:"$tonal50",color:"$tonal400"},info:{bg:"$primaryLight",color:"$primaryMid"}},size:{xs:{fontSize:"$sm",px:"$1",height:"$2"},sm:{fontSize:"$md",px:"$1",height:"$3"},md:{fontSize:"$md",px:"$2",height:"$4"}}}}),i=({theme:r="info",size:o="sm",children:n,...s})=>t.createElement(c,{role:"status",theme:r,size:o,...s},t.Children.map(n,e=>{if(typeof e=="string")return t.createElement(l,{css:{whiteSpace:"nowrap",overflowX:"hidden",textOverflow:"ellipsis",py:"$0"}},e);if(t.isValidElement(e)&&e.type===d)return t.cloneElement(e,{size:"sm",css:{...e.props.css,flexShrink:0}})}));i.displayName="Badge";export{i as Badge};
1
+ import*as t from"react";import{styled as m}from"../../stitches.js";import{Box as l}from"../box/Box.js";import{Flex as a}from"../flex/Flex.js";import{Icon as c}from"../icon/Icon.js";const d=m(a,{justifyContent:"center",alignItems:"center",borderRadius:"$0",minWidth:0,border:"1px solid #FFFFFF",fontFamily:"$body","& > *:not(:last-child)":{mr:"$1"},variants:{theme:{success:{bg:"$successLight",color:"$successMid"},warning:{bg:"$warningLight",color:"$warningText"},danger:{bg:"$dangerLight",color:"$dangerMid"},neutral:{bg:"$tonal50",color:"$tonal400"},info:{bg:"$primaryLight",color:"$primaryMid"}},size:{xs:{fontSize:"$sm",px:"$1",height:"$2"},sm:{fontSize:"$md",px:"$1",height:"$3"},md:{fontSize:"$md",px:"$2",height:"$4"}}}}),i=({theme:r="info",size:o="sm",children:n,...s})=>t.createElement(d,{role:"status",theme:r,size:o,...s},t.Children.map(n,e=>{if(typeof e=="string"||typeof e=="number")return t.createElement(l,{css:{whiteSpace:"nowrap",overflowX:"hidden",textOverflow:"ellipsis",py:"$0"}},e);if(t.isValidElement(e)&&e.type===c)return t.cloneElement(e,{size:"sm",css:{...e.props.css,flexShrink:0}})}));i.displayName="Badge";export{i as Badge};
@@ -1,4 +1,4 @@
1
- import type * as Stitches from '@stitches/react';
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';
@@ -131,150 +131,150 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
131
131
  };
132
132
  }, import("@stitches/react/types/config").DefaultThemeMap, {
133
133
  bg: (value: {
134
- readonly [Stitches.$$PropertyValue]: "background";
134
+ readonly [$$PropertyValue]: "background";
135
135
  }) => {
136
136
  background: {
137
- readonly [Stitches.$$PropertyValue]: "background";
137
+ readonly [$$PropertyValue]: "background";
138
138
  };
139
139
  };
140
140
  inset: (value: string | number | {
141
- readonly [Stitches.$$ScaleValue]: "space";
141
+ readonly [$$ScaleValue]: "space";
142
142
  }) => {
143
143
  top: string | number | {
144
- readonly [Stitches.$$ScaleValue]: "space";
144
+ readonly [$$ScaleValue]: "space";
145
145
  };
146
146
  right: string | number | {
147
- readonly [Stitches.$$ScaleValue]: "space";
147
+ readonly [$$ScaleValue]: "space";
148
148
  };
149
149
  bottom: string | number | {
150
- readonly [Stitches.$$ScaleValue]: "space";
150
+ readonly [$$ScaleValue]: "space";
151
151
  };
152
152
  left: string | number | {
153
- readonly [Stitches.$$ScaleValue]: "space";
153
+ readonly [$$ScaleValue]: "space";
154
154
  };
155
155
  };
156
156
  size: (value: string | number | {
157
- readonly [Stitches.$$ScaleValue]: "size";
157
+ readonly [$$ScaleValue]: "size";
158
158
  }) => {
159
159
  height: string | number | {
160
- readonly [Stitches.$$ScaleValue]: "size";
160
+ readonly [$$ScaleValue]: "size";
161
161
  };
162
162
  width: string | number | {
163
- readonly [Stitches.$$ScaleValue]: "size";
163
+ readonly [$$ScaleValue]: "size";
164
164
  };
165
165
  };
166
166
  p: (value: string | number | {
167
- readonly [Stitches.$$ScaleValue]: "space";
167
+ readonly [$$ScaleValue]: "space";
168
168
  }) => {
169
169
  padding: string | number | {
170
- readonly [Stitches.$$ScaleValue]: "space";
170
+ readonly [$$ScaleValue]: "space";
171
171
  };
172
172
  };
173
173
  pt: (value: string | number | {
174
- readonly [Stitches.$$ScaleValue]: "space";
174
+ readonly [$$ScaleValue]: "space";
175
175
  }) => {
176
176
  paddingTop: string | number | {
177
- readonly [Stitches.$$ScaleValue]: "space";
177
+ readonly [$$ScaleValue]: "space";
178
178
  };
179
179
  };
180
180
  pr: (value: string | number | {
181
- readonly [Stitches.$$ScaleValue]: "space";
181
+ readonly [$$ScaleValue]: "space";
182
182
  }) => {
183
183
  paddingRight: string | number | {
184
- readonly [Stitches.$$ScaleValue]: "space";
184
+ readonly [$$ScaleValue]: "space";
185
185
  };
186
186
  };
187
187
  pb: (value: string | number | {
188
- readonly [Stitches.$$ScaleValue]: "space";
188
+ readonly [$$ScaleValue]: "space";
189
189
  }) => {
190
190
  paddingBottom: string | number | {
191
- readonly [Stitches.$$ScaleValue]: "space";
191
+ readonly [$$ScaleValue]: "space";
192
192
  };
193
193
  };
194
194
  pl: (value: string | number | {
195
- readonly [Stitches.$$ScaleValue]: "space";
195
+ readonly [$$ScaleValue]: "space";
196
196
  }) => {
197
197
  paddingLeft: string | number | {
198
- readonly [Stitches.$$ScaleValue]: "space";
198
+ readonly [$$ScaleValue]: "space";
199
199
  };
200
200
  };
201
201
  px: (value: string | number | {
202
- readonly [Stitches.$$ScaleValue]: "space";
202
+ readonly [$$ScaleValue]: "space";
203
203
  }) => {
204
204
  paddingLeft: string | number | {
205
- readonly [Stitches.$$ScaleValue]: "space";
205
+ readonly [$$ScaleValue]: "space";
206
206
  };
207
207
  paddingRight: string | number | {
208
- readonly [Stitches.$$ScaleValue]: "space";
208
+ readonly [$$ScaleValue]: "space";
209
209
  };
210
210
  };
211
211
  py: (value: string | number | {
212
- readonly [Stitches.$$ScaleValue]: "space";
212
+ readonly [$$ScaleValue]: "space";
213
213
  }) => {
214
214
  paddingTop: string | number | {
215
- readonly [Stitches.$$ScaleValue]: "space";
215
+ readonly [$$ScaleValue]: "space";
216
216
  };
217
217
  paddingBottom: string | number | {
218
- readonly [Stitches.$$ScaleValue]: "space";
218
+ readonly [$$ScaleValue]: "space";
219
219
  };
220
220
  };
221
221
  m: (value: string | number | {
222
- readonly [Stitches.$$ScaleValue]: "space";
222
+ readonly [$$ScaleValue]: "space";
223
223
  }) => {
224
224
  margin: string | number | {
225
- readonly [Stitches.$$ScaleValue]: "space";
225
+ readonly [$$ScaleValue]: "space";
226
226
  };
227
227
  };
228
228
  mt: (value: string | number | {
229
- readonly [Stitches.$$ScaleValue]: "space";
229
+ readonly [$$ScaleValue]: "space";
230
230
  }) => {
231
231
  marginTop: string | number | {
232
- readonly [Stitches.$$ScaleValue]: "space";
232
+ readonly [$$ScaleValue]: "space";
233
233
  };
234
234
  };
235
235
  mr: (value: string | number | {
236
- readonly [Stitches.$$ScaleValue]: "space";
236
+ readonly [$$ScaleValue]: "space";
237
237
  }) => {
238
238
  marginRight: string | number | {
239
- readonly [Stitches.$$ScaleValue]: "space";
239
+ readonly [$$ScaleValue]: "space";
240
240
  };
241
241
  };
242
242
  mb: (value: string | number | {
243
- readonly [Stitches.$$ScaleValue]: "space";
243
+ readonly [$$ScaleValue]: "space";
244
244
  }) => {
245
245
  marginBottom: string | number | {
246
- readonly [Stitches.$$ScaleValue]: "space";
246
+ readonly [$$ScaleValue]: "space";
247
247
  };
248
248
  };
249
249
  ml: (value: string | number | {
250
- readonly [Stitches.$$ScaleValue]: "space";
250
+ readonly [$$ScaleValue]: "space";
251
251
  }) => {
252
252
  marginLeft: string | number | {
253
- readonly [Stitches.$$ScaleValue]: "space";
253
+ readonly [$$ScaleValue]: "space";
254
254
  };
255
255
  };
256
256
  mx: (value: string | number | {
257
- readonly [Stitches.$$ScaleValue]: "space";
257
+ readonly [$$ScaleValue]: "space";
258
258
  }) => {
259
259
  marginLeft: string | number | {
260
- readonly [Stitches.$$ScaleValue]: "space";
260
+ readonly [$$ScaleValue]: "space";
261
261
  };
262
262
  marginRight: string | number | {
263
- readonly [Stitches.$$ScaleValue]: "space";
263
+ readonly [$$ScaleValue]: "space";
264
264
  };
265
265
  };
266
266
  my: (value: string | number | {
267
- readonly [Stitches.$$ScaleValue]: "space";
267
+ readonly [$$ScaleValue]: "space";
268
268
  }) => {
269
269
  marginTop: string | number | {
270
- readonly [Stitches.$$ScaleValue]: "space";
270
+ readonly [$$ScaleValue]: "space";
271
271
  };
272
272
  marginBottom: string | number | {
273
- readonly [Stitches.$$ScaleValue]: "space";
273
+ readonly [$$ScaleValue]: "space";
274
274
  };
275
275
  };
276
276
  }>>;
277
- declare type ButtonProps = Override<React.ComponentProps<typeof StyledButton>, Stitches.VariantProps<typeof StyledButton> & {
277
+ declare type ButtonProps = Override<React.ComponentProps<typeof StyledButton>, VariantProps<typeof StyledButton> & {
278
278
  as?: React.ComponentType | React.ElementType;
279
279
  children: React.ReactNode;
280
280
  isLoading?: boolean;
@@ -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 g}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 f=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:$=0,monthNames:N=Q,weekdayNames:T=V,labels:y=X,date:o=new Date,minDate:l,maxDate:m,setYear:A,...L})=>{const[a,E]=e.useState(!1),[s,k]=e.useState(o==null?void 0:o.getFullYear()),O=t=>{const r=o;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 n=s-r;return m&&n>m.getFullYear()||l&&n<l.getFullYear()?0:n}),{calendars:d,getBackProps:I,getForwardProps:M,getDateProps:G}=J({firstDayOfWeek:$,showOutsideDays:!0,date:o,minDate:l,maxDate:m,...L});return d.length?e.createElement(g,{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(f,{css:{gridTemplateColumns:"repeat(4, 1fr)",pt:"$7",direction:"rtl",gridGap:"$3 $1"}},B.map((t,r)=>{const n=t===o.getFullYear();return t?e.createElement(ee,{key:`${t}${r}`,theme:n?"primary":"neutral",onClick:()=>O(t),selected:n},t):e.createElement(g,{key:r,css:{width:"$6",height:"$4"}})})),!a&&d.map(({month:t,year:r,weeks:n})=>e.createElement(g,{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(f,{css:{mb:"$3"}},te(T,$).map(p=>e.createElement(K,{as:"span",size:"sm",key:`${t}${r}${p}`,css:{fontWeight:600,textAlign:"center"}},p))),e.createElement(f,null,n.map((p,P)=>p.map((h,j)=>{const D=`${t}${r}${P}${j}`;if(!h)return e.createElement("div",{key:D});const{date:R,selected:b,today:v,prevMonth:U,nextMonth:_}=h;return e.createElement(Z,{isOutsideMonth:U||_,isSelected:b,isToday:v,key:D,ref:b?c:v?u:null,...G({dateObj:h}),type:"button"},R.getDate())})))))):null};S.displayName="Calendar";export{S as Calendar};
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 t}from"../icon/Icon.js";import{styled as o}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=o(a,n),c=o(l,n),p=e=>r.createElement(m,{...e},r.createElement(t,{is:s})),u=e=>r.createElement(c,{...e},r.createElement(t,{is:i}));export{u as CarouselArrowNext,p as CarouselArrowPrevious};
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 r}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(r,{}),s=({children:t,...o})=>e.createElement(l,{...o,tag:"div"},e.createElement(m,{css:{px:"$3"}},t));export{s as CarouselSlide};
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 t 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:n,validation:o,description:d,...c})=>{const{control:f}=p(),{error:a}=k(n);return t.createElement(C,{control:f,name:n,defaultValue:r,rules:o,render:({onChange:u,value:l,name:s})=>t.createElement(F,{css:e,description:d,error:a,label:m,required:Boolean(o==null?void 0:o.required)},t.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
+ 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 $}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 g}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"}}),z={sm:"sm",md:"sm",lg:"md"},f=m(c,{flexShrink:0}),l=({...r})=>{const i=e.useContext(p),{size:t}=i,n=e.useMemo(()=>g(t,o=>z[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($,{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
+ 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,...t},e)=>r.createElement(a,{ref:e,direction:"row",gap:o,align:!1,...t}));export{p as ChipGroup};
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 t=o.forwardRef((r,i)=>o.createElement(m,{as:p,ref:i,...r}));export{t as ChipDismissibleGroupRoot};
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 o 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=r=>o.createElement(e,{...r});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
+ 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 t 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,...o})=>{const{getRowModel:a}=p();return t.createElement(m.Body,{...o,striped:r},a().rows.map(e=>t.createElement(i.Row,{row:e,key:e.id})))};export{l as DataTableBody};
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 t}from"../table/Table.js";import{flexRender as o}from"@tanstack/react-table";const m=({cell:e})=>l.createElement(t.Cell,{key:e.id},o(e.column.columnDef.cell,e.getContext()));export{m as DataTableDataCell};
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 a}from"../table/Table.js";import{DataTableDataCell as o}from"./DataTableDataCell.js";const r=({row:t})=>l.createElement(a.Row,null,t.getVisibleCells().map((e,m)=>l.createElement(o,{key:e.id,cell:e})));export{r as DataTableRow};
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:t})=>{const{idColumn:i}=d(),{attributes:m,listeners:a,transform:n,setNodeRef:s,isDragging:o}=c({id:t.original[i]});return e.createElement(l.Row,{ref:s,css:{transform:g.Transform.toString(n),zIndex:o?5:void 0}},t.getVisibleCells().map((r,p)=>p===0?e.createElement(l.Cell,{key:r.id},e.createElement(D,{...m,...a,isDragging:o,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
+ 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,...t},a)=>r.createElement(i,{ref:a,isDragging:o,appearance:"simple",size:e,...t},r.createElement(s,{is:g,size:e})));export{l as Handle,i as StyledHandle};
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 o from"react";import{DIALOG_Z_INDEX as r}from"../../constants/zIndices.js";import{keyframes as n,styled as l}from"../../stitches.js";import{ActionIcon as v}from"../action-icon/ActionIcon.js";import{Icon as $}from"../icon/Icon.js";import{DialogBackground as s}from"./DialogBackground.js";import{fadeIn as z,fadeOut as C}from"../../utilities/style/keyframe-animations.js";const e="translate3d(-50%, -50%, 0)",m="translate3d(-50%, 50vh, 0)",d="modal_overlay",D=n({"0%":{transform:m},"100%":{transform:e}}),I=n({"0%":{transform:e},"100%":{transform:m}}),y=l(x,{backgroundColor:"$alpha600",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})=>o.createElement(w,null,o.createElement(y,{id:d},o.Children.map(a,t=>(t==null?void 0:t.type)===s&&t),o.createElement(E,{size:p,"aria-label":"Dialog",onPointerDownOutside:t=>{const i=t.target;(i==null?void 0:i.id)!==d&&t.preventDefault()},...u},c&&o.createElement(v,{as:g,css:{position:"absolute",right:"$4",top:"$4"},label:f,size:"md",theme:"neutral"},o.createElement($,{is:h})),o.Children.map(a,t=>(t==null?void 0:t.type)!==s&&t))));export{O as DialogContent};
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:t,disabled:s})=>{const[i,l]=e.useState(!1),o=e.useMemo(()=>({disabled:s,isDismissed:i,setIsDismissed:l}),[s,i]);return e.createElement(r.Provider,{value:o},t)},u=({asChild:t=!1,value:s,onDismiss:i,...l})=>{const o=e.useContext(r),{isDismissed:d,disabled:a}=o;if(e.useEffect(()=>{d&&(i==null||i(s))},[d]),d)return null;const m={...a&&{["data-disabled"]:""},...l};return e.createElement(t?c:"div",{...m})},b=({disabled:t=!1,...s})=>e.createElement(n,{disabled:t},e.createElement(u,{...s}));export{b as DismissibleRoot,r as DismissibleRootContext,n as DismissibleRootProvider};
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 t from"react";import{Slot as m}from"@radix-ui/react-slot";import{DismissibleRootContext as l}from"./DismissibleRoot.js";const b=s=>t.createElement("button",{type:"button",...s},"Dismiss"),a=({asChild:s=!1,...i})=>{const e=t.useContext(l);if(e===void 0)throw new Error("Dismissible.Trigger can only be used within a Dismissible.Item");const{setIsDismissed:o,disabled:r}=e,n={disabled:r,onClick:()=>{o(!0)},...i};return t.createElement(s?m:b,{...n})};export{a as DismissibleTrigger};
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:t,href:o,...r})=>e.createElement(m,{...r,asChild:!0},e.createElement(i,{href:o,role:"menuitem"},t));export{l as DropdownMenuLinkItem};
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:t,css:o})=>e.createElement(r,{size:"sm",css:{color:"$tonal300",maxWidth:"80ch",...o}},t);export{s as Description};
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};