@strapi/design-system 1.18.0 → 1.19.0-typescript.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/Accordion/Accordion.d.ts +56 -0
- package/dist/Accordion/AccordionContent.d.ts +3 -0
- package/dist/Accordion/AccordionContext.d.ts +12 -0
- package/dist/Accordion/AccordionGroup.d.ts +10 -0
- package/dist/Accordion/AccordionToggle.d.ts +22 -0
- package/dist/Accordion/index.d.ts +4 -0
- package/dist/Accordion/utils.d.ts +7 -0
- package/dist/Alert/Alert.d.ts +34 -0
- package/dist/Alert/index.d.ts +1 -0
- package/dist/Alert/utils.d.ts +10 -0
- package/dist/Avatar/Avatar.d.ts +22 -0
- package/dist/Avatar/AvatarGroup.d.ts +1 -0
- package/dist/Avatar/__tests__/Avatar.spec.d.ts +1 -0
- package/dist/Avatar/constants.d.ts +2 -0
- package/dist/Avatar/index.d.ts +2 -0
- package/dist/Badge/Badge.d.ts +13 -0
- package/dist/Badge/index.d.ts +1 -0
- package/dist/BaseButton/BaseButton.d.ts +52 -0
- package/dist/BaseButton/index.d.ts +1 -0
- package/dist/BaseCheckbox/BaseCheckbox.d.ts +27 -0
- package/dist/BaseCheckbox/index.d.ts +1 -0
- package/dist/BaseCheckbox/utils.d.ts +7 -0
- package/dist/BaseLink/BaseLink.d.ts +50 -0
- package/dist/BaseLink/__tests__/BaseLink.spec.d.ts +1 -0
- package/dist/BaseLink/index.d.ts +1 -0
- package/dist/BaseRadio/BaseRadio.d.ts +6 -0
- package/dist/BaseRadio/RadioGroup.d.ts +12 -0
- package/dist/BaseRadio/context.d.ts +9 -0
- package/dist/BaseRadio/index.d.ts +2 -0
- package/dist/BaseRadio/utils.d.ts +4 -0
- package/dist/Box/Box.d.ts +97 -0
- package/dist/Box/__tests__/Box.spec.d.ts +1 -0
- package/dist/Box/index.d.ts +1 -0
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +17 -0
- package/dist/Breadcrumbs/index.d.ts +1 -0
- package/dist/Button/Button.d.ts +61 -0
- package/dist/Button/__tests__/utils.spec.d.ts +1 -0
- package/dist/Button/constants.d.ts +13 -0
- package/dist/Button/index.d.ts +1 -0
- package/dist/Button/utils.d.ts +18 -0
- package/dist/Card/Card.d.ts +5 -0
- package/dist/Card/CardAction.d.ts +8 -0
- package/dist/Card/CardAsset.d.ts +7 -0
- package/dist/Card/CardBadge.d.ts +3 -0
- package/dist/Card/CardBody.d.ts +3 -0
- package/dist/Card/CardCheckbox.d.ts +3 -0
- package/dist/Card/CardContent.d.ts +6 -0
- package/dist/Card/CardContext.d.ts +6 -0
- package/dist/Card/CardHeader.d.ts +3 -0
- package/dist/Card/CardTimer.d.ts +6 -0
- package/dist/Card/CardTitle.d.ts +5 -0
- package/dist/Card/index.d.ts +10 -0
- package/dist/CarouselInput/Carousel.d.ts +15 -0
- package/dist/CarouselInput/CarouselActions.d.ts +10 -0
- package/dist/CarouselInput/CarouselImage.d.ts +6 -0
- package/dist/CarouselInput/CarouselInput.d.ts +8 -0
- package/dist/CarouselInput/CarouselSlide.d.ts +7 -0
- package/dist/CarouselInput/index.d.ts +5 -0
- package/dist/Checkbox/Checkbox.d.ts +9 -0
- package/dist/Checkbox/index.d.ts +1 -0
- package/dist/Combobox/Combobox.d.ts +60 -0
- package/dist/Combobox/ComboboxList.d.ts +10 -0
- package/dist/Combobox/ComboboxOption.d.ts +3 -0
- package/dist/Combobox/__tests__/Combobox.spec.d.ts +1 -0
- package/dist/Combobox/index.d.ts +3 -0
- package/dist/DatePicker/DatePicker.d.ts +78 -0
- package/dist/DatePicker/__tests__/DatePicker.spec.d.ts +1 -0
- package/dist/DatePicker/index.d.ts +2 -0
- package/dist/DateTimePicker/DateTimePicker.d.ts +32 -0
- package/dist/DateTimePicker/__tests__/DateTimePicker.spec.d.ts +1 -0
- package/dist/DateTimePicker/index.d.ts +1 -0
- package/dist/DesignSystemProvider.d.ts +10 -0
- package/dist/Dialog/Dialog.d.ts +7 -0
- package/dist/Dialog/DialogBody.d.ts +6 -0
- package/dist/Dialog/DialogFooter.d.ts +6 -0
- package/dist/Dialog/__tests__/Dialog.spec.d.ts +1 -0
- package/dist/Dialog/index.d.ts +3 -0
- package/dist/DismissibleLayer/index.d.ts +3 -0
- package/dist/Divider/Divider.d.ts +9 -0
- package/dist/Divider/index.d.ts +1 -0
- package/dist/EmptyStateLayout/EmptyStateLayout.d.ts +7 -0
- package/dist/EmptyStateLayout/index.d.ts +1 -0
- package/dist/EmptyStateLayout/story-assets/Illo.d.ts +1 -0
- package/dist/Field/Field.d.ts +14 -0
- package/dist/Field/FieldAction.d.ts +7 -0
- package/dist/Field/FieldContext.d.ts +10 -0
- package/dist/Field/FieldError.d.ts +1 -0
- package/dist/Field/FieldHint.d.ts +1 -0
- package/dist/Field/FieldInput.d.ts +61 -0
- package/dist/Field/FieldLabel.d.ts +11 -0
- package/dist/Field/__tests__/Field.spec.d.ts +1 -0
- package/dist/Field/index.d.ts +7 -0
- package/dist/Flex/Flex.d.ts +15 -0
- package/dist/Flex/index.d.ts +1 -0
- package/dist/FocusTrap/FocusTrap.d.ts +13 -0
- package/dist/FocusTrap/index.d.ts +1 -0
- package/dist/Grid/Grid.d.ts +7 -0
- package/dist/Grid/GridItem.d.ts +47 -0
- package/dist/Grid/index.d.ts +2 -0
- package/dist/Icon/Icon.d.ts +7 -0
- package/dist/Icon/index.d.ts +1 -0
- package/dist/IconButton/IconButton.d.ts +41 -0
- package/dist/IconButton/index.d.ts +1 -0
- package/dist/JSONInput/JSONInput.d.ts +15 -0
- package/dist/JSONInput/__tests__/JSONInput.spec.d.ts +1 -0
- package/dist/JSONInput/index.d.ts +1 -0
- package/dist/JSONInput/utils/decorationExtension.d.ts +7 -0
- package/dist/KeyboardNavigable/KeyboardNavigable.d.ts +6 -0
- package/dist/KeyboardNavigable/index.d.ts +1 -0
- package/dist/Layout/ActionLayout.d.ts +6 -0
- package/dist/Layout/ContentLayout.d.ts +5 -0
- package/dist/Layout/GridLayout.d.ts +1 -0
- package/dist/Layout/HeaderLayout.d.ts +18 -0
- package/dist/Layout/Layout.d.ts +6 -0
- package/dist/Layout/TwoColsLayout.d.ts +6 -0
- package/dist/Layout/index.d.ts +6 -0
- package/dist/Link/Link.d.ts +19 -0
- package/dist/Link/index.d.ts +1 -0
- package/dist/LinkButton/LinkButton.d.ts +23 -0
- package/dist/LinkButton/index.d.ts +1 -0
- package/dist/LiveRegions/LiveRegions.d.ts +1 -0
- package/dist/LiveRegions/__tests__/LiveRegions.spec.d.ts +1 -0
- package/dist/LiveRegions/constants.d.ts +5 -0
- package/dist/LiveRegions/index.d.ts +2 -0
- package/dist/LiveRegions/useNotifyAT.d.ts +5 -0
- package/dist/Loader/Loader.d.ts +6 -0
- package/dist/Loader/index.d.ts +1 -0
- package/dist/Main/Main.d.ts +5 -0
- package/dist/Main/SkipToContent.d.ts +4 -0
- package/dist/Main/index.d.ts +2 -0
- package/dist/MainNav/MainNav.d.ts +5 -0
- package/dist/MainNav/MainNavContext.d.ts +2 -0
- package/dist/MainNav/NavBrand.d.ts +8 -0
- package/dist/MainNav/NavCondense.d.ts +5 -0
- package/dist/MainNav/NavFooter.d.ts +5 -0
- package/dist/MainNav/NavLink.d.ts +9 -0
- package/dist/MainNav/NavSection.d.ts +11 -0
- package/dist/MainNav/NavSections.d.ts +10 -0
- package/dist/MainNav/NavUser.d.ts +7 -0
- package/dist/MainNav/index.d.ts +8 -0
- package/dist/ModalLayout/ModalBody.d.ts +2 -0
- package/dist/ModalLayout/ModalContext.d.ts +2 -0
- package/dist/ModalLayout/ModalFooter.d.ts +5 -0
- package/dist/ModalLayout/ModalHeader.d.ts +6 -0
- package/dist/ModalLayout/ModalLayout.d.ts +6 -0
- package/dist/ModalLayout/__tests__/ModalLayout.spec.d.ts +1 -0
- package/dist/ModalLayout/index.d.ts +4 -0
- package/dist/NumberInput/NumberInput.d.ts +11 -0
- package/dist/NumberInput/index.d.ts +1 -0
- package/dist/Pagination/Pagination.d.ts +8 -0
- package/dist/Pagination/PaginationContext.d.ts +6 -0
- package/dist/Pagination/components.d.ts +26 -0
- package/dist/Pagination/index.d.ts +2 -0
- package/dist/Popover/Popover.d.ts +21 -0
- package/dist/Popover/__tests__/Popover.spec.d.ts +1 -0
- package/dist/Popover/index.d.ts +3 -0
- package/dist/Popover/primitives.d.ts +3 -0
- package/dist/Portal/Portal.d.ts +6 -0
- package/dist/Portal/index.d.ts +1 -0
- package/dist/ProgressBar/ProgressBar.d.ts +11 -0
- package/dist/ProgressBar/index.d.ts +1 -0
- package/dist/Radio/Radio.d.ts +5 -0
- package/dist/Radio/__tests__/Radio.spec.d.ts +1 -0
- package/dist/Radio/index.d.ts +2 -0
- package/dist/RawTable/RawCell.d.ts +14 -0
- package/dist/RawTable/RawTable.d.ts +16 -0
- package/dist/RawTable/RawTableContext.d.ts +10 -0
- package/dist/RawTable/RawTbody.d.ts +5 -0
- package/dist/RawTable/RawThead.d.ts +5 -0
- package/dist/RawTable/RawTr.d.ts +5 -0
- package/dist/RawTable/focusFocusable.d.ts +1 -0
- package/dist/RawTable/index.d.ts +5 -0
- package/dist/Searchbar/SearchForm.d.ts +3 -0
- package/dist/Searchbar/Searchbar.d.ts +9 -0
- package/dist/Searchbar/index.d.ts +2 -0
- package/dist/Select/MultiSelect.d.ts +40 -0
- package/dist/Select/MultiSelectNested.d.ts +13 -0
- package/dist/Select/OptGroup.d.ts +9 -0
- package/dist/Select/Option.d.ts +13 -0
- package/dist/Select/Select.d.ts +18 -0
- package/dist/Select/SelectList.d.ts +25 -0
- package/dist/Select/SelectParts.d.ts +67 -0
- package/dist/Select/SingleSelect.d.ts +41 -0
- package/dist/Select/__tests__/MultiSelect.spec.d.ts +1 -0
- package/dist/Select/__tests__/MultiSelectNested.spec.d.ts +1 -0
- package/dist/Select/__tests__/Select.spec.d.ts +1 -0
- package/dist/Select/__tests__/SingleSelect.spec.d.ts +1 -0
- package/dist/Select/index.d.ts +17 -0
- package/dist/SimpleMenu/SimpleMenu.d.ts +33 -0
- package/dist/SimpleMenu/__tests__/SimpleMenu.spec.d.ts +1 -0
- package/dist/SimpleMenu/index.d.ts +1 -0
- package/dist/SimpleMenu/utils.d.ts +3 -0
- package/dist/Stack/Stack.d.ts +20 -0
- package/dist/Stack/index.d.ts +1 -0
- package/dist/Status/Status.d.ts +15 -0
- package/dist/Status/__tests__/Status.spec.d.ts +1 -0
- package/dist/Status/index.d.ts +1 -0
- package/dist/SubNav/SubNav.d.ts +6 -0
- package/dist/SubNav/SubNavHeader.d.ts +13 -0
- package/dist/SubNav/SubNavLink.d.ts +8 -0
- package/dist/SubNav/SubNavLinkSection.d.ts +7 -0
- package/dist/SubNav/SubNavSection.d.ts +9 -0
- package/dist/SubNav/SubNavSectionLabel.d.ts +8 -0
- package/dist/SubNav/SubNavSections.d.ts +10 -0
- package/dist/SubNav/index.d.ts +6 -0
- package/dist/Switch/Switch.d.ts +13 -0
- package/dist/Switch/index.d.ts +1 -0
- package/dist/Table/Cell.d.ts +8 -0
- package/dist/Table/TFooter.d.ts +7 -0
- package/dist/Table/Table.d.ts +7 -0
- package/dist/Table/Tbody.d.ts +2 -0
- package/dist/Table/Thead.d.ts +2 -0
- package/dist/Table/Tr.d.ts +2 -0
- package/dist/Table/index.d.ts +6 -0
- package/dist/Tabs/TabGroup.d.ts +14 -0
- package/dist/Tabs/TabPanels.d.ts +9 -0
- package/dist/Tabs/Tabs.d.ts +17 -0
- package/dist/Tabs/TabsContext.d.ts +10 -0
- package/dist/Tabs/components.d.ts +94 -0
- package/dist/Tabs/index.d.ts +3 -0
- package/dist/Tag/Tag.d.ts +5 -0
- package/dist/Tag/__tests__/Tag.spec.d.ts +1 -0
- package/dist/Tag/index.d.ts +1 -0
- package/dist/TextButton/TextButton.d.ts +8 -0
- package/dist/TextButton/index.d.ts +1 -0
- package/dist/TextInput/TextInput.d.ts +10 -0
- package/dist/TextInput/__tests__/TextInput.spec.d.ts +1 -0
- package/dist/TextInput/index.d.ts +1 -0
- package/dist/Textarea/Textarea.d.ts +17 -0
- package/dist/Textarea/index.d.ts +1 -0
- package/dist/ThemeProvider/ThemeProvider.d.ts +10 -0
- package/dist/ThemeProvider/hooks.d.ts +1 -0
- package/dist/ThemeProvider/index.d.ts +2 -0
- package/dist/TimePicker/TimePicker.d.ts +26 -0
- package/dist/TimePicker/__tests__/TimePicker.spec.d.ts +1 -0
- package/dist/TimePicker/index.d.ts +1 -0
- package/dist/ToggleCheckbox/ToggleCheckbox.d.ts +10 -0
- package/dist/ToggleCheckbox/index.d.ts +1 -0
- package/dist/ToggleInput/ToggleInput.d.ts +24 -0
- package/dist/ToggleInput/__tests__/ToggleInput.spec.d.ts +1 -0
- package/dist/ToggleInput/index.d.ts +1 -0
- package/dist/Tooltip/Tooltip.d.ts +11 -0
- package/dist/Tooltip/__tests__/Tooltip.spec.d.ts +1 -0
- package/dist/Tooltip/hooks/useTooltipHandlers.d.ts +7 -0
- package/dist/Tooltip/hooks/useTooltipLayout.d.ts +5 -0
- package/dist/Tooltip/index.d.ts +1 -0
- package/dist/Tooltip/utils/__tests__/positionTooltip.spec.d.ts +1 -0
- package/dist/Tooltip/utils/positionTooltip.d.ts +5 -0
- package/dist/Typography/Typography.d.ts +19 -0
- package/dist/Typography/__tests__/Typography.spec.d.ts +1 -0
- package/dist/Typography/constants.d.ts +8 -0
- package/dist/Typography/index.d.ts +1 -0
- package/dist/Typography/utils.d.ts +9 -0
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +1 -0
- package/dist/VisuallyHidden/index.d.ts +1 -0
- package/dist/helpers/__tests__/deprecations.spec.d.ts +1 -0
- package/dist/helpers/context.d.ts +7 -0
- package/dist/helpers/deprecations.d.ts +2 -0
- package/dist/helpers/getDefaultLocale.d.ts +5 -0
- package/dist/helpers/getFocusableNodes.d.ts +10 -0
- package/dist/helpers/handleResponsiveValues.d.ts +17 -0
- package/dist/helpers/keyboardKeys.d.ts +17 -0
- package/dist/helpers/objects.d.ts +8 -0
- package/dist/helpers/setOpacity.d.ts +1 -0
- package/dist/helpers/setTabIndexOnFirstItem.d.ts +1 -0
- package/dist/helpers/strings.d.ts +1 -0
- package/dist/helpers/theme.d.ts +2 -0
- package/dist/helpers/useElementOnScreen.d.ts +6 -0
- package/dist/helpers/useId.d.ts +6 -0
- package/dist/helpers/useIntersection.d.ts +6 -0
- package/dist/helpers/useLockScroll.d.ts +7 -0
- package/dist/helpers/usePrevious.d.ts +6 -0
- package/dist/helpers/useResizeObserver.d.ts +6 -0
- package/dist/hooks/__tests__/useId.spec.d.ts +1 -0
- package/dist/hooks/useComposeRefs.d.ts +29 -0
- package/dist/hooks/useControllableState.d.ts +19 -0
- package/dist/hooks/useDateFormatter.d.ts +28 -0
- package/dist/hooks/useElementOnScreen.d.ts +1 -0
- package/dist/hooks/useId.d.ts +1 -0
- package/dist/hooks/useIntersection.d.ts +7 -0
- package/dist/hooks/useLockScroll.d.ts +2 -0
- package/dist/hooks/usePrevious.d.ts +1 -0
- package/dist/hooks/useResizeObserver.d.ts +2 -0
- package/dist/index.d.ts +69 -0
- package/dist/themes/__tests__/extendTheme.spec.d.ts +1 -0
- package/dist/themes/colors.d.ts +54 -0
- package/dist/themes/common-theme.d.ts +19 -0
- package/dist/themes/darkTheme/dark-colors.d.ts +4 -0
- package/dist/themes/darkTheme/dark-shadows.d.ts +4 -0
- package/dist/themes/darkTheme/index.d.ts +2 -0
- package/dist/themes/extendTheme.d.ts +2 -0
- package/dist/themes/index.d.ts +10 -0
- package/dist/themes/lightTheme/index.d.ts +2 -0
- package/dist/themes/lightTheme/light-colors.d.ts +4 -0
- package/dist/themes/lightTheme/light-shadows.d.ts +4 -0
- package/dist/themes/sizes.d.ts +21 -0
- package/dist/themes/utils.d.ts +12 -0
- package/dist/types.d.ts +3 -0
- package/dist/v2/Breadcrumbs/Breadcrumbs.d.ts +8 -0
- package/dist/v2/Breadcrumbs/Crumb.d.ts +8 -0
- package/dist/v2/Breadcrumbs/CrumbLink.d.ts +5 -0
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.d.ts +11 -0
- package/dist/v2/Breadcrumbs/Divider.d.ts +4 -0
- package/dist/v2/Breadcrumbs/__tests__/Breadcrumbs.spec.d.ts +1 -0
- package/dist/v2/Breadcrumbs/index.d.ts +4 -0
- package/dist/v2/Link/Link.d.ts +11 -0
- package/dist/v2/Link/index.d.ts +1 -0
- package/dist/v2/LinkButton/LinkButton.d.ts +61 -0
- package/dist/v2/LinkButton/index.d.ts +1 -0
- package/dist/v2/MainNav/MainNav.d.ts +5 -0
- package/dist/v2/MainNav/MainNavContext.d.ts +2 -0
- package/dist/v2/MainNav/NavBrand.d.ts +9 -0
- package/dist/v2/MainNav/NavCondense.d.ts +5 -0
- package/dist/v2/MainNav/NavFooter.d.ts +5 -0
- package/dist/v2/MainNav/NavLink.d.ts +9 -0
- package/dist/v2/MainNav/NavSection.d.ts +9 -0
- package/dist/v2/MainNav/NavSections.d.ts +8 -0
- package/dist/v2/MainNav/NavUser.d.ts +8 -0
- package/dist/v2/MainNav/index.d.ts +8 -0
- package/dist/v2/Pagination/Pagination.d.ts +8 -0
- package/dist/v2/Pagination/PaginationContext.d.ts +6 -0
- package/dist/v2/Pagination/components.d.ts +16 -0
- package/dist/v2/Pagination/index.d.ts +2 -0
- package/dist/v2/SimpleMenu/Menu.d.ts +56 -0
- package/dist/v2/SimpleMenu/SimpleMenu.d.ts +62 -0
- package/dist/v2/SimpleMenu/__tests__/Menu.spec.d.ts +1 -0
- package/dist/v2/SimpleMenu/__tests__/SimpleMenu.spec.d.ts +1 -0
- package/dist/v2/SimpleMenu/index.d.ts +1 -0
- package/dist/v2/SubNav/SubNav.d.ts +6 -0
- package/dist/v2/SubNav/SubNavHeader.d.ts +13 -0
- package/dist/v2/SubNav/SubNavLink.d.ts +9 -0
- package/dist/v2/SubNav/SubNavLinkSection.d.ts +7 -0
- package/dist/v2/SubNav/SubNavSection.d.ts +9 -0
- package/dist/v2/SubNav/SubNavSectionLabel.d.ts +9 -0
- package/dist/v2/SubNav/SubNavSections.d.ts +8 -0
- package/dist/v2/SubNav/index.d.ts +6 -0
- package/dist/v2/index.d.ts +7 -0
- package/package.json +4 -4
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as Menu from './Menu';
|
|
2
|
+
interface SimpleMenuProps extends Omit<Menu.TriggerProps, 'children'>, Pick<Menu.ContentProps, 'popoverPlacement' | 'intersectionId'> {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
onOpen?: () => void;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
/**
|
|
8
|
+
* Callback function to be called when the popover reaches the end of the scrollable content
|
|
9
|
+
*/
|
|
10
|
+
onReachEnd?: (entry: IntersectionObserverEntry) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const SimpleMenu: ({ children, onOpen, onClose, popoverPlacement, onReachEnd, ...props }: SimpleMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const MenuItem: ({ onSelect, disabled, ...props }: Menu.ItemProps<import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & Pick<import("styled-components").CSSProperties, "cursor" | "display" | "overflow" | "pointerEvents" | "transform" | "position" | "textAlign" | "textTransform" | "zIndex" | "animation" | "transition"> & {
|
|
14
|
+
_hover?: ((theme: import("styled-components").DefaultTheme) => string) | undefined;
|
|
15
|
+
background?: import("../../types").DefaultThemeOrCSSProp<"colors", "background">;
|
|
16
|
+
basis?: import("csstype").Property.FlexBasis<string | number> | undefined;
|
|
17
|
+
borderColor?: keyof import("../../themes/colors").Colors | undefined;
|
|
18
|
+
color?: keyof import("../../themes/colors").Colors | undefined;
|
|
19
|
+
flex?: import("csstype").Property.Flex<string | number> | undefined;
|
|
20
|
+
fontSize?: import("../../types").DefaultThemeOrCSSProp<"fontSizes", "fontSize">;
|
|
21
|
+
grow?: import("csstype").Property.FlexGrow | undefined;
|
|
22
|
+
hasRadius?: boolean | undefined;
|
|
23
|
+
hiddenS?: boolean | undefined;
|
|
24
|
+
hiddenXS?: boolean | undefined;
|
|
25
|
+
padding?: import("../../helpers/handleResponsiveValues").ResponsiveValue<"padding">; /**
|
|
26
|
+
* We need to know when the select is open because only then will viewportRef
|
|
27
|
+
* not be null. Because it uses a portal that (sensibly) is not mounted 24/7.
|
|
28
|
+
*/
|
|
29
|
+
paddingBottom?: import("../../helpers/handleResponsiveValues").ResponsiveValue<"paddingBottom">;
|
|
30
|
+
paddingLeft?: import("../../helpers/handleResponsiveValues").ResponsiveValue<"paddingLeft">;
|
|
31
|
+
paddingRight?: import("../../helpers/handleResponsiveValues").ResponsiveValue<"paddingRight">;
|
|
32
|
+
paddingTop?: import("../../helpers/handleResponsiveValues").ResponsiveValue<"paddingTop">;
|
|
33
|
+
marginLeft?: import("../../helpers/handleResponsiveValues").ResponsiveValue<"marginLeft">;
|
|
34
|
+
marginBottom?: import("../../helpers/handleResponsiveValues").ResponsiveValue<"marginBottom">;
|
|
35
|
+
marginRight?: import("../../helpers/handleResponsiveValues").ResponsiveValue<"marginRight">;
|
|
36
|
+
marginTop?: import("../../helpers/handleResponsiveValues").ResponsiveValue<"marginTop">;
|
|
37
|
+
shadow?: keyof import("../../themes/colors").Shadows | undefined;
|
|
38
|
+
shrink?: import("csstype").Property.FlexShrink | undefined;
|
|
39
|
+
lineHeight?: import("../../types").DefaultThemeOrCSSProp<"lineHeights", "lineHeight">;
|
|
40
|
+
width?: import("../../types").DefaultThemeOrCSSProp<"spaces", "width">;
|
|
41
|
+
minWidth?: import("../../types").DefaultThemeOrCSSProp<"spaces", "minWidth">;
|
|
42
|
+
maxWidth?: import("../../types").DefaultThemeOrCSSProp<"spaces", "maxWidth">;
|
|
43
|
+
height?: import("../../types").DefaultThemeOrCSSProp<"spaces", "height">;
|
|
44
|
+
minHeight?: import("../../types").DefaultThemeOrCSSProp<"spaces", "minHeight">;
|
|
45
|
+
maxHeight?: import("../../types").DefaultThemeOrCSSProp<"spaces", "maxHeight">;
|
|
46
|
+
top?: import("../../types").DefaultThemeOrCSSProp<"spaces", "top">;
|
|
47
|
+
left?: import("../../types").DefaultThemeOrCSSProp<"spaces", "left">;
|
|
48
|
+
bottom?: import("../../types").DefaultThemeOrCSSProp<"spaces", "bottom">;
|
|
49
|
+
right?: import("../../types").DefaultThemeOrCSSProp<"spaces", "right">;
|
|
50
|
+
borderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
51
|
+
borderStyle?: import("csstype").Property.BorderStyle | undefined;
|
|
52
|
+
borderWidth?: import("csstype").Property.BorderWidth<string | number> | undefined;
|
|
53
|
+
children?: import("react").ReactNode;
|
|
54
|
+
as?: string | import("react").ComponentType<any> | undefined;
|
|
55
|
+
forwardedAs?: string | import("react").ComponentType<any> | undefined;
|
|
56
|
+
} & {
|
|
57
|
+
disabled?: boolean | undefined;
|
|
58
|
+
isExternal?: boolean | undefined;
|
|
59
|
+
} & import("react").RefAttributes<HTMLAnchorElement>>>) => import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
type MenuItemProps = Menu.ItemProps;
|
|
61
|
+
export { SimpleMenu, MenuItem, Menu };
|
|
62
|
+
export type { SimpleMenuProps, MenuItemProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SimpleMenu';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GridProps } from '../../Grid';
|
|
2
|
+
export declare const subNavWidth = "14.5rem";
|
|
3
|
+
export interface SubNavProps extends GridProps {
|
|
4
|
+
ariaLabel: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const SubNav: ({ ariaLabel, ...props }: SubNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SubNavHeaderProps {
|
|
3
|
+
as?: keyof JSX.IntrinsicElements;
|
|
4
|
+
id?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
7
|
+
onClear?: React.MouseEventHandler<HTMLInputElement>;
|
|
8
|
+
onSubmit?: React.FormEventHandler<HTMLInputElement>;
|
|
9
|
+
searchLabel?: string;
|
|
10
|
+
searchable?: boolean;
|
|
11
|
+
value?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const SubNavHeader: ({ as, label, searchLabel, searchable, onChange, value, onClear, onSubmit, id, }: SubNavHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SubNavLinkProps {
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
icon?: React.ReactElement;
|
|
6
|
+
isSubSectionChild?: boolean;
|
|
7
|
+
withBullet?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const SubNavLink: React.ForwardRefExoticComponent<SubNavLinkProps & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SubNavLinkSectionProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
id?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SubNavLinkSection: ({ label, children, id }: SubNavLinkSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SubNavSectionProps {
|
|
3
|
+
badgeLabel?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
collapsable?: boolean;
|
|
6
|
+
id?: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const SubNavSection: ({ collapsable, label, badgeLabel, children, id }: SubNavSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SubNavSectionLabelProps {
|
|
3
|
+
ariaControls?: string;
|
|
4
|
+
ariaExpanded?: boolean;
|
|
5
|
+
collapsable?: boolean;
|
|
6
|
+
label: string;
|
|
7
|
+
onClick: React.MouseEventHandler<HTMLButtonElement> & React.MouseEventHandler<HTMLDivElement>;
|
|
8
|
+
}
|
|
9
|
+
export declare const SubNavSectionLabel: ({ collapsable, label, onClick, ariaExpanded, ariaControls, }: SubNavSectionLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FlexProps } from '../../Flex';
|
|
3
|
+
export interface SubNavSectionsProps extends FlexProps<'ol'> {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
spacing?: number;
|
|
6
|
+
horizontal?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const SubNavSections: ({ children, spacing, horizontal, ...props }: SubNavSectionsProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/design-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0-typescript.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
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": "
|
|
36
|
+
"@strapi/ui-primitives": "1.19.0-typescript.0",
|
|
37
37
|
"@uiw/react-codemirror": "^4.21.25",
|
|
38
38
|
"aria-hidden": "^1.2.4",
|
|
39
39
|
"compute-scroll-into-view": "^3.1.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@playwright/test": "1.43.0",
|
|
45
|
-
"@strapi/icons": "
|
|
45
|
+
"@strapi/icons": "1.19.0-typescript.0",
|
|
46
46
|
"@types/react-router-dom": "^5.3.3",
|
|
47
47
|
"@types/styled-components": "^5.1.26",
|
|
48
48
|
"axe-playwright": "^2.0.1",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"styled-components": "^5.3.11"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@strapi/icons": "
|
|
54
|
+
"@strapi/icons": "1.19.0-typescript.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",
|