@strapi/design-system 1.3.0-beta.3 → 1.3.1-alpha.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/LICENSE +20 -0
- package/dist/Accordion/Accordion.cjs +23 -0
- package/dist/Accordion/Accordion.js +88 -0
- package/dist/Accordion/AccordionContent.cjs +1 -0
- package/dist/Accordion/AccordionContent.js +23 -0
- package/dist/Accordion/AccordionContext.cjs +1 -0
- package/dist/Accordion/AccordionContext.js +6 -0
- package/dist/Accordion/AccordionGroup.cjs +47 -0
- package/dist/Accordion/AccordionGroup.js +91 -0
- package/dist/Accordion/AccordionToggle.cjs +28 -0
- package/dist/Accordion/AccordionToggle.js +127 -0
- package/dist/Accordion/index.cjs +1 -0
- package/dist/Accordion/index.js +11 -0
- package/dist/Accordion/utils.cjs +1 -0
- package/dist/Accordion/utils.js +7 -0
- package/dist/Alert/Alert.cjs +35 -0
- package/dist/Alert/Alert.js +111 -0
- package/dist/Alert/index.cjs +1 -0
- package/dist/Alert/index.js +4 -0
- package/dist/Alert/utils.cjs +1 -0
- package/dist/Alert/utils.js +6 -0
- package/dist/Avatar/Avatar.cjs +29 -0
- package/dist/Avatar/Avatar.js +80 -0
- package/dist/Avatar/AvatarGroup.cjs +5 -0
- package/dist/Avatar/AvatarGroup.js +11 -0
- package/dist/Avatar/constants.cjs +1 -0
- package/dist/Avatar/constants.js +5 -0
- package/dist/Avatar/index.cjs +1 -0
- package/dist/Avatar/index.js +7 -0
- package/dist/Badge/Badge.cjs +1 -0
- package/dist/Badge/Badge.js +33 -0
- package/dist/Badge/index.cjs +1 -0
- package/dist/Badge/index.js +4 -0
- package/dist/BaseButton/BaseButton.cjs +23 -0
- package/dist/BaseButton/BaseButton.js +45 -0
- package/dist/BaseButton/index.cjs +1 -0
- package/dist/BaseButton/index.js +5 -0
- package/dist/BaseCheckbox/BaseCheckbox.cjs +62 -0
- package/dist/BaseCheckbox/BaseCheckbox.js +105 -0
- package/dist/BaseCheckbox/assets/checkmark-black.cjs +1 -0
- package/dist/BaseCheckbox/assets/checkmark-black.js +4 -0
- package/dist/BaseCheckbox/assets/checkmark.cjs +1 -0
- package/dist/BaseCheckbox/assets/checkmark.js +4 -0
- package/dist/BaseCheckbox/index.cjs +1 -0
- package/dist/BaseCheckbox/index.js +4 -0
- package/dist/BaseCheckbox/utils.cjs +1 -0
- package/dist/BaseCheckbox/utils.js +4 -0
- package/dist/BaseLink/BaseLink.cjs +3 -0
- package/dist/BaseLink/BaseLink.js +31 -0
- package/dist/BaseLink/index.cjs +1 -0
- package/dist/BaseLink/index.js +4 -0
- package/dist/BaseRadio/BaseRadio.cjs +31 -0
- package/dist/BaseRadio/BaseRadio.js +62 -0
- package/dist/BaseRadio/RadioGroup.cjs +1 -0
- package/dist/BaseRadio/RadioGroup.js +32 -0
- package/dist/BaseRadio/context.cjs +1 -0
- package/dist/BaseRadio/context.js +6 -0
- package/dist/BaseRadio/index.cjs +1 -0
- package/dist/BaseRadio/index.js +6 -0
- package/dist/BaseRadio/utils.cjs +1 -0
- package/dist/BaseRadio/utils.js +6 -0
- package/dist/Box/Box.cjs +80 -0
- package/dist/Box/Box.js +95 -0
- package/dist/Box/BoxProps.cjs +1 -0
- package/dist/Box/BoxProps.js +51 -0
- package/dist/Box/index.cjs +1 -0
- package/dist/Box/index.js +4 -0
- package/dist/Breadcrumbs/Breadcrumbs.cjs +16 -0
- package/dist/Breadcrumbs/Breadcrumbs.js +52 -0
- package/dist/Breadcrumbs/index.cjs +1 -0
- package/dist/Breadcrumbs/index.js +5 -0
- package/dist/Button/Button.cjs +48 -0
- package/dist/Button/Button.js +109 -0
- package/dist/Button/constants.cjs +1 -0
- package/dist/Button/constants.js +14 -0
- package/dist/Button/index.cjs +1 -0
- package/dist/Button/index.js +5 -0
- package/dist/Button/utils.cjs +87 -0
- package/dist/Button/utils.js +112 -0
- package/dist/Card/Card.cjs +1 -0
- package/dist/Card/Card.js +32 -0
- package/dist/Card/CardAction.cjs +6 -0
- package/dist/Card/CardAction.js +14 -0
- package/dist/Card/CardAsset.cjs +19 -0
- package/dist/Card/CardAsset.js +42 -0
- package/dist/Card/CardBadge.cjs +6 -0
- package/dist/Card/CardBadge.js +14 -0
- package/dist/Card/CardBody.cjs +1 -0
- package/dist/Card/CardBody.js +15 -0
- package/dist/Card/CardCheckbox.cjs +1 -0
- package/dist/Card/CardCheckbox.js +16 -0
- package/dist/Card/CardContent.cjs +3 -0
- package/dist/Card/CardContent.js +15 -0
- package/dist/Card/CardContext.cjs +1 -0
- package/dist/Card/CardContext.js +6 -0
- package/dist/Card/CardHeader.cjs +4 -0
- package/dist/Card/CardHeader.js +13 -0
- package/dist/Card/CardTimer.cjs +5 -0
- package/dist/Card/CardTimer.js +26 -0
- package/dist/Card/CardTitle.cjs +1 -0
- package/dist/Card/CardTitle.js +23 -0
- package/dist/Card/index.cjs +1 -0
- package/dist/Card/index.js +23 -0
- package/dist/CarouselInput/Carousel.cjs +14 -0
- package/dist/CarouselInput/Carousel.js +131 -0
- package/dist/CarouselInput/CarouselActions.cjs +1 -0
- package/dist/CarouselInput/CarouselActions.js +14 -0
- package/dist/CarouselInput/CarouselImage.cjs +4 -0
- package/dist/CarouselInput/CarouselImage.js +35 -0
- package/dist/CarouselInput/CarouselInput.cjs +1 -0
- package/dist/CarouselInput/CarouselInput.js +79 -0
- package/dist/CarouselInput/CarouselSlide.cjs +3 -0
- package/dist/CarouselInput/CarouselSlide.js +26 -0
- package/dist/CarouselInput/index.cjs +1 -0
- package/dist/CarouselInput/index.js +12 -0
- package/dist/Checkbox/Checkbox.cjs +7 -0
- package/dist/Checkbox/Checkbox.js +64 -0
- package/dist/Checkbox/index.cjs +1 -0
- package/dist/Checkbox/index.js +4 -0
- package/dist/Combobox/Combobox.cjs +1 -0
- package/dist/Combobox/Combobox.js +285 -0
- package/dist/Combobox/ComboboxList.cjs +1 -0
- package/dist/Combobox/ComboboxList.js +15 -0
- package/dist/Combobox/ComboboxOption.cjs +1 -0
- package/dist/Combobox/ComboboxOption.js +30 -0
- package/dist/Combobox/components.cjs +53 -0
- package/dist/Combobox/components.js +64 -0
- package/dist/Combobox/index.cjs +1 -0
- package/dist/Combobox/index.js +7 -0
- package/dist/Combobox/utils.cjs +1 -0
- package/dist/Combobox/utils.js +78 -0
- package/dist/DatePicker/DatePicker.cjs +1 -0
- package/dist/DatePicker/DatePicker.js +104 -0
- package/dist/DatePicker/DatePickerCalendar.cjs +1 -0
- package/dist/DatePicker/DatePickerCalendar.js +102 -0
- package/dist/DatePicker/DatePickerTd.cjs +19 -0
- package/dist/DatePicker/DatePickerTd.js +55 -0
- package/dist/DatePicker/DatePickerTh.cjs +9 -0
- package/dist/DatePicker/DatePickerTh.js +35 -0
- package/dist/DatePicker/compareDates.cjs +1 -0
- package/dist/DatePicker/compareDates.js +4 -0
- package/dist/DatePicker/components.cjs +31 -0
- package/dist/DatePicker/components.js +41 -0
- package/dist/DatePicker/index.cjs +1 -0
- package/dist/DatePicker/index.js +4 -0
- package/dist/DatePicker/utils/formatDate.cjs +1 -0
- package/dist/DatePicker/utils/formatDate.js +4 -0
- package/dist/DatePicker/utils/generateWeeks.cjs +1 -0
- package/dist/DatePicker/utils/generateWeeks.js +17 -0
- package/dist/DatePicker/utils/getDayOfWeek.cjs +1 -0
- package/dist/DatePicker/utils/getDayOfWeek.js +15 -0
- package/dist/DatePicker/utils/getMonths.cjs +1 -0
- package/dist/DatePicker/utils/getMonths.js +7 -0
- package/dist/DatePicker/utils/getYears.cjs +1 -0
- package/dist/DatePicker/utils/getYears.js +9 -0
- package/dist/DatePicker/utils/index.cjs +1 -0
- package/dist/DatePicker/utils/index.js +12 -0
- package/dist/Dialog/Dialog.cjs +14 -0
- package/dist/Dialog/Dialog.js +66 -0
- package/dist/Dialog/DialogBody.cjs +10 -0
- package/dist/Dialog/DialogBody.js +32 -0
- package/dist/Dialog/DialogFooter.cjs +9 -0
- package/dist/Dialog/DialogFooter.js +31 -0
- package/dist/Dialog/index.cjs +1 -0
- package/dist/Dialog/index.js +8 -0
- package/dist/DismissibleLayer/DismissibleLayer.cjs +1 -0
- package/dist/DismissibleLayer/DismissibleLayer.js +38 -0
- package/dist/DismissibleLayer/index.cjs +1 -0
- package/dist/DismissibleLayer/index.js +4 -0
- package/dist/Divider/Divider.cjs +5 -0
- package/dist/Divider/Divider.js +24 -0
- package/dist/Divider/index.cjs +1 -0
- package/dist/Divider/index.js +4 -0
- package/dist/EmptyStateLayout/EmptyStateLayout.cjs +10 -0
- package/dist/EmptyStateLayout/EmptyStateLayout.js +44 -0
- package/dist/EmptyStateLayout/index.cjs +1 -0
- package/dist/EmptyStateLayout/index.js +4 -0
- package/dist/EmptyStateLayout/story-assets/Illo.cjs +1 -0
- package/dist/EmptyStateLayout/story-assets/Illo.js +49 -0
- package/dist/Field/Field.cjs +1 -0
- package/dist/Field/Field.js +28 -0
- package/dist/Field/FieldAction.cjs +10 -0
- package/dist/Field/FieldAction.js +24 -0
- package/dist/Field/FieldContext.cjs +1 -0
- package/dist/Field/FieldContext.js +6 -0
- package/dist/Field/FieldError.cjs +1 -0
- package/dist/Field/FieldError.js +16 -0
- package/dist/Field/FieldHint.cjs +1 -0
- package/dist/Field/FieldHint.js +15 -0
- package/dist/Field/FieldInput.cjs +43 -0
- package/dist/Field/FieldInput.js +105 -0
- package/dist/Field/FieldLabel.cjs +9 -0
- package/dist/Field/FieldLabel.js +44 -0
- package/dist/Field/index.cjs +1 -0
- package/dist/Field/index.js +18 -0
- package/dist/Flex/Flex.cjs +9 -0
- package/dist/Flex/Flex.js +22 -0
- package/dist/Flex/FlexProps.cjs +1 -0
- package/dist/Flex/FlexProps.js +40 -0
- package/dist/Flex/index.cjs +1 -0
- package/dist/Flex/index.js +4 -0
- package/dist/FocusTrap/ExampleComponent.cjs +1 -0
- package/dist/FocusTrap/ExampleComponent.js +70 -0
- package/dist/FocusTrap/FocusTrap.cjs +1 -0
- package/dist/FocusTrap/FocusTrap.js +48 -0
- package/dist/FocusTrap/index.cjs +1 -0
- package/dist/FocusTrap/index.js +4 -0
- package/dist/Grid/Grid.cjs +5 -0
- package/dist/Grid/Grid.js +28 -0
- package/dist/Grid/GridContext.cjs +1 -0
- package/dist/Grid/GridContext.js +6 -0
- package/dist/Grid/GridItem.cjs +12 -0
- package/dist/Grid/GridItem.js +41 -0
- package/dist/Grid/index.cjs +1 -0
- package/dist/Grid/index.js +6 -0
- package/dist/Icon/Icon.cjs +6 -0
- package/dist/Icon/Icon.js +26 -0
- package/dist/Icon/index.cjs +1 -0
- package/dist/Icon/index.js +4 -0
- package/dist/IconButton/IconButton.cjs +86 -0
- package/dist/IconButton/IconButton.js +149 -0
- package/dist/IconButton/index.cjs +1 -0
- package/dist/IconButton/index.js +5 -0
- package/dist/KeyboardNavigable/KeyboardNavigable.cjs +1 -0
- package/dist/KeyboardNavigable/KeyboardNavigable.js +58 -0
- package/dist/KeyboardNavigable/index.cjs +1 -0
- package/dist/KeyboardNavigable/index.js +4 -0
- package/dist/Layout/ActionLayout.cjs +9 -0
- package/dist/Layout/ActionLayout.js +37 -0
- package/dist/Layout/ContentLayout.cjs +1 -0
- package/dist/Layout/ContentLayout.js +13 -0
- package/dist/Layout/GridLayout.cjs +5 -0
- package/dist/Layout/GridLayout.js +13 -0
- package/dist/Layout/HeaderLayout.cjs +8 -0
- package/dist/Layout/HeaderLayout.js +132 -0
- package/dist/Layout/Layout.cjs +6 -0
- package/dist/Layout/Layout.js +24 -0
- package/dist/Layout/TwoColsLayout.cjs +1 -0
- package/dist/Layout/TwoColsLayout.js +29 -0
- package/dist/Layout/index.cjs +1 -0
- package/dist/Layout/index.js +15 -0
- package/dist/Link/Link.cjs +33 -0
- package/dist/Link/Link.js +87 -0
- package/dist/Link/index.cjs +1 -0
- package/dist/Link/index.js +4 -0
- package/dist/LinkButton/LinkButton.cjs +32 -0
- package/dist/LinkButton/LinkButton.js +99 -0
- package/dist/LinkButton/index.cjs +1 -0
- package/dist/LinkButton/index.js +4 -0
- package/dist/LiveRegions/LiveRegions.cjs +1 -0
- package/dist/LiveRegions/LiveRegions.js +22 -0
- package/dist/LiveRegions/StoryComponent.cjs +1 -0
- package/dist/LiveRegions/StoryComponent.js +18 -0
- package/dist/LiveRegions/constants.cjs +1 -0
- package/dist/LiveRegions/constants.js +8 -0
- package/dist/LiveRegions/index.cjs +1 -0
- package/dist/LiveRegions/index.js +4 -0
- package/dist/LiveRegions/useNotifyAT.cjs +1 -0
- package/dist/LiveRegions/useNotifyAT.js +17 -0
- package/dist/Loader/Loader.cjs +12 -0
- package/dist/Loader/Loader.js +37 -0
- package/dist/Loader/assets/loader.cjs +1 -0
- package/dist/Loader/assets/loader.js +4 -0
- package/dist/Loader/index.cjs +1 -0
- package/dist/Loader/index.js +4 -0
- package/dist/Main/Main.cjs +6 -0
- package/dist/Main/Main.js +26 -0
- package/dist/Main/SkipToContent.cjs +12 -0
- package/dist/Main/SkipToContent.js +29 -0
- package/dist/Main/index.cjs +1 -0
- package/dist/Main/index.js +6 -0
- package/dist/MainNav/MainNav.cjs +9 -0
- package/dist/MainNav/MainNav.js +30 -0
- package/dist/MainNav/MainNavContext.cjs +1 -0
- package/dist/MainNav/MainNavContext.js +6 -0
- package/dist/MainNav/NavBrand.cjs +12 -0
- package/dist/MainNav/NavBrand.js +67 -0
- package/dist/MainNav/NavCondense.cjs +20 -0
- package/dist/MainNav/NavCondense.js +45 -0
- package/dist/MainNav/NavLink.cjs +69 -0
- package/dist/MainNav/NavLink.js +119 -0
- package/dist/MainNav/NavSection.cjs +1 -0
- package/dist/MainNav/NavSection.js +49 -0
- package/dist/MainNav/NavSections.cjs +1 -0
- package/dist/MainNav/NavSections.js +21 -0
- package/dist/MainNav/NavUser.cjs +7 -0
- package/dist/MainNav/NavUser.js +54 -0
- package/dist/MainNav/index.cjs +1 -0
- package/dist/MainNav/index.js +16 -0
- package/dist/ModalLayout/ModalBody.cjs +4 -0
- package/dist/ModalLayout/ModalBody.js +13 -0
- package/dist/ModalLayout/ModalContext.cjs +1 -0
- package/dist/ModalLayout/ModalContext.js +6 -0
- package/dist/ModalLayout/ModalFooter.cjs +8 -0
- package/dist/ModalLayout/ModalFooter.js +32 -0
- package/dist/ModalLayout/ModalHeader.cjs +4 -0
- package/dist/ModalLayout/ModalHeader.js +37 -0
- package/dist/ModalLayout/ModalLayout.cjs +12 -0
- package/dist/ModalLayout/ModalLayout.js +42 -0
- package/dist/ModalLayout/index.cjs +1 -0
- package/dist/ModalLayout/index.js +10 -0
- package/dist/NumberInput/NumberInput.cjs +12 -0
- package/dist/NumberInput/NumberInput.js +179 -0
- package/dist/NumberInput/index.cjs +1 -0
- package/dist/NumberInput/index.js +4 -0
- package/dist/Pagination/Pagination.cjs +5 -0
- package/dist/Pagination/Pagination.js +30 -0
- package/dist/Pagination/PaginationContext.cjs +1 -0
- package/dist/Pagination/PaginationContext.js +6 -0
- package/dist/Pagination/assets/next.cjs +1 -0
- package/dist/Pagination/assets/next.js +4 -0
- package/dist/Pagination/assets/previous.cjs +1 -0
- package/dist/Pagination/assets/previous.js +4 -0
- package/dist/Pagination/components.cjs +36 -0
- package/dist/Pagination/components.js +111 -0
- package/dist/Pagination/index.cjs +1 -0
- package/dist/Pagination/index.js +9 -0
- package/dist/Popover/Popover.cjs +26 -0
- package/dist/Popover/Popover.js +122 -0
- package/dist/Popover/index.cjs +1 -0
- package/dist/Popover/index.js +5 -0
- package/dist/Portal/Portal.cjs +1 -0
- package/dist/Portal/Portal.js +15 -0
- package/dist/Portal/index.cjs +1 -0
- package/dist/Portal/index.js +4 -0
- package/dist/ProgressBar/ProgressBar.cjs +11 -0
- package/dist/ProgressBar/ProgressBar.js +44 -0
- package/dist/ProgressBar/index.cjs +1 -0
- package/dist/ProgressBar/index.js +4 -0
- package/dist/Radio/Radio.cjs +4 -0
- package/dist/Radio/Radio.js +24 -0
- package/dist/Radio/index.cjs +1 -0
- package/dist/Radio/index.js +6 -0
- package/dist/RawTable/RawCell.cjs +1 -0
- package/dist/RawTable/RawCell.js +80 -0
- package/dist/RawTable/RawTable.cjs +1 -0
- package/dist/RawTable/RawTable.js +73 -0
- package/dist/RawTable/RawTableContext.cjs +1 -0
- package/dist/RawTable/RawTableContext.js +12 -0
- package/dist/RawTable/RawTbody.cjs +1 -0
- package/dist/RawTable/RawTbody.js +16 -0
- package/dist/RawTable/RawThead.cjs +1 -0
- package/dist/RawTable/RawThead.js +14 -0
- package/dist/RawTable/RawTr.cjs +1 -0
- package/dist/RawTable/RawTr.js +19 -0
- package/dist/RawTable/focusFocusable.cjs +1 -0
- package/dist/RawTable/focusFocusable.js +7 -0
- package/dist/RawTable/index.cjs +1 -0
- package/dist/RawTable/index.js +13 -0
- package/dist/Searchbar/SearchForm.cjs +1 -0
- package/dist/Searchbar/SearchForm.js +8 -0
- package/dist/Searchbar/Searchbar.cjs +29 -0
- package/dist/Searchbar/Searchbar.js +79 -0
- package/dist/Searchbar/index.cjs +1 -0
- package/dist/Searchbar/index.js +6 -0
- package/dist/Select/MultiSelectNested.cjs +1 -0
- package/dist/Select/MultiSelectNested.js +26 -0
- package/dist/Select/OptGroup.cjs +1 -0
- package/dist/Select/OptGroup.js +20 -0
- package/dist/Select/Option.cjs +49 -0
- package/dist/Select/Option.js +104 -0
- package/dist/Select/Select.cjs +3 -0
- package/dist/Select/Select.js +227 -0
- package/dist/Select/SelectButton.cjs +19 -0
- package/dist/Select/SelectButton.js +64 -0
- package/dist/Select/SelectList.cjs +1 -0
- package/dist/Select/SelectList.js +81 -0
- package/dist/Select/SelectTags.cjs +8 -0
- package/dist/Select/SelectTags.js +36 -0
- package/dist/Select/components.cjs +39 -0
- package/dist/Select/components.js +48 -0
- package/dist/Select/constants.cjs +1 -0
- package/dist/Select/constants.js +8 -0
- package/dist/Select/hooks/useButtonRef.cjs +1 -0
- package/dist/Select/hooks/useButtonRef.js +13 -0
- package/dist/Select/hooks/useListRef.cjs +1 -0
- package/dist/Select/hooks/useListRef.js +18 -0
- package/dist/Select/index.cjs +1 -0
- package/dist/Select/index.js +12 -0
- package/dist/Select/utils.cjs +1 -0
- package/dist/Select/utils.js +17 -0
- package/dist/SimpleMenu/SimpleMenu.cjs +19 -0
- package/dist/SimpleMenu/SimpleMenu.js +164 -0
- package/dist/SimpleMenu/index.cjs +1 -0
- package/dist/SimpleMenu/index.js +5 -0
- package/dist/SimpleMenu/utils.cjs +12 -0
- package/dist/SimpleMenu/utils.js +15 -0
- package/dist/Stack/Stack.cjs +19 -0
- package/dist/Stack/Stack.js +55 -0
- package/dist/Stack/index.cjs +1 -0
- package/dist/Stack/index.js +4 -0
- package/dist/Status/Status.cjs +11 -0
- package/dist/Status/Status.js +46 -0
- package/dist/Status/index.cjs +1 -0
- package/dist/Status/index.js +4 -0
- package/dist/SubNav/SubNav.cjs +10 -0
- package/dist/SubNav/SubNav.js +26 -0
- package/dist/SubNav/SubNavHeader.cjs +4 -0
- package/dist/SubNav/SubNavHeader.js +98 -0
- package/dist/SubNav/SubNavLink.cjs +39 -0
- package/dist/SubNav/SubNavLink.js +80 -0
- package/dist/SubNav/SubNavLinkSection.cjs +19 -0
- package/dist/SubNav/SubNavLinkSection.js +68 -0
- package/dist/SubNav/SubNavSection.cjs +8 -0
- package/dist/SubNav/SubNavSection.js +63 -0
- package/dist/SubNav/SubNavSectionLabel.cjs +9 -0
- package/dist/SubNav/SubNavSectionLabel.js +53 -0
- package/dist/SubNav/SubNavSections.cjs +1 -0
- package/dist/SubNav/SubNavSections.js +20 -0
- package/dist/SubNav/index.cjs +1 -0
- package/dist/SubNav/index.js +15 -0
- package/dist/Switch/Switch.cjs +42 -0
- package/dist/Switch/Switch.js +80 -0
- package/dist/Switch/index.cjs +1 -0
- package/dist/Switch/index.js +4 -0
- package/dist/Table/Cell.cjs +17 -0
- package/dist/Table/Cell.js +39 -0
- package/dist/Table/TFooter.cjs +22 -0
- package/dist/Table/TFooter.js +50 -0
- package/dist/Table/Table.cjs +36 -0
- package/dist/Table/Table.js +80 -0
- package/dist/Table/Tbody.cjs +5 -0
- package/dist/Table/Tbody.js +13 -0
- package/dist/Table/Thead.cjs +3 -0
- package/dist/Table/Thead.js +11 -0
- package/dist/Table/Tr.cjs +20 -0
- package/dist/Table/Tr.js +28 -0
- package/dist/Table/index.cjs +1 -0
- package/dist/Table/index.js +15 -0
- package/dist/Tabs/TabGroup.cjs +1 -0
- package/dist/Tabs/TabGroup.js +36 -0
- package/dist/Tabs/TabPanels.cjs +1 -0
- package/dist/Tabs/TabPanels.js +32 -0
- package/dist/Tabs/Tabs.cjs +5 -0
- package/dist/Tabs/Tabs.js +134 -0
- package/dist/Tabs/TabsContext.cjs +1 -0
- package/dist/Tabs/TabsContext.js +6 -0
- package/dist/Tabs/components.cjs +43 -0
- package/dist/Tabs/components.js +52 -0
- package/dist/Tabs/index.cjs +1 -0
- package/dist/Tabs/index.js +10 -0
- package/dist/Tabs/useTabsFocus.cjs +1 -0
- package/dist/Tabs/useTabsFocus.js +16 -0
- package/dist/Tag/Tag.cjs +14 -0
- package/dist/Tag/Tag.js +60 -0
- package/dist/Tag/index.cjs +1 -0
- package/dist/Tag/index.js +4 -0
- package/dist/TextButton/TextButton.cjs +32 -0
- package/dist/TextButton/TextButton.js +82 -0
- package/dist/TextButton/index.cjs +1 -0
- package/dist/TextButton/index.js +4 -0
- package/dist/TextInput/TextInput.cjs +1 -0
- package/dist/TextInput/TextInput.js +69 -0
- package/dist/TextInput/index.cjs +1 -0
- package/dist/TextInput/index.js +4 -0
- package/dist/Textarea/Textarea.cjs +15 -0
- package/dist/Textarea/Textarea.js +74 -0
- package/dist/Textarea/TextareaInput.cjs +30 -0
- package/dist/Textarea/TextareaInput.js +68 -0
- package/dist/Textarea/index.cjs +1 -0
- package/dist/Textarea/index.js +4 -0
- package/dist/ThemeProvider/ThemeProvider.cjs +173 -0
- package/dist/ThemeProvider/ThemeProvider.js +186 -0
- package/dist/ThemeProvider/hooks.cjs +1 -0
- package/dist/ThemeProvider/hooks.js +5 -0
- package/dist/ThemeProvider/index.cjs +1 -0
- package/dist/ThemeProvider/index.js +6 -0
- package/dist/TimePicker/TimePicker.cjs +12 -0
- package/dist/TimePicker/TimePicker.js +101 -0
- package/dist/TimePicker/index.cjs +1 -0
- package/dist/TimePicker/index.js +4 -0
- package/dist/ToggleCheckbox/ToggleCheckbox.cjs +36 -0
- package/dist/ToggleCheckbox/ToggleCheckbox.js +119 -0
- package/dist/ToggleCheckbox/index.cjs +1 -0
- package/dist/ToggleCheckbox/index.js +4 -0
- package/dist/ToggleInput/ToggleInput.cjs +6 -0
- package/dist/ToggleInput/ToggleInput.js +90 -0
- package/dist/ToggleInput/index.cjs +1 -0
- package/dist/ToggleInput/index.js +4 -0
- package/dist/Tooltip/Tooltip.cjs +6 -0
- package/dist/Tooltip/Tooltip.js +60 -0
- package/dist/Tooltip/hooks/useTooltipHandlers.cjs +1 -0
- package/dist/Tooltip/hooks/useTooltipHandlers.js +22 -0
- package/dist/Tooltip/hooks/useTooltipLayout.cjs +1 -0
- package/dist/Tooltip/hooks/useTooltipLayout.js +14 -0
- package/dist/Tooltip/index.cjs +1 -0
- package/dist/Tooltip/index.js +4 -0
- package/dist/Tooltip/utils/positionTooltip.cjs +1 -0
- package/dist/Tooltip/utils/positionTooltip.js +27 -0
- package/dist/Typography/Typography.cjs +13 -0
- package/dist/Typography/Typography.js +26 -0
- package/dist/Typography/TypographyProps.cjs +1 -0
- package/dist/Typography/TypographyProps.js +31 -0
- package/dist/Typography/constants.cjs +1 -0
- package/dist/Typography/constants.js +11 -0
- package/dist/Typography/index.cjs +1 -0
- package/dist/Typography/index.js +4 -0
- package/dist/Typography/utils.cjs +34 -0
- package/dist/Typography/utils.js +59 -0
- package/dist/VisuallyHidden/VisuallyHidden.cjs +10 -0
- package/dist/VisuallyHidden/VisuallyHidden.js +14 -0
- package/dist/VisuallyHidden/index.cjs +1 -0
- package/dist/VisuallyHidden/index.js +4 -0
- package/dist/helpers/escapeSelector.cjs +1 -0
- package/dist/helpers/escapeSelector.js +4 -0
- package/dist/helpers/genId.cjs +1 -0
- package/dist/helpers/genId.js +5 -0
- package/dist/helpers/getDefaultLocale.cjs +1 -0
- package/dist/helpers/getDefaultLocale.js +4 -0
- package/dist/helpers/getFocusableNodes.cjs +1 -0
- package/dist/helpers/getFocusableNodes.js +7 -0
- package/dist/helpers/handleResponsiveValues.cjs +5 -0
- package/dist/helpers/handleResponsiveValues.js +19 -0
- package/dist/helpers/keyboardKeys.cjs +1 -0
- package/dist/helpers/keyboardKeys.js +20 -0
- package/dist/helpers/setOpacity.cjs +1 -0
- package/dist/helpers/setOpacity.js +4 -0
- package/dist/helpers/setTabIndexOnFirstItem.cjs +1 -0
- package/dist/helpers/setTabIndexOnFirstItem.js +7 -0
- package/dist/helpers/useElementOnScreen.cjs +1 -0
- package/dist/helpers/useElementOnScreen.js +15 -0
- package/dist/helpers/useId.cjs +1 -0
- package/dist/helpers/useId.js +6 -0
- package/dist/helpers/useIntersection.cjs +1 -0
- package/dist/helpers/useIntersection.js +21 -0
- package/dist/helpers/useLockScroll.cjs +1 -0
- package/dist/helpers/useLockScroll.js +9 -0
- package/dist/helpers/usePrevious.cjs +1 -0
- package/dist/helpers/usePrevious.js +10 -0
- package/dist/helpers/useResizeObserver.cjs +1 -0
- package/dist/helpers/useResizeObserver.js +14 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +288 -0
- package/dist/themes/ColorButton.cjs +3 -0
- package/dist/themes/ColorButton.js +25 -0
- package/dist/themes/colors.cjs +1 -0
- package/dist/themes/colors.js +49 -0
- package/dist/themes/common-theme.cjs +1 -0
- package/dist/themes/common-theme.js +21 -0
- package/dist/themes/darkTheme/dark-colors.cjs +1 -0
- package/dist/themes/darkTheme/dark-colors.js +52 -0
- package/dist/themes/darkTheme/dark-shadows.cjs +1 -0
- package/dist/themes/darkTheme/dark-shadows.js +12 -0
- package/dist/themes/darkTheme/index.cjs +1 -0
- package/dist/themes/darkTheme/index.js +11 -0
- package/dist/themes/extendTheme.cjs +13 -0
- package/dist/themes/extendTheme.js +36 -0
- package/dist/themes/index.cjs +1 -0
- package/dist/themes/index.js +12 -0
- package/dist/themes/lightTheme/index.cjs +1 -0
- package/dist/themes/lightTheme/index.js +11 -0
- package/dist/themes/lightTheme/light-colors.cjs +1 -0
- package/dist/themes/lightTheme/light-colors.js +52 -0
- package/dist/themes/lightTheme/light-shadows.cjs +1 -0
- package/dist/themes/lightTheme/light-shadows.js +12 -0
- package/dist/themes/sizes.cjs +1 -0
- package/dist/themes/sizes.js +18 -0
- package/dist/themes/utils.cjs +41 -0
- package/dist/themes/utils.js +46 -0
- package/dist/v2/Breadcrumbs/Breadcrumbs.cjs +9 -0
- package/dist/v2/Breadcrumbs/Breadcrumbs.js +38 -0
- package/dist/v2/Breadcrumbs/Crumb.cjs +1 -0
- package/dist/v2/Breadcrumbs/Crumb.js +27 -0
- package/dist/v2/Breadcrumbs/CrumbLink.cjs +14 -0
- package/dist/v2/Breadcrumbs/CrumbLink.js +31 -0
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.cjs +8 -0
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.js +28 -0
- package/dist/v2/Breadcrumbs/Divider.cjs +1 -0
- package/dist/v2/Breadcrumbs/Divider.js +15 -0
- package/dist/v2/Breadcrumbs/index.cjs +1 -0
- package/dist/v2/Breadcrumbs/index.js +10 -0
- package/dist/v2/Link/Link.cjs +23 -0
- package/dist/v2/Link/Link.js +69 -0
- package/dist/v2/Link/index.cjs +1 -0
- package/dist/v2/Link/index.js +4 -0
- package/dist/v2/LinkButton/LinkButton.cjs +33 -0
- package/dist/v2/LinkButton/LinkButton.js +95 -0
- package/dist/v2/LinkButton/index.cjs +1 -0
- package/dist/v2/LinkButton/index.js +4 -0
- package/dist/v2/MainNav/MainNav.cjs +9 -0
- package/dist/v2/MainNav/MainNav.js +30 -0
- package/dist/v2/MainNav/MainNavContext.cjs +1 -0
- package/dist/v2/MainNav/MainNavContext.js +6 -0
- package/dist/v2/MainNav/NavBrand.cjs +12 -0
- package/dist/v2/MainNav/NavBrand.js +68 -0
- package/dist/v2/MainNav/NavCondense.cjs +20 -0
- package/dist/v2/MainNav/NavCondense.js +45 -0
- package/dist/v2/MainNav/NavLink.cjs +69 -0
- package/dist/v2/MainNav/NavLink.js +122 -0
- package/dist/v2/MainNav/NavSection.cjs +1 -0
- package/dist/v2/MainNav/NavSection.js +49 -0
- package/dist/v2/MainNav/NavSections.cjs +1 -0
- package/dist/v2/MainNav/NavSections.js +21 -0
- package/dist/v2/MainNav/NavUser.cjs +7 -0
- package/dist/v2/MainNav/NavUser.js +54 -0
- package/dist/v2/MainNav/index.cjs +1 -0
- package/dist/v2/MainNav/index.js +16 -0
- package/dist/v2/Pagination/Pagination.cjs +5 -0
- package/dist/v2/Pagination/Pagination.js +30 -0
- package/dist/v2/Pagination/PaginationContext.cjs +1 -0
- package/dist/v2/Pagination/PaginationContext.js +6 -0
- package/dist/v2/Pagination/assets/next.cjs +1 -0
- package/dist/v2/Pagination/assets/next.js +4 -0
- package/dist/v2/Pagination/assets/previous.cjs +1 -0
- package/dist/v2/Pagination/assets/previous.js +4 -0
- package/dist/v2/Pagination/components.cjs +36 -0
- package/dist/v2/Pagination/components.js +111 -0
- package/dist/v2/Pagination/index.cjs +1 -0
- package/dist/v2/Pagination/index.js +9 -0
- package/dist/v2/SimpleMenu/SimpleMenu.cjs +19 -0
- package/dist/v2/SimpleMenu/SimpleMenu.js +164 -0
- package/dist/v2/SimpleMenu/index.cjs +1 -0
- package/dist/v2/SimpleMenu/index.js +5 -0
- package/dist/v2/SimpleMenu/utils.cjs +12 -0
- package/dist/v2/SimpleMenu/utils.js +15 -0
- package/dist/v2/SubNav/SubNav.cjs +10 -0
- package/dist/v2/SubNav/SubNav.js +26 -0
- package/dist/v2/SubNav/SubNavHeader.cjs +4 -0
- package/dist/v2/SubNav/SubNavHeader.js +98 -0
- package/dist/v2/SubNav/SubNavLink.cjs +39 -0
- package/dist/v2/SubNav/SubNavLink.js +83 -0
- package/dist/v2/SubNav/SubNavLinkSection.cjs +19 -0
- package/dist/v2/SubNav/SubNavLinkSection.js +68 -0
- package/dist/v2/SubNav/SubNavSection.cjs +8 -0
- package/dist/v2/SubNav/SubNavSection.js +63 -0
- package/dist/v2/SubNav/SubNavSectionLabel.cjs +9 -0
- package/dist/v2/SubNav/SubNavSectionLabel.js +53 -0
- package/dist/v2/SubNav/SubNavSections.cjs +1 -0
- package/dist/v2/SubNav/SubNavSections.js +20 -0
- package/dist/v2/SubNav/index.cjs +1 -0
- package/dist/v2/SubNav/index.js +15 -0
- package/dist/v2/index.cjs +1 -0
- package/dist/v2/index.js +51 -0
- package/package.json +22 -22
- package/Accordion.development.js +0 -775
- package/Accordion.js +0 -9
- package/Accordion.production.js +0 -1
- package/Alert.development.js +0 -562
- package/Alert.js +0 -9
- package/Alert.production.js +0 -1
- package/Avatar.development.js +0 -485
- package/Avatar.js +0 -9
- package/Avatar.production.js +0 -1
- package/Badge.development.js +0 -494
- package/Badge.js +0 -9
- package/Badge.production.js +0 -1
- package/BaseButton.development.js +0 -285
- package/BaseButton.js +0 -9
- package/BaseButton.production.js +0 -1
- package/BaseCheckbox.development.js +0 -434
- package/BaseCheckbox.js +0 -9
- package/BaseCheckbox.production.js +0 -1
- package/BaseLink.development.js +0 -273
- package/BaseLink.js +0 -9
- package/BaseLink.production.js +0 -1
- package/BaseRadio.development.js +0 -321
- package/BaseRadio.js +0 -9
- package/BaseRadio.production.js +0 -1
- package/Box.development.js +0 -341
- package/Box.js +0 -9
- package/Box.production.js +0 -1
- package/Breadcrumbs.development.js +0 -518
- package/Breadcrumbs.js +0 -9
- package/Breadcrumbs.production.js +0 -1
- package/Button.development.js +0 -573
- package/Button.js +0 -9
- package/Button.production.js +0 -1
- package/Card.development.js +0 -746
- package/Card.js +0 -9
- package/Card.production.js +0 -1
- package/CarouselInput.development.js +0 -898
- package/CarouselInput.js +0 -9
- package/CarouselInput.production.js +0 -1
- package/Checkbox.development.js +0 -722
- package/Checkbox.js +0 -9
- package/Checkbox.production.js +0 -1
- package/Combobox.development.js +0 -934
- package/Combobox.js +0 -9
- package/Combobox.production.js +0 -1
- package/DatePicker.development.js +0 -1323
- package/DatePicker.js +0 -9
- package/DatePicker.production.js +0 -1
- package/DateTimePicker.development.js +0 -1622
- package/DateTimePicker.js +0 -9
- package/DateTimePicker.production.js +0 -1
- package/Dialog.development.js +0 -741
- package/Dialog.js +0 -9
- package/Dialog.production.js +0 -1
- package/DismissibleLayer.development.js +0 -218
- package/DismissibleLayer.js +0 -9
- package/DismissibleLayer.production.js +0 -1
- package/Divider.development.js +0 -398
- package/Divider.js +0 -9
- package/Divider.production.js +0 -1
- package/EmptyStateLayout.development.js +0 -425
- package/EmptyStateLayout.js +0 -9
- package/EmptyStateLayout.production.js +0 -1
- package/Field.development.js +0 -614
- package/Field.js +0 -9
- package/Field.production.js +0 -1
- package/Flex.development.js +0 -377
- package/Flex.js +0 -9
- package/Flex.production.js +0 -1
- package/FocusTrap.development.js +0 -341
- package/FocusTrap.js +0 -9
- package/FocusTrap.production.js +0 -1
- package/Grid.development.js +0 -422
- package/Grid.js +0 -9
- package/Grid.production.js +0 -1
- package/Icon.development.js +0 -376
- package/Icon.js +0 -9
- package/Icon.production.js +0 -1
- package/IconButton.development.js +0 -684
- package/IconButton.js +0 -9
- package/IconButton.production.js +0 -1
- package/KeyboardNavigable.development.js +0 -454
- package/KeyboardNavigable.js +0 -9
- package/KeyboardNavigable.production.js +0 -1
- package/Layout.development.js +0 -626
- package/Layout.js +0 -9
- package/Layout.production.js +0 -1
- package/Link.development.js +0 -492
- package/Link.js +0 -9
- package/Link.production.js +0 -1
- package/LinkButton.development.js +0 -573
- package/LinkButton.js +0 -9
- package/LinkButton.production.js +0 -1
- package/LiveRegions.development.js +0 -147
- package/LiveRegions.js +0 -9
- package/LiveRegions.production.js +0 -1
- package/Loader.development.js +0 -309
- package/Loader.js +0 -9
- package/Loader.production.js +0 -1
- package/Main.development.js +0 -410
- package/Main.js +0 -9
- package/Main.production.js +0 -1
- package/MainNav.development.js +0 -957
- package/MainNav.js +0 -9
- package/MainNav.production.js +0 -1
- package/ModalLayout.development.js +0 -895
- package/ModalLayout.js +0 -9
- package/ModalLayout.production.js +0 -1
- package/NumberInput.development.js +0 -733
- package/NumberInput.js +0 -9
- package/NumberInput.production.js +0 -1
- package/Pagination.development.js +0 -587
- package/Pagination.js +0 -9
- package/Pagination.production.js +0 -1
- package/Popover.development.js +0 -481
- package/Popover.js +0 -9
- package/Popover.production.js +0 -1
- package/Portal.development.js +0 -212
- package/Portal.js +0 -9
- package/Portal.production.js +0 -1
- package/ProgressBar.development.js +0 -273
- package/ProgressBar.js +0 -9
- package/ProgressBar.production.js +0 -1
- package/Radio.development.js +0 -518
- package/Radio.js +0 -9
- package/Radio.production.js +0 -1
- package/RawTable.development.js +0 -549
- package/RawTable.js +0 -9
- package/RawTable.production.js +0 -1
- package/Searchbar.development.js +0 -696
- package/Searchbar.js +0 -9
- package/Searchbar.production.js +0 -1
- package/Select.development.js +0 -1063
- package/Select.js +0 -9
- package/Select.production.js +0 -1
- package/SimpleMenu.development.js +0 -821
- package/SimpleMenu.js +0 -9
- package/SimpleMenu.production.js +0 -1
- package/Stack.development.js +0 -434
- package/Stack.js +0 -9
- package/Stack.production.js +0 -1
- package/Status.development.js +0 -494
- package/Status.js +0 -9
- package/Status.production.js +0 -1
- package/SubNav.development.js +0 -1123
- package/SubNav.js +0 -9
- package/SubNav.production.js +0 -1
- package/Switch.development.js +0 -434
- package/Switch.js +0 -9
- package/Switch.production.js +0 -1
- package/Table.development.js +0 -741
- package/Table.js +0 -9
- package/Table.production.js +0 -1
- package/Tabs.development.js +0 -590
- package/Tabs.js +0 -9
- package/Tabs.production.js +0 -1
- package/Tag.development.js +0 -494
- package/Tag.js +0 -9
- package/Tag.production.js +0 -1
- package/TextButton.development.js +0 -517
- package/TextButton.js +0 -9
- package/TextButton.production.js +0 -1
- package/TextInput.development.js +0 -662
- package/TextInput.js +0 -9
- package/TextInput.production.js +0 -1
- package/Textarea.development.js +0 -674
- package/Textarea.js +0 -9
- package/Textarea.production.js +0 -1
- package/ThemeProvider.development.js +0 -300
- package/ThemeProvider.js +0 -9
- package/ThemeProvider.production.js +0 -1
- package/TimePicker.development.js +0 -1098
- package/TimePicker.js +0 -9
- package/TimePicker.production.js +0 -1
- package/ToggleCheckbox.development.js +0 -542
- package/ToggleCheckbox.js +0 -9
- package/ToggleCheckbox.production.js +0 -1
- package/ToggleInput.development.js +0 -745
- package/ToggleInput.js +0 -9
- package/ToggleInput.production.js +0 -1
- package/Tooltip.development.js +0 -588
- package/Tooltip.js +0 -9
- package/Tooltip.production.js +0 -1
- package/Typography.development.js +0 -276
- package/Typography.js +0 -9
- package/Typography.production.js +0 -1
- package/VisuallyHidden.development.js +0 -146
- package/VisuallyHidden.js +0 -9
- package/VisuallyHidden.production.js +0 -1
- package/index.development.js +0 -4338
- package/index.js +0 -9
- package/index.production.js +0 -1
- package/themes.development.js +0 -254
- package/themes.js +0 -9
- package/themes.production.js +0 -1
- package/v2/Breadcrumbs.development.js +0 -906
- package/v2/Breadcrumbs.js +0 -9
- package/v2/Breadcrumbs.production.js +0 -1
- package/v2/Link.development.js +0 -505
- package/v2/Link.js +0 -9
- package/v2/Link.production.js +0 -1
- package/v2/LinkButton.development.js +0 -586
- package/v2/LinkButton.js +0 -9
- package/v2/LinkButton.production.js +0 -1
- package/v2/MainNav.development.js +0 -970
- package/v2/MainNav.js +0 -9
- package/v2/MainNav.production.js +0 -1
- package/v2/Pagination.development.js +0 -600
- package/v2/Pagination.js +0 -9
- package/v2/Pagination.production.js +0 -1
- package/v2/SimpleMenu.development.js +0 -834
- package/v2/SimpleMenu.js +0 -9
- package/v2/SimpleMenu.production.js +0 -1
- package/v2/SubNav.development.js +0 -1136
- package/v2/SubNav.js +0 -9
- package/v2/SubNav.production.js +0 -1
- package/v2/index.development.js +0 -1740
- package/v2/index.js +0 -9
- package/v2/index.production.js +0 -1
- package/v2/package.json +0 -81
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import l, { cloneElement as b } from "react";
|
|
2
|
+
import t from "prop-types";
|
|
3
|
+
import m from "styled-components";
|
|
4
|
+
import { Tooltip as v } from "../Tooltip/Tooltip.js";
|
|
5
|
+
import { BaseButton as y } from "../BaseButton/BaseButton.js";
|
|
6
|
+
import { Flex as k } from "../Flex/Flex.js";
|
|
7
|
+
import { VisuallyHidden as $ } from "../VisuallyHidden/VisuallyHidden.js";
|
|
8
|
+
const s = m(y)`
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
height: ${32 / 16}rem;
|
|
13
|
+
width: ${32 / 16}rem;
|
|
14
|
+
|
|
15
|
+
svg {
|
|
16
|
+
> g,
|
|
17
|
+
path {
|
|
18
|
+
fill: ${({ theme: r }) => r.colors.neutral500};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
&:hover {
|
|
22
|
+
svg {
|
|
23
|
+
> g,
|
|
24
|
+
path {
|
|
25
|
+
fill: ${({ theme: r }) => r.colors.neutral600};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
&:active {
|
|
30
|
+
svg {
|
|
31
|
+
> g,
|
|
32
|
+
path {
|
|
33
|
+
fill: ${({ theme: r }) => r.colors.neutral400};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&[aria-disabled='true'] {
|
|
38
|
+
background-color: ${({ theme: r }) => r.colors.neutral150};
|
|
39
|
+
svg {
|
|
40
|
+
path {
|
|
41
|
+
fill: ${({ theme: r }) => r.colors.neutral600};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
${({ noBorder: r }) => r ? "border: none;" : void 0}
|
|
46
|
+
`, T = m(k)`
|
|
47
|
+
& span:first-child button {
|
|
48
|
+
border-left: 1px solid ${({ theme: r }) => r.colors.neutral200};
|
|
49
|
+
border-radius: ${({ theme: r }) => `${r.borderRadius} 0 0 ${r.borderRadius}`};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
& span:last-child button {
|
|
53
|
+
border-radius: ${({ theme: r }) => `0 ${r.borderRadius} ${r.borderRadius} 0`};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
& ${s} {
|
|
57
|
+
border-radius: 0;
|
|
58
|
+
border-left: none;
|
|
59
|
+
|
|
60
|
+
svg {
|
|
61
|
+
path {
|
|
62
|
+
fill: ${({ theme: r }) => r.colors.neutral700};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:hover {
|
|
67
|
+
background-color: ${({ theme: r }) => r.colors.neutral100};
|
|
68
|
+
|
|
69
|
+
svg {
|
|
70
|
+
path {
|
|
71
|
+
fill: ${({ theme: r }) => r.colors.neutral800};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:active {
|
|
77
|
+
background-color: ${({ theme: r }) => r.colors.neutral150};
|
|
78
|
+
svg {
|
|
79
|
+
path {
|
|
80
|
+
fill: ${({ theme: r }) => r.colors.neutral900};
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&[aria-disabled='true'] {
|
|
86
|
+
svg {
|
|
87
|
+
path {
|
|
88
|
+
fill: ${({ theme: r }) => r.colors.neutral600};
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
`, d = l.forwardRef(
|
|
94
|
+
({ label: r, noBorder: n, children: e, icon: o, disabled: a, onClick: c, ["aria-label"]: g, ...u }, f) => {
|
|
95
|
+
const p = (h) => {
|
|
96
|
+
!a && c && c(h);
|
|
97
|
+
};
|
|
98
|
+
return r ? /* @__PURE__ */ l.createElement(v, {
|
|
99
|
+
label: r
|
|
100
|
+
}, /* @__PURE__ */ l.createElement(s, {
|
|
101
|
+
...u,
|
|
102
|
+
ref: f,
|
|
103
|
+
noBorder: n,
|
|
104
|
+
onClick: p,
|
|
105
|
+
"aria-disabled": a
|
|
106
|
+
}, /* @__PURE__ */ l.createElement($, {
|
|
107
|
+
as: "span"
|
|
108
|
+
}, r), b(o || e, {
|
|
109
|
+
"aria-hidden": !0,
|
|
110
|
+
focusable: !1
|
|
111
|
+
}))) : /* @__PURE__ */ l.createElement(s, {
|
|
112
|
+
...u,
|
|
113
|
+
ref: f,
|
|
114
|
+
noBorder: n,
|
|
115
|
+
onClick: p,
|
|
116
|
+
"aria-disabled": a
|
|
117
|
+
}, /* @__PURE__ */ l.createElement($, {
|
|
118
|
+
as: "span"
|
|
119
|
+
}, g), b(o || e, {
|
|
120
|
+
"aria-hidden": !0,
|
|
121
|
+
focusable: !1
|
|
122
|
+
}));
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
d.displayName = "IconButton";
|
|
126
|
+
d.defaultProps = {
|
|
127
|
+
label: void 0,
|
|
128
|
+
noBorder: !1,
|
|
129
|
+
disabled: !1,
|
|
130
|
+
onClick: void 0
|
|
131
|
+
};
|
|
132
|
+
const i = (r, n) => (e, o) => {
|
|
133
|
+
if (!e[o] && r.every((a) => !e[a]))
|
|
134
|
+
return new Error(`One of the following props is required: ${o}, ${r.join(", ")}`);
|
|
135
|
+
t.checkPropTypes({ [o]: t[n] }, e, "prop", "IconButton");
|
|
136
|
+
};
|
|
137
|
+
d.propTypes = {
|
|
138
|
+
["aria-label"]: i(["label"], "string"),
|
|
139
|
+
children: i(["icon"], "node"),
|
|
140
|
+
disabled: t.bool,
|
|
141
|
+
icon: i(["children"], "node"),
|
|
142
|
+
label: i(["aria-label"], "string"),
|
|
143
|
+
noBorder: t.bool,
|
|
144
|
+
onClick: t.func
|
|
145
|
+
};
|
|
146
|
+
export {
|
|
147
|
+
d as IconButton,
|
|
148
|
+
T as IconButtonGroup
|
|
149
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./IconButton.cjs");exports.IconButton=o.IconButton;exports.IconButtonGroup=o.IconButtonGroup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const p=require("react"),K=require("prop-types"),g=require("../Box/Box.cjs"),r=require("../helpers/keyboardKeys.cjs"),y=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},v=y(p),f=y(K),d=({tagName:t,attributeName:i,...b})=>{const a=()=>{const e=document.activeElement;return t?e.tagName.toLowerCase()===t:e.hasAttribute(i)},c=e=>t?e.querySelectorAll(t):e.querySelectorAll(`[${i}]`),m=e=>{switch(e.key){case r.KeyboardKeys.RIGHT:case r.KeyboardKeys.DOWN:{if(a()){e.preventDefault();const n=document.activeElement,o=[...c(e.currentTarget)],s=o.findIndex(u=>u===n),l=s+1<o.length?s+1:0;o[l].focus()}break}case r.KeyboardKeys.LEFT:case r.KeyboardKeys.UP:{if(a()){e.preventDefault();const n=document.activeElement,o=[...c(e.currentTarget)],s=o.findIndex(u=>u===n),l=s-1>-1?s-1:o.length-1;o[l].focus()}break}case r.KeyboardKeys.HOME:{a()&&(e.preventDefault(),c(e.currentTarget).item(0).focus());break}case r.KeyboardKeys.END:{if(a()){e.preventDefault();const n=c(e.currentTarget);n.item(n.length-1).focus()}break}}};return v.default.createElement(g.Box,{onKeyDown:m,...b})};d.defaultProps={attributeName:void 0,tagName:void 0};d.propTypes={attributeName:f.default.string,tagName:f.default.string};exports.KeyboardNavigable=d;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import E from "react";
|
|
2
|
+
import i from "prop-types";
|
|
3
|
+
import { Box as y } from "../Box/Box.js";
|
|
4
|
+
import { KeyboardKeys as r } from "../helpers/keyboardKeys.js";
|
|
5
|
+
const d = ({ tagName: c, attributeName: f, ...m }) => {
|
|
6
|
+
const s = () => {
|
|
7
|
+
const e = document.activeElement;
|
|
8
|
+
return c ? e.tagName.toLowerCase() === c : e.hasAttribute(f);
|
|
9
|
+
}, a = (e) => c ? e.querySelectorAll(c) : e.querySelectorAll(`[${f}]`), p = (e) => {
|
|
10
|
+
switch (e.key) {
|
|
11
|
+
case r.RIGHT:
|
|
12
|
+
case r.DOWN: {
|
|
13
|
+
if (s()) {
|
|
14
|
+
e.preventDefault();
|
|
15
|
+
const t = document.activeElement, n = [...a(e.currentTarget)], o = n.findIndex((u) => u === t), l = o + 1 < n.length ? o + 1 : 0;
|
|
16
|
+
n[l].focus();
|
|
17
|
+
}
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
case r.LEFT:
|
|
21
|
+
case r.UP: {
|
|
22
|
+
if (s()) {
|
|
23
|
+
e.preventDefault();
|
|
24
|
+
const t = document.activeElement, n = [...a(e.currentTarget)], o = n.findIndex((u) => u === t), l = o - 1 > -1 ? o - 1 : n.length - 1;
|
|
25
|
+
n[l].focus();
|
|
26
|
+
}
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
case r.HOME: {
|
|
30
|
+
s() && (e.preventDefault(), a(e.currentTarget).item(0).focus());
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
case r.END: {
|
|
34
|
+
if (s()) {
|
|
35
|
+
e.preventDefault();
|
|
36
|
+
const t = a(e.currentTarget);
|
|
37
|
+
t.item(t.length - 1).focus();
|
|
38
|
+
}
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
return /* @__PURE__ */ E.createElement(y, {
|
|
44
|
+
onKeyDown: p,
|
|
45
|
+
...m
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
d.defaultProps = {
|
|
49
|
+
attributeName: void 0,
|
|
50
|
+
tagName: void 0
|
|
51
|
+
};
|
|
52
|
+
d.propTypes = {
|
|
53
|
+
attributeName: i.string,
|
|
54
|
+
tagName: i.string
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
d as KeyboardNavigable
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./KeyboardNavigable.cjs");exports.KeyboardNavigable=e.KeyboardNavigable;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react"),i=require("prop-types"),f=require("styled-components"),n=require("../Box/Box.cjs"),s=require("../Flex/Flex.cjs"),l=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=l(d),r=l(i),c=l(f),u=c.default(s.Flex)`
|
|
2
|
+
& > * + * {
|
|
3
|
+
margin-left: ${({theme:e})=>e.spaces[2]};
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
margin-left: ${({pullRight:e})=>e?"auto":void 0};
|
|
7
|
+
`,p=c.default(u)`
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
`,a=({startActions:e,endActions:o})=>e||o?t.default.createElement(n.Box,{paddingLeft:10,paddingRight:10},t.default.createElement(n.Box,{paddingBottom:4},t.default.createElement(s.Flex,{justifyContent:"space-between",alignItems:"flex-start"},e&&t.default.createElement(u,{wrap:"wrap"},e),o&&t.default.createElement(p,{pullRight:!0},o)))):null;a.defaultProps={endActions:void 0,startActions:void 0};a.propTypes={endActions:r.default.node,startActions:r.default.node};exports.ActionLayout=a;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
import r from "prop-types";
|
|
3
|
+
import a from "styled-components";
|
|
4
|
+
import { Box as n } from "../Box/Box.js";
|
|
5
|
+
import { Flex as i } from "../Flex/Flex.js";
|
|
6
|
+
const l = a(i)`
|
|
7
|
+
& > * + * {
|
|
8
|
+
margin-left: ${({ theme: t }) => t.spaces[2]};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
margin-left: ${({ pullRight: t }) => t ? "auto" : void 0};
|
|
12
|
+
`, m = a(l)`
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
`, p = ({ startActions: t, endActions: o }) => t || o ? /* @__PURE__ */ e.createElement(n, {
|
|
15
|
+
paddingLeft: 10,
|
|
16
|
+
paddingRight: 10
|
|
17
|
+
}, /* @__PURE__ */ e.createElement(n, {
|
|
18
|
+
paddingBottom: 4
|
|
19
|
+
}, /* @__PURE__ */ e.createElement(i, {
|
|
20
|
+
justifyContent: "space-between",
|
|
21
|
+
alignItems: "flex-start"
|
|
22
|
+
}, t && /* @__PURE__ */ e.createElement(l, {
|
|
23
|
+
wrap: "wrap"
|
|
24
|
+
}, t), o && /* @__PURE__ */ e.createElement(m, {
|
|
25
|
+
pullRight: !0
|
|
26
|
+
}, o)))) : null;
|
|
27
|
+
p.defaultProps = {
|
|
28
|
+
endActions: void 0,
|
|
29
|
+
startActions: void 0
|
|
30
|
+
};
|
|
31
|
+
p.propTypes = {
|
|
32
|
+
endActions: r.node,
|
|
33
|
+
startActions: r.node
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
p as ActionLayout
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react"),n=require("prop-types"),u=require("../Box/Box.cjs"),t=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},a=t(r),c=t(n),o=({children:e})=>a.default.createElement(u.Box,{paddingLeft:10,paddingRight:10},e);o.propTypes={children:c.default.node.isRequired};exports.ContentLayout=o;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import t from "react";
|
|
2
|
+
import o from "prop-types";
|
|
3
|
+
import { Box as r } from "../Box/Box.js";
|
|
4
|
+
const p = ({ children: e }) => /* @__PURE__ */ t.createElement(r, {
|
|
5
|
+
paddingLeft: 10,
|
|
6
|
+
paddingRight: 10
|
|
7
|
+
}, e);
|
|
8
|
+
p.propTypes = {
|
|
9
|
+
children: o.node.isRequired
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
p as ContentLayout
|
|
13
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("prop-types"),s=require("styled-components"),t=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},d=t(r),a=t(s),o=a.default.div`
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
4
|
+
grid-gap: ${({theme:e})=>e.spaces[4]};
|
|
5
|
+
`;o.propTypes={children:d.default.node.isRequired};exports.GridLayout=o;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import p from "prop-types";
|
|
2
|
+
import e from "styled-components";
|
|
3
|
+
const i = e.div`
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
6
|
+
grid-gap: ${({ theme: r }) => r.spaces[4]};
|
|
7
|
+
`;
|
|
8
|
+
i.propTypes = {
|
|
9
|
+
children: p.node.isRequired
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
i as GridLayout
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react"),E=require("styled-components"),b=require("prop-types"),s=require("../Typography/Typography.cjs"),d=require("../Box/Box.cjs"),i=require("../Flex/Flex.cjs"),v=require("../helpers/useElementOnScreen.cjs"),B=require("../helpers/useResizeObserver.cjs"),p=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=p(c),R=p(E),a=p(b),T=()=>{const e=c.useRef(null),[l,r]=c.useState(null),[n,o]=v.useElementOnScreen({root:null,rootMargin:"0px",threshold:0});return B.useResizeObserver(n,()=>{n.current&&r(n.current.getBoundingClientRect())}),c.useEffect(()=>{e.current&&r(e.current.getBoundingClientRect())},[e]),{containerRef:n,isVisible:o,baseHeaderLayoutRef:e,headerSize:l}},f=e=>{const{containerRef:l,isVisible:r,baseHeaderLayoutRef:n,headerSize:o}=T();return t.default.createElement(t.default.Fragment,null,t.default.createElement("div",{style:{height:o?.height},ref:l},r&&t.default.createElement(u,{ref:n,...e})),!r&&t.default.createElement(u,{...e,sticky:!0,width:o?.width}))};f.displayName="HeaderLayout";const L=R.default(d.Box)`
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 0;
|
|
4
|
+
right: 0;
|
|
5
|
+
width: ${e=>e.width}px;
|
|
6
|
+
z-index: 4;
|
|
7
|
+
box-shadow: ${({theme:e})=>e.shadows.tableShadow};
|
|
8
|
+
`,u=t.default.forwardRef(({navigationAction:e,primaryAction:l,secondaryAction:r,subtitle:n,title:o,sticky:h,width:m,...y},x)=>{const g=typeof n=="string";return h?t.default.createElement(L,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,background:"neutral0",width:m,"data-strapi-header-sticky":!0},t.default.createElement(i.Flex,{justifyContent:"space-between"},t.default.createElement(i.Flex,null,e&&t.default.createElement(d.Box,{paddingRight:3},e),t.default.createElement(d.Box,null,t.default.createElement(s.Typography,{variant:"beta",as:"h1",...y},o),g?t.default.createElement(s.Typography,{variant:"pi",textColor:"neutral600"},n):n),r?t.default.createElement(d.Box,{paddingLeft:4},r):null),t.default.createElement(i.Flex,null,l?t.default.createElement(d.Box,{paddingLeft:2},l):void 0))):t.default.createElement(d.Box,{ref:x,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:e?6:8,background:"neutral100","data-strapi-header":!0},e?t.default.createElement(d.Box,{paddingBottom:2},e):null,t.default.createElement(i.Flex,{justifyContent:"space-between"},t.default.createElement(i.Flex,null,t.default.createElement(s.Typography,{as:"h1",variant:"alpha",...y},o),r?t.default.createElement(d.Box,{paddingLeft:4},r):null),l),g?t.default.createElement(s.Typography,{variant:"epsilon",textColor:"neutral600",as:"p"},n):n)});u.displayName="BaseHeaderLayout";u.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0,sticky:!1,width:void 0};u.propTypes={navigationAction:a.default.node,primaryAction:a.default.node,secondaryAction:a.default.node,sticky:a.default.bool,subtitle:a.default.oneOfType([a.default.string,a.default.node]),title:a.default.string.isRequired,width:a.default.number};f.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0};f.propTypes={navigationAction:a.default.node,primaryAction:a.default.node,secondaryAction:a.default.node,subtitle:a.default.oneOfType([a.default.string,a.default.node]),title:a.default.string.isRequired};exports.BaseHeaderLayout=u;exports.HeaderLayout=f;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import e, { useRef as h, useState as E, useEffect as v } from "react";
|
|
2
|
+
import b from "styled-components";
|
|
3
|
+
import n from "prop-types";
|
|
4
|
+
import { Typography as c } from "../Typography/Typography.js";
|
|
5
|
+
import { Box as i } from "../Box/Box.js";
|
|
6
|
+
import { Flex as l } from "../Flex/Flex.js";
|
|
7
|
+
import { useElementOnScreen as R } from "../helpers/useElementOnScreen.js";
|
|
8
|
+
import { useResizeObserver as w } from "../helpers/useResizeObserver.js";
|
|
9
|
+
const x = () => {
|
|
10
|
+
const t = h(null), [o, a] = E(null), [r, d] = R({
|
|
11
|
+
root: null,
|
|
12
|
+
rootMargin: "0px",
|
|
13
|
+
threshold: 0
|
|
14
|
+
});
|
|
15
|
+
return w(r, () => {
|
|
16
|
+
r.current && a(r.current.getBoundingClientRect());
|
|
17
|
+
}), v(() => {
|
|
18
|
+
t.current && a(t.current.getBoundingClientRect());
|
|
19
|
+
}, [t]), {
|
|
20
|
+
containerRef: r,
|
|
21
|
+
isVisible: d,
|
|
22
|
+
baseHeaderLayoutRef: t,
|
|
23
|
+
headerSize: o
|
|
24
|
+
};
|
|
25
|
+
}, p = (t) => {
|
|
26
|
+
const { containerRef: o, isVisible: a, baseHeaderLayoutRef: r, headerSize: d } = x();
|
|
27
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
|
|
28
|
+
style: { height: d?.height },
|
|
29
|
+
ref: o
|
|
30
|
+
}, a && /* @__PURE__ */ e.createElement(s, {
|
|
31
|
+
ref: r,
|
|
32
|
+
...t
|
|
33
|
+
})), !a && /* @__PURE__ */ e.createElement(s, {
|
|
34
|
+
...t,
|
|
35
|
+
sticky: !0,
|
|
36
|
+
width: d?.width
|
|
37
|
+
}));
|
|
38
|
+
};
|
|
39
|
+
p.displayName = "HeaderLayout";
|
|
40
|
+
const L = b(i)`
|
|
41
|
+
position: fixed;
|
|
42
|
+
top: 0;
|
|
43
|
+
right: 0;
|
|
44
|
+
width: ${(t) => t.width}px;
|
|
45
|
+
z-index: 4;
|
|
46
|
+
box-shadow: ${({ theme: t }) => t.shadows.tableShadow};
|
|
47
|
+
`, s = e.forwardRef(
|
|
48
|
+
({ navigationAction: t, primaryAction: o, secondaryAction: a, subtitle: r, title: d, sticky: f, width: g, ...u }, y) => {
|
|
49
|
+
const m = typeof r == "string";
|
|
50
|
+
return f ? /* @__PURE__ */ e.createElement(L, {
|
|
51
|
+
paddingLeft: 6,
|
|
52
|
+
paddingRight: 6,
|
|
53
|
+
paddingTop: 3,
|
|
54
|
+
paddingBottom: 3,
|
|
55
|
+
background: "neutral0",
|
|
56
|
+
width: g,
|
|
57
|
+
"data-strapi-header-sticky": !0
|
|
58
|
+
}, /* @__PURE__ */ e.createElement(l, {
|
|
59
|
+
justifyContent: "space-between"
|
|
60
|
+
}, /* @__PURE__ */ e.createElement(l, null, t && /* @__PURE__ */ e.createElement(i, {
|
|
61
|
+
paddingRight: 3
|
|
62
|
+
}, t), /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(c, {
|
|
63
|
+
variant: "beta",
|
|
64
|
+
as: "h1",
|
|
65
|
+
...u
|
|
66
|
+
}, d), m ? /* @__PURE__ */ e.createElement(c, {
|
|
67
|
+
variant: "pi",
|
|
68
|
+
textColor: "neutral600"
|
|
69
|
+
}, r) : r), a ? /* @__PURE__ */ e.createElement(i, {
|
|
70
|
+
paddingLeft: 4
|
|
71
|
+
}, a) : null), /* @__PURE__ */ e.createElement(l, null, o ? /* @__PURE__ */ e.createElement(i, {
|
|
72
|
+
paddingLeft: 2
|
|
73
|
+
}, o) : void 0))) : /* @__PURE__ */ e.createElement(i, {
|
|
74
|
+
ref: y,
|
|
75
|
+
paddingLeft: 10,
|
|
76
|
+
paddingRight: 10,
|
|
77
|
+
paddingBottom: 8,
|
|
78
|
+
paddingTop: t ? 6 : 8,
|
|
79
|
+
background: "neutral100",
|
|
80
|
+
"data-strapi-header": !0
|
|
81
|
+
}, t ? /* @__PURE__ */ e.createElement(i, {
|
|
82
|
+
paddingBottom: 2
|
|
83
|
+
}, t) : null, /* @__PURE__ */ e.createElement(l, {
|
|
84
|
+
justifyContent: "space-between"
|
|
85
|
+
}, /* @__PURE__ */ e.createElement(l, null, /* @__PURE__ */ e.createElement(c, {
|
|
86
|
+
as: "h1",
|
|
87
|
+
variant: "alpha",
|
|
88
|
+
...u
|
|
89
|
+
}, d), a ? /* @__PURE__ */ e.createElement(i, {
|
|
90
|
+
paddingLeft: 4
|
|
91
|
+
}, a) : null), o), m ? /* @__PURE__ */ e.createElement(c, {
|
|
92
|
+
variant: "epsilon",
|
|
93
|
+
textColor: "neutral600",
|
|
94
|
+
as: "p"
|
|
95
|
+
}, r) : r);
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
s.displayName = "BaseHeaderLayout";
|
|
99
|
+
s.defaultProps = {
|
|
100
|
+
navigationAction: void 0,
|
|
101
|
+
primaryAction: void 0,
|
|
102
|
+
secondaryAction: void 0,
|
|
103
|
+
subtitle: void 0,
|
|
104
|
+
sticky: !1,
|
|
105
|
+
width: void 0
|
|
106
|
+
};
|
|
107
|
+
s.propTypes = {
|
|
108
|
+
navigationAction: n.node,
|
|
109
|
+
primaryAction: n.node,
|
|
110
|
+
secondaryAction: n.node,
|
|
111
|
+
sticky: n.bool,
|
|
112
|
+
subtitle: n.oneOfType([n.string, n.node]),
|
|
113
|
+
title: n.string.isRequired,
|
|
114
|
+
width: n.number
|
|
115
|
+
};
|
|
116
|
+
p.defaultProps = {
|
|
117
|
+
navigationAction: void 0,
|
|
118
|
+
primaryAction: void 0,
|
|
119
|
+
secondaryAction: void 0,
|
|
120
|
+
subtitle: void 0
|
|
121
|
+
};
|
|
122
|
+
p.propTypes = {
|
|
123
|
+
navigationAction: n.node,
|
|
124
|
+
primaryAction: n.node,
|
|
125
|
+
secondaryAction: n.node,
|
|
126
|
+
subtitle: n.oneOfType([n.string, n.node]),
|
|
127
|
+
title: n.string.isRequired
|
|
128
|
+
};
|
|
129
|
+
export {
|
|
130
|
+
s as BaseHeaderLayout,
|
|
131
|
+
p as HeaderLayout
|
|
132
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react"),u=require("prop-types"),c=require("styled-components"),d=require("../Box/Box.cjs"),t=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},r=t(s),a=t(u),l=t(c),i=l.default(d.Box)`
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: ${({hasSideNav:e})=>e?"auto 1fr":"1fr"};
|
|
4
|
+
`,f=l.default(d.Box)`
|
|
5
|
+
overflow-x: hidden;
|
|
6
|
+
`,o=({sideNav:e,children:n})=>r.default.createElement(i,{hasSideNav:Boolean(e)},e,r.default.createElement(f,{paddingBottom:10},n));o.defaultProps={sideNav:void 0};o.propTypes={children:a.default.node.isRequired,sideNav:a.default.node};exports.Layout=o;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import o from "react";
|
|
2
|
+
import r from "prop-types";
|
|
3
|
+
import t from "styled-components";
|
|
4
|
+
import { Box as d } from "../Box/Box.js";
|
|
5
|
+
const a = t(d)`
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: ${({ hasSideNav: e }) => e ? "auto 1fr" : "1fr"};
|
|
8
|
+
`, m = t(d)`
|
|
9
|
+
overflow-x: hidden;
|
|
10
|
+
`, i = ({ sideNav: e, children: n }) => /* @__PURE__ */ o.createElement(a, {
|
|
11
|
+
hasSideNav: Boolean(e)
|
|
12
|
+
}, e, /* @__PURE__ */ o.createElement(m, {
|
|
13
|
+
paddingBottom: 10
|
|
14
|
+
}, n));
|
|
15
|
+
i.defaultProps = {
|
|
16
|
+
sideNav: void 0
|
|
17
|
+
};
|
|
18
|
+
i.propTypes = {
|
|
19
|
+
children: r.node.isRequired,
|
|
20
|
+
sideNav: r.node
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
i as Layout
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react"),c=require("prop-types"),r=require("../Box/Box.cjs"),i=require("../Grid/Grid.cjs"),o=require("../Grid/GridItem.cjs"),d=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=d(l),a=d(c),u=({startCol:e,endCol:s})=>t.default.createElement(i.Grid,{gap:4},t.default.createElement(o.GridItem,{col:9,s:12},t.default.createElement(r.Box,{hasRadius:!0,background:"neutral0",shadow:"tableShadow"},e)),t.default.createElement(o.GridItem,{col:3,s:12},t.default.createElement(r.Box,{hasRadius:!0,background:"neutral0",shadow:"tableShadow"},s)));u.propTypes={endCol:a.default.node.isRequired,startCol:a.default.node.isRequired};exports.TwoColsLayout=u;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
import r from "prop-types";
|
|
3
|
+
import { Box as o } from "../Box/Box.js";
|
|
4
|
+
import { Grid as m } from "../Grid/Grid.js";
|
|
5
|
+
import { GridItem as t } from "../Grid/GridItem.js";
|
|
6
|
+
const l = ({ startCol: a, endCol: d }) => /* @__PURE__ */ e.createElement(m, {
|
|
7
|
+
gap: 4
|
|
8
|
+
}, /* @__PURE__ */ e.createElement(t, {
|
|
9
|
+
col: 9,
|
|
10
|
+
s: 12
|
|
11
|
+
}, /* @__PURE__ */ e.createElement(o, {
|
|
12
|
+
hasRadius: !0,
|
|
13
|
+
background: "neutral0",
|
|
14
|
+
shadow: "tableShadow"
|
|
15
|
+
}, a)), /* @__PURE__ */ e.createElement(t, {
|
|
16
|
+
col: 3,
|
|
17
|
+
s: 12
|
|
18
|
+
}, /* @__PURE__ */ e.createElement(o, {
|
|
19
|
+
hasRadius: !0,
|
|
20
|
+
background: "neutral0",
|
|
21
|
+
shadow: "tableShadow"
|
|
22
|
+
}, d)));
|
|
23
|
+
l.propTypes = {
|
|
24
|
+
endCol: r.node.isRequired,
|
|
25
|
+
startCol: r.node.isRequired
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
l as TwoColsLayout
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./Layout.cjs"),e=require("./ActionLayout.cjs"),u=require("./ContentLayout.cjs"),o=require("./HeaderLayout.cjs"),a=require("./TwoColsLayout.cjs"),r=require("./GridLayout.cjs");exports.Layout=t.Layout;exports.ActionLayout=e.ActionLayout;exports.ContentLayout=u.ContentLayout;exports.BaseHeaderLayout=o.BaseHeaderLayout;exports.HeaderLayout=o.HeaderLayout;exports.TwoColsLayout=a.TwoColsLayout;exports.GridLayout=r.GridLayout;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Layout as r } from "./Layout.js";
|
|
2
|
+
import { ActionLayout as a } from "./ActionLayout.js";
|
|
3
|
+
import { ContentLayout as y } from "./ContentLayout.js";
|
|
4
|
+
import { BaseHeaderLayout as f, HeaderLayout as m } from "./HeaderLayout.js";
|
|
5
|
+
import { TwoColsLayout as x } from "./TwoColsLayout.js";
|
|
6
|
+
import { GridLayout as n } from "./GridLayout.js";
|
|
7
|
+
export {
|
|
8
|
+
a as ActionLayout,
|
|
9
|
+
f as BaseHeaderLayout,
|
|
10
|
+
y as ContentLayout,
|
|
11
|
+
n as GridLayout,
|
|
12
|
+
m as HeaderLayout,
|
|
13
|
+
r as Layout,
|
|
14
|
+
x as TwoColsLayout
|
|
15
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react"),h=require("prop-types"),v=require("styled-components"),_=require("@strapi/icons/ExternalLink"),E=require("react-router-dom"),u=require("../Typography/Typography.cjs"),L=require("../Box/Box.cjs"),x=require("../themes/utils.cjs"),a=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=a(g),n=a(h),c=a(v),b=a(_),k=c.default.a`
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
text-decoration: none;
|
|
5
|
+
pointer-events: ${({disabled:e})=>e?"none":void 0};
|
|
6
|
+
color: ${({disabled:e,theme:r})=>e?r.colors.neutral600:r.colors.primary600};
|
|
7
|
+
|
|
8
|
+
svg path {
|
|
9
|
+
transition: fill 150ms ease-out;
|
|
10
|
+
fill: currentColor;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
svg {
|
|
14
|
+
font-size: ${10/16}rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
${u.Typography} {
|
|
18
|
+
transition: color 150ms ease-out;
|
|
19
|
+
color: currentColor;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
color: ${({theme:e})=>e.colors.primary500};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:active {
|
|
27
|
+
color: ${({theme:e})=>e.colors.primary700};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
${x.buttonFocusStyle};
|
|
31
|
+
`,i=c.default(L.Box)`
|
|
32
|
+
display: flex;
|
|
33
|
+
`,l=({href:e,to:r,children:f,disabled:o,startIcon:s,endIcon:d,...p})=>{const y=e?"_blank":void 0,m=e?"noreferrer noopener":void 0;return t.default.createElement(k,{as:r&&!o?E.NavLink:"a",target:y,rel:m,to:o?void 0:r,href:o?"#":e,disabled:o,...p},s&&t.default.createElement(i,{as:"span","aria-hidden":!0,paddingRight:2},s),t.default.createElement(u.Typography,null,f),d&&!e&&t.default.createElement(i,{as:"span","aria-hidden":!0,paddingLeft:2},d),e&&t.default.createElement(i,{as:"span","aria-hidden":!0,paddingLeft:2},t.default.createElement(b.default,null)))};l.displayName="Link";l.defaultProps={href:void 0,to:void 0,disabled:!1};l.propTypes={children:n.default.node.isRequired,disabled:n.default.bool,endIcon:n.default.element,href:e=>{if(!e.disabled&&!e.to&&!e.href)return new Error("href must be defined")},startIcon:n.default.element,to:e=>{if(!e.disabled&&!e.href&&!e.to)return new Error("to must be defined")}};exports.Link=l;
|