@strapi/design-system 0.0.0-jsoninput.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 +7 -0
- package/dist/Accordion/Accordion.cjs +23 -0
- package/dist/Accordion/Accordion.js +87 -0
- package/dist/Accordion/AccordionContent.cjs +1 -0
- package/dist/Accordion/AccordionContent.js +43 -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 +148 -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 +130 -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 +86 -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 +63 -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 +67 -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 +125 -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 +53 -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 +82 -0
- package/dist/BaseRadio/RadioGroup.cjs +1 -0
- package/dist/BaseRadio/RadioGroup.js +52 -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 +60 -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 +73 -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 +129 -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 +52 -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 +65 -0
- package/dist/Card/CardBadge.cjs +6 -0
- package/dist/Card/CardBadge.js +23 -0
- package/dist/Card/CardBody.cjs +1 -0
- package/dist/Card/CardBody.js +26 -0
- package/dist/Card/CardCheckbox.cjs +1 -0
- package/dist/Card/CardCheckbox.js +26 -0
- package/dist/Card/CardContent.cjs +3 -0
- package/dist/Card/CardContent.js +36 -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 +23 -0
- package/dist/Card/CardTimer.cjs +5 -0
- package/dist/Card/CardTimer.js +48 -0
- package/dist/Card/CardTitle.cjs +1 -0
- package/dist/Card/CardTitle.js +34 -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 +161 -0
- package/dist/CarouselInput/CarouselActions.cjs +1 -0
- package/dist/CarouselInput/CarouselActions.js +24 -0
- package/dist/CarouselInput/CarouselImage.cjs +4 -0
- package/dist/CarouselInput/CarouselImage.js +47 -0
- package/dist/CarouselInput/CarouselInput.cjs +1 -0
- package/dist/CarouselInput/CarouselInput.js +114 -0
- package/dist/CarouselInput/CarouselSlide.cjs +3 -0
- package/dist/CarouselInput/CarouselSlide.js +48 -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 +83 -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 +353 -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 +52 -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 +144 -0
- package/dist/DatePicker/DatePickerCalendar.cjs +1 -0
- package/dist/DatePicker/DatePickerCalendar.js +107 -0
- package/dist/DatePicker/DatePickerTd.cjs +19 -0
- package/dist/DatePicker/DatePickerTd.js +74 -0
- package/dist/DatePicker/DatePickerTh.cjs +9 -0
- package/dist/DatePicker/DatePickerTh.js +56 -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 +10 -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 +145 -0
- package/dist/DateTimePicker/DateTimePickerProps.cjs +1 -0
- package/dist/DateTimePicker/DateTimePickerProps.js +51 -0
- package/dist/DateTimePicker/__tests__/parseDate.test.cjs +1 -0
- package/dist/DateTimePicker/__tests__/parseDate.test.js +8 -0
- package/dist/DateTimePicker/index.cjs +1 -0
- package/dist/DateTimePicker/index.js +4 -0
- package/dist/DateTimePicker/parseDate.cjs +1 -0
- package/dist/DateTimePicker/parseDate.js +7 -0
- package/dist/Dialog/Dialog.cjs +14 -0
- package/dist/Dialog/Dialog.js +85 -0
- package/dist/Dialog/DialogBody.cjs +10 -0
- package/dist/Dialog/DialogBody.js +35 -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 +33 -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 +47 -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 +49 -0
- package/dist/Field/FieldAction.cjs +10 -0
- package/dist/Field/FieldAction.js +46 -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 +126 -0
- package/dist/Field/FieldLabel.cjs +9 -0
- package/dist/Field/FieldLabel.js +65 -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 +50 -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 +71 -0
- package/dist/FocusTrap/FocusTrap.cjs +1 -0
- package/dist/FocusTrap/FocusTrap.js +69 -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 +50 -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 +60 -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 +36 -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 +168 -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 +122 -0
- package/dist/JSONInput/JSONInputContainer.cjs +30 -0
- package/dist/JSONInput/JSONInputContainer.js +36 -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 +78 -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 +150 -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 +110 -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 +121 -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 +59 -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 +46 -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 +52 -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 +65 -0
- package/dist/MainNav/NavLink.cjs +69 -0
- package/dist/MainNav/NavLink.js +138 -0
- package/dist/MainNav/NavSection.cjs +1 -0
- package/dist/MainNav/NavSection.js +70 -0
- package/dist/MainNav/NavSections.cjs +1 -0
- package/dist/MainNav/NavSections.js +43 -0
- package/dist/MainNav/NavUser.cjs +7 -0
- package/dist/MainNav/NavUser.js +74 -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 +23 -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 +64 -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 +211 -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 +134 -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 +149 -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 +16 -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 +66 -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 +45 -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 +115 -0
- package/dist/RawTable/RawTable.cjs +1 -0
- package/dist/RawTable/RawTable.js +94 -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 +35 -0
- package/dist/RawTable/RawThead.cjs +1 -0
- package/dist/RawTable/RawThead.js +33 -0
- package/dist/RawTable/RawTr.cjs +1 -0
- package/dist/RawTable/RawTr.js +39 -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 +19 -0
- package/dist/Searchbar/Searchbar.cjs +29 -0
- package/dist/Searchbar/Searchbar.js +99 -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 +48 -0
- package/dist/Select/OptGroup.cjs +1 -0
- package/dist/Select/OptGroup.js +40 -0
- package/dist/Select/Option.cjs +49 -0
- package/dist/Select/Option.js +124 -0
- package/dist/Select/Select.cjs +3 -0
- package/dist/Select/Select.js +270 -0
- package/dist/Select/SelectButton.cjs +19 -0
- package/dist/Select/SelectButton.js +84 -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 +35 -0
- package/dist/SimpleMenu/SimpleMenu.js +229 -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 +76 -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 +66 -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 +48 -0
- package/dist/SubNav/SubNavHeader.cjs +4 -0
- package/dist/SubNav/SubNavHeader.js +99 -0
- package/dist/SubNav/SubNavLink.cjs +39 -0
- package/dist/SubNav/SubNavLink.js +101 -0
- package/dist/SubNav/SubNavLinkSection.cjs +19 -0
- package/dist/SubNav/SubNavLinkSection.js +69 -0
- package/dist/SubNav/SubNavSection.cjs +8 -0
- package/dist/SubNav/SubNavSection.js +64 -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 +42 -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 +102 -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 +59 -0
- package/dist/Table/TFooter.cjs +22 -0
- package/dist/Table/TFooter.js +72 -0
- package/dist/Table/Table.cjs +36 -0
- package/dist/Table/Table.js +103 -0
- package/dist/Table/Tbody.cjs +5 -0
- package/dist/Table/Tbody.js +22 -0
- package/dist/Table/Thead.cjs +3 -0
- package/dist/Table/Thead.js +20 -0
- package/dist/Table/Tr.cjs +20 -0
- package/dist/Table/Tr.js +37 -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 +55 -0
- package/dist/Tabs/TabPanels.cjs +1 -0
- package/dist/Tabs/TabPanels.js +51 -0
- package/dist/Tabs/Tabs.cjs +5 -0
- package/dist/Tabs/Tabs.js +152 -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 +83 -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 +102 -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 +89 -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 +94 -0
- package/dist/Textarea/TextareaInput.cjs +30 -0
- package/dist/Textarea/TextareaInput.js +89 -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 +142 -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 +148 -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 +121 -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 +79 -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 +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/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 +23 -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 +16 -0
- package/dist/hooks/useControllableState.cjs +1 -0
- package/dist/hooks/useControllableState.js +25 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +291 -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 +21 -0
- package/dist/themes/extendTheme.cjs +13 -0
- package/dist/themes/extendTheme.js +47 -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 +21 -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 +58 -0
- package/dist/v2/Breadcrumbs/Crumb.cjs +1 -0
- package/dist/v2/Breadcrumbs/Crumb.js +49 -0
- package/dist/v2/Breadcrumbs/CrumbLink.cjs +14 -0
- package/dist/v2/Breadcrumbs/CrumbLink.js +52 -0
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.cjs +8 -0
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.js +50 -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 +91 -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 +119 -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 +52 -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 +89 -0
- package/dist/v2/MainNav/NavCondense.cjs +20 -0
- package/dist/v2/MainNav/NavCondense.js +65 -0
- package/dist/v2/MainNav/NavLink.cjs +69 -0
- package/dist/v2/MainNav/NavLink.js +143 -0
- package/dist/v2/MainNav/NavSection.cjs +1 -0
- package/dist/v2/MainNav/NavSection.js +70 -0
- package/dist/v2/MainNav/NavSections.cjs +1 -0
- package/dist/v2/MainNav/NavSections.js +43 -0
- package/dist/v2/MainNav/NavUser.cjs +7 -0
- package/dist/v2/MainNav/NavUser.js +74 -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 +135 -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 +220 -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 +48 -0
- package/dist/v2/SubNav/SubNavHeader.cjs +4 -0
- package/dist/v2/SubNav/SubNavHeader.js +99 -0
- package/dist/v2/SubNav/SubNavLink.cjs +39 -0
- package/dist/v2/SubNav/SubNavLink.js +104 -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 +42 -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 +77 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
var C = Object.defineProperty;
|
|
2
|
+
var n = Object.getOwnPropertySymbols;
|
|
3
|
+
var u = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var g = (e, t, r) => t in e ? C(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, E = (e, t) => {
|
|
5
|
+
for (var r in t || (t = {}))
|
|
6
|
+
u.call(t, r) && g(e, r, t[r]);
|
|
7
|
+
if (n)
|
|
8
|
+
for (var r of n(t))
|
|
9
|
+
b.call(t, r) && g(e, r, t[r]);
|
|
10
|
+
return e;
|
|
11
|
+
};
|
|
12
|
+
var x = (e, t) => {
|
|
13
|
+
var r = {};
|
|
14
|
+
for (var i in e)
|
|
15
|
+
u.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
16
|
+
if (e != null && n)
|
|
17
|
+
for (var i of n(e))
|
|
18
|
+
t.indexOf(i) < 0 && b.call(e, i) && (r[i] = e[i]);
|
|
19
|
+
return r;
|
|
20
|
+
};
|
|
21
|
+
import l from "react";
|
|
22
|
+
import y from "styled-components";
|
|
23
|
+
import o from "prop-types";
|
|
24
|
+
import { sizes as I } from "../themes/sizes.js";
|
|
25
|
+
import { useId as O } from "../helpers/useId.js";
|
|
26
|
+
import { Field as z } from "../Field/Field.js";
|
|
27
|
+
import { FieldLabel as q } from "../Field/FieldLabel.js";
|
|
28
|
+
import "../Field/FieldInput.js";
|
|
29
|
+
import { FieldHint as A } from "../Field/FieldHint.js";
|
|
30
|
+
import { FieldError as B } from "../Field/FieldError.js";
|
|
31
|
+
import "../Field/FieldContext.js";
|
|
32
|
+
import "../Field/FieldAction.js";
|
|
33
|
+
import { Stack as L } from "../Stack/Stack.js";
|
|
34
|
+
import { Flex as P } from "../Flex/Flex.js";
|
|
35
|
+
import { TextButton as _ } from "../TextButton/TextButton.js";
|
|
36
|
+
import { ToggleCheckbox as j } from "../ToggleCheckbox/ToggleCheckbox.js";
|
|
37
|
+
const w = y(z)`
|
|
38
|
+
max-width: 320px;
|
|
39
|
+
`, H = y(_)`
|
|
40
|
+
align-self: flex-end;
|
|
41
|
+
margin-left: auto;
|
|
42
|
+
`, m = (M) => {
|
|
43
|
+
var c = M, {
|
|
44
|
+
disabled: e,
|
|
45
|
+
size: t,
|
|
46
|
+
error: r,
|
|
47
|
+
hint: i,
|
|
48
|
+
label: a,
|
|
49
|
+
name: T,
|
|
50
|
+
labelAction: v,
|
|
51
|
+
required: F,
|
|
52
|
+
id: h,
|
|
53
|
+
onClear: p,
|
|
54
|
+
clearLabel: d,
|
|
55
|
+
checked: s
|
|
56
|
+
} = c, k = x(c, [
|
|
57
|
+
"disabled",
|
|
58
|
+
"size",
|
|
59
|
+
"error",
|
|
60
|
+
"hint",
|
|
61
|
+
"label",
|
|
62
|
+
"name",
|
|
63
|
+
"labelAction",
|
|
64
|
+
"required",
|
|
65
|
+
"id",
|
|
66
|
+
"onClear",
|
|
67
|
+
"clearLabel",
|
|
68
|
+
"checked"
|
|
69
|
+
]);
|
|
70
|
+
const f = O("toggleinput", h);
|
|
71
|
+
return /* @__PURE__ */ l.createElement(w, {
|
|
72
|
+
name: T,
|
|
73
|
+
hint: i,
|
|
74
|
+
error: r,
|
|
75
|
+
id: f,
|
|
76
|
+
required: F
|
|
77
|
+
}, /* @__PURE__ */ l.createElement(L, {
|
|
78
|
+
spacing: 1
|
|
79
|
+
}, /* @__PURE__ */ l.createElement(P, null, /* @__PURE__ */ l.createElement(q, {
|
|
80
|
+
action: v
|
|
81
|
+
}, a), d && p && s !== null && !e && /* @__PURE__ */ l.createElement(H, {
|
|
82
|
+
onClick: p
|
|
83
|
+
}, d)), /* @__PURE__ */ l.createElement(j, E({
|
|
84
|
+
id: f,
|
|
85
|
+
size: t,
|
|
86
|
+
checked: s,
|
|
87
|
+
disabled: e
|
|
88
|
+
}, k), a), /* @__PURE__ */ l.createElement(A, null), /* @__PURE__ */ l.createElement(B, null)));
|
|
89
|
+
};
|
|
90
|
+
m.displayName = "ToggleInput";
|
|
91
|
+
m.defaultProps = {
|
|
92
|
+
checked: !1,
|
|
93
|
+
clearLabel: void 0,
|
|
94
|
+
disabled: !1,
|
|
95
|
+
error: void 0,
|
|
96
|
+
hint: void 0,
|
|
97
|
+
id: void 0,
|
|
98
|
+
label: "",
|
|
99
|
+
labelAction: void 0,
|
|
100
|
+
name: "",
|
|
101
|
+
onClear: void 0,
|
|
102
|
+
required: !1,
|
|
103
|
+
size: "M"
|
|
104
|
+
};
|
|
105
|
+
m.propTypes = {
|
|
106
|
+
checked: o.bool,
|
|
107
|
+
clearLabel: o.string,
|
|
108
|
+
disabled: o.bool,
|
|
109
|
+
error: o.string,
|
|
110
|
+
hint: o.oneOfType([o.string, o.node, o.arrayOf(o.node)]),
|
|
111
|
+
id: o.string,
|
|
112
|
+
label: o.string,
|
|
113
|
+
labelAction: o.node,
|
|
114
|
+
name: o.string,
|
|
115
|
+
onClear: o.func,
|
|
116
|
+
required: o.bool,
|
|
117
|
+
size: o.oneOf(Object.keys(I.input))
|
|
118
|
+
};
|
|
119
|
+
export {
|
|
120
|
+
m as ToggleInput
|
|
121
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ToggleInput.cjs");exports.ToggleInput=e.ToggleInput;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";var E=Object.defineProperty;var r=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var g=(e,o,t)=>o in e?E(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,n=(e,o)=>{for(var t in o||(o={}))T.call(o,t)&&g(e,t,o[t]);if(r)for(var t of r(o))b.call(o,t)&&g(e,t,o[t]);return e};var u=(e,o)=>{var t={};for(var l in e)T.call(e,l)&&o.indexOf(l)<0&&(t[l]=e[l]);if(e!=null&&r)for(var l of r(e))o.indexOf(l)<0&&b.call(e,l)&&(t[l]=e[l]);return t};Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("react"),R=require("prop-types"),B=require("styled-components"),L=require("../Box/Box.cjs"),V=require("../Typography/Typography.cjs"),k=require("../Portal/Portal.cjs"),M=require("./hooks/useTooltipHandlers.cjs"),S=require("./hooks/useTooltipLayout.cjs"),h=require("../helpers/useId.cjs"),W=require("../VisuallyHidden/VisuallyHidden.cjs"),p=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},s=p(I),i=p(R),z=p(B),C=z.default(L.Box)`
|
|
2
|
+
position: absolute;
|
|
3
|
+
/* z-index exist because of its position inside Modals */
|
|
4
|
+
z-index: 4;
|
|
5
|
+
display: ${({visible:e})=>e?"revert":"none"};
|
|
6
|
+
`,c=O=>{var f=O,{children:e,label:o,description:t,delay:l,position:m,id:q}=f,v=u(f,["children","label","description","delay","position","id"]);const a=h.useId("tooltip",q),j=h.useId("description"),y=M.useTooltipHandlers(l),{visible:d}=y,x=u(y,["visible"]),{tooltipWrapperRef:_,toggleSourceRef:H}=S.useTooltipLayout(d,m),P=s.default.cloneElement(e,n({tabIndex:0,"aria-labelledby":o?a:void 0,"aria-describedby":t?a:void 0},x));return s.default.createElement(s.default.Fragment,null,s.default.createElement(k.Portal,null,s.default.createElement(C,n({id:a,background:"neutral900",hasRadius:!0,padding:2,role:"tooltip",ref:_,visible:d},v),d&&s.default.createElement(W.VisuallyHidden,{id:j},t),s.default.createElement(V.Typography,{as:"p",variant:"pi",fontWeight:"bold",textColor:"neutral0"},o||t))),s.default.createElement("span",{ref:H},P))};c.defaultProps={delay:500,id:void 0,position:"top",label:void 0,description:void 0};c.propTypes={children:i.default.node.isRequired,delay:i.default.number,description:i.default.string,id:i.default.string,label:i.default.string,position:i.default.oneOf(["top","left","bottom","right"])};exports.Tooltip=c;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
var P = Object.defineProperty;
|
|
2
|
+
var n = Object.getOwnPropertySymbols;
|
|
3
|
+
var u = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var f = (o, t, e) => t in o ? P(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, d = (o, t) => {
|
|
5
|
+
for (var e in t || (t = {}))
|
|
6
|
+
u.call(t, e) && f(o, e, t[e]);
|
|
7
|
+
if (n)
|
|
8
|
+
for (var e of n(t))
|
|
9
|
+
b.call(t, e) && f(o, e, t[e]);
|
|
10
|
+
return o;
|
|
11
|
+
};
|
|
12
|
+
var s = (o, t) => {
|
|
13
|
+
var e = {};
|
|
14
|
+
for (var i in o)
|
|
15
|
+
u.call(o, i) && t.indexOf(i) < 0 && (e[i] = o[i]);
|
|
16
|
+
if (o != null && n)
|
|
17
|
+
for (var i of n(o))
|
|
18
|
+
t.indexOf(i) < 0 && b.call(o, i) && (e[i] = o[i]);
|
|
19
|
+
return e;
|
|
20
|
+
};
|
|
21
|
+
import r from "react";
|
|
22
|
+
import l from "prop-types";
|
|
23
|
+
import W from "styled-components";
|
|
24
|
+
import { Box as z } from "../Box/Box.js";
|
|
25
|
+
import { Typography as C } from "../Typography/Typography.js";
|
|
26
|
+
import { Portal as _ } from "../Portal/Portal.js";
|
|
27
|
+
import { useTooltipHandlers as k } from "./hooks/useTooltipHandlers.js";
|
|
28
|
+
import { useTooltipLayout as q } from "./hooks/useTooltipLayout.js";
|
|
29
|
+
import { useId as y } from "../helpers/useId.js";
|
|
30
|
+
import { VisuallyHidden as B } from "../VisuallyHidden/VisuallyHidden.js";
|
|
31
|
+
const F = W(z)`
|
|
32
|
+
position: absolute;
|
|
33
|
+
/* z-index exist because of its position inside Modals */
|
|
34
|
+
z-index: 4;
|
|
35
|
+
display: ${({ visible: o }) => o ? "revert" : "none"};
|
|
36
|
+
`, g = (L) => {
|
|
37
|
+
var m = L, { children: o, label: t, description: e, delay: i, position: v, id: x } = m, E = s(m, ["children", "label", "description", "delay", "position", "id"]);
|
|
38
|
+
const p = y("tooltip", x), T = y("description"), c = k(i), { visible: a } = c, h = s(c, ["visible"]), { tooltipWrapperRef: R, toggleSourceRef: I } = q(a, v), H = r.cloneElement(o, d({
|
|
39
|
+
tabIndex: 0,
|
|
40
|
+
"aria-labelledby": t ? p : void 0,
|
|
41
|
+
"aria-describedby": e ? p : void 0
|
|
42
|
+
}, h));
|
|
43
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(_, null, /* @__PURE__ */ r.createElement(F, d({
|
|
44
|
+
id: p,
|
|
45
|
+
background: "neutral900",
|
|
46
|
+
hasRadius: !0,
|
|
47
|
+
padding: 2,
|
|
48
|
+
role: "tooltip",
|
|
49
|
+
ref: R,
|
|
50
|
+
visible: a
|
|
51
|
+
}, E), a && /* @__PURE__ */ r.createElement(B, {
|
|
52
|
+
id: T
|
|
53
|
+
}, e), /* @__PURE__ */ r.createElement(C, {
|
|
54
|
+
as: "p",
|
|
55
|
+
variant: "pi",
|
|
56
|
+
fontWeight: "bold",
|
|
57
|
+
textColor: "neutral0"
|
|
58
|
+
}, t || e))), /* @__PURE__ */ r.createElement("span", {
|
|
59
|
+
ref: I
|
|
60
|
+
}, H));
|
|
61
|
+
};
|
|
62
|
+
g.defaultProps = {
|
|
63
|
+
delay: 500,
|
|
64
|
+
id: void 0,
|
|
65
|
+
position: "top",
|
|
66
|
+
label: void 0,
|
|
67
|
+
description: void 0
|
|
68
|
+
};
|
|
69
|
+
g.propTypes = {
|
|
70
|
+
children: l.node.isRequired,
|
|
71
|
+
delay: l.number,
|
|
72
|
+
description: l.string,
|
|
73
|
+
id: l.string,
|
|
74
|
+
label: l.string,
|
|
75
|
+
position: l.oneOf(["top", "left", "bottom", "right"])
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
g as Tooltip
|
|
79
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react"),n=r=>{const[u,e]=o.useState(!1),t=o.useRef(),s=()=>{t.current&&clearTimeout(t.current)};return o.useEffect(()=>()=>{s()},[]),{visible:u,onFocus:()=>{e(!0)},onBlur:()=>{e(!1)},onMouseEnter:()=>{t.current=setTimeout(()=>{e(!0)},r)},onMouseLeave:()=>{s(),e(!1)}}};exports.useTooltipHandlers=n;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useState as r, useRef as u, useEffect as c } from "react";
|
|
2
|
+
const M = (s) => {
|
|
3
|
+
const [n, e] = r(!1), o = u(), t = () => {
|
|
4
|
+
o.current && clearTimeout(o.current);
|
|
5
|
+
};
|
|
6
|
+
return c(() => () => {
|
|
7
|
+
t();
|
|
8
|
+
}, []), { visible: n, onFocus: () => {
|
|
9
|
+
e(!0);
|
|
10
|
+
}, onBlur: () => {
|
|
11
|
+
e(!1);
|
|
12
|
+
}, onMouseEnter: () => {
|
|
13
|
+
o.current = setTimeout(() => {
|
|
14
|
+
e(!0);
|
|
15
|
+
}, s);
|
|
16
|
+
}, onMouseLeave: () => {
|
|
17
|
+
t(), e(!1);
|
|
18
|
+
} };
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
M as useTooltipHandlers
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react"),c=require("../utils/positionTooltip.cjs"),n=(e,u)=>{const l=o.useRef(null),s=o.useRef(null);return o.useLayoutEffect(()=>{if(e){const t=l.current,r=s.current,i=c.positionTooltip(t,r,u);t.style.left=`${i.left}px`,t.style.top=`${i.top}px`}},[u,e]),{tooltipWrapperRef:l,toggleSourceRef:s}};exports.useTooltipLayout=n;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useRef as n, useLayoutEffect as c } from "react";
|
|
2
|
+
import { positionTooltip as s } from "../utils/positionTooltip.js";
|
|
3
|
+
const g = (o, e) => {
|
|
4
|
+
const r = n(null), l = n(null);
|
|
5
|
+
return c(() => {
|
|
6
|
+
if (o) {
|
|
7
|
+
const t = r.current, u = l.current, p = s(t, u, e);
|
|
8
|
+
t.style.left = `${p.left}px`, t.style.top = `${p.top}px`;
|
|
9
|
+
}
|
|
10
|
+
}, [e, o]), { tooltipWrapperRef: r, toggleSourceRef: l };
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
g as useTooltipLayout
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Tooltip.cjs");exports.Tooltip=e.Tooltip;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=8,d=(h,i)=>{const f=(h.width-i.width)/2,t=i.left-f,n=i.top+i.height+s+window.pageYOffset;return{left:t,top:n}},e=(h,i)=>{const f=(h.height-i.height)/2,t=i.left+i.width+s,n=i.top-f+window.pageYOffset;return{left:t,top:n}},o=(h,i)=>{const f=(h.height-i.height)/2,t=i.left-h.width-s,n=i.top-f+window.pageYOffset;return{left:t,top:n}},p=(h,i)=>{const f=(h.width-i.width)/2;let t=i.left-f,n=i.top-h.height-s+window.pageYOffset;const w=window.innerWidth-i.right;return i.left+h.width-w>window.innerWidth?(t=i.left-h.width-s,n=i.top+window.scrollY-i.height/2):t<0?(t=i.width+i.left+s,n=i.top+window.scrollY-h.height/2+s):n<0&&t>0&&(n=i.top+i.height+s),{left:t,top:n}},r=(h,i,f)=>{const t=h.getBoundingClientRect(),n=i.getBoundingClientRect();return f==="bottom"?d(t,n):f==="right"?e(t,n):f==="left"?o(t,n):p(t,n)};exports.positionTooltip=r;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const s = (h, i) => {
|
|
2
|
+
const f = (h.width - i.width) / 2, n = i.left - f, t = i.top + i.height + 8 + window.pageYOffset;
|
|
3
|
+
return {
|
|
4
|
+
left: n,
|
|
5
|
+
top: t
|
|
6
|
+
};
|
|
7
|
+
}, w = (h, i) => {
|
|
8
|
+
const f = (h.height - i.height) / 2, n = i.left + i.width + 8, t = i.top - f + window.pageYOffset;
|
|
9
|
+
return { left: n, top: t };
|
|
10
|
+
}, d = (h, i) => {
|
|
11
|
+
const f = (h.height - i.height) / 2, n = i.left - h.width - 8, t = i.top - f + window.pageYOffset;
|
|
12
|
+
return { left: n, top: t };
|
|
13
|
+
}, p = (h, i) => {
|
|
14
|
+
const f = (h.width - i.width) / 2;
|
|
15
|
+
let n = i.left - f, t = i.top - h.height - 8 + window.pageYOffset;
|
|
16
|
+
const E = window.innerWidth - i.right;
|
|
17
|
+
return i.left + h.width - E > window.innerWidth ? (n = i.left - h.width - 8, t = i.top + window.scrollY - i.height / 2) : n < 0 ? (n = i.width + i.left + 8, t = i.top + window.scrollY - h.height / 2 + 8) : t < 0 && n > 0 && (t = i.top + i.height + 8), {
|
|
18
|
+
left: n,
|
|
19
|
+
top: t
|
|
20
|
+
};
|
|
21
|
+
}, e = (h, i, f) => {
|
|
22
|
+
const n = h.getBoundingClientRect(), t = i.getBoundingClientRect();
|
|
23
|
+
return f === "bottom" ? s(n, t) : f === "right" ? w(n, t) : f === "left" ? d(n, t) : p(n, t);
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
e as positionTooltip
|
|
27
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("styled-components"),o=require("./utils.cjs"),s=require("./TypographyProps.cjs"),a=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},n=a(i),l={fontSize:!0,fontWeight:!0},r=n.default.span.withConfig({shouldForwardProp:(t,e)=>!l[t]&&e(t)})`
|
|
2
|
+
${o.variantStyle}
|
|
3
|
+
${o.ellipsisStyle}
|
|
4
|
+
|
|
5
|
+
// These properties need to come after {variantStyle}, because they might
|
|
6
|
+
// overwrite a variant attribute
|
|
7
|
+
font-weight: ${({theme:t,fontWeight:e})=>t.fontWeights[e]};
|
|
8
|
+
font-size: ${({theme:t,fontSize:e})=>t.fontSizes[e]};
|
|
9
|
+
line-height: ${({theme:t,lineHeight:e})=>t.lineHeights[e]};
|
|
10
|
+
color: ${o.handleColor};
|
|
11
|
+
text-align: ${({textAlign:t})=>t};
|
|
12
|
+
text-transform: ${({textTransform:t})=>t};
|
|
13
|
+
`;r.defaultProps=s.typographyDefaultProps;r.propTypes=s.typographyPropTypes;exports.Typography=r;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import r from "styled-components";
|
|
2
|
+
import { variantStyle as i, ellipsisStyle as a, handleColor as n } from "./utils.js";
|
|
3
|
+
import { typographyDefaultProps as p, typographyPropTypes as s } from "./TypographyProps.js";
|
|
4
|
+
const h = {
|
|
5
|
+
fontSize: !0,
|
|
6
|
+
fontWeight: !0
|
|
7
|
+
}, o = r.span.withConfig({
|
|
8
|
+
shouldForwardProp: (t, e) => !h[t] && e(t)
|
|
9
|
+
})`
|
|
10
|
+
${i}
|
|
11
|
+
${a}
|
|
12
|
+
|
|
13
|
+
// These properties need to come after {variantStyle}, because they might
|
|
14
|
+
// overwrite a variant attribute
|
|
15
|
+
font-weight: ${({ theme: t, fontWeight: e }) => t.fontWeights[e]};
|
|
16
|
+
font-size: ${({ theme: t, fontSize: e }) => t.fontSizes[e]};
|
|
17
|
+
line-height: ${({ theme: t, lineHeight: e }) => t.lineHeights[e]};
|
|
18
|
+
color: ${n};
|
|
19
|
+
text-align: ${({ textAlign: t }) => t};
|
|
20
|
+
text-transform: ${({ textTransform: t }) => t};
|
|
21
|
+
`;
|
|
22
|
+
o.defaultProps = p;
|
|
23
|
+
o.propTypes = s;
|
|
24
|
+
export {
|
|
25
|
+
o as Typography
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var d=Object.defineProperty;var s=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var n=(t,o,r)=>o in t?d(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r,l=(t,o)=>{for(var r in o||(o={}))y.call(o,r)&&n(t,r,o[r]);if(s)for(var r of s(o))g.call(o,r)&&n(t,r,o[r]);return t};Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react"),T=require("prop-types"),i=require("./constants.cjs"),p=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},v=p(c),e=p(T),a=t=>v.default.createElement("div",l({},t)),f={ellipsis:!1,fontWeight:void 0,fontSize:void 0,lineHeight:void 0,textColor:void 0,textAlign:void 0,textTransform:void 0,variant:i.OMEGA},u={ellipsis:e.default.bool,fontSize:e.default.oneOfType([e.default.number,e.default.string]),fontWeight:e.default.string,lineHeight:e.default.oneOfType([e.default.number,e.default.string]),textAlign:e.default.string,textColor:e.default.string,textTransform:e.default.string,variant:e.default.oneOf(i.TEXT_VARIANTS)};a.defaultProps=f;a.propTypes=u;exports.TypographyProps=a;exports.typographyDefaultProps=f;exports.typographyPropTypes=u;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var i = Object.getOwnPropertySymbols;
|
|
3
|
+
var l = Object.prototype.hasOwnProperty, a = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var n = (r, o, e) => o in r ? f(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, p = (r, o) => {
|
|
5
|
+
for (var e in o || (o = {}))
|
|
6
|
+
l.call(o, e) && n(r, e, o[e]);
|
|
7
|
+
if (i)
|
|
8
|
+
for (var e of i(o))
|
|
9
|
+
a.call(o, e) && n(r, e, o[e]);
|
|
10
|
+
return r;
|
|
11
|
+
};
|
|
12
|
+
import g from "react";
|
|
13
|
+
import t from "prop-types";
|
|
14
|
+
import { TEXT_VARIANTS as m, OMEGA as y } from "./constants.js";
|
|
15
|
+
const s = (r) => /* @__PURE__ */ g.createElement("div", p({}, r)), T = {
|
|
16
|
+
ellipsis: !1,
|
|
17
|
+
fontWeight: void 0,
|
|
18
|
+
fontSize: void 0,
|
|
19
|
+
lineHeight: void 0,
|
|
20
|
+
textColor: void 0,
|
|
21
|
+
textAlign: void 0,
|
|
22
|
+
textTransform: void 0,
|
|
23
|
+
variant: y
|
|
24
|
+
}, d = {
|
|
25
|
+
ellipsis: t.bool,
|
|
26
|
+
fontSize: t.oneOfType([t.number, t.string]),
|
|
27
|
+
fontWeight: t.string,
|
|
28
|
+
lineHeight: t.oneOfType([t.number, t.string]),
|
|
29
|
+
textAlign: t.string,
|
|
30
|
+
textColor: t.string,
|
|
31
|
+
textTransform: t.string,
|
|
32
|
+
variant: t.oneOf(m)
|
|
33
|
+
};
|
|
34
|
+
s.defaultProps = T;
|
|
35
|
+
s.propTypes = d;
|
|
36
|
+
export {
|
|
37
|
+
s as TypographyProps,
|
|
38
|
+
T as typographyDefaultProps,
|
|
39
|
+
d as typographyPropTypes
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="alpha",e="beta",A="delta",o="epsilon",s="omega",n="pi",T="sigma",c=[t,e,A,o,s,n,T];exports.ALPHA=t;exports.BETA=e;exports.DELTA=A;exports.EPSILON=o;exports.OMEGA=s;exports.PI=n;exports.SIGMA=T;exports.TEXT_VARIANTS=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Typography.cjs");exports.Typography=e.Typography;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./constants.cjs"),n=({ellipsis:t})=>t&&`
|
|
2
|
+
display: block;
|
|
3
|
+
white-space: nowrap;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
text-overflow: ellipsis;
|
|
6
|
+
`,s=({variant:t,theme:i})=>{switch(t){case e.ALPHA:return`
|
|
7
|
+
font-weight: ${i.fontWeights.bold};
|
|
8
|
+
font-size: ${i.fontSizes[5]};
|
|
9
|
+
line-height: ${i.lineHeights[2]};
|
|
10
|
+
`;case e.BETA:return`
|
|
11
|
+
font-weight: ${i.fontWeights.bold};
|
|
12
|
+
font-size: ${i.fontSizes[4]};
|
|
13
|
+
line-height: ${i.lineHeights[1]};
|
|
14
|
+
`;case e.DELTA:return`
|
|
15
|
+
font-weight: ${i.fontWeights.semiBold};
|
|
16
|
+
font-size: ${i.fontSizes[3]};
|
|
17
|
+
line-height: ${i.lineHeights[2]};
|
|
18
|
+
`;case e.EPSILON:return`
|
|
19
|
+
font-size: ${i.fontSizes[3]};
|
|
20
|
+
line-height: ${i.lineHeights[6]};
|
|
21
|
+
`;case e.OMEGA:return`
|
|
22
|
+
font-size: ${i.fontSizes[2]};
|
|
23
|
+
line-height: ${i.lineHeights[4]};
|
|
24
|
+
`;case e.PI:return`
|
|
25
|
+
font-size: ${i.fontSizes[1]};
|
|
26
|
+
line-height: ${i.lineHeights[3]};
|
|
27
|
+
`;case e.SIGMA:return`
|
|
28
|
+
font-weight: ${i.fontWeights.bold};
|
|
29
|
+
font-size: ${i.fontSizes[0]};
|
|
30
|
+
line-height: ${i.lineHeights[5]};
|
|
31
|
+
text-transform: uppercase;
|
|
32
|
+
`;default:return`
|
|
33
|
+
font-size: ${i.fontSizes[2]};
|
|
34
|
+
`}},o=({theme:t,textColor:i})=>t.colors[i||"neutral800"];exports.ellipsisStyle=n;exports.handleColor=o;exports.variantStyle=s;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { SIGMA as t, PI as e, OMEGA as s, EPSILON as o, DELTA as l, BETA as f, ALPHA as r } from "./constants.js";
|
|
2
|
+
const $ = ({ ellipsis: n }) => n && `
|
|
3
|
+
display: block;
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
text-overflow: ellipsis;
|
|
7
|
+
`, a = ({ variant: n, theme: i }) => {
|
|
8
|
+
switch (n) {
|
|
9
|
+
case r:
|
|
10
|
+
return `
|
|
11
|
+
font-weight: ${i.fontWeights.bold};
|
|
12
|
+
font-size: ${i.fontSizes[5]};
|
|
13
|
+
line-height: ${i.lineHeights[2]};
|
|
14
|
+
`;
|
|
15
|
+
case f:
|
|
16
|
+
return `
|
|
17
|
+
font-weight: ${i.fontWeights.bold};
|
|
18
|
+
font-size: ${i.fontSizes[4]};
|
|
19
|
+
line-height: ${i.lineHeights[1]};
|
|
20
|
+
`;
|
|
21
|
+
case l:
|
|
22
|
+
return `
|
|
23
|
+
font-weight: ${i.fontWeights.semiBold};
|
|
24
|
+
font-size: ${i.fontSizes[3]};
|
|
25
|
+
line-height: ${i.lineHeights[2]};
|
|
26
|
+
`;
|
|
27
|
+
case o:
|
|
28
|
+
return `
|
|
29
|
+
font-size: ${i.fontSizes[3]};
|
|
30
|
+
line-height: ${i.lineHeights[6]};
|
|
31
|
+
`;
|
|
32
|
+
case s:
|
|
33
|
+
return `
|
|
34
|
+
font-size: ${i.fontSizes[2]};
|
|
35
|
+
line-height: ${i.lineHeights[4]};
|
|
36
|
+
`;
|
|
37
|
+
case e:
|
|
38
|
+
return `
|
|
39
|
+
font-size: ${i.fontSizes[1]};
|
|
40
|
+
line-height: ${i.lineHeights[3]};
|
|
41
|
+
`;
|
|
42
|
+
case t:
|
|
43
|
+
return `
|
|
44
|
+
font-weight: ${i.fontWeights.bold};
|
|
45
|
+
font-size: ${i.fontSizes[0]};
|
|
46
|
+
line-height: ${i.lineHeights[5]};
|
|
47
|
+
text-transform: uppercase;
|
|
48
|
+
`;
|
|
49
|
+
default:
|
|
50
|
+
return `
|
|
51
|
+
font-size: ${i.fontSizes[2]};
|
|
52
|
+
`;
|
|
53
|
+
}
|
|
54
|
+
}, z = ({ theme: n, textColor: i }) => n.colors[i || "neutral800"];
|
|
55
|
+
export {
|
|
56
|
+
$ as ellipsisStyle,
|
|
57
|
+
z as handleColor,
|
|
58
|
+
a as variantStyle
|
|
59
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("styled-components"),d=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},i=d(t),l=i.default.div`
|
|
2
|
+
border: 0;
|
|
3
|
+
clip: rect(0 0 0 0);
|
|
4
|
+
height: 1px;
|
|
5
|
+
margin: -1px;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
padding: 0;
|
|
8
|
+
position: absolute;
|
|
9
|
+
width: 1px;
|
|
10
|
+
`;exports.VisuallyHidden=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./VisuallyHidden.cjs");exports.VisuallyHidden=e.VisuallyHidden;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=e=>e.replace(":","-");exports.escapeSelector=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let e=0;const t=()=>++e;exports.genId=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="en-EN",a=()=>typeof navigator=="undefined"?e:navigator.language?navigator.language:navigator.userLanguage?navigator.userLanguage:e;exports.getDefaultLocale=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=(t,e)=>[...t.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')].filter(r=>r.hasAttribute("disabled")?!1:e?!0:r.getAttribute("tabindex")!=="-1"),a=t=>t.filter(e=>e.tagName==="INPUT"?e.type!=="checkbox"&&e.type!=="radio":!1);exports.getFocusableNodes=s;exports.getFocusableNodesWithKeyboardNav=a;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const u = (t, e) => [
|
|
2
|
+
...t.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')
|
|
3
|
+
].filter((r) => r.hasAttribute("disabled") ? !1 : e ? !0 : r.getAttribute("tabindex") !== "-1"), n = (t) => t.filter((e) => e.tagName === "INPUT" ? e.type !== "checkbox" && e.type !== "radio" : !1);
|
|
4
|
+
export {
|
|
5
|
+
u as getFocusableNodes,
|
|
6
|
+
n as getFocusableNodesWithKeyboardNav
|
|
7
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";const e=(o,s,i)=>{let r=s;if(!Array.isArray(s)&&typeof s=="object"&&(r=[s==null?void 0:s.desktop,s==null?void 0:s.tablet,s==null?void 0:s.mobile]),r===void 0)return;if(Array.isArray(r)){const[n,c,d]=r;let t=`${o}: ${i.spaces[n]};`;return c!==void 0&&(t+=`${i.mediaQueries.tablet}{
|
|
2
|
+
${o}: ${i.spaces[c]};
|
|
3
|
+
}`),d!==void 0&&(t+=`${i.mediaQueries.mobile}{
|
|
4
|
+
${o}: ${i.spaces[d]};
|
|
5
|
+
}`),t}const $=i.spaces[r]||r;return`${o}: ${$};`};module.exports=e;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const a = (o, s, i) => {
|
|
2
|
+
let r = s;
|
|
3
|
+
if (!Array.isArray(s) && typeof s == "object" && (r = [s == null ? void 0 : s.desktop, s == null ? void 0 : s.tablet, s == null ? void 0 : s.mobile]), r === void 0)
|
|
4
|
+
return;
|
|
5
|
+
if (Array.isArray(r)) {
|
|
6
|
+
const [n, d, $] = r;
|
|
7
|
+
let t = `${o}: ${i.spaces[n]};`;
|
|
8
|
+
return d !== void 0 && (t += `${i.mediaQueries.tablet}{
|
|
9
|
+
${o}: ${i.spaces[d]};
|
|
10
|
+
}`), $ !== void 0 && (t += `${i.mediaQueries.mobile}{
|
|
11
|
+
${o}: ${i.spaces[$]};
|
|
12
|
+
}`), t;
|
|
13
|
+
}
|
|
14
|
+
const c = i.spaces[r] || r;
|
|
15
|
+
return `${o}: ${c};`;
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
a as default
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={DOWN:"ArrowDown",UP:"ArrowUp",RIGHT:"ArrowRight",LEFT:"ArrowLeft",ESCAPE:"Escape",ENTER:"Enter",SPACE:" ",TAB:"Tab",END:"End",HOME:"Home",DELETE:"Delete",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",BACKSPACE:"Backspace",CLEAR:"Clear"};exports.KeyboardKeys=e;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const E = {
|
|
2
|
+
DOWN: "ArrowDown",
|
|
3
|
+
UP: "ArrowUp",
|
|
4
|
+
RIGHT: "ArrowRight",
|
|
5
|
+
LEFT: "ArrowLeft",
|
|
6
|
+
ESCAPE: "Escape",
|
|
7
|
+
ENTER: "Enter",
|
|
8
|
+
SPACE: " ",
|
|
9
|
+
TAB: "Tab",
|
|
10
|
+
END: "End",
|
|
11
|
+
HOME: "Home",
|
|
12
|
+
DELETE: "Delete",
|
|
13
|
+
PAGE_UP: "PageUp",
|
|
14
|
+
PAGE_DOWN: "PageDown",
|
|
15
|
+
BACKSPACE: "Backspace",
|
|
16
|
+
CLEAR: "Clear"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
E as KeyboardKeys
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=(t,e)=>`${t}${Math.floor(e*255).toString(16).padStart(2,0)}`;exports.setOpacity=o;
|