@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,7 +1,7 @@
|
|
|
1
1
|
export declare const DismissibleGroup: {
|
|
2
|
-
({ as: Component, disabled, onDismiss, ...rest }:
|
|
2
|
+
({ as: Component, disabled, onDismiss, ...rest }: import("react").PropsWithChildren<import("./DismissibleGroupRoot").IDismissibleGroupRootProps>): import("react").JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
|
-
Item: ({ children, value, disabled: itemDisabled, ...rest }:
|
|
6
|
-
Trigger: ({ asChild, ...rest }:
|
|
5
|
+
Item: ({ children, value, disabled: itemDisabled, ...rest }: import("react").PropsWithChildren<import("./DismissibleGroupItem").TDismissibleGroupItemProps>) => import("react").JSX.Element;
|
|
6
|
+
Trigger: ({ asChild, ...rest }: import("react").PropsWithChildren<import("../../components/dismissible/DismissibleTrigger").IDismissibleTriggerProps>) => import("react").JSX.Element;
|
|
7
7
|
};
|
|
@@ -234,6 +234,11 @@ export declare const StyledDivider: import("@atom-learning/stitches-react/types/
|
|
|
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;
|
|
@@ -239,6 +239,11 @@ export declare const Drawer: {
|
|
|
239
239
|
subjectNonVerbalReasoning: string;
|
|
240
240
|
subjectCreativeWriting: string;
|
|
241
241
|
subjectExamSkills: string;
|
|
242
|
+
subjectGcseEnglishLiterature: string;
|
|
243
|
+
subjectGcseMaths: string;
|
|
244
|
+
subjectGcseChemistry: string;
|
|
245
|
+
subjectGcsePhysics: string;
|
|
246
|
+
subjectGcseBiology: string;
|
|
242
247
|
glBlueLight: string;
|
|
243
248
|
glBluePrimary: string;
|
|
244
249
|
glBlueDark: string;
|
|
@@ -603,6 +608,11 @@ export declare const Drawer: {
|
|
|
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;
|
|
@@ -967,6 +977,11 @@ export declare const Drawer: {
|
|
|
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;
|
|
@@ -1331,6 +1346,11 @@ export declare const Drawer: {
|
|
|
1331
1346
|
subjectNonVerbalReasoning: string;
|
|
1332
1347
|
subjectCreativeWriting: string;
|
|
1333
1348
|
subjectExamSkills: string;
|
|
1349
|
+
subjectGcseEnglishLiterature: string;
|
|
1350
|
+
subjectGcseMaths: string;
|
|
1351
|
+
subjectGcseChemistry: string;
|
|
1352
|
+
subjectGcsePhysics: string;
|
|
1353
|
+
subjectGcseBiology: string;
|
|
1334
1354
|
glBlueLight: string;
|
|
1335
1355
|
glBluePrimary: string;
|
|
1336
1356
|
glBlueDark: string;
|
|
@@ -235,6 +235,11 @@ export declare const StyledContent: import("@atom-learning/stitches-react/types/
|
|
|
235
235
|
subjectNonVerbalReasoning: string;
|
|
236
236
|
subjectCreativeWriting: string;
|
|
237
237
|
subjectExamSkills: string;
|
|
238
|
+
subjectGcseEnglishLiterature: string;
|
|
239
|
+
subjectGcseMaths: string;
|
|
240
|
+
subjectGcseChemistry: string;
|
|
241
|
+
subjectGcsePhysics: string;
|
|
242
|
+
subjectGcseBiology: string;
|
|
238
243
|
glBlueLight: string;
|
|
239
244
|
glBluePrimary: string;
|
|
240
245
|
glBlueDark: string;
|
|
@@ -231,6 +231,11 @@ export declare const DrawerFooter: import("@atom-learning/stitches-react/types/s
|
|
|
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;
|
|
@@ -231,6 +231,11 @@ export declare const DrawerHeader: import("@atom-learning/stitches-react/types/s
|
|
|
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;
|
|
@@ -231,6 +231,11 @@ export declare const DrawerMain: import("@atom-learning/stitches-react/types/sty
|
|
|
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;
|
|
@@ -231,6 +231,11 @@ export declare const DrawerOverlay: 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;
|
|
@@ -231,6 +231,11 @@ export declare const DrawerTrigger: 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;
|
|
@@ -233,6 +233,11 @@ export declare const DropdownMenu: import("@atom-learning/stitches-react/types/s
|
|
|
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;
|
|
@@ -597,6 +602,11 @@ export declare const DropdownMenu: import("@atom-learning/stitches-react/types/s
|
|
|
597
602
|
subjectNonVerbalReasoning: string;
|
|
598
603
|
subjectCreativeWriting: string;
|
|
599
604
|
subjectExamSkills: string;
|
|
605
|
+
subjectGcseEnglishLiterature: string;
|
|
606
|
+
subjectGcseMaths: string;
|
|
607
|
+
subjectGcseChemistry: string;
|
|
608
|
+
subjectGcsePhysics: string;
|
|
609
|
+
subjectGcseBiology: string;
|
|
600
610
|
glBlueLight: string;
|
|
601
611
|
glBluePrimary: string;
|
|
602
612
|
glBlueDark: string;
|
|
@@ -961,6 +971,11 @@ export declare const DropdownMenu: import("@atom-learning/stitches-react/types/s
|
|
|
961
971
|
subjectNonVerbalReasoning: string;
|
|
962
972
|
subjectCreativeWriting: string;
|
|
963
973
|
subjectExamSkills: string;
|
|
974
|
+
subjectGcseEnglishLiterature: string;
|
|
975
|
+
subjectGcseMaths: string;
|
|
976
|
+
subjectGcseChemistry: string;
|
|
977
|
+
subjectGcsePhysics: string;
|
|
978
|
+
subjectGcseBiology: string;
|
|
964
979
|
glBlueLight: string;
|
|
965
980
|
glBluePrimary: string;
|
|
966
981
|
glBlueDark: string;
|
|
@@ -1329,6 +1344,11 @@ export declare const DropdownMenu: import("@atom-learning/stitches-react/types/s
|
|
|
1329
1344
|
subjectNonVerbalReasoning: string;
|
|
1330
1345
|
subjectCreativeWriting: string;
|
|
1331
1346
|
subjectExamSkills: string;
|
|
1347
|
+
subjectGcseEnglishLiterature: string;
|
|
1348
|
+
subjectGcseMaths: string;
|
|
1349
|
+
subjectGcseChemistry: string;
|
|
1350
|
+
subjectGcsePhysics: string;
|
|
1351
|
+
subjectGcseBiology: string;
|
|
1332
1352
|
glBlueLight: string;
|
|
1333
1353
|
glBluePrimary: string;
|
|
1334
1354
|
glBlueDark: string;
|
|
@@ -1693,6 +1713,11 @@ export declare const DropdownMenu: import("@atom-learning/stitches-react/types/s
|
|
|
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;
|
|
@@ -231,6 +231,11 @@ export declare const DropdownMenuContent: import("@atom-learning/stitches-react/
|
|
|
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;
|
|
@@ -691,6 +691,11 @@ export declare const DropdownMenuItem: import("@atom-learning/stitches-react/typ
|
|
|
691
691
|
subjectNonVerbalReasoning: string;
|
|
692
692
|
subjectCreativeWriting: string;
|
|
693
693
|
subjectExamSkills: string;
|
|
694
|
+
subjectGcseEnglishLiterature: string;
|
|
695
|
+
subjectGcseMaths: string;
|
|
696
|
+
subjectGcseChemistry: string;
|
|
697
|
+
subjectGcsePhysics: string;
|
|
698
|
+
subjectGcseBiology: string;
|
|
694
699
|
glBlueLight: string;
|
|
695
700
|
glBluePrimary: string;
|
|
696
701
|
glBlueDark: string;
|
|
@@ -231,6 +231,11 @@ export declare const DropdownMenuSeparator: import("@atom-learning/stitches-reac
|
|
|
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;
|
|
@@ -231,6 +231,11 @@ export declare const DropdownMenuTrigger: import("@atom-learning/stitches-react/
|
|
|
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;
|
|
@@ -238,6 +238,11 @@ declare const EmptyStateContainer: import("@atom-learning/stitches-react/types/s
|
|
|
238
238
|
subjectNonVerbalReasoning: string;
|
|
239
239
|
subjectCreativeWriting: string;
|
|
240
240
|
subjectExamSkills: string;
|
|
241
|
+
subjectGcseEnglishLiterature: string;
|
|
242
|
+
subjectGcseMaths: string;
|
|
243
|
+
subjectGcseChemistry: string;
|
|
244
|
+
subjectGcsePhysics: string;
|
|
245
|
+
subjectGcseBiology: string;
|
|
241
246
|
glBlueLight: string;
|
|
242
247
|
glBluePrimary: string;
|
|
243
248
|
glBlueDark: string;
|
|
@@ -603,6 +608,11 @@ declare const EmptyStateContainer: import("@atom-learning/stitches-react/types/s
|
|
|
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;
|
|
@@ -977,6 +987,11 @@ export declare const EmptyState: {
|
|
|
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;
|
|
@@ -1346,6 +1361,11 @@ export declare const EmptyState: {
|
|
|
1346
1361
|
subjectNonVerbalReasoning: string;
|
|
1347
1362
|
subjectCreativeWriting: string;
|
|
1348
1363
|
subjectExamSkills: string;
|
|
1364
|
+
subjectGcseEnglishLiterature: string;
|
|
1365
|
+
subjectGcseMaths: string;
|
|
1366
|
+
subjectGcseChemistry: string;
|
|
1367
|
+
subjectGcsePhysics: string;
|
|
1368
|
+
subjectGcseBiology: string;
|
|
1349
1369
|
glBlueLight: string;
|
|
1350
1370
|
glBluePrimary: string;
|
|
1351
1371
|
glBlueDark: string;
|
|
@@ -1716,6 +1736,11 @@ export declare const EmptyState: {
|
|
|
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;
|
|
@@ -2091,6 +2116,11 @@ export declare const EmptyState: {
|
|
|
2091
2116
|
subjectNonVerbalReasoning: string;
|
|
2092
2117
|
subjectCreativeWriting: string;
|
|
2093
2118
|
subjectExamSkills: string;
|
|
2119
|
+
subjectGcseEnglishLiterature: string;
|
|
2120
|
+
subjectGcseMaths: string;
|
|
2121
|
+
subjectGcseChemistry: string;
|
|
2122
|
+
subjectGcsePhysics: string;
|
|
2123
|
+
subjectGcseBiology: string;
|
|
2094
2124
|
glBlueLight: string;
|
|
2095
2125
|
glBluePrimary: string;
|
|
2096
2126
|
glBlueDark: string;
|
|
@@ -2460,6 +2490,11 @@ export declare const EmptyState: {
|
|
|
2460
2490
|
subjectNonVerbalReasoning: string;
|
|
2461
2491
|
subjectCreativeWriting: string;
|
|
2462
2492
|
subjectExamSkills: string;
|
|
2493
|
+
subjectGcseEnglishLiterature: string;
|
|
2494
|
+
subjectGcseMaths: string;
|
|
2495
|
+
subjectGcseChemistry: string;
|
|
2496
|
+
subjectGcsePhysics: string;
|
|
2497
|
+
subjectGcseBiology: string;
|
|
2463
2498
|
glBlueLight: string;
|
|
2464
2499
|
glBluePrimary: string;
|
|
2465
2500
|
glBlueDark: string;
|
|
@@ -240,6 +240,11 @@ declare const StyledEmptyStateBody: import("@atom-learning/stitches-react/types/
|
|
|
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 StyledEmptyStateBody: import("@atom-learning/stitches-react/types/
|
|
|
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;
|
|
@@ -238,6 +238,11 @@ declare const StyledEmptyStateImage: import("@atom-learning/stitches-react/types
|
|
|
238
238
|
subjectNonVerbalReasoning: string;
|
|
239
239
|
subjectCreativeWriting: string;
|
|
240
240
|
subjectExamSkills: string;
|
|
241
|
+
subjectGcseEnglishLiterature: string;
|
|
242
|
+
subjectGcseMaths: string;
|
|
243
|
+
subjectGcseChemistry: string;
|
|
244
|
+
subjectGcsePhysics: string;
|
|
245
|
+
subjectGcseBiology: string;
|
|
241
246
|
glBlueLight: string;
|
|
242
247
|
glBluePrimary: string;
|
|
243
248
|
glBlueDark: string;
|
|
@@ -608,6 +613,11 @@ declare const StyledEmptyStateImage: import("@atom-learning/stitches-react/types
|
|
|
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;
|
|
@@ -234,6 +234,11 @@ declare const StyledEmptyStateTitle: import("@atom-learning/stitches-react/types
|
|
|
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;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ValidationOptions } from '../../components/form';
|
|
3
3
|
import type { CSS } from '../../stitches';
|
|
4
|
-
import { type LabelProps } from '../label/Label';
|
|
5
4
|
export type FieldWrapperProps = {
|
|
6
5
|
css?: CSS;
|
|
7
6
|
error?: string;
|
|
@@ -15,13 +14,12 @@ export type FieldWrapperProps = {
|
|
|
15
14
|
description?: string;
|
|
16
15
|
required?: boolean;
|
|
17
16
|
hideLabel?: boolean;
|
|
18
|
-
appearance?: LabelProps['appearance'];
|
|
19
17
|
};
|
|
20
18
|
export type FieldElementWrapperProps = Omit<FieldWrapperProps, 'fieldId'> & {
|
|
21
19
|
name: string;
|
|
22
20
|
validation?: ValidationOptions;
|
|
23
21
|
};
|
|
24
22
|
export declare const FieldWrapper: {
|
|
25
|
-
({ css, children, error, fieldId, label, prompt, description, required, hideLabel
|
|
23
|
+
({ css, children, error, fieldId, label, prompt, description, required, hideLabel }: React.PropsWithChildren<FieldWrapperProps>): React.JSX.Element;
|
|
26
24
|
displayName: string;
|
|
27
25
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as d from"@radix-ui/react-visually-hidden";import*as r from"react";import{Box as f}from"../box/Box.js";import{Flex as b}from"../flex/Flex.js";import{InlineMessage as u}from"../inline-message/InlineMessage.js";import{Label as E}from"../label/Label.js";import{Link as h}from"../link/Link.js";import{Description as k}from"./FieldDescription.js";const m=({css:l,children:i,error:t,fieldId:n,label:s,prompt:e,description:o,required:c,hideLabel:a})=>{const p=a?d.Root:b;return r.createElement(f,{css:l},r.createElement(p,{css:{justifyContent:"space-between",alignItems:"center",mb:"$3"}},r.createElement(E,{htmlFor:n,required:c},s),e&&r.createElement(h,{href:e==null?void 0:e.link,onClick:e==null?void 0:e.onClick,size:"sm"},e.label)),o&&r.createElement(k,{css:{mb:"$3"}},o),i,t&&r.createElement(u,{css:{mt:"$2"}},t))};m.displayName="FieldWrapper";export{m as FieldWrapper};
|
|
2
2
|
//# sourceMappingURL=FieldWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldWrapper.js","sources":["../../../src/components/field-wrapper/FieldWrapper.tsx"],"sourcesContent":["import * as VisuallyHidden from '@radix-ui/react-visually-hidden'\nimport * as React from 'react'\n\nimport { Box } from '~/components/box'\nimport { Flex } from '~/components/flex'\nimport { ValidationOptions } from '~/components/form'\nimport { InlineMessage } from '~/components/inline-message'\nimport { Label } from '~/components/label'\nimport { Link } from '~/components/link'\nimport type { CSS } from '~/stitches'\n\nimport { Description } from './FieldDescription'\
|
|
1
|
+
{"version":3,"file":"FieldWrapper.js","sources":["../../../src/components/field-wrapper/FieldWrapper.tsx"],"sourcesContent":["import * as VisuallyHidden from '@radix-ui/react-visually-hidden'\nimport * as React from 'react'\n\nimport { Box } from '~/components/box'\nimport { Flex } from '~/components/flex'\nimport { ValidationOptions } from '~/components/form'\nimport { InlineMessage } from '~/components/inline-message'\nimport { Label } from '~/components/label'\nimport { Link } from '~/components/link'\nimport type { CSS } from '~/stitches'\n\nimport { Description } from './FieldDescription'\n\nexport type FieldWrapperProps = {\n css?: CSS\n error?: string\n fieldId: string\n label: string\n prompt?: { link?: string; label: string; onClick?: () => void }\n description?: string\n required?: boolean\n hideLabel?: boolean\n}\n\nexport type FieldElementWrapperProps = Omit<FieldWrapperProps, 'fieldId'> & {\n name: string\n validation?: ValidationOptions\n}\n\nexport const FieldWrapper = ({\n css,\n children,\n error,\n fieldId,\n label,\n prompt,\n description,\n required,\n hideLabel\n}: React.PropsWithChildren<FieldWrapperProps>) => {\n const LabelContainer = hideLabel ? VisuallyHidden.Root : Flex\n\n return (\n <Box css={css}>\n <LabelContainer\n css={{\n justifyContent: 'space-between',\n alignItems: 'center',\n mb: '$3'\n }}\n >\n <Label htmlFor={fieldId} required={required}>\n {label}\n </Label>\n {prompt && (\n <Link href={prompt?.link} onClick={prompt?.onClick} size=\"sm\">\n {prompt.label}\n </Link>\n )}\n </LabelContainer>\n {description && (\n <Description css={{ mb: '$3' }}>{description}</Description>\n )}\n {children}\n {error && <InlineMessage css={{ mt: '$2' }}>{error}</InlineMessage>}\n </Box>\n )\n}\n\nFieldWrapper.displayName = 'FieldWrapper'\n"],"names":["FieldWrapper","css","children","error","fieldId","label","prompt","description","required","hideLabel","LabelContainer","VisuallyHidden","Flex","React","Box","Label","Link","Description","InlineMessage"],"mappings":"6VA6BO,MAAMA,EAAe,CAAC,CAC3B,IAAAC,EACA,SAAAC,EACA,MAAAC,EACA,QAAAC,EACA,MAAAC,EACA,OAAAC,EACA,YAAAC,EACA,SAAAC,EACA,UAAAC,CACF,IAAkD,CAChD,MAAMC,EAAiBD,EAAYE,EAAe,KAAOC,EAEzD,OACEC,EAAA,cAACC,EAAA,CAAI,IAAKb,CAAAA,EACRY,EAAA,cAACH,EAAA,CACC,IAAK,CACH,eAAgB,gBAChB,WAAY,SACZ,GAAI,IACN,CAAA,EAEAG,EAAA,cAACE,EAAA,CAAM,QAASX,EAAS,SAAUI,CAChCH,EAAAA,CACH,EACCC,GACCO,EAAA,cAACG,EAAA,CAAK,KAAMV,GAAA,KAAA,OAAAA,EAAQ,KAAM,QAASA,GAAA,YAAAA,EAAQ,QAAS,KAAK,IAAA,EACtDA,EAAO,KACV,CAEJ,EACCC,GACCM,EAAA,cAACI,EAAA,CAAY,IAAK,CAAE,GAAI,IAAK,GAAIV,CAAY,EAE9CL,EACAC,GAASU,EAAA,cAACK,EAAA,CAAc,IAAK,CAAE,GAAI,IAAK,CAAA,EAAIf,CAAM,CACrD,CAEJ,EAEAH,EAAa,YAAc"}
|
|
@@ -237,6 +237,11 @@ export declare const Flex: import("@atom-learning/stitches-react/types/styled-co
|
|
|
237
237
|
subjectNonVerbalReasoning: string;
|
|
238
238
|
subjectCreativeWriting: string;
|
|
239
239
|
subjectExamSkills: string;
|
|
240
|
+
subjectGcseEnglishLiterature: string;
|
|
241
|
+
subjectGcseMaths: string;
|
|
242
|
+
subjectGcseChemistry: string;
|
|
243
|
+
subjectGcsePhysics: string;
|
|
244
|
+
subjectGcseBiology: string;
|
|
240
245
|
glBlueLight: string;
|
|
241
246
|
glBluePrimary: string;
|
|
242
247
|
glBlueDark: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { DefaultValues, FieldValues, Mode, SubmitErrorHandler, SubmitHandler, UseFormMethods } from 'react-hook-form';
|
|
3
|
-
import { type FormCustomContextType } from './useFormCustomContext';
|
|
4
3
|
declare const StyledForm: import("@atom-learning/stitches-react/types/styled-component").StyledComponent<"form", {}, {
|
|
5
4
|
sm: string;
|
|
6
5
|
md: string;
|
|
@@ -234,6 +233,11 @@ declare const StyledForm: import("@atom-learning/stitches-react/types/styled-com
|
|
|
234
233
|
subjectNonVerbalReasoning: string;
|
|
235
234
|
subjectCreativeWriting: string;
|
|
236
235
|
subjectExamSkills: string;
|
|
236
|
+
subjectGcseEnglishLiterature: string;
|
|
237
|
+
subjectGcseMaths: string;
|
|
238
|
+
subjectGcseChemistry: string;
|
|
239
|
+
subjectGcsePhysics: string;
|
|
240
|
+
subjectGcseBiology: string;
|
|
237
241
|
glBlueLight: string;
|
|
238
242
|
glBluePrimary: string;
|
|
239
243
|
glBlueDark: string;
|
|
@@ -374,7 +378,7 @@ interface FormProps<TFormData extends FieldValues> extends StyledFormProps {
|
|
|
374
378
|
children: React.ReactNode | ((methods: UseFormMethods<TFormData>) => React.ReactNode);
|
|
375
379
|
}
|
|
376
380
|
export declare const Form: {
|
|
377
|
-
<TFormData extends FieldValues>(props: FormProps<TFormData>
|
|
381
|
+
<TFormData extends FieldValues>(props: FormProps<TFormData>): React.JSX.Element;
|
|
378
382
|
displayName: string;
|
|
379
383
|
};
|
|
380
384
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from"react";import{useForm as u,FormProvider as f}from"react-hook-form";import{styled as s}from"../../stitches.js";const c=s("form",{}),t=m=>{const{children:o,defaultValues:a,validationMode:l="onBlur",onSubmit:n,onError:i,...d}=m,e=u({defaultValues:a,mode:l});return r.createElement(f,{...e},r.createElement(c,{"aria-label":"form",onSubmit:e.handleSubmit(n,i),...d},typeof o=="function"?o(e):o))};t.displayName="Form";export{t as Form};
|
|
2
2
|
//# sourceMappingURL=Form.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.js","sources":["../../../src/components/form/Form.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"Form.js","sources":["../../../src/components/form/Form.tsx"],"sourcesContent":["import React from 'react'\nimport type {\n DefaultValues,\n FieldValues,\n Mode,\n SubmitErrorHandler,\n SubmitHandler,\n UseFormMethods\n} from 'react-hook-form'\nimport { FormProvider, useForm } from 'react-hook-form'\n\nimport { styled } from '~/stitches'\n\nconst StyledForm = styled('form', {})\n\ntype StyledFormProps = Omit<\n React.ComponentPropsWithoutRef<typeof StyledForm>,\n 'onSubmit' | 'onError'\n>\n\ninterface FormProps<TFormData extends FieldValues> extends StyledFormProps {\n defaultValues?: DefaultValues<TFormData>\n validationMode?: Mode\n onSubmit: SubmitHandler<TFormData>\n onError?: SubmitErrorHandler<TFormData>\n children:\n | React.ReactNode\n | ((methods: UseFormMethods<TFormData>) => React.ReactNode)\n}\n\nexport const Form = <TFormData extends FieldValues>(\n props: FormProps<TFormData>\n) => {\n const {\n children,\n defaultValues,\n validationMode = 'onBlur',\n onSubmit,\n onError,\n ...rest\n } = props\n\n const methods = useForm<TFormData>({\n defaultValues,\n mode: validationMode\n })\n\n return (\n <FormProvider {...methods}>\n <StyledForm\n aria-label=\"form\"\n onSubmit={methods.handleSubmit(onSubmit, onError)}\n {...rest}\n >\n {typeof children === 'function' ? children(methods) : children}\n </StyledForm>\n </FormProvider>\n )\n}\n\nForm.displayName = 'Form'\n"],"names":["StyledForm","styled","Form","props","children","defaultValues","validationMode","onSubmit","onError","rest","methods","useForm","React","FormProvider"],"mappings":"4HAaA,MAAMA,EAAaC,EAAO,OAAQ,CAAA,CAAE,EAiBvBC,EACXC,GACG,CACH,KAAM,CACJ,SAAAC,EACA,cAAAC,EACA,eAAAC,EAAiB,SACjB,SAAAC,EACA,QAAAC,KACGC,CACL,EAAIN,EAEEO,EAAUC,EAAmB,CACjC,cAAAN,EACA,KAAMC,CACR,CAAC,EAED,OACEM,EAAA,cAACC,EAAA,CAAc,GAAGH,CAAAA,EAChBE,EAAA,cAACZ,EAAA,CACC,aAAW,OACX,SAAUU,EAAQ,aAAaH,EAAUC,CAAO,EAC/C,GAAGC,GAEH,OAAOL,GAAa,WAAaA,EAASM,CAAO,EAAIN,CACxD,CACF,CAEJ,EAEAF,EAAK,YAAc"}
|
|
@@ -235,6 +235,11 @@ declare const GridContainer: import("@atom-learning/stitches-react/types/styled-
|
|
|
235
235
|
subjectNonVerbalReasoning: string;
|
|
236
236
|
subjectCreativeWriting: string;
|
|
237
237
|
subjectExamSkills: string;
|
|
238
|
+
subjectGcseEnglishLiterature: string;
|
|
239
|
+
subjectGcseMaths: string;
|
|
240
|
+
subjectGcseChemistry: string;
|
|
241
|
+
subjectGcsePhysics: string;
|
|
242
|
+
subjectGcseBiology: string;
|
|
238
243
|
glBlueLight: string;
|
|
239
244
|
glBluePrimary: string;
|
|
240
245
|
glBlueDark: string;
|
|
@@ -3,7 +3,6 @@ import type { Override } from '../../utilities';
|
|
|
3
3
|
export declare const StyledHeading: import("@atom-learning/stitches-react/types/styled-component").StyledComponent<"h2", {
|
|
4
4
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
5
5
|
noCapsize?: boolean | "true" | undefined;
|
|
6
|
-
weight?: "bold" | "medium" | undefined;
|
|
7
6
|
}, {
|
|
8
7
|
sm: string;
|
|
9
8
|
md: string;
|
|
@@ -237,6 +236,11 @@ export declare const StyledHeading: import("@atom-learning/stitches-react/types/
|
|
|
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 e from"react";import{styled as
|
|
1
|
+
import*as e from"react";import{styled as m}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import{capsize as i}from"../../utilities/style/capsize.js";import"color2k";import"../../utilities/style/keyframe-animations.js";const t=m("h2",{fontWeight:700,m:0,variants:{size:{xs:{fontFamily:"$body",fontSize:"$md",lineHeight:1.5,...i(.3864)},sm:{fontFamily:"$body",fontSize:"$lg",lineHeight:1.14,...i(.2078)},md:{fontFamily:"$body",fontSize:"$xl",lineHeight:1.14,...i(.2078)},lg:{fontFamily:"$display",fontSize:"$2xl",lineHeight:1.08,letterSpacing:"0.01em",...i(.1405,.2405)},xl:{fontFamily:"$display",fontSize:"$3xl",lineHeight:1.12,...i(.16,.26)},xxl:{fontFamily:"$display",fontSize:"$4xl",lineHeight:1,...i(.1,.2)}},noCapsize:{true:{"&::before, &::after":{display:"none !important"}}}}}),o=e.forwardRef(({size:n="md",...l},a)=>e.createElement(t,{ref:a,size:n,...l}));o.displayName="Heading";export{o as Heading,t as StyledHeading};
|
|
2
2
|
//# sourceMappingURL=Heading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.js","sources":["../../../src/components/heading/Heading.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport type { Override } from '~/utilities'\nimport { capsize } from '~/utilities'\n\nexport const StyledHeading = styled('h2', {\n m: 0,\n variants: {\n size: {\n xs: {\n fontFamily: '$body',\n fontSize: '$md',\n lineHeight: 1.5,\n ...capsize(0.3864)\n },\n sm: {\n fontFamily: '$body',\n fontSize: '$lg',\n lineHeight: 1.14,\n ...capsize(0.2078)\n },\n md: {\n fontFamily: '$body',\n fontSize: '$xl',\n lineHeight: 1.14,\n ...capsize(0.2078)\n },\n lg: {\n fontFamily: '$display',\n fontSize: '$2xl',\n lineHeight: 1.08,\n letterSpacing: '0.01em',\n ...capsize(0.1405, 0.2405)\n },\n xl: {\n fontFamily: '$display',\n fontSize: '$3xl',\n lineHeight: 1.12,\n ...capsize(0.16, 0.26)\n },\n xxl: {\n fontFamily: '$display',\n fontSize: '$4xl',\n lineHeight: 1,\n ...capsize(0.1, 0.2)\n }\n },\n noCapsize: {\n true: {\n '&::before, &::after': { display: 'none !important' }\n }\n }
|
|
1
|
+
{"version":3,"file":"Heading.js","sources":["../../../src/components/heading/Heading.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport type { Override } from '~/utilities'\nimport { capsize } from '~/utilities'\n\nexport const StyledHeading = styled('h2', {\n fontWeight: 700,\n m: 0,\n variants: {\n size: {\n xs: {\n fontFamily: '$body',\n fontSize: '$md',\n lineHeight: 1.5,\n ...capsize(0.3864)\n },\n sm: {\n fontFamily: '$body',\n fontSize: '$lg',\n lineHeight: 1.14,\n ...capsize(0.2078)\n },\n md: {\n fontFamily: '$body',\n fontSize: '$xl',\n lineHeight: 1.14,\n ...capsize(0.2078)\n },\n lg: {\n fontFamily: '$display',\n fontSize: '$2xl',\n lineHeight: 1.08,\n letterSpacing: '0.01em',\n ...capsize(0.1405, 0.2405)\n },\n xl: {\n fontFamily: '$display',\n fontSize: '$3xl',\n lineHeight: 1.12,\n ...capsize(0.16, 0.26)\n },\n xxl: {\n fontFamily: '$display',\n fontSize: '$4xl',\n lineHeight: 1,\n ...capsize(0.1, 0.2)\n }\n },\n noCapsize: {\n true: {\n '&::before, &::after': { display: 'none !important' }\n }\n }\n }\n})\n\nexport type HeadingProps = Override<\n React.ComponentProps<typeof StyledHeading>,\n {\n as?:\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | React.ComponentType\n | React.ElementType\n }\n>\n\nexport const Heading: React.ForwardRefExoticComponent<HeadingProps> =\n React.forwardRef(({ size = 'md', ...remainingProps }, ref) => (\n <StyledHeading ref={ref} size={size} {...remainingProps} />\n ))\n\nHeading.displayName = 'Heading'\n"],"names":["StyledHeading","styled","capsize","Heading","React","size","remainingProps","ref"],"mappings":"sTAMO,MAAMA,EAAgBC,EAAO,KAAM,CACxC,WAAY,IACZ,EAAG,EACH,SAAU,CACR,KAAM,CACJ,GAAI,CACF,WAAY,QACZ,SAAU,MACV,WAAY,IACZ,GAAGC,EAAQ,KAAM,CACnB,EACA,GAAI,CACF,WAAY,QACZ,SAAU,MACV,WAAY,KACZ,GAAGA,EAAQ,KAAM,CACnB,EACA,GAAI,CACF,WAAY,QACZ,SAAU,MACV,WAAY,KACZ,GAAGA,EAAQ,KAAM,CACnB,EACA,GAAI,CACF,WAAY,WACZ,SAAU,OACV,WAAY,KACZ,cAAe,SACf,GAAGA,EAAQ,MAAQ,KAAM,CAC3B,EACA,GAAI,CACF,WAAY,WACZ,SAAU,OACV,WAAY,KACZ,GAAGA,EAAQ,IAAM,GAAI,CACvB,EACA,IAAK,CACH,WAAY,WACZ,SAAU,OACV,WAAY,EACZ,GAAGA,EAAQ,GAAK,EAAG,CACrB,CACF,EACA,UAAW,CACT,KAAM,CACJ,sBAAuB,CAAE,QAAS,iBAAkB,CACtD,CACF,CACF,CACF,CAAC,EAiBYC,EACXC,EAAM,WAAW,CAAC,CAAE,KAAAC,EAAO,QAASC,CAAe,EAAGC,IACpDH,EAAA,cAACJ,EAAc,CAAA,IAAKO,EAAK,KAAMF,EAAO,GAAGC,CAAAA,CAAgB,CAC1D,EAEHH,EAAQ,YAAc"}
|
|
@@ -235,6 +235,11 @@ export declare const StyledIcon: import("@atom-learning/stitches-react/types/sty
|
|
|
235
235
|
subjectNonVerbalReasoning: string;
|
|
236
236
|
subjectCreativeWriting: string;
|
|
237
237
|
subjectExamSkills: string;
|
|
238
|
+
subjectGcseEnglishLiterature: string;
|
|
239
|
+
subjectGcseMaths: string;
|
|
240
|
+
subjectGcseChemistry: string;
|
|
241
|
+
subjectGcsePhysics: string;
|
|
242
|
+
subjectGcseBiology: string;
|
|
238
243
|
glBlueLight: string;
|
|
239
244
|
glBluePrimary: string;
|
|
240
245
|
glBlueDark: string;
|
|
@@ -235,6 +235,11 @@ export declare const StyledImage: import("@atom-learning/stitches-react/types/st
|
|
|
235
235
|
subjectNonVerbalReasoning: string;
|
|
236
236
|
subjectCreativeWriting: string;
|
|
237
237
|
subjectExamSkills: string;
|
|
238
|
+
subjectGcseEnglishLiterature: string;
|
|
239
|
+
subjectGcseMaths: string;
|
|
240
|
+
subjectGcseChemistry: string;
|
|
241
|
+
subjectGcsePhysics: string;
|
|
242
|
+
subjectGcseBiology: string;
|
|
238
243
|
glBlueLight: string;
|
|
239
244
|
glBluePrimary: string;
|
|
240
245
|
glBlueDark: string;
|