@strapi/design-system 1.14.0-typescript.2 → 1.14.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/BaseCheckbox/BaseCheckbox.js +2 -2
- package/dist/BaseCheckbox/BaseCheckbox.mjs +2 -2
- package/dist/FocusTrap/FocusTrap.js +3 -3
- package/dist/FocusTrap/FocusTrap.mjs +3 -3
- package/dist/Select/MultiSelect.js +1 -1
- package/dist/Select/MultiSelect.mjs +1 -1
- package/package.json +8 -8
- package/dist/Accordion/Accordion.d.ts +0 -56
- 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 -19
- package/dist/Link/index.d.ts +0 -1
- package/dist/LinkButton/LinkButton.d.ts +0 -23
- 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
|
@@ -52,7 +52,7 @@ const CheckboxInput = styled__default.default.input `
|
|
|
52
52
|
content: '';
|
|
53
53
|
display: block;
|
|
54
54
|
position: relative;
|
|
55
|
-
background: url(${checkmark}) no-repeat no-repeat center center;
|
|
55
|
+
background: ${() => `url("${checkmark}") no-repeat no-repeat center center`};
|
|
56
56
|
width: 10px;
|
|
57
57
|
height: 10px;
|
|
58
58
|
left: 50%;
|
|
@@ -61,7 +61,7 @@ const CheckboxInput = styled__default.default.input `
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
&:disabled:after {
|
|
64
|
-
background: url(${checkmarkBlack}) no-repeat no-repeat center center;
|
|
64
|
+
background: ${() => `url("${checkmarkBlack}") no-repeat no-repeat center center`};
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -25,7 +25,7 @@ const CheckboxInput = styled.input `
|
|
|
25
25
|
content: '';
|
|
26
26
|
display: block;
|
|
27
27
|
position: relative;
|
|
28
|
-
background: url(${checkmarkIcon}) no-repeat no-repeat center center;
|
|
28
|
+
background: ${() => `url("${checkmarkIcon}") no-repeat no-repeat center center`};
|
|
29
29
|
width: 10px;
|
|
30
30
|
height: 10px;
|
|
31
31
|
left: 50%;
|
|
@@ -34,7 +34,7 @@ const CheckboxInput = styled.input `
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&:disabled:after {
|
|
37
|
-
background: url(${checkmarkIconDisabled}) no-repeat no-repeat center center;
|
|
37
|
+
background: ${() => `url("${checkmarkIconDisabled}") no-repeat no-repeat center center`};
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -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();
|
|
@@ -151,7 +151,7 @@ const CheckMark = styled__default.default(Box.Box) `
|
|
|
151
151
|
styled.css `
|
|
152
152
|
&::after {
|
|
153
153
|
content: '';
|
|
154
|
-
background: url(${checkmark}) no-repeat no-repeat center center;
|
|
154
|
+
background: ${() => `url("${checkmark}") no-repeat no-repeat center center`};
|
|
155
155
|
width: 100%;
|
|
156
156
|
height: 100%;
|
|
157
157
|
position: absolute;
|
|
@@ -124,7 +124,7 @@ const CheckMark = styled(Box) `
|
|
|
124
124
|
css `
|
|
125
125
|
&::after {
|
|
126
126
|
content: '';
|
|
127
|
-
background: url(${checkmarkIcon}) no-repeat no-repeat center center;
|
|
127
|
+
background: ${() => `url("${checkmarkIcon}") no-repeat no-repeat center center`};
|
|
128
128
|
width: 100%;
|
|
129
129
|
height: 100%;
|
|
130
130
|
position: absolute;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/design-system",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -27,13 +27,13 @@
|
|
|
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.5",
|
|
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.
|
|
36
|
+
"@strapi/ui-primitives": "^1.14.1",
|
|
37
37
|
"@uiw/react-codemirror": "^4.21.21",
|
|
38
38
|
"aria-hidden": "^1.2.3",
|
|
39
39
|
"compute-scroll-into-view": "^3.1.0",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"react-remove-scroll": "^2.5.7"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@playwright/test": "1.40.
|
|
45
|
-
"@strapi/icons": "^1.14.
|
|
44
|
+
"@playwright/test": "1.40.1",
|
|
45
|
+
"@strapi/icons": "^1.14.1",
|
|
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,56 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DefaultTheme } from 'styled-components';
|
|
3
|
-
declare const AccordionTypography: import("styled-components").StyledComponent<"span", DefaultTheme, import("../Typography").TypographyProps<"span">, never>;
|
|
4
|
-
type AccordionSize = 'S' | 'M';
|
|
5
|
-
type AccordionVariant = 'primary' | 'secondary';
|
|
6
|
-
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
|
-
declare const Accordion: ({ children, disabled, error, expanded, hasErrorMessage, id, onToggle, toggle, size, variant, shadow, }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
|
-
export { Accordion, AccordionTypography };
|
|
56
|
-
export type { AccordionProps, AccordionSize, AccordionVariant };
|
|
@@ -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';
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BoxProps } from '../Box';
|
|
3
|
-
export type BaseLinkProps = BoxProps<'a'> & {
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
isExternal?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const BaseLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & Pick<import("styled-components").CSSProperties, "cursor" | "display" | "pointerEvents" | "position" | "textAlign" | "textTransform" | "transform" | "zIndex" | "animation" | "overflow" | "transition"> & {
|
|
8
|
-
_hover?: ((theme: import("styled-components").DefaultTheme) => string) | undefined;
|
|
9
|
-
background?: import("../types").DefaultThemeOrCSSProp<"colors", "background">;
|
|
10
|
-
basis?: import("csstype").Property.FlexBasis<string | number> | undefined;
|
|
11
|
-
borderColor?: keyof import("../themes/colors").Colors | undefined;
|
|
12
|
-
color?: keyof import("../themes/colors").Colors | undefined;
|
|
13
|
-
flex?: import("csstype").Property.Flex<string | number> | undefined;
|
|
14
|
-
fontSize?: import("../types").DefaultThemeOrCSSProp<"fontSizes", "fontSize">;
|
|
15
|
-
grow?: import("csstype").Property.FlexGrow | undefined;
|
|
16
|
-
hasRadius?: boolean | undefined;
|
|
17
|
-
hiddenS?: boolean | undefined;
|
|
18
|
-
hiddenXS?: boolean | undefined;
|
|
19
|
-
padding?: import("../helpers/handleResponsiveValues").ResponsiveValue<"padding">;
|
|
20
|
-
paddingBottom?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingBottom">;
|
|
21
|
-
paddingLeft?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingLeft">;
|
|
22
|
-
paddingRight?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingRight">;
|
|
23
|
-
paddingTop?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingTop">;
|
|
24
|
-
marginLeft?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginLeft">;
|
|
25
|
-
marginBottom?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginBottom">;
|
|
26
|
-
marginRight?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginRight">;
|
|
27
|
-
marginTop?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginTop">;
|
|
28
|
-
shadow?: keyof import("../themes/colors").Shadows | undefined;
|
|
29
|
-
shrink?: import("csstype").Property.FlexShrink | undefined;
|
|
30
|
-
lineHeight?: import("../types").DefaultThemeOrCSSProp<"lineHeights", "lineHeight">;
|
|
31
|
-
width?: import("../types").DefaultThemeOrCSSProp<"spaces", "width">;
|
|
32
|
-
minWidth?: import("../types").DefaultThemeOrCSSProp<"spaces", "minWidth">;
|
|
33
|
-
maxWidth?: import("../types").DefaultThemeOrCSSProp<"spaces", "maxWidth">;
|
|
34
|
-
height?: import("../types").DefaultThemeOrCSSProp<"spaces", "height">;
|
|
35
|
-
minHeight?: import("../types").DefaultThemeOrCSSProp<"spaces", "minHeight">;
|
|
36
|
-
maxHeight?: import("../types").DefaultThemeOrCSSProp<"spaces", "maxHeight">;
|
|
37
|
-
top?: import("../types").DefaultThemeOrCSSProp<"spaces", "top">;
|
|
38
|
-
left?: import("../types").DefaultThemeOrCSSProp<"spaces", "left">;
|
|
39
|
-
bottom?: import("../types").DefaultThemeOrCSSProp<"spaces", "bottom">;
|
|
40
|
-
right?: import("../types").DefaultThemeOrCSSProp<"spaces", "right">;
|
|
41
|
-
borderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
42
|
-
borderStyle?: import("csstype").Property.BorderStyle | undefined;
|
|
43
|
-
borderWidth?: import("csstype").Property.BorderWidth<string | number> | undefined;
|
|
44
|
-
children?: React.ReactNode;
|
|
45
|
-
as?: string | React.ComponentType<any> | undefined;
|
|
46
|
-
forwardedAs?: string | React.ComponentType<any> | undefined;
|
|
47
|
-
} & {
|
|
48
|
-
disabled?: boolean | undefined;
|
|
49
|
-
isExternal?: boolean | undefined;
|
|
50
|
-
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/BaseLink/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './BaseLink';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface BaseRadioProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
value: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const BaseRadio: React.ForwardRefExoticComponent<BaseRadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, ChangeEventHandler, ReactNode } from 'react';
|
|
2
|
-
export type RadioGroupSize = 'M' | 'L';
|
|
3
|
-
interface RadioGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
labelledBy: string;
|
|
6
|
-
name: string;
|
|
7
|
-
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
8
|
-
size?: RadioGroupSize;
|
|
9
|
-
value?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const RadioGroup: ({ children, labelledBy, onChange, value, size, name, ...props }: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ChangeEventHandler } from 'react';
|
|
2
|
-
import type { RadioGroupSize } from './RadioGroup';
|
|
3
|
-
export interface RadioContextValue {
|
|
4
|
-
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
5
|
-
name: string;
|
|
6
|
-
size: RadioGroupSize;
|
|
7
|
-
selected: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const RadioContext: import("react").Context<RadioContextValue>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { RadioGroupSize } from './RadioGroup';
|
|
2
|
-
export declare const getRadioSize: (size: RadioGroupSize) => "20px" | "18px";
|
|
3
|
-
export declare const getSelectedRadioSize: (size: RadioGroupSize) => "12px" | "10px";
|
|
4
|
-
export declare const getSelectedRadioPosition: () => string;
|