@strapi/design-system 1.18.0-typescript.0 → 1.18.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/AccordionToggle.js +6 -2
- package/dist/Accordion/AccordionToggle.mjs +6 -2
- package/dist/Dialog/Dialog.js +2 -2
- package/dist/Dialog/Dialog.mjs +2 -2
- package/dist/Select/SelectParts.js +1 -1
- package/dist/Select/SelectParts.mjs +1 -1
- package/package.json +7 -7
- 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 -13
- 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 -14
- 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 -69
- 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,10 +0,0 @@
|
|
|
1
|
-
import { FlexProps } from '../Flex';
|
|
2
|
-
export interface NavSectionsProps extends FlexProps {
|
|
3
|
-
horizontal?: boolean;
|
|
4
|
-
/**
|
|
5
|
-
* @preserve
|
|
6
|
-
* @deprecated Use gap instead;
|
|
7
|
-
*/
|
|
8
|
-
spacing?: FlexProps['gap'];
|
|
9
|
-
}
|
|
10
|
-
export declare const NavSections: ({ children, spacing, horizontal, ...props }: NavSectionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BoxProps } from '../Box';
|
|
3
|
-
export interface NavUserProps extends BoxProps {
|
|
4
|
-
initials: string;
|
|
5
|
-
src?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const NavUser: React.ForwardRefExoticComponent<NavUserProps & React.RefAttributes<HTMLButtonElement>>;
|
package/dist/MainNav/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from '../Box';
|
|
2
|
-
export interface ModalLayoutProps extends BoxProps {
|
|
3
|
-
labelledBy: string;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const ModalLayout: ({ onClose, labelledBy, ...props }: ModalLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FieldInputProps, FieldProps, FieldLabelProps } from '../Field';
|
|
3
|
-
export interface NumberInputProps extends Omit<FieldInputProps, 'id' | 'name' | 'onChange' | 'value'>, Pick<FieldProps, 'hint' | 'error' | 'id' | 'name'> {
|
|
4
|
-
label?: string;
|
|
5
|
-
labelAction?: FieldLabelProps['action'];
|
|
6
|
-
onValueChange: (value: number | undefined) => void;
|
|
7
|
-
locale?: string;
|
|
8
|
-
value?: number;
|
|
9
|
-
step?: number;
|
|
10
|
-
}
|
|
11
|
-
export declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './NumberInput';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface PaginationProps {
|
|
3
|
-
activePage: number;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
label?: string;
|
|
6
|
-
pageCount: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const Pagination: ({ children, label, activePage, pageCount }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { NavLinkProps } from 'react-router-dom';
|
|
3
|
-
import { BoxProps } from '../Box';
|
|
4
|
-
interface PaginationLinkProps extends NavLinkProps {
|
|
5
|
-
active: boolean;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
interface PaginationPageLinkProps extends PaginationLinkProps {
|
|
9
|
-
number: number;
|
|
10
|
-
}
|
|
11
|
-
interface DotsProps extends BoxProps {
|
|
12
|
-
}
|
|
13
|
-
export declare const PreviousLink: {
|
|
14
|
-
({ children, to, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
displayName: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const NextLink: {
|
|
18
|
-
({ children, to, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
displayName: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const PageLink: {
|
|
22
|
-
({ number, children, ...props }: PaginationPageLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
displayName: string;
|
|
24
|
-
};
|
|
25
|
-
export declare const Dots: ({ children, ...props }: DotsProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Placement } from '@floating-ui/react-dom';
|
|
3
|
-
import { BoxProps } from '../Box';
|
|
4
|
-
import { DismissibleLayerProps } from '../DismissibleLayer';
|
|
5
|
-
export declare const POPOVER_PLACEMENTS: readonly ["top", "top-start", "top-end", "right", "right-start", "right-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end"];
|
|
6
|
-
export interface ContentProps extends BoxProps<'div'>, Pick<DismissibleLayerProps, 'onEscapeKeyDown' | 'onPointerDownOutside' | 'onDismiss' | 'onFocusOutside'> {
|
|
7
|
-
source: React.MutableRefObject<HTMLElement>;
|
|
8
|
-
placement?: Placement;
|
|
9
|
-
fullWidth?: boolean;
|
|
10
|
-
centered?: boolean;
|
|
11
|
-
spacing?: number;
|
|
12
|
-
hideAria?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
export interface ScrollingProps extends BoxProps<'div'> {
|
|
16
|
-
intersectionId?: string;
|
|
17
|
-
onReachEnd?: (entry: IntersectionObserverEntry) => void;
|
|
18
|
-
}
|
|
19
|
-
export declare const Scrolling: ({ children, intersectionId, onReachEnd, ...props }: ScrollingProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export type PopoverProps = ScrollingProps & Pick<ContentProps, 'source' | 'spacing' | 'fullWidth' | 'placement' | 'centered' | 'onEscapeKeyDown' | 'onPointerDownOutside' | 'onDismiss'>;
|
|
21
|
-
export declare const Popover: ({ children, source, spacing, fullWidth, placement, centered, onEscapeKeyDown, onPointerDownOutside, onDismiss, ...restProps }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/Popover/index.d.ts
DELETED
package/dist/Portal/Portal.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BoxProps } from '../Box';
|
|
3
|
-
export interface PortalProps extends BoxProps<'div'> {
|
|
4
|
-
container?: HTMLElement | null;
|
|
5
|
-
}
|
|
6
|
-
export declare const Portal: React.ForwardRefExoticComponent<PortalProps & React.RefAttributes<HTMLDivElement>>;
|
package/dist/Portal/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Portal';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from '../Box';
|
|
2
|
-
type Enumerate<N extends number, Acc extends number[] = []> = Acc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;
|
|
3
|
-
type IntRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
|
|
4
|
-
export interface ProgressBarProps extends Omit<BoxProps, 'background' | 'hasRadius' | 'height' | 'position' | 'width'> {
|
|
5
|
-
max?: IntRange<0, 101>;
|
|
6
|
-
min?: IntRange<0, 101>;
|
|
7
|
-
size?: 'S' | 'M';
|
|
8
|
-
value?: IntRange<0, 101>;
|
|
9
|
-
}
|
|
10
|
-
export declare const ProgressBar: ({ min, max, value, children, size, ...props }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ProgressBar';
|
package/dist/Radio/Radio.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/Radio/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { BoxProps } from '../Box';
|
|
3
|
-
export interface RawTdProps extends BoxProps<'td'> {
|
|
4
|
-
'aria-colindex'?: number;
|
|
5
|
-
as?: 'td' | 'th';
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
coords?: {
|
|
8
|
-
col: number;
|
|
9
|
-
row: number;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export type RawThProps = Omit<RawTdProps, 'as'>;
|
|
13
|
-
export declare const RawTh: (props: RawThProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare const RawTd: ({ coords, as, ...props }: RawTdProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TableHTMLAttributes } from 'react';
|
|
2
|
-
export interface RawTableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
3
|
-
colCount: number;
|
|
4
|
-
initialCol?: number;
|
|
5
|
-
initialRow?: number;
|
|
6
|
-
jumpStep?: number;
|
|
7
|
-
rowCount: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const RawTable: ({ colCount, rowCount, jumpStep, initialCol, initialRow, ...props }: {
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
colCount: any;
|
|
12
|
-
rowCount: any;
|
|
13
|
-
jumpStep?: number | undefined;
|
|
14
|
-
initialCol?: number | undefined;
|
|
15
|
-
initialRow?: number | undefined;
|
|
16
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface RawTableContextValue {
|
|
2
|
-
rowIndex: number;
|
|
3
|
-
colIndex: number;
|
|
4
|
-
setTableValues: ({ rowIndex, colIndex }: {
|
|
5
|
-
rowIndex: number;
|
|
6
|
-
colIndex: number;
|
|
7
|
-
}) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const RawTableContext: import("react").Context<RawTableContextValue>;
|
|
10
|
-
export declare const useTable: () => RawTableContextValue;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { TableHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export interface RawTbodyProps extends TableHTMLAttributes<HTMLTableSectionElement> {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
}
|
|
5
|
-
export declare const RawTbody: ({ children, ...props }: RawTbodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { TableHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export interface RawTheadProps extends TableHTMLAttributes<HTMLTableSectionElement> {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
}
|
|
5
|
-
export declare const RawThead: ({ children, ...props }: RawTheadProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/RawTable/RawTr.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const focusFocusable: (node: any) => void;
|
package/dist/RawTable/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { MouseEventHandler } from 'react';
|
|
2
|
-
import { FieldInputProps, FieldProps } from '../Field';
|
|
3
|
-
export interface SearchbarProps extends Omit<FieldInputProps, 'id' | 'name'>, Pick<FieldProps, 'id' | 'name'> {
|
|
4
|
-
name: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
onClear: MouseEventHandler<any>;
|
|
7
|
-
clearLabel: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const Searchbar: React.ForwardRefExoticComponent<SearchbarProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as SelectParts from './SelectParts';
|
|
3
|
-
import { FieldLabelProps, FieldProps } from '../Field';
|
|
4
|
-
type MultiSelectPropsWithoutLabel = Omit<SelectParts.MultiSelectProps, 'value' | 'multi'> & Pick<SelectParts.ContentProps, 'onCloseAutoFocus'> & Pick<SelectParts.TriggerProps, 'clearLabel' | 'onClear' | 'size' | 'startIcon'> & Pick<SelectParts.ValueProps, 'placeholder'> & Pick<FieldProps, 'hint' | 'id' | 'error'> & {
|
|
5
|
-
/**
|
|
6
|
-
* @default (value) => value.join(',')
|
|
7
|
-
*/
|
|
8
|
-
customizeContent?(value?: string[]): string;
|
|
9
|
-
labelAction?: FieldLabelProps['action'];
|
|
10
|
-
onChange?: (value: string[]) => void;
|
|
11
|
-
onReachEnd?: (entry: IntersectionObserverEntry) => void;
|
|
12
|
-
/**
|
|
13
|
-
* @preserve
|
|
14
|
-
* @deprecated This prop is no longer required and will be removed in v2 of the DS.
|
|
15
|
-
* It has no effect on the component.
|
|
16
|
-
*/
|
|
17
|
-
selectButtonTitle?: string;
|
|
18
|
-
value?: string[] | null;
|
|
19
|
-
withTags?: boolean;
|
|
20
|
-
};
|
|
21
|
-
export type MultiSelectProps = (MultiSelectPropsWithoutLabel & {
|
|
22
|
-
label: string;
|
|
23
|
-
'aria-label'?: never;
|
|
24
|
-
}) | (MultiSelectPropsWithoutLabel & {
|
|
25
|
-
'aria-label': string;
|
|
26
|
-
label?: never;
|
|
27
|
-
});
|
|
28
|
-
export declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
-
export interface MultiSelectOptionProps extends Omit<SelectParts.ItemProps, 'value'> {
|
|
30
|
-
startIcon?: React.ReactNode;
|
|
31
|
-
value: string | number;
|
|
32
|
-
}
|
|
33
|
-
export declare const MultiSelectOption: React.ForwardRefExoticComponent<MultiSelectOptionProps & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
-
export interface MultiSelectGroupProps extends Pick<MultiSelectOptionProps, 'startIcon'> {
|
|
35
|
-
children: React.ReactNode;
|
|
36
|
-
label: string;
|
|
37
|
-
values?: string[];
|
|
38
|
-
}
|
|
39
|
-
export declare const MultiSelectGroup: React.ForwardRefExoticComponent<MultiSelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MultiSelectGroupProps, MultiSelectOptionProps, MultiSelectProps } from './MultiSelect';
|
|
2
|
-
interface MulitSelectNestedOption extends Omit<MultiSelectOptionProps, 'children' | 'value'> {
|
|
3
|
-
value: string | number;
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
interface MulitSelectNestedGroup extends Omit<MultiSelectGroupProps, 'children'> {
|
|
7
|
-
children: Array<MulitSelectNestedOption>;
|
|
8
|
-
}
|
|
9
|
-
export type MultiSelectNestedProps = MultiSelectProps & {
|
|
10
|
-
options: Array<MulitSelectNestedOption | MulitSelectNestedGroup>;
|
|
11
|
-
};
|
|
12
|
-
export declare const MultiSelectNested: ({ options, ...props }: MultiSelectNestedProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MultiSelectGroupProps } from './MultiSelect';
|
|
2
|
-
/**
|
|
3
|
-
* @preserve
|
|
4
|
-
* @deprecated This component is only fit for the MultiSelect component.
|
|
5
|
-
* Therefore, you should import the MultiSelectGroup component instead.
|
|
6
|
-
*/
|
|
7
|
-
declare const OptGroup: import("react").ForwardRefExoticComponent<MultiSelectGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export { OptGroup };
|
|
9
|
-
export type { MultiSelectGroupProps as OptGroupProps };
|
package/dist/Select/Option.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MultiSelectOptionProps } from './MultiSelect';
|
|
2
|
-
import { SingleSelectOptionProps } from './SingleSelect';
|
|
3
|
-
export type OptionProps = (SingleSelectOptionProps & {
|
|
4
|
-
multi?: never;
|
|
5
|
-
}) | (MultiSelectOptionProps & {
|
|
6
|
-
multi: true;
|
|
7
|
-
});
|
|
8
|
-
/**
|
|
9
|
-
* @preserve
|
|
10
|
-
* @deprecated You should import the specific type of option you want to render,
|
|
11
|
-
* e.g. `import { MultiSelectOption } from '@strapi/design-system';`
|
|
12
|
-
*/
|
|
13
|
-
export declare const Option: ({ multi, ...restProps }: OptionProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Select/Select.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { MultiSelectProps } from './MultiSelect';
|
|
2
|
-
import { SingleSelectProps } from './SingleSelect';
|
|
3
|
-
export type SelectProps = (SingleSelectProps & {
|
|
4
|
-
multi?: never;
|
|
5
|
-
withTags?: never;
|
|
6
|
-
}) | (MultiSelectProps & {
|
|
7
|
-
multi: true;
|
|
8
|
-
});
|
|
9
|
-
export declare const useSelectContext: () => {
|
|
10
|
-
multi: boolean;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* @preserve
|
|
14
|
-
* @deprecated You should import the specific type of select you want to render
|
|
15
|
-
*
|
|
16
|
-
* e.g. `import { MultiSelect } from '@strapi/design-system';`
|
|
17
|
-
*/
|
|
18
|
-
export declare const Select: (props: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare const DownState: {
|
|
3
|
-
readonly Keyboard: "down:keyboard";
|
|
4
|
-
readonly Mouse: "down:mouse";
|
|
5
|
-
};
|
|
6
|
-
declare const UpState: {
|
|
7
|
-
readonly Keyboard: "up:keyboard";
|
|
8
|
-
readonly Mouse: "up:mouse";
|
|
9
|
-
};
|
|
10
|
-
type AllStates = (typeof DownState)[keyof typeof DownState] | (typeof UpState)[keyof typeof UpState];
|
|
11
|
-
export interface SelectListProps {
|
|
12
|
-
labelledBy?: string;
|
|
13
|
-
multi?: boolean;
|
|
14
|
-
expanded: AllStates;
|
|
15
|
-
onEscape: () => void;
|
|
16
|
-
onSelectItem: (value: string | string[], group?: string) => void;
|
|
17
|
-
children: React.ReactNode;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @preserve
|
|
21
|
-
* @deprecated This component will be removed in the next major release.
|
|
22
|
-
* If you need a custom listbox I would recommend opening a new issue.
|
|
23
|
-
*/
|
|
24
|
-
export declare const SelectList: ({ labelledBy, onSelectItem, children, multi, onEscape, expanded, }: SelectListProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export {};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Select } from '@strapi/ui-primitives';
|
|
3
|
-
import { BoxProps } from '../Box';
|
|
4
|
-
import { TypographyProps } from '../Typography';
|
|
5
|
-
interface TriggerProps extends BoxProps<'div'> {
|
|
6
|
-
/**
|
|
7
|
-
* @default "Clear"
|
|
8
|
-
*/
|
|
9
|
-
clearLabel?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
hasError?: boolean;
|
|
12
|
-
onClear?: (e: React.MouseEvent<HTMLButtonElement | HTMLDivElement>) => void;
|
|
13
|
-
startIcon?: React.ReactElement;
|
|
14
|
-
/**
|
|
15
|
-
* @default "M"
|
|
16
|
-
*/
|
|
17
|
-
size?: 'S' | 'M';
|
|
18
|
-
}
|
|
19
|
-
interface ValueProps extends Omit<TypographyProps, 'children' | 'placeholder'>, Pick<Select.SelectValueProps, 'placeholder' | 'children'> {
|
|
20
|
-
asChild?: boolean;
|
|
21
|
-
}
|
|
22
|
-
interface ItemProps extends Select.SelectItemProps {
|
|
23
|
-
}
|
|
24
|
-
declare const Root: {
|
|
25
|
-
(props: Select.SelectProps & {
|
|
26
|
-
__scopeSelect?: import("@radix-ui/react-context").Scope;
|
|
27
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
displayName: string;
|
|
29
|
-
};
|
|
30
|
-
declare const Trigger: React.ForwardRefExoticComponent<TriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
-
declare const Value: React.ForwardRefExoticComponent<ValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
32
|
-
declare const Portal: {
|
|
33
|
-
(props: Select.SelectPortalProps & {
|
|
34
|
-
__scopeSelect?: import("@radix-ui/react-context").Scope;
|
|
35
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
displayName: string;
|
|
37
|
-
};
|
|
38
|
-
declare const Content: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Select.SelectContentImplProps & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
39
|
-
declare const Viewport: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
40
|
-
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
41
|
-
} & {
|
|
42
|
-
asChild?: boolean | undefined;
|
|
43
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
44
|
-
declare const Item: React.ForwardRefExoticComponent<ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
45
|
-
declare const ItemIndicator: React.ForwardRefExoticComponent<Select.SelectItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
46
|
-
declare const ItemText: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
47
|
-
ref?: React.RefObject<HTMLSpanElement> | ((instance: HTMLSpanElement | null) => void) | null | undefined;
|
|
48
|
-
} & {
|
|
49
|
-
asChild?: boolean | undefined;
|
|
50
|
-
}, "key" | keyof React.HTMLAttributes<HTMLSpanElement> | "asChild"> & React.RefAttributes<HTMLSpanElement>>;
|
|
51
|
-
declare const Group: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
52
|
-
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
53
|
-
} & {
|
|
54
|
-
asChild?: boolean | undefined;
|
|
55
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
-
type SelectProps = Select.SelectProps;
|
|
57
|
-
type SingleSelectProps = Select.SingleSelectProps;
|
|
58
|
-
type MultiSelectProps = Select.MultiSelectProps;
|
|
59
|
-
type PortalProps = Select.SelectPortalProps;
|
|
60
|
-
type ContentProps = Select.SelectContentProps;
|
|
61
|
-
type ViewportProps = Select.SelectViewportProps;
|
|
62
|
-
type ItemIndicatorProps = Select.SelectItemIndicatorProps;
|
|
63
|
-
type ItemTextProps = Select.SelectItemTextProps;
|
|
64
|
-
type GroupProps = Select.SelectGroupProps;
|
|
65
|
-
type ValueRenderFn = Select.SelectValueRenderFn;
|
|
66
|
-
export { Root, Trigger, Value, Portal, Content, Viewport, Item, ItemIndicator, ItemText, Group };
|
|
67
|
-
export type { SingleSelectProps, MultiSelectProps, SelectProps, TriggerProps, ValueProps, ValueRenderFn, PortalProps, ContentProps, ViewportProps, ItemProps, ItemIndicatorProps, ItemTextProps, GroupProps, };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as SelectParts from './SelectParts';
|
|
3
|
-
import { FieldLabelProps, FieldProps } from '../Field';
|
|
4
|
-
type SingleSelectPropsWithoutLabel = Omit<SelectParts.SingleSelectProps, 'value'> & Pick<SelectParts.ContentProps, 'onCloseAutoFocus'> & Pick<SelectParts.TriggerProps, 'clearLabel' | 'onClear' | 'size' | 'startIcon'> & Pick<SelectParts.ValueProps, 'placeholder'> & Pick<FieldProps, 'error' | 'hint' | 'id'> & {
|
|
5
|
-
/**
|
|
6
|
-
* @default (value) => value.toString()
|
|
7
|
-
*/
|
|
8
|
-
customizeContent?(value?: string | number): string;
|
|
9
|
-
labelAction?: FieldLabelProps['action'];
|
|
10
|
-
onChange?: (value: string | number) => void;
|
|
11
|
-
onReachEnd?: (entry: IntersectionObserverEntry) => void;
|
|
12
|
-
/**
|
|
13
|
-
* @preserve
|
|
14
|
-
* @deprecated This prop is no longer required and will be removed in v2 of the DS.
|
|
15
|
-
* It has no effect on the component.
|
|
16
|
-
*/
|
|
17
|
-
selectButtonTitle?: string;
|
|
18
|
-
value?: string | number | null;
|
|
19
|
-
};
|
|
20
|
-
export type SingleSelectProps = (SingleSelectPropsWithoutLabel & {
|
|
21
|
-
label: string;
|
|
22
|
-
'aria-label'?: never;
|
|
23
|
-
}) | (SingleSelectPropsWithoutLabel & {
|
|
24
|
-
'aria-label': string;
|
|
25
|
-
label?: never;
|
|
26
|
-
});
|
|
27
|
-
export type SingleSelectElement = SingleSelectInputElement;
|
|
28
|
-
export declare const SingleSelect: React.ForwardRefExoticComponent<SingleSelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
-
export interface SingleSelectInputProps extends Omit<SingleSelectPropsWithoutLabel, 'labelAction' | 'hint' | 'id'> {
|
|
30
|
-
'aria-label'?: string;
|
|
31
|
-
id?: string;
|
|
32
|
-
label?: string;
|
|
33
|
-
}
|
|
34
|
-
export type SingleSelectInputElement = HTMLDivElement;
|
|
35
|
-
export declare const SingleSelectInput: React.ForwardRefExoticComponent<SingleSelectInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
-
export interface SingleSelectOptionProps extends Omit<SelectParts.ItemProps, 'value'> {
|
|
37
|
-
startIcon?: React.ReactNode;
|
|
38
|
-
value: string | number;
|
|
39
|
-
}
|
|
40
|
-
export declare const SingleSelectOption: React.ForwardRefExoticComponent<SingleSelectOptionProps & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/Select/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export { MultiSelectNested } from './MultiSelectNested';
|
|
2
|
-
export type { MultiSelectNestedProps } from './MultiSelectNested';
|
|
3
|
-
export { MultiSelect, MultiSelectGroup, MultiSelectOption } from './MultiSelect';
|
|
4
|
-
export type { MultiSelectProps, MultiSelectGroupProps, MultiSelectOptionProps } from './MultiSelect';
|
|
5
|
-
export { SingleSelect, SingleSelectOption } from './SingleSelect';
|
|
6
|
-
export type { SingleSelectProps, SingleSelectOptionProps } from './SingleSelect';
|
|
7
|
-
/**
|
|
8
|
-
* These are deprecated
|
|
9
|
-
*/
|
|
10
|
-
export { Select } from './Select';
|
|
11
|
-
export type { SelectProps } from './Select';
|
|
12
|
-
export { Option } from './Option';
|
|
13
|
-
export type { OptionProps } from './Option';
|
|
14
|
-
export { OptGroup } from './OptGroup';
|
|
15
|
-
export type { OptGroupProps } from './OptGroup';
|
|
16
|
-
export { SelectList } from './SelectList';
|
|
17
|
-
export type { SelectListProps } from './SelectList';
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Placement } from '@floating-ui/react-dom';
|
|
3
|
-
import { NavLinkProps } from 'react-router-dom';
|
|
4
|
-
export interface MenuItemProps extends Omit<NavLinkProps, 'to'> {
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
href?: string;
|
|
8
|
-
isFocused?: boolean;
|
|
9
|
-
onClick?: () => void;
|
|
10
|
-
to?: string;
|
|
11
|
-
isExternal?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const MenuItem: ({ children, onClick, to, isFocused, href, ...props }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export type SimpleMenuProps<As extends React.ElementType = React.ElementType> = Omit<React.ComponentPropsWithoutRef<As>, 'as' | 'children' | 'id' | 'label' | 'onClose' | 'onOpen' | 'onReachEnd' | 'popoverPlacement' | 'size'> & {
|
|
15
|
-
as?: As;
|
|
16
|
-
children: React.ReactNode;
|
|
17
|
-
id?: string;
|
|
18
|
-
label: React.ReactElement | string | number;
|
|
19
|
-
onClose?: () => void;
|
|
20
|
-
onOpen?: () => void;
|
|
21
|
-
/**
|
|
22
|
-
* Callback function to be called when the popover reaches the end of the scrollable content
|
|
23
|
-
*/
|
|
24
|
-
onReachEnd?: () => void;
|
|
25
|
-
popoverPlacement?: Placement;
|
|
26
|
-
/**
|
|
27
|
-
* Size of the trigger button.
|
|
28
|
-
* Note: in case a custom component is passed through the "as"
|
|
29
|
-
* prop, the size prop is passed along too, but needs to be handled there
|
|
30
|
-
*/
|
|
31
|
-
size?: 'S' | 'M';
|
|
32
|
-
};
|
|
33
|
-
export declare const SimpleMenu: <As extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = React.ForwardRefExoticComponent<import("src/Button/Button").ButtonProps & React.RefAttributes<HTMLButtonElement>>>({ label, children, id, as: asComp, onOpen, onClose, size, popoverPlacement, onReachEnd, ...props }: SimpleMenuProps<As>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SimpleMenu';
|