@strapi/design-system 1.16.0 → 1.17.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 +13 -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 +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Button';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DefaultTheme } from 'styled-components';
|
|
2
|
+
import { Variant } from './constants';
|
|
3
|
+
export declare const getVariantColorName: (variant: Variant) => 'success' | 'danger' | 'neutral' | 'primary';
|
|
4
|
+
export declare const getDisabledStyle: ({ theme }: {
|
|
5
|
+
theme: DefaultTheme;
|
|
6
|
+
}) => string;
|
|
7
|
+
export declare const getHoverStyle: ({ theme, variant }: {
|
|
8
|
+
theme: DefaultTheme;
|
|
9
|
+
variant: Variant;
|
|
10
|
+
}) => string;
|
|
11
|
+
export declare const getActiveStyle: ({ theme, variant }: {
|
|
12
|
+
theme: DefaultTheme;
|
|
13
|
+
variant: Variant;
|
|
14
|
+
}) => string;
|
|
15
|
+
export declare const getVariantStyle: ({ theme, variant }: {
|
|
16
|
+
theme: DefaultTheme;
|
|
17
|
+
variant: Variant;
|
|
18
|
+
}) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StackProps } from '../Stack';
|
|
2
|
+
export type CardActionPosition = 'end' | 'start';
|
|
3
|
+
export declare const CardAction: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<StackProps & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
4
|
+
horizontal: true;
|
|
5
|
+
spacing: 2;
|
|
6
|
+
} & {
|
|
7
|
+
position: StackProps['position'] | CardActionPosition;
|
|
8
|
+
}, "spacing" | "horizontal">;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type CardAssetSizes = 'S' | 'M';
|
|
3
|
+
export interface CardAssetProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
4
|
+
size?: CardAssetSizes;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const CardAsset: ({ size, children, ...props }: CardAssetProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
export interface CardContentProps extends BoxProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const CardContent: ({ children, ...props }: CardContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
export interface CardTimerProps extends BoxProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const CardTimer: ({ children, ...props }: CardTimerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TypographyProps } from '../Typography';
|
|
2
|
+
export type CardTitleProps = TypographyProps;
|
|
3
|
+
export declare const CardTitle: (props: CardTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export type CardSubtitleProps = Omit<TypographyProps, 'textColor' | 'as'>;
|
|
5
|
+
export declare const CardSubtitle: (props: CardSubtitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './Card';
|
|
2
|
+
export * from './CardAction';
|
|
3
|
+
export * from './CardAsset';
|
|
4
|
+
export * from './CardBadge';
|
|
5
|
+
export * from './CardBody';
|
|
6
|
+
export * from './CardCheckbox';
|
|
7
|
+
export * from './CardContent';
|
|
8
|
+
export * from './CardHeader';
|
|
9
|
+
export * from './CardTimer';
|
|
10
|
+
export * from './CardTitle';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
export interface CarouselProps extends BoxProps {
|
|
4
|
+
actions?: React.ReactNode;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
label: string;
|
|
7
|
+
nextLabel: string;
|
|
8
|
+
onNext: () => void;
|
|
9
|
+
onPrevious: () => void;
|
|
10
|
+
previousLabel: string;
|
|
11
|
+
secondaryLabel?: string;
|
|
12
|
+
selectedSlide: number;
|
|
13
|
+
}
|
|
14
|
+
export type CarouselElement = HTMLDivElement;
|
|
15
|
+
export declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FlexProps } from '../Flex';
|
|
2
|
+
export interface CarouselActionsProps extends FlexProps {
|
|
3
|
+
horizontal?: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* @preserve
|
|
6
|
+
* @deprecated use `gap` instead
|
|
7
|
+
*/
|
|
8
|
+
spacing?: FlexProps['gap'];
|
|
9
|
+
}
|
|
10
|
+
export declare const CarouselActions: ({ horizontal, spacing, ...props }: CarouselActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CarouselProps } from './Carousel';
|
|
2
|
+
import { FieldProps, FieldLabelProps } from '../Field';
|
|
3
|
+
export interface CarouselInputProps extends CarouselProps, Pick<FieldProps, 'hint' | 'error' | 'required'> {
|
|
4
|
+
actions?: React.ReactNode;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
labelAction?: FieldLabelProps['action'];
|
|
7
|
+
}
|
|
8
|
+
export declare const CarouselInput: import("react").ForwardRefExoticComponent<CarouselInputProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FlexProps } from '../Flex';
|
|
2
|
+
export interface CarouselSlideProps extends FlexProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
label: string;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const CarouselSlide: ({ label, children, selected, ...props }: CarouselSlideProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseCheckboxProps } from '../BaseCheckbox';
|
|
3
|
+
import { FieldProps } from '../Field';
|
|
4
|
+
interface CheckboxProps extends BaseCheckboxProps, Pick<FieldProps, 'hint' | 'error'> {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Checkbox';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@strapi/ui-primitives';
|
|
3
|
+
import { FieldLabelProps, FieldProps } from '../Field';
|
|
4
|
+
export interface ComboboxInputProps extends Pick<ComboboxPrimitive.RootProps, 'allowCustomValue' | 'value' | 'autocomplete' | 'textValue' | 'disabled' | 'defaultTextValue' | 'required' | 'disabled' | 'isPrintableCharacter'>, Pick<FieldProps, 'error' | 'id'>, Omit<ComboboxPrimitive.TextInputProps, 'required' | 'disabled' | 'value' | 'onChange' | 'size'> {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
clearLabel?: string;
|
|
8
|
+
creatable?: boolean;
|
|
9
|
+
createMessage?: (inputValue: string) => string;
|
|
10
|
+
defaultFilterValue?: string;
|
|
11
|
+
defaultTextValue?: string;
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
open?: boolean;
|
|
14
|
+
filterValue?: string;
|
|
15
|
+
hasMoreItems?: boolean;
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
loadingMessage?: string;
|
|
18
|
+
noOptionsMessage?: (inputValue: string) => string;
|
|
19
|
+
onChange?: (value?: string) => void;
|
|
20
|
+
onClear?: (event: React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLDivElement>) => void;
|
|
21
|
+
onCreateOption?: (inputValue: string) => void;
|
|
22
|
+
onFilterValueChange?: (filterValue?: string) => void;
|
|
23
|
+
onInputChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
24
|
+
onLoadMore?: (entry: IntersectionObserverEntry) => void;
|
|
25
|
+
onOpenChange?: (open?: boolean) => void;
|
|
26
|
+
onTextValueChange?: (textValue?: string) => void;
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
size?: 'S' | 'M';
|
|
29
|
+
startIcon?: React.ReactNode;
|
|
30
|
+
}
|
|
31
|
+
export type ComboboxInputElement = HTMLInputElement;
|
|
32
|
+
export declare const ComboboxInput: React.ForwardRefExoticComponent<ComboboxInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
33
|
+
interface ComboboxPropsWithoutLabel extends ComboboxInputProps, Pick<FieldProps, 'hint'> {
|
|
34
|
+
labelAction?: FieldLabelProps['action'];
|
|
35
|
+
}
|
|
36
|
+
export type ComboboxProps = (ComboboxPropsWithoutLabel & {
|
|
37
|
+
label: string;
|
|
38
|
+
'aria-label'?: never;
|
|
39
|
+
}) | (ComboboxPropsWithoutLabel & {
|
|
40
|
+
label?: never;
|
|
41
|
+
'aria-label': string;
|
|
42
|
+
});
|
|
43
|
+
export declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
44
|
+
type CreatableComboboxPropsWithoutLabel = Omit<ComboboxPropsWithoutLabel, 'onCreateOption'> & Required<Pick<ComboboxPropsWithoutLabel, 'onCreateOption'>>;
|
|
45
|
+
export type CreatableComboboxProps = (CreatableComboboxPropsWithoutLabel & {
|
|
46
|
+
label: string;
|
|
47
|
+
'aria-label'?: never;
|
|
48
|
+
}) | (CreatableComboboxPropsWithoutLabel & {
|
|
49
|
+
label?: never;
|
|
50
|
+
'aria-label': string;
|
|
51
|
+
});
|
|
52
|
+
export declare const CreatableCombobox: (props: CreatableComboboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export interface ComboboxOptionProps extends ComboboxPrimitive.ItemProps {
|
|
54
|
+
children: React.ReactNode;
|
|
55
|
+
}
|
|
56
|
+
export declare const Option: React.ForwardRefExoticComponent<ComboboxOptionProps & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
+
export declare const OptionBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
58
|
+
$hasHover?: boolean | undefined;
|
|
59
|
+
}, never>;
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface ComboboxListProps {
|
|
2
|
+
options: unknown[];
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* @preserve
|
|
6
|
+
* @deprecated
|
|
7
|
+
* This component was deprecated in 1.6.2. It will be removed in the next major release 2.0.0.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ComboboxList: ({ options }: ComboboxListProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CalendarDate } from '@internationalized/date';
|
|
3
|
+
import { FieldProps } from '../Field';
|
|
4
|
+
import { FlexProps } from '../Flex';
|
|
5
|
+
interface DatePickerContextValue {
|
|
6
|
+
calendarDate: CalendarDate;
|
|
7
|
+
content: DatePickerContentElement | null;
|
|
8
|
+
contentId: string;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
locale: string;
|
|
11
|
+
minDate: CalendarDate;
|
|
12
|
+
maxDate: CalendarDate;
|
|
13
|
+
open: boolean;
|
|
14
|
+
onCalendarDateChange: (date: CalendarDate) => void;
|
|
15
|
+
onContentChange: (content: DatePickerContentElement | null) => void;
|
|
16
|
+
onOpenChange: (isOpen: boolean) => void;
|
|
17
|
+
onTextInputChange: (textInput: DatePickerTextInputElement | null) => void;
|
|
18
|
+
onTextValueChange: (textValue: string) => void;
|
|
19
|
+
onTriggerChange: (trigger: DatePickerTriggerElement | null) => void;
|
|
20
|
+
onValueChange: (value: CalendarDate | undefined) => void;
|
|
21
|
+
required: boolean;
|
|
22
|
+
textInput: DatePickerTextInputElement | null;
|
|
23
|
+
textValue?: string;
|
|
24
|
+
timeZone: string;
|
|
25
|
+
trigger: DatePickerTriggerElement | null;
|
|
26
|
+
value?: CalendarDate;
|
|
27
|
+
}
|
|
28
|
+
interface DatePickerInputProps extends Pick<FieldProps, 'required' | 'id' | 'error'>, Pick<Partial<DatePickerContextValue>, 'disabled' | 'locale'>, Pick<TextInputProps, 'placeholder'>, Pick<CalendarProps, 'monthSelectLabel' | 'yearSelectLabel'>, Pick<TriggerProps, 'size'>, Omit<TextInputProps, 'size' | 'onChange' | 'value' | 'id' | 'ref'> {
|
|
29
|
+
calendarLabel?: string;
|
|
30
|
+
className?: string;
|
|
31
|
+
minDate?: Date;
|
|
32
|
+
maxDate?: Date;
|
|
33
|
+
/**
|
|
34
|
+
* @default Now
|
|
35
|
+
*/
|
|
36
|
+
initialDate?: Date | string;
|
|
37
|
+
/**
|
|
38
|
+
* onChange function, passed from a parent component, it takes the actual date value and it is used inside the different handlers related to the change event for the DatePicker and the TimePicker and also the clear event for the TimePicker
|
|
39
|
+
*/
|
|
40
|
+
onChange?: (date: Date | undefined) => void;
|
|
41
|
+
selectedDate?: Date | string;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated This is no longer used.
|
|
44
|
+
*/
|
|
45
|
+
ariaLabel?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @preserve
|
|
48
|
+
* @deprecated This is no longer used.
|
|
49
|
+
*/
|
|
50
|
+
selectedDateLabel?: (date: string) => string;
|
|
51
|
+
onClear?: (e: React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLDivElement>) => void;
|
|
52
|
+
clearLabel?: string;
|
|
53
|
+
}
|
|
54
|
+
declare const DatePickerInput: React.ForwardRefExoticComponent<DatePickerInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
55
|
+
type DatePickerTriggerElement = HTMLDivElement;
|
|
56
|
+
interface TriggerProps extends FlexProps {
|
|
57
|
+
hasError?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* @default "M"
|
|
60
|
+
*/
|
|
61
|
+
size?: 'S' | 'M';
|
|
62
|
+
}
|
|
63
|
+
type DatePickerTextInputElement = HTMLInputElement;
|
|
64
|
+
interface TextInputProps extends React.ComponentPropsWithRef<'input'> {
|
|
65
|
+
}
|
|
66
|
+
type DatePickerContentElement = DatePickerContentImplElement;
|
|
67
|
+
type DatePickerContentImplElement = HTMLDivElement;
|
|
68
|
+
interface CalendarProps extends FlexProps<'div'> {
|
|
69
|
+
monthSelectLabel?: string;
|
|
70
|
+
yearSelectLabel?: string;
|
|
71
|
+
}
|
|
72
|
+
interface DatePickerProps extends Pick<FieldProps, 'hint'>, DatePickerInputProps {
|
|
73
|
+
label: string;
|
|
74
|
+
}
|
|
75
|
+
declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLInputElement>>;
|
|
76
|
+
type DatePickerElement = DatePickerTextInputElement;
|
|
77
|
+
export { DatePicker, DatePickerInput };
|
|
78
|
+
export type { DatePickerProps, DatePickerInputProps, DatePickerElement };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CalendarDateTime } from '@internationalized/date';
|
|
3
|
+
import { DatePickerInputProps } from '../DatePicker/DatePicker';
|
|
4
|
+
import { FieldProps, FieldLabelProps } from '../Field';
|
|
5
|
+
import { TimePickerProps } from '../TimePicker';
|
|
6
|
+
export interface DateTimePickerProps extends Omit<DatePickerInputProps, 'step' | 'onChange' | 'error' | 'selectedDate'>, Pick<TimePickerProps, 'step' | 'selectButtonTitle'>, Pick<FieldProps, 'name' | 'hint' | 'error'> {
|
|
7
|
+
/**
|
|
8
|
+
* Label for the DatePicker field
|
|
9
|
+
* @default "Date"
|
|
10
|
+
*/
|
|
11
|
+
dateLabel?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Label for the TimePicker field
|
|
14
|
+
* @default "Time"
|
|
15
|
+
*/
|
|
16
|
+
timeLabel?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Label used to describe the DateTimePicker fieldset
|
|
19
|
+
*/
|
|
20
|
+
label: string;
|
|
21
|
+
/**
|
|
22
|
+
* Label Action
|
|
23
|
+
*/
|
|
24
|
+
labelAction?: FieldLabelProps['action'];
|
|
25
|
+
onChange?: (date: Date | undefined) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Value. The Date passed as value
|
|
28
|
+
*/
|
|
29
|
+
value?: Date | null;
|
|
30
|
+
}
|
|
31
|
+
export declare const DateTimePicker: React.ForwardRefExoticComponent<DateTimePickerProps & React.RefAttributes<HTMLInputElement>>;
|
|
32
|
+
export declare const convertUTCDateToCalendarDateTime: (date: Date | string, resetTime?: boolean) => CalendarDateTime;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DateTimePicker';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ThemeProviderProps } from './ThemeProvider';
|
|
2
|
+
interface DesignSystemContextValue {
|
|
3
|
+
locale: string;
|
|
4
|
+
}
|
|
5
|
+
declare const useDesignSystem: (consumerName: string) => DesignSystemContextValue;
|
|
6
|
+
interface DesignSystemProviderProps extends ThemeProviderProps, Partial<DesignSystemContextValue> {
|
|
7
|
+
}
|
|
8
|
+
declare const DesignSystemProvider: ({ locale, ...restProps }: DesignSystemProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { useDesignSystem, DesignSystemProvider };
|
|
10
|
+
export type { DesignSystemProviderProps, DesignSystemContextValue };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BoxProps } from '../Box';
|
|
2
|
+
export interface DialogProps extends BoxProps {
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
title: string;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const Dialog: ({ onClose, title, as, isOpen, id, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as DismissibleLayerPrimitive from '@radix-ui/react-dismissable-layer';
|
|
2
|
+
export declare const DismissibleLayer: import("react").ForwardRefExoticComponent<DismissibleLayerPrimitive.DismissableLayerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type DismissibleLayerProps = DismissibleLayerPrimitive.DismissableLayerProps;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BoxProps } from '../Box';
|
|
2
|
+
export interface DividerProps extends Omit<BoxProps<'hr'>, 'as' | 'background'> {
|
|
3
|
+
/**
|
|
4
|
+
* @preserve
|
|
5
|
+
* @deprecated use `margin` style props instead
|
|
6
|
+
*/
|
|
7
|
+
unsetMargin?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const Divider: ({ unsetMargin, ...props }: DividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Divider';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FlexProps } from '../Flex';
|
|
2
|
+
export interface EmptyStateLayoutProps extends Pick<FlexProps, 'hasRadius' | 'shadow'> {
|
|
3
|
+
action?: React.ReactNode;
|
|
4
|
+
content: string;
|
|
5
|
+
icon: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const EmptyStateLayout: ({ icon, content, action, hasRadius, shadow, }: EmptyStateLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EmptyStateLayout';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Illo: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
export interface FieldProps extends BoxProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
error?: string | boolean;
|
|
6
|
+
hint?: ReactNode;
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
required?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Field: import("react").ForwardRefExoticComponent<FieldProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FlexProps } from '../Flex';
|
|
3
|
+
export interface FieldActionProps extends FlexProps<'button'> {
|
|
4
|
+
label: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const FieldAction: import("react").ForwardRefExoticComponent<FieldActionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface FieldContextValue {
|
|
3
|
+
error?: string | boolean;
|
|
4
|
+
hint?: ReactNode;
|
|
5
|
+
name?: string;
|
|
6
|
+
id: string;
|
|
7
|
+
required: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const FieldContext: import("react").Context<FieldContextValue>;
|
|
10
|
+
export declare const useField: () => FieldContextValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FieldError: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FieldHint: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ChangeEventHandler } from 'react';
|
|
2
|
+
import { DefaultTheme } from 'styled-components';
|
|
3
|
+
export interface FieldInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
4
|
+
endAction?: React.ReactNode;
|
|
5
|
+
startAction?: React.ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
size?: keyof DefaultTheme['sizes']['input'];
|
|
8
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
9
|
+
}
|
|
10
|
+
export declare const FieldInput: import("react").ForwardRefExoticComponent<FieldInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export declare const InputWrapper: import("styled-components").StyledComponent<"div", DefaultTheme, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & Pick<import("styled-components").CSSProperties, "cursor" | "display" | "pointerEvents" | "position" | "textAlign" | "textTransform" | "transform" | "zIndex" | "animation" | "overflow" | "transition"> & {
|
|
12
|
+
_hover?: ((theme: DefaultTheme) => string) | undefined;
|
|
13
|
+
background?: import("../types").DefaultThemeOrCSSProp<"colors", "background">;
|
|
14
|
+
basis?: import("csstype").Property.FlexBasis<string | number> | undefined;
|
|
15
|
+
borderColor?: keyof import("../themes/colors").Colors | undefined;
|
|
16
|
+
color?: keyof import("../themes/colors").Colors | undefined;
|
|
17
|
+
flex?: import("csstype").Property.Flex<string | number> | undefined;
|
|
18
|
+
fontSize?: import("../types").DefaultThemeOrCSSProp<"fontSizes", "fontSize">;
|
|
19
|
+
grow?: import("csstype").Property.FlexGrow | undefined;
|
|
20
|
+
hasRadius?: boolean | undefined;
|
|
21
|
+
hiddenS?: boolean | undefined;
|
|
22
|
+
hiddenXS?: boolean | undefined;
|
|
23
|
+
padding?: import("../helpers/handleResponsiveValues").ResponsiveValue<"padding">;
|
|
24
|
+
paddingBottom?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingBottom">;
|
|
25
|
+
paddingLeft?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingLeft">;
|
|
26
|
+
paddingRight?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingRight">;
|
|
27
|
+
paddingTop?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingTop">;
|
|
28
|
+
marginLeft?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginLeft">;
|
|
29
|
+
marginBottom?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginBottom">;
|
|
30
|
+
marginRight?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginRight">;
|
|
31
|
+
marginTop?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginTop">;
|
|
32
|
+
shadow?: keyof import("../themes/colors").Shadows | undefined;
|
|
33
|
+
shrink?: import("csstype").Property.FlexShrink | undefined;
|
|
34
|
+
lineHeight?: import("../types").DefaultThemeOrCSSProp<"lineHeights", "lineHeight">;
|
|
35
|
+
width?: import("../types").DefaultThemeOrCSSProp<"spaces", "width">;
|
|
36
|
+
minWidth?: import("../types").DefaultThemeOrCSSProp<"spaces", "minWidth">;
|
|
37
|
+
maxWidth?: import("../types").DefaultThemeOrCSSProp<"spaces", "maxWidth">;
|
|
38
|
+
height?: import("../types").DefaultThemeOrCSSProp<"spaces", "height">;
|
|
39
|
+
minHeight?: import("../types").DefaultThemeOrCSSProp<"spaces", "minHeight">;
|
|
40
|
+
maxHeight?: import("../types").DefaultThemeOrCSSProp<"spaces", "maxHeight">;
|
|
41
|
+
top?: import("../types").DefaultThemeOrCSSProp<"spaces", "top">;
|
|
42
|
+
left?: import("../types").DefaultThemeOrCSSProp<"spaces", "left">;
|
|
43
|
+
bottom?: import("../types").DefaultThemeOrCSSProp<"spaces", "bottom">;
|
|
44
|
+
right?: import("../types").DefaultThemeOrCSSProp<"spaces", "right">;
|
|
45
|
+
borderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
46
|
+
borderStyle?: import("csstype").Property.BorderStyle | undefined;
|
|
47
|
+
borderWidth?: import("csstype").Property.BorderWidth<string | number> | undefined;
|
|
48
|
+
children?: import("react").ReactNode;
|
|
49
|
+
as?: string | import("react").ComponentType<any> | undefined;
|
|
50
|
+
forwardedAs?: string | import("react").ComponentType<any> | undefined;
|
|
51
|
+
} & {
|
|
52
|
+
alignItems?: import("csstype").Property.AlignItems | undefined;
|
|
53
|
+
direction?: import("csstype").Property.FlexDirection | undefined;
|
|
54
|
+
gap?: any;
|
|
55
|
+
inline?: boolean | undefined;
|
|
56
|
+
justifyContent?: import("csstype").Property.JustifyContent | undefined;
|
|
57
|
+
wrap?: import("csstype").Property.FlexWrap | undefined;
|
|
58
|
+
} & {
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
hasError: boolean;
|
|
61
|
+
}, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TypographyProps } from '../Typography';
|
|
3
|
+
export interface FieldLabelProps extends TypographyProps<'label'> {
|
|
4
|
+
action?: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* @preserve
|
|
7
|
+
* @deprecated "required" should be given to Field component to share the value across components
|
|
8
|
+
*/
|
|
9
|
+
required?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const FieldLabel: import("react").ForwardRefExoticComponent<FieldLabelProps & import("react").RefAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CSSProperties } from 'styled-components';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
import { ResponsiveValue } from '../helpers/handleResponsiveValues';
|
|
4
|
+
export type FlexProps<TElement extends keyof JSX.IntrinsicElements = 'div'> = BoxProps<TElement> & {
|
|
5
|
+
alignItems?: CSSProperties['alignItems'];
|
|
6
|
+
direction?: CSSProperties['flexDirection'];
|
|
7
|
+
/**
|
|
8
|
+
* Supports responsive values
|
|
9
|
+
*/
|
|
10
|
+
gap?: ResponsiveValue;
|
|
11
|
+
inline?: boolean;
|
|
12
|
+
justifyContent?: CSSProperties['justifyContent'];
|
|
13
|
+
wrap?: CSSProperties['flexWrap'];
|
|
14
|
+
};
|
|
15
|
+
export declare const Flex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, FlexProps<"div">, never>;
|