@atom-learning/components 5.5.0-beta.1 → 5.6.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 +207 -0
- package/dist/components/accordion/Accordion.d.ts +5 -0
- package/dist/components/accordion/AccordionContent.d.ts +5 -0
- package/dist/components/accordion/AccordionItem.d.ts +5 -0
- package/dist/components/accordion/AccordionTrigger.d.ts +5 -0
- package/dist/components/action-icon/ActionIcon.d.ts +6 -1
- package/dist/components/alert-dialog/AlertDialog.d.ts +10 -0
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +5 -0
- package/dist/components/avatar/Avatar.d.ts +10 -0
- package/dist/components/badge/Badge.d.ts +30 -0
- package/dist/components/badge/BadgeIcon.d.ts +10 -0
- package/dist/components/badge/BadgeText.d.ts +10 -0
- package/dist/components/banner/Banner.d.ts +2 -2
- package/dist/components/banner/BannerContainer.d.ts +10 -0
- package/dist/components/banner/banner-regular/BannerRegular.d.ts +489 -102
- package/dist/components/banner/banner-regular/BannerRegularContent.d.ts +10 -0
- package/dist/components/banner/banner-regular/BannerRegularDismiss.d.ts +13 -3
- package/dist/components/banner/banner-slim/BannerSlim.d.ts +501 -114
- package/dist/components/banner/banner-slim/BannerSlimContainer.d.ts +5 -0
- package/dist/components/banner/banner-slim/BannerSlimContent.d.ts +10 -0
- package/dist/components/banner/banner-slim/BannerSlimDismiss.d.ts +13 -3
- package/dist/components/box/Box.d.ts +5 -0
- package/dist/components/button/Button.d.ts +6 -1
- package/dist/components/calendar/Day.d.ts +5 -0
- package/dist/components/carousel/Carousel.d.ts +15 -0
- package/dist/components/carousel/CarouselPagination.d.ts +5 -0
- package/dist/components/carousel/CarouselSlide.d.ts +5 -0
- package/dist/components/carousel/CarouselSlider.d.ts +5 -0
- package/dist/components/checkbox/Checkbox.d.ts +5 -0
- package/dist/components/checkbox-field/CheckboxField.js +1 -1
- package/dist/components/checkbox-field/CheckboxField.js.map +1 -1
- package/dist/components/checkbox-group/CheckboxGroup.d.ts +105 -90
- package/dist/components/checkbox-tree/CheckboxTree.d.ts +364 -344
- package/dist/components/chip/Chip.d.ts +35 -0
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +15 -0
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +15 -0
- package/dist/components/combobox/Combobox.d.ts +25 -0
- package/dist/components/combobox/ComboboxInput.d.ts +5 -0
- package/dist/components/combobox/ComboboxList.d.ts +5 -0
- package/dist/components/combobox/ComboboxOption.d.ts +5 -0
- package/dist/components/combobox/ComboboxPopover.d.ts +5 -0
- package/dist/components/create-password-field/CreatePasswordField.d.ts +1 -1
- package/dist/components/create-password-field/CreatePasswordField.js +1 -1
- package/dist/components/create-password-field/CreatePasswordField.js.map +1 -1
- package/dist/components/data-table/DataTable.d.ts +153 -110
- package/dist/components/data-table/DataTableLoading.d.ts +5 -0
- package/dist/components/data-table/pagination/Pagination.d.ts +5 -0
- package/dist/components/date-field/DateField.d.ts +1 -1
- package/dist/components/date-field/DateField.js +1 -1
- package/dist/components/date-field/DateField.js.map +1 -1
- package/dist/components/dialog/Dialog.d.ts +27 -2
- package/dist/components/dialog/DialogBackground.d.ts +10 -0
- package/dist/components/dialog/DialogClose.d.ts +5 -0
- package/dist/components/dialog/DialogContent.d.ts +5 -0
- package/dist/components/dismissible/index.d.ts +2 -2
- package/dist/components/dismissible-group/index.d.ts +3 -3
- package/dist/components/divider/Divider.d.ts +5 -0
- package/dist/components/drawer/Drawer.d.ts +20 -0
- package/dist/components/drawer/DrawerContent.d.ts +5 -0
- package/dist/components/drawer/DrawerFooter.d.ts +5 -0
- package/dist/components/drawer/DrawerHeader.d.ts +5 -0
- package/dist/components/drawer/DrawerMain.d.ts +5 -0
- package/dist/components/drawer/DrawerOverlay.d.ts +5 -0
- package/dist/components/drawer/DrawerTrigger.d.ts +5 -0
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +25 -0
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +5 -0
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +5 -0
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +5 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +5 -0
- package/dist/components/empty-state/EmptyState.d.ts +35 -0
- package/dist/components/empty-state/EmptyStateBody.d.ts +10 -0
- package/dist/components/empty-state/EmptyStateImage.d.ts +10 -0
- package/dist/components/empty-state/EmptyStateTitle.d.ts +5 -0
- package/dist/components/field-wrapper/FieldWrapper.d.ts +1 -3
- package/dist/components/field-wrapper/FieldWrapper.js +1 -1
- package/dist/components/field-wrapper/FieldWrapper.js.map +1 -1
- package/dist/components/flex/Flex.d.ts +5 -0
- package/dist/components/form/Form.d.ts +7 -3
- package/dist/components/form/Form.js +1 -1
- package/dist/components/form/Form.js.map +1 -1
- package/dist/components/form/index.d.ts +0 -1
- package/dist/components/grid/Grid.d.ts +5 -0
- package/dist/components/heading/Heading.d.ts +5 -1
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/heading/Heading.js.map +1 -1
- package/dist/components/icon/Icon.d.ts +5 -0
- package/dist/components/image/Image.d.ts +5 -0
- package/dist/components/inline-message/InlineMessage.d.ts +10 -0
- package/dist/components/input/Input.d.ts +16 -3
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input/Input.js.map +1 -1
- package/dist/components/input-field/InputField.d.ts +1 -1
- package/dist/components/input-field/InputField.js +1 -1
- package/dist/components/input-field/InputField.js.map +1 -1
- package/dist/components/keyboard-shortcut/KeyboardShortcut.d.ts +10 -0
- package/dist/components/keyboard-shortcut/index.d.ts +17 -2
- package/dist/components/label/Label.d.ts +6 -2
- package/dist/components/label/Label.js +1 -1
- package/dist/components/label/Label.js.map +1 -1
- package/dist/components/link/Link.d.ts +5 -0
- package/dist/components/list/List.d.ts +10 -0
- package/dist/components/markdown-content/MarkdownContent.d.ts +10 -0
- package/dist/components/markdown-content/components/MarkdownEmphasis.d.ts +5 -0
- package/dist/components/navigation/NavigationMenu.d.ts +45 -0
- package/dist/components/navigation/NavigationMenuDropdownContent.d.ts +5 -0
- package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +10 -0
- package/dist/components/navigation/NavigationMenuDropdownTrigger.d.ts +5 -0
- package/dist/components/navigation/NavigationMenuLink.d.ts +5 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.d.ts +217 -162
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionContent.d.ts +5 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionTrigger.d.ts +5 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalIcon.d.ts +10 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItem.d.ts +5 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.d.ts +5 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalList.d.ts +5 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.d.ts +10 -0
- package/dist/components/number-input/NumberInput.d.ts +1 -2
- package/dist/components/number-input/NumberInput.js +1 -1
- package/dist/components/number-input/NumberInput.js.map +1 -1
- package/dist/components/number-input/NumberInputStepper.d.ts +1 -756
- package/dist/components/number-input/NumberInputStepper.js +1 -1
- package/dist/components/number-input/NumberInputStepper.js.map +1 -1
- package/dist/components/number-input-field/NumberInputField.d.ts +1 -1
- package/dist/components/number-input-field/NumberInputField.js +1 -1
- package/dist/components/number-input-field/NumberInputField.js.map +1 -1
- package/dist/components/pagination/PaginationNextButton.d.ts +13 -3
- package/dist/components/pagination/PaginationPopover.js +1 -1
- package/dist/components/pagination/PaginationPopover.js.map +1 -1
- package/dist/components/pagination/PaginationPreviousButton.d.ts +13 -3
- package/dist/components/password-field/PasswordField.d.ts +1 -1
- package/dist/components/password-field/PasswordField.js +1 -1
- package/dist/components/password-field/PasswordField.js.map +1 -1
- package/dist/components/popover/Popover.d.ts +10 -0
- package/dist/components/popover/PopoverContent.d.ts +5 -0
- package/dist/components/progress-bar/ProgressBar.d.ts +5 -0
- package/dist/components/radio-button/RadioButton.d.ts +5 -0
- package/dist/components/radio-button/RadioButtonGroup.d.ts +5 -0
- package/dist/components/radio-button-field/RadioButtonField.d.ts +5 -0
- package/dist/components/radio-button-field/RadioButtonField.js +1 -1
- package/dist/components/radio-button-field/RadioButtonField.js.map +1 -1
- package/dist/components/radio-card/RadioCard.d.ts +5 -0
- package/dist/components/search-field/SearchField.d.ts +1 -1
- package/dist/components/search-field/SearchField.js +1 -1
- package/dist/components/search-field/SearchField.js.map +1 -1
- package/dist/components/search-input/SearchInput.js +1 -1
- package/dist/components/search-input/SearchInput.js.map +1 -1
- package/dist/components/section-message/SectionMessage.d.ts +11 -1
- package/dist/components/segmented-control/SegmentedControl.d.ts +49 -9
- package/dist/components/segmented-control/SegmentedControlContent.d.ts +5 -0
- package/dist/components/segmented-control/SegmentedControlDescription.d.ts +10 -0
- package/dist/components/segmented-control/SegmentedControlHeading.d.ts +10 -0
- package/dist/components/segmented-control/SegmentedControlItem.d.ts +10 -0
- package/dist/components/segmented-control/SegmentedControlRoot.d.ts +25 -0
- package/dist/components/select/Select.d.ts +5 -1
- package/dist/components/select/Select.js +1 -1
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/select-field/SelectField.d.ts +1 -1
- package/dist/components/select-field/SelectField.js +1 -1
- package/dist/components/select-field/SelectField.js.map +1 -1
- package/dist/components/side-bar/SideBar.d.ts +40 -0
- package/dist/components/side-bar/SideBarComponents.d.ts +36 -1
- package/dist/components/slider/Slider.d.ts +5 -0
- package/dist/components/sortable/Handle.d.ts +13 -3
- package/dist/components/sortable/index.d.ts +3 -3
- package/dist/components/spacer/Spacer.d.ts +5 -0
- package/dist/components/stepper/StepperStepBullet.d.ts +10 -0
- package/dist/components/stepper/StepperStepContainer.d.ts +10 -0
- package/dist/components/stepper/StepperStepLabel.d.ts +11 -1
- package/dist/components/switch/Switch.d.ts +5 -0
- package/dist/components/table/Table.d.ts +40 -0
- package/dist/components/table/TableBody.d.ts +5 -0
- package/dist/components/table/TableCell.d.ts +5 -0
- package/dist/components/table/TableFooter.d.ts +5 -0
- package/dist/components/table/TableFooterCell.d.ts +5 -0
- package/dist/components/table/TableHeader.d.ts +5 -0
- package/dist/components/table/TableHeaderCell.d.ts +5 -0
- package/dist/components/table/TableRow.d.ts +5 -0
- package/dist/components/tabs/Tabs.d.ts +20 -0
- package/dist/components/tabs/TabsContent.d.ts +5 -0
- package/dist/components/tabs/TabsTrigger.d.ts +5 -0
- package/dist/components/tabs/TabsTriggerList.d.ts +5 -0
- package/dist/components/text/Text.d.ts +5 -0
- package/dist/components/textarea/Textarea.d.ts +5 -1
- package/dist/components/textarea/Textarea.js +1 -1
- package/dist/components/textarea/Textarea.js.map +1 -1
- package/dist/components/textarea-field/TextareaField.d.ts +1 -1
- package/dist/components/textarea-field/TextareaField.js +1 -1
- package/dist/components/textarea-field/TextareaField.js.map +1 -1
- package/dist/components/tile/Tile.d.ts +5 -1
- package/dist/components/tile/Tile.js +1 -1
- package/dist/components/tile/Tile.js.map +1 -1
- package/dist/components/tile/TileGroup.d.ts +5 -0
- package/dist/components/tile-interactive/TileInteractive.d.ts +11 -2
- package/dist/components/tile-toggle-group/TileToggleGroupItem.d.ts +16 -2
- package/dist/components/toast/Toast.d.ts +10 -0
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +10 -0
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +10 -0
- package/dist/components/toggle-group/ToggleGroupRoot.d.ts +5 -0
- package/dist/components/toggle-group/index.d.ts +32 -2
- package/dist/components/tooltip/Tooltip.d.ts +10 -0
- package/dist/components/tooltip/TooltipContent.d.ts +5 -0
- package/dist/components/top-bar/TopBar.d.ts +29 -5
- package/dist/components/top-bar/TopBar.js +1 -1
- package/dist/components/top-bar/TopBar.js.map +1 -1
- package/dist/components/top-bar/TopBarBrand.d.ts +15 -0
- package/dist/components/tree/Tree.d.ts +303 -243
- package/dist/components/tree/TreeCollapsible.d.ts +5 -0
- package/dist/components/tree/TreeCollapsibleContent.d.ts +5 -0
- package/dist/components/tree/TreeIcon.d.ts +10 -0
- package/dist/components/tree/TreeItemContent.d.ts +5 -0
- package/dist/components/tree/TreeListItem.d.ts +5 -0
- package/dist/components/video/Video.d.ts +5 -0
- package/dist/docgen.json +1 -1
- package/dist/experiments/color-scheme/ColorScheme.d.ts +5 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/stitches.d.ts +55 -0
- package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.d.ts +10 -0
- package/package.json +3 -3
- package/dist/components/form/useFormCustomContext.d.ts +0 -7
- package/dist/components/form/useFormCustomContext.js +0 -2
- package/dist/components/form/useFormCustomContext.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const SegmentedControl: {
|
|
2
|
-
Root: ({ size, theme, defaultValue, children, ...props }:
|
|
2
|
+
Root: ({ size, theme, defaultValue, children, ...props }: import("react").PropsWithChildren<import("./SegmentedControlRoot").SegmentedControlRootProps>) => import("react").JSX.Element;
|
|
3
3
|
Item: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<import("@radix-ui/react-tabs").TabsTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "css"> & import("@atom-learning/stitches-react/types/styled-component").TransformProps<{}, {
|
|
4
4
|
sm: string;
|
|
5
5
|
md: string;
|
|
@@ -234,6 +234,11 @@ export declare const SegmentedControl: {
|
|
|
234
234
|
subjectNonVerbalReasoning: string;
|
|
235
235
|
subjectCreativeWriting: string;
|
|
236
236
|
subjectExamSkills: string;
|
|
237
|
+
subjectGcseEnglishLiterature: string;
|
|
238
|
+
subjectGcseMaths: string;
|
|
239
|
+
subjectGcseChemistry: string;
|
|
240
|
+
subjectGcsePhysics: string;
|
|
241
|
+
subjectGcseBiology: string;
|
|
237
242
|
glBlueLight: string;
|
|
238
243
|
glBluePrimary: string;
|
|
239
244
|
glBlueDark: string;
|
|
@@ -604,6 +609,11 @@ export declare const SegmentedControl: {
|
|
|
604
609
|
subjectNonVerbalReasoning: string;
|
|
605
610
|
subjectCreativeWriting: string;
|
|
606
611
|
subjectExamSkills: string;
|
|
612
|
+
subjectGcseEnglishLiterature: string;
|
|
613
|
+
subjectGcseMaths: string;
|
|
614
|
+
subjectGcseChemistry: string;
|
|
615
|
+
subjectGcsePhysics: string;
|
|
616
|
+
subjectGcseBiology: string;
|
|
607
617
|
glBlueLight: string;
|
|
608
618
|
glBluePrimary: string;
|
|
609
619
|
glBlueDark: string;
|
|
@@ -736,7 +746,7 @@ export declare const SegmentedControl: {
|
|
|
736
746
|
};
|
|
737
747
|
}> | undefined;
|
|
738
748
|
}, "size">, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
739
|
-
Heading: (props: Omit<
|
|
749
|
+
Heading: (props: Omit<import("react").ComponentProps<import("@atom-learning/stitches-react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
740
750
|
ref?: ((instance: HTMLParagraphElement | null) => void) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
|
|
741
751
|
}, "size" | "css" | "weight" | "noCapsize" | "family"> & import("@atom-learning/stitches-react/types/styled-component").TransformProps<{
|
|
742
752
|
weight?: "bold" | "normal" | undefined;
|
|
@@ -977,6 +987,11 @@ export declare const SegmentedControl: {
|
|
|
977
987
|
subjectNonVerbalReasoning: string;
|
|
978
988
|
subjectCreativeWriting: string;
|
|
979
989
|
subjectExamSkills: string;
|
|
990
|
+
subjectGcseEnglishLiterature: string;
|
|
991
|
+
subjectGcseMaths: string;
|
|
992
|
+
subjectGcseChemistry: string;
|
|
993
|
+
subjectGcsePhysics: string;
|
|
994
|
+
subjectGcseBiology: string;
|
|
980
995
|
glBlueLight: string;
|
|
981
996
|
glBluePrimary: string;
|
|
982
997
|
glBlueDark: string;
|
|
@@ -1109,7 +1124,7 @@ export declare const SegmentedControl: {
|
|
|
1109
1124
|
};
|
|
1110
1125
|
}> | undefined;
|
|
1111
1126
|
}, "as"> & {
|
|
1112
|
-
as?: "blockquote" | "caption" | "dd" | "dt" | "figcaption" | "li" | "p" | "span" | "legend" |
|
|
1127
|
+
as?: "blockquote" | "caption" | "dd" | "dt" | "figcaption" | "li" | "p" | "span" | "legend" | import("react").ComponentType | import("react").ElementType;
|
|
1113
1128
|
}>, {
|
|
1114
1129
|
size?: "sm" | "md" | "lg" | undefined;
|
|
1115
1130
|
}, {
|
|
@@ -1345,6 +1360,11 @@ export declare const SegmentedControl: {
|
|
|
1345
1360
|
subjectNonVerbalReasoning: string;
|
|
1346
1361
|
subjectCreativeWriting: string;
|
|
1347
1362
|
subjectExamSkills: string;
|
|
1363
|
+
subjectGcseEnglishLiterature: string;
|
|
1364
|
+
subjectGcseMaths: string;
|
|
1365
|
+
subjectGcseChemistry: string;
|
|
1366
|
+
subjectGcsePhysics: string;
|
|
1367
|
+
subjectGcseBiology: string;
|
|
1348
1368
|
glBlueLight: string;
|
|
1349
1369
|
glBluePrimary: string;
|
|
1350
1370
|
glBlueDark: string;
|
|
@@ -1476,7 +1496,7 @@ export declare const SegmentedControl: {
|
|
|
1476
1496
|
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
1477
1497
|
};
|
|
1478
1498
|
}>>>, "size">) => JSX.Element;
|
|
1479
|
-
Description: (props: Omit<
|
|
1499
|
+
Description: (props: Omit<import("react").ComponentProps<import("@atom-learning/stitches-react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
1480
1500
|
ref?: ((instance: HTMLParagraphElement | null) => void) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
|
|
1481
1501
|
}, "size" | "css" | "weight" | "noCapsize" | "family"> & import("@atom-learning/stitches-react/types/styled-component").TransformProps<{
|
|
1482
1502
|
weight?: "bold" | "normal" | undefined;
|
|
@@ -1717,6 +1737,11 @@ export declare const SegmentedControl: {
|
|
|
1717
1737
|
subjectNonVerbalReasoning: string;
|
|
1718
1738
|
subjectCreativeWriting: string;
|
|
1719
1739
|
subjectExamSkills: string;
|
|
1740
|
+
subjectGcseEnglishLiterature: string;
|
|
1741
|
+
subjectGcseMaths: string;
|
|
1742
|
+
subjectGcseChemistry: string;
|
|
1743
|
+
subjectGcsePhysics: string;
|
|
1744
|
+
subjectGcseBiology: string;
|
|
1720
1745
|
glBlueLight: string;
|
|
1721
1746
|
glBluePrimary: string;
|
|
1722
1747
|
glBlueDark: string;
|
|
@@ -1849,7 +1874,7 @@ export declare const SegmentedControl: {
|
|
|
1849
1874
|
};
|
|
1850
1875
|
}> | undefined;
|
|
1851
1876
|
}, "as"> & {
|
|
1852
|
-
as?: "blockquote" | "caption" | "dd" | "dt" | "figcaption" | "li" | "p" | "span" | "legend" |
|
|
1877
|
+
as?: "blockquote" | "caption" | "dd" | "dt" | "figcaption" | "li" | "p" | "span" | "legend" | import("react").ComponentType | import("react").ElementType;
|
|
1853
1878
|
}>, {
|
|
1854
1879
|
size?: "sm" | "md" | "lg" | undefined;
|
|
1855
1880
|
}, {
|
|
@@ -2085,6 +2110,11 @@ export declare const SegmentedControl: {
|
|
|
2085
2110
|
subjectNonVerbalReasoning: string;
|
|
2086
2111
|
subjectCreativeWriting: string;
|
|
2087
2112
|
subjectExamSkills: string;
|
|
2113
|
+
subjectGcseEnglishLiterature: string;
|
|
2114
|
+
subjectGcseMaths: string;
|
|
2115
|
+
subjectGcseChemistry: string;
|
|
2116
|
+
subjectGcsePhysics: string;
|
|
2117
|
+
subjectGcseBiology: string;
|
|
2088
2118
|
glBlueLight: string;
|
|
2089
2119
|
glBluePrimary: string;
|
|
2090
2120
|
glBlueDark: string;
|
|
@@ -2216,7 +2246,7 @@ export declare const SegmentedControl: {
|
|
|
2216
2246
|
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
2217
2247
|
};
|
|
2218
2248
|
}>>>, "size">) => JSX.Element;
|
|
2219
|
-
Icon: (props: Omit<
|
|
2249
|
+
Icon: (props: Omit<import("react").ComponentProps<typeof import("..").Icon>, "size">) => JSX.Element;
|
|
2220
2250
|
Content: import("@atom-learning/stitches-react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsContentProps & import("react").RefAttributes<HTMLDivElement>>, {}, {
|
|
2221
2251
|
sm: string;
|
|
2222
2252
|
md: string;
|
|
@@ -2450,6 +2480,11 @@ export declare const SegmentedControl: {
|
|
|
2450
2480
|
subjectNonVerbalReasoning: string;
|
|
2451
2481
|
subjectCreativeWriting: string;
|
|
2452
2482
|
subjectExamSkills: string;
|
|
2483
|
+
subjectGcseEnglishLiterature: string;
|
|
2484
|
+
subjectGcseMaths: string;
|
|
2485
|
+
subjectGcseChemistry: string;
|
|
2486
|
+
subjectGcsePhysics: string;
|
|
2487
|
+
subjectGcseBiology: string;
|
|
2453
2488
|
glBlueLight: string;
|
|
2454
2489
|
glBluePrimary: string;
|
|
2455
2490
|
glBlueDark: string;
|
|
@@ -2581,9 +2616,9 @@ export declare const SegmentedControl: {
|
|
|
2581
2616
|
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
2582
2617
|
};
|
|
2583
2618
|
}>>;
|
|
2584
|
-
Badge: ({ css, ...props }: Omit<
|
|
2585
|
-
ItemList: (props:
|
|
2586
|
-
({ children, colorScheme, ...rest }:
|
|
2619
|
+
Badge: ({ css, ...props }: Omit<import("react").ComponentProps<typeof import("..").Badge>, "size">) => JSX.Element;
|
|
2620
|
+
ItemList: (props: import("react").ComponentProps<{
|
|
2621
|
+
({ children, colorScheme, ...rest }: import("react").ComponentProps<import("@atom-learning/stitches-react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsListProps & import("react").RefAttributes<HTMLDivElement>>, {}, {
|
|
2587
2622
|
sm: string;
|
|
2588
2623
|
md: string;
|
|
2589
2624
|
lg: string;
|
|
@@ -2816,6 +2851,11 @@ export declare const SegmentedControl: {
|
|
|
2816
2851
|
subjectNonVerbalReasoning: string;
|
|
2817
2852
|
subjectCreativeWriting: string;
|
|
2818
2853
|
subjectExamSkills: string;
|
|
2854
|
+
subjectGcseEnglishLiterature: string;
|
|
2855
|
+
subjectGcseMaths: string;
|
|
2856
|
+
subjectGcseChemistry: string;
|
|
2857
|
+
subjectGcsePhysics: string;
|
|
2858
|
+
subjectGcseBiology: string;
|
|
2819
2859
|
glBlueLight: string;
|
|
2820
2860
|
glBluePrimary: string;
|
|
2821
2861
|
glBlueDark: string;
|
|
@@ -232,6 +232,11 @@ export declare const SegmentedControlContent: import("@atom-learning/stitches-re
|
|
|
232
232
|
subjectNonVerbalReasoning: string;
|
|
233
233
|
subjectCreativeWriting: string;
|
|
234
234
|
subjectExamSkills: string;
|
|
235
|
+
subjectGcseEnglishLiterature: string;
|
|
236
|
+
subjectGcseMaths: string;
|
|
237
|
+
subjectGcseChemistry: string;
|
|
238
|
+
subjectGcsePhysics: string;
|
|
239
|
+
subjectGcseBiology: string;
|
|
235
240
|
glBlueLight: string;
|
|
236
241
|
glBluePrimary: string;
|
|
237
242
|
glBlueDark: string;
|
|
@@ -240,6 +240,11 @@ declare const StyledText: import("@atom-learning/stitches-react/types/styled-com
|
|
|
240
240
|
subjectNonVerbalReasoning: string;
|
|
241
241
|
subjectCreativeWriting: string;
|
|
242
242
|
subjectExamSkills: string;
|
|
243
|
+
subjectGcseEnglishLiterature: string;
|
|
244
|
+
subjectGcseMaths: string;
|
|
245
|
+
subjectGcseChemistry: string;
|
|
246
|
+
subjectGcsePhysics: string;
|
|
247
|
+
subjectGcseBiology: string;
|
|
243
248
|
glBlueLight: string;
|
|
244
249
|
glBluePrimary: string;
|
|
245
250
|
glBlueDark: string;
|
|
@@ -608,6 +613,11 @@ declare const StyledText: import("@atom-learning/stitches-react/types/styled-com
|
|
|
608
613
|
subjectNonVerbalReasoning: string;
|
|
609
614
|
subjectCreativeWriting: string;
|
|
610
615
|
subjectExamSkills: string;
|
|
616
|
+
subjectGcseEnglishLiterature: string;
|
|
617
|
+
subjectGcseMaths: string;
|
|
618
|
+
subjectGcseChemistry: string;
|
|
619
|
+
subjectGcsePhysics: string;
|
|
620
|
+
subjectGcseBiology: string;
|
|
611
621
|
glBlueLight: string;
|
|
612
622
|
glBluePrimary: string;
|
|
613
623
|
glBlueDark: string;
|
|
@@ -240,6 +240,11 @@ declare const StyledHeading: import("@atom-learning/stitches-react/types/styled-
|
|
|
240
240
|
subjectNonVerbalReasoning: string;
|
|
241
241
|
subjectCreativeWriting: string;
|
|
242
242
|
subjectExamSkills: string;
|
|
243
|
+
subjectGcseEnglishLiterature: string;
|
|
244
|
+
subjectGcseMaths: string;
|
|
245
|
+
subjectGcseChemistry: string;
|
|
246
|
+
subjectGcsePhysics: string;
|
|
247
|
+
subjectGcseBiology: string;
|
|
243
248
|
glBlueLight: string;
|
|
244
249
|
glBluePrimary: string;
|
|
245
250
|
glBlueDark: string;
|
|
@@ -608,6 +613,11 @@ declare const StyledHeading: import("@atom-learning/stitches-react/types/styled-
|
|
|
608
613
|
subjectNonVerbalReasoning: string;
|
|
609
614
|
subjectCreativeWriting: string;
|
|
610
615
|
subjectExamSkills: string;
|
|
616
|
+
subjectGcseEnglishLiterature: string;
|
|
617
|
+
subjectGcseMaths: string;
|
|
618
|
+
subjectGcseChemistry: string;
|
|
619
|
+
subjectGcsePhysics: string;
|
|
620
|
+
subjectGcseBiology: string;
|
|
611
621
|
glBlueLight: string;
|
|
612
622
|
glBluePrimary: string;
|
|
613
623
|
glBlueDark: string;
|
|
@@ -233,6 +233,11 @@ export declare const SegmentedControlItem: React.ForwardRefExoticComponent<Omit<
|
|
|
233
233
|
subjectNonVerbalReasoning: string;
|
|
234
234
|
subjectCreativeWriting: string;
|
|
235
235
|
subjectExamSkills: string;
|
|
236
|
+
subjectGcseEnglishLiterature: string;
|
|
237
|
+
subjectGcseMaths: string;
|
|
238
|
+
subjectGcseChemistry: string;
|
|
239
|
+
subjectGcsePhysics: string;
|
|
240
|
+
subjectGcseBiology: string;
|
|
236
241
|
glBlueLight: string;
|
|
237
242
|
glBluePrimary: string;
|
|
238
243
|
glBlueDark: string;
|
|
@@ -603,6 +608,11 @@ export declare const SegmentedControlItem: React.ForwardRefExoticComponent<Omit<
|
|
|
603
608
|
subjectNonVerbalReasoning: string;
|
|
604
609
|
subjectCreativeWriting: string;
|
|
605
610
|
subjectExamSkills: string;
|
|
611
|
+
subjectGcseEnglishLiterature: string;
|
|
612
|
+
subjectGcseMaths: string;
|
|
613
|
+
subjectGcseChemistry: string;
|
|
614
|
+
subjectGcsePhysics: string;
|
|
615
|
+
subjectGcseBiology: string;
|
|
606
616
|
glBlueLight: string;
|
|
607
617
|
glBluePrimary: string;
|
|
608
618
|
glBlueDark: string;
|
|
@@ -233,6 +233,11 @@ declare const StyledSegmentedControlRoot: import("@atom-learning/stitches-react/
|
|
|
233
233
|
subjectNonVerbalReasoning: string;
|
|
234
234
|
subjectCreativeWriting: string;
|
|
235
235
|
subjectExamSkills: string;
|
|
236
|
+
subjectGcseEnglishLiterature: string;
|
|
237
|
+
subjectGcseMaths: string;
|
|
238
|
+
subjectGcseChemistry: string;
|
|
239
|
+
subjectGcsePhysics: string;
|
|
240
|
+
subjectGcseBiology: string;
|
|
236
241
|
glBlueLight: string;
|
|
237
242
|
glBluePrimary: string;
|
|
238
243
|
glBlueDark: string;
|
|
@@ -598,6 +603,11 @@ declare const StyledSegmentedControlRoot: import("@atom-learning/stitches-react/
|
|
|
598
603
|
subjectNonVerbalReasoning: string;
|
|
599
604
|
subjectCreativeWriting: string;
|
|
600
605
|
subjectExamSkills: string;
|
|
606
|
+
subjectGcseEnglishLiterature: string;
|
|
607
|
+
subjectGcseMaths: string;
|
|
608
|
+
subjectGcseChemistry: string;
|
|
609
|
+
subjectGcsePhysics: string;
|
|
610
|
+
subjectGcseBiology: string;
|
|
601
611
|
glBlueLight: string;
|
|
602
612
|
glBluePrimary: string;
|
|
603
613
|
glBlueDark: string;
|
|
@@ -967,6 +977,11 @@ declare const StyledSegmentedControlRoot: import("@atom-learning/stitches-react/
|
|
|
967
977
|
subjectNonVerbalReasoning: string;
|
|
968
978
|
subjectCreativeWriting: string;
|
|
969
979
|
subjectExamSkills: string;
|
|
980
|
+
subjectGcseEnglishLiterature: string;
|
|
981
|
+
subjectGcseMaths: string;
|
|
982
|
+
subjectGcseChemistry: string;
|
|
983
|
+
subjectGcsePhysics: string;
|
|
984
|
+
subjectGcseBiology: string;
|
|
970
985
|
glBlueLight: string;
|
|
971
986
|
glBluePrimary: string;
|
|
972
987
|
glBlueDark: string;
|
|
@@ -1334,6 +1349,11 @@ declare const StyledSegmentedControlRoot: import("@atom-learning/stitches-react/
|
|
|
1334
1349
|
subjectNonVerbalReasoning: string;
|
|
1335
1350
|
subjectCreativeWriting: string;
|
|
1336
1351
|
subjectExamSkills: string;
|
|
1352
|
+
subjectGcseEnglishLiterature: string;
|
|
1353
|
+
subjectGcseMaths: string;
|
|
1354
|
+
subjectGcseChemistry: string;
|
|
1355
|
+
subjectGcsePhysics: string;
|
|
1356
|
+
subjectGcseBiology: string;
|
|
1337
1357
|
glBlueLight: string;
|
|
1338
1358
|
glBluePrimary: string;
|
|
1339
1359
|
glBlueDark: string;
|
|
@@ -1700,6 +1720,11 @@ declare const StyledSegmentedControlRoot: import("@atom-learning/stitches-react/
|
|
|
1700
1720
|
subjectNonVerbalReasoning: string;
|
|
1701
1721
|
subjectCreativeWriting: string;
|
|
1702
1722
|
subjectExamSkills: string;
|
|
1723
|
+
subjectGcseEnglishLiterature: string;
|
|
1724
|
+
subjectGcseMaths: string;
|
|
1725
|
+
subjectGcseChemistry: string;
|
|
1726
|
+
subjectGcsePhysics: string;
|
|
1727
|
+
subjectGcseBiology: string;
|
|
1703
1728
|
glBlueLight: string;
|
|
1704
1729
|
glBluePrimary: string;
|
|
1705
1730
|
glBlueDark: string;
|
|
@@ -3,7 +3,6 @@ import { Override } from '../../utilities/types';
|
|
|
3
3
|
declare const StyledSelect: import("@atom-learning/stitches-react/types/styled-component").StyledComponent<"select", {
|
|
4
4
|
size?: "sm" | "md" | "lg" | undefined;
|
|
5
5
|
state?: "error" | undefined;
|
|
6
|
-
appearance?: "standard" | "modern" | undefined;
|
|
7
6
|
}, {
|
|
8
7
|
sm: string;
|
|
9
8
|
md: string;
|
|
@@ -237,6 +236,11 @@ declare const StyledSelect: import("@atom-learning/stitches-react/types/styled-c
|
|
|
237
236
|
subjectNonVerbalReasoning: string;
|
|
238
237
|
subjectCreativeWriting: string;
|
|
239
238
|
subjectExamSkills: string;
|
|
239
|
+
subjectGcseEnglishLiterature: string;
|
|
240
|
+
subjectGcseMaths: string;
|
|
241
|
+
subjectGcseChemistry: string;
|
|
242
|
+
subjectGcsePhysics: string;
|
|
243
|
+
subjectGcseBiology: string;
|
|
240
244
|
glBlueLight: string;
|
|
241
245
|
glBluePrimary: string;
|
|
242
246
|
glBlueDark: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as o from"react";import{styled as
|
|
1
|
+
import*as o from"react";import{styled as p,theme as s}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import{encodeBackgroundIcon as c}from"../../utilities/style/encode-background-icon.js";import"../../utilities/style/keyframe-animations.js";import{disabledStyle as u}from"../../utilities/style/disabledStyle.js";const m=p("select",{appearance:"none",backgroundColor:"white",backgroundImage:c(s.colors.grey700.value,"chevron"),backgroundRepeat:"no-repeat, repeat",border:"1px solid $grey700",borderRadius:"$0",color:"$grey1000",display:"block",fontFamily:"$body",fontWeight:400,lineHeight:1.4,transition:"all 75ms ease-out",width:"100%","&:hover":{cursor:"pointer"},"&:focus":{borderColor:"$primary800",outline:"none"},"&::-ms-expand":{display:"none"},"&[disabled], > option[disabled]":u,variants:{size:{sm:{backgroundPosition:"right $space$2 top 50%, 0 0",backgroundSize:"18px auto, 100%",fontSize:"$sm",height:"$3",pl:"$2",pr:"$5"},md:{backgroundPosition:"right $space$3 top 50%, 0 0",backgroundSize:"20px auto, 100%",fontSize:"$md",height:"$4",pl:"$3",pr:"$6"},lg:{backgroundPosition:"right $space$3 top 50%, 0 0",backgroundSize:"20px auto, 100%",fontSize:"$md",height:"$5",pl:"$3",pr:"$6"}},state:{error:{border:"1px solid $danger"}}}}),i=o.forwardRef(({placeholder:r,children:a,size:n="md",...e},d)=>{const t={size:n,ref:d,...e};return[e.value,e.defaultValue].every(l=>l===void 0)&&(t.defaultValue=""),o.createElement(m,{...t},r&&o.createElement("option",{disabled:!0,hidden:!0,value:""},r),a)});i.displayName="Select";export{i as Select};
|
|
2
2
|
//# sourceMappingURL=Select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sources":["../../../src/components/select/Select.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled, theme } from '~/stitches'\nimport { disabledStyle, encodeBackgroundIcon } from '~/utilities'\nimport { Override } from '~/utilities/types'\n\nconst StyledSelect = styled('select', {\n appearance: 'none',\n backgroundImage: encodeBackgroundIcon(theme.colors.grey700.value, 'chevron'),\n backgroundRepeat: 'no-repeat, repeat',\n color: '$grey1000',\n display: 'block',\n fontFamily: '$body',\n fontWeight: 400,\n lineHeight: 1.4,\n width: '100%',\n '&:hover': {\n cursor: 'pointer'\n },\n '&::-ms-expand': {\n display: 'none'\n },\n '&[disabled], > option[disabled]': disabledStyle,\n variants: {\n size: {\n sm: {\n backgroundPosition: 'right $space$2 top 50%, 0 0',\n backgroundSize: '18px auto, 100%',\n fontSize: '$sm',\n height: '$3',\n pl: '$2',\n pr: '$5'\n },\n md: {\n backgroundPosition: 'right $space$3 top 50%, 0 0',\n backgroundSize: '20px auto, 100%',\n fontSize: '$md',\n height: '$4',\n pl: '$3',\n pr: '$6'\n },\n lg: {\n backgroundPosition: 'right $space$3 top 50%, 0 0',\n backgroundSize: '20px auto, 100%',\n fontSize: '$md',\n height: '$5',\n pl: '$3',\n pr: '$6'\n }\n },\n state: {\n error: {
|
|
1
|
+
{"version":3,"file":"Select.js","sources":["../../../src/components/select/Select.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled, theme } from '~/stitches'\nimport { disabledStyle, encodeBackgroundIcon } from '~/utilities'\nimport { Override } from '~/utilities/types'\n\nconst StyledSelect = styled('select', {\n appearance: 'none',\n backgroundColor: 'white',\n backgroundImage: encodeBackgroundIcon(theme.colors.grey700.value, 'chevron'),\n backgroundRepeat: 'no-repeat, repeat',\n border: '1px solid $grey700',\n borderRadius: '$0',\n color: '$grey1000',\n display: 'block',\n fontFamily: '$body',\n fontWeight: 400,\n lineHeight: 1.4,\n transition: 'all 75ms ease-out',\n width: '100%',\n '&:hover': {\n cursor: 'pointer'\n },\n '&:focus': {\n borderColor: '$primary800',\n outline: 'none'\n },\n '&::-ms-expand': {\n display: 'none'\n },\n '&[disabled], > option[disabled]': disabledStyle,\n variants: {\n size: {\n sm: {\n backgroundPosition: 'right $space$2 top 50%, 0 0',\n backgroundSize: '18px auto, 100%',\n fontSize: '$sm',\n height: '$3',\n pl: '$2',\n pr: '$5'\n },\n md: {\n backgroundPosition: 'right $space$3 top 50%, 0 0',\n backgroundSize: '20px auto, 100%',\n fontSize: '$md',\n height: '$4',\n pl: '$3',\n pr: '$6'\n },\n lg: {\n backgroundPosition: 'right $space$3 top 50%, 0 0',\n backgroundSize: '20px auto, 100%',\n fontSize: '$md',\n height: '$5',\n pl: '$3',\n pr: '$6'\n }\n },\n state: {\n error: {\n border: '1px solid $danger'\n }\n }\n }\n})\n\nexport type SelectProps = Override<\n React.ComponentProps<typeof StyledSelect>,\n {\n as?: never\n placeholder?: string\n }\n // TODO: figure out why uncommenting this causes TS errors in\n // component declaration\n // & (\n // | { id: string; 'aria-label'?: string }\n // | { 'aria-label': string; id?: string }\n // )\n>\n\nexport const Select: React.ForwardRefExoticComponent<SelectProps> =\n React.forwardRef(\n ({ placeholder, children, size = 'md', ...remainingProps }, ref) => {\n const props = { size, ref, ...remainingProps }\n\n if (\n [remainingProps.value, remainingProps.defaultValue].every(\n (value) => value === undefined\n )\n ) {\n props.defaultValue = ''\n }\n\n return (\n <StyledSelect {...props}>\n {placeholder && (\n <option disabled hidden value=\"\">\n {placeholder}\n </option>\n )}\n {children}\n </StyledSelect>\n )\n }\n )\n\nSelect.displayName = 'Select'\n"],"names":["StyledSelect","styled","encodeBackgroundIcon","theme","disabledStyle","Select","React","placeholder","children","size","remainingProps","ref","props","value"],"mappings":"oZAMA,MAAMA,EAAeC,EAAO,SAAU,CACpC,WAAY,OACZ,gBAAiB,QACjB,gBAAiBC,EAAqBC,EAAM,OAAO,QAAQ,MAAO,SAAS,EAC3E,iBAAkB,oBAClB,OAAQ,qBACR,aAAc,KACd,MAAO,YACP,QAAS,QACT,WAAY,QACZ,WAAY,IACZ,WAAY,IACZ,WAAY,oBACZ,MAAO,OACP,UAAW,CACT,OAAQ,SACV,EACA,UAAW,CACT,YAAa,cACb,QAAS,MACX,EACA,gBAAiB,CACf,QAAS,MACX,EACA,kCAAmCC,EACnC,SAAU,CACR,KAAM,CACJ,GAAI,CACF,mBAAoB,8BACpB,eAAgB,kBAChB,SAAU,MACV,OAAQ,KACR,GAAI,KACJ,GAAI,IACN,EACA,GAAI,CACF,mBAAoB,8BACpB,eAAgB,kBAChB,SAAU,MACV,OAAQ,KACR,GAAI,KACJ,GAAI,IACN,EACA,GAAI,CACF,mBAAoB,8BACpB,eAAgB,kBAChB,SAAU,MACV,OAAQ,KACR,GAAI,KACJ,GAAI,IACN,CACF,EACA,MAAO,CACL,MAAO,CACL,OAAQ,mBACV,CACF,CACF,CACF,CAAC,EAgBYC,EACXC,EAAM,WACJ,CAAC,CAAE,YAAAC,EAAa,SAAAC,EAAU,KAAAC,EAAO,QAASC,CAAe,EAAGC,IAAQ,CAClE,MAAMC,EAAQ,CAAE,KAAAH,EAAM,IAAAE,EAAK,GAAGD,CAAe,EAE7C,MACE,CAACA,EAAe,MAAOA,EAAe,YAAY,EAAE,MACjDG,GAAUA,IAAU,MACvB,IAEAD,EAAM,aAAe,IAIrBN,EAAA,cAACN,EAAA,CAAc,GAAGY,CAAAA,EACfL,GACCD,EAAA,cAAC,UAAO,SAAQ,GAAC,OAAM,GAAC,MAAM,IAC3BC,CACH,EAEDC,CACH,CAEJ,CACF,EAEFH,EAAO,YAAc"}
|
|
@@ -3,7 +3,7 @@ import { FieldElementWrapperProps } from '../../components/field-wrapper';
|
|
|
3
3
|
import { SelectProps } from '../../components/select';
|
|
4
4
|
type SelectFieldProps = SelectProps & FieldElementWrapperProps;
|
|
5
5
|
export declare const SelectField: {
|
|
6
|
-
({ css, hideLabel, children, name, label, validation, prompt, description,
|
|
6
|
+
({ css, hideLabel, children, name, label, validation, prompt, description, ...remainingProps }: SelectFieldProps): React.JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as t from"react";import{useFormContext as u}from"react-hook-form";import{FieldWrapper as F}from"../field-wrapper/FieldWrapper.js";import"../field-wrapper/InlineFieldWrapper.js";import"../form/Form.js";import{useFieldError as b}from"../form/useFieldError.js";import{Select as h}from"../select/Select.js";const l=({css:m=void 0,hideLabel:d,children:p,name:e,label:a,validation:r,prompt:n,description:s,...c})=>{const{register:o}=u(),{error:i}=b(e),f=r?o(r):o;return t.createElement(F,{css:m,description:s,error:i,fieldId:e,hideLabel:d,label:a,prompt:n,required:Boolean(r==null?void 0:r.required)},t.createElement(h,{name:e,id:e,...c,ref:f,...i&&{state:"error"}},p))};l.displayName="SelectField";export{l as SelectField};
|
|
2
2
|
//# sourceMappingURL=SelectField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectField.js","sources":["../../../src/components/select-field/SelectField.tsx"],"sourcesContent":["import * as React from 'react'\nimport { useFormContext } from 'react-hook-form'\n\nimport {\n FieldElementWrapperProps,\n FieldWrapper\n} from '~/components/field-wrapper'\nimport { useFieldError
|
|
1
|
+
{"version":3,"file":"SelectField.js","sources":["../../../src/components/select-field/SelectField.tsx"],"sourcesContent":["import * as React from 'react'\nimport { useFormContext } from 'react-hook-form'\n\nimport {\n FieldElementWrapperProps,\n FieldWrapper\n} from '~/components/field-wrapper'\nimport { useFieldError } from '~/components/form'\nimport { Select, SelectProps } from '~/components/select'\n\ntype SelectFieldProps = SelectProps & FieldElementWrapperProps\n\nexport const SelectField = ({\n css = undefined,\n hideLabel,\n children,\n name,\n label,\n validation,\n prompt,\n description,\n ...remainingProps\n}: SelectFieldProps) => {\n const { register } = useFormContext()\n const { error } = useFieldError(name)\n const ref = validation ? register(validation) : register\n\n return (\n <FieldWrapper\n css={css}\n description={description}\n error={error}\n fieldId={name}\n hideLabel={hideLabel}\n label={label}\n prompt={prompt}\n required={Boolean(validation?.required)}\n >\n <Select\n name={name}\n id={name}\n {...remainingProps}\n ref={ref}\n {...(error && { state: 'error' })}\n >\n {children}\n </Select>\n </FieldWrapper>\n )\n}\n\nSelectField.displayName = 'SelectField'\n"],"names":["SelectField","css","hideLabel","children","name","label","validation","prompt","description","remainingProps","register","useFormContext","error","useFieldError","ref","React","FieldWrapper","Select"],"mappings":"sTAYO,MAAMA,EAAc,CAAC,CAC1B,IAAAC,EAAM,OACN,UAAAC,EACA,SAAAC,EACA,KAAAC,EACA,MAAAC,EACA,WAAAC,EACA,OAAAC,EACA,YAAAC,KACGC,CACL,IAAwB,CACtB,KAAM,CAAE,SAAAC,CAAS,EAAIC,EAAe,EAC9B,CAAE,MAAAC,CAAM,EAAIC,EAAcT,CAAI,EAC9BU,EAAMR,EAAaI,EAASJ,CAAU,EAAII,EAEhD,OACEK,EAAA,cAACC,EAAA,CACC,IAAKf,EACL,YAAaO,EACb,MAAOI,EACP,QAASR,EACT,UAAWF,EACX,MAAOG,EACP,OAAQE,EACR,SAAU,QAAQD,GAAA,YAAAA,EAAY,QAAQ,CAEtCS,EAAAA,EAAA,cAACE,EAAA,CACC,KAAMb,EACN,GAAIA,EACH,GAAGK,EACJ,IAAKK,EACJ,GAAIF,GAAS,CAAE,MAAO,OAAQ,CAE9BT,EAAAA,CACH,CACF,CAEJ,EAEAH,EAAY,YAAc"}
|
|
@@ -234,6 +234,11 @@ declare const Root: import("@atom-learning/stitches-react/types/styled-component
|
|
|
234
234
|
subjectNonVerbalReasoning: string;
|
|
235
235
|
subjectCreativeWriting: string;
|
|
236
236
|
subjectExamSkills: string;
|
|
237
|
+
subjectGcseEnglishLiterature: string;
|
|
238
|
+
subjectGcseMaths: string;
|
|
239
|
+
subjectGcseChemistry: string;
|
|
240
|
+
subjectGcsePhysics: string;
|
|
241
|
+
subjectGcseBiology: string;
|
|
237
242
|
glBlueLight: string;
|
|
238
243
|
glBluePrimary: string;
|
|
239
244
|
glBlueDark: string;
|
|
@@ -603,6 +608,11 @@ export declare const SideBar: {
|
|
|
603
608
|
subjectNonVerbalReasoning: string;
|
|
604
609
|
subjectCreativeWriting: string;
|
|
605
610
|
subjectExamSkills: string;
|
|
611
|
+
subjectGcseEnglishLiterature: string;
|
|
612
|
+
subjectGcseMaths: string;
|
|
613
|
+
subjectGcseChemistry: string;
|
|
614
|
+
subjectGcsePhysics: string;
|
|
615
|
+
subjectGcseBiology: string;
|
|
606
616
|
glBlueLight: string;
|
|
607
617
|
glBluePrimary: string;
|
|
608
618
|
glBlueDark: string;
|
|
@@ -973,6 +983,11 @@ export declare const SideBar: {
|
|
|
973
983
|
subjectNonVerbalReasoning: string;
|
|
974
984
|
subjectCreativeWriting: string;
|
|
975
985
|
subjectExamSkills: string;
|
|
986
|
+
subjectGcseEnglishLiterature: string;
|
|
987
|
+
subjectGcseMaths: string;
|
|
988
|
+
subjectGcseChemistry: string;
|
|
989
|
+
subjectGcsePhysics: string;
|
|
990
|
+
subjectGcseBiology: string;
|
|
976
991
|
glBlueLight: string;
|
|
977
992
|
glBluePrimary: string;
|
|
978
993
|
glBlueDark: string;
|
|
@@ -1350,6 +1365,11 @@ export declare const SideBar: {
|
|
|
1350
1365
|
subjectNonVerbalReasoning: string;
|
|
1351
1366
|
subjectCreativeWriting: string;
|
|
1352
1367
|
subjectExamSkills: string;
|
|
1368
|
+
subjectGcseEnglishLiterature: string;
|
|
1369
|
+
subjectGcseMaths: string;
|
|
1370
|
+
subjectGcseChemistry: string;
|
|
1371
|
+
subjectGcsePhysics: string;
|
|
1372
|
+
subjectGcseBiology: string;
|
|
1353
1373
|
glBlueLight: string;
|
|
1354
1374
|
glBluePrimary: string;
|
|
1355
1375
|
glBlueDark: string;
|
|
@@ -1716,6 +1736,11 @@ export declare const SideBar: {
|
|
|
1716
1736
|
subjectNonVerbalReasoning: string;
|
|
1717
1737
|
subjectCreativeWriting: string;
|
|
1718
1738
|
subjectExamSkills: string;
|
|
1739
|
+
subjectGcseEnglishLiterature: string;
|
|
1740
|
+
subjectGcseMaths: string;
|
|
1741
|
+
subjectGcseChemistry: string;
|
|
1742
|
+
subjectGcsePhysics: string;
|
|
1743
|
+
subjectGcseBiology: string;
|
|
1719
1744
|
glBlueLight: string;
|
|
1720
1745
|
glBluePrimary: string;
|
|
1721
1746
|
glBlueDark: string;
|
|
@@ -2080,6 +2105,11 @@ export declare const SideBar: {
|
|
|
2080
2105
|
subjectNonVerbalReasoning: string;
|
|
2081
2106
|
subjectCreativeWriting: string;
|
|
2082
2107
|
subjectExamSkills: string;
|
|
2108
|
+
subjectGcseEnglishLiterature: string;
|
|
2109
|
+
subjectGcseMaths: string;
|
|
2110
|
+
subjectGcseChemistry: string;
|
|
2111
|
+
subjectGcsePhysics: string;
|
|
2112
|
+
subjectGcseBiology: string;
|
|
2083
2113
|
glBlueLight: string;
|
|
2084
2114
|
glBluePrimary: string;
|
|
2085
2115
|
glBlueDark: string;
|
|
@@ -2444,6 +2474,11 @@ export declare const SideBar: {
|
|
|
2444
2474
|
subjectNonVerbalReasoning: string;
|
|
2445
2475
|
subjectCreativeWriting: string;
|
|
2446
2476
|
subjectExamSkills: string;
|
|
2477
|
+
subjectGcseEnglishLiterature: string;
|
|
2478
|
+
subjectGcseMaths: string;
|
|
2479
|
+
subjectGcseChemistry: string;
|
|
2480
|
+
subjectGcsePhysics: string;
|
|
2481
|
+
subjectGcseBiology: string;
|
|
2447
2482
|
glBlueLight: string;
|
|
2448
2483
|
glBluePrimary: string;
|
|
2449
2484
|
glBlueDark: string;
|
|
@@ -2808,6 +2843,11 @@ export declare const SideBar: {
|
|
|
2808
2843
|
subjectNonVerbalReasoning: string;
|
|
2809
2844
|
subjectCreativeWriting: string;
|
|
2810
2845
|
subjectExamSkills: string;
|
|
2846
|
+
subjectGcseEnglishLiterature: string;
|
|
2847
|
+
subjectGcseMaths: string;
|
|
2848
|
+
subjectGcseChemistry: string;
|
|
2849
|
+
subjectGcsePhysics: string;
|
|
2850
|
+
subjectGcseBiology: string;
|
|
2811
2851
|
glBlueLight: string;
|
|
2812
2852
|
glBluePrimary: string;
|
|
2813
2853
|
glBlueDark: string;
|
|
@@ -231,6 +231,11 @@ export declare const SideBarHeader: import("@atom-learning/stitches-react/types/
|
|
|
231
231
|
subjectNonVerbalReasoning: string;
|
|
232
232
|
subjectCreativeWriting: string;
|
|
233
233
|
subjectExamSkills: string;
|
|
234
|
+
subjectGcseEnglishLiterature: string;
|
|
235
|
+
subjectGcseMaths: string;
|
|
236
|
+
subjectGcseChemistry: string;
|
|
237
|
+
subjectGcsePhysics: string;
|
|
238
|
+
subjectGcseBiology: string;
|
|
234
239
|
glBlueLight: string;
|
|
235
240
|
glBluePrimary: string;
|
|
236
241
|
glBlueDark: string;
|
|
@@ -595,6 +600,11 @@ export declare const SideBarBody: import("@atom-learning/stitches-react/types/st
|
|
|
595
600
|
subjectNonVerbalReasoning: string;
|
|
596
601
|
subjectCreativeWriting: string;
|
|
597
602
|
subjectExamSkills: string;
|
|
603
|
+
subjectGcseEnglishLiterature: string;
|
|
604
|
+
subjectGcseMaths: string;
|
|
605
|
+
subjectGcseChemistry: string;
|
|
606
|
+
subjectGcsePhysics: string;
|
|
607
|
+
subjectGcseBiology: string;
|
|
598
608
|
glBlueLight: string;
|
|
599
609
|
glBluePrimary: string;
|
|
600
610
|
glBlueDark: string;
|
|
@@ -959,6 +969,11 @@ export declare const SideBarFooter: import("@atom-learning/stitches-react/types/
|
|
|
959
969
|
subjectNonVerbalReasoning: string;
|
|
960
970
|
subjectCreativeWriting: string;
|
|
961
971
|
subjectExamSkills: string;
|
|
972
|
+
subjectGcseEnglishLiterature: string;
|
|
973
|
+
subjectGcseMaths: string;
|
|
974
|
+
subjectGcseChemistry: string;
|
|
975
|
+
subjectGcsePhysics: string;
|
|
976
|
+
subjectGcseBiology: string;
|
|
962
977
|
glBlueLight: string;
|
|
963
978
|
glBluePrimary: string;
|
|
964
979
|
glBlueDark: string;
|
|
@@ -1323,6 +1338,11 @@ export declare const SideBarBrand: import("@atom-learning/stitches-react/types/s
|
|
|
1323
1338
|
subjectNonVerbalReasoning: string;
|
|
1324
1339
|
subjectCreativeWriting: string;
|
|
1325
1340
|
subjectExamSkills: string;
|
|
1341
|
+
subjectGcseEnglishLiterature: string;
|
|
1342
|
+
subjectGcseMaths: string;
|
|
1343
|
+
subjectGcseChemistry: string;
|
|
1344
|
+
subjectGcsePhysics: string;
|
|
1345
|
+
subjectGcseBiology: string;
|
|
1326
1346
|
glBlueLight: string;
|
|
1327
1347
|
glBluePrimary: string;
|
|
1328
1348
|
glBlueDark: string;
|
|
@@ -1693,6 +1713,11 @@ export declare const SideBarBrandLogo: {
|
|
|
1693
1713
|
subjectNonVerbalReasoning: string;
|
|
1694
1714
|
subjectCreativeWriting: string;
|
|
1695
1715
|
subjectExamSkills: string;
|
|
1716
|
+
subjectGcseEnglishLiterature: string;
|
|
1717
|
+
subjectGcseMaths: string;
|
|
1718
|
+
subjectGcseChemistry: string;
|
|
1719
|
+
subjectGcsePhysics: string;
|
|
1720
|
+
subjectGcseBiology: string;
|
|
1696
1721
|
glBlueLight: string;
|
|
1697
1722
|
glBluePrimary: string;
|
|
1698
1723
|
glBlueDark: string;
|
|
@@ -2070,6 +2095,11 @@ export declare const SideBarBrandName: import("@atom-learning/stitches-react/typ
|
|
|
2070
2095
|
subjectNonVerbalReasoning: string;
|
|
2071
2096
|
subjectCreativeWriting: string;
|
|
2072
2097
|
subjectExamSkills: string;
|
|
2098
|
+
subjectGcseEnglishLiterature: string;
|
|
2099
|
+
subjectGcseMaths: string;
|
|
2100
|
+
subjectGcseChemistry: string;
|
|
2101
|
+
subjectGcsePhysics: string;
|
|
2102
|
+
subjectGcseBiology: string;
|
|
2073
2103
|
glBlueLight: string;
|
|
2074
2104
|
glBluePrimary: string;
|
|
2075
2105
|
glBlueDark: string;
|
|
@@ -2202,7 +2232,7 @@ export declare const SideBarBrandName: import("@atom-learning/stitches-react/typ
|
|
|
2202
2232
|
};
|
|
2203
2233
|
}> | undefined;
|
|
2204
2234
|
}, "as"> & {
|
|
2205
|
-
as?: "blockquote" | "caption" | "dd" | "dt" | "figcaption" | "li" | "p" | "span" | "legend" |
|
|
2235
|
+
as?: "blockquote" | "caption" | "dd" | "dt" | "figcaption" | "li" | "p" | "span" | "legend" | import("react").ComponentType | import("react").ElementType;
|
|
2206
2236
|
}>, {}, {
|
|
2207
2237
|
sm: string;
|
|
2208
2238
|
md: string;
|
|
@@ -2436,6 +2466,11 @@ export declare const SideBarBrandName: import("@atom-learning/stitches-react/typ
|
|
|
2436
2466
|
subjectNonVerbalReasoning: string;
|
|
2437
2467
|
subjectCreativeWriting: string;
|
|
2438
2468
|
subjectExamSkills: string;
|
|
2469
|
+
subjectGcseEnglishLiterature: string;
|
|
2470
|
+
subjectGcseMaths: string;
|
|
2471
|
+
subjectGcseChemistry: string;
|
|
2472
|
+
subjectGcsePhysics: string;
|
|
2473
|
+
subjectGcseBiology: string;
|
|
2439
2474
|
glBlueLight: string;
|
|
2440
2475
|
glBluePrimary: string;
|
|
2441
2476
|
glBlueDark: string;
|
|
@@ -236,6 +236,11 @@ declare const StyledSlider: import("@atom-learning/stitches-react/types/styled-c
|
|
|
236
236
|
subjectNonVerbalReasoning: string;
|
|
237
237
|
subjectCreativeWriting: string;
|
|
238
238
|
subjectExamSkills: string;
|
|
239
|
+
subjectGcseEnglishLiterature: string;
|
|
240
|
+
subjectGcseMaths: string;
|
|
241
|
+
subjectGcseChemistry: string;
|
|
242
|
+
subjectGcsePhysics: string;
|
|
243
|
+
subjectGcseBiology: string;
|
|
239
244
|
glBlueLight: string;
|
|
240
245
|
glBluePrimary: string;
|
|
241
246
|
glBlueDark: string;
|