@strapi/design-system 1.7.0 → 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/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 +9 -9
- package/dist/Combobox/Combobox.js +52 -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 +4 -4
- package/dist/Layout/HeaderLayout.js +83 -59
- 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 +3 -3
- package/dist/Popover/Popover.js +48 -100
- 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 +43 -206
- 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 +13 -13
- package/dist/Select/SelectParts.js +35 -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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),s=require("react"),e=require("prop-types"),u=require("styled-components"),m=require("./Divider.cjs"),a=require("../../Flex/Flex.cjs"),b=require("../../Box/Box.cjs"),y=u(a.Flex)`
|
|
2
2
|
// CrumbLinks do have padding-x, because they need to have a
|
|
3
3
|
// interaction effect, which mis-aligns the breadcrumbs on the left.
|
|
4
4
|
// This normalizes the behavior by moving the first item to left by
|
|
5
5
|
// the same amount it has inner padding
|
|
6
6
|
:first-child {
|
|
7
|
-
margin-left: ${({theme:
|
|
7
|
+
margin-left: ${({theme:i})=>`calc(-1*${i.spaces[2]})`};
|
|
8
8
|
}
|
|
9
|
-
`,n=({label:
|
|
9
|
+
`,n=({label:i,children:o,...l})=>{const t=s.Children.toArray(o);return r.jsx(b.Box,{"aria-label":i,...l,children:r.jsx(y,{as:"ol",horizontal:!0,children:s.Children.map(t,(c,d)=>{const h=t.length>1&&d+1<t.length;return r.jsxs(a.Flex,{inline:!0,as:"li",children:[c,h&&r.jsx(m.Divider,{})]})})})})};n.displayName="Breadcrumbs";n.propTypes={children:e.oneOfType([e.arrayOf(e.node),e.node]).isRequired,label:e.string.isRequired};exports.Breadcrumbs=n;
|
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { Children as o } from "react";
|
|
2
3
|
import e from "prop-types";
|
|
3
|
-
import
|
|
4
|
-
import { Divider as
|
|
5
|
-
import { Box as f } from "../../Box/Box.js";
|
|
4
|
+
import p from "styled-components";
|
|
5
|
+
import { Divider as f } from "./Divider.js";
|
|
6
6
|
import { Flex as n } from "../../Flex/Flex.js";
|
|
7
|
-
|
|
7
|
+
import { Box as u } from "../../Box/Box.js";
|
|
8
|
+
const y = p(n)`
|
|
8
9
|
// CrumbLinks do have padding-x, because they need to have a
|
|
9
10
|
// interaction effect, which mis-aligns the breadcrumbs on the left.
|
|
10
11
|
// This normalizes the behavior by moving the first item to left by
|
|
11
12
|
// the same amount it has inner padding
|
|
12
13
|
:first-child {
|
|
13
|
-
margin-left: ${({ theme:
|
|
14
|
+
margin-left: ${({ theme: r }) => `calc(-1*${r.spaces[2]})`};
|
|
14
15
|
}
|
|
15
|
-
`,
|
|
16
|
-
const i =
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
const
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
|
|
16
|
+
`, a = ({ label: r, children: s, ...l }) => {
|
|
17
|
+
const i = o.toArray(s);
|
|
18
|
+
return /* @__PURE__ */ t(u, { "aria-label": r, ...l, children: /* @__PURE__ */ t(y, { as: "ol", horizontal: !0, children: o.map(i, (m, d) => {
|
|
19
|
+
const h = i.length > 1 && d + 1 < i.length;
|
|
20
|
+
return /* @__PURE__ */ c(n, { inline: !0, as: "li", children: [
|
|
21
|
+
m,
|
|
22
|
+
h && /* @__PURE__ */ t(f, {})
|
|
23
|
+
] });
|
|
24
|
+
}) }) });
|
|
21
25
|
};
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
a.displayName = "Breadcrumbs";
|
|
27
|
+
a.propTypes = {
|
|
24
28
|
children: e.oneOfType([e.arrayOf(e.node), e.node]).isRequired,
|
|
25
29
|
label: e.string.isRequired
|
|
26
30
|
};
|
|
27
31
|
export {
|
|
28
|
-
|
|
32
|
+
a as Breadcrumbs
|
|
29
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime");require("react");const t=require("prop-types"),a=require("../../Box/Box.cjs"),p=require("../../Typography/Typography.cjs"),e=({children:i,isCurrent:r,...n})=>o.jsx(a.Box,{paddingLeft:2,paddingRight:2,paddingTop:1,paddingBottom:1,children:o.jsx(p.Typography,{variant:"pi",textColor:"neutral800",fontWeight:r?"bold":"normal","aria-current":r,...n,children:i})});e.displayName="Crumb";e.defaultProps={isCurrent:!1};e.propTypes={children:t.node.isRequired,isCurrent:t.bool};exports.Crumb=e;
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import i from "prop-types";
|
|
4
|
+
import { Box as a } from "../../Box/Box.js";
|
|
4
5
|
import { Typography as d } from "../../Typography/Typography.js";
|
|
5
|
-
const r = ({ children:
|
|
6
|
+
const r = ({ children: t, isCurrent: o, ...e }) => /* @__PURE__ */ p(a, { paddingLeft: 2, paddingRight: 2, paddingTop: 1, paddingBottom: 1, children: /* @__PURE__ */ p(
|
|
6
7
|
d,
|
|
7
8
|
{
|
|
8
9
|
variant: "pi",
|
|
9
10
|
textColor: "neutral800",
|
|
10
|
-
fontWeight:
|
|
11
|
-
"aria-current":
|
|
12
|
-
...
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
));
|
|
11
|
+
fontWeight: o ? "bold" : "normal",
|
|
12
|
+
"aria-current": o,
|
|
13
|
+
...e,
|
|
14
|
+
children: t
|
|
15
|
+
}
|
|
16
|
+
) });
|
|
16
17
|
r.displayName = "Crumb";
|
|
17
18
|
r.defaultProps = {
|
|
18
19
|
isCurrent: !1
|
|
19
20
|
};
|
|
20
21
|
r.propTypes = {
|
|
21
|
-
children:
|
|
22
|
-
isCurrent:
|
|
22
|
+
children: i.node.isRequired,
|
|
23
|
+
isCurrent: i.bool
|
|
23
24
|
};
|
|
24
25
|
export {
|
|
25
26
|
r as Crumb
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime");require("react");const o=require("prop-types"),n=require("styled-components"),t=require("../../BaseLink/BaseLink.cjs"),u=n(t.BaseLink)`
|
|
2
2
|
border-radius: ${({theme:e})=>e.borderRadius};
|
|
3
3
|
color: ${({theme:e})=>e.colors.neutral600};
|
|
4
4
|
font-size: ${({theme:e})=>e.fontSizes[1]};
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
background-color: ${({theme:e})=>e.colors.neutral200};
|
|
12
12
|
color: ${({theme:e})=>e.colors.neutral700};
|
|
13
13
|
}
|
|
14
|
-
`,
|
|
14
|
+
`,r=({children:e,...s})=>i.jsx(u,{...s,children:e});r.displayName="CrumbLink";r.defaultProps={to:void 0};r.propTypes={children:o.node.isRequired,to:o.string};exports.CrumbLink=r;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
2
3
|
import e from "prop-types";
|
|
3
|
-
import
|
|
4
|
+
import t from "styled-components";
|
|
4
5
|
import { BaseLink as n } from "../../BaseLink/BaseLink.js";
|
|
5
|
-
const
|
|
6
|
+
const d = t(n)`
|
|
6
7
|
border-radius: ${({ theme: o }) => o.borderRadius};
|
|
7
8
|
color: ${({ theme: o }) => o.colors.neutral600};
|
|
8
9
|
font-size: ${({ theme: o }) => o.fontSizes[1]};
|
|
@@ -15,7 +16,7 @@ const l = s(n)`
|
|
|
15
16
|
background-color: ${({ theme: o }) => o.colors.neutral200};
|
|
16
17
|
color: ${({ theme: o }) => o.colors.neutral700};
|
|
17
18
|
}
|
|
18
|
-
`, r = ({ children: o, ...
|
|
19
|
+
`, r = ({ children: o, ...i }) => /* @__PURE__ */ s(d, { ...i, children: o });
|
|
19
20
|
r.displayName = "CrumbLink";
|
|
20
21
|
r.defaultProps = {
|
|
21
22
|
to: void 0
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime");require("react");const i=require("@strapi/icons"),r=require("prop-types"),u=require("styled-components"),t=require("../SimpleMenu/SimpleMenu.cjs"),c=require("../../Button/Button.cjs"),l=u(c.Button)`
|
|
2
2
|
padding: ${({theme:e})=>`${e.spaces[1]} ${e.spaces[3]}`};
|
|
3
3
|
|
|
4
4
|
:hover,
|
|
5
5
|
:focus {
|
|
6
6
|
background-color: ${({theme:e})=>e.colors.neutral200};
|
|
7
7
|
}
|
|
8
|
-
`,o=({children:e,...
|
|
8
|
+
`,o=({children:e,...s})=>n.jsx(t.SimpleMenu,{noBorder:!0,icon:n.jsx(i.CarretDown,{}),as:l,size:"S",...s,children:e});o.displayName="CrumbSimpleMenu";o.propTypes={"aria-label":r.string.isRequired,children:r.oneOfType([r.arrayOf(r.node),r.node]).isRequired};exports.CrumbSimpleMenu=o;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { SimpleMenu as
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { CarretDown as t } from "@strapi/icons";
|
|
4
|
+
import o from "prop-types";
|
|
5
|
+
import m from "styled-components";
|
|
6
|
+
import { SimpleMenu as n } from "../SimpleMenu/SimpleMenu.js";
|
|
7
|
+
import { Button as s } from "../../Button/Button.js";
|
|
8
|
+
const a = m(s)`
|
|
9
|
+
padding: ${({ theme: r }) => `${r.spaces[1]} ${r.spaces[3]}`};
|
|
9
10
|
|
|
10
11
|
:hover,
|
|
11
12
|
:focus {
|
|
12
|
-
background-color: ${({ theme:
|
|
13
|
+
background-color: ${({ theme: r }) => r.colors.neutral200};
|
|
13
14
|
}
|
|
14
|
-
`,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"aria-label":
|
|
18
|
-
children:
|
|
15
|
+
`, i = ({ children: r, ...p }) => /* @__PURE__ */ e(n, { noBorder: !0, icon: /* @__PURE__ */ e(t, {}), as: a, size: "S", ...p, children: r });
|
|
16
|
+
i.displayName = "CrumbSimpleMenu";
|
|
17
|
+
i.propTypes = {
|
|
18
|
+
"aria-label": o.string.isRequired,
|
|
19
|
+
children: o.oneOfType([o.arrayOf(o.node), o.node]).isRequired
|
|
19
20
|
};
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
+
i as CrumbSimpleMenu
|
|
22
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("react");const i=require("../../Box/Box.cjs"),t=require("../../Typography/Typography.cjs"),r=()=>e.jsx(i.Box,{"aria-hidden":!0,paddingLeft:1,paddingRight:1,children:e.jsx(t.Typography,{variant:"pi",textColor:"neutral500",children:"/"})});r.displayName="Divider";exports.Divider=r;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Box as i } from "../../Box/Box.js";
|
|
3
4
|
import { Typography as t } from "../../Typography/Typography.js";
|
|
4
|
-
const
|
|
5
|
-
|
|
5
|
+
const o = () => /* @__PURE__ */ r(i, { "aria-hidden": !0, paddingLeft: 1, paddingRight: 1, children: /* @__PURE__ */ r(t, { variant: "pi", textColor: "neutral500", children: "/" }) });
|
|
6
|
+
o.displayName = "Divider";
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
+
o as Divider
|
|
8
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./Breadcrumbs.cjs"),e=require("./Crumb.cjs"),u=require("./CrumbLink.cjs"),m=require("./CrumbSimpleMenu.cjs");exports.Breadcrumbs=r.Breadcrumbs;exports.Crumb=e.Crumb;exports.CrumbLink=u.CrumbLink;exports.CrumbSimpleMenu=m.CrumbSimpleMenu;
|
package/dist/v2/Link/Link.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),u=require("react"),p=require("@strapi/icons"),y=require("styled-components"),d=require("../../themes/utils.cjs"),f=require("../../BaseLink/BaseLink.cjs"),m=require("../../Typography/Typography.cjs"),x=y(f.BaseLink)`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
text-decoration: none;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
font-size: ${10/16}rem;
|
|
10
10
|
|
|
11
11
|
path {
|
|
12
|
-
fill: ${({disabled:e,theme:
|
|
12
|
+
fill: ${({disabled:e,theme:r})=>e?r.colors.neutral600:r.colors.primary600};
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
color: ${({theme:e})=>e.colors.primary700};
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
${
|
|
25
|
-
`,
|
|
24
|
+
${d.buttonFocusStyle};
|
|
25
|
+
`,s=u.forwardRef(({children:e,href:r,disabled:o=!1,startIcon:a,endIcon:i,isExternal:t=!0,...l},c)=>n.jsxs(x,{ref:c,href:r,disabled:o,isExternal:t,...l,children:[a,n.jsx(m.Typography,{textColor:o?"neutral600":"primary600",children:e}),i,r&&!i&&t&&n.jsx(p.ExternalLink,{})]}));s.displayName="Link";exports.Link=s;
|
package/dist/v2/Link/Link.js
CHANGED
|
@@ -2,63 +2,34 @@ import { jsxs as s, jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import m from "react";
|
|
3
3
|
import { ExternalLink as f } from "@strapi/icons";
|
|
4
4
|
import c from "styled-components";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { buttonFocusStyle as y } from "../../themes/utils.js";
|
|
6
|
+
import { BaseLink as d } from "../../BaseLink/BaseLink.js";
|
|
7
7
|
import { Typography as u } from "../../Typography/Typography.js";
|
|
8
|
-
const x = c(
|
|
8
|
+
const x = c(d)`
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
text-decoration: none;
|
|
12
|
-
gap: ${({
|
|
13
|
-
|
|
14
|
-
}) => r.spaces[2]};
|
|
15
|
-
pointer-events: ${({
|
|
16
|
-
disabled: r
|
|
17
|
-
}) => r ? "none" : void 0};
|
|
12
|
+
gap: ${({ theme: r }) => r.spaces[2]};
|
|
13
|
+
pointer-events: ${({ disabled: r }) => r ? "none" : void 0};
|
|
18
14
|
|
|
19
15
|
svg {
|
|
20
16
|
font-size: ${10 / 16}rem;
|
|
21
17
|
|
|
22
18
|
path {
|
|
23
|
-
fill: ${({
|
|
24
|
-
disabled: r,
|
|
25
|
-
theme: o
|
|
26
|
-
}) => r ? o.colors.neutral600 : o.colors.primary600};
|
|
19
|
+
fill: ${({ disabled: r, theme: o }) => r ? o.colors.neutral600 : o.colors.primary600};
|
|
27
20
|
}
|
|
28
21
|
}
|
|
29
22
|
|
|
30
23
|
&:hover {
|
|
31
|
-
color: ${({
|
|
32
|
-
theme: r
|
|
33
|
-
}) => r.colors.primary500};
|
|
24
|
+
color: ${({ theme: r }) => r.colors.primary500};
|
|
34
25
|
}
|
|
35
26
|
|
|
36
27
|
&:active {
|
|
37
|
-
color: ${({
|
|
38
|
-
theme: r
|
|
39
|
-
}) => r.colors.primary700};
|
|
28
|
+
color: ${({ theme: r }) => r.colors.primary700};
|
|
40
29
|
}
|
|
41
30
|
|
|
42
|
-
${
|
|
43
|
-
`, $ = m.forwardRef(({
|
|
44
|
-
children: r,
|
|
45
|
-
href: o,
|
|
46
|
-
disabled: e = !1,
|
|
47
|
-
startIcon: a,
|
|
48
|
-
endIcon: t,
|
|
49
|
-
isExternal: i = !0,
|
|
50
|
-
...l
|
|
51
|
-
}, p) => s(x, {
|
|
52
|
-
ref: p,
|
|
53
|
-
href: o,
|
|
54
|
-
disabled: e,
|
|
55
|
-
isExternal: i,
|
|
56
|
-
...l,
|
|
57
|
-
children: [a, n(u, {
|
|
58
|
-
textColor: e ? "neutral600" : "primary600",
|
|
59
|
-
children: r
|
|
60
|
-
}), t, o && !t && i && n(f, {})]
|
|
61
|
-
}));
|
|
31
|
+
${y};
|
|
32
|
+
`, $ = m.forwardRef(({ children: r, href: o, disabled: e = !1, startIcon: a, endIcon: t, isExternal: i = !0, ...l }, p) => s(x, { ref: p, href: o, disabled: e, isExternal: i, ...l, children: [a, n(u, { textColor: e ? "neutral600" : "primary600", children: r }), t, o && !t && i && n(f, {})] }));
|
|
62
33
|
$.displayName = "Link";
|
|
63
34
|
export {
|
|
64
35
|
$ as Link
|
package/dist/v2/Link/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Link.cjs");exports.Link=e.Link;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),b=require("react"),x=require("styled-components"),e=require("../../Button/utils.cjs"),B=require("../../BaseButton/BaseButton.cjs"),s=require("../../BaseLink/BaseLink.cjs"),u=require("../../Flex/Flex.cjs"),f=require("../../Typography/Typography.cjs"),S=x(B.BaseButtonWrapper)`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
|
|
4
4
|
&[aria-disabled='true'] {
|
|
5
|
-
${
|
|
5
|
+
${e.getDisabledStyle}
|
|
6
6
|
&:active {
|
|
7
|
-
${
|
|
7
|
+
${e.getDisabledStyle}
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
&:hover {
|
|
12
|
-
${
|
|
12
|
+
${e.getHoverStyle}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
&:active {
|
|
16
|
-
${
|
|
16
|
+
${e.getActiveStyle}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
${
|
|
20
|
-
`,
|
|
19
|
+
${e.getVariantStyle}
|
|
20
|
+
`,l=b.forwardRef(({variant:c="default",startIcon:n,endIcon:i,disabled:a=!1,children:p,size:r="S",as:g=s.BaseLink,...y},h)=>{const o=r==="S"?2:"10px",d=4;return t.jsxs(S,{ref:h,"aria-disabled":a,size:r,variant:c,background:"buttonPrimary600",borderColor:"buttonPrimary600",hasRadius:!0,gap:2,inline:!0,paddingBottom:o,paddingLeft:d,paddingRight:d,paddingTop:o,pointerEvents:a?"none":void 0,...y,as:g||s.BaseLink,children:[n&&t.jsx(u.Flex,{"aria-hidden":!0,children:n}),t.jsx(f.Typography,{variant:r==="S"?"pi":void 0,fontWeight:"bold",textColor:"buttonNeutral0",children:p}),i&&t.jsx(u.Flex,{"aria-hidden":!0,children:i})]})});l.displayName="LinkButton";exports.LinkButton=l;
|
|
@@ -1,71 +1,33 @@
|
|
|
1
1
|
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import h from "react";
|
|
3
3
|
import y from "styled-components";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { getDisabledStyle as d, getHoverStyle as b, getActiveStyle as v, getVariantStyle as x } from "../../Button/utils.js";
|
|
5
|
+
import { BaseButtonWrapper as S } from "../../BaseButton/BaseButton.js";
|
|
6
|
+
import { BaseLink as p } from "../../BaseLink/BaseLink.js";
|
|
7
7
|
import { Flex as l } from "../../Flex/Flex.js";
|
|
8
8
|
import { Typography as B } from "../../Typography/Typography.js";
|
|
9
|
-
const k = y(
|
|
9
|
+
const k = y(S)`
|
|
10
10
|
text-decoration: none;
|
|
11
11
|
|
|
12
12
|
&[aria-disabled='true'] {
|
|
13
|
-
${
|
|
13
|
+
${d}
|
|
14
14
|
&:active {
|
|
15
|
-
${
|
|
15
|
+
${d}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&:hover {
|
|
20
|
-
${
|
|
20
|
+
${b}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&:active {
|
|
24
|
-
${
|
|
24
|
+
${v}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
${
|
|
28
|
-
`, L = h.forwardRef(({
|
|
29
|
-
variant: m = "default",
|
|
30
|
-
startIcon: e,
|
|
31
|
-
endIcon: i,
|
|
32
|
-
disabled: o = !1,
|
|
33
|
-
children: u,
|
|
34
|
-
size: t = "S",
|
|
35
|
-
as: f = d,
|
|
36
|
-
...s
|
|
37
|
-
}, g) => {
|
|
27
|
+
${x}
|
|
28
|
+
`, L = h.forwardRef(({ variant: m = "default", startIcon: e, endIcon: i, disabled: o = !1, children: u, size: t = "S", as: f = p, ...s }, g) => {
|
|
38
29
|
const a = t === "S" ? 2 : "10px", n = 4;
|
|
39
|
-
return c(k, {
|
|
40
|
-
ref: g,
|
|
41
|
-
"aria-disabled": o,
|
|
42
|
-
size: t,
|
|
43
|
-
variant: m,
|
|
44
|
-
background: "buttonPrimary600",
|
|
45
|
-
borderColor: "buttonPrimary600",
|
|
46
|
-
hasRadius: !0,
|
|
47
|
-
gap: 2,
|
|
48
|
-
inline: !0,
|
|
49
|
-
paddingBottom: a,
|
|
50
|
-
paddingLeft: n,
|
|
51
|
-
paddingRight: n,
|
|
52
|
-
paddingTop: a,
|
|
53
|
-
pointerEvents: o ? "none" : void 0,
|
|
54
|
-
...s,
|
|
55
|
-
as: f || d,
|
|
56
|
-
children: [e && r(l, {
|
|
57
|
-
"aria-hidden": !0,
|
|
58
|
-
children: e
|
|
59
|
-
}), r(B, {
|
|
60
|
-
variant: t === "S" ? "pi" : void 0,
|
|
61
|
-
fontWeight: "bold",
|
|
62
|
-
textColor: "buttonNeutral0",
|
|
63
|
-
children: u
|
|
64
|
-
}), i && r(l, {
|
|
65
|
-
"aria-hidden": !0,
|
|
66
|
-
children: i
|
|
67
|
-
})]
|
|
68
|
-
});
|
|
30
|
+
return c(k, { ref: g, "aria-disabled": o, size: t, variant: m, background: "buttonPrimary600", borderColor: "buttonPrimary600", hasRadius: !0, gap: 2, inline: !0, paddingBottom: a, paddingLeft: n, paddingRight: n, paddingTop: a, pointerEvents: o ? "none" : void 0, ...s, as: f || p, children: [e && r(l, { "aria-hidden": !0, children: e }), r(B, { variant: t === "S" ? "pi" : void 0, fontWeight: "bold", textColor: "buttonNeutral0", children: u }), i && r(l, { "aria-hidden": !0, children: i })] });
|
|
69
31
|
});
|
|
70
32
|
L.displayName = "LinkButton";
|
|
71
33
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./LinkButton.cjs");exports.LinkButton=t.LinkButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime");require("react");const o=require("prop-types"),i=require("styled-components"),a=require("./MainNavContext.cjs"),s=require("../../Flex/Flex.cjs"),l=i(s.Flex)`
|
|
2
2
|
width: ${({condensed:e})=>e?"max-content":`${224/16}rem`};
|
|
3
3
|
border-right: 1px solid ${({theme:e})=>e.colors.neutral150};
|
|
4
|
-
`,
|
|
4
|
+
`,r=({condensed:e,...t})=>n.jsx(a.MainNavContext.Provider,{value:e,children:n.jsx(l,{alignItems:"normal",as:"nav",background:"neutral0",condensed:e,direction:"column",height:"100vh",position:"sticky",top:0,zIndex:2,...t})});r.defaultProps={condensed:!1};r.propTypes={condensed:o.bool};exports.MainNav=r;
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
2
3
|
import n from "prop-types";
|
|
3
|
-
import
|
|
4
|
-
import { MainNavContext as
|
|
5
|
-
import { Flex as
|
|
6
|
-
const
|
|
7
|
-
width: ${({ condensed:
|
|
8
|
-
border-right: 1px solid ${({ theme:
|
|
9
|
-
`,
|
|
10
|
-
|
|
4
|
+
import i from "styled-components";
|
|
5
|
+
import { MainNavContext as a } from "./MainNavContext.js";
|
|
6
|
+
import { Flex as p } from "../../Flex/Flex.js";
|
|
7
|
+
const m = i(p)`
|
|
8
|
+
width: ${({ condensed: o }) => o ? "max-content" : `${224 / 16}rem`};
|
|
9
|
+
border-right: 1px solid ${({ theme: o }) => o.colors.neutral150};
|
|
10
|
+
`, t = ({ condensed: o, ...e }) => /* @__PURE__ */ r(a.Provider, { value: o, children: /* @__PURE__ */ r(
|
|
11
|
+
m,
|
|
11
12
|
{
|
|
12
13
|
alignItems: "normal",
|
|
13
14
|
as: "nav",
|
|
14
15
|
background: "neutral0",
|
|
15
|
-
condensed:
|
|
16
|
+
condensed: o,
|
|
16
17
|
direction: "column",
|
|
17
18
|
height: "100vh",
|
|
18
19
|
position: "sticky",
|
|
19
20
|
top: 0,
|
|
20
21
|
zIndex: 2,
|
|
21
|
-
...
|
|
22
|
+
...e
|
|
22
23
|
}
|
|
23
|
-
));
|
|
24
|
-
|
|
24
|
+
) });
|
|
25
|
+
t.defaultProps = {
|
|
25
26
|
condensed: !1
|
|
26
27
|
};
|
|
27
|
-
|
|
28
|
+
t.propTypes = {
|
|
28
29
|
condensed: n.bool
|
|
29
30
|
};
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
t as MainNav
|
|
32
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=e.createContext(),n=()=>e.useContext(t);exports.MainNavContext=t;exports.useMainNav=n;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";Object.
|
|
2
|
-
border-radius: ${({theme:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("react"),n=require("prop-types"),u=require("styled-components"),g=require("./MainNavContext.cjs"),h=require("../../BaseLink/BaseLink.cjs"),d=require("../../Box/Box.cjs"),c=require("../../VisuallyHidden/VisuallyHidden.cjs"),j=require("../../Flex/Flex.cjs"),l=require("../../Typography/Typography.cjs"),p=u.div`
|
|
2
|
+
border-radius: ${({theme:r})=>r.borderRadius};
|
|
3
3
|
|
|
4
4
|
svg,
|
|
5
5
|
img {
|
|
6
|
-
height: ${({condensed:
|
|
7
|
-
width: ${({condensed:
|
|
6
|
+
height: ${({condensed:r})=>r?`${40/16}rem`:`${32/16}rem`};
|
|
7
|
+
width: ${({condensed:r})=>r?`${40/16}rem`:`${32/16}rem`};
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,y=u(h.BaseLink)`
|
|
10
10
|
text-decoration: unset;
|
|
11
11
|
color: inherit;
|
|
12
|
-
`,
|
|
12
|
+
`,i=x.forwardRef(({workplace:r,title:s,icon:t,...a},o)=>g.useMainNav()?e.jsx(h.BaseLink,{ref:o,...a,children:e.jsx(d.Box,{paddingLeft:3,paddingRight:3,paddingTop:4,paddingBottom:4,children:e.jsxs(p,{condensed:!0,children:[t,e.jsxs(c.VisuallyHidden,{children:[e.jsx("span",{children:s}),e.jsx("span",{children:r})]})]})})}):e.jsx(y,{ref:o,...a,children:e.jsx(d.Box,{paddingLeft:3,paddingRight:3,paddingTop:4,paddingBottom:4,children:e.jsxs(j.Flex,{children:[e.jsx(p,{"aria-hidden":!0,tabIndex:-1,children:t}),e.jsxs(d.Box,{paddingLeft:2,children:[e.jsxs(l.Typography,{fontWeight:"bold",textColor:"neutral800",as:"span",children:[s,e.jsx(c.VisuallyHidden,{as:"span",children:r})]}),e.jsx(l.Typography,{variant:"pi",as:"p",textColor:"neutral600","aria-hidden":!0,children:r})]})]})})}));i.displayName="NavBrand";i.defaultProps={to:"/"};i.propTypes={icon:n.node.isRequired,title:n.string.isRequired,to:n.string,workplace:n.string.isRequired};exports.NavBrand=i;
|