@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
|
@@ -233,6 +233,11 @@ export declare const StyledChipContent: import("@atom-learning/stitches-react/ty
|
|
|
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;
|
|
@@ -604,6 +609,11 @@ export declare const StyledRoot: import("@atom-learning/stitches-react/types/sty
|
|
|
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;
|
|
@@ -969,6 +979,11 @@ export declare const StyledRoot: import("@atom-learning/stitches-react/types/sty
|
|
|
969
979
|
subjectNonVerbalReasoning: string;
|
|
970
980
|
subjectCreativeWriting: string;
|
|
971
981
|
subjectExamSkills: string;
|
|
982
|
+
subjectGcseEnglishLiterature: string;
|
|
983
|
+
subjectGcseMaths: string;
|
|
984
|
+
subjectGcseChemistry: string;
|
|
985
|
+
subjectGcsePhysics: string;
|
|
986
|
+
subjectGcseBiology: string;
|
|
972
987
|
glBlueLight: string;
|
|
973
988
|
glBluePrimary: string;
|
|
974
989
|
glBlueDark: string;
|
|
@@ -1344,6 +1359,11 @@ export declare const ChipRootContext: React.Context<Omit<Omit<Omit<React.Detaile
|
|
|
1344
1359
|
subjectNonVerbalReasoning: string;
|
|
1345
1360
|
subjectCreativeWriting: string;
|
|
1346
1361
|
subjectExamSkills: string;
|
|
1362
|
+
subjectGcseEnglishLiterature: string;
|
|
1363
|
+
subjectGcseMaths: string;
|
|
1364
|
+
subjectGcseChemistry: string;
|
|
1365
|
+
subjectGcsePhysics: string;
|
|
1366
|
+
subjectGcseBiology: string;
|
|
1347
1367
|
glBlueLight: string;
|
|
1348
1368
|
glBluePrimary: string;
|
|
1349
1369
|
glBlueDark: string;
|
|
@@ -1711,6 +1731,11 @@ export declare const ChipRootContext: React.Context<Omit<Omit<Omit<React.Detaile
|
|
|
1711
1731
|
subjectNonVerbalReasoning: string;
|
|
1712
1732
|
subjectCreativeWriting: string;
|
|
1713
1733
|
subjectExamSkills: string;
|
|
1734
|
+
subjectGcseEnglishLiterature: string;
|
|
1735
|
+
subjectGcseMaths: string;
|
|
1736
|
+
subjectGcseChemistry: string;
|
|
1737
|
+
subjectGcsePhysics: string;
|
|
1738
|
+
subjectGcseBiology: string;
|
|
1714
1739
|
glBlueLight: string;
|
|
1715
1740
|
glBluePrimary: string;
|
|
1716
1741
|
glBlueDark: string;
|
|
@@ -2087,6 +2112,11 @@ export declare const Chip: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.
|
|
|
2087
2112
|
subjectNonVerbalReasoning: string;
|
|
2088
2113
|
subjectCreativeWriting: string;
|
|
2089
2114
|
subjectExamSkills: string;
|
|
2115
|
+
subjectGcseEnglishLiterature: string;
|
|
2116
|
+
subjectGcseMaths: string;
|
|
2117
|
+
subjectGcseChemistry: string;
|
|
2118
|
+
subjectGcsePhysics: string;
|
|
2119
|
+
subjectGcseBiology: string;
|
|
2090
2120
|
glBlueLight: string;
|
|
2091
2121
|
glBluePrimary: string;
|
|
2092
2122
|
glBlueDark: string;
|
|
@@ -2454,6 +2484,11 @@ export declare const Chip: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.
|
|
|
2454
2484
|
subjectNonVerbalReasoning: string;
|
|
2455
2485
|
subjectCreativeWriting: string;
|
|
2456
2486
|
subjectExamSkills: string;
|
|
2487
|
+
subjectGcseEnglishLiterature: string;
|
|
2488
|
+
subjectGcseMaths: string;
|
|
2489
|
+
subjectGcseChemistry: string;
|
|
2490
|
+
subjectGcsePhysics: string;
|
|
2491
|
+
subjectGcseBiology: string;
|
|
2457
2492
|
glBlueLight: string;
|
|
2458
2493
|
glBluePrimary: string;
|
|
2459
2494
|
glBlueDark: string;
|
|
@@ -243,6 +243,11 @@ declare const StyledChipDismissibleGroupItem: import("@atom-learning/stitches-re
|
|
|
243
243
|
subjectNonVerbalReasoning: string;
|
|
244
244
|
subjectCreativeWriting: string;
|
|
245
245
|
subjectExamSkills: string;
|
|
246
|
+
subjectGcseEnglishLiterature: string;
|
|
247
|
+
subjectGcseMaths: string;
|
|
248
|
+
subjectGcseChemistry: string;
|
|
249
|
+
subjectGcsePhysics: string;
|
|
250
|
+
subjectGcseBiology: string;
|
|
246
251
|
glBlueLight: string;
|
|
247
252
|
glBluePrimary: string;
|
|
248
253
|
glBlueDark: string;
|
|
@@ -610,6 +615,11 @@ declare const StyledChipDismissibleGroupItem: import("@atom-learning/stitches-re
|
|
|
610
615
|
subjectNonVerbalReasoning: string;
|
|
611
616
|
subjectCreativeWriting: string;
|
|
612
617
|
subjectExamSkills: string;
|
|
618
|
+
subjectGcseEnglishLiterature: string;
|
|
619
|
+
subjectGcseMaths: string;
|
|
620
|
+
subjectGcseChemistry: string;
|
|
621
|
+
subjectGcsePhysics: string;
|
|
622
|
+
subjectGcseBiology: string;
|
|
613
623
|
glBlueLight: string;
|
|
614
624
|
glBluePrimary: string;
|
|
615
625
|
glBlueDark: string;
|
|
@@ -980,6 +990,11 @@ declare const StyledChipDismissibleGroupItem: import("@atom-learning/stitches-re
|
|
|
980
990
|
subjectNonVerbalReasoning: string;
|
|
981
991
|
subjectCreativeWriting: string;
|
|
982
992
|
subjectExamSkills: string;
|
|
993
|
+
subjectGcseEnglishLiterature: string;
|
|
994
|
+
subjectGcseMaths: string;
|
|
995
|
+
subjectGcseChemistry: string;
|
|
996
|
+
subjectGcsePhysics: string;
|
|
997
|
+
subjectGcseBiology: string;
|
|
983
998
|
glBlueLight: string;
|
|
984
999
|
glBluePrimary: string;
|
|
985
1000
|
glBlueDark: string;
|
|
@@ -243,6 +243,11 @@ declare const StyledChipToggleGroupItem: import("@atom-learning/stitches-react/t
|
|
|
243
243
|
subjectNonVerbalReasoning: string;
|
|
244
244
|
subjectCreativeWriting: string;
|
|
245
245
|
subjectExamSkills: string;
|
|
246
|
+
subjectGcseEnglishLiterature: string;
|
|
247
|
+
subjectGcseMaths: string;
|
|
248
|
+
subjectGcseChemistry: string;
|
|
249
|
+
subjectGcsePhysics: string;
|
|
250
|
+
subjectGcseBiology: string;
|
|
246
251
|
glBlueLight: string;
|
|
247
252
|
glBluePrimary: string;
|
|
248
253
|
glBlueDark: string;
|
|
@@ -610,6 +615,11 @@ declare const StyledChipToggleGroupItem: import("@atom-learning/stitches-react/t
|
|
|
610
615
|
subjectNonVerbalReasoning: string;
|
|
611
616
|
subjectCreativeWriting: string;
|
|
612
617
|
subjectExamSkills: string;
|
|
618
|
+
subjectGcseEnglishLiterature: string;
|
|
619
|
+
subjectGcseMaths: string;
|
|
620
|
+
subjectGcseChemistry: string;
|
|
621
|
+
subjectGcsePhysics: string;
|
|
622
|
+
subjectGcseBiology: string;
|
|
613
623
|
glBlueLight: string;
|
|
614
624
|
glBluePrimary: string;
|
|
615
625
|
glBlueDark: string;
|
|
@@ -980,6 +990,11 @@ declare const StyledChipToggleGroupItem: import("@atom-learning/stitches-react/t
|
|
|
980
990
|
subjectNonVerbalReasoning: string;
|
|
981
991
|
subjectCreativeWriting: string;
|
|
982
992
|
subjectExamSkills: string;
|
|
993
|
+
subjectGcseEnglishLiterature: string;
|
|
994
|
+
subjectGcseMaths: string;
|
|
995
|
+
subjectGcseChemistry: string;
|
|
996
|
+
subjectGcsePhysics: string;
|
|
997
|
+
subjectGcseBiology: string;
|
|
983
998
|
glBlueLight: string;
|
|
984
999
|
glBluePrimary: string;
|
|
985
1000
|
glBlueDark: string;
|
|
@@ -232,6 +232,11 @@ export declare const Combobox: import("@atom-learning/stitches-react/types/style
|
|
|
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;
|
|
@@ -597,6 +602,11 @@ export declare const Combobox: import("@atom-learning/stitches-react/types/style
|
|
|
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;
|
|
@@ -969,6 +979,11 @@ export declare const Combobox: import("@atom-learning/stitches-react/types/style
|
|
|
969
979
|
subjectNonVerbalReasoning: string;
|
|
970
980
|
subjectCreativeWriting: string;
|
|
971
981
|
subjectExamSkills: string;
|
|
982
|
+
subjectGcseEnglishLiterature: string;
|
|
983
|
+
subjectGcseMaths: string;
|
|
984
|
+
subjectGcseChemistry: string;
|
|
985
|
+
subjectGcsePhysics: string;
|
|
986
|
+
subjectGcseBiology: string;
|
|
972
987
|
glBlueLight: string;
|
|
973
988
|
glBluePrimary: string;
|
|
974
989
|
glBlueDark: string;
|
|
@@ -1334,6 +1349,11 @@ export declare const Combobox: import("@atom-learning/stitches-react/types/style
|
|
|
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;
|
|
@@ -1698,6 +1718,11 @@ export declare const Combobox: import("@atom-learning/stitches-react/types/style
|
|
|
1698
1718
|
subjectNonVerbalReasoning: string;
|
|
1699
1719
|
subjectCreativeWriting: string;
|
|
1700
1720
|
subjectExamSkills: string;
|
|
1721
|
+
subjectGcseEnglishLiterature: string;
|
|
1722
|
+
subjectGcseMaths: string;
|
|
1723
|
+
subjectGcseChemistry: string;
|
|
1724
|
+
subjectGcsePhysics: string;
|
|
1725
|
+
subjectGcseBiology: string;
|
|
1701
1726
|
glBlueLight: string;
|
|
1702
1727
|
glBluePrimary: string;
|
|
1703
1728
|
glBlueDark: string;
|
|
@@ -235,6 +235,11 @@ export declare const StyledComboboxInput: import("@atom-learning/stitches-react/
|
|
|
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 ComboboxList: 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 ComboboxOption: 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 ComboboxPopover: import("@atom-learning/stitches-react/type
|
|
|
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;
|
|
@@ -12,7 +12,7 @@ type CreatePasswordFieldProps = Override<React.ComponentProps<typeof PasswordInp
|
|
|
12
12
|
messageDirection?: CSS['flexDirection'];
|
|
13
13
|
}>;
|
|
14
14
|
export declare const CreatePasswordField: {
|
|
15
|
-
({ validate, defaultValidation, messageDirection, label, name, css, validation,
|
|
15
|
+
({ validate, defaultValidation, messageDirection, label, name, css, validation, ...remainingProps }: CreatePasswordFieldProps): React.JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
18
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import j from"invariant";import*as a from"react";import{useFormContext as E}from"react-hook-form";import{throttle as k}from"throttle-debounce";import{Box as P}from"../box/Box.js";import{Flex as S}from"../flex/Flex.js";import{InlineMessage as B}from"../inline-message/InlineMessage.js";import{PasswordField as D}from"../password-field/PasswordField.js";const c=({validate:d,defaultValidation:u,messageDirection:p="row",label:f="Create a password",name:r="password",css:v,validation:b,...w})=>{var s;const{formState:l}=E(),[i,n]=a.useState(!1),[C,m]=a.useState(u),g=l.touched[r],F=((s=l.errors[r])==null?void 0:s.type)==="validate",o=a.useCallback(async e=>{const t=await d(e);return t?(j(typeof t=="object","The validate function must return an object"),m(t),Object.values(t).every(h=>h)):!1},[m]),x=a.useCallback(k(500,o),[o]),y=(e,t)=>e?"success":t?"neutral":"error";return a.createElement(P,{css:v},a.createElement(D,{label:f,name:r,onChange:e=>x(e.target.value),onBlur:()=>n(!1),onFocus:()=>n(!0),validation:{...b,validate:o},...w}),(g||i||F)&&a.createElement(S,{css:{mt:"$2",gap:"$2",flexWrap:"wrap",flexDirection:p}},Object.entries(C).map(([e,t])=>a.createElement(B,{key:e,theme:y(t,i)},e))))};c.displayName="CreatePasswordField";export{c as CreatePasswordField};
|
|
2
2
|
//# sourceMappingURL=CreatePasswordField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreatePasswordField.js","sources":["../../../src/components/create-password-field/CreatePasswordField.tsx"],"sourcesContent":["import invariant from 'invariant'\nimport * as React from 'react'\nimport { useFormContext } from 'react-hook-form'\nimport { throttle } from 'throttle-debounce'\n\nimport type { CSS } from '~/stitches'\nimport { Override } from '~/utilities'\n\nimport { Box } from '../box'\nimport { FieldElementWrapperProps } from '../field-wrapper'\nimport { Flex } from '../flex'\nimport { InlineMessage } from '../inline-message'\nimport { PasswordField } from '../password-field'\nimport { PasswordInput } from '../password-input'\n\ntype ValidationResult = Record<string, boolean>\n\ntype CreatePasswordFieldProps = Override<\n React.ComponentProps<typeof PasswordInput> & FieldElementWrapperProps,\n {\n label?: string\n name?: string\n validate: (\n password: string\n ) => Promise<ValidationResult | undefined> | ValidationResult\n defaultValidation: ValidationResult\n messageDirection?: CSS['flexDirection']\n }\n>\n\nexport const CreatePasswordField = ({\n validate,\n defaultValidation,\n messageDirection = 'row',\n label = 'Create a password',\n name = 'password',\n css,\n validation,\n
|
|
1
|
+
{"version":3,"file":"CreatePasswordField.js","sources":["../../../src/components/create-password-field/CreatePasswordField.tsx"],"sourcesContent":["import invariant from 'invariant'\nimport * as React from 'react'\nimport { useFormContext } from 'react-hook-form'\nimport { throttle } from 'throttle-debounce'\n\nimport type { CSS } from '~/stitches'\nimport { Override } from '~/utilities'\n\nimport { Box } from '../box'\nimport { FieldElementWrapperProps } from '../field-wrapper'\nimport { Flex } from '../flex'\nimport { InlineMessage } from '../inline-message'\nimport { PasswordField } from '../password-field'\nimport { PasswordInput } from '../password-input'\n\ntype ValidationResult = Record<string, boolean>\n\ntype CreatePasswordFieldProps = Override<\n React.ComponentProps<typeof PasswordInput> & FieldElementWrapperProps,\n {\n label?: string\n name?: string\n validate: (\n password: string\n ) => Promise<ValidationResult | undefined> | ValidationResult\n defaultValidation: ValidationResult\n messageDirection?: CSS['flexDirection']\n }\n>\n\nexport const CreatePasswordField = ({\n validate,\n defaultValidation,\n messageDirection = 'row',\n label = 'Create a password',\n name = 'password',\n css,\n validation,\n ...remainingProps\n}: CreatePasswordFieldProps) => {\n const { formState } = useFormContext()\n const [isFocused, setIsFocused] = React.useState<boolean>(false)\n const [validationResult, setValidationResult] =\n React.useState<ValidationResult>(defaultValidation)\n\n const touched = formState.touched[name]\n const error = formState.errors[name]?.type === 'validate'\n\n const validatePassword = React.useCallback(\n async (password: string) => {\n const result = await validate(password)\n\n if (result) {\n invariant(\n typeof result === 'object',\n 'The validate function must return an object'\n )\n\n setValidationResult(result)\n return Object.values(result).every((isValid) => isValid)\n }\n\n return false\n },\n [setValidationResult]\n )\n\n const handleChange = React.useCallback(throttle(500, validatePassword), [\n validatePassword\n ])\n\n const getMessageTheme = (result: boolean, isFocused: boolean) => {\n if (result) return 'success'\n\n return isFocused ? 'neutral' : 'error'\n }\n\n return (\n <Box css={css}>\n <PasswordField\n label={label}\n name={name}\n onChange={(e) => handleChange(e.target.value)}\n onBlur={() => setIsFocused(false)}\n onFocus={() => setIsFocused(true)}\n validation={{ ...validation, validate: validatePassword }}\n {...remainingProps}\n />\n {(touched || isFocused || error) && (\n <Flex\n css={{\n mt: '$2',\n gap: '$2',\n flexWrap: 'wrap',\n flexDirection: messageDirection\n }}\n >\n {Object.entries(validationResult).map(([message, result]) => (\n <InlineMessage\n key={message}\n theme={getMessageTheme(result, isFocused)}\n >\n {message}\n </InlineMessage>\n ))}\n </Flex>\n )}\n </Box>\n )\n}\n\nCreatePasswordField.displayName = 'CreatePasswordField'\n"],"names":["CreatePasswordField","validate","defaultValidation","messageDirection","label","name","css","validation","remainingProps","_a","formState","useFormContext","isFocused","setIsFocused","React","validationResult","setValidationResult","touched","error","validatePassword","password","result","invariant","isValid","handleChange","throttle","getMessageTheme","Box","PasswordField","Flex","message","InlineMessage"],"mappings":"gWA8Ba,MAAAA,EAAsB,CAAC,CAClC,SAAAC,EACA,kBAAAC,EACA,iBAAAC,EAAmB,MACnB,MAAAC,EAAQ,oBACR,KAAAC,EAAO,WACP,IAAAC,EACA,WAAAC,KACGC,CACL,IAAgC,CAvChC,IAAAC,EAwCE,KAAM,CAAE,UAAAC,CAAU,EAAIC,EAAAA,EAChB,CAACC,EAAWC,CAAY,EAAIC,EAAM,SAAkB,EAAK,EACzD,CAACC,EAAkBC,CAAmB,EAC1CF,EAAM,SAA2BZ,CAAiB,EAE9Ce,EAAUP,EAAU,QAAQL,GAC5Ba,IAAQT,EAAAC,EAAU,OAAOL,KAAjB,KAAA,OAAAI,EAAwB,QAAS,WAEzCU,EAAmBL,EAAM,YAC7B,MAAOM,GAAqB,CAC1B,MAAMC,EAAS,MAAMpB,EAASmB,CAAQ,EAEtC,OAAIC,GACFC,EACE,OAAOD,GAAW,SAClB,6CACF,EAEAL,EAAoBK,CAAM,EACnB,OAAO,OAAOA,CAAM,EAAE,MAAOE,GAAYA,CAAO,GAGlD,EACT,EACA,CAACP,CAAmB,CACtB,EAEMQ,EAAeV,EAAM,YAAYW,EAAS,IAAKN,CAAgB,EAAG,CACtEA,CACF,CAAC,EAEKO,EAAkB,CAACL,EAAiBT,IACpCS,EAAe,UAEZT,EAAY,UAAY,QAGjC,OACEE,EAAA,cAACa,EAAA,CAAI,IAAKrB,CAAAA,EACRQ,EAAA,cAACc,EAAA,CACC,MAAOxB,EACP,KAAMC,EACN,SAAW,GAAMmB,EAAa,EAAE,OAAO,KAAK,EAC5C,OAAQ,IAAMX,EAAa,EAAK,EAChC,QAAS,IAAMA,EAAa,EAAI,EAChC,WAAY,CAAE,GAAGN,EAAY,SAAUY,CAAiB,EACvD,GAAGX,CAAAA,CACN,GACES,GAAWL,GAAaM,IACxBJ,EAAA,cAACe,EAAA,CACC,IAAK,CACH,GAAI,KACJ,IAAK,KACL,SAAU,OACV,cAAe1B,CACjB,CAAA,EAEC,OAAO,QAAQY,CAAgB,EAAE,IAAI,CAAC,CAACe,EAAST,CAAM,IACrDP,EAAA,cAACiB,EAAA,CACC,IAAKD,EACL,MAAOJ,EAAgBL,EAAQT,CAAS,CAEvCkB,EAAAA,CACH,CACD,CACH,CAEJ,CAEJ,EAEA9B,EAAoB,YAAc"}
|