@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
|
@@ -63,7 +63,6 @@ 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;
|
|
67
66
|
subjectEnglish: any;
|
|
68
67
|
subjectMaths: any;
|
|
69
68
|
subjectScience: any;
|
|
@@ -83,7 +82,6 @@ declare const StyledDialog: import("@stitches/react/types/styled-component").Sty
|
|
|
83
82
|
"7": any;
|
|
84
83
|
"8": any;
|
|
85
84
|
"9": any;
|
|
86
|
-
"10": any;
|
|
87
85
|
};
|
|
88
86
|
fontSizes: {
|
|
89
87
|
xs: any;
|
|
@@ -58,7 +58,6 @@ 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;
|
|
62
61
|
subjectEnglish: any;
|
|
63
62
|
subjectMaths: any;
|
|
64
63
|
subjectScience: any;
|
|
@@ -78,7 +77,6 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
78
77
|
"7": any;
|
|
79
78
|
"8": any;
|
|
80
79
|
"9": any;
|
|
81
|
-
"10": any;
|
|
82
80
|
};
|
|
83
81
|
fontSizes: {
|
|
84
82
|
xs: any;
|
|
@@ -324,7 +322,6 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
324
322
|
warning: any;
|
|
325
323
|
warningMid: any;
|
|
326
324
|
warningDark: any;
|
|
327
|
-
warningText: any;
|
|
328
325
|
subjectEnglish: any;
|
|
329
326
|
subjectMaths: any;
|
|
330
327
|
subjectScience: any;
|
|
@@ -344,7 +341,6 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
344
341
|
"7": any;
|
|
345
342
|
"8": any;
|
|
346
343
|
"9": any;
|
|
347
|
-
"10": any;
|
|
348
344
|
};
|
|
349
345
|
fontSizes: {
|
|
350
346
|
xs: any;
|
|
@@ -59,7 +59,6 @@ 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;
|
|
63
62
|
subjectEnglish: any;
|
|
64
63
|
subjectMaths: any;
|
|
65
64
|
subjectScience: any;
|
|
@@ -79,7 +78,6 @@ export declare const DialogClose: import("@stitches/react/types/styled-component
|
|
|
79
78
|
"7": any;
|
|
80
79
|
"8": any;
|
|
81
80
|
"9": any;
|
|
82
|
-
"10": any;
|
|
83
81
|
};
|
|
84
82
|
fontSizes: {
|
|
85
83
|
xs: any;
|
|
@@ -61,7 +61,6 @@ declare const StyledDialogContent: import("@stitches/react/types/styled-componen
|
|
|
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 StyledDialogContent: import("@stitches/react/types/styled-componen
|
|
|
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{Close as h}from"@atom-learning/icons";import{Overlay as x,Content as b,Portal as
|
|
1
|
+
import{Close as h}from"@atom-learning/icons";import{Overlay as x,Content as b,Portal as w,Close as g}from"@radix-ui/react-dialog";import*as o 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:"$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};
|
|
@@ -61,7 +61,6 @@ 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;
|
|
65
64
|
subjectEnglish: any;
|
|
66
65
|
subjectMaths: any;
|
|
67
66
|
subjectScience: any;
|
|
@@ -81,7 +80,6 @@ export declare const StyledDivider: import("@stitches/react/types/styled-compone
|
|
|
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 t from"react";import{styled as n}from"../../stitches.js";const i=n("hr",{border:0,bg:"$tonal200",variants:{orientation:{horizontal:{height:1,width:"100%"},vertical:{height:"100%",width:1,minHeight:"$3"}}}}),a=t.forwardRef(({orientation:
|
|
1
|
+
import t from"react";import{styled as n}from"../../stitches.js";const i=n("hr",{border:0,bg:"$tonal200",variants:{orientation:{horizontal:{height:1,width:"100%"},vertical:{height:"100%",width:1,minHeight:"$3"}}}}),a=t.forwardRef(({orientation:e="horizontal",...r},o)=>t.createElement(i,{ref:o,orientation:e,...r}));export{a as Divider,i as StyledDivider};
|
|
@@ -64,7 +64,6 @@ 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;
|
|
68
67
|
subjectEnglish: any;
|
|
69
68
|
subjectMaths: any;
|
|
70
69
|
subjectScience: any;
|
|
@@ -84,7 +83,6 @@ declare const Root: import("@stitches/react/types/styled-component").StyledCompo
|
|
|
84
83
|
"7": any;
|
|
85
84
|
"8": any;
|
|
86
85
|
"9": any;
|
|
87
|
-
"10": any;
|
|
88
86
|
};
|
|
89
87
|
fontSizes: {
|
|
90
88
|
xs: any;
|
|
@@ -59,7 +59,6 @@ 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;
|
|
63
62
|
subjectEnglish: any;
|
|
64
63
|
subjectMaths: any;
|
|
65
64
|
subjectScience: any;
|
|
@@ -79,7 +78,6 @@ export declare const DropdownMenuContent: import("@stitches/react/types/styled-c
|
|
|
79
78
|
"7": any;
|
|
80
79
|
"8": any;
|
|
81
80
|
"9": any;
|
|
82
|
-
"10": any;
|
|
83
81
|
};
|
|
84
82
|
fontSizes: {
|
|
85
83
|
xs: any;
|
|
@@ -92,7 +92,6 @@ 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;
|
|
96
95
|
subjectEnglish: any;
|
|
97
96
|
subjectMaths: any;
|
|
98
97
|
subjectScience: any;
|
|
@@ -112,7 +111,6 @@ export declare const DropdownMenuItem: import("@stitches/react/types/styled-comp
|
|
|
112
111
|
"7": any;
|
|
113
112
|
"8": any;
|
|
114
113
|
"9": any;
|
|
115
|
-
"10": any;
|
|
116
114
|
};
|
|
117
115
|
fontSizes: {
|
|
118
116
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{styled as n}from"../../stitches.js";import{DropdownMenuItem as m}from"./DropdownMenuItem.js";const i=n("a",{textDecoration:"none"}),l=({children:
|
|
1
|
+
import e from"react";import{styled as n}from"../../stitches.js";import{DropdownMenuItem as m}from"./DropdownMenuItem.js";const i=n("a",{textDecoration:"none"}),l=({children:t,href:o,...r})=>e.createElement(m,{...r,asChild:!0},e.createElement(i,{href:o,role:"menuitem"},t));export{l as DropdownMenuLinkItem};
|
|
@@ -59,7 +59,6 @@ export declare const DropdownMenuSeparator: import("@stitches/react/types/styled
|
|
|
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 DropdownMenuSeparator: import("@stitches/react/types/styled
|
|
|
79
78
|
"7": any;
|
|
80
79
|
"8": any;
|
|
81
80
|
"9": any;
|
|
82
|
-
"10": any;
|
|
83
81
|
};
|
|
84
82
|
fontSizes: {
|
|
85
83
|
xs: any;
|
|
@@ -59,7 +59,6 @@ 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;
|
|
63
62
|
subjectEnglish: any;
|
|
64
63
|
subjectMaths: any;
|
|
65
64
|
subjectScience: any;
|
|
@@ -79,7 +78,6 @@ export declare const DropdownMenuTrigger: import("@stitches/react/types/styled-c
|
|
|
79
78
|
"7": any;
|
|
80
79
|
"8": any;
|
|
81
80
|
"9": any;
|
|
82
|
-
"10": any;
|
|
83
81
|
};
|
|
84
82
|
fontSizes: {
|
|
85
83
|
xs: any;
|
|
@@ -62,7 +62,6 @@ declare const EmptyStateContainer: import("@stitches/react/types/styled-componen
|
|
|
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 EmptyStateContainer: import("@stitches/react/types/styled-componen
|
|
|
82
81
|
"7": any;
|
|
83
82
|
"8": any;
|
|
84
83
|
"9": any;
|
|
85
|
-
"10": any;
|
|
86
84
|
};
|
|
87
85
|
fontSizes: {
|
|
88
86
|
xs: any;
|
|
@@ -330,7 +328,6 @@ declare const EmptyStateContainer: import("@stitches/react/types/styled-componen
|
|
|
330
328
|
warning: any;
|
|
331
329
|
warningMid: any;
|
|
332
330
|
warningDark: any;
|
|
333
|
-
warningText: any;
|
|
334
331
|
subjectEnglish: any;
|
|
335
332
|
subjectMaths: any;
|
|
336
333
|
subjectScience: any;
|
|
@@ -350,7 +347,6 @@ declare const EmptyStateContainer: import("@stitches/react/types/styled-componen
|
|
|
350
347
|
"7": any;
|
|
351
348
|
"8": any;
|
|
352
349
|
"9": any;
|
|
353
|
-
"10": any;
|
|
354
350
|
};
|
|
355
351
|
fontSizes: {
|
|
356
352
|
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:"$5"},xl:{p:"$6"}}}}),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};
|
|
@@ -64,7 +64,6 @@ export declare const EmptyStateBody: import("@stitches/react/types/styled-compon
|
|
|
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 @@ export declare const EmptyStateBody: import("@stitches/react/types/styled-compon
|
|
|
84
83
|
"7": any;
|
|
85
84
|
"8": any;
|
|
86
85
|
"9": any;
|
|
87
|
-
"10": any;
|
|
88
86
|
};
|
|
89
87
|
fontSizes: {
|
|
90
88
|
xs: any;
|
|
@@ -335,7 +333,6 @@ export declare const EmptyStateBody: import("@stitches/react/types/styled-compon
|
|
|
335
333
|
warning: any;
|
|
336
334
|
warningMid: any;
|
|
337
335
|
warningDark: any;
|
|
338
|
-
warningText: any;
|
|
339
336
|
subjectEnglish: any;
|
|
340
337
|
subjectMaths: any;
|
|
341
338
|
subjectScience: any;
|
|
@@ -355,7 +352,6 @@ export declare const EmptyStateBody: import("@stitches/react/types/styled-compon
|
|
|
355
352
|
"7": any;
|
|
356
353
|
"8": any;
|
|
357
354
|
"9": any;
|
|
358
|
-
"10": any;
|
|
359
355
|
};
|
|
360
356
|
fontSizes: {
|
|
361
357
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Text as t}from"../text/Text.js";import{styled as m}from"../../stitches.js";const o=m(t,{color:"$tonal400",fontWeight:"400",variants:{size:{xs:{fontSize:"$sm",mb:"$4"},sm:{fontSize:"$sm",mb:"$4"},md:{fontSize:"$sm",mb:"$4"},lg:{fontSize:"$md",mb:"$
|
|
1
|
+
import{Text as t}from"../text/Text.js";import{styled as m}from"../../stitches.js";const o=m(t,{color:"$tonal400",fontWeight:"400",variants:{size:{xs:{fontSize:"$sm",mb:"$4"},sm:{fontSize:"$sm",mb:"$4"},md:{fontSize:"$sm",mb:"$4"},lg:{fontSize:"$md",mb:"$5"},xl:{fontSize:"$md",mb:"$5"}}}});export{o as EmptyStateBody};
|
|
@@ -62,7 +62,6 @@ export declare const EmptyStateImage: import("@stitches/react/types/styled-compo
|
|
|
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 @@ export declare const EmptyStateImage: import("@stitches/react/types/styled-compo
|
|
|
82
81
|
"7": any;
|
|
83
82
|
"8": any;
|
|
84
83
|
"9": any;
|
|
85
|
-
"10": any;
|
|
86
84
|
};
|
|
87
85
|
fontSizes: {
|
|
88
86
|
xs: any;
|
|
@@ -333,7 +331,6 @@ export declare const EmptyStateImage: import("@stitches/react/types/styled-compo
|
|
|
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 @@ export declare const EmptyStateImage: import("@stitches/react/types/styled-compo
|
|
|
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{Image as t}from"../image/Image.js";import{styled as m}from"../../stitches.js";const i=m(t,{variants:{size:{xs:{width:"56px",height:"32px",mb:"$4"},sm:{size:"84px",mb:"$4"},md:{width:"126px",height:"72px",mb:"$4"},lg:{width:"190px",height:"142px",mb:"$
|
|
1
|
+
import{Image as t}from"../image/Image.js";import{styled as m}from"../../stitches.js";const i=m(t,{variants:{size:{xs:{width:"56px",height:"32px",mb:"$4"},sm:{size:"84px",mb:"$4"},md:{width:"126px",height:"72px",mb:"$4"},lg:{width:"190px",height:"142px",mb:"$5"},xl:{width:"285px",height:"213px",mb:"$5"}}}});export{i as EmptyStateImage};
|
|
@@ -60,7 +60,6 @@ export declare const EmptyStateTitle: import("@stitches/react/types/styled-compo
|
|
|
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 EmptyStateTitle: import("@stitches/react/types/styled-compo
|
|
|
80
79
|
"7": any;
|
|
81
80
|
"8": any;
|
|
82
81
|
"9": any;
|
|
83
|
-
"10": any;
|
|
84
82
|
};
|
|
85
83
|
fontSizes: {
|
|
86
84
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as t from"react";import{Text as r}from"../text/Text.js";const s=({children:e,css:o})=>t.createElement(r,{size:"sm",css:{color:"$tonal300",maxWidth:"80ch",...o}},e);export{s as Description};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{Box as m}from"../box/Box.js";import{Checkbox as d}from"../checkbox/Checkbox.js";import{Label as
|
|
1
|
+
import*as e from"react";import{Box as m}from"../box/Box.js";import{Checkbox as d}from"../checkbox/Checkbox.js";import{Label as $}from"../label/Label.js";import{RadioButton as f}from"../radio-button/RadioButton.js";import"../radio-button/RadioButtonGroup.js";import{ValidationError as E}from"../validation-error/ValidationError.js";import{Description as u}from"./FieldDescription.js";const l=({align:n="start",children:a,css:s,description:i,direction:t="row",error:o,label:p,required:c})=>e.createElement(m,{css:s},e.createElement($,{align:n,direction:t,required:c,type:"inline"},e.Children.map(a,r=>e.createElement(m,{css:{[t==="reverse"?"ml":"mr"]:"$3",...((r==null?void 0:r.type)===d||(r==null?void 0:r.type)===f)&&{transform:"translateY($space$1)"}}},r)),p),o&&e.createElement(E,{css:{mt:"$2"}},o),i&&e.createElement(u,{css:{mt:"$2",[t==="reverse"?"mr":"ml"]:"calc($space$3 + $sizes$1)"}},i));l.displayName="InlineFieldWrapper";export{l as InlineFieldWrapper};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Upload as c}from"@atom-learning/icons";import*as e from"react";import{Button as s}from"../button/Button.js";import{Icon as u}from"../icon/Icon.js";const t=({accept:l,children:
|
|
1
|
+
import{Upload as c}from"@atom-learning/icons";import*as e from"react";import{Button as s}from"../button/Button.js";import{Icon as u}from"../icon/Icon.js";const t=({accept:l,children:i,multiple:n=!1,onFileSelect:o,...r})=>{const p=a=>{const{files:m}=a.target;o(m)};return e.createElement(s,{as:"label",...r},e.createElement(u,{is:c}),i,e.createElement("input",{type:"file",onChange:p,accept:l,multiple:n,hidden:!0}))};t.displayName="FileInput";export{t as FileInput};
|
|
@@ -58,7 +58,6 @@ export declare const Flex: import("@stitches/react/types/styled-component").Styl
|
|
|
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 Flex: import("@stitches/react/types/styled-component").Styl
|
|
|
78
77
|
"7": any;
|
|
79
78
|
"8": any;
|
|
80
79
|
"9": any;
|
|
81
|
-
"10": any;
|
|
82
80
|
};
|
|
83
81
|
fontSizes: {
|
|
84
82
|
xs: any;
|
|
@@ -60,7 +60,6 @@ declare const StyledForm: import("@stitches/react/types/styled-component").Style
|
|
|
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 @@ declare const StyledForm: import("@stitches/react/types/styled-component").Style
|
|
|
80
79
|
"7": any;
|
|
81
80
|
"8": any;
|
|
82
81
|
"9": any;
|
|
83
|
-
"10": any;
|
|
84
82
|
};
|
|
85
83
|
fontSizes: {
|
|
86
84
|
xs: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const GridContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
3
|
-
gap?: number | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" |
|
|
3
|
+
gap?: number | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | undefined;
|
|
4
4
|
}, {
|
|
5
5
|
sm: string;
|
|
6
6
|
md: string;
|
|
@@ -61,7 +61,6 @@ declare const GridContainer: import("@stitches/react/types/styled-component").St
|
|
|
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 GridContainer: import("@stitches/react/types/styled-component").St
|
|
|
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*as p from"react";import{theme as r,styled as d}from"../../stitches.js";const
|
|
1
|
+
import*as p from"react";import{theme as r,styled as d}from"../../stitches.js";const c=Object.keys(r.space).reduce((a,e)=>({...a,[e]:{gap:`$space$${e}`}}),{}),o=d("div",{display:"grid",variants:{gap:c}}),i=({css:a,gap:e=2,minItemSize:t,maxItemSize:m="1fr",...s})=>p.createElement(o,{css:{...t&&{gridTemplateColumns:`repeat(auto-fit, minmax(${t}, ${m}))`},...a},gap:e,...s});i.displayName="Grid";export{i as Grid};
|
|
@@ -62,7 +62,6 @@ export declare const StyledHeading: import("@stitches/react/types/styled-compone
|
|
|
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 @@ export declare const StyledHeading: import("@stitches/react/types/styled-compone
|
|
|
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*as i from"react";import{styled as a}from"../../stitches.js";import{capsize as e}from"../../utilities/style/capsize.js";const t=a("h2",{color:"$tonal600",fontFamily:"$display",fontWeight:700,m:0,variants:{size:{xs:{fontFamily:"$body",fontWeight:600,fontSize:"$md",lineHeight:1.5,...e(.3864)},sm:{fontSize:"$lg",lineHeight:1.14,...e(.2174,.2254)},md:{fontSize:"$xl",lineHeight:1.14,...e(.2174,.2254)},lg:{fontSize:"$2xl",lineHeight:1.08,...e(.1865,.1945)},xl:{fontSize:"$3xl",lineHeight:1.12,...e(.206,.214)},xxl:{fontSize:"$4xl",lineHeight:1.06,...e(.1793,.1873)}}}}),
|
|
1
|
+
import*as i from"react";import{styled as a}from"../../stitches.js";import{capsize as e}from"../../utilities/style/capsize.js";const t=a("h2",{color:"$tonal600",fontFamily:"$display",fontWeight:700,m:0,variants:{size:{xs:{fontFamily:"$body",fontWeight:600,fontSize:"$md",lineHeight:1.5,...e(.3864)},sm:{fontSize:"$lg",lineHeight:1.14,...e(.2174,.2254)},md:{fontSize:"$xl",lineHeight:1.14,...e(.2174,.2254)},lg:{fontSize:"$2xl",lineHeight:1.08,...e(.1865,.1945)},xl:{fontSize:"$3xl",lineHeight:1.12,...e(.206,.214)},xxl:{fontSize:"$4xl",lineHeight:1.06,...e(.1793,.1873)}}}}),l=i.forwardRef(({size:n="md",...o},f)=>i.createElement(t,{ref:f,size:n,...o}));l.displayName="Heading";export{l as Heading,t as StyledHeading};
|
|
@@ -62,7 +62,6 @@ export declare const StyledIcon: import("@stitches/react/types/styled-component"
|
|
|
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 @@ export declare const StyledIcon: import("@stitches/react/types/styled-component"
|
|
|
82
81
|
"7": any;
|
|
83
82
|
"8": any;
|
|
84
83
|
"9": any;
|
|
85
|
-
"10": any;
|
|
86
84
|
};
|
|
87
85
|
fontSizes: {
|
|
88
86
|
xs: any;
|
|
@@ -60,7 +60,6 @@ export declare const StyledImage: 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 StyledImage: 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;
|
|
@@ -63,7 +63,6 @@ declare const StyledInput: 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 StyledInput: 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;
|
|
@@ -65,7 +65,6 @@ declare const StyledLabel: import("@stitches/react/types/styled-component").Styl
|
|
|
65
65
|
warning: any;
|
|
66
66
|
warningMid: any;
|
|
67
67
|
warningDark: any;
|
|
68
|
-
warningText: any;
|
|
69
68
|
subjectEnglish: any;
|
|
70
69
|
subjectMaths: any;
|
|
71
70
|
subjectScience: any;
|
|
@@ -85,7 +84,6 @@ declare const StyledLabel: import("@stitches/react/types/styled-component").Styl
|
|
|
85
84
|
"7": any;
|
|
86
85
|
"8": any;
|
|
87
86
|
"9": any;
|
|
88
|
-
"10": any;
|
|
89
87
|
};
|
|
90
88
|
fontSizes: {
|
|
91
89
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{styled as t}from"../../stitches.js";import{textVariantSize as d}from"../text/Text.js";const{sm:p,md:y}=d(),f=t("label",{color:"$tonal500",fontFamily:"$body",m:0,variants:{size:{sm:p,md:y},type:{block:{display:"block",fontWeight:600},inline:{display:"flex",fontWeight:400,maxWidth:"max-content"}},align:{start:{},center:{}},direction:{reverse:{},row:{}}},compoundVariants:[{type:"inline",align:"start",css:{alignItems:"flex-start"}},{type:"inline",align:"center",css:{alignItems:"center"}},{type:"inline",direction:"reverse",css:{flexDirection:"row-reverse"}},{type:"inline",direction:"row",css:{flexDirection:"row"}}]}),g=t("span",{color:"$danger",ml:"$1",fontWeight:400}),i=({align:n="start",as:r="label",direction:a="row",size:
|
|
1
|
+
import*as e from"react";import{styled as t}from"../../stitches.js";import{textVariantSize as d}from"../text/Text.js";const{sm:p,md:y}=d(),f=t("label",{color:"$tonal500",fontFamily:"$body",m:0,variants:{size:{sm:p,md:y},type:{block:{display:"block",fontWeight:600},inline:{display:"flex",fontWeight:400,maxWidth:"max-content"}},align:{start:{},center:{}},direction:{reverse:{},row:{}}},compoundVariants:[{type:"inline",align:"start",css:{alignItems:"flex-start"}},{type:"inline",align:"center",css:{alignItems:"center"}},{type:"inline",direction:"reverse",css:{flexDirection:"row-reverse"}},{type:"inline",direction:"row",css:{flexDirection:"row"}}]}),g=t("span",{color:"$danger",ml:"$1",fontWeight:400}),i=({align:n="start",as:r="label",direction:a="row",size:l="md",type:o="block",children:s,required:c,...m})=>e.createElement(f,{as:r,size:l,type:o,align:n,direction:a,...m},s,c&&e.createElement(g,{"aria-hidden":!0},"*"));i.displayName="Label";export{i as Label};
|
|
@@ -63,7 +63,6 @@ export declare const StyledLink: import("@stitches/react/types/styled-component"
|
|
|
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 @@ export declare const StyledLink: import("@stitches/react/types/styled-component"
|
|
|
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*as e from"react";import{styled as f}from"../../stitches.js";import{StyledHeading as l}from"../heading/Heading.js";import{StyledLi as s}from"../list/List.js";import{StyledText as c,textVariantSize as d}from"../text/Text.js";const r=f("a",{bg:"unset",border:"unset",p:"unset",color:"$primary",cursor:"pointer",fontFamily:"$body",textDecoration:"none","&:focus, &:hover":{color:"$primaryMid",textDecoration:"underline"},"&:active":{color:"$primaryDark"},[`${c} > &, ${l} > &, ${s} > &`]:{fontSize:"100%",lineHeight:1,"&::before, &::after":{content:"none"}},variants:{size:d()}}),a=e.forwardRef(({size:
|
|
1
|
+
import*as e from"react";import{styled as f}from"../../stitches.js";import{StyledHeading as l}from"../heading/Heading.js";import{StyledLi as s}from"../list/List.js";import{StyledText as c,textVariantSize as d}from"../text/Text.js";const r=f("a",{bg:"unset",border:"unset",p:"unset",color:"$primary",cursor:"pointer",fontFamily:"$body",textDecoration:"none","&:focus, &:hover":{color:"$primaryMid",textDecoration:"underline"},"&:active":{color:"$primaryDark"},[`${c} > &, ${l} > &, ${s} > &`]:{fontSize:"100%",lineHeight:1,"&::before, &::after":{content:"none"}},variants:{size:d()}}),a=e.forwardRef(({size:t="md",onClick:m,href:o,...i},n)=>o?e.createElement(r,{size:t,...i,ref:n,href:o}):e.createElement(r,{as:"button",size:t,...i,ref:n,onClick:m}));a.displayName="Link";export{a as Link,r as StyledLink};
|
|
@@ -59,7 +59,6 @@ export declare const StyledLi: import("@stitches/react/types/styled-component").
|
|
|
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 StyledLi: import("@stitches/react/types/styled-component").
|
|
|
79
78
|
"7": any;
|
|
80
79
|
"8": any;
|
|
81
80
|
"9": any;
|
|
82
|
-
"10": any;
|
|
83
81
|
};
|
|
84
82
|
fontSizes: {
|
|
85
83
|
xs: any;
|
|
@@ -329,7 +327,6 @@ export declare const StyledList: import("@stitches/react/types/styled-component"
|
|
|
329
327
|
warning: any;
|
|
330
328
|
warningMid: any;
|
|
331
329
|
warningDark: any;
|
|
332
|
-
warningText: any;
|
|
333
330
|
subjectEnglish: any;
|
|
334
331
|
subjectMaths: any;
|
|
335
332
|
subjectScience: any;
|
|
@@ -349,7 +346,6 @@ export declare const StyledList: import("@stitches/react/types/styled-component"
|
|
|
349
346
|
"7": any;
|
|
350
347
|
"8": any;
|
|
351
348
|
"9": any;
|
|
352
|
-
"10": any;
|
|
353
349
|
};
|
|
354
350
|
fontSizes: {
|
|
355
351
|
xs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import d from"mdast-util-directive";import k from"mdast-util-from-markdown";import f from"micromark-extension-directive";import*as p from"react";import{StackContent as l}from"../stack-content/StackContent.js";import{MarkdownCode as c}from"./components/MarkdownCode.js";import{MarkdownEmphasis as w}from"./components/MarkdownEmphasis.js";import{MarkdownHeading as M}from"./components/MarkdownHeading.js";import{MarkdownInlineCode as h}from"./components/MarkdownInlineCode.js";import{MarkdownImage as u}from"./components/MarkdownImage.js";import{MarkdownLink as g}from"./components/MarkdownLink.js";import{MarkdownList as
|
|
1
|
+
import d from"mdast-util-directive";import k from"mdast-util-from-markdown";import f from"micromark-extension-directive";import*as p from"react";import{StackContent as l}from"../stack-content/StackContent.js";import{MarkdownCode as c}from"./components/MarkdownCode.js";import{MarkdownEmphasis as w}from"./components/MarkdownEmphasis.js";import{MarkdownHeading as M}from"./components/MarkdownHeading.js";import{MarkdownInlineCode as h}from"./components/MarkdownInlineCode.js";import{MarkdownImage as u}from"./components/MarkdownImage.js";import{MarkdownLink as g}from"./components/MarkdownLink.js";import{MarkdownList as $}from"./components/MarkdownList.js";import{MarkdownListItem as C}from"./components/MarkdownListItem.js";import{MarkdownParagraph as x}from"./components/MarkdownParagraph.js";import{MarkdownStrong as y}from"./components/MarkdownStrong.js";import{MarkdownText as E}from"./components/MarkdownText.js";import{MarkdownThematicBreak as I}from"./components/MarkdownThematicBreak.js";const L={code:c,emphasis:w,heading:M,inlineCode:h,image:u,link:g,list:$,listItem:C,paragraph:x,strong:y,text:E,thematicBreak:I},v=o=>{var r,t;if((r=o.position)!=null&&r.start){const{line:e,column:m,offset:n}=(t=o.position)==null?void 0:t.start;return`${o.type}${e}${m}${n}`}return`${o.type}${+new Date}`},s=({content:o,customComponents:r={},css:t})=>{const e=k(o,{extensions:[f()],mdastExtensions:[d.fromMarkdown]}),m={...L,...r},n=a=>{const i=m[a.type];return i?p.createElement(i,{key:v(a),node:a,handleNode:n}):null};return p.createElement(l,{css:t},e.children.map(n))};s.displayName="MarkdownContent";export{s as MarkdownContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as e from"react";import{styled as t}from"../../../stitches.js";import{Box as r}from"../../box/Box.js";const m=t(r,{bg:"$tonal100",borderRadius:"$1",color:"$tonal600",fontFamily:"$mono",fontSize:"$sm",lineHeight:1.4,my:"$4",p:"$3"}),n=({node:o})=>e.createElement(m,{as:"pre"},o.value);export{n as MarkdownCode};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as t from"react";import{styled as r}from"../../../stitches.js";const l=r("em",{fontStyle:"italic"}),a=({node:
|
|
1
|
+
import*as t from"react";import{styled as r}from"../../../stitches.js";const l=r("em",{fontStyle:"italic"}),a=({node:o,handleNode:n})=>{var e;return t.createElement(l,null,(e=o.children)==null?void 0:e.map(n))};export{a as MarkdownEmphasis};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as i from"react";import{Heading as
|
|
1
|
+
import*as i from"react";import{Heading as c}from"../../heading/Heading.js";const o=e=>{switch(e){case 1:return{size:"xl",as:"h1"};case 2:return{size:"lg",as:"h2"};case 3:return{size:"md",as:"h3"};case 4:return{size:"sm",as:"h4"};case 5:return{size:"xs",as:"h5"};default:return{size:"xs",as:"h6"}}},d=({node:e,handleNode:r,css:a})=>{var s;const{as:n,size:t}=o(e.depth);return i.createElement(c,{as:n,size:t,css:{color:"inherit",...a}},(s=e.children)==null?void 0:s.map(r))};export{d as MarkdownHeading};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as o from"react";import{Image as t}from"../../image/Image.js";const m=({node:r,css:a})=>{var e;return o.createElement(t,{src:r.url,alt:(e=r.alt)!=null?e:void 0,css:a})};export{m as MarkdownImage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as l from"react";import{Link as i}from"../../link/Link.js";const n=({node:e,handleNode:
|
|
1
|
+
import*as l from"react";import{Link as i}from"../../link/Link.js";const n=({node:e,handleNode:o})=>{var r,t;return l.createElement(i,{title:(r=e.title)!=null?r:void 0,href:e.url},(t=e.children)==null?void 0:t.map(o))};export{n as MarkdownLink};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as o from"react";import{List as n}from"../../list/List.js";const m=({node:t,handleNode:r})=>{var e;return o.createElement(n.Item,null,(e=t.children)==null?void 0:e.map(r))};export{m as MarkdownListItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as n from"react";import{Text as t}from"../../text/Text.js";const c=({node:
|
|
1
|
+
import*as n from"react";import{Text as t}from"../../text/Text.js";const c=({node:e,handleNode:o,css:a})=>{var r;return n.createElement(t,{css:{color:"inherit",...a}},(r=e.children)==null?void 0:r.map(o))};export{c as MarkdownParagraph};
|