@strapi/design-system 0.0.0-599b75fb-test
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 +7 -0
- package/dist/Accordion/Accordion.cjs +23 -0
- package/dist/Accordion/Accordion.js +96 -0
- package/dist/Accordion/AccordionContent.cjs +1 -0
- package/dist/Accordion/AccordionContent.js +26 -0
- package/dist/Accordion/AccordionContext.cjs +1 -0
- package/dist/Accordion/AccordionContext.js +12 -0
- package/dist/Accordion/AccordionGroup.cjs +47 -0
- package/dist/Accordion/AccordionGroup.js +130 -0
- package/dist/Accordion/AccordionToggle.cjs +28 -0
- package/dist/Accordion/AccordionToggle.js +143 -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 +118 -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 +18 -0
- package/dist/Avatar/Avatar.js +83 -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 +4 -0
- package/dist/Badge/Badge.js +43 -0
- package/dist/Badge/index.cjs +1 -0
- package/dist/Badge/index.js +4 -0
- package/dist/BaseButton/BaseButton.cjs +17 -0
- package/dist/BaseButton/BaseButton.js +50 -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 +123 -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 +24 -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 +84 -0
- package/dist/BaseRadio/RadioGroup.cjs +1 -0
- package/dist/BaseRadio/RadioGroup.js +37 -0
- package/dist/BaseRadio/context.cjs +1 -0
- package/dist/BaseRadio/context.js +10 -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 +79 -0
- package/dist/Box/Box.js +221 -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 +63 -0
- package/dist/Breadcrumbs/index.cjs +1 -0
- package/dist/Breadcrumbs/index.js +5 -0
- package/dist/Button/Button.cjs +31 -0
- package/dist/Button/Button.js +98 -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 +20 -0
- package/dist/Card/CardAsset.cjs +19 -0
- package/dist/Card/CardAsset.js +48 -0
- package/dist/Card/CardBadge.cjs +6 -0
- package/dist/Card/CardBadge.js +18 -0
- package/dist/Card/CardBody.cjs +1 -0
- package/dist/Card/CardBody.js +16 -0
- package/dist/Card/CardCheckbox.cjs +1 -0
- package/dist/Card/CardCheckbox.js +19 -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 +8 -0
- package/dist/Card/CardHeader.cjs +3 -0
- package/dist/Card/CardHeader.js +15 -0
- package/dist/Card/CardTimer.cjs +1 -0
- package/dist/Card/CardTimer.js +25 -0
- package/dist/Card/CardTitle.cjs +1 -0
- package/dist/Card/CardTitle.js +25 -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 +85 -0
- package/dist/CarouselInput/CarouselActions.cjs +1 -0
- package/dist/CarouselInput/CarouselActions.js +18 -0
- package/dist/CarouselInput/CarouselImage.cjs +4 -0
- package/dist/CarouselInput/CarouselImage.js +26 -0
- package/dist/CarouselInput/CarouselInput.cjs +1 -0
- package/dist/CarouselInput/CarouselInput.js +75 -0
- package/dist/CarouselInput/CarouselSlide.cjs +3 -0
- package/dist/CarouselInput/CarouselSlide.js +30 -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 +45 -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 +287 -0
- package/dist/Combobox/ComboboxList.cjs +1 -0
- package/dist/Combobox/ComboboxList.js +8 -0
- package/dist/Combobox/ComboboxOption.cjs +1 -0
- package/dist/Combobox/ComboboxOption.js +31 -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 +8 -0
- package/dist/DatePicker/DatePicker.js +83 -0
- package/dist/DatePicker/DatePickerCalendar.cjs +1 -0
- package/dist/DatePicker/DatePickerCalendar.js +142 -0
- package/dist/DatePicker/DatePickerTd.cjs +19 -0
- package/dist/DatePicker/DatePickerTd.js +61 -0
- package/dist/DatePicker/DatePickerTh.cjs +9 -0
- package/dist/DatePicker/DatePickerTh.js +42 -0
- package/dist/DatePicker/compareDates.cjs +1 -0
- package/dist/DatePicker/compareDates.js +4 -0
- package/dist/DatePicker/components.cjs +33 -0
- package/dist/DatePicker/components.js +43 -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/DateTimePicker/DateTimePicker.cjs +1 -0
- package/dist/DateTimePicker/DateTimePicker.js +107 -0
- package/dist/DateTimePicker/index.cjs +1 -0
- package/dist/DateTimePicker/index.js +4 -0
- package/dist/Dialog/Dialog.cjs +11 -0
- package/dist/Dialog/Dialog.js +56 -0
- package/dist/Dialog/DialogBody.cjs +10 -0
- package/dist/Dialog/DialogBody.js +26 -0
- package/dist/Dialog/DialogFooter.cjs +9 -0
- package/dist/Dialog/DialogFooter.js +26 -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 +30 -0
- package/dist/DismissibleLayer/index.cjs +1 -0
- package/dist/DismissibleLayer/index.js +4 -0
- package/dist/Divider/Divider.cjs +7 -0
- package/dist/Divider/Divider.js +22 -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 +30 -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 +64 -0
- package/dist/Field/Field.cjs +1 -0
- package/dist/Field/Field.js +33 -0
- package/dist/Field/FieldAction.cjs +4 -0
- package/dist/Field/FieldAction.js +31 -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 +20 -0
- package/dist/Field/FieldHint.cjs +1 -0
- package/dist/Field/FieldHint.js +20 -0
- package/dist/Field/FieldInput.cjs +41 -0
- package/dist/Field/FieldInput.js +130 -0
- package/dist/Field/FieldLabel.cjs +12 -0
- package/dist/Field/FieldLabel.js +50 -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 +34 -0
- package/dist/Flex/index.cjs +1 -0
- package/dist/Flex/index.js +4 -0
- package/dist/FocusTrap/FocusTrap.cjs +1 -0
- package/dist/FocusTrap/FocusTrap.js +41 -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 +25 -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 +33 -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 +30 -0
- package/dist/Icon/index.cjs +1 -0
- package/dist/Icon/index.js +4 -0
- package/dist/IconButton/IconButton.cjs +81 -0
- package/dist/IconButton/IconButton.js +152 -0
- package/dist/IconButton/index.cjs +1 -0
- package/dist/IconButton/index.js +5 -0
- package/dist/JSONInput/JSONInput.cjs +1 -0
- package/dist/JSONInput/JSONInput.js +109 -0
- package/dist/JSONInput/JSONInputContainer.cjs +33 -0
- package/dist/JSONInput/JSONInputContainer.js +46 -0
- package/dist/JSONInput/index.cjs +1 -0
- package/dist/JSONInput/index.js +4 -0
- package/dist/JSONInput/utils/decorationExtension.cjs +1 -0
- package/dist/JSONInput/utils/decorationExtension.js +24 -0
- package/dist/KeyboardNavigable/KeyboardNavigable.cjs +1 -0
- package/dist/KeyboardNavigable/KeyboardNavigable.js +53 -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 +25 -0
- package/dist/Layout/ContentLayout.cjs +1 -0
- package/dist/Layout/ContentLayout.js +10 -0
- package/dist/Layout/GridLayout.cjs +5 -0
- package/dist/Layout/GridLayout.js +13 -0
- package/dist/Layout/HeaderLayout.cjs +3 -0
- package/dist/Layout/HeaderLayout.js +103 -0
- package/dist/Layout/Layout.cjs +6 -0
- package/dist/Layout/Layout.js +20 -0
- package/dist/Layout/TwoColsLayout.cjs +1 -0
- package/dist/Layout/TwoColsLayout.js +13 -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 +88 -0
- package/dist/Link/index.cjs +1 -0
- package/dist/Link/index.js +4 -0
- package/dist/LinkButton/LinkButton.cjs +15 -0
- package/dist/LinkButton/LinkButton.js +72 -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 +24 -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 +6 -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 +39 -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 +21 -0
- package/dist/Main/SkipToContent.cjs +11 -0
- package/dist/Main/SkipToContent.js +33 -0
- package/dist/Main/index.cjs +1 -0
- package/dist/Main/index.js +6 -0
- package/dist/MainNav/MainNav.cjs +4 -0
- package/dist/MainNav/MainNav.js +32 -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 +33 -0
- package/dist/MainNav/NavCondense.cjs +20 -0
- package/dist/MainNav/NavCondense.js +36 -0
- package/dist/MainNav/NavFooter.cjs +1 -0
- package/dist/MainNav/NavFooter.js +11 -0
- package/dist/MainNav/NavLink.cjs +69 -0
- package/dist/MainNav/NavLink.js +93 -0
- package/dist/MainNav/NavSection.cjs +1 -0
- package/dist/MainNav/NavSection.js +36 -0
- package/dist/MainNav/NavSections.cjs +4 -0
- package/dist/MainNav/NavSections.js +25 -0
- package/dist/MainNav/NavUser.cjs +3 -0
- package/dist/MainNav/NavUser.js +29 -0
- package/dist/MainNav/index.cjs +1 -0
- package/dist/MainNav/index.js +18 -0
- package/dist/ModalLayout/ModalBody.cjs +4 -0
- package/dist/ModalLayout/ModalBody.js +10 -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 +24 -0
- package/dist/ModalLayout/ModalHeader.cjs +4 -0
- package/dist/ModalLayout/ModalHeader.js +25 -0
- package/dist/ModalLayout/ModalLayout.cjs +6 -0
- package/dist/ModalLayout/ModalLayout.js +35 -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 +172 -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 +25 -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 +103 -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 +132 -0
- package/dist/Popover/index.cjs +1 -0
- package/dist/Popover/index.js +11 -0
- package/dist/Portal/Portal.cjs +1 -0
- package/dist/Portal/Portal.js +13 -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 +47 -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 +17 -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 +83 -0
- package/dist/RawTable/RawTable.cjs +1 -0
- package/dist/RawTable/RawTable.js +77 -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 +17 -0
- package/dist/RawTable/RawThead.cjs +1 -0
- package/dist/RawTable/RawThead.js +17 -0
- package/dist/RawTable/RawTr.cjs +1 -0
- package/dist/RawTable/RawTr.js +23 -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 +5 -0
- package/dist/Searchbar/Searchbar.cjs +29 -0
- package/dist/Searchbar/Searchbar.js +75 -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 +14 -0
- package/dist/Select/OptGroup.cjs +1 -0
- package/dist/Select/OptGroup.js +24 -0
- package/dist/Select/Option.cjs +45 -0
- package/dist/Select/Option.js +102 -0
- package/dist/Select/Select.cjs +3 -0
- package/dist/Select/Select.js +209 -0
- package/dist/Select/SelectButton.cjs +19 -0
- package/dist/Select/SelectButton.js +69 -0
- package/dist/Select/SelectList.cjs +1 -0
- package/dist/Select/SelectList.js +87 -0
- package/dist/Select/SelectTags.cjs +6 -0
- package/dist/Select/SelectTags.js +38 -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 +35 -0
- package/dist/SimpleMenu/SimpleMenu.js +179 -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 +56 -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 +48 -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 +22 -0
- package/dist/SubNav/SubNavHeader.cjs +4 -0
- package/dist/SubNav/SubNavHeader.js +76 -0
- package/dist/SubNav/SubNavLink.cjs +39 -0
- package/dist/SubNav/SubNavLink.js +75 -0
- package/dist/SubNav/SubNavLinkSection.cjs +19 -0
- package/dist/SubNav/SubNavLinkSection.js +44 -0
- package/dist/SubNav/SubNavSection.cjs +8 -0
- package/dist/SubNav/SubNavSection.js +57 -0
- package/dist/SubNav/SubNavSectionLabel.cjs +9 -0
- package/dist/SubNav/SubNavSectionLabel.js +44 -0
- package/dist/SubNav/SubNavSections.cjs +1 -0
- package/dist/SubNav/SubNavSections.js +21 -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 +79 -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 +34 -0
- package/dist/Table/TFooter.cjs +22 -0
- package/dist/Table/TFooter.js +36 -0
- package/dist/Table/Table.cjs +34 -0
- package/dist/Table/Table.js +66 -0
- package/dist/Table/Tbody.cjs +5 -0
- package/dist/Table/Tbody.js +11 -0
- package/dist/Table/Thead.cjs +3 -0
- package/dist/Table/Thead.js +9 -0
- package/dist/Table/Tr.cjs +20 -0
- package/dist/Table/Tr.js +26 -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 +39 -0
- package/dist/Tabs/TabPanels.cjs +1 -0
- package/dist/Tabs/TabPanels.js +24 -0
- package/dist/Tabs/Tabs.cjs +5 -0
- package/dist/Tabs/Tabs.js +126 -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 +17 -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 +83 -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 +52 -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 +58 -0
- package/dist/Textarea/TextareaInput.cjs +30 -0
- package/dist/Textarea/TextareaInput.js +70 -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 +187 -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 +10 -0
- package/dist/TimePicker/TimePicker.js +58 -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 +154 -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 +70 -0
- package/dist/ToggleInput/index.cjs +1 -0
- package/dist/ToggleInput/index.js +4 -0
- package/dist/Tooltip/Tooltip.cjs +5 -0
- package/dist/Tooltip/Tooltip.js +69 -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 +17 -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 +14 -0
- package/dist/Typography/Typography.js +40 -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/arrays.cjs +1 -0
- package/dist/helpers/arrays.js +6 -0
- package/dist/helpers/deprecations.cjs +1 -0
- package/dist/helpers/deprecations.js +13 -0
- package/dist/helpers/escapeSelector.cjs +1 -0
- package/dist/helpers/escapeSelector.js +4 -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 +1 -0
- package/dist/helpers/handleResponsiveValues.js +25 -0
- package/dist/helpers/keyboardKeys.cjs +1 -0
- package/dist/helpers/keyboardKeys.js +20 -0
- package/dist/helpers/objects.cjs +1 -0
- package/dist/helpers/objects.js +26 -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/theme.cjs +1 -0
- package/dist/helpers/theme.js +7 -0
- package/dist/helpers/useElementOnScreen.cjs +1 -0
- package/dist/helpers/useElementOnScreen.js +6 -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 +6 -0
- package/dist/helpers/useLockScroll.cjs +1 -0
- package/dist/helpers/useLockScroll.js +6 -0
- package/dist/helpers/usePrevious.cjs +1 -0
- package/dist/helpers/usePrevious.js +6 -0
- package/dist/helpers/useResizeObserver.cjs +1 -0
- package/dist/helpers/useResizeObserver.js +6 -0
- package/dist/hooks/useControllableState.cjs +1 -0
- package/dist/hooks/useControllableState.js +22 -0
- package/dist/hooks/useElementOnScreen.cjs +1 -0
- package/dist/hooks/useElementOnScreen.js +15 -0
- package/dist/hooks/useId.cjs +1 -0
- package/dist/hooks/useId.js +13 -0
- package/dist/hooks/useIntersection.cjs +1 -0
- package/dist/hooks/useIntersection.js +23 -0
- package/dist/hooks/useLockScroll.cjs +1 -0
- package/dist/hooks/useLockScroll.js +9 -0
- package/dist/hooks/usePrevious.cjs +1 -0
- package/dist/hooks/usePrevious.js +10 -0
- package/dist/hooks/useResizeObserver.cjs +1 -0
- package/dist/hooks/useResizeObserver.js +16 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +299 -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 +28 -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 +22 -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 +29 -0
- package/dist/v2/Breadcrumbs/Crumb.cjs +1 -0
- package/dist/v2/Breadcrumbs/Crumb.js +26 -0
- package/dist/v2/Breadcrumbs/CrumbLink.cjs +14 -0
- package/dist/v2/Breadcrumbs/CrumbLink.js +29 -0
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.cjs +8 -0
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.js +22 -0
- package/dist/v2/Breadcrumbs/Divider.cjs +1 -0
- package/dist/v2/Breadcrumbs/Divider.js +8 -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 +50 -0
- package/dist/v2/Link/index.cjs +1 -0
- package/dist/v2/Link/index.js +4 -0
- package/dist/v2/LinkButton/LinkButton.cjs +20 -0
- package/dist/v2/LinkButton/LinkButton.js +73 -0
- package/dist/v2/LinkButton/index.cjs +1 -0
- package/dist/v2/LinkButton/index.js +4 -0
- package/dist/v2/MainNav/MainNav.cjs +4 -0
- package/dist/v2/MainNav/MainNav.js +32 -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 +34 -0
- package/dist/v2/MainNav/NavCondense.cjs +20 -0
- package/dist/v2/MainNav/NavCondense.js +36 -0
- package/dist/v2/MainNav/NavFooter.cjs +1 -0
- package/dist/v2/MainNav/NavFooter.js +11 -0
- package/dist/v2/MainNav/NavLink.cjs +69 -0
- package/dist/v2/MainNav/NavLink.js +93 -0
- package/dist/v2/MainNav/NavSection.cjs +1 -0
- package/dist/v2/MainNav/NavSection.js +36 -0
- package/dist/v2/MainNav/NavSections.cjs +4 -0
- package/dist/v2/MainNav/NavSections.js +25 -0
- package/dist/v2/MainNav/NavUser.cjs +3 -0
- package/dist/v2/MainNav/NavUser.js +29 -0
- package/dist/v2/MainNav/index.cjs +1 -0
- package/dist/v2/MainNav/index.js +18 -0
- package/dist/v2/Pagination/Pagination.cjs +5 -0
- package/dist/v2/Pagination/Pagination.js +25 -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 +82 -0
- package/dist/v2/Pagination/index.cjs +1 -0
- package/dist/v2/Pagination/index.js +9 -0
- package/dist/v2/SimpleMenu/SimpleMenu.cjs +33 -0
- package/dist/v2/SimpleMenu/SimpleMenu.js +179 -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 +22 -0
- package/dist/v2/SubNav/SubNavHeader.cjs +4 -0
- package/dist/v2/SubNav/SubNavHeader.js +76 -0
- package/dist/v2/SubNav/SubNavLink.cjs +39 -0
- package/dist/v2/SubNav/SubNavLink.js +78 -0
- package/dist/v2/SubNav/SubNavLinkSection.cjs +19 -0
- package/dist/v2/SubNav/SubNavLinkSection.js +43 -0
- package/dist/v2/SubNav/SubNavSection.cjs +8 -0
- package/dist/v2/SubNav/SubNavSection.js +56 -0
- package/dist/v2/SubNav/SubNavSectionLabel.cjs +9 -0
- package/dist/v2/SubNav/SubNavSectionLabel.js +44 -0
- package/dist/v2/SubNav/SubNavSections.cjs +1 -0
- package/dist/v2/SubNav/SubNavSections.js +21 -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 +53 -0
- package/package.json +81 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { jsx as n, jsxs as O } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as l, useEffect as J } from "react";
|
|
3
|
+
import { json as j, jsonParseLinter as H } from "@codemirror/lang-json";
|
|
4
|
+
import { useCodeMirror as L } from "@uiw/react-codemirror";
|
|
5
|
+
import { JSONInputContainer as z } from "./JSONInputContainer.js";
|
|
6
|
+
import { markField as A, addMarks as B, lineHighlightMark as R, filterMarks as q } from "./utils/decorationExtension.js";
|
|
7
|
+
import { Field as y } from "../Field/Field.js";
|
|
8
|
+
import { FieldLabel as P } from "../Field/FieldLabel.js";
|
|
9
|
+
import "../Field/FieldInput.js";
|
|
10
|
+
import { FieldHint as V } from "../Field/FieldHint.js";
|
|
11
|
+
import { FieldError as D } from "../Field/FieldError.js";
|
|
12
|
+
import "../Field/FieldContext.js";
|
|
13
|
+
import "../Field/FieldAction.js";
|
|
14
|
+
import { Flex as G } from "../Flex/Flex.js";
|
|
15
|
+
const er = ({
|
|
16
|
+
label: a,
|
|
17
|
+
error: d,
|
|
18
|
+
hint: p,
|
|
19
|
+
labelAction: g,
|
|
20
|
+
value: E = "",
|
|
21
|
+
required: S = !1,
|
|
22
|
+
disabled: u = !1,
|
|
23
|
+
onChange: k = () => null,
|
|
24
|
+
...C
|
|
25
|
+
}) => {
|
|
26
|
+
const o = l(), i = l(), c = l(), F = Boolean(d), b = (r) => {
|
|
27
|
+
const t = i.current?.doc;
|
|
28
|
+
if (t) {
|
|
29
|
+
const {
|
|
30
|
+
text: s,
|
|
31
|
+
to: e
|
|
32
|
+
} = t.line(r), m = e - s.trimStart().length;
|
|
33
|
+
e > m && c.current?.dispatch({
|
|
34
|
+
effects: B.of([R.range(m, e)])
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}, x = () => {
|
|
38
|
+
const r = i.current?.doc;
|
|
39
|
+
if (r) {
|
|
40
|
+
const t = r.length || 0;
|
|
41
|
+
c.current?.dispatch({
|
|
42
|
+
effects: q.of((s, e) => e <= 0 || s >= t)
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}, f = ({
|
|
46
|
+
state: r,
|
|
47
|
+
view: t
|
|
48
|
+
}) => {
|
|
49
|
+
c.current = t, i.current = r, x();
|
|
50
|
+
const e = H()(t);
|
|
51
|
+
e.length && b(r.doc.lineAt(e[0].from).number);
|
|
52
|
+
}, M = (r, t) => {
|
|
53
|
+
f(t), k(r);
|
|
54
|
+
}, I = (r, t) => {
|
|
55
|
+
c.current = r, i.current = t, f({
|
|
56
|
+
view: r,
|
|
57
|
+
state: t
|
|
58
|
+
});
|
|
59
|
+
}, {
|
|
60
|
+
setContainer: h
|
|
61
|
+
} = L({
|
|
62
|
+
value: E,
|
|
63
|
+
onCreateEditor: I,
|
|
64
|
+
container: o.current,
|
|
65
|
+
editable: !u,
|
|
66
|
+
extensions: [j(), A],
|
|
67
|
+
onChange: M,
|
|
68
|
+
theme: "dark",
|
|
69
|
+
basicSetup: {
|
|
70
|
+
lineNumbers: !0,
|
|
71
|
+
bracketMatching: !0,
|
|
72
|
+
closeBrackets: !0,
|
|
73
|
+
indentOnInput: !0,
|
|
74
|
+
syntaxHighlighting: !0,
|
|
75
|
+
highlightSelectionMatches: !0,
|
|
76
|
+
tabSize: 2
|
|
77
|
+
}
|
|
78
|
+
}), N = () => {
|
|
79
|
+
u || o.current?.children[0].children[1].children[1]?.focus();
|
|
80
|
+
};
|
|
81
|
+
return J(() => {
|
|
82
|
+
const r = o.current;
|
|
83
|
+
r && h(r);
|
|
84
|
+
}, [h]), n(y, {
|
|
85
|
+
error: d,
|
|
86
|
+
hint: p,
|
|
87
|
+
required: S,
|
|
88
|
+
children: O(G, {
|
|
89
|
+
direction: "column",
|
|
90
|
+
alignItems: "stretch",
|
|
91
|
+
gap: 1,
|
|
92
|
+
children: [a && n(P, {
|
|
93
|
+
onClick: N,
|
|
94
|
+
action: g,
|
|
95
|
+
children: a
|
|
96
|
+
}), n(z, {
|
|
97
|
+
ref: o,
|
|
98
|
+
hasError: F,
|
|
99
|
+
alignItems: "stretch",
|
|
100
|
+
fontSize: 2,
|
|
101
|
+
hasRadius: !0,
|
|
102
|
+
...C
|
|
103
|
+
}), n(D, {}), n(V, {})]
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
export {
|
|
108
|
+
er as JSONInput
|
|
109
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("styled-components"),r=require("../Flex/Flex.cjs"),s=require("../themes/utils.cjs"),l=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},c=l(o),n=c.default(r.Flex)`
|
|
2
|
+
line-height: ${({theme:e})=>e.lineHeights[2]};
|
|
3
|
+
|
|
4
|
+
.cm-editor {
|
|
5
|
+
/**
|
|
6
|
+
* Hard coded since the color is the same between themes,
|
|
7
|
+
* theme.colors.neutral800 changes between themes
|
|
8
|
+
*/
|
|
9
|
+
background-color: #32324d;
|
|
10
|
+
width: 100%;
|
|
11
|
+
outline: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.cm-scroller {
|
|
15
|
+
border: 1px solid ${({theme:e,hasError:t})=>t?e.colors.danger600:e.colors.neutral200};
|
|
16
|
+
/* inputFocusStyle will receive hasError prop */
|
|
17
|
+
${s.inputFocusStyle()}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.cm-editor,
|
|
21
|
+
.cm-scroller {
|
|
22
|
+
border-radius: ${({theme:e})=>e.borderRadius};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.cm-gutters,
|
|
26
|
+
.cm-activeLineGutter {
|
|
27
|
+
/**
|
|
28
|
+
* Hard coded since the color is the same between themes,
|
|
29
|
+
* theme.colors.neutral700 changes between themes
|
|
30
|
+
*/
|
|
31
|
+
background-color: #4a4a6a;
|
|
32
|
+
}
|
|
33
|
+
`;exports.JSONInputContainer=n;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import o from "styled-components";
|
|
2
|
+
import { Flex as t } from "../Flex/Flex.js";
|
|
3
|
+
import { inputFocusStyle as c } from "../themes/utils.js";
|
|
4
|
+
const l = o(t)`
|
|
5
|
+
line-height: ${({
|
|
6
|
+
theme: e
|
|
7
|
+
}) => e.lineHeights[2]};
|
|
8
|
+
|
|
9
|
+
.cm-editor {
|
|
10
|
+
/**
|
|
11
|
+
* Hard coded since the color is the same between themes,
|
|
12
|
+
* theme.colors.neutral800 changes between themes
|
|
13
|
+
*/
|
|
14
|
+
background-color: #32324d;
|
|
15
|
+
width: 100%;
|
|
16
|
+
outline: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.cm-scroller {
|
|
20
|
+
border: 1px solid ${({
|
|
21
|
+
theme: e,
|
|
22
|
+
hasError: r
|
|
23
|
+
}) => r ? e.colors.danger600 : e.colors.neutral200};
|
|
24
|
+
/* inputFocusStyle will receive hasError prop */
|
|
25
|
+
${c()}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.cm-editor,
|
|
29
|
+
.cm-scroller {
|
|
30
|
+
border-radius: ${({
|
|
31
|
+
theme: e
|
|
32
|
+
}) => e.borderRadius};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.cm-gutters,
|
|
36
|
+
.cm-activeLineGutter {
|
|
37
|
+
/**
|
|
38
|
+
* Hard coded since the color is the same between themes,
|
|
39
|
+
* theme.colors.neutral700 changes between themes
|
|
40
|
+
*/
|
|
41
|
+
background-color: #4a4a6a;
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
export {
|
|
45
|
+
l as JSONInputContainer
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./JSONInput.cjs");exports.JSONInput=e.JSONInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("@codemirror/state"),t=require("@codemirror/view"),a=i.StateEffect.define(),d=i.StateEffect.define(),s=t.Decoration.mark({attributes:{style:"background-color: yellow; color: black"}}),n=i.StateField.define({create(){return t.Decoration.none},update(e,o){return e=e.map(o.changes),o.effects.forEach(r=>{r.is(a)?e=e.update({add:r.value,sort:!0}):r.is(d)&&(e=e.update({filter:r.value}))}),e},provide:e=>t.EditorView.decorations.from(e)});exports.addMarks=a;exports.filterMarks=d;exports.lineHighlightMark=s;exports.markField=n;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { StateEffect as o, StateField as d } from "@codemirror/state";
|
|
2
|
+
import { Decoration as i, EditorView as a } from "@codemirror/view";
|
|
3
|
+
const n = o.define(), s = o.define(), l = i.mark({
|
|
4
|
+
attributes: { style: "background-color: yellow; color: black" }
|
|
5
|
+
}), m = d.define({
|
|
6
|
+
create() {
|
|
7
|
+
return i.none;
|
|
8
|
+
},
|
|
9
|
+
update(r, t) {
|
|
10
|
+
return r = r.map(t.changes), t.effects.forEach((e) => {
|
|
11
|
+
e.is(n) ? r = r.update({
|
|
12
|
+
add: e.value,
|
|
13
|
+
sort: !0
|
|
14
|
+
}) : e.is(s) && (r = r.update({ filter: e.value }));
|
|
15
|
+
}), r;
|
|
16
|
+
},
|
|
17
|
+
provide: (r) => a.decorations.from(r)
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
n as addMarks,
|
|
21
|
+
s as filterMarks,
|
|
22
|
+
l as lineHighlightMark,
|
|
23
|
+
m as markField
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("react/jsx-runtime"),m=require("../Box/Box.cjs"),s=require("../helpers/keyboardKeys.cjs"),b=({tagName:r,attributeName:d="",...f})=>{const c=()=>{const e=document.activeElement;return e?r?e.tagName.toLowerCase()===r:e.hasAttribute(d):!1},l=e=>r?e.querySelectorAll(r):e.querySelectorAll(`[${d}]`),i=e=>{switch(e.key){case s.KeyboardKeys.RIGHT:case s.KeyboardKeys.DOWN:{if(c()){e.preventDefault();const n=document.activeElement,t=[...l(e.currentTarget)],o=t.findIndex(a=>a===n),u=o+1<t.length?o+1:0;t[u].focus()}break}case s.KeyboardKeys.LEFT:case s.KeyboardKeys.UP:{if(c()){e.preventDefault();const n=document.activeElement,t=[...l(e.currentTarget)],o=t.findIndex(a=>a===n),u=o-1>-1?o-1:t.length-1;t[u].focus()}break}case s.KeyboardKeys.HOME:{c()&&(e.preventDefault(),l(e.currentTarget).item(0).focus());break}case s.KeyboardKeys.END:{if(c()){e.preventDefault();const n=l(e.currentTarget);n.item(n.length-1).focus()}break}}};return y.jsx(m.Box,{onKeyDown:i,...f})};exports.KeyboardNavigable=b;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { Box as i } from "../Box/Box.js";
|
|
3
|
+
import { KeyboardKeys as o } from "../helpers/keyboardKeys.js";
|
|
4
|
+
const v = ({
|
|
5
|
+
tagName: s,
|
|
6
|
+
attributeName: a = "",
|
|
7
|
+
...d
|
|
8
|
+
}) => {
|
|
9
|
+
const r = () => {
|
|
10
|
+
const e = document.activeElement;
|
|
11
|
+
return e ? s ? e.tagName.toLowerCase() === s : e.hasAttribute(a) : !1;
|
|
12
|
+
}, l = (e) => s ? e.querySelectorAll(s) : e.querySelectorAll(`[${a}]`);
|
|
13
|
+
return m(i, {
|
|
14
|
+
onKeyDown: (e) => {
|
|
15
|
+
switch (e.key) {
|
|
16
|
+
case o.RIGHT:
|
|
17
|
+
case o.DOWN: {
|
|
18
|
+
if (r()) {
|
|
19
|
+
e.preventDefault();
|
|
20
|
+
const n = document.activeElement, t = [...l(e.currentTarget)], c = t.findIndex((f) => f === n), u = c + 1 < t.length ? c + 1 : 0;
|
|
21
|
+
t[u].focus();
|
|
22
|
+
}
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
case o.LEFT:
|
|
26
|
+
case o.UP: {
|
|
27
|
+
if (r()) {
|
|
28
|
+
e.preventDefault();
|
|
29
|
+
const n = document.activeElement, t = [...l(e.currentTarget)], c = t.findIndex((f) => f === n), u = c - 1 > -1 ? c - 1 : t.length - 1;
|
|
30
|
+
t[u].focus();
|
|
31
|
+
}
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
case o.HOME: {
|
|
35
|
+
r() && (e.preventDefault(), l(e.currentTarget).item(0).focus());
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
case o.END: {
|
|
39
|
+
if (r()) {
|
|
40
|
+
e.preventDefault();
|
|
41
|
+
const n = l(e.currentTarget);
|
|
42
|
+
n.item(n.length - 1).focus();
|
|
43
|
+
}
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
...d
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
v as KeyboardNavigable
|
|
53
|
+
};
|
|
@@ -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,25 @@
|
|
|
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, { paddingLeft: 10, paddingRight: 10 }, /* @__PURE__ */ e.createElement(n, { paddingBottom: 4 }, /* @__PURE__ */ e.createElement(i, { justifyContent: "space-between", alignItems: "flex-start" }, t && /* @__PURE__ */ e.createElement(l, { wrap: "wrap" }, t), o && /* @__PURE__ */ e.createElement(m, { pullRight: !0 }, o)))) : null;
|
|
15
|
+
p.defaultProps = {
|
|
16
|
+
endActions: void 0,
|
|
17
|
+
startActions: void 0
|
|
18
|
+
};
|
|
19
|
+
p.propTypes = {
|
|
20
|
+
endActions: r.node,
|
|
21
|
+
startActions: r.node
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
p as ActionLayout
|
|
25
|
+
};
|
|
@@ -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,10 @@
|
|
|
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, { paddingLeft: 10, paddingRight: 10 }, e);
|
|
5
|
+
p.propTypes = {
|
|
6
|
+
children: o.node.isRequired
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
p as ContentLayout
|
|
10
|
+
};
|
|
@@ -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,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react"),E=require("prop-types"),v=require("styled-components"),d=require("../Box/Box.cjs"),i=require("../Flex/Flex.cjs"),B=require("../hooks/useElementOnScreen.cjs"),b=require("../hooks/useResizeObserver.cjs"),s=require("../Typography/Typography.cjs"),p=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},e=p(c),a=p(E),R=p(v),T=()=>{const t=c.useRef(null),[l,r]=c.useState(null),[n,o]=B.useElementOnScreen({root:null,rootMargin:"0px",threshold:0});return b.useResizeObserver(n,()=>{n.current&&r(n.current.getBoundingClientRect())}),c.useEffect(()=>{t.current&&r(t.current.getBoundingClientRect())},[t]),{containerRef:n,isVisible:o,baseHeaderLayoutRef:t,headerSize:l}},f=t=>{const{containerRef:l,isVisible:r,baseHeaderLayoutRef:n,headerSize:o}=T();return e.default.createElement(e.default.Fragment,null,e.default.createElement("div",{style:{height:o?.height},ref:l},r&&e.default.createElement(u,{ref:n,...t})),!r&&e.default.createElement(u,{...t,sticky:!0,width:o?.width}))};f.displayName="HeaderLayout";const L=R.default(d.Box)`
|
|
2
|
+
width: ${t=>t.width}px;
|
|
3
|
+
`,u=e.default.forwardRef(({navigationAction:t,primaryAction:l,secondaryAction:r,subtitle:n,title:o,sticky:m,width:h,...y},x)=>{const g=typeof n=="string";return m?e.default.createElement(L,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:h,zIndex:4,"data-strapi-header-sticky":!0},e.default.createElement(i.Flex,{justifyContent:"space-between"},e.default.createElement(i.Flex,null,t&&e.default.createElement(d.Box,{paddingRight:3},t),e.default.createElement(d.Box,null,e.default.createElement(s.Typography,{variant:"beta",as:"h1",...y},o),g?e.default.createElement(s.Typography,{variant:"pi",textColor:"neutral600"},n):n),r?e.default.createElement(d.Box,{paddingLeft:4},r):null),e.default.createElement(i.Flex,null,l?e.default.createElement(d.Box,{paddingLeft:2},l):void 0))):e.default.createElement(d.Box,{ref:x,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:t?6:8,background:"neutral100","data-strapi-header":!0},t?e.default.createElement(d.Box,{paddingBottom:2},t):null,e.default.createElement(i.Flex,{justifyContent:"space-between"},e.default.createElement(i.Flex,{minWidth:0},e.default.createElement(s.Typography,{as:"h1",variant:"alpha",...y},o),r?e.default.createElement(d.Box,{paddingLeft:4},r):null),l),g?e.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,103 @@
|
|
|
1
|
+
import e, { useRef as h, useState as E, useEffect as v } from "react";
|
|
2
|
+
import t from "prop-types";
|
|
3
|
+
import R from "styled-components";
|
|
4
|
+
import { Box as i } from "../Box/Box.js";
|
|
5
|
+
import { Flex as l } from "../Flex/Flex.js";
|
|
6
|
+
import { useElementOnScreen as b } from "../hooks/useElementOnScreen.js";
|
|
7
|
+
import { useResizeObserver as w } from "../hooks/useResizeObserver.js";
|
|
8
|
+
import { Typography as c } from "../Typography/Typography.js";
|
|
9
|
+
const L = () => {
|
|
10
|
+
const n = h(null), [o, a] = E(null), [r, d] = b({
|
|
11
|
+
root: null,
|
|
12
|
+
rootMargin: "0px",
|
|
13
|
+
threshold: 0
|
|
14
|
+
});
|
|
15
|
+
return w(r, () => {
|
|
16
|
+
r.current && a(r.current.getBoundingClientRect());
|
|
17
|
+
}), v(() => {
|
|
18
|
+
n.current && a(n.current.getBoundingClientRect());
|
|
19
|
+
}, [n]), {
|
|
20
|
+
containerRef: r,
|
|
21
|
+
isVisible: d,
|
|
22
|
+
baseHeaderLayoutRef: n,
|
|
23
|
+
headerSize: o
|
|
24
|
+
};
|
|
25
|
+
}, p = (n) => {
|
|
26
|
+
const { containerRef: o, isVisible: a, baseHeaderLayoutRef: r, headerSize: d } = L();
|
|
27
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { style: { height: d?.height }, ref: o }, a && /* @__PURE__ */ e.createElement(s, { ref: r, ...n })), !a && /* @__PURE__ */ e.createElement(s, { ...n, sticky: !0, width: d?.width }));
|
|
28
|
+
};
|
|
29
|
+
p.displayName = "HeaderLayout";
|
|
30
|
+
const x = R(i)`
|
|
31
|
+
width: ${(n) => n.width}px;
|
|
32
|
+
`, s = e.forwardRef(
|
|
33
|
+
({ navigationAction: n, primaryAction: o, secondaryAction: a, subtitle: r, title: d, sticky: f, width: g, ...u }, y) => {
|
|
34
|
+
const m = typeof r == "string";
|
|
35
|
+
return f ? /* @__PURE__ */ e.createElement(
|
|
36
|
+
x,
|
|
37
|
+
{
|
|
38
|
+
paddingLeft: 6,
|
|
39
|
+
paddingRight: 6,
|
|
40
|
+
paddingTop: 3,
|
|
41
|
+
paddingBottom: 3,
|
|
42
|
+
position: "fixed",
|
|
43
|
+
top: 0,
|
|
44
|
+
right: 0,
|
|
45
|
+
background: "neutral0",
|
|
46
|
+
shadow: "tableShadow",
|
|
47
|
+
width: g,
|
|
48
|
+
zIndex: 4,
|
|
49
|
+
"data-strapi-header-sticky": !0
|
|
50
|
+
},
|
|
51
|
+
/* @__PURE__ */ e.createElement(l, { justifyContent: "space-between" }, /* @__PURE__ */ e.createElement(l, null, n && /* @__PURE__ */ e.createElement(i, { paddingRight: 3 }, n), /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(c, { variant: "beta", as: "h1", ...u }, d), m ? /* @__PURE__ */ e.createElement(c, { variant: "pi", textColor: "neutral600" }, r) : r), a ? /* @__PURE__ */ e.createElement(i, { paddingLeft: 4 }, a) : null), /* @__PURE__ */ e.createElement(l, null, o ? /* @__PURE__ */ e.createElement(i, { paddingLeft: 2 }, o) : void 0))
|
|
52
|
+
) : /* @__PURE__ */ e.createElement(
|
|
53
|
+
i,
|
|
54
|
+
{
|
|
55
|
+
ref: y,
|
|
56
|
+
paddingLeft: 10,
|
|
57
|
+
paddingRight: 10,
|
|
58
|
+
paddingBottom: 8,
|
|
59
|
+
paddingTop: n ? 6 : 8,
|
|
60
|
+
background: "neutral100",
|
|
61
|
+
"data-strapi-header": !0
|
|
62
|
+
},
|
|
63
|
+
n ? /* @__PURE__ */ e.createElement(i, { paddingBottom: 2 }, n) : null,
|
|
64
|
+
/* @__PURE__ */ e.createElement(l, { justifyContent: "space-between" }, /* @__PURE__ */ e.createElement(l, { minWidth: 0 }, /* @__PURE__ */ e.createElement(c, { as: "h1", variant: "alpha", ...u }, d), a ? /* @__PURE__ */ e.createElement(i, { paddingLeft: 4 }, a) : null), o),
|
|
65
|
+
m ? /* @__PURE__ */ e.createElement(c, { variant: "epsilon", textColor: "neutral600", as: "p" }, r) : r
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
s.displayName = "BaseHeaderLayout";
|
|
70
|
+
s.defaultProps = {
|
|
71
|
+
navigationAction: void 0,
|
|
72
|
+
primaryAction: void 0,
|
|
73
|
+
secondaryAction: void 0,
|
|
74
|
+
subtitle: void 0,
|
|
75
|
+
sticky: !1,
|
|
76
|
+
width: void 0
|
|
77
|
+
};
|
|
78
|
+
s.propTypes = {
|
|
79
|
+
navigationAction: t.node,
|
|
80
|
+
primaryAction: t.node,
|
|
81
|
+
secondaryAction: t.node,
|
|
82
|
+
sticky: t.bool,
|
|
83
|
+
subtitle: t.oneOfType([t.string, t.node]),
|
|
84
|
+
title: t.string.isRequired,
|
|
85
|
+
width: t.number
|
|
86
|
+
};
|
|
87
|
+
p.defaultProps = {
|
|
88
|
+
navigationAction: void 0,
|
|
89
|
+
primaryAction: void 0,
|
|
90
|
+
secondaryAction: void 0,
|
|
91
|
+
subtitle: void 0
|
|
92
|
+
};
|
|
93
|
+
p.propTypes = {
|
|
94
|
+
navigationAction: t.node,
|
|
95
|
+
primaryAction: t.node,
|
|
96
|
+
secondaryAction: t.node,
|
|
97
|
+
subtitle: t.oneOfType([t.string, t.node]),
|
|
98
|
+
title: t.string.isRequired
|
|
99
|
+
};
|
|
100
|
+
export {
|
|
101
|
+
s as BaseHeaderLayout,
|
|
102
|
+
p as HeaderLayout
|
|
103
|
+
};
|
|
@@ -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,20 @@
|
|
|
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, { hasSideNav: Boolean(e) }, e, /* @__PURE__ */ o.createElement(m, { paddingBottom: 10 }, n));
|
|
11
|
+
i.defaultProps = {
|
|
12
|
+
sideNav: void 0
|
|
13
|
+
};
|
|
14
|
+
i.propTypes = {
|
|
15
|
+
children: r.node.isRequired,
|
|
16
|
+
sideNav: r.node
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
i as Layout
|
|
20
|
+
};
|
|
@@ -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,13 @@
|
|
|
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, { gap: 4 }, /* @__PURE__ */ e.createElement(t, { col: 9, s: 12 }, /* @__PURE__ */ e.createElement(o, { hasRadius: !0, background: "neutral0", shadow: "tableShadow" }, a)), /* @__PURE__ */ e.createElement(t, { col: 3, s: 12 }, /* @__PURE__ */ e.createElement(o, { hasRadius: !0, background: "neutral0", shadow: "tableShadow" }, d)));
|
|
7
|
+
l.propTypes = {
|
|
8
|
+
endCol: r.node.isRequired,
|
|
9
|
+
startCol: r.node.isRequired
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
l as TwoColsLayout
|
|
13
|
+
};
|
|
@@ -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 o=require("react/jsx-runtime"),y=require("react"),g=require("@strapi/icons"),j=require("react-router-dom"),m=require("styled-components"),x=require("../Box/Box.cjs"),h=require("../themes/utils.cjs"),c=require("../Typography/Typography.cjs"),_=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function b(e){if(e&&e.__esModule)return e;const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const v=b(y),l=_(m),q=l.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
|
+
${c.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
|
+
${h.buttonFocusStyle};
|
|
31
|
+
`,s=l.default(x.Box)`
|
|
32
|
+
display: flex;
|
|
33
|
+
`,L=v.forwardRef(({children:e,href:r,to:t,disabled:n=!1,startIcon:i,endIcon:a,...u},d)=>{const p=r?"_blank":void 0,f=r?"noreferrer noopener":void 0;return o.jsxs(q,{as:t&&!n?j.NavLink:"a",target:p,rel:f,to:n?void 0:t,href:n?"#":r,disabled:n,ref:d,...u,children:[i&&o.jsx(s,{as:"span","aria-hidden":!0,paddingRight:2,children:i}),o.jsx(c.Typography,{children:e}),a&&!r&&o.jsx(s,{as:"span","aria-hidden":!0,paddingLeft:2,children:a}),r&&o.jsx(s,{as:"span","aria-hidden":!0,paddingLeft:2,children:o.jsx(g.ExternalLink,{})})]})});exports.Link=L;
|