@atom-learning/components 2.0.0-beta.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/components/accordion/Accordion.d.ts +0 -2
- package/dist/components/accordion/AccordionContent.d.ts +0 -2
- package/dist/components/accordion/AccordionContent.js +1 -1
- package/dist/components/accordion/AccordionItem.d.ts +0 -2
- package/dist/components/accordion/AccordionItem.js +1 -1
- package/dist/components/accordion/AccordionTrigger.d.ts +0 -2
- package/dist/components/action-icon/ActionIcon.constants.d.ts +6 -0
- package/dist/components/action-icon/ActionIcon.constants.js +1 -0
- package/dist/components/action-icon/ActionIcon.d.ts +1 -3
- package/dist/components/action-icon/ActionIcon.js +1 -1
- package/dist/components/alert-dialog/AlertDialog.d.ts +0 -2
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +0 -2
- package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
- package/dist/components/alert-dialog/alert-context/AlertContext.js +1 -1
- package/dist/components/alert-dialog/alert-context/AlertDialog.js +1 -1
- package/dist/components/badge/Badge.d.ts +0 -4
- package/dist/components/badge/Badge.js +1 -1
- package/dist/components/box/Box.d.ts +0 -2
- package/dist/components/button/Button.d.ts +0 -2
- package/dist/components/button/Button.js +1 -1
- package/dist/components/calendar/Calendar.d.ts +3 -0
- package/dist/components/calendar/Calendar.js +1 -1
- package/dist/components/calendar/Day.d.ts +0 -2
- package/dist/components/calendar/constants.d.ts +7 -0
- package/dist/components/calendar/constants.js +1 -1
- package/dist/components/carousel/CarouselArrows.js +1 -1
- package/dist/components/carousel/CarouselPagination.d.ts +0 -2
- package/dist/components/carousel/CarouselSlide.d.ts +0 -2
- package/dist/components/carousel/CarouselSlider.d.ts +0 -2
- package/dist/components/checkbox/Checkbox.d.ts +0 -2
- package/dist/components/checkbox/Checkbox.js +1 -1
- package/dist/components/combobox/Combobox.d.ts +0 -2
- package/dist/components/combobox/Combobox.js +1 -1
- package/dist/components/combobox/ComboboxInput.d.ts +0 -2
- package/dist/components/combobox/ComboboxInput.js +1 -1
- package/dist/components/combobox/ComboboxList.d.ts +0 -2
- package/dist/components/combobox/ComboboxOption.d.ts +0 -2
- package/dist/components/combobox/ComboboxPopover.d.ts +0 -2
- package/dist/components/date-input/DateInput.js +1 -1
- package/dist/components/dialog/Dialog.d.ts +0 -2
- package/dist/components/dialog/DialogBackground.d.ts +0 -4
- package/dist/components/dialog/DialogClose.d.ts +0 -2
- package/dist/components/dialog/DialogContent.d.ts +0 -2
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/divider/Divider.d.ts +0 -2
- package/dist/components/divider/Divider.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +0 -2
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +0 -2
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +0 -2
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +0 -2
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +0 -2
- package/dist/components/empty-state/EmptyState.d.ts +0 -4
- package/dist/components/empty-state/EmptyState.js +1 -1
- package/dist/components/empty-state/EmptyStateBody.d.ts +0 -4
- package/dist/components/empty-state/EmptyStateBody.js +1 -1
- package/dist/components/empty-state/EmptyStateImage.d.ts +0 -4
- package/dist/components/empty-state/EmptyStateImage.js +1 -1
- package/dist/components/empty-state/EmptyStateTitle.d.ts +0 -2
- 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/flex/Flex.d.ts +0 -2
- package/dist/components/form/Form.d.ts +0 -2
- package/dist/components/grid/Grid.d.ts +1 -3
- package/dist/components/grid/Grid.js +1 -1
- package/dist/components/heading/Heading.d.ts +0 -2
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/icon/Icon.d.ts +0 -2
- package/dist/components/image/Image.d.ts +0 -2
- package/dist/components/input/Input.d.ts +0 -2
- package/dist/components/label/Label.d.ts +0 -2
- package/dist/components/label/Label.js +1 -1
- package/dist/components/link/Link.d.ts +0 -2
- package/dist/components/link/Link.js +1 -1
- package/dist/components/list/List.d.ts +0 -4
- package/dist/components/markdown-content/MarkdownContent.js +1 -1
- package/dist/components/markdown-content/components/MarkdownCode.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/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/notification-badge/NotificationBadge.d.ts +0 -4
- package/dist/components/notification-badge/NotificationBadge.js +1 -1
- package/dist/components/password-input/PasswordInput.js +1 -1
- package/dist/components/popover/Popover.d.ts +0 -2
- package/dist/components/popover/PopoverContent.d.ts +0 -2
- package/dist/components/popover/PopoverContent.js +1 -1
- package/dist/components/progress-bar/ProgressBar.d.ts +0 -2
- package/dist/components/radio-button/RadioButton.d.ts +0 -2
- package/dist/components/radio-button/RadioButtonGroup.d.ts +0 -2
- package/dist/components/radio-button/RadioButtonGroup.js +1 -1
- package/dist/components/radio-button-field/RadioButtonField.js +1 -1
- package/dist/components/radio-card/RadioCard.d.ts +0 -2
- package/dist/components/radio-card/RadioCard.js +1 -1
- package/dist/components/radio-card/RadioCardGroup.js +1 -1
- package/dist/components/search-input/SearchInput.js +1 -1
- package/dist/components/select/Select.d.ts +0 -2
- package/dist/components/select/Select.js +1 -1
- package/dist/components/slider/Slider.d.ts +0 -2
- package/dist/components/slider-field/SliderField.js +1 -1
- package/dist/components/stack/Stack.d.ts +1 -3
- package/dist/components/stack/Stack.js +1 -1
- package/dist/components/stack-content/StackContent.d.ts +0 -2
- package/dist/components/stack-content/StackContent.js +1 -1
- package/dist/components/stepper/StepperStepBullet.d.ts +1 -5
- package/dist/components/stepper/StepperStepBullet.js +1 -1
- package/dist/components/stepper/StepperStepContainer.d.ts +1 -4
- package/dist/components/stepper/StepperStepContainer.js +1 -1
- package/dist/components/stepper/StepperStepForward.js +1 -1
- package/dist/components/stepper/StepperStepLabel.d.ts +1 -5
- package/dist/components/stepper/StepperStepLabel.js +1 -1
- package/dist/components/stepper/StepperSteps.js +1 -1
- package/dist/components/stepper/stepper-context/StepperContext.js +1 -1
- package/dist/components/stepper/types.d.ts +4 -1
- package/dist/components/stepper/types.js +1 -1
- package/dist/components/switch/Switch.d.ts +0 -2
- package/dist/components/switch/Switch.js +1 -1
- package/dist/components/table/Table.d.ts +0 -2
- package/dist/components/table/TableBody.d.ts +0 -2
- package/dist/components/table/TableBody.js +1 -1
- package/dist/components/table/TableCell.d.ts +0 -2
- package/dist/components/table/TableFooter.d.ts +0 -2
- package/dist/components/table/TableFooterCell.d.ts +0 -2
- package/dist/components/table/TableHeader.d.ts +0 -2
- package/dist/components/table/TableHeader.js +1 -1
- package/dist/components/table/TableHeaderCell.d.ts +0 -2
- package/dist/components/table/TableRow.d.ts +0 -2
- package/dist/components/tabs/TabTrigger.d.ts +0 -2
- package/dist/components/tabs/TabTrigger.js +1 -1
- package/dist/components/tabs/Tabs.d.ts +0 -4
- package/dist/components/tabs/Tabs.js +1 -1
- package/dist/components/tabs/TabsTriggerList.d.ts +0 -2
- package/dist/components/tabs/TabsTriggerList.js +1 -1
- package/dist/components/tabs/utils.js +1 -1
- package/dist/components/text/Text.d.ts +0 -2
- package/dist/components/textarea/Textarea.d.ts +0 -2
- package/dist/components/toast/Toast.d.ts +0 -2
- package/dist/components/toast/Toast.js +1 -1
- package/dist/components/toast/ToastProvider.js +1 -1
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +0 -4
- package/dist/components/toggle-group/ToggleGroupButton.js +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +0 -4
- package/dist/components/toggle-group/ToggleGroupRoot.d.ts +0 -2
- package/dist/components/toggle-group/index.d.ts +0 -10
- package/dist/components/tooltip/TooltipContent.d.ts +0 -2
- package/dist/components/validation-error/ValidationError.js +1 -1
- package/dist/components/video/Video.d.ts +0 -4
- package/dist/docgen.json +1 -1
- package/dist/docs/ActionIcon.mdx +13 -19
- package/dist/docs/Checkbox.mdx +4 -0
- package/dist/docs/Flex.mdx +3 -3
- package/dist/docs/Icon.mdx +1 -1
- package/dist/docs/Slider.mdx +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/stitches.d.ts +0 -20
- package/dist/utilities/hooks/useCallbackRef.d.ts +9 -0
- package/dist/utilities/hooks/useCallbackRef.js +1 -0
- package/dist/utilities/{use-is-mounted-ref/index.d.ts → hooks/useIsMountedRef.d.ts} +0 -0
- package/dist/utilities/{use-is-mounted-ref/index.js → hooks/useIsMountedRef.js} +0 -0
- package/package.json +3 -3
|
@@ -58,7 +58,6 @@ export declare const TableFooter: import("@stitches/react/types/styled-component
|
|
|
58
58
|
warning: any;
|
|
59
59
|
warningMid: any;
|
|
60
60
|
warningDark: any;
|
|
61
|
-
warningText: any;
|
|
62
61
|
subjectEnglish: any;
|
|
63
62
|
subjectMaths: any;
|
|
64
63
|
subjectScience: any;
|
|
@@ -78,7 +77,6 @@ export declare const TableFooter: import("@stitches/react/types/styled-component
|
|
|
78
77
|
"7": any;
|
|
79
78
|
"8": any;
|
|
80
79
|
"9": any;
|
|
81
|
-
"10": any;
|
|
82
80
|
};
|
|
83
81
|
fontSizes: {
|
|
84
82
|
xs: any;
|
|
@@ -58,7 +58,6 @@ export declare const TableFooterCell: import("@stitches/react/types/styled-compo
|
|
|
58
58
|
warning: any;
|
|
59
59
|
warningMid: any;
|
|
60
60
|
warningDark: any;
|
|
61
|
-
warningText: any;
|
|
62
61
|
subjectEnglish: any;
|
|
63
62
|
subjectMaths: any;
|
|
64
63
|
subjectScience: any;
|
|
@@ -78,7 +77,6 @@ export declare const TableFooterCell: import("@stitches/react/types/styled-compo
|
|
|
78
77
|
"7": any;
|
|
79
78
|
"8": any;
|
|
80
79
|
"9": any;
|
|
81
|
-
"10": any;
|
|
82
80
|
};
|
|
83
81
|
fontSizes: {
|
|
84
82
|
xs: any;
|
|
@@ -61,7 +61,6 @@ declare const StyledTableHeader: import("@stitches/react/types/styled-component"
|
|
|
61
61
|
warning: any;
|
|
62
62
|
warningMid: any;
|
|
63
63
|
warningDark: any;
|
|
64
|
-
warningText: any;
|
|
65
64
|
subjectEnglish: any;
|
|
66
65
|
subjectMaths: any;
|
|
67
66
|
subjectScience: any;
|
|
@@ -81,7 +80,6 @@ declare const StyledTableHeader: import("@stitches/react/types/styled-component"
|
|
|
81
80
|
"7": any;
|
|
82
81
|
"8": any;
|
|
83
82
|
"9": any;
|
|
84
|
-
"10": any;
|
|
85
83
|
};
|
|
86
84
|
fontSizes: {
|
|
87
85
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import m from"react";import{styled as l}from"../../stitches.js";import{TableHeaderCell as
|
|
1
|
+
import m from"react";import{styled as l}from"../../stitches.js";import{TableHeaderCell as e}from"./TableHeaderCell.js";const o=l("thead",{variants:{theme:{primary:{[`${e}`]:{bg:"$primary"}},primaryDark:{[`${e}`]:{bg:"$primaryDark"}},light:{[`${e}`]:{bg:"$tonal50",color:"$tonal600"}}}}}),r=({theme:a="primaryDark",...t})=>m.createElement(o,{theme:a,...t});r.displayName="TableHeader";export{r as TableHeader};
|
|
@@ -58,7 +58,6 @@ export declare const TableHeaderCell: import("@stitches/react/types/styled-compo
|
|
|
58
58
|
warning: any;
|
|
59
59
|
warningMid: any;
|
|
60
60
|
warningDark: any;
|
|
61
|
-
warningText: any;
|
|
62
61
|
subjectEnglish: any;
|
|
63
62
|
subjectMaths: any;
|
|
64
63
|
subjectScience: any;
|
|
@@ -78,7 +77,6 @@ export declare const TableHeaderCell: import("@stitches/react/types/styled-compo
|
|
|
78
77
|
"7": any;
|
|
79
78
|
"8": any;
|
|
80
79
|
"9": any;
|
|
81
|
-
"10": any;
|
|
82
80
|
};
|
|
83
81
|
fontSizes: {
|
|
84
82
|
xs: any;
|
|
@@ -58,7 +58,6 @@ export declare const TableRow: import("@stitches/react/types/styled-component").
|
|
|
58
58
|
warning: any;
|
|
59
59
|
warningMid: any;
|
|
60
60
|
warningDark: any;
|
|
61
|
-
warningText: any;
|
|
62
61
|
subjectEnglish: any;
|
|
63
62
|
subjectMaths: any;
|
|
64
63
|
subjectScience: any;
|
|
@@ -78,7 +77,6 @@ export declare const TableRow: import("@stitches/react/types/styled-component").
|
|
|
78
77
|
"7": any;
|
|
79
78
|
"8": any;
|
|
80
79
|
"9": any;
|
|
81
|
-
"10": any;
|
|
82
80
|
};
|
|
83
81
|
fontSizes: {
|
|
84
82
|
xs: any;
|
|
@@ -61,7 +61,6 @@ declare const StyledTabTrigger: import("@stitches/react/types/styled-component")
|
|
|
61
61
|
warning: any;
|
|
62
62
|
warningMid: any;
|
|
63
63
|
warningDark: any;
|
|
64
|
-
warningText: any;
|
|
65
64
|
subjectEnglish: any;
|
|
66
65
|
subjectMaths: any;
|
|
67
66
|
subjectScience: any;
|
|
@@ -81,7 +80,6 @@ declare const StyledTabTrigger: import("@stitches/react/types/styled-component")
|
|
|
81
80
|
"7": any;
|
|
82
81
|
"8": any;
|
|
83
82
|
"9": any;
|
|
84
|
-
"10": any;
|
|
85
83
|
};
|
|
86
84
|
fontSizes: {
|
|
87
85
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Trigger as l}from"@radix-ui/react-tabs";import{opacify as
|
|
1
|
+
import{Trigger as l}from"@radix-ui/react-tabs";import{opacify as e}from"color2k";import*as n from"react";import{styled as s,theme as o}from"../../stitches.js";const c=s(l,{background:"none",border:"none",cursor:"pointer",flexShrink:0,fontFamily:"$body",p:"$4",height:"$5",userSelect:"none",transition:"0.3s",variants:{theme:{light:{'&[data-state="active"]':{color:"$primary",fontWeight:600,letterSpacing:"-0.005em",boxShadow:"inset 0 -2px 0 0 currentColor"},'&[data-state="inactive"]':{color:"$tonal500"},"&:not([data-disabled]):hover":{color:"$primary",bg:e(o.colors.primary.value,-.9)},"&:not([data-disabled]):active":{color:"$primary",bg:e(o.colors.primary.value,-.8),boxShadow:"none"},"&[data-disabled],&[data-disabled]:hover":{color:"$tonal200",cursor:"not-allowed"}},dark:{color:"white",'&[data-state="active"]':{fontWeight:600,letterSpacing:"-0.005em",boxShadow:"inset 0 -2px 0 0 currentColor"},"&:not([data-disabled]):hover":{bg:e("white",-.8)},"&:not([data-disabled]):active":{bg:e("white",-.7),boxShadow:"none"},"&[data-disabled],&[data-disabled]:hover":{color:"$tonal200",cursor:"not-allowed"}}}}}),a=({children:t,theme:r,disabled:i=!1,...d})=>n.createElement(c,{disabled:i,theme:r,...d},t);a.displayName="TabTrigger";export{a as TabTrigger};
|
|
@@ -64,7 +64,6 @@ declare const StyledRoot: import("@stitches/react/types/styled-component").Style
|
|
|
64
64
|
warning: any;
|
|
65
65
|
warningMid: any;
|
|
66
66
|
warningDark: any;
|
|
67
|
-
warningText: any;
|
|
68
67
|
subjectEnglish: any;
|
|
69
68
|
subjectMaths: any;
|
|
70
69
|
subjectScience: any;
|
|
@@ -84,7 +83,6 @@ declare const StyledRoot: import("@stitches/react/types/styled-component").Style
|
|
|
84
83
|
"7": any;
|
|
85
84
|
"8": any;
|
|
86
85
|
"9": any;
|
|
87
|
-
"10": any;
|
|
88
86
|
};
|
|
89
87
|
fontSizes: {
|
|
90
88
|
xs: any;
|
|
@@ -333,7 +331,6 @@ declare const StyledTabContent: import("@stitches/react/types/styled-component")
|
|
|
333
331
|
warning: any;
|
|
334
332
|
warningMid: any;
|
|
335
333
|
warningDark: any;
|
|
336
|
-
warningText: any;
|
|
337
334
|
subjectEnglish: any;
|
|
338
335
|
subjectMaths: any;
|
|
339
336
|
subjectScience: any;
|
|
@@ -353,7 +350,6 @@ declare const StyledTabContent: import("@stitches/react/types/styled-component")
|
|
|
353
350
|
"7": any;
|
|
354
351
|
"8": any;
|
|
355
352
|
"9": any;
|
|
356
|
-
"10": any;
|
|
357
353
|
};
|
|
358
354
|
fontSizes: {
|
|
359
355
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Root as l,Content as n}from"@radix-ui/react-tabs";import*as p from"react";import{styled as
|
|
1
|
+
import{Root as l,Content as n}from"@radix-ui/react-tabs";import*as p from"react";import{styled as o}from"../../stitches.js";import{TriggerListWrapper as t}from"./TabsTriggerList.js";import{TabTrigger as s}from"./TabTrigger.js";import{passPropsToChildren as g}from"./utils.js";const h=o(l,{display:"flex",flexDirection:"column",variants:{theme:{light:{color:"$primary"},dark:{color:"white"}}}}),i=o(n,{flexGrow:1,fontFamily:"$body",variants:{theme:{light:{color:"$textForeground"},dark:{bg:"$primaryDark",color:"white"}}}}),r=({theme:e="light",children:m,...a})=>p.createElement(h,{theme:e,...a},g(m,{theme:e},[t,i]));r.TriggerList=t,r.Trigger=s,r.Content=i,r.displayName="Tabs";export{r as Tabs};
|
|
@@ -66,7 +66,6 @@ declare const StyledTriggerList: import("@stitches/react/types/styled-component"
|
|
|
66
66
|
warning: any;
|
|
67
67
|
warningMid: any;
|
|
68
68
|
warningDark: any;
|
|
69
|
-
warningText: any;
|
|
70
69
|
subjectEnglish: any;
|
|
71
70
|
subjectMaths: any;
|
|
72
71
|
subjectScience: any;
|
|
@@ -86,7 +85,6 @@ declare const StyledTriggerList: import("@stitches/react/types/styled-component"
|
|
|
86
85
|
"7": any;
|
|
87
86
|
"8": any;
|
|
88
87
|
"9": any;
|
|
89
|
-
"10": any;
|
|
90
88
|
};
|
|
91
89
|
fontSizes: {
|
|
92
90
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ChevronLeft as P,ChevronRight as R}from"@atom-learning/icons";import{List as _}from"@radix-ui/react-tabs";import{opacify as
|
|
1
|
+
import{ChevronLeft as P,ChevronRight as R}from"@atom-learning/icons";import{List as _}from"@radix-ui/react-tabs";import{opacify as y}from"color2k";import o,{useRef as F,useState as f,useCallback as J,useEffect as k}from"react";import{debounce as K}from"throttle-debounce";import{ActionIcon as M}from"../action-icon/ActionIcon.js";import{Flex as X}from"../flex/Flex.js";import{Icon as W}from"../icon/Icon.js";import{theme as j,styled as x}from"../../stitches.js";import{TabTrigger as L}from"./TabTrigger.js";import{passPropsToChildren as C}from"./utils.js";const q=y("white",-.2),G=y(j.colors.primaryDark.value,-.2),T=x(M,{position:"absolute",transition:"all 125ms",variants:{theme:{light:{bg:`${q} !important`},dark:{bg:`${G} !important`,color:"currentColor !important"}},visible:{true:{opacity:1,visibility:"visible",pointerEvents:"all"},false:{opacity:0,visibility:"hidden",pointerEvents:"none"}}}}),S=x(_,{flexShrink:0,display:"flex",width:"100%",overflowX:"auto","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",variants:{theme:{light:{borderBottom:"1px solid $tonal300"},dark:{bg:"$primaryDark",borderBottom:"1px solid $tonal200"}},appearance:{uppercase:{"& button":{textTransform:"uppercase"}}}}}),H=({children:h,theme:i,appearance:d,enableTabScrolling:$,scrollPercentage:z=10,...b})=>{const s=F(null),[u,a]=f(!1),[v,c]=f(!1),[D,I]=f(),g=J(t=>{const e=s.current;if(e){const{scrollWidth:l,scrollLeft:n,offsetWidth:m}=e,E=Math.round(l*(z/100));let p=n;if(t==="right"){const r=n+E;p=r+m<=l?r:l-m}else{const r=n-E;p=r>0?r:0}e.scroll({left:p,behavior:"smooth"}),setTimeout(()=>{const{scrollWidth:r,scrollLeft:w,offsetWidth:A}=e,B=r-(w+A);w===0?(a(!1),c(!0)):B<5?(c(!1),a(!0)):(a(!0),c(!0))},500)}},[]);return k(()=>{const t=K(500,()=>{I(window.innerWidth)});return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),k(()=>{var t;const e=s.current;if(e){const{offsetWidth:l,scrollWidth:n}=e,m=n>l;(t=e.scroll)==null||t.call(e,{left:0}),a(!1),c(m)}},[D]),u||v||$?o.createElement(X,{css:{position:"relative"}},o.createElement(T,{size:"lg",label:"Scroll Left",theme:i,onClick:()=>g("left"),visible:u,css:{left:0}},o.createElement(W,{is:P})),o.createElement(S,{...b,ref:s,appearance:d,theme:i},C(h,{theme:i},[L])),o.createElement(T,{size:"lg",label:"Scroll right",theme:i,onClick:()=>g("right"),visible:v,css:{right:0}},o.createElement(W,{is:R}))):o.createElement(S,{theme:i,...b,appearance:d,ref:s},C(h,{theme:i},[L]))};export{H as TriggerListWrapper};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";const t=(n,o,i=[])=>e.Children.map(n,l=>e.isValidElement(l)&&i.includes(l==null?void 0:l.type)?e.cloneElement(l,{...o}):l);export{t as passPropsToChildren};
|
|
@@ -67,7 +67,6 @@ export declare const StyledText: import("@stitches/react/types/styled-component"
|
|
|
67
67
|
warning: any;
|
|
68
68
|
warningMid: any;
|
|
69
69
|
warningDark: any;
|
|
70
|
-
warningText: any;
|
|
71
70
|
subjectEnglish: any;
|
|
72
71
|
subjectMaths: any;
|
|
73
72
|
subjectScience: any;
|
|
@@ -87,7 +86,6 @@ export declare const StyledText: import("@stitches/react/types/styled-component"
|
|
|
87
86
|
"7": any;
|
|
88
87
|
"8": any;
|
|
89
88
|
"9": any;
|
|
90
|
-
"10": any;
|
|
91
89
|
};
|
|
92
90
|
fontSizes: {
|
|
93
91
|
xs: any;
|
|
@@ -61,7 +61,6 @@ declare const StyledTextarea: import("@stitches/react/types/styled-component").S
|
|
|
61
61
|
warning: any;
|
|
62
62
|
warningMid: any;
|
|
63
63
|
warningDark: any;
|
|
64
|
-
warningText: any;
|
|
65
64
|
subjectEnglish: any;
|
|
66
65
|
subjectMaths: any;
|
|
67
66
|
subjectScience: any;
|
|
@@ -81,7 +80,6 @@ declare const StyledTextarea: import("@stitches/react/types/styled-component").S
|
|
|
81
80
|
"7": any;
|
|
82
81
|
"8": any;
|
|
83
82
|
"9": any;
|
|
84
|
-
"10": any;
|
|
85
83
|
};
|
|
86
84
|
fontSizes: {
|
|
87
85
|
xs: any;
|
|
@@ -63,7 +63,6 @@ declare const StyledToast: import("@stitches/react/types/styled-component").Styl
|
|
|
63
63
|
warning: any;
|
|
64
64
|
warningMid: any;
|
|
65
65
|
warningDark: any;
|
|
66
|
-
warningText: any;
|
|
67
66
|
subjectEnglish: any;
|
|
68
67
|
subjectMaths: any;
|
|
69
68
|
subjectScience: any;
|
|
@@ -83,7 +82,6 @@ declare const StyledToast: import("@stitches/react/types/styled-component").Styl
|
|
|
83
82
|
"7": any;
|
|
84
83
|
"8": any;
|
|
85
84
|
"9": any;
|
|
86
|
-
"10": any;
|
|
87
85
|
};
|
|
88
86
|
fontSizes: {
|
|
89
87
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Error as g,Close as h}from"@atom-learning/icons";import*as
|
|
1
|
+
import{Error as g,Close as h}from"@atom-learning/icons";import*as e from"react";import{toast as $}from"react-hot-toast";import{keyframes as i,styled as a}from"../../stitches.js";import{ActionIcon as v}from"../action-icon/ActionIcon.js";import{Icon as s}from"../icon/Icon.js";import{Loader as y}from"../loader/Loader.js";import{Text as w}from"../text/Text.js";const n=400,x=i({"0%":{transform:"translate3d(0,-100%,0)",opacity:0},"100%":{transform:"translate3d(0,0,0)",opacity:1}}),E=i({"0%":{transform:"translate3d(0,0,0)",opacity:1},"100%":{transform:"translate3d(0,-100%,0)",opacity:0}}),k=a("div",{position:"absolute",width:"100%",variants:{visible:{true:{"@allowMotion":{animation:`${x} 250ms cubic-bezier(0.22, 1, 0.36, 1)`}},false:{opacity:0,"@allowMotion":{animation:`${E} 250ms cubic-bezier(0.22, 1, 0.36, 1)`}}}}}),I=a("div",{pointerEvents:"auto",alignItems:"center",borderRadius:"$0",boxShadow:"$1",boxSizing:"border-box",color:"white",display:"flex",minHeight:"$5",pl:"$4",position:"relative",pr:"$6",py:"$4",transition:"background-color 50ms ease-out",width:"100%","@sm":{width:n},"@allowMotion":{transition:"background-color 50ms ease-out, transform 150ms ease-out"},variants:{status:{blank:{bg:"$primary"},error:{bg:"$danger"},loading:{bg:"$primary"},success:{bg:"$success"}}}}),T=e.memo(({ariaLive:l,height:m,id:t,message:c,role:p,type:o="blank",visible:d,calculateOffset:u,updateHeight:b})=>{const f=u(t,{reverseOrder:!0,margin:8});return e.createElement(k,{visible:d},e.createElement(I,{ref:r=>{r&&m===void 0&&b(t,r.getBoundingClientRect().height)},status:o,role:p,"aria-live":l,style:{transform:`translateY(${f}px)`}},o==="error"&&e.createElement(s,{size:"sm",css:{mr:"$3",flex:"0 0 auto"},is:g}),e.createElement(w,{css:{color:"inherit"}},c),o==="loading"?e.createElement(y,{css:{flex:"0 0 auto",ml:"auto"}}):e.createElement(v,{css:{position:"absolute",top:"$2",right:"$2",color:"white","&:hover,&:focus":{color:"white",opacity:.5}},label:"Close alert",onClick:()=>$.dismiss(t)},e.createElement(s,{is:h}))))});export{n as TOAST_WIDTH,T as Toast};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{useToaster as p}from"react-hot-toast";import{default as
|
|
1
|
+
import*as e from"react";import{useToaster as p}from"react-hot-toast";import{default as E}from"react-hot-toast";import{styled as c}from"../../stitches.js";import{TOAST_WIDTH as d,Toast as f}from"./Toast.js";const u=2147483647,T=c("div",{left:"$2",position:"fixed",top:"$2",right:"$2",zIndex:u,"@sm":{top:"$3",right:"auto",left:`calc(50% - ${d/2}px)`}}),a=({children:o})=>{const{toasts:r,handlers:s}=p(),{startPause:i,endPause:l,calculateOffset:n,updateHeight:m}=s;return e.createElement(e.Fragment,null,e.createElement(T,{onMouseEnter:i,onMouseLeave:l},r.map(t=>e.createElement(f,{key:t.id,calculateOffset:n,updateHeight:m,...t}))),o)};a.displayName="ToastProvider";export{a as ToastProvider,E as toast};
|
|
@@ -59,7 +59,6 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
59
59
|
warning: any;
|
|
60
60
|
warningMid: any;
|
|
61
61
|
warningDark: any;
|
|
62
|
-
warningText: any;
|
|
63
62
|
subjectEnglish: any;
|
|
64
63
|
subjectMaths: any;
|
|
65
64
|
subjectScience: any;
|
|
@@ -79,7 +78,6 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
79
78
|
"7": any;
|
|
80
79
|
"8": any;
|
|
81
80
|
"9": any;
|
|
82
|
-
"10": any;
|
|
83
81
|
};
|
|
84
82
|
fontSizes: {
|
|
85
83
|
xs: any;
|
|
@@ -328,7 +326,6 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
328
326
|
warning: any;
|
|
329
327
|
warningMid: any;
|
|
330
328
|
warningDark: any;
|
|
331
|
-
warningText: any;
|
|
332
329
|
subjectEnglish: any;
|
|
333
330
|
subjectMaths: any;
|
|
334
331
|
subjectScience: any;
|
|
@@ -348,7 +345,6 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
348
345
|
"7": any;
|
|
349
346
|
"8": any;
|
|
350
347
|
"9": any;
|
|
351
|
-
"10": any;
|
|
352
348
|
};
|
|
353
349
|
fontSizes: {
|
|
354
350
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as n from"react";import{styled as g}from"../../stitches.js";import{StyledIcon as f,Icon as r}from"../icon/Icon.js";import{StyledItem as h}from"./ToggleGroupItem.js";const t={sm:"32px",md:"40px",lg:"48px"}
|
|
1
|
+
import*as n from"react";import{styled as g}from"../../stitches.js";import{StyledIcon as f,Icon as r}from"../icon/Icon.js";import{StyledItem as h}from"./ToggleGroupItem.js";const t={sm:"32px",md:"40px",lg:"48px"},u={sm:"$4",md:"$5",lg:"$5"},$={sm:"$2",md:"$3",lg:"$3"},l=i=>({fontSize:`$${i}`,px:u[i],minHeight:t[i],"& > *:not(:last-child)":{mr:$[i]}}),d=g(h,{flexGrow:1,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,lineHeight:1,py:"$1",[`& ${f}`]:{flexShrink:0},variants:{size:{sm:l("sm"),md:l("md"),lg:l("lg")},isIconOnly:{true:{}}},compoundVariants:[{isIconOnly:!0,size:"sm",css:{minWidth:t.sm,p:0}},{isIconOnly:!0,size:"md",css:{minWidth:t.md,p:0}},{isIconOnly:!0,size:"lg",css:{minWidth:t.lg,p:0}}]}),x=n.forwardRef(({size:i="md",children:p,...c},a)=>{var m;const s=n.Children.toArray(p),o=s.length<=1,y=o&&n.isValidElement(s[0])&&((m=s[0])==null?void 0:m.type)===r;return n.createElement(d,{ref:a,size:i,isIconOnly:y,...c},s.map(e=>!o&&typeof e=="string"?n.createElement("span",{key:e},e):n.isValidElement(e)&&(e==null?void 0:e.type)===r?n.cloneElement(e,{...e.props,size:i}):e))});export{d as StyledButton,x as ToggleGroupButton};
|
|
@@ -60,7 +60,6 @@ export declare const StyledItem: import("@stitches/react/types/styled-component"
|
|
|
60
60
|
warning: any;
|
|
61
61
|
warningMid: any;
|
|
62
62
|
warningDark: any;
|
|
63
|
-
warningText: any;
|
|
64
63
|
subjectEnglish: any;
|
|
65
64
|
subjectMaths: any;
|
|
66
65
|
subjectScience: any;
|
|
@@ -80,7 +79,6 @@ export declare const StyledItem: import("@stitches/react/types/styled-component"
|
|
|
80
79
|
"7": any;
|
|
81
80
|
"8": any;
|
|
82
81
|
"9": any;
|
|
83
|
-
"10": any;
|
|
84
82
|
};
|
|
85
83
|
fontSizes: {
|
|
86
84
|
xs: any;
|
|
@@ -327,7 +325,6 @@ export declare const ToggleGroupItem: import("@stitches/react/types/styled-compo
|
|
|
327
325
|
warning: any;
|
|
328
326
|
warningMid: any;
|
|
329
327
|
warningDark: any;
|
|
330
|
-
warningText: any;
|
|
331
328
|
subjectEnglish: any;
|
|
332
329
|
subjectMaths: any;
|
|
333
330
|
subjectScience: any;
|
|
@@ -347,7 +344,6 @@ export declare const ToggleGroupItem: import("@stitches/react/types/styled-compo
|
|
|
347
344
|
"7": any;
|
|
348
345
|
"8": any;
|
|
349
346
|
"9": any;
|
|
350
|
-
"10": any;
|
|
351
347
|
};
|
|
352
348
|
fontSizes: {
|
|
353
349
|
xs: any;
|
|
@@ -70,7 +70,6 @@ export declare const StyledRoot: import("@stitches/react/types/styled-component"
|
|
|
70
70
|
warning: any;
|
|
71
71
|
warningMid: any;
|
|
72
72
|
warningDark: any;
|
|
73
|
-
warningText: any;
|
|
74
73
|
subjectEnglish: any;
|
|
75
74
|
subjectMaths: any;
|
|
76
75
|
subjectScience: any;
|
|
@@ -90,7 +89,6 @@ export declare const StyledRoot: import("@stitches/react/types/styled-component"
|
|
|
90
89
|
"7": any;
|
|
91
90
|
"8": any;
|
|
92
91
|
"9": any;
|
|
93
|
-
"10": any;
|
|
94
92
|
};
|
|
95
93
|
fontSizes: {
|
|
96
94
|
xs: any;
|
|
@@ -60,7 +60,6 @@ export declare const ToggleGroup: {
|
|
|
60
60
|
warning: any;
|
|
61
61
|
warningMid: any;
|
|
62
62
|
warningDark: any;
|
|
63
|
-
warningText: any;
|
|
64
63
|
subjectEnglish: any;
|
|
65
64
|
subjectMaths: any;
|
|
66
65
|
subjectScience: any;
|
|
@@ -80,7 +79,6 @@ export declare const ToggleGroup: {
|
|
|
80
79
|
"7": any;
|
|
81
80
|
"8": any;
|
|
82
81
|
"9": any;
|
|
83
|
-
"10": any;
|
|
84
82
|
};
|
|
85
83
|
fontSizes: {
|
|
86
84
|
xs: any;
|
|
@@ -328,7 +326,6 @@ export declare const ToggleGroup: {
|
|
|
328
326
|
warning: any;
|
|
329
327
|
warningMid: any;
|
|
330
328
|
warningDark: any;
|
|
331
|
-
warningText: any;
|
|
332
329
|
subjectEnglish: any;
|
|
333
330
|
subjectMaths: any;
|
|
334
331
|
subjectScience: any;
|
|
@@ -348,7 +345,6 @@ export declare const ToggleGroup: {
|
|
|
348
345
|
"7": any;
|
|
349
346
|
"8": any;
|
|
350
347
|
"9": any;
|
|
351
|
-
"10": any;
|
|
352
348
|
};
|
|
353
349
|
fontSizes: {
|
|
354
350
|
xs: any;
|
|
@@ -599,7 +595,6 @@ export declare const ToggleGroup: {
|
|
|
599
595
|
warning: any;
|
|
600
596
|
warningMid: any;
|
|
601
597
|
warningDark: any;
|
|
602
|
-
warningText: any;
|
|
603
598
|
subjectEnglish: any;
|
|
604
599
|
subjectMaths: any;
|
|
605
600
|
subjectScience: any;
|
|
@@ -619,7 +614,6 @@ export declare const ToggleGroup: {
|
|
|
619
614
|
"7": any;
|
|
620
615
|
"8": any;
|
|
621
616
|
"9": any;
|
|
622
|
-
"10": any;
|
|
623
617
|
};
|
|
624
618
|
fontSizes: {
|
|
625
619
|
xs: any;
|
|
@@ -872,7 +866,6 @@ export declare const ToggleGroup: {
|
|
|
872
866
|
warning: any;
|
|
873
867
|
warningMid: any;
|
|
874
868
|
warningDark: any;
|
|
875
|
-
warningText: any;
|
|
876
869
|
subjectEnglish: any;
|
|
877
870
|
subjectMaths: any;
|
|
878
871
|
subjectScience: any;
|
|
@@ -892,7 +885,6 @@ export declare const ToggleGroup: {
|
|
|
892
885
|
"7": any;
|
|
893
886
|
"8": any;
|
|
894
887
|
"9": any;
|
|
895
|
-
"10": any;
|
|
896
888
|
};
|
|
897
889
|
fontSizes: {
|
|
898
890
|
xs: any;
|
|
@@ -1144,7 +1136,6 @@ export declare const ToggleGroup: {
|
|
|
1144
1136
|
warning: any;
|
|
1145
1137
|
warningMid: any;
|
|
1146
1138
|
warningDark: any;
|
|
1147
|
-
warningText: any;
|
|
1148
1139
|
subjectEnglish: any;
|
|
1149
1140
|
subjectMaths: any;
|
|
1150
1141
|
subjectScience: any;
|
|
@@ -1164,7 +1155,6 @@ export declare const ToggleGroup: {
|
|
|
1164
1155
|
"7": any;
|
|
1165
1156
|
"8": any;
|
|
1166
1157
|
"9": any;
|
|
1167
|
-
"10": any;
|
|
1168
1158
|
};
|
|
1169
1159
|
fontSizes: {
|
|
1170
1160
|
xs: any;
|
|
@@ -62,7 +62,6 @@ declare const StyledContent: import("@stitches/react/types/styled-component").St
|
|
|
62
62
|
warning: any;
|
|
63
63
|
warningMid: any;
|
|
64
64
|
warningDark: any;
|
|
65
|
-
warningText: any;
|
|
66
65
|
subjectEnglish: any;
|
|
67
66
|
subjectMaths: any;
|
|
68
67
|
subjectScience: any;
|
|
@@ -82,7 +81,6 @@ declare const StyledContent: import("@stitches/react/types/styled-component").St
|
|
|
82
81
|
"7": any;
|
|
83
82
|
"8": any;
|
|
84
83
|
"9": any;
|
|
85
|
-
"10": any;
|
|
86
84
|
};
|
|
87
85
|
fontSizes: {
|
|
88
86
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Error as s}from"@atom-learning/icons";import*as r from"react";import{Flex as m}from"../flex/Flex.js";import{Icon as i}from"../icon/Icon.js";import{Text as a}from"../text/Text.js";const n=({css:e,children:o
|
|
1
|
+
import{Error as s}from"@atom-learning/icons";import*as r from"react";import{Flex as m}from"../flex/Flex.js";import{Icon as i}from"../icon/Icon.js";import{Text as a}from"../text/Text.js";const n=({css:e,children:t,...o})=>r.createElement(m,{css:{color:"$danger",alignItems:"flex-start",...e},...o},r.createElement(i,{is:s,size:"sm",css:{mr:"$2",flexShrink:0},"aria-hidden":!0}),r.createElement(a,{css:{color:"inherit",transform:"translateY($space$1)"},size:"sm"},t));export{n as ValidationError};
|
|
@@ -62,7 +62,6 @@ declare const StyledVideo: import("@stitches/react/types/styled-component").Styl
|
|
|
62
62
|
warning: any;
|
|
63
63
|
warningMid: any;
|
|
64
64
|
warningDark: any;
|
|
65
|
-
warningText: any;
|
|
66
65
|
subjectEnglish: any;
|
|
67
66
|
subjectMaths: any;
|
|
68
67
|
subjectScience: any;
|
|
@@ -82,7 +81,6 @@ declare const StyledVideo: import("@stitches/react/types/styled-component").Styl
|
|
|
82
81
|
"7": any;
|
|
83
82
|
"8": any;
|
|
84
83
|
"9": any;
|
|
85
|
-
"10": any;
|
|
86
84
|
};
|
|
87
85
|
fontSizes: {
|
|
88
86
|
xs: any;
|
|
@@ -334,7 +332,6 @@ export declare const Video: React.ForwardRefExoticComponent<Pick<VideoProps, str
|
|
|
334
332
|
warning: any;
|
|
335
333
|
warningMid: any;
|
|
336
334
|
warningDark: any;
|
|
337
|
-
warningText: any;
|
|
338
335
|
subjectEnglish: any;
|
|
339
336
|
subjectMaths: any;
|
|
340
337
|
subjectScience: any;
|
|
@@ -354,7 +351,6 @@ export declare const Video: React.ForwardRefExoticComponent<Pick<VideoProps, str
|
|
|
354
351
|
"7": any;
|
|
355
352
|
"8": any;
|
|
356
353
|
"9": any;
|
|
357
|
-
"10": any;
|
|
358
354
|
};
|
|
359
355
|
fontSizes: {
|
|
360
356
|
xs: any;
|