@strapi/design-system 1.7.0-alpha.5 → 1.7.1
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 +1 -1
- 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 +6 -6
- 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 +15 -15
- package/dist/Alert/Alert.js +8 -80
- package/dist/Alert/index.cjs +1 -1
- package/dist/Alert/utils.cjs +1 -1
- 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 +4 -4
- package/dist/Badge/Badge.js +4 -33
- package/dist/Badge/index.cjs +1 -1
- package/dist/BaseButton/BaseButton.cjs +3 -3
- package/dist/BaseButton/BaseButton.js +8 -32
- 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 -1
- package/dist/BaseLink/BaseLink.js +1 -17
- package/dist/BaseLink/index.cjs +1 -1
- package/dist/BaseRadio/BaseRadio.cjs +8 -8
- 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 +1 -1
- package/dist/Box/Box.js +47 -173
- package/dist/Box/index.cjs +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.cjs +3 -3
- package/dist/Breadcrumbs/Breadcrumbs.js +10 -43
- package/dist/Breadcrumbs/index.cjs +1 -1
- package/dist/Button/Button.cjs +11 -11
- package/dist/Button/Button.js +7 -54
- 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 +4 -4
- package/dist/Card/CardAsset.js +5 -25
- package/dist/Card/CardBadge.cjs +3 -3
- 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 -6
- package/dist/CarouselInput/Carousel.js +51 -42
- package/dist/CarouselInput/CarouselActions.cjs +1 -1
- package/dist/CarouselInput/CarouselActions.js +8 -7
- package/dist/CarouselInput/CarouselImage.cjs +3 -3
- package/dist/CarouselInput/CarouselImage.js +13 -12
- package/dist/CarouselInput/CarouselInput.cjs +1 -1
- package/dist/CarouselInput/CarouselInput.js +39 -36
- package/dist/CarouselInput/CarouselSlide.cjs +2 -2
- package/dist/CarouselInput/CarouselSlide.js +10 -9
- package/dist/CarouselInput/index.cjs +1 -1
- package/dist/Checkbox/Checkbox.cjs +3 -3
- package/dist/Checkbox/Checkbox.js +37 -32
- package/dist/Checkbox/index.cjs +1 -1
- package/dist/Combobox/Combobox.cjs +10 -9
- package/dist/Combobox/Combobox.js +53 -253
- package/dist/Combobox/ComboboxList.cjs +5 -1
- package/dist/Combobox/ComboboxList.js +6 -5
- package/dist/Combobox/ComboboxOption.cjs +1 -1
- package/dist/Combobox/index.cjs +1 -1
- package/dist/DatePicker/DatePicker.cjs +5 -5
- package/dist/DatePicker/DatePicker.js +38 -56
- package/dist/DatePicker/DatePickerCalendar.cjs +1 -1
- package/dist/DatePicker/DatePickerCalendar.js +20 -119
- package/dist/DatePicker/DatePickerTd.cjs +3 -3
- package/dist/DatePicker/DatePickerTd.js +13 -45
- package/dist/DatePicker/DatePickerTh.cjs +4 -4
- package/dist/DatePicker/DatePickerTh.js +9 -33
- package/dist/DatePicker/compareDates.cjs +1 -1
- package/dist/DatePicker/components.cjs +14 -8
- package/dist/DatePicker/components.js +17 -7
- package/dist/DatePicker/index.cjs +1 -1
- package/dist/DatePicker/utils/formatDate.cjs +1 -1
- package/dist/DatePicker/utils/generateWeeks.cjs +1 -1
- package/dist/DatePicker/utils/getDayOfWeek.cjs +1 -1
- package/dist/DatePicker/utils/getMonths.cjs +1 -1
- package/dist/DatePicker/utils/getYears.cjs +1 -1
- package/dist/DatePicker/utils/getYears.js +1 -1
- package/dist/DatePicker/utils/index.cjs +1 -1
- package/dist/DateTimePicker/DateTimePicker.cjs +1 -1
- package/dist/DateTimePicker/DateTimePicker.js +41 -92
- package/dist/DateTimePicker/index.cjs +1 -1
- package/dist/DateTimePicker/parseDate.cjs +1 -1
- package/dist/Dialog/Dialog.cjs +6 -6
- package/dist/Dialog/Dialog.js +41 -38
- package/dist/Dialog/DialogBody.cjs +2 -2
- package/dist/Dialog/DialogBody.js +19 -15
- package/dist/Dialog/DialogFooter.cjs +3 -3
- package/dist/Dialog/DialogFooter.js +10 -6
- 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 +11 -10
- package/dist/Divider/index.cjs +1 -1
- package/dist/EmptyStateLayout/EmptyStateLayout.cjs +3 -3
- package/dist/EmptyStateLayout/EmptyStateLayout.js +13 -8
- package/dist/EmptyStateLayout/index.cjs +1 -1
- package/dist/EmptyStateLayout/story-assets/Illo.cjs +1 -1
- package/dist/EmptyStateLayout/story-assets/Illo.js +71 -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 +2 -12
- package/dist/Field/FieldInput.cjs +7 -7
- 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 +3 -3
- 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 +15 -14
- package/dist/Grid/GridContext.cjs +1 -1
- package/dist/Grid/GridItem.cjs +2 -2
- package/dist/Grid/GridItem.js +12 -11
- package/dist/Grid/index.cjs +1 -1
- package/dist/Icon/Icon.cjs +4 -4
- 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 +28 -81
- 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 +3 -3
- package/dist/Layout/ActionLayout.js +17 -13
- package/dist/Layout/ContentLayout.cjs +1 -1
- package/dist/Layout/ContentLayout.js +8 -7
- package/dist/Layout/GridLayout.cjs +3 -3
- package/dist/Layout/HeaderLayout.cjs +3 -2
- package/dist/Layout/HeaderLayout.js +70 -46
- package/dist/Layout/Layout.cjs +3 -3
- package/dist/Layout/Layout.js +14 -10
- package/dist/Layout/TwoColsLayout.cjs +1 -1
- package/dist/Layout/TwoColsLayout.js +12 -8
- package/dist/Layout/index.cjs +1 -1
- package/dist/Link/Link.cjs +5 -5
- package/dist/Link/Link.js +9 -53
- package/dist/Link/index.cjs +1 -1
- package/dist/LinkButton/LinkButton.cjs +7 -7
- 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 +5 -5
- 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 +7 -9
- package/dist/Main/SkipToContent.cjs +2 -2
- package/dist/Main/SkipToContent.js +10 -9
- package/dist/Main/index.cjs +1 -1
- package/dist/MainNav/MainNav.cjs +2 -2
- package/dist/MainNav/MainNav.js +16 -15
- package/dist/MainNav/MainNavContext.cjs +1 -1
- package/dist/MainNav/NavBrand.cjs +6 -6
- package/dist/MainNav/NavBrand.js +37 -21
- package/dist/MainNav/NavCondense.cjs +3 -3
- package/dist/MainNav/NavCondense.js +20 -16
- package/dist/MainNav/NavFooter.cjs +1 -1
- package/dist/MainNav/NavFooter.js +9 -8
- package/dist/MainNav/NavLink.cjs +10 -10
- package/dist/MainNav/NavLink.js +53 -43
- package/dist/MainNav/NavSection.cjs +1 -1
- package/dist/MainNav/NavSection.js +43 -33
- package/dist/MainNav/NavSections.cjs +2 -2
- package/dist/MainNav/NavSections.js +15 -14
- package/dist/MainNav/NavUser.cjs +3 -3
- package/dist/MainNav/NavUser.js +23 -20
- package/dist/MainNav/index.cjs +1 -1
- package/dist/ModalLayout/ModalBody.cjs +2 -2
- package/dist/ModalLayout/ModalBody.js +7 -6
- package/dist/ModalLayout/ModalContext.cjs +1 -1
- package/dist/ModalLayout/ModalFooter.cjs +3 -3
- package/dist/ModalLayout/ModalFooter.js +17 -13
- package/dist/ModalLayout/ModalHeader.cjs +2 -2
- package/dist/ModalLayout/ModalHeader.js +20 -16
- package/dist/ModalLayout/ModalLayout.cjs +4 -4
- package/dist/ModalLayout/ModalLayout.js +24 -23
- package/dist/ModalLayout/index.cjs +1 -1
- package/dist/NumberInput/NumberInput.cjs +6 -6
- package/dist/NumberInput/NumberInput.js +113 -106
- package/dist/NumberInput/index.cjs +1 -1
- package/dist/Pagination/Pagination.cjs +2 -2
- package/dist/Pagination/Pagination.js +16 -15
- package/dist/Pagination/PaginationContext.cjs +1 -1
- package/dist/Pagination/components.cjs +10 -10
- package/dist/Pagination/components.js +58 -47
- package/dist/Pagination/index.cjs +1 -1
- package/dist/Popover/Popover.cjs +4 -4
- package/dist/Popover/Popover.js +51 -101
- package/dist/Popover/index.cjs +1 -1
- 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 +2 -2
- package/dist/ProgressBar/ProgressBar.js +19 -18
- package/dist/ProgressBar/index.cjs +1 -1
- package/dist/Radio/Radio.cjs +2 -2
- package/dist/Radio/Radio.js +16 -12
- 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 -2
- package/dist/Searchbar/Searchbar.cjs +7 -7
- package/dist/Searchbar/Searchbar.js +51 -50
- package/dist/Searchbar/index.cjs +1 -1
- package/dist/Select/MultiSelect.cjs +7 -7
- package/dist/Select/MultiSelect.js +46 -211
- package/dist/Select/MultiSelectNested.cjs +3 -3
- package/dist/Select/MultiSelectNested.js +2 -20
- package/dist/Select/OptGroup.cjs +5 -1
- package/dist/Select/OptGroup.js +5 -0
- package/dist/Select/Option.cjs +5 -1
- package/dist/Select/Option.js +13 -11
- package/dist/Select/Select.cjs +6 -1
- package/dist/Select/Select.js +16 -8
- package/dist/Select/SelectList.cjs +5 -1
- package/dist/Select/SelectList.js +52 -72
- package/dist/Select/SelectParts.cjs +11 -10
- package/dist/Select/SelectParts.js +37 -153
- package/dist/Select/SingleSelect.cjs +1 -1
- package/dist/Select/SingleSelect.js +27 -117
- package/dist/Select/index.cjs +1 -1
- package/dist/SimpleMenu/SimpleMenu.cjs +11 -11
- package/dist/SimpleMenu/SimpleMenu.js +111 -92
- package/dist/SimpleMenu/index.cjs +1 -1
- package/dist/SimpleMenu/utils.cjs +1 -1
- package/dist/Stack/Stack.cjs +3 -3
- 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 +36 -24
- package/dist/Status/index.cjs +1 -1
- package/dist/SubNav/SubNav.cjs +5 -5
- package/dist/SubNav/SubNav.js +9 -9
- package/dist/SubNav/SubNavHeader.cjs +3 -3
- package/dist/SubNav/SubNavHeader.js +57 -47
- package/dist/SubNav/SubNavLink.cjs +5 -5
- package/dist/SubNav/SubNavLink.js +38 -32
- package/dist/SubNav/SubNavLinkSection.cjs +6 -6
- package/dist/SubNav/SubNavLinkSection.js +28 -21
- package/dist/SubNav/SubNavSection.cjs +3 -3
- package/dist/SubNav/SubNavSection.js +46 -39
- package/dist/SubNav/SubNavSectionLabel.cjs +4 -4
- package/dist/SubNav/SubNavSectionLabel.js +28 -25
- package/dist/SubNav/SubNavSections.cjs +1 -1
- package/dist/SubNav/SubNavSections.js +14 -13
- package/dist/SubNav/index.cjs +1 -1
- package/dist/Switch/Switch.cjs +5 -5
- package/dist/Switch/Switch.js +33 -26
- package/dist/Switch/index.cjs +1 -1
- package/dist/Table/Cell.cjs +3 -3
- package/dist/Table/Cell.js +17 -13
- package/dist/Table/TFooter.cjs +5 -5
- package/dist/Table/TFooter.js +23 -16
- package/dist/Table/Table.cjs +5 -5
- package/dist/Table/Table.js +28 -24
- package/dist/Table/Tbody.cjs +2 -2
- package/dist/Table/Tbody.js +7 -6
- package/dist/Table/Thead.cjs +2 -2
- package/dist/Table/Thead.js +8 -7
- package/dist/Table/Tr.cjs +2 -2
- package/dist/Table/Tr.js +6 -5
- package/dist/Table/index.cjs +1 -1
- package/dist/Tabs/TabGroup.cjs +1 -1
- package/dist/Tabs/TabGroup.js +26 -25
- package/dist/Tabs/TabPanels.cjs +1 -1
- package/dist/Tabs/TabPanels.js +15 -14
- package/dist/Tabs/Tabs.cjs +2 -2
- package/dist/Tabs/Tabs.js +64 -59
- package/dist/Tabs/TabsContext.cjs +1 -1
- package/dist/Tabs/components.cjs +12 -12
- package/dist/Tabs/index.cjs +1 -1
- package/dist/Tabs/useTabsFocus.cjs +1 -1
- package/dist/Tabs/useTabsFocus.js +1 -1
- package/dist/Tag/Tag.cjs +2 -2
- package/dist/Tag/Tag.js +6 -43
- package/dist/Tag/index.cjs +1 -1
- package/dist/TextButton/TextButton.cjs +6 -6
- package/dist/TextButton/TextButton.js +8 -37
- 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 +2 -2
- package/dist/Textarea/Textarea.js +24 -21
- package/dist/Textarea/TextareaInput.cjs +4 -4
- package/dist/Textarea/TextareaInput.js +25 -30
- package/dist/Textarea/index.cjs +1 -1
- package/dist/ThemeProvider/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider/ThemeProvider.js +2 -10
- package/dist/ThemeProvider/hooks.cjs +1 -1
- package/dist/ThemeProvider/index.cjs +1 -1
- package/dist/TimePicker/TimePicker.cjs +3 -3
- package/dist/TimePicker/TimePicker.js +8 -30
- package/dist/TimePicker/index.cjs +1 -1
- package/dist/ToggleCheckbox/ToggleCheckbox.cjs +8 -8
- package/dist/ToggleCheckbox/ToggleCheckbox.js +111 -110
- package/dist/ToggleCheckbox/index.cjs +1 -1
- package/dist/ToggleInput/ToggleInput.cjs +3 -3
- package/dist/ToggleInput/ToggleInput.js +41 -35
- 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 +8 -8
- package/dist/Typography/Typography.js +6 -21
- 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 +2 -2
- package/dist/VisuallyHidden/index.cjs +1 -1
- package/dist/helpers/deprecations.cjs +1 -1
- package/dist/helpers/escapeSelector.cjs +1 -1
- package/dist/helpers/getDefaultLocale.cjs +1 -1
- package/dist/helpers/getFocusableNodes.cjs +1 -1
- package/dist/helpers/keyboardKeys.cjs +1 -1
- package/dist/helpers/objects.cjs +1 -1
- package/dist/helpers/setOpacity.cjs +1 -1
- package/dist/helpers/setTabIndexOnFirstItem.cjs +1 -1
- 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 -1
- package/dist/hooks/useControllableState.cjs +1 -1
- package/dist/hooks/useElementOnScreen.cjs +1 -1
- package/dist/hooks/useId.cjs +1 -1
- package/dist/hooks/useIntersection.cjs +1 -1
- package/dist/hooks/useLockScroll.cjs +1 -1
- package/dist/hooks/usePrevious.cjs +1 -1
- package/dist/hooks/useResizeObserver.cjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +209 -209
- 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 +2 -2
- 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 +5 -5
- package/dist/v2/Breadcrumbs/Breadcrumbs.cjs +3 -3
- package/dist/v2/Breadcrumbs/Breadcrumbs.js +19 -15
- package/dist/v2/Breadcrumbs/Crumb.cjs +1 -1
- package/dist/v2/Breadcrumbs/Crumb.js +13 -12
- package/dist/v2/Breadcrumbs/CrumbLink.cjs +2 -2
- package/dist/v2/Breadcrumbs/CrumbLink.js +5 -4
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.cjs +2 -2
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.js +16 -15
- package/dist/v2/Breadcrumbs/Divider.cjs +1 -1
- package/dist/v2/Breadcrumbs/Divider.js +6 -5
- package/dist/v2/Breadcrumbs/index.cjs +1 -1
- package/dist/v2/Link/Link.cjs +4 -4
- package/dist/v2/Link/Link.js +10 -39
- package/dist/v2/Link/index.cjs +1 -1
- package/dist/v2/LinkButton/LinkButton.cjs +7 -7
- 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 +16 -15
- package/dist/v2/MainNav/MainNavContext.cjs +1 -1
- package/dist/v2/MainNav/NavBrand.cjs +6 -6
- package/dist/v2/MainNav/NavBrand.js +38 -22
- package/dist/v2/MainNav/NavCondense.cjs +3 -3
- package/dist/v2/MainNav/NavCondense.js +20 -16
- package/dist/v2/MainNav/NavFooter.cjs +1 -1
- package/dist/v2/MainNav/NavFooter.js +9 -8
- package/dist/v2/MainNav/NavLink.cjs +10 -10
- package/dist/v2/MainNav/NavLink.js +55 -45
- package/dist/v2/MainNav/NavSection.cjs +1 -1
- package/dist/v2/MainNav/NavSection.js +43 -33
- package/dist/v2/MainNav/NavSections.cjs +2 -2
- package/dist/v2/MainNav/NavSections.js +15 -14
- package/dist/v2/MainNav/NavUser.cjs +3 -3
- package/dist/v2/MainNav/NavUser.js +22 -19
- package/dist/v2/MainNav/index.cjs +1 -1
- package/dist/v2/Pagination/Pagination.cjs +2 -2
- package/dist/v2/Pagination/Pagination.js +16 -15
- package/dist/v2/Pagination/PaginationContext.cjs +1 -1
- package/dist/v2/Pagination/components.cjs +10 -10
- package/dist/v2/Pagination/components.js +50 -37
- package/dist/v2/Pagination/index.cjs +1 -1
- package/dist/v2/SimpleMenu/Menu.cjs +13 -13
- package/dist/v2/SimpleMenu/Menu.js +15 -155
- package/dist/v2/SimpleMenu/SimpleMenu.cjs +1 -1
- package/dist/v2/SimpleMenu/SimpleMenu.js +17 -31
- package/dist/v2/SimpleMenu/index.cjs +1 -1
- package/dist/v2/SubNav/SubNav.cjs +5 -5
- package/dist/v2/SubNav/SubNav.js +9 -9
- package/dist/v2/SubNav/SubNavHeader.cjs +3 -3
- package/dist/v2/SubNav/SubNavHeader.js +57 -47
- package/dist/v2/SubNav/SubNavLink.cjs +5 -5
- package/dist/v2/SubNav/SubNavLink.js +40 -34
- package/dist/v2/SubNav/SubNavLinkSection.cjs +6 -6
- package/dist/v2/SubNav/SubNavLinkSection.js +28 -21
- package/dist/v2/SubNav/SubNavSection.cjs +3 -3
- package/dist/v2/SubNav/SubNavSection.js +48 -41
- package/dist/v2/SubNav/SubNavSectionLabel.cjs +4 -4
- package/dist/v2/SubNav/SubNavSectionLabel.js +28 -25
- package/dist/v2/SubNav/SubNavSections.cjs +1 -1
- package/dist/v2/SubNav/SubNavSections.js +14 -13
- package/dist/v2/SubNav/index.cjs +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.js +1 -1
- package/package.json +16 -19
- package/dist/DismissibleLayer/DismissibleLayer.cjs +0 -1
- package/dist/DismissibleLayer/DismissibleLayer.js +0 -30
- /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
package/dist/Card/Card.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("react"),n=require("./CardContext.cjs"),s=require("../hooks/useId.cjs"),u=require("../Box/Box.cjs"),i=({id:r,...o})=>{const e=s.useId(r),d=a.useMemo(()=>({id:e}),[e]);return t.jsx(n.CardContext.Provider,{value:d,children:t.jsx(u.Box,{id:r,tabIndex:0,hasRadius:!0,background:"neutral0",borderStyle:"solid",borderWidth:"1px",borderColor:"neutral150",shadow:"tableShadow",as:"article","aria-labelledby":`${e}-title`,...o})})};exports.Card=i;
|
package/dist/Card/Card.js
CHANGED
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as a } from "react";
|
|
3
3
|
import { CardContext as i } from "./CardContext.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const p = ({
|
|
7
|
-
id:
|
|
8
|
-
...t
|
|
9
|
-
}) => {
|
|
10
|
-
const r = n(o), d = a(() => ({
|
|
11
|
-
id: r
|
|
12
|
-
}), [r]);
|
|
13
|
-
return e(i.Provider, {
|
|
14
|
-
value: d,
|
|
15
|
-
children: e(l, {
|
|
16
|
-
id: o,
|
|
17
|
-
tabIndex: 0,
|
|
18
|
-
hasRadius: !0,
|
|
19
|
-
background: "neutral0",
|
|
20
|
-
borderStyle: "solid",
|
|
21
|
-
borderWidth: "1px",
|
|
22
|
-
borderColor: "neutral150",
|
|
23
|
-
shadow: "tableShadow",
|
|
24
|
-
as: "article",
|
|
25
|
-
"aria-labelledby": `${r}-title`,
|
|
26
|
-
...t
|
|
27
|
-
})
|
|
28
|
-
});
|
|
4
|
+
import { useId as l } from "../hooks/useId.js";
|
|
5
|
+
import { Box as n } from "../Box/Box.js";
|
|
6
|
+
const p = ({ id: o, ...t }) => {
|
|
7
|
+
const r = l(o), d = a(() => ({ id: r }), [r]);
|
|
8
|
+
return e(i.Provider, { value: d, children: e(n, { id: o, tabIndex: 0, hasRadius: !0, background: "neutral0", borderStyle: "solid", borderWidth: "1px", borderColor: "neutral150", shadow: "tableShadow", as: "article", "aria-labelledby": `${r}-title`, ...t }) });
|
|
29
9
|
};
|
|
30
10
|
export {
|
|
31
11
|
p as Card
|
package/dist/Card/CardAction.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("styled-components"),n=require("../Stack/Stack.cjs"),s=r(n.Stack).attrs({horizontal:!0,spacing:2})`
|
|
2
2
|
position: absolute;
|
|
3
3
|
top: ${({theme:t})=>t.spaces[3]};
|
|
4
4
|
right: ${({position:t,theme:e})=>{if(t==="end")return e.spaces[3]}};
|
|
5
5
|
left: ${({position:t,theme:e})=>{if(t==="start")return e.spaces[3]}};
|
|
6
|
-
`;exports.CardAction=
|
|
6
|
+
`;exports.CardAction=s;
|
package/dist/Card/CardAsset.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("styled-components"),o=require("../Flex/Flex.cjs"),a=r.img`
|
|
2
2
|
// inline flows is based on typography and displays an extra white space below the image
|
|
3
3
|
// switch to block is required in order to make the img stick the bottom of the container
|
|
4
4
|
// addition infos: https://stackoverflow.com/questions/5804256/image-inside-div-has-extra-space-below-the-image
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
max-height: 100%;
|
|
8
8
|
max-width: 100%;
|
|
9
9
|
object-fit: contain;
|
|
10
|
-
`,
|
|
10
|
+
`,n={S:88,M:164},d=r.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
justify-content: center;
|
|
13
|
-
height: ${({size:e})=>
|
|
13
|
+
height: ${({size:e})=>n[e]/16}rem;
|
|
14
14
|
width: 100%;
|
|
15
15
|
background: repeating-conic-gradient(${({theme:e})=>e.colors.neutral100} 0% 25%, transparent 0% 50%) 50% / 20px
|
|
16
16
|
20px;
|
|
17
17
|
border-top-left-radius: ${({theme:e})=>e.borderRadius};
|
|
18
18
|
border-top-right-radius: ${({theme:e})=>e.borderRadius};
|
|
19
|
-
`,
|
|
19
|
+
`,c=({size:e="M",children:i,...s})=>t.jsx(d,{size:e,children:i?t.jsx(o.Flex,{children:i}):t.jsx(a,{...s,"aria-hidden":!0})});exports.CardAsset=c;
|
package/dist/Card/CardAsset.js
CHANGED
|
@@ -16,33 +16,13 @@ const a = r.img`
|
|
|
16
16
|
}, d = r.div`
|
|
17
17
|
display: flex;
|
|
18
18
|
justify-content: center;
|
|
19
|
-
height: ${({
|
|
20
|
-
size: e
|
|
21
|
-
}) => n[e] / 16}rem;
|
|
19
|
+
height: ${({ size: e }) => n[e] / 16}rem;
|
|
22
20
|
width: 100%;
|
|
23
|
-
background: repeating-conic-gradient(${({
|
|
24
|
-
theme: e
|
|
25
|
-
}) => e.colors.neutral100} 0% 25%, transparent 0% 50%) 50% / 20px
|
|
21
|
+
background: repeating-conic-gradient(${({ theme: e }) => e.colors.neutral100} 0% 25%, transparent 0% 50%) 50% / 20px
|
|
26
22
|
20px;
|
|
27
|
-
border-top-left-radius: ${({
|
|
28
|
-
theme: e
|
|
29
|
-
}) => e
|
|
30
|
-
border-top-right-radius: ${({
|
|
31
|
-
theme: e
|
|
32
|
-
}) => e.borderRadius};
|
|
33
|
-
`, m = ({
|
|
34
|
-
size: e = "M",
|
|
35
|
-
children: i,
|
|
36
|
-
...o
|
|
37
|
-
}) => t(d, {
|
|
38
|
-
size: e,
|
|
39
|
-
children: i ? t(s, {
|
|
40
|
-
children: i
|
|
41
|
-
}) : t(a, {
|
|
42
|
-
...o,
|
|
43
|
-
"aria-hidden": !0
|
|
44
|
-
})
|
|
45
|
-
});
|
|
23
|
+
border-top-left-radius: ${({ theme: e }) => e.borderRadius};
|
|
24
|
+
border-top-right-radius: ${({ theme: e }) => e.borderRadius};
|
|
25
|
+
`, m = ({ size: e = "M", children: i, ...o }) => t(d, { size: e, children: i ? t(s, { children: i }) : t(a, { ...o, "aria-hidden": !0 }) });
|
|
46
26
|
export {
|
|
47
27
|
m as CardAsset
|
|
48
28
|
};
|
package/dist/Card/CardBadge.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),t=require("styled-components"),a=require("../Badge/Badge.cjs"),s=t.div`
|
|
2
2
|
margin-left: auto;
|
|
3
3
|
flex-shrink: 0;
|
|
4
|
-
`,
|
|
4
|
+
`,d=t(a.Badge)`
|
|
5
5
|
margin-left: ${({theme:e})=>e.spaces[1]};
|
|
6
|
-
`,i=e=>
|
|
6
|
+
`,i=e=>r.jsx(s,{children:r.jsx(d,{...e})});exports.CardBadge=i;
|
package/dist/Card/CardBadge.js
CHANGED
|
@@ -5,14 +5,8 @@ const a = e.div`
|
|
|
5
5
|
margin-left: auto;
|
|
6
6
|
flex-shrink: 0;
|
|
7
7
|
`, i = e(t)`
|
|
8
|
-
margin-left: ${({
|
|
9
|
-
|
|
10
|
-
}) => r.spaces[1]};
|
|
11
|
-
`, n = (r) => o(a, {
|
|
12
|
-
children: o(i, {
|
|
13
|
-
...r
|
|
14
|
-
})
|
|
15
|
-
});
|
|
8
|
+
margin-left: ${({ theme: r }) => r.spaces[1]};
|
|
9
|
+
`, n = (r) => o(a, { children: o(i, { ...r }) });
|
|
16
10
|
export {
|
|
17
11
|
n as CardBadge
|
|
18
12
|
};
|
package/dist/Card/CardBody.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../Box/Box.cjs"),d=require("../Flex/Flex.cjs"),o=t=>e.jsx(r.Box,{paddingLeft:3,paddingRight:3,paddingTop:2,paddingBottom:2,children:e.jsx(d.Flex,{...t,alignItems:"flex-start"})});exports.CardBody=o;
|
package/dist/Card/CardBody.js
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Box as r } from "../Box/Box.js";
|
|
3
3
|
import { Flex as d } from "../Flex/Flex.js";
|
|
4
|
-
const n = (t) => o(r, {
|
|
5
|
-
paddingLeft: 3,
|
|
6
|
-
paddingRight: 3,
|
|
7
|
-
paddingTop: 2,
|
|
8
|
-
paddingBottom: 2,
|
|
9
|
-
children: o(d, {
|
|
10
|
-
...t,
|
|
11
|
-
alignItems: "flex-start"
|
|
12
|
-
})
|
|
13
|
-
});
|
|
4
|
+
const n = (t) => o(r, { paddingLeft: 3, paddingRight: 3, paddingTop: 2, paddingBottom: 2, children: o(d, { ...t, alignItems: "flex-start" }) });
|
|
14
5
|
export {
|
|
15
6
|
n as CardBody
|
|
16
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("./CardAction.cjs"),i=require("./CardContext.cjs"),s=require("../BaseCheckbox/BaseCheckbox.cjs"),c=r=>{const{id:t}=i.useCard();return e.jsx(o.CardAction,{position:"start",children:e.jsx(s.BaseCheckbox,{"aria-labelledby":`${t}-title`,...r})})};exports.CardCheckbox=c;
|
|
@@ -3,16 +3,11 @@ import { CardAction as i } from "./CardAction.js";
|
|
|
3
3
|
import { useCard as e } from "./CardContext.js";
|
|
4
4
|
import { BaseCheckbox as a } from "../BaseCheckbox/BaseCheckbox.js";
|
|
5
5
|
const n = (o) => {
|
|
6
|
-
const {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
children: r(a, {
|
|
12
|
-
"aria-labelledby": `${t}-title`,
|
|
13
|
-
...o
|
|
14
|
-
})
|
|
15
|
-
});
|
|
6
|
+
const { id: t } = e();
|
|
7
|
+
return (
|
|
8
|
+
// @ts-expect-error styled-components can't overwrite the position prop from Stack
|
|
9
|
+
r(i, { position: "start", children: r(a, { "aria-labelledby": `${t}-title`, ...o }) })
|
|
10
|
+
);
|
|
16
11
|
};
|
|
17
12
|
export {
|
|
18
13
|
n as CardCheckbox
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),o=require("styled-components"),n=require("../Box/Box.cjs"),s=o(n.Box)`
|
|
2
2
|
word-break: break-all;
|
|
3
|
-
`,
|
|
3
|
+
`,a=({children:e,...r})=>t.jsx(s,{...r,children:e});exports.CardContent=a;
|
package/dist/Card/CardContent.js
CHANGED
|
@@ -3,13 +3,7 @@ import e from "styled-components";
|
|
|
3
3
|
import { Box as m } from "../Box/Box.js";
|
|
4
4
|
const n = e(m)`
|
|
5
5
|
word-break: break-all;
|
|
6
|
-
`, l = ({
|
|
7
|
-
children: r,
|
|
8
|
-
...o
|
|
9
|
-
}) => t(n, {
|
|
10
|
-
...o,
|
|
11
|
-
children: r
|
|
12
|
-
});
|
|
6
|
+
`, l = ({ children: r, ...o }) => t(n, { ...o, children: r });
|
|
13
7
|
export {
|
|
14
8
|
l as CardContent
|
|
15
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=e.createContext({id:""}),o=()=>e.useContext(t);exports.CardContext=t;exports.useCard=o;
|
package/dist/Card/CardContext.js
CHANGED
package/dist/Card/CardHeader.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),t=require("styled-components"),o=require("../Flex/Flex.cjs"),n=t(o.Flex)`
|
|
2
2
|
border-bottom: 1px solid ${({theme:e})=>e.colors.neutral150};
|
|
3
|
-
`,
|
|
3
|
+
`,s=e=>r.jsx(n,{position:"relative",justifyContent:"center",...e});exports.CardHeader=s;
|
package/dist/Card/CardHeader.js
CHANGED
|
@@ -2,14 +2,8 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import t from "styled-components";
|
|
3
3
|
import { Flex as e } from "../Flex/Flex.js";
|
|
4
4
|
const i = t(e)`
|
|
5
|
-
border-bottom: 1px solid ${({
|
|
6
|
-
|
|
7
|
-
}) => r.colors.neutral150};
|
|
8
|
-
`, a = (r) => o(i, {
|
|
9
|
-
position: "relative",
|
|
10
|
-
justifyContent: "center",
|
|
11
|
-
...r
|
|
12
|
-
});
|
|
5
|
+
border-bottom: 1px solid ${({ theme: r }) => r.colors.neutral150};
|
|
6
|
+
`, a = (r) => o(i, { position: "relative", justifyContent: "center", ...r });
|
|
13
7
|
export {
|
|
14
8
|
a as CardHeader
|
|
15
9
|
};
|
package/dist/Card/CardTimer.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("../Box/Box.cjs"),i=require("../Typography/Typography.cjs"),a=({children:e,...t})=>r.jsx(o.Box,{as:"time",background:"neutral800",bottom:1,right:1,color:"neutral0",hasRadius:!0,position:"absolute",padding:1,...t,children:r.jsx(i.Typography,{variant:"pi",textColor:"neutral0",children:e})});exports.CardTimer=a;
|
package/dist/Card/CardTimer.js
CHANGED
|
@@ -1,25 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Box as i } from "../Box/Box.js";
|
|
3
3
|
import { Typography as a } from "../Typography/Typography.js";
|
|
4
|
-
const p = ({
|
|
5
|
-
children: o,
|
|
6
|
-
...t
|
|
7
|
-
}) => r(i, {
|
|
8
|
-
as: "time",
|
|
9
|
-
background: "neutral800",
|
|
10
|
-
bottom: 1,
|
|
11
|
-
right: 1,
|
|
12
|
-
color: "neutral0",
|
|
13
|
-
hasRadius: !0,
|
|
14
|
-
position: "absolute",
|
|
15
|
-
padding: 1,
|
|
16
|
-
...t,
|
|
17
|
-
children: r(a, {
|
|
18
|
-
variant: "pi",
|
|
19
|
-
textColor: "neutral0",
|
|
20
|
-
children: o
|
|
21
|
-
})
|
|
22
|
-
});
|
|
4
|
+
const p = ({ children: o, ...t }) => r(i, { as: "time", background: "neutral800", bottom: 1, right: 1, color: "neutral0", hasRadius: !0, position: "absolute", padding: 1, ...t, children: r(a, { variant: "pi", textColor: "neutral0", children: o }) });
|
|
23
5
|
export {
|
|
24
6
|
p as CardTimer
|
|
25
7
|
};
|
package/dist/Card/CardTitle.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("./CardContext.cjs"),e=require("../Typography/Typography.cjs"),a=t=>{const{id:i}=o.useCard();return r.jsx(e.Typography,{variant:"pi",id:`${i}-title`,textColor:"neutral800",fontWeight:"bold",as:"div",...t})},n=t=>r.jsx(e.Typography,{variant:"pi",...t,textColor:"neutral600",as:"div"});exports.CardSubtitle=n;exports.CardTitle=a;
|
package/dist/Card/CardTitle.js
CHANGED
|
@@ -2,23 +2,9 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { useCard as a } from "./CardContext.js";
|
|
3
3
|
import { Typography as o } from "../Typography/Typography.js";
|
|
4
4
|
const l = (t) => {
|
|
5
|
-
const {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return r(o, {
|
|
9
|
-
variant: "pi",
|
|
10
|
-
id: `${i}-title`,
|
|
11
|
-
textColor: "neutral800",
|
|
12
|
-
fontWeight: "bold",
|
|
13
|
-
as: "div",
|
|
14
|
-
...t
|
|
15
|
-
});
|
|
16
|
-
}, p = (t) => r(o, {
|
|
17
|
-
variant: "pi",
|
|
18
|
-
...t,
|
|
19
|
-
textColor: "neutral600",
|
|
20
|
-
as: "div"
|
|
21
|
-
});
|
|
5
|
+
const { id: i } = a();
|
|
6
|
+
return r(o, { variant: "pi", id: `${i}-title`, textColor: "neutral800", fontWeight: "bold", as: "div", ...t });
|
|
7
|
+
}, p = (t) => r(o, { variant: "pi", ...t, textColor: "neutral600", as: "div" });
|
|
22
8
|
export {
|
|
23
9
|
p as CardSubtitle,
|
|
24
10
|
l as CardTitle
|
package/dist/Card/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Card.cjs"),d=require("./CardAction.cjs"),a=require("./CardAsset.cjs"),C=require("./CardBadge.cjs"),t=require("./CardBody.cjs"),o=require("./CardCheckbox.cjs"),i=require("./CardContent.cjs"),n=require("./CardHeader.cjs"),c=require("./CardTimer.cjs"),r=require("./CardTitle.cjs");exports.Card=e.Card;exports.CardAction=d.CardAction;exports.CardAsset=a.CardAsset;exports.CardBadge=C.CardBadge;exports.CardBody=t.CardBody;exports.CardCheckbox=o.CardCheckbox;exports.CardContent=i.CardContent;exports.CardHeader=n.CardHeader;exports.CardTimer=c.CardTimer;exports.CardSubtitle=r.CardSubtitle;exports.CardTitle=r.CardTitle;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),n=require("react"),x=require("@strapi/icons"),e=require("prop-types"),a=require("styled-components"),y=require("../helpers/keyboardKeys.cjs"),k=require("../Tooltip/Tooltip.cjs"),o=require("../Box/Box.cjs"),f=require("../Icon/Icon.cjs"),w=require("../Flex/Flex.cjs"),K=require("../Typography/Typography.cjs"),B=a(o.Box)`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: auto 1fr auto;
|
|
4
4
|
grid-template-areas: 'startAction slides endAction';
|
|
5
|
-
`,
|
|
5
|
+
`,L=a(o.Box)`
|
|
6
6
|
grid-area: slides;
|
|
7
|
-
`,
|
|
8
|
-
grid-area: ${({area:
|
|
7
|
+
`,b=a.button`
|
|
8
|
+
grid-area: ${({area:i})=>i};
|
|
9
9
|
|
|
10
10
|
&:focus svg path,
|
|
11
11
|
&:hover svg path {
|
|
12
|
-
fill: ${({theme:
|
|
12
|
+
fill: ${({theme:i})=>i.colors.neutral900};
|
|
13
13
|
}
|
|
14
|
-
`,
|
|
14
|
+
`,l=({actions:i,children:q,label:v,nextLabel:R,onNext:d,onPrevious:c,previousLabel:j,secondaryLabel:s,selectedSlide:C,...T})=>{const u=n.useRef(null),p=n.useRef(null),h=n.Children.toArray(q).map((t,m)=>n.cloneElement(t,{selected:m===C})),A=t=>{switch(t.key){case y.KeyboardKeys.RIGHT:{t.preventDefault(),p.current.focus(),d();break}case y.KeyboardKeys.LEFT:{t.preventDefault(),u.current.focus(),c();break}}},g=h.length>1;return r.jsx(o.Box,{...T,onKeyDown:A,children:r.jsxs(o.Box,{padding:2,borderColor:"neutral200",hasRadius:!0,background:"neutral100",children:[r.jsxs(B,{as:"section","aria-roledescription":"carousel","aria-label":v,position:"relative",children:[g&&r.jsx(b,{onClick:c,area:"startAction",ref:u,"aria-label":j,type:"button",children:r.jsx(f.Icon,{as:x.ChevronLeft,"aria-hidden":!0,width:"6px",height:"10px",color:"neutral600"})}),g&&r.jsx(b,{onClick:d,area:"endAction",ref:p,"aria-label":R,type:"button",children:r.jsx(f.Icon,{as:x.ChevronRight,"aria-hidden":!0,width:"6px",height:"10px",color:"neutral600"})}),r.jsx(L,{"aria-live":"polite",paddingLeft:2,paddingRight:2,width:"100%",overflow:"hidden",children:h}),i]}),s&&r.jsx(o.Box,{paddingTop:2,paddingLeft:4,paddingRight:4,children:r.jsx(k.Tooltip,{label:s,children:r.jsx(w.Flex,{justifyContent:"center",children:r.jsx(K.Typography,{variant:"pi",textColor:"neutral600",ellipsis:!0,children:s})})})})]})})};l.defaultProps={actions:void 0,error:void 0,hint:void 0,required:!1,secondaryLabel:void 0};l.propTypes={actions:e.node,children:e.node.isRequired,error:e.string,hint:e.oneOfType([e.string,e.node,e.arrayOf(e.node)]),label:e.string.isRequired,nextLabel:e.string.isRequired,onNext:e.func.isRequired,onPrevious:e.func.isRequired,previousLabel:e.string.isRequired,required:e.bool,secondaryLabel:e.string,selectedSlide:e.number.isRequired};exports.Carousel=l;
|
|
@@ -1,72 +1,81 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as r, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as f, Children as k, cloneElement as L } from "react";
|
|
3
|
+
import { ChevronLeft as D, ChevronRight as K } from "@strapi/icons";
|
|
3
4
|
import e from "prop-types";
|
|
4
5
|
import a from "styled-components";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { Icon as
|
|
9
|
-
import {
|
|
6
|
+
import { KeyboardKeys as m } from "../helpers/keyboardKeys.js";
|
|
7
|
+
import { Tooltip as j } from "../Tooltip/Tooltip.js";
|
|
8
|
+
import { Box as t } from "../Box/Box.js";
|
|
9
|
+
import { Icon as g } from "../Icon/Icon.js";
|
|
10
|
+
import { Flex as E } from "../Flex/Flex.js";
|
|
10
11
|
import { Typography as F } from "../Typography/Typography.js";
|
|
11
|
-
const G = a(
|
|
12
|
+
const G = a(t)`
|
|
12
13
|
display: grid;
|
|
13
14
|
grid-template-columns: auto 1fr auto;
|
|
14
15
|
grid-template-areas: 'startAction slides endAction';
|
|
15
|
-
`, I = a(
|
|
16
|
+
`, I = a(t)`
|
|
16
17
|
grid-area: slides;
|
|
17
|
-
`,
|
|
18
|
-
grid-area: ${({ area:
|
|
18
|
+
`, y = a.button`
|
|
19
|
+
grid-area: ${({ area: i }) => i};
|
|
19
20
|
|
|
20
21
|
&:focus svg path,
|
|
21
22
|
&:hover svg path {
|
|
22
|
-
fill: ${({ theme:
|
|
23
|
+
fill: ${({ theme: i }) => i.colors.neutral900};
|
|
23
24
|
}
|
|
24
|
-
`,
|
|
25
|
-
actions:
|
|
26
|
-
children:
|
|
27
|
-
label:
|
|
28
|
-
nextLabel:
|
|
25
|
+
`, b = ({
|
|
26
|
+
actions: i,
|
|
27
|
+
children: v,
|
|
28
|
+
label: R,
|
|
29
|
+
nextLabel: C,
|
|
29
30
|
onNext: l,
|
|
30
|
-
onPrevious:
|
|
31
|
-
previousLabel:
|
|
31
|
+
onPrevious: d,
|
|
32
|
+
previousLabel: x,
|
|
32
33
|
secondaryLabel: n,
|
|
33
|
-
selectedSlide:
|
|
34
|
-
...
|
|
34
|
+
selectedSlide: q,
|
|
35
|
+
...A
|
|
35
36
|
}) => {
|
|
36
|
-
const
|
|
37
|
-
(o,
|
|
38
|
-
),
|
|
37
|
+
const s = f(null), c = f(null), p = k.toArray(v).map(
|
|
38
|
+
(o, w) => L(o, { selected: w === q })
|
|
39
|
+
), T = (o) => {
|
|
39
40
|
switch (o.key) {
|
|
40
|
-
case
|
|
41
|
+
case m.RIGHT: {
|
|
41
42
|
o.preventDefault(), c.current.focus(), l();
|
|
42
43
|
break;
|
|
43
44
|
}
|
|
44
|
-
case
|
|
45
|
-
o.preventDefault(),
|
|
45
|
+
case m.LEFT: {
|
|
46
|
+
o.preventDefault(), s.current.focus(), d();
|
|
46
47
|
break;
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
|
-
},
|
|
50
|
-
return /* @__PURE__ */ r
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
50
|
+
}, u = p.length > 1;
|
|
51
|
+
return /* @__PURE__ */ r(t, { ...A, onKeyDown: T, children: /* @__PURE__ */ h(t, { padding: 2, borderColor: "neutral200", hasRadius: !0, background: "neutral100", children: [
|
|
52
|
+
/* @__PURE__ */ h(G, { as: "section", "aria-roledescription": "carousel", "aria-label": R, position: "relative", children: [
|
|
53
|
+
u && /* @__PURE__ */ r(
|
|
54
|
+
y,
|
|
55
|
+
{
|
|
56
|
+
onClick: d,
|
|
57
|
+
area: "startAction",
|
|
58
|
+
ref: s,
|
|
59
|
+
"aria-label": x,
|
|
60
|
+
type: "button",
|
|
61
|
+
children: /* @__PURE__ */ r(g, { as: D, "aria-hidden": !0, width: "6px", height: "10px", color: "neutral600" })
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
u && /* @__PURE__ */ r(y, { onClick: l, area: "endAction", ref: c, "aria-label": C, type: "button", children: /* @__PURE__ */ r(g, { as: K, "aria-hidden": !0, width: "6px", height: "10px", color: "neutral600" }) }),
|
|
65
|
+
/* @__PURE__ */ r(I, { "aria-live": "polite", paddingLeft: 2, paddingRight: 2, width: "100%", overflow: "hidden", children: p }),
|
|
66
|
+
i
|
|
67
|
+
] }),
|
|
68
|
+
n && /* @__PURE__ */ r(t, { paddingTop: 2, paddingLeft: 4, paddingRight: 4, children: /* @__PURE__ */ r(j, { label: n, children: /* @__PURE__ */ r(E, { justifyContent: "center", children: /* @__PURE__ */ r(F, { variant: "pi", textColor: "neutral600", ellipsis: !0, children: n }) }) }) })
|
|
69
|
+
] }) });
|
|
61
70
|
};
|
|
62
|
-
|
|
71
|
+
b.defaultProps = {
|
|
63
72
|
actions: void 0,
|
|
64
73
|
error: void 0,
|
|
65
74
|
hint: void 0,
|
|
66
75
|
required: !1,
|
|
67
76
|
secondaryLabel: void 0
|
|
68
77
|
};
|
|
69
|
-
|
|
78
|
+
b.propTypes = {
|
|
70
79
|
actions: e.node,
|
|
71
80
|
children: e.node.isRequired,
|
|
72
81
|
error: e.string,
|
|
@@ -81,5 +90,5 @@ y.propTypes = {
|
|
|
81
90
|
selectedSlide: e.number.isRequired
|
|
82
91
|
};
|
|
83
92
|
export {
|
|
84
|
-
|
|
93
|
+
b as Carousel
|
|
85
94
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime");require("react");const s=require("../Flex/Flex.cjs"),i=({horizontal:e=!0,spacing:t=1,...o})=>r.jsx(s.Flex,{justifyContent:"center",gap:t,direction:e?"row":"column",alignItems:e?"center":"stretch",position:"absolute",width:"100%",bottom:1,...o});exports.CarouselActions=i;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import r from "react";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Flex as i } from "../Flex/Flex.js";
|
|
4
|
+
const c = ({ horizontal: t = !0, spacing: o = 1, ...e }) => /* @__PURE__ */ r(
|
|
5
|
+
i,
|
|
5
6
|
{
|
|
6
7
|
justifyContent: "center",
|
|
7
|
-
gap:
|
|
8
|
+
gap: o,
|
|
8
9
|
direction: t ? "row" : "column",
|
|
9
10
|
alignItems: t ? "center" : "stretch",
|
|
10
11
|
position: "absolute",
|
|
11
12
|
width: "100%",
|
|
12
13
|
bottom: 1,
|
|
13
|
-
...
|
|
14
|
+
...e
|
|
14
15
|
}
|
|
15
16
|
);
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
+
c as CarouselActions
|
|
18
19
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),u=require("react"),s=require("prop-types"),a=require("styled-components"),c=require("../Typography/utils.cjs"),g=require("../Box/Box.cjs"),d=require("../Tooltip/Tooltip.cjs"),o=a(g.Box)`
|
|
2
2
|
height: 100%;
|
|
3
|
-
${
|
|
4
|
-
`,
|
|
3
|
+
${c.ellipsisStyle({ellipsis:!0})}
|
|
4
|
+
`,t=e=>{const[i,l]=u.useState(!1),n=()=>{l(!0)};return i?r.jsx(d.Tooltip,{description:e.alt??"",children:r.jsx(o,{as:"img",...e})}):r.jsx(o,{as:"img",...e,onError:n})};t.defaultProps={src:void 0,alt:void 0};t.propTypes={alt:s.string,src:s.string};exports.CarouselImage=t;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p } from "react";
|
|
2
3
|
import t from "prop-types";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
4
|
+
import a from "styled-components";
|
|
5
|
+
import { ellipsisStyle as n } from "../Typography/utils.js";
|
|
6
|
+
import { Box as f } from "../Box/Box.js";
|
|
5
7
|
import { Tooltip as c } from "../Tooltip/Tooltip.js";
|
|
6
|
-
|
|
7
|
-
const o = n(p)`
|
|
8
|
+
const e = a(f)`
|
|
8
9
|
height: 100%;
|
|
9
|
-
${
|
|
10
|
-
`,
|
|
11
|
-
const [
|
|
10
|
+
${n({ ellipsis: !0 })}
|
|
11
|
+
`, i = (r) => {
|
|
12
|
+
const [s, m] = p(!1), l = () => {
|
|
12
13
|
m(!0);
|
|
13
14
|
};
|
|
14
|
-
return
|
|
15
|
+
return s ? /* @__PURE__ */ o(c, { description: r.alt ?? "", children: /* @__PURE__ */ o(e, { as: "img", ...r }) }) : /* @__PURE__ */ o(e, { as: "img", ...r, onError: l });
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
+
i.defaultProps = {
|
|
17
18
|
src: void 0,
|
|
18
19
|
alt: void 0
|
|
19
20
|
};
|
|
20
|
-
|
|
21
|
+
i.propTypes = {
|
|
21
22
|
alt: t.string,
|
|
22
23
|
src: t.string
|
|
23
24
|
};
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
+
i as CarouselImage
|
|
26
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime");require("react");const e=require("prop-types"),j=require("./Carousel.cjs"),y=require("../hooks/useId.cjs"),R=require("../Field/Field.cjs"),f=require("../Field/FieldLabel.cjs"),h=require("../Field/FieldHint.cjs"),m=require("../Field/FieldError.cjs"),I=require("../Flex/Flex.cjs"),n=({actions:o,children:d,error:t,hint:u,label:i,labelAction:l,nextLabel:c,onNext:a,onPrevious:q,previousLabel:g,required:p,secondaryLabel:b,selectedSlide:x,id:F,...v})=>{const s=y.useId(F);return r.jsx(R.Field,{hint:u,error:t,id:s,required:p,children:r.jsxs(I.Flex,{direction:"column",alignItems:"stretch",gap:1,children:[i&&r.jsx(f.FieldLabel,{action:l,children:i}),r.jsx(j.Carousel,{actions:o,label:i,nextLabel:c,onNext:a,onPrevious:q,previousLabel:g,secondaryLabel:b,selectedSlide:x,id:s,...v,children:d}),r.jsx(h.FieldHint,{}),r.jsx(m.FieldError,{})]})})};n.defaultProps={actions:void 0,error:void 0,hint:void 0,id:void 0,labelAction:void 0,required:!1,secondaryLabel:void 0};n.propTypes={actions:e.node,children:e.node.isRequired,error:e.string,hint:e.oneOfType([e.string,e.node,e.arrayOf(e.node)]),id:e.string,label:e.string.isRequired,labelAction:e.element,nextLabel:e.string.isRequired,onNext:e.func.isRequired,onPrevious:e.func.isRequired,previousLabel:e.string.isRequired,required:e.bool,secondaryLabel:e.string,selectedSlide:e.number.isRequired};exports.CarouselInput=n;
|