@atom-learning/components 1.22.2 → 2.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -7
- package/dist/components/accordion/Accordion.d.ts +2 -0
- package/dist/components/accordion/AccordionContent.d.ts +2 -0
- package/dist/components/accordion/AccordionItem.d.ts +2 -0
- package/dist/components/accordion/AccordionTrigger.d.ts +2 -0
- package/dist/components/action-icon/ActionIcon.d.ts +2 -0
- package/dist/components/alert-dialog/AlertDialog.d.ts +2 -0
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +2 -0
- package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
- package/dist/components/alert-dialog/alert-context/AlertDialog.js +1 -1
- package/dist/components/badge/Badge.d.ts +4 -0
- package/dist/components/box/Box.d.ts +2 -0
- package/dist/components/button/Button.d.ts +2 -0
- package/dist/components/button/Button.js +1 -1
- package/dist/components/calendar/Day.d.ts +2 -0
- package/dist/components/carousel/CarouselPagination.d.ts +2 -0
- package/dist/components/carousel/CarouselSlide.d.ts +2 -0
- package/dist/components/carousel/CarouselSlider.d.ts +2 -0
- package/dist/components/checkbox/Checkbox.d.ts +2 -0
- package/dist/components/combobox/Combobox.d.ts +2 -0
- package/dist/components/combobox/ComboboxInput.d.ts +2 -0
- package/dist/components/combobox/ComboboxInput.js +1 -1
- package/dist/components/combobox/ComboboxList.d.ts +2 -0
- package/dist/components/combobox/ComboboxOption.d.ts +2 -0
- package/dist/components/combobox/ComboboxPopover.d.ts +2 -0
- package/dist/components/dialog/Dialog.d.ts +2 -0
- package/dist/components/dialog/DialogBackground.d.ts +4 -0
- package/dist/components/dialog/DialogClose.d.ts +2 -0
- package/dist/components/dialog/DialogContent.d.ts +2 -0
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/divider/Divider.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +2 -0
- package/dist/components/empty-state/EmptyState.d.ts +4 -0
- package/dist/components/empty-state/EmptyState.js +1 -1
- package/dist/components/empty-state/EmptyStateBody.d.ts +4 -0
- package/dist/components/empty-state/EmptyStateBody.js +1 -1
- package/dist/components/empty-state/EmptyStateImage.d.ts +4 -0
- package/dist/components/empty-state/EmptyStateImage.js +1 -1
- package/dist/components/empty-state/EmptyStateTitle.d.ts +2 -0
- package/dist/components/flex/Flex.d.ts +2 -0
- package/dist/components/form/Form.d.ts +2 -0
- package/dist/components/grid/Grid.d.ts +3 -1
- package/dist/components/heading/Heading.d.ts +2 -0
- package/dist/components/icon/Icon.d.ts +2 -0
- package/dist/components/image/Image.d.ts +2 -0
- package/dist/components/input/Input.d.ts +2 -0
- package/dist/components/label/Label.d.ts +2 -0
- package/dist/components/link/Link.d.ts +2 -0
- package/dist/components/list/List.d.ts +4 -0
- package/dist/components/notification-badge/NotificationBadge.d.ts +4 -0
- package/dist/components/popover/Popover.d.ts +2 -0
- package/dist/components/popover/PopoverContent.d.ts +2 -0
- package/dist/components/popover/PopoverContent.js +1 -1
- package/dist/components/progress-bar/ProgressBar.d.ts +2 -0
- package/dist/components/radio-button/RadioButton.d.ts +2 -0
- package/dist/components/radio-button/RadioButtonGroup.d.ts +2 -0
- package/dist/components/radio-button/RadioButtonGroup.js +1 -1
- package/dist/components/radio-card/RadioCard.d.ts +2 -0
- package/dist/components/radio-card/RadioCard.js +1 -1
- package/dist/components/search-input/SearchInput.js +1 -1
- package/dist/components/select/Select.d.ts +2 -0
- package/dist/components/select/Select.js +1 -1
- package/dist/components/slider/Slider.d.ts +2 -0
- package/dist/components/stack/Stack.d.ts +3 -1
- package/dist/components/stack-content/StackContent.d.ts +2 -0
- package/dist/components/stack-content/StackContent.js +1 -1
- package/dist/components/stepper/StepperStepBullet.d.ts +4 -0
- package/dist/components/stepper/StepperStepContainer.d.ts +4 -0
- package/dist/components/stepper/StepperStepLabel.d.ts +4 -0
- package/dist/components/switch/Switch.d.ts +2 -0
- package/dist/components/table/Table.d.ts +2 -0
- package/dist/components/table/TableBody.d.ts +2 -0
- package/dist/components/table/TableCell.d.ts +2 -0
- package/dist/components/table/TableFooter.d.ts +2 -0
- package/dist/components/table/TableFooterCell.d.ts +2 -0
- package/dist/components/table/TableHeader.d.ts +2 -0
- package/dist/components/table/TableHeaderCell.d.ts +2 -0
- package/dist/components/table/TableRow.d.ts +2 -0
- package/dist/components/tabs/TabTrigger.d.ts +2 -0
- package/dist/components/tabs/Tabs.d.ts +4 -0
- package/dist/components/tabs/TabsTriggerList.d.ts +2 -0
- package/dist/components/text/Text.d.ts +2 -0
- package/dist/components/textarea/Textarea.d.ts +2 -0
- package/dist/components/toast/Toast.d.ts +2 -0
- package/dist/components/toast/Toast.js +1 -1
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +4 -0
- package/dist/components/toggle-group/ToggleGroupButton.js +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +4 -0
- package/dist/components/toggle-group/ToggleGroupRoot.d.ts +2 -0
- package/dist/components/toggle-group/index.d.ts +10 -0
- package/dist/components/tooltip/TooltipContent.d.ts +2 -0
- package/dist/components/video/Video.d.ts +4 -0
- package/dist/docgen.json +1 -1
- package/dist/docs/Flex.mdx +3 -3
- package/dist/docs/Slider.mdx +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/stitches.d.ts +20 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
## [1.22.2](https://github.com/Atom-Learning/components/compare/v1.22.1...v1.22.2) (2022-08-01)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* reduce dialog z-index value ([b4d678a](https://github.com/Atom-Learning/components/commit/b4d678a7b06819733c729219ff19a929a2f4a84b))
|
|
7
|
-
|
|
8
1
|
# [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
|
|
9
2
|
|
|
10
3
|
|
|
@@ -62,6 +62,7 @@ declare const StyledRoot: import("@stitches/react/types/styled-component").Style
|
|
|
62
62
|
warning: any;
|
|
63
63
|
warningMid: any;
|
|
64
64
|
warningDark: any;
|
|
65
|
+
warningText: any;
|
|
65
66
|
subjectEnglish: any;
|
|
66
67
|
subjectMaths: any;
|
|
67
68
|
subjectScience: any;
|
|
@@ -81,6 +82,7 @@ declare const StyledRoot: import("@stitches/react/types/styled-component").Style
|
|
|
81
82
|
"7": any;
|
|
82
83
|
"8": any;
|
|
83
84
|
"9": any;
|
|
85
|
+
"10": any;
|
|
84
86
|
};
|
|
85
87
|
fontSizes: {
|
|
86
88
|
xs: any;
|
|
@@ -59,6 +59,7 @@ declare const StyledContent: import("@stitches/react/types/styled-component").St
|
|
|
59
59
|
warning: any;
|
|
60
60
|
warningMid: any;
|
|
61
61
|
warningDark: any;
|
|
62
|
+
warningText: any;
|
|
62
63
|
subjectEnglish: any;
|
|
63
64
|
subjectMaths: any;
|
|
64
65
|
subjectScience: any;
|
|
@@ -78,6 +79,7 @@ declare const StyledContent: import("@stitches/react/types/styled-component").St
|
|
|
78
79
|
"7": any;
|
|
79
80
|
"8": any;
|
|
80
81
|
"9": any;
|
|
82
|
+
"10": any;
|
|
81
83
|
};
|
|
82
84
|
fontSizes: {
|
|
83
85
|
xs: any;
|
|
@@ -59,6 +59,7 @@ declare const StyledItem: import("@stitches/react/types/styled-component").Style
|
|
|
59
59
|
warning: any;
|
|
60
60
|
warningMid: any;
|
|
61
61
|
warningDark: any;
|
|
62
|
+
warningText: any;
|
|
62
63
|
subjectEnglish: any;
|
|
63
64
|
subjectMaths: any;
|
|
64
65
|
subjectScience: any;
|
|
@@ -78,6 +79,7 @@ declare const StyledItem: import("@stitches/react/types/styled-component").Style
|
|
|
78
79
|
"7": any;
|
|
79
80
|
"8": any;
|
|
80
81
|
"9": any;
|
|
82
|
+
"10": any;
|
|
81
83
|
};
|
|
82
84
|
fontSizes: {
|
|
83
85
|
xs: any;
|
|
@@ -61,6 +61,7 @@ declare const StyledTrigger: import("@stitches/react/types/styled-component").St
|
|
|
61
61
|
warning: any;
|
|
62
62
|
warningMid: any;
|
|
63
63
|
warningDark: any;
|
|
64
|
+
warningText: any;
|
|
64
65
|
subjectEnglish: any;
|
|
65
66
|
subjectMaths: any;
|
|
66
67
|
subjectScience: any;
|
|
@@ -80,6 +81,7 @@ declare const StyledTrigger: import("@stitches/react/types/styled-component").St
|
|
|
80
81
|
"7": any;
|
|
81
82
|
"8": any;
|
|
82
83
|
"9": any;
|
|
84
|
+
"10": any;
|
|
83
85
|
};
|
|
84
86
|
fontSizes: {
|
|
85
87
|
xs: any;
|
|
@@ -67,6 +67,7 @@ declare const StyledButton: import("@stitches/react/types/styled-component").Sty
|
|
|
67
67
|
warning: any;
|
|
68
68
|
warningMid: any;
|
|
69
69
|
warningDark: any;
|
|
70
|
+
warningText: any;
|
|
70
71
|
subjectEnglish: any;
|
|
71
72
|
subjectMaths: any;
|
|
72
73
|
subjectScience: any;
|
|
@@ -86,6 +87,7 @@ declare const StyledButton: import("@stitches/react/types/styled-component").Sty
|
|
|
86
87
|
"7": any;
|
|
87
88
|
"8": any;
|
|
88
89
|
"9": any;
|
|
90
|
+
"10": any;
|
|
89
91
|
};
|
|
90
92
|
fontSizes: {
|
|
91
93
|
xs: any;
|
|
@@ -61,6 +61,7 @@ declare const StyledAlertDialog: import("@stitches/react/types/styled-component"
|
|
|
61
61
|
warning: any;
|
|
62
62
|
warningMid: any;
|
|
63
63
|
warningDark: any;
|
|
64
|
+
warningText: any;
|
|
64
65
|
subjectEnglish: any;
|
|
65
66
|
subjectMaths: any;
|
|
66
67
|
subjectScience: any;
|
|
@@ -80,6 +81,7 @@ declare const StyledAlertDialog: import("@stitches/react/types/styled-component"
|
|
|
80
81
|
"7": any;
|
|
81
82
|
"8": any;
|
|
82
83
|
"9": any;
|
|
84
|
+
"10": any;
|
|
83
85
|
};
|
|
84
86
|
fontSizes: {
|
|
85
87
|
xs: any;
|
|
@@ -61,6 +61,7 @@ declare const StyledAlertDialogContent: import("@stitches/react/types/styled-com
|
|
|
61
61
|
warning: any;
|
|
62
62
|
warningMid: any;
|
|
63
63
|
warningDark: any;
|
|
64
|
+
warningText: any;
|
|
64
65
|
subjectEnglish: any;
|
|
65
66
|
subjectMaths: any;
|
|
66
67
|
subjectScience: any;
|
|
@@ -80,6 +81,7 @@ declare const StyledAlertDialogContent: import("@stitches/react/types/styled-com
|
|
|
80
81
|
"7": any;
|
|
81
82
|
"8": any;
|
|
82
83
|
"9": any;
|
|
84
|
+
"10": any;
|
|
83
85
|
};
|
|
84
86
|
fontSizes: {
|
|
85
87
|
xs: any;
|
|
@@ -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/dialog.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:"$
|
|
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/dialog.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:"$6",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 e from"react";import{Button as i}from"../../button/Button.js";import{Heading as p}from"../../heading/Heading.js";import{Stack as f}from"../../stack/Stack.js";import{Text as E}from"../../text/Text.js";import{AlertDialog as t}from"../AlertDialog.js";const u=({title:r,description:o,onAction:n,cancelActionText:c,confirmActionText:m,onClose:a,...s})=>e.createElement(t,{defaultOpen:!0},e.createElement(t.Content,{onEscapeKeyDown:l=>l.preventDefault(),onCloseAutoFocus:a,...s},e.createElement(p,{as:t.Title,size:"sm",css:{mb:"$
|
|
1
|
+
import*as e from"react";import{Button as i}from"../../button/Button.js";import{Heading as p}from"../../heading/Heading.js";import{Stack as f}from"../../stack/Stack.js";import{Text as E}from"../../text/Text.js";import{AlertDialog as t}from"../AlertDialog.js";const u=({title:r,description:o,onAction:n,cancelActionText:c,confirmActionText:m,onClose:a,...s})=>e.createElement(t,{defaultOpen:!0},e.createElement(t.Content,{onEscapeKeyDown:l=>l.preventDefault(),onCloseAutoFocus:a,...s},e.createElement(p,{as:t.Title,size:"sm",css:{mb:"$6"}},r),o&&e.createElement(E,{as:t.Description,css:{mb:"$6"}},o),e.createElement(f,{gap:"2",justify:"end"},c&&e.createElement(i,{appearance:"outline",as:t.Cancel,onClick:()=>n(!1),size:"sm"},c),e.createElement(i,{as:t.Action,onClick:()=>n(!0),size:"sm"},m))));export{u as Alert};
|
|
@@ -59,6 +59,7 @@ declare const StyledBadge: import("@stitches/react/types/styled-component").Styl
|
|
|
59
59
|
warning: any;
|
|
60
60
|
warningMid: any;
|
|
61
61
|
warningDark: any;
|
|
62
|
+
warningText: any;
|
|
62
63
|
subjectEnglish: any;
|
|
63
64
|
subjectMaths: any;
|
|
64
65
|
subjectScience: any;
|
|
@@ -78,6 +79,7 @@ declare const StyledBadge: import("@stitches/react/types/styled-component").Styl
|
|
|
78
79
|
"7": any;
|
|
79
80
|
"8": any;
|
|
80
81
|
"9": any;
|
|
82
|
+
"10": any;
|
|
81
83
|
};
|
|
82
84
|
fontSizes: {
|
|
83
85
|
xs: any;
|
|
@@ -326,6 +328,7 @@ declare const StyledBadge: import("@stitches/react/types/styled-component").Styl
|
|
|
326
328
|
warning: any;
|
|
327
329
|
warningMid: any;
|
|
328
330
|
warningDark: any;
|
|
331
|
+
warningText: any;
|
|
329
332
|
subjectEnglish: any;
|
|
330
333
|
subjectMaths: any;
|
|
331
334
|
subjectScience: any;
|
|
@@ -345,6 +348,7 @@ declare const StyledBadge: import("@stitches/react/types/styled-component").Styl
|
|
|
345
348
|
"7": any;
|
|
346
349
|
"8": any;
|
|
347
350
|
"9": any;
|
|
351
|
+
"10": any;
|
|
348
352
|
};
|
|
349
353
|
fontSizes: {
|
|
350
354
|
xs: any;
|
|
@@ -58,6 +58,7 @@ export declare const Box: import("@stitches/react/types/styled-component").Style
|
|
|
58
58
|
warning: any;
|
|
59
59
|
warningMid: any;
|
|
60
60
|
warningDark: any;
|
|
61
|
+
warningText: any;
|
|
61
62
|
subjectEnglish: any;
|
|
62
63
|
subjectMaths: any;
|
|
63
64
|
subjectScience: any;
|
|
@@ -77,6 +78,7 @@ export declare const Box: import("@stitches/react/types/styled-component").Style
|
|
|
77
78
|
"7": any;
|
|
78
79
|
"8": any;
|
|
79
80
|
"9": any;
|
|
81
|
+
"10": any;
|
|
80
82
|
};
|
|
81
83
|
fontSizes: {
|
|
82
84
|
xs: any;
|
|
@@ -69,6 +69,7 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
69
69
|
warning: any;
|
|
70
70
|
warningMid: any;
|
|
71
71
|
warningDark: any;
|
|
72
|
+
warningText: any;
|
|
72
73
|
subjectEnglish: any;
|
|
73
74
|
subjectMaths: any;
|
|
74
75
|
subjectScience: any;
|
|
@@ -88,6 +89,7 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
88
89
|
"7": any;
|
|
89
90
|
"8": any;
|
|
90
91
|
"9": any;
|
|
92
|
+
"10": any;
|
|
91
93
|
};
|
|
92
94
|
fontSizes: {
|
|
93
95
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{darken as i,opacify as s}from"color2k";import*as o from"react";import{Box as b}from"../box/Box.js";import{Icon as w}from"../icon/Icon.js";import{Loader as k}from"../loader/Loader.js";import{styled as v,theme as l}from"../../stitches.js";const d=(e,r,a)=>({border:"1px solid",borderColor:"currentColor",color:e,"&[disabled]":{borderColor:"$tonal400",color:"$tonal400",cursor:"not-allowed"},"&:not([disabled]):hover, &:not([disabled]):focus":{textDecoration:"none",color:r},"&:not([disabled]):active":{color:a}}),n=(e,r,a,t="white")=>({bg:e,color:t,"&[disabled]":{bg:"$tonal100",color:"$tonal400",cursor:"not-allowed"},"&:not([disabled]):hover, &:not([disabled]):focus":{bg:r,color:t},"&:not([disabled]):active":{bg:a}}),p=v("button",{alignItems:"center",bg:"unset",border:"unset",borderRadius:"$0",cursor:"pointer",display:"flex",fontFamily:"$body",fontWeight:600,justifyContent:"center",p:"unset",textDecoration:"none",transition:"all 100ms ease-out",whiteSpace:"nowrap",width:"max-content",variants:{theme:{primary:{},secondary:{},success:{},warning:{},danger:{},neutral:{}},appearance:{solid:{},outline:{}},size:{sm:{fontSize:"$sm",lineHeight:1.53,height:"$3",px:"$4"},md:{fontSize:"$md",lineHeight:1.5,height:"$4",px:"$
|
|
1
|
+
import{darken as i,opacify as s}from"color2k";import*as o from"react";import{Box as b}from"../box/Box.js";import{Icon as w}from"../icon/Icon.js";import{Loader as k}from"../loader/Loader.js";import{styled as v,theme as l}from"../../stitches.js";const d=(e,r,a)=>({border:"1px solid",borderColor:"currentColor",color:e,"&[disabled]":{borderColor:"$tonal400",color:"$tonal400",cursor:"not-allowed"},"&:not([disabled]):hover, &:not([disabled]):focus":{textDecoration:"none",color:r},"&:not([disabled]):active":{color:a}}),n=(e,r,a,t="white")=>({bg:e,color:t,"&[disabled]":{bg:"$tonal100",color:"$tonal400",cursor:"not-allowed"},"&:not([disabled]):hover, &:not([disabled]):focus":{bg:r,color:t},"&:not([disabled]):active":{bg:a}}),p=v("button",{alignItems:"center",bg:"unset",border:"unset",borderRadius:"$0",cursor:"pointer",display:"flex",fontFamily:"$body",fontWeight:600,justifyContent:"center",p:"unset",textDecoration:"none",transition:"all 100ms ease-out",whiteSpace:"nowrap",width:"max-content",variants:{theme:{primary:{},secondary:{},success:{},warning:{},danger:{},neutral:{}},appearance:{solid:{},outline:{}},size:{sm:{fontSize:"$sm",lineHeight:1.53,height:"$3",px:"$4"},md:{fontSize:"$md",lineHeight:1.5,height:"$4",px:"$6"},lg:{fontSize:"$lg",lineHeight:1.5,height:"$5",px:"$6"}},isLoading:{true:{cursor:"not-allowed",opacity:.6,pointerEvents:"none"}},fullWidth:{false:{width:"max-content"},true:{width:"100%"}},isRounded:{true:{borderRadius:"$round"}}},compoundVariants:[{theme:"primary",appearance:"solid",css:n("$primary","$primaryMid","$primaryDark")},{theme:"secondary",appearance:"solid",css:n("$primaryDark",i(l.colors.primaryDark.value,.1),i(l.colors.primaryDark.value,.15))},{theme:"success",appearance:"solid",css:n("$success","$successMid","$successDark")},{theme:"warning",appearance:"solid",css:n("$warning","$warningMid","$warningDark","$tonal500")},{theme:"danger",appearance:"solid",css:n("$danger","$dangerMid","$dangerDark")},{theme:"neutral",appearance:"solid",css:n("white",s("white",-.1),s("white",-.25),"$primary")},{theme:"primary",appearance:"outline",css:d("$primary","$primaryMid","$primaryDark")},{theme:"neutral",appearance:"outline",css:d("white",s("white",-.2),s("white",-.35))},{theme:"secondary",appearance:"outline",css:d("$primaryDark",i(l.colors.primaryDark.value,.1),i(l.colors.primaryDark.value,.15))}]}),D=({isLoading:e,children:r})=>o.createElement(o.Fragment,null,o.createElement(k,{css:{opacity:e?1:0,position:"absolute",transition:"opacity 150ms"}}),o.createElement(b,{as:"span",css:e?{opacity:0,transition:"opacity 150ms"}:{}},r)),x=e=>{switch(e){case"lg":return 22;case"md":return 20;case"sm":default:return 16}},m=(e,r)=>o.Children.map(e,(a,t)=>(a==null?void 0:a.type)===w?o.cloneElement(a,{css:{[t===0?"mr":"ml"]:r==="sm"?"$2":"$3",size:x(r),...a.props.css?a.props.css:{}}}):a),u=o.forwardRef(({children:e,isLoading:r,onClick:a,href:t,appearance:h="solid",size:c="md",theme:y="primary",type:g="button",...$},f)=>o.createElement(p,{isLoading:r||!1,onClick:r?void 0:a,appearance:h,size:c,theme:y,...$,...t?{as:"a",href:t,onClick:void 0}:{},...t?{}:{type:g},ref:f},typeof r=="boolean"?o.createElement(D,{isLoading:r},m(e,c)):m(e,c)));u.displayName="Button";export{u as Button,p as StyledButton};
|
|
@@ -62,6 +62,7 @@ export declare const Day: import("@stitches/react/types/styled-component").Style
|
|
|
62
62
|
warning: any;
|
|
63
63
|
warningMid: any;
|
|
64
64
|
warningDark: any;
|
|
65
|
+
warningText: any;
|
|
65
66
|
subjectEnglish: any;
|
|
66
67
|
subjectMaths: any;
|
|
67
68
|
subjectScience: any;
|
|
@@ -81,6 +82,7 @@ export declare const Day: import("@stitches/react/types/styled-component").Style
|
|
|
81
82
|
"7": any;
|
|
82
83
|
"8": any;
|
|
83
84
|
"9": any;
|
|
85
|
+
"10": any;
|
|
84
86
|
};
|
|
85
87
|
fontSizes: {
|
|
86
88
|
xs: any;
|
|
@@ -59,6 +59,7 @@ export declare const CarouselPagination: import("@stitches/react/types/styled-co
|
|
|
59
59
|
warning: any;
|
|
60
60
|
warningMid: any;
|
|
61
61
|
warningDark: any;
|
|
62
|
+
warningText: any;
|
|
62
63
|
subjectEnglish: any;
|
|
63
64
|
subjectMaths: any;
|
|
64
65
|
subjectScience: any;
|
|
@@ -78,6 +79,7 @@ export declare const CarouselPagination: import("@stitches/react/types/styled-co
|
|
|
78
79
|
"7": any;
|
|
79
80
|
"8": any;
|
|
80
81
|
"9": any;
|
|
82
|
+
"10": any;
|
|
81
83
|
};
|
|
82
84
|
fontSizes: {
|
|
83
85
|
xs: any;
|
|
@@ -59,6 +59,7 @@ declare const StyledSlide: import("@stitches/react/types/styled-component").Styl
|
|
|
59
59
|
warning: any;
|
|
60
60
|
warningMid: any;
|
|
61
61
|
warningDark: any;
|
|
62
|
+
warningText: any;
|
|
62
63
|
subjectEnglish: any;
|
|
63
64
|
subjectMaths: any;
|
|
64
65
|
subjectScience: any;
|
|
@@ -78,6 +79,7 @@ declare const StyledSlide: import("@stitches/react/types/styled-component").Styl
|
|
|
78
79
|
"7": any;
|
|
79
80
|
"8": any;
|
|
80
81
|
"9": any;
|
|
82
|
+
"10": any;
|
|
81
83
|
};
|
|
82
84
|
fontSizes: {
|
|
83
85
|
xs: any;
|
|
@@ -61,6 +61,7 @@ export declare const CarouselSlider: import("@stitches/react/types/styled-compon
|
|
|
61
61
|
warning: any;
|
|
62
62
|
warningMid: any;
|
|
63
63
|
warningDark: any;
|
|
64
|
+
warningText: any;
|
|
64
65
|
subjectEnglish: any;
|
|
65
66
|
subjectMaths: any;
|
|
66
67
|
subjectScience: any;
|
|
@@ -80,6 +81,7 @@ export declare const CarouselSlider: import("@stitches/react/types/styled-compon
|
|
|
80
81
|
"7": any;
|
|
81
82
|
"8": any;
|
|
82
83
|
"9": any;
|
|
84
|
+
"10": any;
|
|
83
85
|
};
|
|
84
86
|
fontSizes: {
|
|
85
87
|
xs: any;
|
|
@@ -62,6 +62,7 @@ declare const StyledCheckbox: import("@stitches/react/types/styled-component").S
|
|
|
62
62
|
warning: any;
|
|
63
63
|
warningMid: any;
|
|
64
64
|
warningDark: any;
|
|
65
|
+
warningText: any;
|
|
65
66
|
subjectEnglish: any;
|
|
66
67
|
subjectMaths: any;
|
|
67
68
|
subjectScience: any;
|
|
@@ -81,6 +82,7 @@ declare const StyledCheckbox: import("@stitches/react/types/styled-component").S
|
|
|
81
82
|
"7": any;
|
|
82
83
|
"8": any;
|
|
83
84
|
"9": any;
|
|
85
|
+
"10": any;
|
|
84
86
|
};
|
|
85
87
|
fontSizes: {
|
|
86
88
|
xs: any;
|
|
@@ -64,6 +64,7 @@ declare const StyledCombobox: import("@stitches/react/types/styled-component").S
|
|
|
64
64
|
warning: any;
|
|
65
65
|
warningMid: any;
|
|
66
66
|
warningDark: any;
|
|
67
|
+
warningText: any;
|
|
67
68
|
subjectEnglish: any;
|
|
68
69
|
subjectMaths: any;
|
|
69
70
|
subjectScience: any;
|
|
@@ -83,6 +84,7 @@ declare const StyledCombobox: import("@stitches/react/types/styled-component").S
|
|
|
83
84
|
"7": any;
|
|
84
85
|
"8": any;
|
|
85
86
|
"9": any;
|
|
87
|
+
"10": any;
|
|
86
88
|
};
|
|
87
89
|
fontSizes: {
|
|
88
90
|
xs: any;
|
|
@@ -60,6 +60,7 @@ export declare const ComboboxInput: import("@stitches/react/types/styled-compone
|
|
|
60
60
|
warning: any;
|
|
61
61
|
warningMid: any;
|
|
62
62
|
warningDark: any;
|
|
63
|
+
warningText: any;
|
|
63
64
|
subjectEnglish: any;
|
|
64
65
|
subjectMaths: any;
|
|
65
66
|
subjectScience: any;
|
|
@@ -79,6 +80,7 @@ export declare const ComboboxInput: import("@stitches/react/types/styled-compone
|
|
|
79
80
|
"7": any;
|
|
80
81
|
"8": any;
|
|
81
82
|
"9": any;
|
|
83
|
+
"10": any;
|
|
82
84
|
};
|
|
83
85
|
fontSizes: {
|
|
84
86
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ComboboxInput as o}from"@reach/combobox";import{styled as r,theme as e}from"../../stitches.js";import{encodeBackgroundIcon as a}from"../../utilities/style/encode-background-icon.js";const t=r(o,{boxShadow:"none",fontSize:"$md",appearance:"none",backgroundImage:a(e.colors.tonal300.value,"chevron"),backgroundPosition:"right $space$3 top 50%, 0 0",backgroundRepeat:"no-repeat, repeat",backgroundSize:"20px auto, 100%",border:"1px solid $tonal300",borderRadius:"$0",boxSizing:"border-box",color:"$tonal600",cursor:"text",display:"block",fontFamily:"$body",height:"$4",pl:"$3",pr:"$
|
|
1
|
+
import{ComboboxInput as o}from"@reach/combobox";import{styled as r,theme as e}from"../../stitches.js";import{encodeBackgroundIcon as a}from"../../utilities/style/encode-background-icon.js";const t=r(o,{boxShadow:"none",fontSize:"$md",appearance:"none",backgroundImage:a(e.colors.tonal300.value,"chevron"),backgroundPosition:"right $space$3 top 50%, 0 0",backgroundRepeat:"no-repeat, repeat",backgroundSize:"20px auto, 100%",border:"1px solid $tonal300",borderRadius:"$0",boxSizing:"border-box",color:"$tonal600",cursor:"text",display:"block",fontFamily:"$body",height:"$4",pl:"$3",pr:"$7",transition:"all 100ms ease-out",width:"100%","&::placeholder":{color:"$tonal300",opacity:1},"&:focus-within":{borderColor:"$primary",outline:"none"},"&[disabled]":{backgroundColor:"$tonal100",color:"$tonal400",cursor:"not-allowed"},variants:{state:{error:{border:"1px solid $danger"}}}});export{t as ComboboxInput};
|
|
@@ -58,6 +58,7 @@ export declare const ComboboxList: import("@stitches/react/types/styled-componen
|
|
|
58
58
|
warning: any;
|
|
59
59
|
warningMid: any;
|
|
60
60
|
warningDark: any;
|
|
61
|
+
warningText: any;
|
|
61
62
|
subjectEnglish: any;
|
|
62
63
|
subjectMaths: any;
|
|
63
64
|
subjectScience: any;
|
|
@@ -77,6 +78,7 @@ export declare const ComboboxList: import("@stitches/react/types/styled-componen
|
|
|
77
78
|
"7": any;
|
|
78
79
|
"8": any;
|
|
79
80
|
"9": any;
|
|
81
|
+
"10": any;
|
|
80
82
|
};
|
|
81
83
|
fontSizes: {
|
|
82
84
|
xs: any;
|
|
@@ -58,6 +58,7 @@ export declare const ComboboxOption: import("@stitches/react/types/styled-compon
|
|
|
58
58
|
warning: any;
|
|
59
59
|
warningMid: any;
|
|
60
60
|
warningDark: any;
|
|
61
|
+
warningText: any;
|
|
61
62
|
subjectEnglish: any;
|
|
62
63
|
subjectMaths: any;
|
|
63
64
|
subjectScience: any;
|
|
@@ -77,6 +78,7 @@ export declare const ComboboxOption: import("@stitches/react/types/styled-compon
|
|
|
77
78
|
"7": any;
|
|
78
79
|
"8": any;
|
|
79
80
|
"9": any;
|
|
81
|
+
"10": any;
|
|
80
82
|
};
|
|
81
83
|
fontSizes: {
|
|
82
84
|
xs: any;
|
|
@@ -58,6 +58,7 @@ export declare const ComboboxPopover: import("@stitches/react/types/styled-compo
|
|
|
58
58
|
warning: any;
|
|
59
59
|
warningMid: any;
|
|
60
60
|
warningDark: any;
|
|
61
|
+
warningText: any;
|
|
61
62
|
subjectEnglish: any;
|
|
62
63
|
subjectMaths: any;
|
|
63
64
|
subjectScience: any;
|
|
@@ -77,6 +78,7 @@ export declare const ComboboxPopover: import("@stitches/react/types/styled-compo
|
|
|
77
78
|
"7": any;
|
|
78
79
|
"8": any;
|
|
79
80
|
"9": any;
|
|
81
|
+
"10": any;
|
|
80
82
|
};
|
|
81
83
|
fontSizes: {
|
|
82
84
|
xs: any;
|
|
@@ -63,6 +63,7 @@ declare const StyledDialog: import("@stitches/react/types/styled-component").Sty
|
|
|
63
63
|
warning: any;
|
|
64
64
|
warningMid: any;
|
|
65
65
|
warningDark: any;
|
|
66
|
+
warningText: any;
|
|
66
67
|
subjectEnglish: any;
|
|
67
68
|
subjectMaths: any;
|
|
68
69
|
subjectScience: any;
|
|
@@ -82,6 +83,7 @@ declare const StyledDialog: import("@stitches/react/types/styled-component").Sty
|
|
|
82
83
|
"7": any;
|
|
83
84
|
"8": any;
|
|
84
85
|
"9": any;
|
|
86
|
+
"10": any;
|
|
85
87
|
};
|
|
86
88
|
fontSizes: {
|
|
87
89
|
xs: any;
|
|
@@ -58,6 +58,7 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
58
58
|
warning: any;
|
|
59
59
|
warningMid: any;
|
|
60
60
|
warningDark: any;
|
|
61
|
+
warningText: any;
|
|
61
62
|
subjectEnglish: any;
|
|
62
63
|
subjectMaths: any;
|
|
63
64
|
subjectScience: any;
|
|
@@ -77,6 +78,7 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
77
78
|
"7": any;
|
|
78
79
|
"8": any;
|
|
79
80
|
"9": any;
|
|
81
|
+
"10": any;
|
|
80
82
|
};
|
|
81
83
|
fontSizes: {
|
|
82
84
|
xs: any;
|
|
@@ -322,6 +324,7 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
322
324
|
warning: any;
|
|
323
325
|
warningMid: any;
|
|
324
326
|
warningDark: any;
|
|
327
|
+
warningText: any;
|
|
325
328
|
subjectEnglish: any;
|
|
326
329
|
subjectMaths: any;
|
|
327
330
|
subjectScience: any;
|
|
@@ -341,6 +344,7 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
341
344
|
"7": any;
|
|
342
345
|
"8": any;
|
|
343
346
|
"9": any;
|
|
347
|
+
"10": any;
|
|
344
348
|
};
|
|
345
349
|
fontSizes: {
|
|
346
350
|
xs: any;
|
|
@@ -59,6 +59,7 @@ export declare const DialogClose: import("@stitches/react/types/styled-component
|
|
|
59
59
|
warning: any;
|
|
60
60
|
warningMid: any;
|
|
61
61
|
warningDark: any;
|
|
62
|
+
warningText: any;
|
|
62
63
|
subjectEnglish: any;
|
|
63
64
|
subjectMaths: any;
|
|
64
65
|
subjectScience: any;
|
|
@@ -78,6 +79,7 @@ export declare const DialogClose: import("@stitches/react/types/styled-component
|
|
|
78
79
|
"7": any;
|
|
79
80
|
"8": any;
|
|
80
81
|
"9": any;
|
|
82
|
+
"10": any;
|
|
81
83
|
};
|
|
82
84
|
fontSizes: {
|
|
83
85
|
xs: any;
|
|
@@ -61,6 +61,7 @@ declare const StyledDialogContent: import("@stitches/react/types/styled-componen
|
|
|
61
61
|
warning: any;
|
|
62
62
|
warningMid: any;
|
|
63
63
|
warningDark: any;
|
|
64
|
+
warningText: any;
|
|
64
65
|
subjectEnglish: any;
|
|
65
66
|
subjectMaths: any;
|
|
66
67
|
subjectScience: any;
|
|
@@ -80,6 +81,7 @@ declare const StyledDialogContent: import("@stitches/react/types/styled-componen
|
|
|
80
81
|
"7": any;
|
|
81
82
|
"8": any;
|
|
82
83
|
"9": any;
|
|
84
|
+
"10": any;
|
|
83
85
|
};
|
|
84
86
|
fontSizes: {
|
|
85
87
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Close as h}from"@atom-learning/icons";import{Overlay as x,Content as b,Portal as g,Close as w}from"@radix-ui/react-dialog";import*as t from"react";import{DIALOG_Z_INDEX as r}from"../../constants/dialog.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:"$
|
|
1
|
+
import{Close as h}from"@atom-learning/icons";import{Overlay as x,Content as b,Portal as g,Close as w}from"@radix-ui/react-dialog";import*as t from"react";import{DIALOG_Z_INDEX as r}from"../../constants/dialog.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:"$6",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(g,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:w,css:{position:"absolute",right:"$4",top:"$4"},label:f,size:"lg",theme:"neutral"},t.createElement($,{is:h})),t.Children.map(a,o=>(o==null?void 0:o.type)!==s&&o))));export{O as DialogContent};
|
|
@@ -61,6 +61,7 @@ export declare const StyledDivider: import("@stitches/react/types/styled-compone
|
|
|
61
61
|
warning: any;
|
|
62
62
|
warningMid: any;
|
|
63
63
|
warningDark: any;
|
|
64
|
+
warningText: any;
|
|
64
65
|
subjectEnglish: any;
|
|
65
66
|
subjectMaths: any;
|
|
66
67
|
subjectScience: any;
|
|
@@ -80,6 +81,7 @@ export declare const StyledDivider: import("@stitches/react/types/styled-compone
|
|
|
80
81
|
"7": any;
|
|
81
82
|
"8": any;
|
|
82
83
|
"9": any;
|
|
84
|
+
"10": any;
|
|
83
85
|
};
|
|
84
86
|
fontSizes: {
|
|
85
87
|
xs: any;
|
|
@@ -64,6 +64,7 @@ declare const Root: import("@stitches/react/types/styled-component").StyledCompo
|
|
|
64
64
|
warning: any;
|
|
65
65
|
warningMid: any;
|
|
66
66
|
warningDark: any;
|
|
67
|
+
warningText: any;
|
|
67
68
|
subjectEnglish: any;
|
|
68
69
|
subjectMaths: any;
|
|
69
70
|
subjectScience: any;
|
|
@@ -83,6 +84,7 @@ declare const Root: import("@stitches/react/types/styled-component").StyledCompo
|
|
|
83
84
|
"7": any;
|
|
84
85
|
"8": any;
|
|
85
86
|
"9": any;
|
|
87
|
+
"10": any;
|
|
86
88
|
};
|
|
87
89
|
fontSizes: {
|
|
88
90
|
xs: any;
|
|
@@ -59,6 +59,7 @@ export declare const DropdownMenuContent: import("@stitches/react/types/styled-c
|
|
|
59
59
|
warning: any;
|
|
60
60
|
warningMid: any;
|
|
61
61
|
warningDark: any;
|
|
62
|
+
warningText: any;
|
|
62
63
|
subjectEnglish: any;
|
|
63
64
|
subjectMaths: any;
|
|
64
65
|
subjectScience: any;
|
|
@@ -78,6 +79,7 @@ export declare const DropdownMenuContent: import("@stitches/react/types/styled-c
|
|
|
78
79
|
"7": any;
|
|
79
80
|
"8": any;
|
|
80
81
|
"9": any;
|
|
82
|
+
"10": any;
|
|
81
83
|
};
|
|
82
84
|
fontSizes: {
|
|
83
85
|
xs: any;
|
|
@@ -92,6 +92,7 @@ export declare const DropdownMenuItem: import("@stitches/react/types/styled-comp
|
|
|
92
92
|
warning: any;
|
|
93
93
|
warningMid: any;
|
|
94
94
|
warningDark: any;
|
|
95
|
+
warningText: any;
|
|
95
96
|
subjectEnglish: any;
|
|
96
97
|
subjectMaths: any;
|
|
97
98
|
subjectScience: any;
|
|
@@ -111,6 +112,7 @@ export declare const DropdownMenuItem: import("@stitches/react/types/styled-comp
|
|
|
111
112
|
"7": any;
|
|
112
113
|
"8": any;
|
|
113
114
|
"9": any;
|
|
115
|
+
"10": any;
|
|
114
116
|
};
|
|
115
117
|
fontSizes: {
|
|
116
118
|
xs: any;
|
|
@@ -59,6 +59,7 @@ export declare const DropdownMenuSeparator: import("@stitches/react/types/styled
|
|
|
59
59
|
warning: any;
|
|
60
60
|
warningMid: any;
|
|
61
61
|
warningDark: any;
|
|
62
|
+
warningText: any;
|
|
62
63
|
subjectEnglish: any;
|
|
63
64
|
subjectMaths: any;
|
|
64
65
|
subjectScience: any;
|
|
@@ -78,6 +79,7 @@ export declare const DropdownMenuSeparator: import("@stitches/react/types/styled
|
|
|
78
79
|
"7": any;
|
|
79
80
|
"8": any;
|
|
80
81
|
"9": any;
|
|
82
|
+
"10": any;
|
|
81
83
|
};
|
|
82
84
|
fontSizes: {
|
|
83
85
|
xs: any;
|
|
@@ -59,6 +59,7 @@ export declare const DropdownMenuTrigger: import("@stitches/react/types/styled-c
|
|
|
59
59
|
warning: any;
|
|
60
60
|
warningMid: any;
|
|
61
61
|
warningDark: any;
|
|
62
|
+
warningText: any;
|
|
62
63
|
subjectEnglish: any;
|
|
63
64
|
subjectMaths: any;
|
|
64
65
|
subjectScience: any;
|
|
@@ -78,6 +79,7 @@ export declare const DropdownMenuTrigger: import("@stitches/react/types/styled-c
|
|
|
78
79
|
"7": any;
|
|
79
80
|
"8": any;
|
|
80
81
|
"9": any;
|
|
82
|
+
"10": any;
|
|
81
83
|
};
|
|
82
84
|
fontSizes: {
|
|
83
85
|
xs: any;
|
|
@@ -62,6 +62,7 @@ declare const EmptyStateContainer: import("@stitches/react/types/styled-componen
|
|
|
62
62
|
warning: any;
|
|
63
63
|
warningMid: any;
|
|
64
64
|
warningDark: any;
|
|
65
|
+
warningText: any;
|
|
65
66
|
subjectEnglish: any;
|
|
66
67
|
subjectMaths: any;
|
|
67
68
|
subjectScience: any;
|
|
@@ -81,6 +82,7 @@ declare const EmptyStateContainer: import("@stitches/react/types/styled-componen
|
|
|
81
82
|
"7": any;
|
|
82
83
|
"8": any;
|
|
83
84
|
"9": any;
|
|
85
|
+
"10": any;
|
|
84
86
|
};
|
|
85
87
|
fontSizes: {
|
|
86
88
|
xs: any;
|
|
@@ -328,6 +330,7 @@ declare const EmptyStateContainer: import("@stitches/react/types/styled-componen
|
|
|
328
330
|
warning: any;
|
|
329
331
|
warningMid: any;
|
|
330
332
|
warningDark: any;
|
|
333
|
+
warningText: any;
|
|
331
334
|
subjectEnglish: any;
|
|
332
335
|
subjectMaths: any;
|
|
333
336
|
subjectScience: any;
|
|
@@ -347,6 +350,7 @@ declare const EmptyStateContainer: import("@stitches/react/types/styled-componen
|
|
|
347
350
|
"7": any;
|
|
348
351
|
"8": any;
|
|
349
352
|
"9": any;
|
|
353
|
+
"10": any;
|
|
350
354
|
};
|
|
351
355
|
fontSizes: {
|
|
352
356
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as m from"react";import{Flex as a}from"../flex/Flex.js";import{styled as n}from"../../stitches.js";import{EmptyStateBody as p}from"./EmptyStateBody.js";import{EmptyStateImage as o}from"./EmptyStateImage.js";import{EmptyStateTitle as r}from"./EmptyStateTitle.js";const y=n(a,{flexDirection:"column",alignItems:"center",textAlign:"center","& > *:last-child":{mb:0},variants:{size:{xs:{p:"$2"},sm:{p:"$3"},md:{p:"$4"},lg:{p:"$
|
|
1
|
+
import*as m from"react";import{Flex as a}from"../flex/Flex.js";import{styled as n}from"../../stitches.js";import{EmptyStateBody as p}from"./EmptyStateBody.js";import{EmptyStateImage as o}from"./EmptyStateImage.js";import{EmptyStateTitle as r}from"./EmptyStateTitle.js";const y=n(a,{flexDirection:"column",alignItems:"center",textAlign:"center","& > *:last-child":{mb:0},variants:{size:{xs:{p:"$2"},sm:{p:"$3"},md:{p:"$4"},lg:{p:"$6"},xl:{p:"$7"}}}}),t=({size:i="sm",children:l,...s})=>m.createElement(y,{size:i,...s},m.Children.map(l,e=>m.isValidElement(e)&&(e.type===o||e.type===r||e.type===p)?m.cloneElement(e,{...e.props,size:i}):e));t.displayName="EmptyState",t.Image=o,t.Title=r,t.Body=p;export{t as EmptyState};
|