@strapi/design-system 1.14.0-typescript.1 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BaseCheckbox/assets/checkmark-black.svg.js +1 -1
- package/dist/BaseCheckbox/assets/checkmark-black.svg.mjs +1 -1
- package/dist/BaseCheckbox/assets/checkmark.svg.js +1 -1
- package/dist/BaseCheckbox/assets/checkmark.svg.mjs +1 -1
- package/dist/FocusTrap/FocusTrap.js +3 -3
- package/dist/FocusTrap/FocusTrap.mjs +3 -3
- package/dist/Loader/assets/loader.svg.js +1 -1
- package/dist/Loader/assets/loader.svg.mjs +1 -1
- package/dist/Pagination/assets/next.svg.js +1 -1
- package/dist/Pagination/assets/next.svg.mjs +1 -1
- package/dist/Pagination/assets/previous.svg.js +1 -1
- package/dist/Pagination/assets/previous.svg.mjs +1 -1
- package/dist/themes/common-theme.js +1 -1
- package/dist/themes/common-theme.mjs +1 -1
- package/dist/v2/Pagination/assets/next.svg.js +1 -1
- package/dist/v2/Pagination/assets/next.svg.mjs +1 -1
- package/dist/v2/Pagination/assets/previous.svg.js +1 -1
- package/dist/v2/Pagination/assets/previous.svg.mjs +1 -1
- package/package.json +9 -9
- package/dist/Accordion/Accordion.d.ts +0 -54
- package/dist/Accordion/AccordionContent.d.ts +0 -3
- package/dist/Accordion/AccordionContext.d.ts +0 -12
- package/dist/Accordion/AccordionGroup.d.ts +0 -10
- package/dist/Accordion/AccordionToggle.d.ts +0 -22
- package/dist/Accordion/index.d.ts +0 -4
- package/dist/Accordion/utils.d.ts +0 -7
- package/dist/Alert/Alert.d.ts +0 -34
- package/dist/Alert/index.d.ts +0 -1
- package/dist/Alert/utils.d.ts +0 -10
- package/dist/Avatar/Avatar.d.ts +0 -22
- package/dist/Avatar/AvatarGroup.d.ts +0 -1
- package/dist/Avatar/__tests__/Avatar.spec.d.ts +0 -1
- package/dist/Avatar/constants.d.ts +0 -2
- package/dist/Avatar/index.d.ts +0 -2
- package/dist/Badge/Badge.d.ts +0 -13
- package/dist/Badge/index.d.ts +0 -1
- package/dist/BaseButton/BaseButton.d.ts +0 -52
- package/dist/BaseButton/index.d.ts +0 -1
- package/dist/BaseCheckbox/BaseCheckbox.d.ts +0 -27
- package/dist/BaseCheckbox/index.d.ts +0 -1
- package/dist/BaseCheckbox/utils.d.ts +0 -7
- package/dist/BaseLink/BaseLink.d.ts +0 -50
- package/dist/BaseLink/__tests__/BaseLink.spec.d.ts +0 -1
- package/dist/BaseLink/index.d.ts +0 -1
- package/dist/BaseRadio/BaseRadio.d.ts +0 -6
- package/dist/BaseRadio/RadioGroup.d.ts +0 -12
- package/dist/BaseRadio/context.d.ts +0 -9
- package/dist/BaseRadio/index.d.ts +0 -2
- package/dist/BaseRadio/utils.d.ts +0 -4
- package/dist/Box/Box.d.ts +0 -97
- package/dist/Box/__tests__/Box.spec.d.ts +0 -1
- package/dist/Box/index.d.ts +0 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +0 -17
- package/dist/Breadcrumbs/index.d.ts +0 -1
- package/dist/Button/Button.d.ts +0 -61
- package/dist/Button/__tests__/utils.spec.d.ts +0 -1
- package/dist/Button/constants.d.ts +0 -13
- package/dist/Button/index.d.ts +0 -1
- package/dist/Button/utils.d.ts +0 -18
- package/dist/Card/Card.d.ts +0 -5
- package/dist/Card/CardAction.d.ts +0 -8
- package/dist/Card/CardAsset.d.ts +0 -7
- package/dist/Card/CardBadge.d.ts +0 -3
- package/dist/Card/CardBody.d.ts +0 -3
- package/dist/Card/CardCheckbox.d.ts +0 -3
- package/dist/Card/CardContent.d.ts +0 -6
- package/dist/Card/CardContext.d.ts +0 -6
- package/dist/Card/CardHeader.d.ts +0 -3
- package/dist/Card/CardTimer.d.ts +0 -6
- package/dist/Card/CardTitle.d.ts +0 -5
- package/dist/Card/index.d.ts +0 -10
- package/dist/CarouselInput/Carousel.d.ts +0 -15
- package/dist/CarouselInput/CarouselActions.d.ts +0 -10
- package/dist/CarouselInput/CarouselImage.d.ts +0 -6
- package/dist/CarouselInput/CarouselInput.d.ts +0 -8
- package/dist/CarouselInput/CarouselSlide.d.ts +0 -7
- package/dist/CarouselInput/index.d.ts +0 -5
- package/dist/Checkbox/Checkbox.d.ts +0 -9
- package/dist/Checkbox/index.d.ts +0 -1
- package/dist/Combobox/Combobox.d.ts +0 -60
- package/dist/Combobox/ComboboxList.d.ts +0 -10
- package/dist/Combobox/ComboboxOption.d.ts +0 -3
- package/dist/Combobox/__tests__/Combobox.spec.d.ts +0 -1
- package/dist/Combobox/index.d.ts +0 -3
- package/dist/DatePicker/DatePicker.d.ts +0 -78
- package/dist/DatePicker/__tests__/DatePicker.spec.d.ts +0 -1
- package/dist/DatePicker/index.d.ts +0 -2
- package/dist/DateTimePicker/DateTimePicker.d.ts +0 -32
- package/dist/DateTimePicker/__tests__/DateTimePicker.spec.d.ts +0 -1
- package/dist/DateTimePicker/index.d.ts +0 -1
- package/dist/DesignSystemProvider.d.ts +0 -10
- package/dist/Dialog/Dialog.d.ts +0 -7
- package/dist/Dialog/DialogBody.d.ts +0 -6
- package/dist/Dialog/DialogFooter.d.ts +0 -6
- package/dist/Dialog/__tests__/Dialog.spec.d.ts +0 -1
- package/dist/Dialog/index.d.ts +0 -3
- package/dist/DismissibleLayer/index.d.ts +0 -3
- package/dist/Divider/Divider.d.ts +0 -9
- package/dist/Divider/index.d.ts +0 -1
- package/dist/EmptyStateLayout/EmptyStateLayout.d.ts +0 -7
- package/dist/EmptyStateLayout/index.d.ts +0 -1
- package/dist/EmptyStateLayout/story-assets/Illo.d.ts +0 -1
- package/dist/Field/Field.d.ts +0 -14
- package/dist/Field/FieldAction.d.ts +0 -7
- package/dist/Field/FieldContext.d.ts +0 -10
- package/dist/Field/FieldError.d.ts +0 -1
- package/dist/Field/FieldHint.d.ts +0 -1
- package/dist/Field/FieldInput.d.ts +0 -61
- package/dist/Field/FieldLabel.d.ts +0 -11
- package/dist/Field/__tests__/Field.spec.d.ts +0 -1
- package/dist/Field/index.d.ts +0 -7
- package/dist/Flex/Flex.d.ts +0 -15
- package/dist/Flex/index.d.ts +0 -1
- package/dist/FocusTrap/FocusTrap.d.ts +0 -12
- package/dist/FocusTrap/index.d.ts +0 -1
- package/dist/Grid/Grid.d.ts +0 -7
- package/dist/Grid/GridItem.d.ts +0 -47
- package/dist/Grid/index.d.ts +0 -2
- package/dist/Icon/Icon.d.ts +0 -7
- package/dist/Icon/index.d.ts +0 -1
- package/dist/IconButton/IconButton.d.ts +0 -41
- package/dist/IconButton/index.d.ts +0 -1
- package/dist/JSONInput/JSONInput.d.ts +0 -15
- package/dist/JSONInput/__tests__/JSONInput.spec.d.ts +0 -1
- package/dist/JSONInput/index.d.ts +0 -1
- package/dist/JSONInput/utils/decorationExtension.d.ts +0 -7
- package/dist/KeyboardNavigable/KeyboardNavigable.d.ts +0 -6
- package/dist/KeyboardNavigable/index.d.ts +0 -1
- package/dist/Layout/ActionLayout.d.ts +0 -6
- package/dist/Layout/ContentLayout.d.ts +0 -5
- package/dist/Layout/GridLayout.d.ts +0 -1
- package/dist/Layout/HeaderLayout.d.ts +0 -18
- package/dist/Layout/Layout.d.ts +0 -6
- package/dist/Layout/TwoColsLayout.d.ts +0 -6
- package/dist/Layout/index.d.ts +0 -6
- package/dist/Link/Link.d.ts +0 -18
- package/dist/Link/index.d.ts +0 -1
- package/dist/LinkButton/LinkButton.d.ts +0 -22
- package/dist/LinkButton/index.d.ts +0 -1
- package/dist/LiveRegions/LiveRegions.d.ts +0 -1
- package/dist/LiveRegions/__tests__/LiveRegions.spec.d.ts +0 -1
- package/dist/LiveRegions/constants.d.ts +0 -5
- package/dist/LiveRegions/index.d.ts +0 -2
- package/dist/LiveRegions/useNotifyAT.d.ts +0 -5
- package/dist/Loader/Loader.d.ts +0 -6
- package/dist/Loader/index.d.ts +0 -1
- package/dist/Main/Main.d.ts +0 -5
- package/dist/Main/SkipToContent.d.ts +0 -4
- package/dist/Main/index.d.ts +0 -2
- package/dist/MainNav/MainNav.d.ts +0 -5
- package/dist/MainNav/MainNavContext.d.ts +0 -2
- package/dist/MainNav/NavBrand.d.ts +0 -8
- package/dist/MainNav/NavCondense.d.ts +0 -5
- package/dist/MainNav/NavFooter.d.ts +0 -5
- package/dist/MainNav/NavLink.d.ts +0 -9
- package/dist/MainNav/NavSection.d.ts +0 -11
- package/dist/MainNav/NavSections.d.ts +0 -10
- package/dist/MainNav/NavUser.d.ts +0 -7
- package/dist/MainNav/index.d.ts +0 -8
- package/dist/ModalLayout/ModalBody.d.ts +0 -2
- package/dist/ModalLayout/ModalContext.d.ts +0 -2
- package/dist/ModalLayout/ModalFooter.d.ts +0 -5
- package/dist/ModalLayout/ModalHeader.d.ts +0 -6
- package/dist/ModalLayout/ModalLayout.d.ts +0 -6
- package/dist/ModalLayout/__tests__/ModalLayout.spec.d.ts +0 -1
- package/dist/ModalLayout/index.d.ts +0 -4
- package/dist/NumberInput/NumberInput.d.ts +0 -11
- package/dist/NumberInput/index.d.ts +0 -1
- package/dist/Pagination/Pagination.d.ts +0 -8
- package/dist/Pagination/PaginationContext.d.ts +0 -6
- package/dist/Pagination/components.d.ts +0 -26
- package/dist/Pagination/index.d.ts +0 -2
- package/dist/Popover/Popover.d.ts +0 -21
- package/dist/Popover/__tests__/Popover.spec.d.ts +0 -1
- package/dist/Popover/index.d.ts +0 -3
- package/dist/Popover/primitives.d.ts +0 -3
- package/dist/Portal/Portal.d.ts +0 -6
- package/dist/Portal/index.d.ts +0 -1
- package/dist/ProgressBar/ProgressBar.d.ts +0 -11
- package/dist/ProgressBar/index.d.ts +0 -1
- package/dist/Radio/Radio.d.ts +0 -5
- package/dist/Radio/__tests__/Radio.spec.d.ts +0 -1
- package/dist/Radio/index.d.ts +0 -2
- package/dist/RawTable/RawCell.d.ts +0 -14
- package/dist/RawTable/RawTable.d.ts +0 -16
- package/dist/RawTable/RawTableContext.d.ts +0 -10
- package/dist/RawTable/RawTbody.d.ts +0 -5
- package/dist/RawTable/RawThead.d.ts +0 -5
- package/dist/RawTable/RawTr.d.ts +0 -5
- package/dist/RawTable/focusFocusable.d.ts +0 -1
- package/dist/RawTable/index.d.ts +0 -5
- package/dist/Searchbar/SearchForm.d.ts +0 -3
- package/dist/Searchbar/Searchbar.d.ts +0 -9
- package/dist/Searchbar/index.d.ts +0 -2
- package/dist/Select/MultiSelect.d.ts +0 -40
- package/dist/Select/MultiSelectNested.d.ts +0 -13
- package/dist/Select/OptGroup.d.ts +0 -9
- package/dist/Select/Option.d.ts +0 -13
- package/dist/Select/Select.d.ts +0 -18
- package/dist/Select/SelectList.d.ts +0 -25
- package/dist/Select/SelectParts.d.ts +0 -67
- package/dist/Select/SingleSelect.d.ts +0 -41
- package/dist/Select/__tests__/MultiSelect.spec.d.ts +0 -1
- package/dist/Select/__tests__/MultiSelectNested.spec.d.ts +0 -1
- package/dist/Select/__tests__/Select.spec.d.ts +0 -1
- package/dist/Select/__tests__/SingleSelect.spec.d.ts +0 -1
- package/dist/Select/index.d.ts +0 -17
- package/dist/SimpleMenu/SimpleMenu.d.ts +0 -33
- package/dist/SimpleMenu/__tests__/SimpleMenu.spec.d.ts +0 -1
- package/dist/SimpleMenu/index.d.ts +0 -1
- package/dist/SimpleMenu/utils.d.ts +0 -3
- package/dist/Stack/Stack.d.ts +0 -20
- package/dist/Stack/index.d.ts +0 -1
- package/dist/Status/Status.d.ts +0 -15
- package/dist/Status/__tests__/Status.spec.d.ts +0 -1
- package/dist/Status/index.d.ts +0 -1
- package/dist/SubNav/SubNav.d.ts +0 -6
- package/dist/SubNav/SubNavHeader.d.ts +0 -13
- package/dist/SubNav/SubNavLink.d.ts +0 -8
- package/dist/SubNav/SubNavLinkSection.d.ts +0 -7
- package/dist/SubNav/SubNavSection.d.ts +0 -9
- package/dist/SubNav/SubNavSectionLabel.d.ts +0 -8
- package/dist/SubNav/SubNavSections.d.ts +0 -10
- package/dist/SubNav/index.d.ts +0 -6
- package/dist/Switch/Switch.d.ts +0 -13
- package/dist/Switch/index.d.ts +0 -1
- package/dist/Table/Cell.d.ts +0 -8
- package/dist/Table/TFooter.d.ts +0 -7
- package/dist/Table/Table.d.ts +0 -7
- package/dist/Table/Tbody.d.ts +0 -2
- package/dist/Table/Thead.d.ts +0 -2
- package/dist/Table/Tr.d.ts +0 -2
- package/dist/Table/index.d.ts +0 -6
- package/dist/Tabs/TabGroup.d.ts +0 -13
- package/dist/Tabs/TabPanels.d.ts +0 -9
- package/dist/Tabs/Tabs.d.ts +0 -17
- package/dist/Tabs/TabsContext.d.ts +0 -10
- package/dist/Tabs/components.d.ts +0 -94
- package/dist/Tabs/index.d.ts +0 -3
- package/dist/Tag/Tag.d.ts +0 -5
- package/dist/Tag/__tests__/Tag.spec.d.ts +0 -1
- package/dist/Tag/index.d.ts +0 -1
- package/dist/TextButton/TextButton.d.ts +0 -8
- package/dist/TextButton/index.d.ts +0 -1
- package/dist/TextInput/TextInput.d.ts +0 -10
- package/dist/TextInput/__tests__/TextInput.spec.d.ts +0 -1
- package/dist/TextInput/index.d.ts +0 -1
- package/dist/Textarea/Textarea.d.ts +0 -17
- package/dist/Textarea/index.d.ts +0 -1
- package/dist/ThemeProvider/ThemeProvider.d.ts +0 -10
- package/dist/ThemeProvider/hooks.d.ts +0 -1
- package/dist/ThemeProvider/index.d.ts +0 -2
- package/dist/TimePicker/TimePicker.d.ts +0 -26
- package/dist/TimePicker/__tests__/TimePicker.spec.d.ts +0 -1
- package/dist/TimePicker/index.d.ts +0 -1
- package/dist/ToggleCheckbox/ToggleCheckbox.d.ts +0 -10
- package/dist/ToggleCheckbox/index.d.ts +0 -1
- package/dist/ToggleInput/ToggleInput.d.ts +0 -24
- package/dist/ToggleInput/__tests__/ToggleInput.spec.d.ts +0 -1
- package/dist/ToggleInput/index.d.ts +0 -1
- package/dist/Tooltip/Tooltip.d.ts +0 -11
- package/dist/Tooltip/__tests__/Tooltip.spec.d.ts +0 -1
- package/dist/Tooltip/hooks/useTooltipHandlers.d.ts +0 -7
- package/dist/Tooltip/hooks/useTooltipLayout.d.ts +0 -5
- package/dist/Tooltip/index.d.ts +0 -1
- package/dist/Tooltip/utils/__tests__/positionTooltip.spec.d.ts +0 -1
- package/dist/Tooltip/utils/positionTooltip.d.ts +0 -5
- package/dist/Typography/Typography.d.ts +0 -19
- package/dist/Typography/__tests__/Typography.spec.d.ts +0 -1
- package/dist/Typography/constants.d.ts +0 -8
- package/dist/Typography/index.d.ts +0 -1
- package/dist/Typography/utils.d.ts +0 -9
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +0 -1
- package/dist/VisuallyHidden/index.d.ts +0 -1
- package/dist/helpers/__tests__/deprecations.spec.d.ts +0 -1
- package/dist/helpers/context.d.ts +0 -7
- package/dist/helpers/deprecations.d.ts +0 -2
- package/dist/helpers/getDefaultLocale.d.ts +0 -5
- package/dist/helpers/getFocusableNodes.d.ts +0 -10
- package/dist/helpers/handleResponsiveValues.d.ts +0 -17
- package/dist/helpers/keyboardKeys.d.ts +0 -17
- package/dist/helpers/objects.d.ts +0 -8
- package/dist/helpers/setOpacity.d.ts +0 -1
- package/dist/helpers/setTabIndexOnFirstItem.d.ts +0 -1
- package/dist/helpers/strings.d.ts +0 -1
- package/dist/helpers/theme.d.ts +0 -2
- package/dist/helpers/useElementOnScreen.d.ts +0 -6
- package/dist/helpers/useId.d.ts +0 -6
- package/dist/helpers/useIntersection.d.ts +0 -6
- package/dist/helpers/useLockScroll.d.ts +0 -7
- package/dist/helpers/usePrevious.d.ts +0 -6
- package/dist/helpers/useResizeObserver.d.ts +0 -6
- package/dist/hooks/__tests__/useId.spec.d.ts +0 -1
- package/dist/hooks/useComposeRefs.d.ts +0 -29
- package/dist/hooks/useControllableState.d.ts +0 -19
- package/dist/hooks/useDateFormatter.d.ts +0 -28
- package/dist/hooks/useElementOnScreen.d.ts +0 -1
- package/dist/hooks/useId.d.ts +0 -1
- package/dist/hooks/useIntersection.d.ts +0 -7
- package/dist/hooks/useLockScroll.d.ts +0 -2
- package/dist/hooks/usePrevious.d.ts +0 -1
- package/dist/hooks/useResizeObserver.d.ts +0 -2
- package/dist/index.d.ts +0 -66
- package/dist/themes/__tests__/extendTheme.spec.d.ts +0 -1
- package/dist/themes/colors.d.ts +0 -54
- package/dist/themes/common-theme.d.ts +0 -19
- package/dist/themes/darkTheme/dark-colors.d.ts +0 -4
- package/dist/themes/darkTheme/dark-shadows.d.ts +0 -4
- package/dist/themes/darkTheme/index.d.ts +0 -2
- package/dist/themes/extendTheme.d.ts +0 -2
- package/dist/themes/index.d.ts +0 -10
- package/dist/themes/lightTheme/index.d.ts +0 -2
- package/dist/themes/lightTheme/light-colors.d.ts +0 -4
- package/dist/themes/lightTheme/light-shadows.d.ts +0 -4
- package/dist/themes/sizes.d.ts +0 -21
- package/dist/themes/utils.d.ts +0 -12
- package/dist/types.d.ts +0 -3
- package/dist/v2/Breadcrumbs/Breadcrumbs.d.ts +0 -8
- package/dist/v2/Breadcrumbs/Crumb.d.ts +0 -8
- package/dist/v2/Breadcrumbs/CrumbLink.d.ts +0 -5
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.d.ts +0 -11
- package/dist/v2/Breadcrumbs/Divider.d.ts +0 -4
- package/dist/v2/Breadcrumbs/__tests__/Breadcrumbs.spec.d.ts +0 -1
- package/dist/v2/Breadcrumbs/index.d.ts +0 -4
- package/dist/v2/Link/Link.d.ts +0 -11
- package/dist/v2/Link/index.d.ts +0 -1
- package/dist/v2/LinkButton/LinkButton.d.ts +0 -61
- package/dist/v2/LinkButton/index.d.ts +0 -1
- package/dist/v2/MainNav/MainNav.d.ts +0 -5
- package/dist/v2/MainNav/MainNavContext.d.ts +0 -2
- package/dist/v2/MainNav/NavBrand.d.ts +0 -9
- package/dist/v2/MainNav/NavCondense.d.ts +0 -5
- package/dist/v2/MainNav/NavFooter.d.ts +0 -5
- package/dist/v2/MainNav/NavLink.d.ts +0 -9
- package/dist/v2/MainNav/NavSection.d.ts +0 -9
- package/dist/v2/MainNav/NavSections.d.ts +0 -8
- package/dist/v2/MainNav/NavUser.d.ts +0 -8
- package/dist/v2/MainNav/index.d.ts +0 -8
- package/dist/v2/Pagination/Pagination.d.ts +0 -8
- package/dist/v2/Pagination/PaginationContext.d.ts +0 -6
- package/dist/v2/Pagination/components.d.ts +0 -16
- package/dist/v2/Pagination/index.d.ts +0 -2
- package/dist/v2/SimpleMenu/Menu.d.ts +0 -56
- package/dist/v2/SimpleMenu/SimpleMenu.d.ts +0 -62
- package/dist/v2/SimpleMenu/__tests__/Menu.spec.d.ts +0 -1
- package/dist/v2/SimpleMenu/__tests__/SimpleMenu.spec.d.ts +0 -1
- package/dist/v2/SimpleMenu/index.d.ts +0 -1
- package/dist/v2/SubNav/SubNav.d.ts +0 -6
- package/dist/v2/SubNav/SubNavHeader.d.ts +0 -13
- package/dist/v2/SubNav/SubNavLink.d.ts +0 -9
- package/dist/v2/SubNav/SubNavLinkSection.d.ts +0 -7
- package/dist/v2/SubNav/SubNavSection.d.ts +0 -9
- package/dist/v2/SubNav/SubNavSectionLabel.d.ts +0 -9
- package/dist/v2/SubNav/SubNavSections.d.ts +0 -8
- package/dist/v2/SubNav/index.d.ts +0 -6
- package/dist/v2/index.d.ts +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const checkmarkIconDisabled = "data:image/svg+xml
|
|
3
|
+
const checkmarkIconDisabled = "data:image/svg+xml,%3csvg%20width='10'%20height='8'%20viewBox='0%200%2010%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.55323%200.396973C8.63135%200.316355%208.76051%200.315811%208.83931%200.395768L9.86256%201.43407C9.93893%201.51157%209.93935%201.6359%209.86349%201.7139L4.06401%207.67724C3.9859%207.75755%203.85707%207.75805%203.77834%207.67834L0.13866%203.99333C0.0617798%203.91549%200.0617102%203.79032%200.138504%203.7124L1.16213%202.67372C1.24038%202.59432%201.36843%202.59422%201.4468%202.67348L3.92174%205.17647L8.55323%200.396973Z'%20fill='%238E8EA9'%20/%3e%3c/svg%3e";
|
|
4
4
|
|
|
5
5
|
module.exports = checkmarkIconDisabled;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const checkmarkIconDisabled = "data:image/svg+xml
|
|
1
|
+
const checkmarkIconDisabled = "data:image/svg+xml,%3csvg%20width='10'%20height='8'%20viewBox='0%200%2010%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.55323%200.396973C8.63135%200.316355%208.76051%200.315811%208.83931%200.395768L9.86256%201.43407C9.93893%201.51157%209.93935%201.6359%209.86349%201.7139L4.06401%207.67724C3.9859%207.75755%203.85707%207.75805%203.77834%207.67834L0.13866%203.99333C0.0617798%203.91549%200.0617102%203.79032%200.138504%203.7124L1.16213%202.67372C1.24038%202.59432%201.36843%202.59422%201.4468%202.67348L3.92174%205.17647L8.55323%200.396973Z'%20fill='%238E8EA9'%20/%3e%3c/svg%3e";
|
|
2
2
|
|
|
3
3
|
export { checkmarkIconDisabled as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const checkmarkIcon = "data:image/svg+xml
|
|
3
|
+
const checkmarkIcon = "data:image/svg+xml,%3csvg%20width='10'%20height='8'%20viewBox='0%200%2010%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.55323%200.396973C8.63135%200.316355%208.76051%200.315811%208.83931%200.395768L9.86256%201.43407C9.93893%201.51157%209.93935%201.6359%209.86349%201.7139L4.06401%207.67724C3.9859%207.75755%203.85707%207.75805%203.77834%207.67834L0.13866%203.99333C0.0617798%203.91549%200.0617102%203.79032%200.138504%203.7124L1.16213%202.67372C1.24038%202.59432%201.36843%202.59422%201.4468%202.67348L3.92174%205.17647L8.55323%200.396973Z'%20fill='white'%20/%3e%3c/svg%3e";
|
|
4
4
|
|
|
5
5
|
module.exports = checkmarkIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const checkmarkIcon = "data:image/svg+xml
|
|
1
|
+
const checkmarkIcon = "data:image/svg+xml,%3csvg%20width='10'%20height='8'%20viewBox='0%200%2010%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.55323%200.396973C8.63135%200.316355%208.76051%200.315811%208.83931%200.395768L9.86256%201.43407C9.93893%201.51157%209.93935%201.6359%209.86349%201.7139L4.06401%207.67724C3.9859%207.75755%203.85707%207.75805%203.77834%207.67834L0.13866%203.99333C0.0617798%203.91549%200.0617102%203.79032%200.138504%203.7124L1.16213%202.67372C1.24038%202.59432%201.36843%202.59422%201.4468%202.67348L3.92174%205.17647L8.55323%200.396973Z'%20fill='white'%20/%3e%3c/svg%3e";
|
|
2
2
|
|
|
3
3
|
export { checkmarkIcon as default };
|
|
@@ -7,7 +7,7 @@ const React = require('react');
|
|
|
7
7
|
const getFocusableNodes = require('../helpers/getFocusableNodes.js');
|
|
8
8
|
const keyboardKeys = require('../helpers/keyboardKeys.js');
|
|
9
9
|
|
|
10
|
-
const FocusTrap = ({ onEscape, restoreFocus = true, ...props }) => {
|
|
10
|
+
const FocusTrap = ({ onEscape, restoreFocus = true, skipAutoFocus = false, ...props }) => {
|
|
11
11
|
const trappedRef = React.useRef(null);
|
|
12
12
|
/**
|
|
13
13
|
* Restore the focus to the previously focused element (often, it's the CTA that opened the trap)
|
|
@@ -27,7 +27,7 @@ const FocusTrap = ({ onEscape, restoreFocus = true, ...props }) => {
|
|
|
27
27
|
* Sends the focus to the first element of the focus trap tree
|
|
28
28
|
*/
|
|
29
29
|
React.useEffect(() => {
|
|
30
|
-
if (!trappedRef.current)
|
|
30
|
+
if (!trappedRef.current || skipAutoFocus)
|
|
31
31
|
return;
|
|
32
32
|
const focusableChildren = getFocusableNodes.getFocusableNodes(trappedRef.current);
|
|
33
33
|
if (focusableChildren.length > 0) {
|
|
@@ -37,7 +37,7 @@ const FocusTrap = ({ onEscape, restoreFocus = true, ...props }) => {
|
|
|
37
37
|
else {
|
|
38
38
|
console.warn('[FocusTrap]: it seems there are no focusable elements in the focus trap tree. Make sure there s at least one.');
|
|
39
39
|
}
|
|
40
|
-
}, []);
|
|
40
|
+
}, [skipAutoFocus]);
|
|
41
41
|
const handleKeyDown = (e) => {
|
|
42
42
|
if (e.key === keyboardKeys.KeyboardKeys.ESCAPE && onEscape) {
|
|
43
43
|
onEscape();
|
|
@@ -3,7 +3,7 @@ import { useRef, useEffect } from 'react';
|
|
|
3
3
|
import { getFocusableNodes } from '../helpers/getFocusableNodes.mjs';
|
|
4
4
|
import { KeyboardKeys } from '../helpers/keyboardKeys.mjs';
|
|
5
5
|
|
|
6
|
-
const FocusTrap = ({ onEscape, restoreFocus = true, ...props }) => {
|
|
6
|
+
const FocusTrap = ({ onEscape, restoreFocus = true, skipAutoFocus = false, ...props }) => {
|
|
7
7
|
const trappedRef = useRef(null);
|
|
8
8
|
/**
|
|
9
9
|
* Restore the focus to the previously focused element (often, it's the CTA that opened the trap)
|
|
@@ -23,7 +23,7 @@ const FocusTrap = ({ onEscape, restoreFocus = true, ...props }) => {
|
|
|
23
23
|
* Sends the focus to the first element of the focus trap tree
|
|
24
24
|
*/
|
|
25
25
|
useEffect(() => {
|
|
26
|
-
if (!trappedRef.current)
|
|
26
|
+
if (!trappedRef.current || skipAutoFocus)
|
|
27
27
|
return;
|
|
28
28
|
const focusableChildren = getFocusableNodes(trappedRef.current);
|
|
29
29
|
if (focusableChildren.length > 0) {
|
|
@@ -33,7 +33,7 @@ const FocusTrap = ({ onEscape, restoreFocus = true, ...props }) => {
|
|
|
33
33
|
else {
|
|
34
34
|
console.warn('[FocusTrap]: it seems there are no focusable elements in the focus trap tree. Make sure there s at least one.');
|
|
35
35
|
}
|
|
36
|
-
}, []);
|
|
36
|
+
}, [skipAutoFocus]);
|
|
37
37
|
const handleKeyDown = (e) => {
|
|
38
38
|
if (e.key === KeyboardKeys.ESCAPE && onEscape) {
|
|
39
39
|
onEscape();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const loaderSvg = "data:image/svg+xml
|
|
3
|
+
const loaderSvg = "data:image/svg+xml,%3csvg%20width='63'%20height='63'%20viewBox='0%200%2063%2063'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.5563%2011.9816C39.484%2010.3071%2035.8575%209.29097%2032.3354%209.13521C28.6443%208.92888%2024.8295%209.72318%2021.3336%2011.4129C20.9123%2011.5901%2020.5376%2011.8101%2020.1722%2012.0249L20.0108%2012.1179C19.8774%2012.1951%2019.7441%2012.2724%2019.608%2012.3536C19.3253%2012.5146%2019.0492%2012.6744%2018.7544%2012.8792C18.5463%2013.0329%2018.3395%2013.1759%2018.1301%2013.323C17.5658%2013.7208%2016.9868%2014.1317%2016.4983%2014.5979C14.8476%2015.9524%2013.5571%2017.6075%2012.6071%2018.9214C10.4365%2022.1566%209.08622%2025.9567%208.80702%2029.6143L8.7764%2030.1588C8.73328%2030.9196%208.68476%2031.7057%208.75353%2032.4555C8.76648%2032.6084%208.7661%2032.7638%208.77506%2032.914C8.78895%2033.229%208.80152%2033.5373%208.846%2033.8672L9.07396%2035.4221C9.09756%2035.5764%209.1198%2035.7413%209.1633%2035.9263L9.65919%2037.9272L10.138%2039.2823C10.2729%2039.6673%2010.4158%2040.0751%2010.6%2040.43C12.0292%2043.637%2014.1425%2046.4578%2016.7063%2048.585C19.0508%2050.5296%2021.824%2052.0023%2024.7491%2052.8452L26.2371%2053.2376C26.3781%2053.2693%2026.4926%2053.2889%2026.6031%2053.3058L26.7775%2053.3311C27.0052%2053.3636%2027.2195%2053.3986%2027.4445%2053.435C27.8598%2053.5076%2028.2672%2053.5748%2028.7079%2053.6183L30.5641%2053.7229C30.9516%2053.7249%2031.3352%2053.7068%2031.7081%2053.6874C31.9039%2053.681%2032.0984%2053.6681%2032.3288%2053.662C34.5253%2053.4772%2036.5106%2053.0634%2038.0516%2052.4652C38.1769%2052.4171%2038.3008%2052.3796%2038.4234%2052.3355C38.6727%2052.2499%2038.9259%2052.167%2039.1432%2052.0599L40.8591%2051.2626L42.5702%2050.266C42.9009%2050.0682%2043.0205%2049.6414%2042.8282%2049.2984C42.632%2048.9526%2042.2034%2048.8308%2041.8634%2049.0166L40.1792%2049.9218L38.4995%2050.6224C38.3169%2050.6953%2038.121%2050.7534%2037.9224%2050.8155C37.7838%2050.8489%2037.6518%2050.8983%2037.5012%2050.9408C36.0711%2051.435%2034.2445%2051.7425%2032.244%2051.8346C32.0442%2051.8383%2031.8471%2051.8379%2031.654%2051.8403C31.3051%2051.8414%2030.9602%2051.8451%2030.6392%2051.8305L28.9177%2051.6725C28.5476%2051.619%2028.1695%2051.5427%2027.7848%2051.4678C27.5639%2051.4167%2027.3376%2051.3737%2027.1299%2051.3374L26.9529%2051.2987C26.8704%2051.2834%2026.7772%2051.2667%2026.7333%2051.2543L25.3466%2050.8322C22.7651%2049.9789%2020.33%2048.5729%2018.2942%2046.7557C16.1056%2044.7951%2014.3339%2042.2335%2013.1742%2039.3582C12.0276%2036.6013%2011.5988%2033.2792%2011.9716%2030.0076C12.3145%2027.0213%2013.3948%2024.1635%2015.1858%2021.5083C15.3034%2021.3339%2015.421%2021.1596%2015.5212%2021.0196C16.4309%2019.8688%2017.5408%2018.5589%2018.9483%2017.496C19.3367%2017.1525%2019.7862%2016.856%2020.2611%2016.5478C20.4878%2016.4009%2020.7079%2016.2553%2020.8907%2016.1306C21.0974%2016.0048%2021.3188%2015.8831%2021.5348%2015.7694C21.6761%2015.6975%2021.8162%2015.619%2021.9388%2015.5576L22.1002%2015.4646C22.4002%2015.3037%2022.6749%2015.1546%2022.9908%2015.039L24.1186%2014.5715C24.3399%2014.4844%2024.5718%2014.4159%2024.7997%2014.3447C24.953%2014.2982%2025.0982%2014.2635%2025.2635%2014.2078C25.786%2014.0182%2026.3283%2013.9112%2026.9105%2013.7965C27.117%2013.7571%2027.3302%2013.7163%2027.5608%2013.6585C27.7553%2013.611%2027.9737%2013.5969%2028.2082%2013.5762C28.364%2013.5603%2028.5172%2013.5483%2028.6318%2013.5333C28.7876%2013.5173%2028.9342%2013.5066%2029.0927%2013.4867C29.3285%2013.4555%2029.5456%2013.4347%2029.7494%2013.4337C30.0237%2013.44%2030.2994%2013.4357%2030.5777%2013.4274C31.0811%2013.421%2031.5579%2013.4197%2032.0318%2013.4914C34.9664%2013.7352%2037.7144%2014.6085%2040.2052%2016.0868C42.3489%2017.3655%2044.2716%2019.1525%2045.7607%2021.264C47.0255%2023.0628%2047.9756%2025.0528%2048.4928%2027.0393C48.572%2027.3176%2048.6299%2027.5931%2048.6839%2027.8659C48.7154%2028.0428%2048.7563%2028.2145%2048.7892%2028.3636C48.8037%2028.4541%2048.8208%2028.5406%2048.8445%2028.6258C48.8749%2028.7443%2048.8986%2028.864%2048.9116%2028.9651L48.9793%2029.6047C48.9922%2029.7748%2049.0132%2029.9331%2049.0301%2030.0887C49.0668%2030.3268%2049.0889%2030.5608%2049.0964%2030.7561L49.1083%2031.9001C49.1312%2032.3307%2049.089%2032.7116%2049.0522%2033.0673C49.0384%2033.2598%2049.0126%2033.4443%2049.0123%2033.5824C48.9961%2033.6926%2048.9918%2033.7935%2048.9836%2033.8917C48.9753%2034.0072%2048.9724%2034.1148%2048.9414%2034.2554L48.5449%2036.3059C48.3134%2037.8623%2049.3793%2039.3365%2050.9488%2039.5822C52.0417%2039.7601%2053.1536%2039.2819%2053.7711%2038.3664C54.0063%2038.0176%2054.1604%2037.6257%2054.2227%2037.2064L54.5217%2035.2574C54.5514%2035.0756%2054.572%2034.83%2054.5846%2034.5791L54.6028%2034.2338C54.6098%2034.0598%2054.6223%2033.8779%2054.6347%2033.6788C54.6734%2033.1052%2054.7163%2032.4479%2054.6619%2031.8058L54.5867%2030.4289C54.5622%2030.0952%2054.5097%2029.76%2054.4559%2029.4181C54.431%2029.2572%2054.4048%2029.0896%2054.3826%2028.9074L54.2687%2028.104C54.2332%2027.9244%2054.1804%2027.7273%2054.1329%2027.5396L54.0643%2027.2454C54.0195%2027.071%2053.9773%2026.8927%2053.9338%2026.7076C53.8455%2026.3309%2053.7479%2025.9422%2053.613%2025.5571C52.84%2023.0292%2051.5383%2020.5194%2049.8338%2018.2799C47.8544%2015.682%2045.3333%2013.5087%2042.5563%2011.9816Z'%20fill='%234945FF'/%3e%3c/svg%3e";
|
|
4
4
|
|
|
5
5
|
module.exports = loaderSvg;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const loaderSvg = "data:image/svg+xml
|
|
1
|
+
const loaderSvg = "data:image/svg+xml,%3csvg%20width='63'%20height='63'%20viewBox='0%200%2063%2063'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.5563%2011.9816C39.484%2010.3071%2035.8575%209.29097%2032.3354%209.13521C28.6443%208.92888%2024.8295%209.72318%2021.3336%2011.4129C20.9123%2011.5901%2020.5376%2011.8101%2020.1722%2012.0249L20.0108%2012.1179C19.8774%2012.1951%2019.7441%2012.2724%2019.608%2012.3536C19.3253%2012.5146%2019.0492%2012.6744%2018.7544%2012.8792C18.5463%2013.0329%2018.3395%2013.1759%2018.1301%2013.323C17.5658%2013.7208%2016.9868%2014.1317%2016.4983%2014.5979C14.8476%2015.9524%2013.5571%2017.6075%2012.6071%2018.9214C10.4365%2022.1566%209.08622%2025.9567%208.80702%2029.6143L8.7764%2030.1588C8.73328%2030.9196%208.68476%2031.7057%208.75353%2032.4555C8.76648%2032.6084%208.7661%2032.7638%208.77506%2032.914C8.78895%2033.229%208.80152%2033.5373%208.846%2033.8672L9.07396%2035.4221C9.09756%2035.5764%209.1198%2035.7413%209.1633%2035.9263L9.65919%2037.9272L10.138%2039.2823C10.2729%2039.6673%2010.4158%2040.0751%2010.6%2040.43C12.0292%2043.637%2014.1425%2046.4578%2016.7063%2048.585C19.0508%2050.5296%2021.824%2052.0023%2024.7491%2052.8452L26.2371%2053.2376C26.3781%2053.2693%2026.4926%2053.2889%2026.6031%2053.3058L26.7775%2053.3311C27.0052%2053.3636%2027.2195%2053.3986%2027.4445%2053.435C27.8598%2053.5076%2028.2672%2053.5748%2028.7079%2053.6183L30.5641%2053.7229C30.9516%2053.7249%2031.3352%2053.7068%2031.7081%2053.6874C31.9039%2053.681%2032.0984%2053.6681%2032.3288%2053.662C34.5253%2053.4772%2036.5106%2053.0634%2038.0516%2052.4652C38.1769%2052.4171%2038.3008%2052.3796%2038.4234%2052.3355C38.6727%2052.2499%2038.9259%2052.167%2039.1432%2052.0599L40.8591%2051.2626L42.5702%2050.266C42.9009%2050.0682%2043.0205%2049.6414%2042.8282%2049.2984C42.632%2048.9526%2042.2034%2048.8308%2041.8634%2049.0166L40.1792%2049.9218L38.4995%2050.6224C38.3169%2050.6953%2038.121%2050.7534%2037.9224%2050.8155C37.7838%2050.8489%2037.6518%2050.8983%2037.5012%2050.9408C36.0711%2051.435%2034.2445%2051.7425%2032.244%2051.8346C32.0442%2051.8383%2031.8471%2051.8379%2031.654%2051.8403C31.3051%2051.8414%2030.9602%2051.8451%2030.6392%2051.8305L28.9177%2051.6725C28.5476%2051.619%2028.1695%2051.5427%2027.7848%2051.4678C27.5639%2051.4167%2027.3376%2051.3737%2027.1299%2051.3374L26.9529%2051.2987C26.8704%2051.2834%2026.7772%2051.2667%2026.7333%2051.2543L25.3466%2050.8322C22.7651%2049.9789%2020.33%2048.5729%2018.2942%2046.7557C16.1056%2044.7951%2014.3339%2042.2335%2013.1742%2039.3582C12.0276%2036.6013%2011.5988%2033.2792%2011.9716%2030.0076C12.3145%2027.0213%2013.3948%2024.1635%2015.1858%2021.5083C15.3034%2021.3339%2015.421%2021.1596%2015.5212%2021.0196C16.4309%2019.8688%2017.5408%2018.5589%2018.9483%2017.496C19.3367%2017.1525%2019.7862%2016.856%2020.2611%2016.5478C20.4878%2016.4009%2020.7079%2016.2553%2020.8907%2016.1306C21.0974%2016.0048%2021.3188%2015.8831%2021.5348%2015.7694C21.6761%2015.6975%2021.8162%2015.619%2021.9388%2015.5576L22.1002%2015.4646C22.4002%2015.3037%2022.6749%2015.1546%2022.9908%2015.039L24.1186%2014.5715C24.3399%2014.4844%2024.5718%2014.4159%2024.7997%2014.3447C24.953%2014.2982%2025.0982%2014.2635%2025.2635%2014.2078C25.786%2014.0182%2026.3283%2013.9112%2026.9105%2013.7965C27.117%2013.7571%2027.3302%2013.7163%2027.5608%2013.6585C27.7553%2013.611%2027.9737%2013.5969%2028.2082%2013.5762C28.364%2013.5603%2028.5172%2013.5483%2028.6318%2013.5333C28.7876%2013.5173%2028.9342%2013.5066%2029.0927%2013.4867C29.3285%2013.4555%2029.5456%2013.4347%2029.7494%2013.4337C30.0237%2013.44%2030.2994%2013.4357%2030.5777%2013.4274C31.0811%2013.421%2031.5579%2013.4197%2032.0318%2013.4914C34.9664%2013.7352%2037.7144%2014.6085%2040.2052%2016.0868C42.3489%2017.3655%2044.2716%2019.1525%2045.7607%2021.264C47.0255%2023.0628%2047.9756%2025.0528%2048.4928%2027.0393C48.572%2027.3176%2048.6299%2027.5931%2048.6839%2027.8659C48.7154%2028.0428%2048.7563%2028.2145%2048.7892%2028.3636C48.8037%2028.4541%2048.8208%2028.5406%2048.8445%2028.6258C48.8749%2028.7443%2048.8986%2028.864%2048.9116%2028.9651L48.9793%2029.6047C48.9922%2029.7748%2049.0132%2029.9331%2049.0301%2030.0887C49.0668%2030.3268%2049.0889%2030.5608%2049.0964%2030.7561L49.1083%2031.9001C49.1312%2032.3307%2049.089%2032.7116%2049.0522%2033.0673C49.0384%2033.2598%2049.0126%2033.4443%2049.0123%2033.5824C48.9961%2033.6926%2048.9918%2033.7935%2048.9836%2033.8917C48.9753%2034.0072%2048.9724%2034.1148%2048.9414%2034.2554L48.5449%2036.3059C48.3134%2037.8623%2049.3793%2039.3365%2050.9488%2039.5822C52.0417%2039.7601%2053.1536%2039.2819%2053.7711%2038.3664C54.0063%2038.0176%2054.1604%2037.6257%2054.2227%2037.2064L54.5217%2035.2574C54.5514%2035.0756%2054.572%2034.83%2054.5846%2034.5791L54.6028%2034.2338C54.6098%2034.0598%2054.6223%2033.8779%2054.6347%2033.6788C54.6734%2033.1052%2054.7163%2032.4479%2054.6619%2031.8058L54.5867%2030.4289C54.5622%2030.0952%2054.5097%2029.76%2054.4559%2029.4181C54.431%2029.2572%2054.4048%2029.0896%2054.3826%2028.9074L54.2687%2028.104C54.2332%2027.9244%2054.1804%2027.7273%2054.1329%2027.5396L54.0643%2027.2454C54.0195%2027.071%2053.9773%2026.8927%2053.9338%2026.7076C53.8455%2026.3309%2053.7479%2025.9422%2053.613%2025.5571C52.84%2023.0292%2051.5383%2020.5194%2049.8338%2018.2799C47.8544%2015.682%2045.3333%2013.5087%2042.5563%2011.9816Z'%20fill='%234945FF'/%3e%3c/svg%3e";
|
|
2
2
|
|
|
3
3
|
export { loaderSvg as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const next = "data:image/svg+xml
|
|
3
|
+
const next = "data:image/svg+xml,%3csvg%20width='7'%20height='10'%20viewBox='0%200%207%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M-0.000195503%201.175L3.81647%205L-0.000195503%208.825L1.1748%2010L6.1748%205L1.1748%200L-0.000195503%201.175Z'%20fill='%238E8EA9'/%3e%3c/svg%3e";
|
|
4
4
|
|
|
5
5
|
module.exports = next;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const next = "data:image/svg+xml
|
|
1
|
+
const next = "data:image/svg+xml,%3csvg%20width='7'%20height='10'%20viewBox='0%200%207%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M-0.000195503%201.175L3.81647%205L-0.000195503%208.825L1.1748%2010L6.1748%205L1.1748%200L-0.000195503%201.175Z'%20fill='%238E8EA9'/%3e%3c/svg%3e";
|
|
2
2
|
|
|
3
3
|
export { next as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const previous = "data:image/svg+xml
|
|
3
|
+
const previous = "data:image/svg+xml,%3csvg%20width='7'%20height='10'%20viewBox='0%200%207%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.175%208.825L2.35833%205L6.175%201.175L5%200L0%205L5%2010L6.175%208.825Z'%20fill='%238E8EA9'/%3e%3c/svg%3e";
|
|
4
4
|
|
|
5
5
|
module.exports = previous;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const previous = "data:image/svg+xml
|
|
1
|
+
const previous = "data:image/svg+xml,%3csvg%20width='7'%20height='10'%20viewBox='0%200%207%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.175%208.825L2.35833%205L6.175%201.175L5%200L0%205L5%2010L6.175%208.825Z'%20fill='%238E8EA9'/%3e%3c/svg%3e";
|
|
2
2
|
|
|
3
3
|
export { previous as default };
|
|
@@ -6,7 +6,7 @@ const sizes = require('./sizes.js');
|
|
|
6
6
|
|
|
7
7
|
const commonTheme = {
|
|
8
8
|
sizes: sizes.sizes,
|
|
9
|
-
zIndices: [5, 10, 15, 20],
|
|
9
|
+
zIndices: [5, 10, 15, 20], // TBD
|
|
10
10
|
spaces: ['0px', '4px', '8px', '12px', '16px', '20px', '24px', '32px', '40px', '48px', '56px', '64px'],
|
|
11
11
|
borderRadius: '4px',
|
|
12
12
|
mediaQueries: {
|
|
@@ -2,7 +2,7 @@ import { sizes } from './sizes.mjs';
|
|
|
2
2
|
|
|
3
3
|
const commonTheme = {
|
|
4
4
|
sizes,
|
|
5
|
-
zIndices: [5, 10, 15, 20],
|
|
5
|
+
zIndices: [5, 10, 15, 20], // TBD
|
|
6
6
|
spaces: ['0px', '4px', '8px', '12px', '16px', '20px', '24px', '32px', '40px', '48px', '56px', '64px'],
|
|
7
7
|
borderRadius: '4px',
|
|
8
8
|
mediaQueries: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const next = "data:image/svg+xml
|
|
3
|
+
const next = "data:image/svg+xml,%3csvg%20width='7'%20height='10'%20viewBox='0%200%207%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M-0.000195503%201.175L3.81647%205L-0.000195503%208.825L1.1748%2010L6.1748%205L1.1748%200L-0.000195503%201.175Z'%20fill='%238E8EA9'/%3e%3c/svg%3e";
|
|
4
4
|
|
|
5
5
|
module.exports = next;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const next = "data:image/svg+xml
|
|
1
|
+
const next = "data:image/svg+xml,%3csvg%20width='7'%20height='10'%20viewBox='0%200%207%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M-0.000195503%201.175L3.81647%205L-0.000195503%208.825L1.1748%2010L6.1748%205L1.1748%200L-0.000195503%201.175Z'%20fill='%238E8EA9'/%3e%3c/svg%3e";
|
|
2
2
|
|
|
3
3
|
export { next as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const previous = "data:image/svg+xml
|
|
3
|
+
const previous = "data:image/svg+xml,%3csvg%20width='7'%20height='10'%20viewBox='0%200%207%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.175%208.825L2.35833%205L6.175%201.175L5%200L0%205L5%2010L6.175%208.825Z'%20fill='%238E8EA9'/%3e%3c/svg%3e";
|
|
4
4
|
|
|
5
5
|
module.exports = previous;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const previous = "data:image/svg+xml
|
|
1
|
+
const previous = "data:image/svg+xml,%3csvg%20width='7'%20height='10'%20viewBox='0%200%207%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.175%208.825L2.35833%205L6.175%201.175L5%200L0%205L5%2010L6.175%208.825Z'%20fill='%238E8EA9'/%3e%3c/svg%3e";
|
|
2
2
|
|
|
3
3
|
export { previous as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/design-system",
|
|
3
|
-
"version": "1.14.0
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -27,22 +27,22 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@codemirror/lang-json": "^6.0.1",
|
|
30
|
-
"@floating-ui/react-dom": "^2.0.
|
|
31
|
-
"@internationalized/date": "^3.5.
|
|
32
|
-
"@internationalized/number": "^3.
|
|
30
|
+
"@floating-ui/react-dom": "^2.0.4",
|
|
31
|
+
"@internationalized/date": "^3.5.1",
|
|
32
|
+
"@internationalized/number": "^3.5.0",
|
|
33
33
|
"@radix-ui/react-dismissable-layer": "^1.0.5",
|
|
34
34
|
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
|
35
35
|
"@radix-ui/react-focus-scope": "1.0.4",
|
|
36
|
-
"@strapi/ui-primitives": "^1.14.0
|
|
37
|
-
"@uiw/react-codemirror": "^4.21.
|
|
36
|
+
"@strapi/ui-primitives": "^1.14.0",
|
|
37
|
+
"@uiw/react-codemirror": "^4.21.21",
|
|
38
38
|
"aria-hidden": "^1.2.3",
|
|
39
39
|
"compute-scroll-into-view": "^3.1.0",
|
|
40
40
|
"prop-types": "^15.8.1",
|
|
41
41
|
"react-remove-scroll": "^2.5.7"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@playwright/test": "1.
|
|
45
|
-
"@strapi/icons": "^1.14.0
|
|
44
|
+
"@playwright/test": "1.40.1",
|
|
45
|
+
"@strapi/icons": "^1.14.0",
|
|
46
46
|
"@types/react-router-dom": "^5.3.3",
|
|
47
47
|
"@types/styled-components": "^5.1.26",
|
|
48
48
|
"axe-playwright": "^1.2.3",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"styled-components": "^5.3.11"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@strapi/icons": "1.
|
|
54
|
+
"@strapi/icons": "^1.5.0",
|
|
55
55
|
"react": "^17.0.0 || ^18.0.0",
|
|
56
56
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
57
57
|
"react-router-dom": "^5.2.0",
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DefaultTheme } from 'styled-components';
|
|
3
|
-
export declare const AccordionTypography: import("styled-components").StyledComponent<"span", DefaultTheme, import("../Typography").TypographyProps<"span">, never>;
|
|
4
|
-
export type AccordionSize = 'S' | 'M';
|
|
5
|
-
export type AccordionVariant = 'primary' | 'secondary';
|
|
6
|
-
export interface AccordionProps {
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* If `true`, the accordion will be disabled.
|
|
10
|
-
*/
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* If defined, will add a border (borderColor: `danger600`) and display the error message below the component.
|
|
14
|
-
*/
|
|
15
|
-
error?: string;
|
|
16
|
-
/**
|
|
17
|
-
* If `true`, an expanded Accordion will be rendered.
|
|
18
|
-
*/
|
|
19
|
-
expanded?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* If `false`, the error message won't show.
|
|
22
|
-
* If the `Accordion` is as child of an `AccordionGroup`, this prop will be set to `false` automatically.
|
|
23
|
-
* The error message of the `AccordionGroup` will be shown below the group instead of the Accordion itself.
|
|
24
|
-
*/
|
|
25
|
-
hasErrorMessage?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* The id of the component.
|
|
28
|
-
*/
|
|
29
|
-
id?: string;
|
|
30
|
-
/**
|
|
31
|
-
* The callback invoked after a click event on the `AccordionToggle`.
|
|
32
|
-
*/
|
|
33
|
-
onToggle?: () => void;
|
|
34
|
-
/**
|
|
35
|
-
* Shadow name (see `theme.shadows`)
|
|
36
|
-
*/
|
|
37
|
-
shadow?: keyof DefaultTheme['shadows'];
|
|
38
|
-
/**
|
|
39
|
-
* @preserve
|
|
40
|
-
* @deprecated use `onToggle` instead
|
|
41
|
-
* The callback invoked after a click event on the `AccordionToggle`.
|
|
42
|
-
*/
|
|
43
|
-
toggle?: () => void;
|
|
44
|
-
/**
|
|
45
|
-
* Size of the Accordion.
|
|
46
|
-
*/
|
|
47
|
-
size?: AccordionSize;
|
|
48
|
-
/**
|
|
49
|
-
* Color variant for `Accordion`. The "secondary" variant reverses the background colors.
|
|
50
|
-
* This is useful when you want to display a list and alternate the colors of the accordions.
|
|
51
|
-
*/
|
|
52
|
-
variant?: AccordionVariant;
|
|
53
|
-
}
|
|
54
|
-
export declare const Accordion: ({ children, disabled, error, expanded, hasErrorMessage, id, onToggle, toggle, size, variant, shadow, }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AccordionSize, AccordionVariant } from './Accordion';
|
|
2
|
-
export interface AccordionContextValue {
|
|
3
|
-
disabled: boolean;
|
|
4
|
-
expanded: boolean;
|
|
5
|
-
id: string;
|
|
6
|
-
onToggle?: () => void;
|
|
7
|
-
toggle?: () => void;
|
|
8
|
-
size: AccordionSize;
|
|
9
|
-
variant: AccordionVariant;
|
|
10
|
-
}
|
|
11
|
-
export declare const AccordionContext: import("react").Context<AccordionContextValue>;
|
|
12
|
-
export declare const useAccordion: () => AccordionContextValue;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FieldLabelProps } from '../Field';
|
|
3
|
-
export interface AccordionGroupProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
error?: string;
|
|
6
|
-
footer?: React.ReactNode;
|
|
7
|
-
label?: string;
|
|
8
|
-
labelAction?: FieldLabelProps['action'];
|
|
9
|
-
}
|
|
10
|
-
export declare const AccordionGroup: ({ children, footer, label, labelAction, error }: AccordionGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface AccordionToggleProps {
|
|
3
|
-
/**
|
|
4
|
-
* Will render a node to the right of the Accordion component
|
|
5
|
-
*/
|
|
6
|
-
action?: React.ReactNode;
|
|
7
|
-
as?: string | React.ComponentType<any>;
|
|
8
|
-
/**
|
|
9
|
-
* Show the secondary text of the Accordion component
|
|
10
|
-
*/
|
|
11
|
-
description?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Show the main title of the Accordion component
|
|
14
|
-
*/
|
|
15
|
-
title: string;
|
|
16
|
-
/**
|
|
17
|
-
* Set the position of the toggle icon button
|
|
18
|
-
*/
|
|
19
|
-
togglePosition?: 'right' | 'left';
|
|
20
|
-
}
|
|
21
|
-
export declare const AccordionToggle: ({ title, description, as, togglePosition, action, ...props }: AccordionToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DefaultTheme } from 'styled-components';
|
|
2
|
-
import { AccordionVariant } from './Accordion';
|
|
3
|
-
export declare const getBackground: ({ expanded, disabled, variant, }: {
|
|
4
|
-
expanded: boolean;
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
variant: AccordionVariant;
|
|
7
|
-
}) => keyof DefaultTheme['colors'];
|
package/dist/Alert/Alert.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BoxProps } from '../Box';
|
|
3
|
-
export type AlertVariant = 'success' | 'danger' | 'default' | 'warning';
|
|
4
|
-
export interface AlertProps extends BoxProps {
|
|
5
|
-
/**
|
|
6
|
-
* Render a React element below the body of an `Alert` (Mainly used to render a Link).
|
|
7
|
-
*/
|
|
8
|
-
action?: React.ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* The body of the `Alert` (Will be rendered under the `Alert` title).
|
|
11
|
-
*/
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* Accessible label for the close icon button.
|
|
15
|
-
*/
|
|
16
|
-
closeLabel: string;
|
|
17
|
-
/**
|
|
18
|
-
* The callback invoked when click on the close icon button.
|
|
19
|
-
*/
|
|
20
|
-
onClose: () => void;
|
|
21
|
-
/**
|
|
22
|
-
* The title of the `Alert`.
|
|
23
|
-
*/
|
|
24
|
-
title?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Changes the element, as which a component will render (similar to styled-components).
|
|
27
|
-
*/
|
|
28
|
-
titleAs?: string | React.ComponentType<any>;
|
|
29
|
-
/**
|
|
30
|
-
* `Alert` color variant.
|
|
31
|
-
*/
|
|
32
|
-
variant?: AlertVariant;
|
|
33
|
-
}
|
|
34
|
-
export declare const Alert: ({ title, children, variant, onClose, closeLabel, titleAs, action, ...props }: AlertProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Alert/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Alert';
|
package/dist/Alert/utils.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DefaultTheme } from 'styled-components';
|
|
2
|
-
import type { AlertVariant } from './Alert';
|
|
3
|
-
interface StyledProps {
|
|
4
|
-
theme: DefaultTheme;
|
|
5
|
-
variant: AlertVariant;
|
|
6
|
-
}
|
|
7
|
-
export declare const handleBackgroundColor: (variant: AlertVariant) => "primary100" | "danger100" | "success100" | "warning100";
|
|
8
|
-
export declare const handleBorderColor: (variant: AlertVariant) => string;
|
|
9
|
-
export declare const handleIconColor: ({ theme, variant }: StyledProps) => string;
|
|
10
|
-
export {};
|
package/dist/Avatar/Avatar.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FlexProps } from '../Flex';
|
|
3
|
-
import { TypographyProps } from '../Typography';
|
|
4
|
-
export interface AvatarProps {
|
|
5
|
-
/**
|
|
6
|
-
* Alternative text
|
|
7
|
-
*/
|
|
8
|
-
alt?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Image src of the image preview (displayed on `Avatar` hover).
|
|
11
|
-
*/
|
|
12
|
-
preview?: boolean | string;
|
|
13
|
-
/**
|
|
14
|
-
* Image src of the `Avatar`
|
|
15
|
-
*/
|
|
16
|
-
src: string;
|
|
17
|
-
}
|
|
18
|
-
export declare const Avatar: ({ src, alt, preview }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export type InitialsProps = Pick<FlexProps, 'background'> & Pick<TypographyProps, 'textColor'> & {
|
|
20
|
-
children: React.ReactNode;
|
|
21
|
-
};
|
|
22
|
-
export declare const Initials: ({ children, background, textColor }: InitialsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const AvatarGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Flex").FlexProps<"div">, never>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/Avatar/index.d.ts
DELETED
package/dist/Badge/Badge.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DefaultTheme } from 'styled-components';
|
|
2
|
-
import { FlexProps } from '../Flex';
|
|
3
|
-
export type BadgeSize = 'S' | 'M';
|
|
4
|
-
export interface BadgeProps extends FlexProps {
|
|
5
|
-
/**
|
|
6
|
-
* If `true`, it changes the `backgroundColor` to `primary200` and the `textColor` to `primary600`
|
|
7
|
-
*/
|
|
8
|
-
active?: boolean;
|
|
9
|
-
backgroundColor?: keyof DefaultTheme['colors'];
|
|
10
|
-
size?: BadgeSize;
|
|
11
|
-
textColor?: keyof DefaultTheme['colors'];
|
|
12
|
-
}
|
|
13
|
-
export declare const Badge: ({ active, size, textColor, backgroundColor, children, minWidth, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Badge/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Badge';
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FlexProps } from '../Flex';
|
|
3
|
-
export declare const BaseButtonWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, FlexProps<"div">, never>;
|
|
4
|
-
export type BaseButtonProps<TElement extends keyof JSX.IntrinsicElements = 'button'> = FlexProps<TElement>;
|
|
5
|
-
export declare const BaseButton: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Pick<import("styled-components").CSSProperties, "cursor" | "display" | "pointerEvents" | "position" | "textAlign" | "textTransform" | "transform" | "zIndex" | "animation" | "overflow" | "transition"> & {
|
|
6
|
-
_hover?: ((theme: import("styled-components").DefaultTheme) => string) | undefined;
|
|
7
|
-
background?: import("../types").DefaultThemeOrCSSProp<"colors", "background">;
|
|
8
|
-
basis?: import("csstype").Property.FlexBasis<string | number> | undefined;
|
|
9
|
-
borderColor?: keyof import("../themes/colors").Colors | undefined;
|
|
10
|
-
color?: keyof import("../themes/colors").Colors | undefined;
|
|
11
|
-
flex?: import("csstype").Property.Flex<string | number> | undefined;
|
|
12
|
-
fontSize?: import("../types").DefaultThemeOrCSSProp<"fontSizes", "fontSize">;
|
|
13
|
-
grow?: import("csstype").Property.FlexGrow | undefined;
|
|
14
|
-
hasRadius?: boolean | undefined;
|
|
15
|
-
hiddenS?: boolean | undefined;
|
|
16
|
-
hiddenXS?: boolean | undefined;
|
|
17
|
-
padding?: import("../helpers/handleResponsiveValues").ResponsiveValue<"padding">;
|
|
18
|
-
paddingBottom?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingBottom">;
|
|
19
|
-
paddingLeft?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingLeft">;
|
|
20
|
-
paddingRight?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingRight">;
|
|
21
|
-
paddingTop?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingTop">;
|
|
22
|
-
marginLeft?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginLeft">;
|
|
23
|
-
marginBottom?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginBottom">;
|
|
24
|
-
marginRight?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginRight">;
|
|
25
|
-
marginTop?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginTop">;
|
|
26
|
-
shadow?: keyof import("../themes/colors").Shadows | undefined;
|
|
27
|
-
shrink?: import("csstype").Property.FlexShrink | undefined;
|
|
28
|
-
lineHeight?: import("../types").DefaultThemeOrCSSProp<"lineHeights", "lineHeight">;
|
|
29
|
-
width?: import("../types").DefaultThemeOrCSSProp<"spaces", "width">;
|
|
30
|
-
minWidth?: import("../types").DefaultThemeOrCSSProp<"spaces", "minWidth">;
|
|
31
|
-
maxWidth?: import("../types").DefaultThemeOrCSSProp<"spaces", "maxWidth">;
|
|
32
|
-
height?: import("../types").DefaultThemeOrCSSProp<"spaces", "height">;
|
|
33
|
-
minHeight?: import("../types").DefaultThemeOrCSSProp<"spaces", "minHeight">;
|
|
34
|
-
maxHeight?: import("../types").DefaultThemeOrCSSProp<"spaces", "maxHeight">;
|
|
35
|
-
top?: import("../types").DefaultThemeOrCSSProp<"spaces", "top">;
|
|
36
|
-
left?: import("../types").DefaultThemeOrCSSProp<"spaces", "left">;
|
|
37
|
-
bottom?: import("../types").DefaultThemeOrCSSProp<"spaces", "bottom">;
|
|
38
|
-
right?: import("../types").DefaultThemeOrCSSProp<"spaces", "right">;
|
|
39
|
-
borderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
40
|
-
borderStyle?: import("csstype").Property.BorderStyle | undefined;
|
|
41
|
-
borderWidth?: import("csstype").Property.BorderWidth<string | number> | undefined;
|
|
42
|
-
children?: React.ReactNode;
|
|
43
|
-
as?: string | React.ComponentType<any> | undefined;
|
|
44
|
-
forwardedAs?: string | React.ComponentType<any> | undefined;
|
|
45
|
-
} & {
|
|
46
|
-
alignItems?: import("csstype").Property.AlignItems | undefined;
|
|
47
|
-
direction?: import("csstype").Property.FlexDirection | undefined;
|
|
48
|
-
gap?: any;
|
|
49
|
-
inline?: boolean | undefined;
|
|
50
|
-
justifyContent?: import("csstype").Property.JustifyContent | undefined;
|
|
51
|
-
wrap?: import("csstype").Property.FlexWrap | undefined;
|
|
52
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './BaseButton';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export type BaseCheckboxSize = 'S' | 'M';
|
|
3
|
-
export interface CheckboxInputProps {
|
|
4
|
-
size: BaseCheckboxSize;
|
|
5
|
-
}
|
|
6
|
-
export interface BaseCheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'value'> {
|
|
7
|
-
/**
|
|
8
|
-
* If `true`, display the indeterminate state.
|
|
9
|
-
*/
|
|
10
|
-
indeterminate?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* `Checkbox` input name
|
|
13
|
-
*/
|
|
14
|
-
name?: string;
|
|
15
|
-
/**
|
|
16
|
-
* The callback invoked when click on the `Checkbox`
|
|
17
|
-
* `(value: Bool) => {}`
|
|
18
|
-
*/
|
|
19
|
-
onValueChange?: (isChecked: boolean) => void;
|
|
20
|
-
/**
|
|
21
|
-
* Set the size of the checkbox
|
|
22
|
-
*/
|
|
23
|
-
size?: BaseCheckboxSize;
|
|
24
|
-
value?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export type CheckboxElement = HTMLInputElement;
|
|
27
|
-
export declare const BaseCheckbox: React.ForwardRefExoticComponent<BaseCheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './BaseCheckbox';
|