@strapi/design-system 0.0.0-599b75fb-test → 0.0.0-622b91ef
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/README.md +47 -0
- package/dist/Accordion/Accordion.cjs +4 -4
- package/dist/Accordion/Accordion.js +13 -71
- package/dist/Accordion/AccordionContent.cjs +1 -1
- package/dist/Accordion/AccordionContent.js +3 -16
- package/dist/Accordion/AccordionContext.cjs +1 -1
- package/dist/Accordion/AccordionGroup.cjs +4 -4
- package/dist/Accordion/AccordionGroup.js +19 -89
- package/dist/Accordion/AccordionToggle.cjs +3 -3
- package/dist/Accordion/AccordionToggle.js +11 -101
- package/dist/Accordion/index.cjs +1 -1
- package/dist/Accordion/utils.cjs +1 -1
- package/dist/Alert/Alert.cjs +23 -29
- package/dist/Alert/Alert.js +33 -111
- package/dist/Alert/index.cjs +1 -1
- package/dist/Alert/utils.cjs +1 -1
- package/dist/Alert/utils.js +14 -3
- package/dist/Avatar/Avatar.cjs +5 -5
- package/dist/Avatar/Avatar.js +12 -56
- package/dist/Avatar/AvatarGroup.cjs +3 -3
- package/dist/Avatar/constants.cjs +1 -1
- package/dist/Avatar/index.cjs +1 -1
- package/dist/Badge/Badge.cjs +2 -2
- package/dist/Badge/Badge.js +4 -33
- package/dist/Badge/index.cjs +1 -1
- package/dist/BaseButton/BaseButton.cjs +4 -4
- package/dist/BaseButton/BaseButton.js +15 -38
- package/dist/BaseButton/index.cjs +1 -1
- package/dist/BaseCheckbox/BaseCheckbox.cjs +4 -4
- package/dist/BaseCheckbox/BaseCheckbox.js +19 -62
- package/dist/BaseCheckbox/index.cjs +1 -1
- package/dist/BaseCheckbox/utils.cjs +1 -1
- package/dist/BaseLink/BaseLink.cjs +1 -3
- package/dist/BaseLink/BaseLink.js +2 -18
- package/dist/BaseLink/index.cjs +1 -1
- package/dist/BaseRadio/BaseRadio.cjs +2 -2
- package/dist/BaseRadio/BaseRadio.js +12 -38
- package/dist/BaseRadio/RadioGroup.cjs +1 -1
- package/dist/BaseRadio/RadioGroup.js +3 -25
- package/dist/BaseRadio/context.cjs +1 -1
- package/dist/BaseRadio/index.cjs +1 -1
- package/dist/BaseRadio/utils.cjs +1 -1
- package/dist/Box/Box.cjs +3 -3
- package/dist/Box/Box.js +47 -173
- package/dist/Box/index.cjs +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.cjs +4 -4
- package/dist/Breadcrumbs/Breadcrumbs.js +10 -43
- package/dist/Breadcrumbs/index.cjs +1 -1
- package/dist/Button/Button.cjs +10 -5
- package/dist/Button/Button.js +27 -69
- package/dist/Button/constants.cjs +1 -1
- package/dist/Button/index.cjs +1 -1
- package/dist/Button/utils.cjs +1 -1
- package/dist/Card/Card.cjs +1 -1
- package/dist/Card/Card.js +5 -25
- package/dist/Card/CardAction.cjs +2 -2
- package/dist/Card/CardAsset.cjs +3 -3
- package/dist/Card/CardAsset.js +5 -25
- package/dist/Card/CardBadge.cjs +2 -2
- package/dist/Card/CardBadge.js +2 -8
- package/dist/Card/CardBody.cjs +1 -1
- package/dist/Card/CardBody.js +1 -10
- package/dist/Card/CardCheckbox.cjs +1 -1
- package/dist/Card/CardCheckbox.js +5 -10
- package/dist/Card/CardContent.cjs +2 -2
- package/dist/Card/CardContent.js +1 -7
- package/dist/Card/CardContext.cjs +1 -1
- package/dist/Card/CardContext.js +1 -3
- package/dist/Card/CardHeader.cjs +2 -2
- package/dist/Card/CardHeader.js +2 -8
- package/dist/Card/CardTimer.cjs +1 -1
- package/dist/Card/CardTimer.js +1 -19
- package/dist/Card/CardTitle.cjs +1 -1
- package/dist/Card/CardTitle.js +3 -17
- package/dist/Card/index.cjs +1 -1
- package/dist/CarouselInput/Carousel.cjs +6 -7
- package/dist/CarouselInput/Carousel.js +24 -69
- package/dist/CarouselInput/CarouselActions.cjs +1 -1
- package/dist/CarouselInput/CarouselActions.js +4 -16
- package/dist/CarouselInput/CarouselImage.cjs +3 -4
- package/dist/CarouselInput/CarouselImage.js +13 -22
- package/dist/CarouselInput/CarouselInput.cjs +1 -1
- package/dist/CarouselInput/CarouselInput.js +12 -72
- package/dist/CarouselInput/CarouselSlide.cjs +1 -3
- package/dist/CarouselInput/CarouselSlide.js +4 -28
- package/dist/CarouselInput/index.cjs +1 -1
- package/dist/Checkbox/Checkbox.cjs +2 -2
- package/dist/Checkbox/Checkbox.js +21 -38
- package/dist/Checkbox/index.cjs +1 -1
- package/dist/Combobox/Combobox.cjs +107 -1
- package/dist/Combobox/Combobox.js +168 -280
- package/dist/Combobox/ComboboxList.cjs +5 -1
- package/dist/Combobox/ComboboxList.js +8 -6
- package/dist/Combobox/ComboboxOption.cjs +1 -1
- package/dist/Combobox/ComboboxOption.js +3 -29
- package/dist/Combobox/index.cjs +1 -1
- package/dist/DatePicker/DatePicker.cjs +85 -5
- package/dist/DatePicker/DatePicker.js +423 -76
- package/dist/DatePicker/index.cjs +1 -1
- package/dist/DateTimePicker/DateTimePicker.cjs +7 -1
- package/dist/DateTimePicker/DateTimePicker.js +96 -103
- package/dist/DateTimePicker/index.cjs +1 -1
- package/dist/DateTimePicker/index.js +3 -2
- package/dist/DesignSystemProvider.cjs +1 -0
- package/dist/DesignSystemProvider.js +10 -0
- package/dist/Dialog/Dialog.cjs +4 -4
- package/dist/Dialog/Dialog.js +20 -45
- package/dist/Dialog/DialogBody.cjs +2 -2
- package/dist/Dialog/DialogBody.js +9 -18
- package/dist/Dialog/DialogFooter.cjs +2 -2
- package/dist/Dialog/DialogFooter.js +7 -17
- package/dist/Dialog/index.cjs +1 -1
- package/dist/DismissibleLayer/index.cjs +1 -1
- package/dist/DismissibleLayer/index.js +3 -2
- package/dist/Divider/Divider.cjs +2 -2
- package/dist/Divider/Divider.js +6 -15
- package/dist/Divider/index.cjs +1 -1
- package/dist/EmptyStateLayout/EmptyStateLayout.cjs +2 -7
- package/dist/EmptyStateLayout/EmptyStateLayout.js +8 -25
- package/dist/EmptyStateLayout/index.cjs +1 -1
- package/dist/EmptyStateLayout/story-assets/Illo.cjs +1 -1
- package/dist/EmptyStateLayout/story-assets/Illo.js +3 -62
- package/dist/Field/Field.cjs +1 -1
- package/dist/Field/Field.js +5 -26
- package/dist/Field/FieldAction.cjs +2 -2
- package/dist/Field/FieldAction.js +5 -20
- package/dist/Field/FieldContext.cjs +1 -1
- package/dist/Field/FieldError.cjs +1 -1
- package/dist/Field/FieldError.js +2 -12
- package/dist/Field/FieldHint.cjs +1 -1
- package/dist/Field/FieldHint.js +4 -14
- package/dist/Field/FieldInput.cjs +4 -4
- package/dist/Field/FieldInput.js +19 -86
- package/dist/Field/FieldLabel.cjs +4 -4
- package/dist/Field/FieldLabel.js +7 -32
- package/dist/Field/index.cjs +1 -1
- package/dist/Flex/Flex.cjs +4 -4
- package/dist/Flex/Flex.js +10 -25
- package/dist/Flex/index.cjs +1 -1
- package/dist/FocusTrap/FocusTrap.cjs +1 -1
- package/dist/FocusTrap/FocusTrap.js +14 -22
- package/dist/FocusTrap/index.cjs +1 -1
- package/dist/Grid/Grid.cjs +3 -3
- package/dist/Grid/Grid.js +10 -20
- package/dist/Grid/GridItem.cjs +2 -2
- package/dist/Grid/GridItem.js +10 -26
- package/dist/Grid/index.cjs +1 -1
- package/dist/Icon/Icon.cjs +3 -3
- package/dist/Icon/Icon.js +6 -21
- package/dist/Icon/index.cjs +1 -1
- package/dist/IconButton/IconButton.cjs +4 -4
- package/dist/IconButton/IconButton.js +34 -85
- package/dist/IconButton/index.cjs +1 -1
- package/dist/JSONInput/JSONInput.cjs +1 -1
- package/dist/JSONInput/JSONInput.js +11 -56
- package/dist/JSONInput/JSONInputContainer.cjs +3 -3
- package/dist/JSONInput/JSONInputContainer.js +7 -14
- package/dist/JSONInput/index.cjs +1 -1
- package/dist/JSONInput/utils/decorationExtension.cjs +1 -1
- package/dist/JSONInput/utils/decorationExtension.js +3 -0
- package/dist/KeyboardNavigable/KeyboardNavigable.cjs +1 -1
- package/dist/KeyboardNavigable/KeyboardNavigable.js +32 -39
- package/dist/KeyboardNavigable/index.cjs +1 -1
- package/dist/Layout/ActionLayout.cjs +1 -9
- package/dist/Layout/ActionLayout.js +4 -23
- package/dist/Layout/ContentLayout.cjs +1 -1
- package/dist/Layout/ContentLayout.js +3 -7
- package/dist/Layout/GridLayout.cjs +3 -3
- package/dist/Layout/GridLayout.js +4 -8
- package/dist/Layout/HeaderLayout.cjs +4 -3
- package/dist/Layout/HeaderLayout.js +25 -96
- package/dist/Layout/Layout.cjs +4 -4
- package/dist/Layout/Layout.js +8 -16
- package/dist/Layout/TwoColsLayout.cjs +1 -1
- package/dist/Layout/TwoColsLayout.js +6 -11
- package/dist/Layout/index.cjs +1 -1
- package/dist/Link/Link.cjs +4 -4
- package/dist/Link/Link.js +9 -53
- package/dist/Link/index.cjs +1 -1
- package/dist/LinkButton/LinkButton.cjs +2 -2
- package/dist/LinkButton/LinkButton.js +8 -51
- package/dist/LinkButton/index.cjs +1 -1
- package/dist/LiveRegions/LiveRegions.cjs +1 -1
- package/dist/LiveRegions/LiveRegions.js +1 -18
- package/dist/LiveRegions/constants.cjs +1 -1
- package/dist/LiveRegions/index.cjs +1 -1
- package/dist/LiveRegions/useNotifyAT.cjs +1 -1
- package/dist/Loader/Loader.cjs +2 -2
- package/dist/Loader/Loader.js +3 -22
- package/dist/Loader/index.cjs +1 -1
- package/dist/Main/Main.cjs +2 -2
- package/dist/Main/Main.js +6 -15
- package/dist/Main/SkipToContent.cjs +4 -7
- package/dist/Main/SkipToContent.js +5 -24
- package/dist/Main/index.cjs +1 -1
- package/dist/MainNav/MainNav.cjs +2 -2
- package/dist/MainNav/MainNav.js +9 -30
- package/dist/MainNav/MainNavContext.cjs +1 -1
- package/dist/MainNav/MainNavContext.js +1 -1
- package/dist/MainNav/NavBrand.cjs +3 -3
- package/dist/MainNav/NavBrand.js +14 -24
- package/dist/MainNav/NavCondense.cjs +2 -2
- package/dist/MainNav/NavCondense.js +10 -14
- package/dist/MainNav/NavFooter.cjs +1 -1
- package/dist/MainNav/NavFooter.js +4 -9
- package/dist/MainNav/NavLink.cjs +6 -6
- package/dist/MainNav/NavLink.js +39 -51
- package/dist/MainNav/NavSection.cjs +1 -1
- package/dist/MainNav/NavSection.js +9 -33
- package/dist/MainNav/NavSections.cjs +2 -2
- package/dist/MainNav/NavSections.js +8 -21
- package/dist/MainNav/NavUser.cjs +2 -2
- package/dist/MainNav/NavUser.js +14 -25
- package/dist/MainNav/index.cjs +1 -1
- package/dist/ModalLayout/ModalBody.cjs +2 -2
- package/dist/ModalLayout/ModalBody.js +6 -6
- package/dist/ModalLayout/ModalContext.cjs +1 -1
- package/dist/ModalLayout/ModalContext.js +2 -1
- package/dist/ModalLayout/ModalFooter.cjs +2 -6
- package/dist/ModalLayout/ModalFooter.js +8 -21
- package/dist/ModalLayout/ModalHeader.cjs +2 -2
- package/dist/ModalLayout/ModalHeader.js +13 -21
- package/dist/ModalLayout/ModalLayout.cjs +3 -5
- package/dist/ModalLayout/ModalLayout.js +12 -31
- package/dist/ModalLayout/index.cjs +1 -1
- package/dist/NumberInput/NumberInput.cjs +2 -2
- package/dist/NumberInput/NumberInput.js +69 -162
- package/dist/NumberInput/index.cjs +1 -1
- package/dist/Pagination/Pagination.cjs +1 -5
- package/dist/Pagination/Pagination.js +8 -21
- package/dist/Pagination/PaginationContext.cjs +1 -1
- package/dist/Pagination/components.cjs +10 -13
- package/dist/Pagination/components.js +33 -69
- package/dist/Pagination/index.cjs +1 -1
- package/dist/Popover/Popover.cjs +4 -5
- package/dist/Popover/Popover.js +105 -110
- package/dist/Popover/index.cjs +1 -1
- package/dist/Popover/index.js +5 -9
- package/dist/Popover/primitives.cjs +1 -0
- package/dist/Popover/primitives.js +5 -0
- package/dist/Portal/Portal.cjs +1 -1
- package/dist/Portal/Portal.js +7 -11
- package/dist/Portal/index.cjs +1 -1
- package/dist/ProgressBar/ProgressBar.cjs +5 -5
- package/dist/ProgressBar/ProgressBar.js +6 -36
- package/dist/ProgressBar/index.cjs +1 -1
- package/dist/Radio/Radio.cjs +1 -4
- package/dist/Radio/Radio.js +6 -15
- package/dist/Radio/index.cjs +1 -1
- package/dist/RawTable/RawCell.cjs +1 -1
- package/dist/RawTable/RawCell.js +6 -29
- package/dist/RawTable/RawTable.cjs +1 -1
- package/dist/RawTable/RawTable.js +4 -28
- package/dist/RawTable/RawTableContext.cjs +1 -1
- package/dist/RawTable/RawTbody.cjs +1 -1
- package/dist/RawTable/RawTbody.js +3 -11
- package/dist/RawTable/RawThead.cjs +1 -1
- package/dist/RawTable/RawThead.js +3 -11
- package/dist/RawTable/RawTr.cjs +1 -1
- package/dist/RawTable/RawTr.js +3 -13
- package/dist/RawTable/focusFocusable.cjs +1 -1
- package/dist/RawTable/index.cjs +1 -1
- package/dist/Searchbar/SearchForm.cjs +1 -1
- package/dist/Searchbar/SearchForm.js +3 -3
- package/dist/Searchbar/Searchbar.cjs +10 -11
- package/dist/Searchbar/Searchbar.js +31 -59
- package/dist/Searchbar/index.cjs +1 -1
- package/dist/Select/MultiSelect.cjs +30 -0
- package/dist/Select/MultiSelect.js +75 -0
- package/dist/Select/MultiSelectNested.cjs +3 -1
- package/dist/Select/MultiSelectNested.js +7 -12
- package/dist/Select/OptGroup.cjs +5 -1
- package/dist/Select/OptGroup.js +8 -22
- package/dist/Select/Option.cjs +5 -45
- package/dist/Select/Option.js +13 -99
- package/dist/Select/Select.cjs +6 -3
- package/dist/Select/Select.js +16 -206
- package/dist/Select/SelectList.cjs +5 -1
- package/dist/Select/SelectList.js +67 -69
- package/dist/Select/SelectParts.cjs +83 -0
- package/dist/Select/SelectParts.js +110 -0
- package/dist/Select/SingleSelect.cjs +1 -0
- package/dist/Select/SingleSelect.js +44 -0
- package/dist/Select/index.cjs +1 -1
- package/dist/Select/index.js +17 -10
- package/dist/SimpleMenu/SimpleMenu.cjs +9 -9
- package/dist/SimpleMenu/SimpleMenu.js +73 -143
- package/dist/SimpleMenu/index.cjs +1 -1
- package/dist/SimpleMenu/utils.cjs +1 -1
- package/dist/Stack/Stack.cjs +5 -5
- package/dist/Stack/Stack.js +7 -28
- package/dist/Stack/index.cjs +1 -1
- package/dist/Status/Status.cjs +7 -7
- package/dist/Status/Status.js +12 -38
- package/dist/Status/index.cjs +1 -1
- package/dist/SubNav/SubNav.cjs +5 -5
- package/dist/SubNav/SubNav.js +8 -13
- package/dist/SubNav/SubNavHeader.cjs +3 -3
- package/dist/SubNav/SubNavHeader.js +32 -69
- package/dist/SubNav/SubNavLink.cjs +13 -13
- package/dist/SubNav/SubNavLink.js +18 -44
- package/dist/SubNav/SubNavLinkSection.cjs +4 -4
- package/dist/SubNav/SubNavLinkSection.js +15 -24
- package/dist/SubNav/SubNavSection.cjs +2 -2
- package/dist/SubNav/SubNavSection.js +16 -49
- package/dist/SubNav/SubNavSectionLabel.cjs +3 -3
- package/dist/SubNav/SubNavSectionLabel.js +11 -36
- package/dist/SubNav/SubNavSections.cjs +1 -1
- package/dist/SubNav/SubNavSections.js +5 -18
- package/dist/SubNav/index.cjs +1 -1
- package/dist/Switch/Switch.cjs +3 -3
- package/dist/Switch/Switch.js +15 -44
- package/dist/Switch/index.cjs +1 -1
- package/dist/Table/Cell.cjs +3 -3
- package/dist/Table/Cell.js +9 -18
- package/dist/Table/TFooter.cjs +3 -3
- package/dist/Table/TFooter.js +11 -16
- package/dist/Table/Table.cjs +12 -12
- package/dist/Table/Table.js +16 -24
- package/dist/Table/Tbody.cjs +2 -2
- package/dist/Table/Tbody.js +6 -6
- package/dist/Table/Thead.cjs +2 -2
- package/dist/Table/Thead.js +6 -6
- package/dist/Table/Tr.cjs +2 -2
- package/dist/Table/Tr.js +6 -6
- package/dist/Table/index.cjs +1 -1
- package/dist/Tabs/TabGroup.cjs +1 -1
- package/dist/Tabs/TabGroup.js +13 -36
- package/dist/Tabs/TabPanels.cjs +1 -1
- package/dist/Tabs/TabPanels.js +11 -21
- package/dist/Tabs/Tabs.cjs +2 -2
- package/dist/Tabs/Tabs.js +56 -106
- package/dist/Tabs/TabsContext.cjs +1 -1
- package/dist/Tabs/TabsContext.js +11 -4
- package/dist/Tabs/components.cjs +17 -17
- package/dist/Tabs/index.cjs +1 -1
- package/dist/Tag/Tag.cjs +4 -4
- package/dist/Tag/Tag.js +6 -43
- package/dist/Tag/index.cjs +1 -1
- package/dist/TextButton/TextButton.cjs +6 -12
- package/dist/TextButton/TextButton.js +17 -60
- package/dist/TextButton/index.cjs +1 -1
- package/dist/TextInput/TextInput.cjs +1 -1
- package/dist/TextInput/TextInput.js +10 -41
- package/dist/TextInput/index.cjs +1 -1
- package/dist/Textarea/Textarea.cjs +14 -12
- package/dist/Textarea/Textarea.js +33 -52
- package/dist/Textarea/index.cjs +1 -1
- package/dist/ThemeProvider/ThemeProvider.cjs +2 -2
- package/dist/ThemeProvider/ThemeProvider.js +5 -12
- package/dist/ThemeProvider/hooks.cjs +1 -1
- package/dist/ThemeProvider/index.cjs +1 -1
- package/dist/TimePicker/TimePicker.cjs +5 -7
- package/dist/TimePicker/TimePicker.js +79 -53
- package/dist/TimePicker/index.cjs +1 -1
- package/dist/TimePicker/index.js +3 -2
- package/dist/ToggleCheckbox/ToggleCheckbox.cjs +8 -8
- package/dist/ToggleCheckbox/ToggleCheckbox.js +27 -122
- package/dist/ToggleCheckbox/index.cjs +1 -1
- package/dist/ToggleInput/ToggleInput.cjs +3 -3
- package/dist/ToggleInput/ToggleInput.js +15 -62
- package/dist/ToggleInput/index.cjs +1 -1
- package/dist/Tooltip/Tooltip.cjs +2 -2
- package/dist/Tooltip/Tooltip.js +9 -52
- package/dist/Tooltip/hooks/useTooltipHandlers.cjs +1 -1
- package/dist/Tooltip/hooks/useTooltipLayout.cjs +1 -1
- package/dist/Tooltip/index.cjs +1 -1
- package/dist/Tooltip/utils/positionTooltip.cjs +1 -1
- package/dist/Typography/Typography.cjs +2 -2
- package/dist/Typography/Typography.js +11 -26
- package/dist/Typography/constants.cjs +1 -1
- package/dist/Typography/index.cjs +1 -1
- package/dist/Typography/utils.cjs +9 -9
- package/dist/VisuallyHidden/VisuallyHidden.cjs +1 -1
- package/dist/VisuallyHidden/index.cjs +1 -1
- package/dist/helpers/context.cjs +1 -0
- package/dist/helpers/context.js +21 -0
- package/dist/helpers/deprecations.cjs +1 -1
- package/dist/helpers/getDefaultLocale.cjs +4 -1
- package/dist/helpers/getDefaultLocale.js +7 -2
- package/dist/helpers/getFocusableNodes.cjs +1 -1
- package/dist/helpers/keyboardKeys.cjs +1 -1
- package/dist/helpers/objects.cjs +1 -1
- package/dist/helpers/objects.js +6 -22
- package/dist/helpers/setOpacity.cjs +1 -1
- package/dist/helpers/setTabIndexOnFirstItem.cjs +1 -1
- package/dist/helpers/strings.cjs +1 -0
- package/dist/helpers/strings.js +4 -0
- package/dist/helpers/theme.cjs +1 -1
- package/dist/helpers/useElementOnScreen.cjs +4 -1
- package/dist/helpers/useElementOnScreen.js +6 -1
- package/dist/helpers/useId.cjs +4 -1
- package/dist/helpers/useId.js +6 -1
- package/dist/helpers/useIntersection.cjs +4 -1
- package/dist/helpers/useIntersection.js +6 -1
- package/dist/helpers/useLockScroll.cjs +4 -1
- package/dist/helpers/useLockScroll.js +6 -1
- package/dist/helpers/usePrevious.cjs +4 -1
- package/dist/helpers/usePrevious.js +6 -1
- package/dist/helpers/useResizeObserver.cjs +4 -1
- package/dist/helpers/useResizeObserver.js +6 -1
- package/dist/hooks/useComposeRefs.cjs +1 -0
- package/dist/hooks/useComposeRefs.js +14 -0
- package/dist/hooks/useControllableState.cjs +1 -1
- package/dist/hooks/useControllableState.js +7 -7
- package/dist/hooks/useDateFormatter.cjs +1 -0
- package/dist/hooks/useDateFormatter.js +20 -0
- package/dist/hooks/useElementOnScreen.cjs +1 -1
- package/dist/hooks/useId.cjs +1 -1
- package/dist/hooks/useIntersection.cjs +1 -1
- package/dist/hooks/useIntersection.js +8 -8
- package/dist/hooks/useLockScroll.cjs +1 -1
- package/dist/hooks/usePrevious.cjs +1 -1
- package/dist/hooks/useResizeObserver.cjs +1 -1
- package/dist/hooks/useResizeObserver.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +305 -293
- package/dist/themes/common-theme.cjs +1 -1
- package/dist/themes/darkTheme/dark-colors.cjs +1 -1
- package/dist/themes/darkTheme/dark-shadows.cjs +1 -1
- package/dist/themes/darkTheme/index.cjs +1 -1
- package/dist/themes/extendTheme.cjs +4 -4
- package/dist/themes/extendTheme.js +21 -13
- package/dist/themes/index.cjs +1 -1
- package/dist/themes/lightTheme/index.cjs +1 -1
- package/dist/themes/lightTheme/light-colors.cjs +1 -1
- package/dist/themes/lightTheme/light-shadows.cjs +1 -1
- package/dist/themes/sizes.cjs +1 -1
- package/dist/themes/sizes.js +4 -4
- package/dist/themes/utils.cjs +4 -4
- package/dist/themes/utils.js +7 -6
- package/dist/v2/Breadcrumbs/Breadcrumbs.cjs +2 -2
- package/dist/v2/Breadcrumbs/Breadcrumbs.js +15 -19
- package/dist/v2/Breadcrumbs/Crumb.cjs +1 -1
- package/dist/v2/Breadcrumbs/Crumb.js +5 -23
- package/dist/v2/Breadcrumbs/CrumbLink.cjs +2 -2
- package/dist/v2/Breadcrumbs/CrumbLink.js +6 -14
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.cjs +4 -3
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.js +11 -16
- package/dist/v2/Breadcrumbs/Divider.cjs +1 -1
- package/dist/v2/Breadcrumbs/Divider.js +5 -5
- package/dist/v2/Breadcrumbs/index.cjs +1 -1
- package/dist/v2/Link/Link.cjs +13 -11
- package/dist/v2/Link/Link.js +23 -37
- package/dist/v2/Link/index.cjs +1 -1
- package/dist/v2/LinkButton/LinkButton.cjs +2 -2
- package/dist/v2/LinkButton/LinkButton.js +11 -49
- package/dist/v2/LinkButton/index.cjs +1 -1
- package/dist/v2/MainNav/MainNav.cjs +2 -2
- package/dist/v2/MainNav/MainNav.js +9 -30
- package/dist/v2/MainNav/MainNavContext.cjs +1 -1
- package/dist/v2/MainNav/MainNavContext.js +1 -1
- package/dist/v2/MainNav/NavBrand.cjs +3 -3
- package/dist/v2/MainNav/NavBrand.js +16 -23
- package/dist/v2/MainNav/NavCondense.cjs +2 -5
- package/dist/v2/MainNav/NavCondense.js +19 -22
- package/dist/v2/MainNav/NavFooter.cjs +1 -1
- package/dist/v2/MainNav/NavFooter.js +4 -9
- package/dist/v2/MainNav/NavLink.cjs +10 -10
- package/dist/v2/MainNav/NavLink.js +39 -50
- package/dist/v2/MainNav/NavSection.cjs +1 -1
- package/dist/v2/MainNav/NavSection.js +9 -33
- package/dist/v2/MainNav/NavSections.cjs +2 -2
- package/dist/v2/MainNav/NavSections.js +7 -20
- package/dist/v2/MainNav/NavUser.cjs +2 -2
- package/dist/v2/MainNav/NavUser.js +15 -26
- package/dist/v2/MainNav/index.cjs +1 -1
- package/dist/v2/Pagination/Pagination.cjs +1 -5
- package/dist/v2/Pagination/Pagination.js +8 -21
- package/dist/v2/Pagination/PaginationContext.cjs +1 -1
- package/dist/v2/Pagination/components.cjs +10 -13
- package/dist/v2/Pagination/components.js +31 -51
- package/dist/v2/Pagination/index.cjs +1 -1
- package/dist/v2/SimpleMenu/Menu.cjs +65 -0
- package/dist/v2/SimpleMenu/Menu.js +89 -0
- package/dist/v2/SimpleMenu/SimpleMenu.cjs +1 -33
- package/dist/v2/SimpleMenu/SimpleMenu.js +25 -177
- package/dist/v2/SimpleMenu/index.cjs +1 -1
- package/dist/v2/SimpleMenu/index.js +5 -3
- package/dist/v2/SubNav/SubNav.cjs +5 -5
- package/dist/v2/SubNav/SubNav.js +8 -13
- package/dist/v2/SubNav/SubNavHeader.cjs +3 -3
- package/dist/v2/SubNav/SubNavHeader.js +33 -70
- package/dist/v2/SubNav/SubNavLink.cjs +5 -5
- package/dist/v2/SubNav/SubNavLink.js +21 -49
- package/dist/v2/SubNav/SubNavLinkSection.cjs +4 -4
- package/dist/v2/SubNav/SubNavLinkSection.js +16 -24
- package/dist/v2/SubNav/SubNavSection.cjs +2 -2
- package/dist/v2/SubNav/SubNavSection.js +14 -46
- package/dist/v2/SubNav/SubNavSectionLabel.cjs +3 -3
- package/dist/v2/SubNav/SubNavSectionLabel.js +11 -36
- package/dist/v2/SubNav/SubNavSections.cjs +1 -1
- package/dist/v2/SubNav/SubNavSections.js +5 -18
- package/dist/v2/SubNav/index.cjs +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.js +53 -51
- package/package.json +23 -35
- package/dist/Combobox/components.cjs +0 -53
- package/dist/Combobox/components.js +0 -64
- package/dist/Combobox/utils.cjs +0 -1
- package/dist/Combobox/utils.js +0 -78
- package/dist/DatePicker/DatePickerCalendar.cjs +0 -1
- package/dist/DatePicker/DatePickerCalendar.js +0 -142
- package/dist/DatePicker/DatePickerTd.cjs +0 -19
- package/dist/DatePicker/DatePickerTd.js +0 -61
- package/dist/DatePicker/DatePickerTh.cjs +0 -9
- package/dist/DatePicker/DatePickerTh.js +0 -42
- package/dist/DatePicker/compareDates.cjs +0 -1
- package/dist/DatePicker/compareDates.js +0 -4
- package/dist/DatePicker/components.cjs +0 -33
- package/dist/DatePicker/components.js +0 -43
- package/dist/DatePicker/utils/formatDate.cjs +0 -1
- package/dist/DatePicker/utils/formatDate.js +0 -4
- package/dist/DatePicker/utils/generateWeeks.cjs +0 -1
- package/dist/DatePicker/utils/generateWeeks.js +0 -17
- package/dist/DatePicker/utils/getDayOfWeek.cjs +0 -1
- package/dist/DatePicker/utils/getDayOfWeek.js +0 -15
- package/dist/DatePicker/utils/getMonths.cjs +0 -1
- package/dist/DatePicker/utils/getMonths.js +0 -7
- package/dist/DatePicker/utils/getYears.cjs +0 -1
- package/dist/DatePicker/utils/getYears.js +0 -9
- package/dist/DatePicker/utils/index.cjs +0 -1
- package/dist/DatePicker/utils/index.js +0 -12
- package/dist/DismissibleLayer/DismissibleLayer.cjs +0 -1
- package/dist/DismissibleLayer/DismissibleLayer.js +0 -30
- package/dist/Grid/GridContext.cjs +0 -1
- package/dist/Grid/GridContext.js +0 -6
- package/dist/Select/SelectButton.cjs +0 -19
- package/dist/Select/SelectButton.js +0 -69
- package/dist/Select/SelectTags.cjs +0 -6
- package/dist/Select/SelectTags.js +0 -38
- package/dist/Select/components.cjs +0 -39
- package/dist/Select/components.js +0 -48
- package/dist/Select/constants.cjs +0 -1
- package/dist/Select/constants.js +0 -8
- package/dist/Select/hooks/useButtonRef.cjs +0 -1
- package/dist/Select/hooks/useButtonRef.js +0 -13
- package/dist/Select/hooks/useListRef.cjs +0 -1
- package/dist/Select/hooks/useListRef.js +0 -18
- package/dist/Select/utils.cjs +0 -1
- package/dist/Select/utils.js +0 -17
- package/dist/Tabs/useTabsFocus.cjs +0 -1
- package/dist/Tabs/useTabsFocus.js +0 -17
- package/dist/Textarea/TextareaInput.cjs +0 -30
- package/dist/Textarea/TextareaInput.js +0 -70
- package/dist/helpers/arrays.cjs +0 -1
- package/dist/helpers/arrays.js +0 -6
- package/dist/helpers/escapeSelector.cjs +0 -1
- package/dist/helpers/escapeSelector.js +0 -4
- package/dist/v2/SimpleMenu/utils.cjs +0 -12
- package/dist/v2/SimpleMenu/utils.js +0 -15
- /package/dist/BaseCheckbox/assets/{checkmark-black.cjs → checkmark-black.svg.cjs} +0 -0
- /package/dist/BaseCheckbox/assets/{checkmark-black.js → checkmark-black.svg.js} +0 -0
- /package/dist/BaseCheckbox/assets/{checkmark.cjs → checkmark.svg.cjs} +0 -0
- /package/dist/BaseCheckbox/assets/{checkmark.js → checkmark.svg.js} +0 -0
- /package/dist/Loader/assets/{loader.cjs → loader.svg.cjs} +0 -0
- /package/dist/Loader/assets/{loader.js → loader.svg.js} +0 -0
- /package/dist/Pagination/assets/{next.cjs → next.svg.cjs} +0 -0
- /package/dist/Pagination/assets/{next.js → next.svg.js} +0 -0
- /package/dist/Pagination/assets/{previous.cjs → previous.svg.cjs} +0 -0
- /package/dist/Pagination/assets/{previous.js → previous.svg.js} +0 -0
- /package/dist/v2/Pagination/assets/{next.cjs → next.svg.cjs} +0 -0
- /package/dist/v2/Pagination/assets/{next.js → next.svg.js} +0 -0
- /package/dist/v2/Pagination/assets/{previous.cjs → previous.svg.cjs} +0 -0
- /package/dist/v2/Pagination/assets/{previous.js → previous.svg.js} +0 -0
|
@@ -1,70 +1,23 @@
|
|
|
1
|
-
import r from "react";
|
|
2
|
-
import e from "prop-types";
|
|
1
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
3
2
|
import p from "styled-components";
|
|
4
|
-
import { Field as y } from "../Field/Field.js";
|
|
5
|
-
import { FieldLabel as T } from "../Field/FieldLabel.js";
|
|
6
|
-
import "../Field/FieldInput.js";
|
|
7
|
-
import { FieldHint as h } from "../Field/FieldHint.js";
|
|
8
|
-
import { FieldError as v } from "../Field/FieldError.js";
|
|
9
|
-
import "../Field/FieldContext.js";
|
|
10
|
-
import "../Field/FieldAction.js";
|
|
11
|
-
import { Flex as d } from "../Flex/Flex.js";
|
|
12
3
|
import { useId as F } from "../hooks/useId.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
4
|
+
import { ToggleCheckbox as I } from "../ToggleCheckbox/ToggleCheckbox.js";
|
|
5
|
+
import { Field as T } from "../Field/Field.js";
|
|
6
|
+
import { TextButton as j } from "../TextButton/TextButton.js";
|
|
7
|
+
import { Flex as d } from "../Flex/Flex.js";
|
|
8
|
+
import { FieldLabel as k } from "../Field/FieldLabel.js";
|
|
9
|
+
import { FieldHint as y } from "../Field/FieldHint.js";
|
|
10
|
+
import { FieldError as B } from "../Field/FieldError.js";
|
|
11
|
+
const C = p(T)`
|
|
17
12
|
max-width: 320px;
|
|
18
|
-
`,
|
|
13
|
+
`, q = p(j)`
|
|
19
14
|
align-self: flex-end;
|
|
20
15
|
margin-left: auto;
|
|
21
|
-
`,
|
|
22
|
-
|
|
23
|
-
size: s,
|
|
24
|
-
error: c,
|
|
25
|
-
hint: f,
|
|
26
|
-
label: i,
|
|
27
|
-
name: u,
|
|
28
|
-
labelAction: g,
|
|
29
|
-
required: b,
|
|
30
|
-
id: E,
|
|
31
|
-
onClear: l,
|
|
32
|
-
clearLabel: n,
|
|
33
|
-
checked: m,
|
|
34
|
-
...x
|
|
35
|
-
}) => {
|
|
36
|
-
const a = F(E);
|
|
37
|
-
return /* @__PURE__ */ r.createElement(O, { name: u, hint: f, error: c, id: a, required: b }, /* @__PURE__ */ r.createElement(d, { direction: "column", alignItems: "stretch", gap: 1 }, /* @__PURE__ */ r.createElement(d, null, /* @__PURE__ */ r.createElement(T, { action: g }, i), n && l && m !== null && !o && /* @__PURE__ */ r.createElement(z, { onClick: l }, n)), /* @__PURE__ */ r.createElement(C, { id: a, size: s, checked: m, disabled: o, ...x }, i), /* @__PURE__ */ r.createElement(h, null), /* @__PURE__ */ r.createElement(v, null)));
|
|
38
|
-
};
|
|
39
|
-
t.displayName = "ToggleInput";
|
|
40
|
-
t.defaultProps = {
|
|
41
|
-
checked: !1,
|
|
42
|
-
clearLabel: void 0,
|
|
43
|
-
disabled: !1,
|
|
44
|
-
error: void 0,
|
|
45
|
-
hint: void 0,
|
|
46
|
-
id: void 0,
|
|
47
|
-
label: "",
|
|
48
|
-
labelAction: void 0,
|
|
49
|
-
name: "",
|
|
50
|
-
onClear: void 0,
|
|
51
|
-
required: !1,
|
|
52
|
-
size: "M"
|
|
53
|
-
};
|
|
54
|
-
t.propTypes = {
|
|
55
|
-
checked: e.bool,
|
|
56
|
-
clearLabel: e.string,
|
|
57
|
-
disabled: e.bool,
|
|
58
|
-
error: e.string,
|
|
59
|
-
hint: e.oneOfType([e.string, e.node, e.arrayOf(e.node)]),
|
|
60
|
-
id: e.string,
|
|
61
|
-
label: e.string,
|
|
62
|
-
labelAction: e.node,
|
|
63
|
-
name: e.string,
|
|
64
|
-
onClear: e.func,
|
|
65
|
-
required: e.bool,
|
|
66
|
-
size: e.oneOf(Object.keys(k.input))
|
|
16
|
+
`, w = ({ disabled: e = !1, size: s = "M", error: f, hint: c, label: o, name: a, labelAction: g, required: h = !1, id: u, onClear: i, clearLabel: t, checked: n = !1, ...x }) => {
|
|
17
|
+
const l = F(u);
|
|
18
|
+
return r(C, { name: a, hint: c, error: f, id: l, required: h, children: m(d, { direction: "column", alignItems: "stretch", gap: 1, children: [m(d, { children: [r(k, { action: g, children: o }), t && i && n !== null && !e && r(q, { onClick: i, children: t })] }), r(I, { id: l, size: s, checked: n, disabled: e, ...x, children: o }), r(y, {}), r(B, {})] }) });
|
|
67
19
|
};
|
|
20
|
+
w.displayName = "ToggleInput";
|
|
68
21
|
export {
|
|
69
|
-
|
|
22
|
+
w as ToggleInput
|
|
70
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ToggleInput.cjs");exports.ToggleInput=e.ToggleInput;
|
package/dist/Tooltip/Tooltip.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),g=require("react"),x=require("styled-components"),j=require("./hooks/useTooltipHandlers.cjs"),h=require("./hooks/useTooltipLayout.cjs"),l=require("../hooks/useId.cjs"),T=require("../Portal/Portal.cjs"),q=require("../Box/Box.cjs"),_=require("../VisuallyHidden/VisuallyHidden.cjs"),m=require("../Typography/Typography.cjs"),v=e=>e&&e.__esModule?e:{default:e};function I(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 O=I(g),R=v(x),H=R.default(q.Box)`
|
|
2
2
|
/* z-index exist because of its position inside Modals */
|
|
3
3
|
z-index: 4;
|
|
4
4
|
display: ${({visible:e})=>e?"revert":"none"};
|
|
5
|
-
`,
|
|
5
|
+
`,M=({children:e,label:r,description:t,delay:n=500,position:d="top",id:u,...a})=>{const i=l.useId(u),c=l.useId(),{visible:s,...p}=j.useTooltipHandlers(n),{tooltipWrapperRef:f,toggleSourceRef:b}=h.useTooltipLayout(s,d),y=O.cloneElement(e,{tabIndex:0,"aria-labelledby":r?i:void 0,"aria-describedby":t?i:void 0,...p});return o.jsxs(o.Fragment,{children:[o.jsx(T.Portal,{children:o.jsxs(H,{id:i,background:"neutral900",hasRadius:!0,padding:2,role:"tooltip",ref:f,visible:s,position:"absolute",...a,children:[s&&o.jsx(_.VisuallyHidden,{id:c,children:t}),o.jsx(m.Typography,{as:"p",variant:"pi",fontWeight:"bold",textColor:"neutral0",children:r||t})]})}),o.jsx("span",{ref:b,children:y})]})};exports.Tooltip=M;
|
package/dist/Tooltip/Tooltip.js
CHANGED
|
@@ -3,66 +3,23 @@ import * as y from "react";
|
|
|
3
3
|
import g from "styled-components";
|
|
4
4
|
import { useTooltipHandlers as T } from "./hooks/useTooltipHandlers.js";
|
|
5
5
|
import { useTooltipLayout as v } from "./hooks/useTooltipLayout.js";
|
|
6
|
-
import { Box as I } from "../Box/Box.js";
|
|
7
6
|
import { useId as d } from "../hooks/useId.js";
|
|
8
|
-
import { Portal as
|
|
9
|
-
import {
|
|
10
|
-
import { VisuallyHidden as
|
|
11
|
-
|
|
7
|
+
import { Portal as I } from "../Portal/Portal.js";
|
|
8
|
+
import { Box as R } from "../Box/Box.js";
|
|
9
|
+
import { VisuallyHidden as H } from "../VisuallyHidden/VisuallyHidden.js";
|
|
10
|
+
import { Typography as W } from "../Typography/Typography.js";
|
|
11
|
+
const j = g(R)`
|
|
12
12
|
/* z-index exist because of its position inside Modals */
|
|
13
13
|
z-index: 4;
|
|
14
|
-
display: ${({
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
`, S = ({
|
|
18
|
-
children: e,
|
|
19
|
-
label: n,
|
|
20
|
-
description: r,
|
|
21
|
-
delay: s = 500,
|
|
22
|
-
position: p = "top",
|
|
23
|
-
id: a,
|
|
24
|
-
...m
|
|
25
|
-
}) => {
|
|
26
|
-
const t = d(a), c = d(), {
|
|
27
|
-
visible: i,
|
|
28
|
-
...f
|
|
29
|
-
} = T(s), {
|
|
30
|
-
tooltipWrapperRef: u,
|
|
31
|
-
toggleSourceRef: b
|
|
32
|
-
} = v(i, p), h = y.cloneElement(e, {
|
|
14
|
+
display: ${({ visible: e }) => e ? "revert" : "none"};
|
|
15
|
+
`, S = ({ children: e, label: n, description: r, delay: s = 500, position: p = "top", id: a, ...m }) => {
|
|
16
|
+
const t = d(a), c = d(), { visible: i, ...f } = T(s), { tooltipWrapperRef: u, toggleSourceRef: b } = v(i, p), h = y.cloneElement(e, {
|
|
33
17
|
tabIndex: 0,
|
|
34
18
|
"aria-labelledby": n ? t : void 0,
|
|
35
19
|
"aria-describedby": r ? t : void 0,
|
|
36
20
|
...f
|
|
37
21
|
});
|
|
38
|
-
return l(x, {
|
|
39
|
-
children: [o(R, {
|
|
40
|
-
children: l(j, {
|
|
41
|
-
id: t,
|
|
42
|
-
background: "neutral900",
|
|
43
|
-
hasRadius: !0,
|
|
44
|
-
padding: 2,
|
|
45
|
-
role: "tooltip",
|
|
46
|
-
ref: u,
|
|
47
|
-
visible: i,
|
|
48
|
-
position: "absolute",
|
|
49
|
-
...m,
|
|
50
|
-
children: [i && o(W, {
|
|
51
|
-
id: c,
|
|
52
|
-
children: r
|
|
53
|
-
}), o(H, {
|
|
54
|
-
as: "p",
|
|
55
|
-
variant: "pi",
|
|
56
|
-
fontWeight: "bold",
|
|
57
|
-
textColor: "neutral0",
|
|
58
|
-
children: n || r
|
|
59
|
-
})]
|
|
60
|
-
})
|
|
61
|
-
}), o("span", {
|
|
62
|
-
ref: b,
|
|
63
|
-
children: h
|
|
64
|
-
})]
|
|
65
|
-
});
|
|
22
|
+
return l(x, { children: [o(I, { children: l(j, { id: t, background: "neutral900", hasRadius: !0, padding: 2, role: "tooltip", ref: u, visible: i, position: "absolute", ...m, children: [i && o(H, { id: c, children: r }), o(W, { as: "p", variant: "pi", fontWeight: "bold", textColor: "neutral0", children: n || r })] }) }), o("span", { ref: b, children: h })] });
|
|
66
23
|
};
|
|
67
24
|
export {
|
|
68
25
|
S as Tooltip
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),u=r=>{const[s,e]=o.useState(!1),t=o.useRef(null),n=()=>{typeof t.current=="number"&&(clearTimeout(t.current),t.current=null)};return o.useEffect(()=>()=>{n()},[]),{visible:s,onFocus:()=>{e(!0)},onBlur:()=>{e(!1)},onMouseEnter:()=>{t.current=setTimeout(()=>{e(!0)},r)},onMouseLeave:()=>{n(),e(!1)}}};exports.useTooltipHandlers=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),c=require("../utils/positionTooltip.cjs"),i=(e,u)=>{const l=o.useRef(null),r=o.useRef(null);return o.useLayoutEffect(()=>{if(e){const t=l.current,s=r.current;if(t&&s){const n=c.positionTooltip(t,s,u);t.style.left=`${n.left}px`,t.style.top=`${n.top}px`}}},[u,e]),{tooltipWrapperRef:l,toggleSourceRef:r}};exports.useTooltipLayout=i;
|
package/dist/Tooltip/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./Tooltip.cjs");exports.Tooltip=o.Tooltip;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,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}},o=(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}},p=(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}},e=(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"?o(t,n):f==="left"?p(t,n):e(t,n)};exports.positionTooltip=r;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("styled-components"),o=require("./utils.cjs"),r=require("../helpers/theme.cjs"),i=e=>e&&e.__esModule?e:{default:e},a=i(n),s={fontSize:!0,fontWeight:!0},l=a.default.span.withConfig({shouldForwardProp:(e,t)=>!s[e]&&t(e)})`
|
|
2
2
|
${o.variantStyle}
|
|
3
3
|
${o.ellipsisStyle}
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// overwrite a variant attribute
|
|
7
7
|
font-weight: ${({theme:e,fontWeight:t})=>r.extractStyleFromTheme(e.fontWeights,t,void 0)};
|
|
8
8
|
font-size: ${({theme:e,fontSize:t})=>r.extractStyleFromTheme(e.fontSizes,t,void 0)};
|
|
9
|
-
line-height: ${({theme:e,lineHeight:t})=>r.extractStyleFromTheme(e.lineHeights,t,
|
|
9
|
+
line-height: ${({theme:e,lineHeight:t})=>r.extractStyleFromTheme(e.lineHeights,t,t)};
|
|
10
10
|
color: ${o.handleColor};
|
|
11
11
|
text-align: ${({textAlign:e})=>e};
|
|
12
12
|
text-decoration: ${({textDecoration:e})=>e};
|
|
@@ -1,40 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { variantStyle as
|
|
1
|
+
import r from "styled-components";
|
|
2
|
+
import { variantStyle as i, ellipsisStyle as n, handleColor as a } from "./utils.js";
|
|
3
3
|
import { extractStyleFromTheme as o } from "../helpers/theme.js";
|
|
4
4
|
const s = {
|
|
5
5
|
fontSize: !0,
|
|
6
6
|
fontWeight: !0
|
|
7
|
-
},
|
|
7
|
+
}, m = r.span.withConfig({
|
|
8
8
|
shouldForwardProp: (t, e) => !s[t] && e(t)
|
|
9
9
|
})`
|
|
10
|
-
${
|
|
10
|
+
${i}
|
|
11
11
|
${n}
|
|
12
12
|
|
|
13
13
|
// These properties need to come after {variantStyle}, because they might
|
|
14
14
|
// overwrite a variant attribute
|
|
15
|
-
font-weight: ${({
|
|
16
|
-
theme: t,
|
|
17
|
-
|
|
18
|
-
}) => o(t.fontWeights, e, void 0)};
|
|
19
|
-
font-size: ${({
|
|
20
|
-
theme: t,
|
|
21
|
-
fontSize: e
|
|
22
|
-
}) => o(t.fontSizes, e, void 0)};
|
|
23
|
-
line-height: ${({
|
|
24
|
-
theme: t,
|
|
25
|
-
lineHeight: e
|
|
26
|
-
}) => o(t.lineHeights, e, void 0)};
|
|
15
|
+
font-weight: ${({ theme: t, fontWeight: e }) => o(t.fontWeights, e, void 0)};
|
|
16
|
+
font-size: ${({ theme: t, fontSize: e }) => o(t.fontSizes, e, void 0)};
|
|
17
|
+
line-height: ${({ theme: t, lineHeight: e }) => o(t.lineHeights, e, e)};
|
|
27
18
|
color: ${a};
|
|
28
|
-
text-align: ${({
|
|
29
|
-
|
|
30
|
-
}) => t};
|
|
31
|
-
text-decoration: ${({
|
|
32
|
-
textDecoration: t
|
|
33
|
-
}) => t};
|
|
34
|
-
text-transform: ${({
|
|
35
|
-
textTransform: t
|
|
36
|
-
}) => t};
|
|
19
|
+
text-align: ${({ textAlign: t }) => t};
|
|
20
|
+
text-decoration: ${({ textDecoration: t }) => t};
|
|
21
|
+
text-transform: ${({ textTransform: t }) => t};
|
|
37
22
|
`;
|
|
38
23
|
export {
|
|
39
|
-
|
|
24
|
+
m as Typography
|
|
40
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="alpha",A="beta",o="delta",s="epsilon",e="omega",n="pi",T="sigma",c=[t,A,o,s,e,n,T];exports.ALPHA=t;exports.BETA=A;exports.DELTA=o;exports.EPSILON=s;exports.OMEGA=e;exports.PI=n;exports.SIGMA=T;exports.TEXT_VARIANTS=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Typography.cjs");exports.Typography=e.Typography;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./constants.cjs"),n=({ellipsis:e=!1})=>e&&`
|
|
2
2
|
display: block;
|
|
3
3
|
white-space: nowrap;
|
|
4
4
|
overflow: hidden;
|
|
5
5
|
text-overflow: ellipsis;
|
|
6
|
-
`,s=({variant:t
|
|
6
|
+
`,s=({variant:e=t.OMEGA,theme:i})=>{switch(e){case t.ALPHA:return`
|
|
7
7
|
font-weight: ${i.fontWeights.bold};
|
|
8
8
|
font-size: ${i.fontSizes[5]};
|
|
9
9
|
line-height: ${i.lineHeights[2]};
|
|
10
|
-
`;case
|
|
10
|
+
`;case t.BETA:return`
|
|
11
11
|
font-weight: ${i.fontWeights.bold};
|
|
12
12
|
font-size: ${i.fontSizes[4]};
|
|
13
13
|
line-height: ${i.lineHeights[1]};
|
|
14
|
-
`;case
|
|
14
|
+
`;case t.DELTA:return`
|
|
15
15
|
font-weight: ${i.fontWeights.semiBold};
|
|
16
16
|
font-size: ${i.fontSizes[3]};
|
|
17
17
|
line-height: ${i.lineHeights[2]};
|
|
18
|
-
`;case
|
|
18
|
+
`;case t.EPSILON:return`
|
|
19
19
|
font-size: ${i.fontSizes[3]};
|
|
20
20
|
line-height: ${i.lineHeights[6]};
|
|
21
|
-
`;case
|
|
21
|
+
`;case t.OMEGA:return`
|
|
22
22
|
font-size: ${i.fontSizes[2]};
|
|
23
23
|
line-height: ${i.lineHeights[4]};
|
|
24
|
-
`;case
|
|
24
|
+
`;case t.PI:return`
|
|
25
25
|
font-size: ${i.fontSizes[1]};
|
|
26
26
|
line-height: ${i.lineHeights[3]};
|
|
27
|
-
`;case
|
|
27
|
+
`;case t.SIGMA:return`
|
|
28
28
|
font-weight: ${i.fontWeights.bold};
|
|
29
29
|
font-size: ${i.fontSizes[0]};
|
|
30
30
|
line-height: ${i.lineHeights[5]};
|
|
31
31
|
text-transform: uppercase;
|
|
32
32
|
`;default:return`
|
|
33
33
|
font-size: ${i.fontSizes[2]};
|
|
34
|
-
`}},o=({theme:
|
|
34
|
+
`}},o=({theme:e,textColor:i})=>e.colors[i||"neutral800"];exports.ellipsisStyle=n;exports.handleColor=o;exports.variantStyle=s;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),d=e=>e&&e.__esModule?e:{default:e},i=d(t),l=i.default.div`
|
|
2
2
|
border: 0;
|
|
3
3
|
clip: rect(0 0 0 0);
|
|
4
4
|
height: 1px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./VisuallyHidden.cjs");exports.VisuallyHidden=e.VisuallyHidden;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),d=require("react");function f(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=f(d),b=(e,t)=>{const r=u.createContext(t);function n(c){const{children:o,...i}=c,a=u.useMemo(()=>i,Object.values(i));return l.jsx(r.Provider,{value:a,children:o})}function s(c){const o=u.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${c}\` must be used within \`${e}\``)}return n.displayName=`${e}Provider`,[n,s]};exports.createContext=b;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
const v = (o, t) => {
|
|
4
|
+
const c = n.createContext(t);
|
|
5
|
+
function i(r) {
|
|
6
|
+
const { children: e, ...s } = r, d = n.useMemo(() => s, Object.values(s));
|
|
7
|
+
return x(c.Provider, { value: d, children: e });
|
|
8
|
+
}
|
|
9
|
+
function u(r) {
|
|
10
|
+
const e = n.useContext(c);
|
|
11
|
+
if (e)
|
|
12
|
+
return e;
|
|
13
|
+
if (t !== void 0)
|
|
14
|
+
return t;
|
|
15
|
+
throw new Error(`\`${r}\` must be used within \`${o}\``);
|
|
16
|
+
}
|
|
17
|
+
return i.displayName = `${o}Provider`, [i, u];
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
v as createContext
|
|
21
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n="[@strapi/design-system]:",c=r=>{const e=r;let t=!1;if(typeof e!="function")throw new TypeError(`${n} once requires a function parameter`);return(...o)=>{t||(e(...o),t=!0)}};exports.PREFIX=n;exports.once=c;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="en-EN";/**
|
|
2
|
+
* @preserve
|
|
3
|
+
* @deprecated This will be removed in v2.0.0, you can access the locale from `useDesignSystem` instead.
|
|
4
|
+
*/const t=()=>typeof navigator>"u"?e:navigator.language?navigator.language:e;exports.getDefaultLocale=t;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = "en-EN";
|
|
2
|
+
/**
|
|
3
|
+
* @preserve
|
|
4
|
+
* @deprecated This will be removed in v2.0.0, you can access the locale from `useDesignSystem` instead.
|
|
5
|
+
*/
|
|
6
|
+
const n = () => typeof navigator > "u" ? e : navigator.language ? navigator.language : e;
|
|
2
7
|
export {
|
|
3
|
-
|
|
8
|
+
n as getDefaultLocale
|
|
4
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=(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"),s=t=>t.filter(e=>e.tagName==="INPUT"?e.type!=="checkbox"&&e.type!=="radio":!1);exports.getFocusableNodes=a;exports.getFocusableNodesWithKeyboardNav=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,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;
|
package/dist/helpers/objects.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function t(e,r){return typeof e=="string"?!1:r in e}function i(e){return e&&typeof e=="object"&&!Array.isArray(e)}exports.isKeyOf=t;exports.isObject=i;
|
package/dist/helpers/objects.js
CHANGED
|
@@ -1,26 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return typeof n == "string" ? !1 : s in n;
|
|
1
|
+
function t(r, n) {
|
|
2
|
+
return typeof r == "string" ? !1 : n in r;
|
|
4
3
|
}
|
|
5
|
-
function
|
|
6
|
-
return
|
|
7
|
-
}
|
|
8
|
-
function u(n, ...s) {
|
|
9
|
-
if (!s.length)
|
|
10
|
-
return n;
|
|
11
|
-
const i = s.shift();
|
|
12
|
-
if (i === void 0)
|
|
13
|
-
return n;
|
|
14
|
-
const o = f(n) && f(i), b = e(n) && e(i);
|
|
15
|
-
if (o || b)
|
|
16
|
-
for (const r of Object.keys(i)) {
|
|
17
|
-
const c = f(i[r]), t = e(i[r]);
|
|
18
|
-
c || t ? (n[r] || Object.assign(n, { [r]: c ? {} : [] }), u(n[r], i[r])) : o ? Object.assign(n, { [r]: i[r] }) : n.push(i[r]);
|
|
19
|
-
}
|
|
20
|
-
return u(n, ...s);
|
|
4
|
+
function e(r) {
|
|
5
|
+
return r && typeof r == "object" && !Array.isArray(r);
|
|
21
6
|
}
|
|
22
7
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
u as mergeDeep
|
|
8
|
+
t as isKeyOf,
|
|
9
|
+
e as isObject
|
|
26
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=(t,e)=>`${t}${Math.floor(e*255).toString(16).padStart(2,"0")}`;exports.setOpacity=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=(e,i)=>{const t=e.querySelectorAll(i);t&&t.length>0&&t.item(0).setAttribute("tabindex","0")};exports.setTabIndexOnFirstItem=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=e=>e.replaceAll(":","");exports.stripReactIdOfColon=t;
|
package/dist/helpers/theme.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./objects.cjs");function u(t,e,r){return e&&o.isKeyOf(t,e)?t[e]:r}exports.extractStyleFromTheme=u;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./deprecations.cjs"),r=require("../hooks/useElementOnScreen.cjs"),t=e.once(console.warn);/**
|
|
2
|
+
* @preserve
|
|
3
|
+
* @deprecated useElementOnScreen has moved. Please import it from "@strapi/design-system/hooks/useElementOnScreen"
|
|
4
|
+
*/const s=(...n)=>(t(`${e.PREFIX} useElementOnScreen has moved. Please import it from "@strapi/design-system/hooks/useElementOnScreen"`),r.useElementOnScreen(...n));exports.useElementOnScreen=s;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { once as n, PREFIX as r } from "./deprecations.js";
|
|
2
2
|
import { useElementOnScreen as s } from "../hooks/useElementOnScreen.js";
|
|
3
|
-
const t = n(console.warn)
|
|
3
|
+
const t = n(console.warn);
|
|
4
|
+
/**
|
|
5
|
+
* @preserve
|
|
6
|
+
* @deprecated useElementOnScreen has moved. Please import it from "@strapi/design-system/hooks/useElementOnScreen"
|
|
7
|
+
*/
|
|
8
|
+
const c = (...e) => (t(`${r} useElementOnScreen has moved. Please import it from "@strapi/design-system/hooks/useElementOnScreen"`), s(...e));
|
|
4
9
|
export {
|
|
5
10
|
c as useElementOnScreen
|
|
6
11
|
};
|
package/dist/helpers/useId.cjs
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./deprecations.cjs"),o=require("../hooks/useId.cjs"),r=e.once(console.warn);/**
|
|
2
|
+
* @preserve
|
|
3
|
+
* @deprecated useId has moved. Please import it from "@strapi/design-system/hooks/useId"
|
|
4
|
+
*/const t=(...s)=>(r(`${e.PREFIX} useId has moved. Please import it from "@strapi/design-system/hooks/useId"`),o.useId(...s));exports.useId=t;
|
package/dist/helpers/useId.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { once as s, PREFIX as o } from "./deprecations.js";
|
|
2
2
|
import { useId as r } from "../hooks/useId.js";
|
|
3
|
-
const t = s(console.warn)
|
|
3
|
+
const t = s(console.warn);
|
|
4
|
+
/**
|
|
5
|
+
* @preserve
|
|
6
|
+
* @deprecated useId has moved. Please import it from "@strapi/design-system/hooks/useId"
|
|
7
|
+
*/
|
|
8
|
+
const n = (...e) => (t(`${o} useId has moved. Please import it from "@strapi/design-system/hooks/useId"`), r(...e));
|
|
4
9
|
export {
|
|
5
10
|
n as useId
|
|
6
11
|
};
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./deprecations.cjs"),s=require("../hooks/useIntersection.cjs"),n=e.once(console.warn);/**
|
|
2
|
+
* @preserve
|
|
3
|
+
* @deprecated useId has moved. Please import it from "@strapi/design-system/hooks/useId"
|
|
4
|
+
*/const o=(...t)=>(n(`${e.PREFIX} useIntersection has moved. Please import it from "@strapi/design-system/hooks/useIntersection"`),s.useIntersection(...t));exports.useIntersection=o;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { once as s, PREFIX as t } from "./deprecations.js";
|
|
2
2
|
import { useIntersection as o } from "../hooks/useIntersection.js";
|
|
3
|
-
const n = s(console.warn)
|
|
3
|
+
const n = s(console.warn);
|
|
4
|
+
/**
|
|
5
|
+
* @preserve
|
|
6
|
+
* @deprecated useId has moved. Please import it from "@strapi/design-system/hooks/useId"
|
|
7
|
+
*/
|
|
8
|
+
const c = (...e) => (n(`${t} useIntersection has moved. Please import it from "@strapi/design-system/hooks/useIntersection"`), o(...e));
|
|
4
9
|
export {
|
|
5
10
|
c as useIntersection
|
|
6
11
|
};
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("./deprecations.cjs"),s=require("../hooks/useLockScroll.cjs"),r=e.once(console.warn);/**
|
|
2
|
+
* @preserve
|
|
3
|
+
* @deprecated useLockScroll has moved. Please import it from "@strapi/design-system/hooks/useLockScroll"
|
|
4
|
+
*/const c=(...o)=>(r(`${e.PREFIX} useLockScroll has moved. Please import it from "@strapi/design-system/hooks/useLockScroll"`),s(...o));module.exports=c;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { once as e, PREFIX as r } from "./deprecations.js";
|
|
2
2
|
import s from "../hooks/useLockScroll.js";
|
|
3
|
-
const c = e(console.warn)
|
|
3
|
+
const c = e(console.warn);
|
|
4
|
+
/**
|
|
5
|
+
* @preserve
|
|
6
|
+
* @deprecated useLockScroll has moved. Please import it from "@strapi/design-system/hooks/useLockScroll"
|
|
7
|
+
*/
|
|
8
|
+
const a = (...o) => (c(`${r} useLockScroll has moved. Please import it from "@strapi/design-system/hooks/useLockScroll"`), s(...o));
|
|
4
9
|
export {
|
|
5
10
|
a as default
|
|
6
11
|
};
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./deprecations.cjs"),o=require("../hooks/usePrevious.cjs"),r=e.once(console.warn);/**
|
|
2
|
+
* @preserve
|
|
3
|
+
* @deprecated usePrevious has moved. Please import it from "@strapi/design-system/hooks/usePrevious"
|
|
4
|
+
*/const u=(...s)=>(r(`${e.PREFIX} usePrevious has moved. Please import it from "@strapi/design-system/hooks/usePrevious"`),o.usePrevious(...s));exports.usePrevious=u;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { once as s, PREFIX as o } from "./deprecations.js";
|
|
2
2
|
import { usePrevious as r } from "../hooks/usePrevious.js";
|
|
3
|
-
const i = s(console.warn)
|
|
3
|
+
const i = s(console.warn);
|
|
4
|
+
/**
|
|
5
|
+
* @preserve
|
|
6
|
+
* @deprecated usePrevious has moved. Please import it from "@strapi/design-system/hooks/usePrevious"
|
|
7
|
+
*/
|
|
8
|
+
const m = (...e) => (i(`${o} usePrevious has moved. Please import it from "@strapi/design-system/hooks/usePrevious"`), r(...e));
|
|
4
9
|
export {
|
|
5
10
|
m as usePrevious
|
|
6
11
|
};
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./deprecations.cjs"),r=require("../hooks/useResizeObserver.cjs"),o=e.once(console.warn);/**
|
|
2
|
+
* @preserve
|
|
3
|
+
* @deprecated useResizeObserver has moved. Please import it from "@strapi/design-system/hooks/useResizeObserver"
|
|
4
|
+
*/const t=(...s)=>(o(`${e.PREFIX} useResizeObserver has moved. Please import it from "@strapi/design-system/hooks/useResizeObserver"`),r.useResizeObserver(...s));exports.useResizeObserver=t;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { once as s, PREFIX as r } from "./deprecations.js";
|
|
2
2
|
import { useResizeObserver as o } from "../hooks/useResizeObserver.js";
|
|
3
|
-
const i = s(console.warn)
|
|
3
|
+
const i = s(console.warn);
|
|
4
|
+
/**
|
|
5
|
+
* @preserve
|
|
6
|
+
* @deprecated useResizeObserver has moved. Please import it from "@strapi/design-system/hooks/useResizeObserver"
|
|
7
|
+
*/
|
|
8
|
+
const n = (...e) => (i(`${r} useResizeObserver has moved. Please import it from "@strapi/design-system/hooks/useResizeObserver"`), o(...e));
|
|
4
9
|
export {
|
|
5
10
|
n as useResizeObserver
|
|
6
11
|
};
|