@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 './Flex';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface FocusTrapProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A callback called on escape key. Useful to deactivate the focus trap.
|
|
5
|
+
*/
|
|
6
|
+
onEscape?: () => void;
|
|
7
|
+
/**
|
|
8
|
+
* A boolean value to define whether the focus should be restored or not.
|
|
9
|
+
*/
|
|
10
|
+
restoreFocus?: boolean;
|
|
11
|
+
skipAutoFocus?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const FocusTrap: ({ onEscape, restoreFocus, skipAutoFocus, ...props }: FocusTrapProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FocusTrap';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BoxProps } from '../Box';
|
|
2
|
+
import { ResponsiveValue } from '../helpers/handleResponsiveValues';
|
|
3
|
+
export interface GridProps extends BoxProps {
|
|
4
|
+
gridCols?: number;
|
|
5
|
+
gap?: ResponsiveValue;
|
|
6
|
+
}
|
|
7
|
+
export declare const Grid: (props: GridProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BoxProps } from '../Box';
|
|
2
|
+
export interface GridItemProps extends BoxProps {
|
|
3
|
+
col: number;
|
|
4
|
+
s?: number;
|
|
5
|
+
xs?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const GridItem: import("styled-components").StyledComponent<"div", import("styled-components").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"> & {
|
|
8
|
+
_hover?: ((theme: import("styled-components").DefaultTheme) => string) | undefined;
|
|
9
|
+
background?: import("../types").DefaultThemeOrCSSProp<"colors", "background">;
|
|
10
|
+
basis?: import("csstype").Property.FlexBasis<string | number> | undefined;
|
|
11
|
+
borderColor?: keyof import("../themes/colors").Colors | undefined;
|
|
12
|
+
color?: keyof import("../themes/colors").Colors | undefined;
|
|
13
|
+
flex?: import("csstype").Property.Flex<string | number> | undefined;
|
|
14
|
+
fontSize?: import("../types").DefaultThemeOrCSSProp<"fontSizes", "fontSize">;
|
|
15
|
+
grow?: import("csstype").Property.FlexGrow | undefined;
|
|
16
|
+
hasRadius?: boolean | undefined;
|
|
17
|
+
hiddenS?: boolean | undefined;
|
|
18
|
+
hiddenXS?: boolean | undefined;
|
|
19
|
+
padding?: import("../helpers/handleResponsiveValues").ResponsiveValue<"padding">;
|
|
20
|
+
paddingBottom?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingBottom">;
|
|
21
|
+
paddingLeft?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingLeft">;
|
|
22
|
+
paddingRight?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingRight">;
|
|
23
|
+
paddingTop?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingTop">;
|
|
24
|
+
marginLeft?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginLeft">;
|
|
25
|
+
marginBottom?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginBottom">;
|
|
26
|
+
marginRight?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginRight">;
|
|
27
|
+
marginTop?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginTop">;
|
|
28
|
+
shadow?: keyof import("../themes/colors").Shadows | undefined;
|
|
29
|
+
shrink?: import("csstype").Property.FlexShrink | undefined;
|
|
30
|
+
lineHeight?: import("../types").DefaultThemeOrCSSProp<"lineHeights", "lineHeight">;
|
|
31
|
+
width?: import("../types").DefaultThemeOrCSSProp<"spaces", "width">;
|
|
32
|
+
minWidth?: import("../types").DefaultThemeOrCSSProp<"spaces", "minWidth">;
|
|
33
|
+
maxWidth?: import("../types").DefaultThemeOrCSSProp<"spaces", "maxWidth">;
|
|
34
|
+
height?: import("../types").DefaultThemeOrCSSProp<"spaces", "height">;
|
|
35
|
+
minHeight?: import("../types").DefaultThemeOrCSSProp<"spaces", "minHeight">;
|
|
36
|
+
maxHeight?: import("../types").DefaultThemeOrCSSProp<"spaces", "maxHeight">;
|
|
37
|
+
top?: import("../types").DefaultThemeOrCSSProp<"spaces", "top">;
|
|
38
|
+
left?: import("../types").DefaultThemeOrCSSProp<"spaces", "left">;
|
|
39
|
+
bottom?: import("../types").DefaultThemeOrCSSProp<"spaces", "bottom">;
|
|
40
|
+
right?: import("../types").DefaultThemeOrCSSProp<"spaces", "right">;
|
|
41
|
+
borderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
42
|
+
borderStyle?: import("csstype").Property.BorderStyle | undefined;
|
|
43
|
+
borderWidth?: import("csstype").Property.BorderWidth<string | number> | undefined;
|
|
44
|
+
children?: import("react").ReactNode;
|
|
45
|
+
as?: string | import("react").ComponentType<any> | undefined;
|
|
46
|
+
forwardedAs?: string | import("react").ComponentType<any> | undefined;
|
|
47
|
+
} & GridItemProps, never>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DefaultTheme } from 'styled-components';
|
|
3
|
+
import { BoxProps } from '../Box';
|
|
4
|
+
export interface IconProps extends BoxProps {
|
|
5
|
+
colors?: (theme: DefaultTheme) => string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Icon';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseButtonProps } from '../BaseButton';
|
|
3
|
+
declare const SIZES: readonly ["S", "M", "L"];
|
|
4
|
+
declare const VARIANTS: readonly ["tertiary", "secondary"];
|
|
5
|
+
type IconButtonSizes = (typeof SIZES)[number];
|
|
6
|
+
type Variant = (typeof VARIANTS)[number];
|
|
7
|
+
interface SharedIconButtonProps extends BaseButtonProps {
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* @preserve
|
|
11
|
+
* @deprecated use `borderWidth={0}` instead
|
|
12
|
+
*/
|
|
13
|
+
noBorder?: boolean;
|
|
14
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
15
|
+
size?: IconButtonSizes;
|
|
16
|
+
variant?: Variant;
|
|
17
|
+
}
|
|
18
|
+
interface LabelOnlyProps extends SharedIconButtonProps {
|
|
19
|
+
label: string;
|
|
20
|
+
['aria-label']?: never;
|
|
21
|
+
}
|
|
22
|
+
interface AriaLabelOnlyProps extends SharedIconButtonProps {
|
|
23
|
+
label?: never;
|
|
24
|
+
['aria-label']: string;
|
|
25
|
+
}
|
|
26
|
+
interface IconOnlyProps {
|
|
27
|
+
icon: React.ReactNode;
|
|
28
|
+
children?: never;
|
|
29
|
+
}
|
|
30
|
+
interface ChildrenOnlyProps {
|
|
31
|
+
icon?: never;
|
|
32
|
+
children: React.ReactNode;
|
|
33
|
+
}
|
|
34
|
+
type ChildrenWithLabel = LabelOnlyProps & ChildrenOnlyProps;
|
|
35
|
+
type ChildrenWithAriaLabel = AriaLabelOnlyProps & ChildrenOnlyProps;
|
|
36
|
+
type IconWithLabel = LabelOnlyProps & IconOnlyProps;
|
|
37
|
+
type IconWithAriaLabel = AriaLabelOnlyProps & IconOnlyProps;
|
|
38
|
+
export type IconButtonProps = ChildrenWithLabel | ChildrenWithAriaLabel | IconWithLabel | IconWithAriaLabel;
|
|
39
|
+
export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
40
|
+
export declare const IconButtonGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Flex").FlexProps<"div">, never>;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './IconButton';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FieldLabelProps, FieldProps } from '../Field';
|
|
3
|
+
import { FlexProps } from '../Flex';
|
|
4
|
+
interface JSONInputProps extends Omit<FlexProps, 'onChange'>, Pick<FieldProps, 'hint' | 'error' | 'required'> {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
labelAction?: FieldLabelProps['action'];
|
|
9
|
+
onChange?: (value: string) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface JSONInputRef extends Partial<HTMLElement> {
|
|
12
|
+
focus(): void;
|
|
13
|
+
}
|
|
14
|
+
export declare const JSONInput: React.ForwardRefExoticComponent<JSONInputProps & React.RefAttributes<JSONInputRef>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './JSONInput';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StateField, Range } from '@codemirror/state';
|
|
2
|
+
import { Decoration } from '@codemirror/view';
|
|
3
|
+
declare const addMarks: import("@codemirror/state").StateEffectType<Range<Decoration>[]>;
|
|
4
|
+
declare const filterMarks: import("@codemirror/state").StateEffectType<(from: number, to: number, value: Decoration) => boolean>;
|
|
5
|
+
declare const lineHighlightMark: Decoration;
|
|
6
|
+
declare const markField: StateField<import("@codemirror/view").DecorationSet>;
|
|
7
|
+
export { addMarks, filterMarks, lineHighlightMark, markField };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BoxProps } from '../Box';
|
|
2
|
+
export interface KeyboardNavigableProps extends BoxProps {
|
|
3
|
+
tagName?: string;
|
|
4
|
+
attributeName?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const KeyboardNavigable: ({ tagName, attributeName, ...props }: KeyboardNavigableProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './KeyboardNavigable';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GridLayout: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TypographyProps } from '../Typography';
|
|
3
|
+
interface BaseHeaderLayoutProps extends TypographyProps {
|
|
4
|
+
navigationAction?: React.ReactNode;
|
|
5
|
+
primaryAction?: React.ReactNode;
|
|
6
|
+
secondaryAction?: React.ReactNode;
|
|
7
|
+
subtitle?: React.ReactNode;
|
|
8
|
+
sticky?: boolean;
|
|
9
|
+
width?: number;
|
|
10
|
+
}
|
|
11
|
+
interface HeaderLayoutProps extends BaseHeaderLayoutProps {
|
|
12
|
+
}
|
|
13
|
+
export declare const HeaderLayout: {
|
|
14
|
+
(props: HeaderLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const BaseHeaderLayout: React.ForwardRefExoticComponent<BaseHeaderLayoutProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { NavLinkProps } from 'react-router-dom';
|
|
3
|
+
interface SharedLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
startIcon?: React.ReactNode;
|
|
6
|
+
endIcon?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
interface ToLinkProps extends SharedLinkProps {
|
|
9
|
+
to: NavLinkProps['to'];
|
|
10
|
+
href?: never;
|
|
11
|
+
}
|
|
12
|
+
interface HrefLinkProps extends SharedLinkProps {
|
|
13
|
+
href: string;
|
|
14
|
+
to?: never;
|
|
15
|
+
}
|
|
16
|
+
type LinkProps = ToLinkProps | HrefLinkProps;
|
|
17
|
+
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
18
|
+
export { Link };
|
|
19
|
+
export type { LinkProps, SharedLinkProps, ToLinkProps, HrefLinkProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Link';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { NavLinkProps } from 'react-router-dom';
|
|
3
|
+
import { BaseButtonProps } from '../BaseButton';
|
|
4
|
+
import { VARIANTS, BUTTON_SIZES } from '../Button/constants';
|
|
5
|
+
interface SharedLinkButtonProps extends BaseButtonProps {
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
endIcon?: React.ReactNode;
|
|
8
|
+
size?: (typeof BUTTON_SIZES)[number];
|
|
9
|
+
startIcon?: React.ReactNode;
|
|
10
|
+
variant?: (typeof VARIANTS)[number];
|
|
11
|
+
}
|
|
12
|
+
interface ToLinkButtonProps extends SharedLinkButtonProps {
|
|
13
|
+
to: NavLinkProps['to'];
|
|
14
|
+
href?: never;
|
|
15
|
+
}
|
|
16
|
+
interface HrefLinkButtonProps extends SharedLinkButtonProps {
|
|
17
|
+
href: string;
|
|
18
|
+
to?: never;
|
|
19
|
+
}
|
|
20
|
+
type LinkButtonProps = ToLinkButtonProps | HrefLinkButtonProps;
|
|
21
|
+
declare const LinkButton: React.ForwardRefExoticComponent<LinkButtonProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
22
|
+
export { LinkButton };
|
|
23
|
+
export type { LinkButtonProps, SharedLinkButtonProps, ToLinkButtonProps, HrefLinkButtonProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LinkButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LiveRegions: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Loader';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface NavBrandProps {
|
|
3
|
+
icon?: React.ReactNode;
|
|
4
|
+
title: string;
|
|
5
|
+
to?: string;
|
|
6
|
+
workplace: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const NavBrand: ({ workplace, title, icon, to }: NavBrandProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LinkProps } from 'react-router-dom';
|
|
3
|
+
export interface NavLinkProps extends LinkProps {
|
|
4
|
+
badgeAriaLabel: string;
|
|
5
|
+
badgeContent: string | number;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
icon: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const NavLink: ({ children, icon, badgeContent, badgeAriaLabel, ...props }: NavLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FlexProps } from '../Flex';
|
|
2
|
+
export interface NavSectionProps extends FlexProps {
|
|
3
|
+
label: string;
|
|
4
|
+
horizontal?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* @preserve
|
|
7
|
+
* @deprecated Use gap instead;
|
|
8
|
+
*/
|
|
9
|
+
spacing?: FlexProps['gap'];
|
|
10
|
+
}
|
|
11
|
+
export declare const NavSection: ({ label, children, spacing, horizontal, ...props }: NavSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
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>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './NumberInput';
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,21 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
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>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Portal';
|
|
@@ -0,0 +1,11 @@
|
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ProgressBar';
|