@artsy/palette 40.3.0 → 40.4.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/LICENSE +21 -0
- package/dist/Theme.d.ts +83 -0
- package/dist/elements/AutocompleteInput/AutocompleteInput.d.ts +37 -0
- package/dist/elements/AutocompleteInput/AutocompleteInput.story.d.ts +9 -0
- package/dist/elements/AutocompleteInput/AutocompleteInputOption.d.ts +6 -0
- package/dist/elements/AutocompleteInput/AutocompleteInputOptionLabel.d.ts +6 -0
- package/dist/elements/AutocompleteInput/index.d.ts +3 -0
- package/dist/elements/Avatar/Avatar.d.ts +11 -0
- package/dist/elements/Avatar/Avatar.story.d.ts +8 -0
- package/dist/elements/Avatar/index.d.ts +1 -0
- package/dist/elements/Banner/Banner.d.ts +32 -0
- package/dist/elements/Banner/Banner.story.d.ts +6 -0
- package/dist/elements/Banner/index.d.ts +1 -0
- package/dist/elements/BaseTabs/BaseTab.d.ts +31 -0
- package/dist/elements/BaseTabs/BaseTabs.d.ts +13 -0
- package/dist/elements/BaseTabs/BaseTabs.story.d.ts +39 -0
- package/dist/elements/BaseTabs/index.d.ts +2 -0
- package/dist/elements/BaseTabs/tokens.d.ts +6 -0
- package/dist/elements/BorderBox/BorderBox.d.ts +11 -0
- package/dist/elements/BorderBox/BorderBoxBase.d.ts +12 -0
- package/dist/elements/BorderBox/index.d.ts +2 -0
- package/dist/elements/BorderedRadio/BorderedRadio.d.ts +5 -0
- package/dist/elements/BorderedRadio/BorderedRadio.story.d.ts +6 -0
- package/dist/elements/BorderedRadio/index.d.ts +1 -0
- package/dist/elements/Box/Box.d.ts +16 -0
- package/dist/elements/Box/Box.story.d.ts +6 -0
- package/dist/elements/Box/index.d.ts +1 -0
- package/dist/elements/Breadcrumbs/Breadcrumbs.d.ts +11 -0
- package/dist/elements/Breadcrumbs/Breadcrumbs.story.d.ts +6 -0
- package/dist/elements/Breadcrumbs/index.d.ts +1 -0
- package/dist/elements/Button/Button.d.ts +35 -0
- package/dist/elements/Button/Button.story.d.ts +29 -0
- package/dist/elements/Button/index.d.ts +4 -0
- package/dist/elements/Button/tokens.d.ts +22 -0
- package/dist/elements/Button/types.d.ts +11 -0
- package/dist/elements/CSSGrid/CSSGrid.d.ts +14 -0
- package/dist/elements/CSSGrid/CSSGrid.story.d.ts +17 -0
- package/dist/elements/CSSGrid/index.d.ts +1 -0
- package/dist/elements/Cards/Card.d.ts +16 -0
- package/dist/elements/Cards/Cards.story.d.ts +25 -0
- package/dist/elements/Cards/TriptychCard.d.ts +19 -0
- package/dist/elements/Cards/index.d.ts +2 -0
- package/dist/elements/Carousel/Carousel.d.ts +45 -0
- package/dist/elements/Carousel/Carousel.story.d.ts +93 -0
- package/dist/elements/Carousel/CarouselNavigation.d.ts +22 -0
- package/dist/elements/Carousel/index.d.ts +3 -0
- package/dist/elements/Carousel/paginate.d.ts +31 -0
- package/dist/elements/CarouselBar/CarouselBar.d.ts +4 -0
- package/dist/elements/CarouselBar/CarouselBar.story.d.ts +6 -0
- package/dist/elements/CarouselBar/index.d.ts +1 -0
- package/dist/elements/Checkbox/Check.d.ts +10 -0
- package/dist/elements/Checkbox/Check.story.d.ts +6 -0
- package/dist/elements/Checkbox/Checkbox.d.ts +18 -0
- package/dist/elements/Checkbox/Checkbox.story.d.ts +8 -0
- package/dist/elements/Checkbox/index.d.ts +1 -0
- package/dist/elements/Checkbox/tokens.d.ts +30 -0
- package/dist/elements/CleanTag/CleanTag.d.ts +44 -0
- package/dist/elements/CleanTag/index.d.ts +1 -0
- package/dist/elements/Clickable/Clickable.d.ts +14 -0
- package/dist/elements/Clickable/Clickable.story.d.ts +12 -0
- package/dist/elements/Clickable/index.d.ts +1 -0
- package/dist/elements/Collapse/Collapse.d.ts +19 -0
- package/dist/elements/Collapse/index.d.ts +1 -0
- package/dist/elements/Drawer/Drawer.d.ts +8 -0
- package/dist/elements/Drawer/Drawer.story.d.ts +10 -0
- package/dist/elements/Drawer/index.d.ts +1 -0
- package/dist/elements/Dropdown/Dropdown.d.ts +38 -0
- package/dist/elements/Dropdown/Dropdown.story.d.ts +31 -0
- package/dist/elements/Dropdown/index.d.ts +1 -0
- package/dist/elements/EntityHeader/EntityHeader.d.ts +23 -0
- package/dist/elements/EntityHeader/EntityHeader.story.d.ts +6 -0
- package/dist/elements/EntityHeader/index.d.ts +1 -0
- package/dist/elements/Expandable/Expandable.d.ts +17 -0
- package/dist/elements/Expandable/Expandable.story.d.ts +7 -0
- package/dist/elements/Expandable/index.d.ts +1 -0
- package/dist/elements/FilterSelect/Components/FilterInput.d.ts +4 -0
- package/dist/elements/FilterSelect/Components/FilterSelectContext.d.ts +36 -0
- package/dist/elements/FilterSelect/Components/FilterSelectResultItem.d.ts +3 -0
- package/dist/elements/FilterSelect/FilterSelect.d.ts +5 -0
- package/dist/elements/FilterSelect/FilterSelect.story.d.ts +6 -0
- package/dist/elements/FilterSelect/index.d.ts +2 -0
- package/dist/elements/Flex/Flex.d.ts +12 -0
- package/dist/elements/Flex/index.d.ts +1 -0
- package/dist/elements/FullBleed/FullBleed.d.ts +10 -0
- package/dist/elements/FullBleed/FullBleed.story.d.ts +6 -0
- package/dist/elements/FullBleed/index.d.ts +1 -0
- package/dist/elements/GridColumns/GridColumns.d.ts +26 -0
- package/dist/elements/GridColumns/GridColumns.story.d.ts +23 -0
- package/dist/elements/GridColumns/calculateGridColumn.d.ts +23 -0
- package/dist/elements/GridColumns/index.d.ts +2 -0
- package/dist/elements/HTML/HTML.d.ts +20 -0
- package/dist/elements/HTML/HTML.story.d.ts +17 -0
- package/dist/elements/HTML/index.d.ts +1 -0
- package/dist/elements/HorizontalOverflow/HorizontalOverflow.d.ts +8 -0
- package/dist/elements/HorizontalOverflow/HorizontalOverflow.story.d.ts +7 -0
- package/dist/elements/HorizontalOverflow/index.d.ts +1 -0
- package/dist/elements/Image/Image.d.ts +16 -0
- package/dist/elements/Image/Image.story.d.ts +35 -0
- package/dist/elements/Image/LazyImage.d.ts +15 -0
- package/dist/elements/Image/index.d.ts +1 -0
- package/dist/elements/Input/Input.d.ts +16 -0
- package/dist/elements/Input/Input.story.d.ts +10 -0
- package/dist/elements/Input/index.d.ts +1 -0
- package/dist/elements/Input/tokens.d.ts +2 -0
- package/dist/elements/Input/types.d.ts +1 -0
- package/dist/elements/Join/Join.d.ts +26 -0
- package/dist/elements/Join/Join.story.d.ts +24 -0
- package/dist/elements/Join/index.d.ts +1 -0
- package/dist/elements/Label/Label.d.ts +22 -0
- package/dist/elements/Label/Label.story.d.ts +7 -0
- package/dist/elements/Label/index.d.ts +1 -0
- package/dist/elements/LabeledInput/LabeledInput.d.ts +8 -0
- package/dist/elements/LabeledInput/LabeledInput.story.d.ts +8 -0
- package/dist/elements/LabeledInput/index.d.ts +1 -0
- package/dist/elements/Link/Link.d.ts +13 -0
- package/dist/elements/Link/index.d.ts +1 -0
- package/dist/elements/Marquee/Marquee.d.ts +25 -0
- package/dist/elements/Marquee/Marquee.story.d.ts +6 -0
- package/dist/elements/Marquee/index.d.ts +1 -0
- package/dist/elements/Message/Message.d.ts +41 -0
- package/dist/elements/Message/Message.story.d.ts +6 -0
- package/dist/elements/Message/index.d.ts +1 -0
- package/dist/elements/Modal/ModalBase.d.ts +20 -0
- package/dist/elements/Modal/ModalBase.story.d.ts +9 -0
- package/dist/elements/Modal/index.d.ts +1 -0
- package/dist/elements/ModalDialog/ModalDialog.d.ts +8 -0
- package/dist/elements/ModalDialog/ModalDialog.story.d.ts +6 -0
- package/dist/elements/ModalDialog/ModalDialogContent.d.ts +16 -0
- package/dist/elements/ModalDialog/ModalDialogContent.story.d.ts +6 -0
- package/dist/elements/ModalDialog/index.d.ts +2 -0
- package/dist/elements/MultiSelect/MultiSelect.d.ts +19 -0
- package/dist/elements/MultiSelect/MultiSelect.story.d.ts +7 -0
- package/dist/elements/MultiSelect/index.d.ts +1 -0
- package/dist/elements/MultiSelect/tokens.d.ts +2 -0
- package/dist/elements/Pagination/Pagination.d.ts +33 -0
- package/dist/elements/Pagination/Pagination.story.d.ts +12 -0
- package/dist/elements/Pagination/index.d.ts +1 -0
- package/dist/elements/PasswordInput/PasswordInput.d.ts +6 -0
- package/dist/elements/PasswordInput/PasswordInput.story.d.ts +6 -0
- package/dist/elements/PasswordInput/index.d.ts +1 -0
- package/dist/elements/PhoneInput/PhoneInput.d.ts +31 -0
- package/dist/elements/PhoneInput/PhoneInput.story.d.ts +6 -0
- package/dist/elements/PhoneInput/index.d.ts +1 -0
- package/dist/elements/PhoneInput/tokens.d.ts +9 -0
- package/dist/elements/Pill/Pill.d.ts +48 -0
- package/dist/elements/Pill/Pill.story.d.ts +14 -0
- package/dist/elements/Pill/index.d.ts +1 -0
- package/dist/elements/Pill/tokens.d.ts +3 -0
- package/dist/elements/Pointer/Pointer.d.ts +23 -0
- package/dist/elements/Pointer/index.d.ts +1 -0
- package/dist/elements/Popover/Popover.d.ts +46 -0
- package/dist/elements/Popover/Popover.story.d.ts +27 -0
- package/dist/elements/Popover/index.d.ts +1 -0
- package/dist/elements/ProgressBar/ProgressBar.d.ts +11 -0
- package/dist/elements/ProgressBar/ProgressBar.story.d.ts +16 -0
- package/dist/elements/ProgressBar/index.d.ts +1 -0
- package/dist/elements/ProgressDots/ProgressDots.d.ts +26 -0
- package/dist/elements/ProgressDots/ProgressDots.story.d.ts +16 -0
- package/dist/elements/ProgressDots/index.d.ts +1 -0
- package/dist/elements/Radio/Radio.d.ts +30 -0
- package/dist/elements/Radio/Radio.story.d.ts +7 -0
- package/dist/elements/Radio/RadioDot.d.ts +11 -0
- package/dist/elements/Radio/index.d.ts +1 -0
- package/dist/elements/Radio/tokens.d.ts +39 -0
- package/dist/elements/RadioGroup/RadioGroup.d.ts +35 -0
- package/dist/elements/RadioGroup/RadioGroup.story.d.ts +13 -0
- package/dist/elements/RadioGroup/index.d.ts +1 -0
- package/dist/elements/Range/Range.d.ts +12 -0
- package/dist/elements/Range/Range.story.d.ts +18 -0
- package/dist/elements/Range/index.d.ts +1 -0
- package/dist/elements/ReadMore/ReadMore.d.ts +12 -0
- package/dist/elements/ReadMore/ReadMore.story.d.ts +53 -0
- package/dist/elements/ReadMore/index.d.ts +1 -0
- package/dist/elements/ResponsiveBox/ResponsiveBox.d.ts +21 -0
- package/dist/elements/ResponsiveBox/ResponsiveBox.story.d.ts +13 -0
- package/dist/elements/ResponsiveBox/index.d.ts +1 -0
- package/dist/elements/Select/Select.d.ts +23 -0
- package/dist/elements/Select/Select.story.d.ts +6 -0
- package/dist/elements/Select/index.d.ts +1 -0
- package/dist/elements/Select/tokens.d.ts +2 -0
- package/dist/elements/Select/types.d.ts +1 -0
- package/dist/elements/Separator/Separator.d.ts +8 -0
- package/dist/elements/Separator/Separator.story.d.ts +6 -0
- package/dist/elements/Separator/index.d.ts +1 -0
- package/dist/elements/Shelf/Shelf.d.ts +15 -0
- package/dist/elements/Shelf/Shelf.story.d.ts +18 -0
- package/dist/elements/Shelf/ShelfNavigation.d.ts +16 -0
- package/dist/elements/Shelf/ShelfScrollBar.d.ts +29 -0
- package/dist/elements/Shelf/index.d.ts +3 -0
- package/dist/elements/Shelf/useClickScroll.d.ts +10 -0
- package/dist/elements/Shelf/useDragScroll.d.ts +11 -0
- package/dist/elements/ShowMore/ShowMore.d.ts +12 -0
- package/dist/elements/ShowMore/ShowMore.story.d.ts +12 -0
- package/dist/elements/ShowMore/index.d.ts +1 -0
- package/dist/elements/Skeleton/Skeleton.d.ts +20 -0
- package/dist/elements/Skeleton/Skeleton.story.d.ts +9 -0
- package/dist/elements/Skeleton/index.d.ts +1 -0
- package/dist/elements/Skip/Skip.d.ts +16 -0
- package/dist/elements/Skip/Skip.story.d.ts +23 -0
- package/dist/elements/Skip/index.d.ts +1 -0
- package/dist/elements/Spacer/Spacer.d.ts +13 -0
- package/dist/elements/Spacer/Spacer.story.d.ts +11 -0
- package/dist/elements/Spacer/index.d.ts +1 -0
- package/dist/elements/Spinner/Spinner.d.ts +35 -0
- package/dist/elements/Spinner/Spinner.story.d.ts +18 -0
- package/dist/elements/Spinner/index.d.ts +1 -0
- package/dist/elements/Stack/Stack.d.ts +13 -0
- package/dist/elements/Stack/Stack.story.d.ts +6 -0
- package/dist/elements/Stack/index.d.ts +1 -0
- package/dist/elements/StackableBorderBox/StackableBorderBox.d.ts +9 -0
- package/dist/elements/StackableBorderBox/StackableBorderBox.story.d.ts +6 -0
- package/dist/elements/StackableBorderBox/index.d.ts +1 -0
- package/dist/elements/Stepper/Stepper.d.ts +17 -0
- package/dist/elements/Stepper/Stepper.story.d.ts +7 -0
- package/dist/elements/Stepper/index.d.ts +1 -0
- package/dist/elements/Sup/Sup.d.ts +15 -0
- package/dist/elements/Sup/Sup.story.d.ts +6 -0
- package/dist/elements/Sup/index.d.ts +1 -0
- package/dist/elements/Swiper/Swiper.d.ts +41 -0
- package/dist/elements/Swiper/Swiper.story.d.ts +72 -0
- package/dist/elements/Swiper/activeIndex.d.ts +9 -0
- package/dist/elements/Swiper/index.d.ts +1 -0
- package/dist/elements/Swiper/percentage.d.ts +12 -0
- package/dist/elements/Tabs/Tabs.d.ts +52 -0
- package/dist/elements/Tabs/Tabs.story.d.ts +30 -0
- package/dist/elements/Tabs/index.d.ts +1 -0
- package/dist/elements/Text/Text.d.ts +43 -0
- package/dist/elements/Text/Text.story.d.ts +9 -0
- package/dist/elements/Text/index.d.ts +1 -0
- package/dist/elements/TextArea/TextArea.d.ts +22 -0
- package/dist/elements/TextArea/TextArea.story.d.ts +7 -0
- package/dist/elements/TextArea/index.d.ts +1 -0
- package/dist/elements/TextArea/tokens.d.ts +2 -0
- package/dist/elements/TextArea/types.d.ts +1 -0
- package/dist/elements/Toasts/Toast.d.ts +33 -0
- package/dist/elements/Toasts/Toast.story.d.ts +6 -0
- package/dist/elements/Toasts/Toasts.d.ts +6 -0
- package/dist/elements/Toasts/Toasts.story.d.ts +9 -0
- package/dist/elements/Toasts/index.d.ts +3 -0
- package/dist/elements/Toasts/useToasts.d.ts +32 -0
- package/dist/elements/Toggle/Toggle.d.ts +14 -0
- package/dist/elements/Toggle/Toggle.story.d.ts +7 -0
- package/dist/elements/Toggle/index.d.ts +1 -0
- package/dist/elements/Toggle/tokens.d.ts +13 -0
- package/dist/elements/Tooltip/Tooltip.d.ts +29 -0
- package/dist/elements/Tooltip/Tooltip.story.d.ts +31 -0
- package/dist/elements/Tooltip/index.d.ts +1 -0
- package/dist/elements/VisuallyHidden/VisuallyHidden.d.ts +27 -0
- package/dist/elements/VisuallyHidden/index.d.ts +1 -0
- package/dist/elements/index.d.ts +70 -0
- package/dist/helpers/color.d.ts +8 -0
- package/dist/helpers/flattenChildren.d.ts +5 -0
- package/dist/helpers/index.d.ts +7 -0
- package/dist/helpers/injectGlobalStyles.d.ts +9 -0
- package/dist/helpers/isReactNative.d.ts +5 -0
- package/dist/helpers/isText.d.ts +5 -0
- package/dist/helpers/media.d.ts +21 -0
- package/dist/helpers/space.d.ts +8 -0
- package/dist/helpers/transition.d.ts +3 -0
- package/dist/helpers/visuallyDisableScrollbar.d.ts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/shared/RequiredField.d.ts +5 -0
- package/dist/themes/Themes.story.d.ts +14 -0
- package/dist/themes/index.d.ts +1 -0
- package/dist/themes/types.d.ts +1 -0
- package/dist/utils/FocusLocking.story.d.ts +8 -0
- package/dist/utils/index.d.ts +12 -0
- package/dist/utils/remapValue.d.ts +15 -0
- package/dist/utils/splitProps.d.ts +7 -0
- package/dist/utils/useClickOutside.d.ts +12 -0
- package/dist/utils/useContainsFocus.d.ts +6 -0
- package/dist/utils/useDidMount.d.ts +4 -0
- package/dist/utils/useInterval.d.ts +2 -0
- package/dist/utils/useIsomorphicLayoutEffect.d.ts +5 -0
- package/dist/utils/useLatest.d.ts +2 -0
- package/dist/utils/useMutationObserver.d.ts +15 -0
- package/dist/utils/usePortal.d.ts +4 -0
- package/dist/utils/usePosition.d.ts +68 -0
- package/dist/utils/usePrevious.d.ts +5 -0
- package/dist/utils/useResizeObserver.d.ts +9 -0
- package/dist/utils/useSentinelVisibility.d.ts +8 -0
- package/dist/utils/useUpdateEffect.d.ts +5 -0
- package/dist/utils/useWidthOf.d.ts +9 -0
- package/package.json +3 -2
- package/CHANGELOG.md +0 -7398
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { FilterSelectState } from "./Components/FilterSelectContext";
|
|
3
|
+
export declare type FilterSelectProps = Partial<FilterSelectState>;
|
|
4
|
+
export declare const FilterSelect: React.FC<React.PropsWithChildren<FilterSelectProps>>;
|
|
5
|
+
export declare const isBelowTheFoldSelected: (selectedItems: any, resultsSorted: any) => boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from "../Box";
|
|
3
|
+
/**
|
|
4
|
+
* Flex is Box with display: flex
|
|
5
|
+
*/
|
|
6
|
+
export declare type FlexProps = BoxProps;
|
|
7
|
+
/**
|
|
8
|
+
* Flex is Box with display: flex
|
|
9
|
+
*/
|
|
10
|
+
export declare const Flex: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof BoxProps> & BoxProps, "ref"> & {
|
|
11
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
12
|
+
}, BoxProps>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Flex";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from "../Box";
|
|
3
|
+
/** FullBleedProps */
|
|
4
|
+
export declare type FullBleedProps = BoxProps;
|
|
5
|
+
/**
|
|
6
|
+
* Utility to break out of parent containers
|
|
7
|
+
*/
|
|
8
|
+
export declare const FullBleed: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof BoxProps> & BoxProps, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
+
}, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FullBleed";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { GridColumnProps } from "styled-system";
|
|
3
|
+
import { BoxProps } from "../Box";
|
|
4
|
+
import { CSSGridProps } from "../CSSGrid";
|
|
5
|
+
import { ColumnCell } from "./calculateGridColumn";
|
|
6
|
+
/** GridColumns implements `Box` and the common grid properties */
|
|
7
|
+
export declare type GridColumnsProps = Omit<CSSGridProps, "gridTemplateColumns">;
|
|
8
|
+
/**
|
|
9
|
+
* A 12-column fluid grid
|
|
10
|
+
*/
|
|
11
|
+
export declare const GridColumns: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof BoxProps> & BoxProps, "ref"> & {
|
|
12
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
+
}, keyof CSSGridProps> & CSSGridProps, never>> & string;
|
|
14
|
+
declare type CellProps = ColumnCell & GridColumnProps & BoxProps;
|
|
15
|
+
/** Column implements `Box` and `gridColumn` */
|
|
16
|
+
export declare type ColumnProps = CellProps & {
|
|
17
|
+
/** denotes whether or not to break to a new row after column */
|
|
18
|
+
wrap?: boolean;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* A column sits within the GridColumns and spans the columns,
|
|
23
|
+
* sitting between gutters.
|
|
24
|
+
*/
|
|
25
|
+
export declare const Column: React.FC<React.PropsWithChildren<ColumnProps>>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const RealWorldExample: {
|
|
7
|
+
(): React.JSX.Element;
|
|
8
|
+
story: {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const KitchenSink: {
|
|
13
|
+
(): React.JSX.Element;
|
|
14
|
+
story: {
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const CustomGutters: {
|
|
19
|
+
(): React.JSX.Element;
|
|
20
|
+
story: {
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Number of columns a cell may span */
|
|
2
|
+
export declare type ColumnSpan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
3
|
+
/** Column number to begin a cell at */
|
|
4
|
+
export declare type ColumnStart = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
5
|
+
export interface ColumnCell {
|
|
6
|
+
/** number (between 1 and 12) of columns to span */
|
|
7
|
+
span?: ColumnSpan | ColumnSpan[];
|
|
8
|
+
/** number (between 1 and 12) of columns to begin at */
|
|
9
|
+
start?: ColumnStart | ColumnStart[];
|
|
10
|
+
}
|
|
11
|
+
/** The number of columns */
|
|
12
|
+
export declare const NUMBER_OF_COLUMNS = 12;
|
|
13
|
+
/** Position of the first column, 1-based */
|
|
14
|
+
export declare const FIRST_COLUMN_POSITION = 1;
|
|
15
|
+
/** Position of the last column, 1-based */
|
|
16
|
+
export declare const LAST_COLUMN_POSITION: number;
|
|
17
|
+
/**
|
|
18
|
+
* Builds a value for `gridColumn` based on the assumptions laid out
|
|
19
|
+
* by our 12-column grid.
|
|
20
|
+
*/
|
|
21
|
+
export declare const calculateGridColumn: ({ span: columnSpan, start: columnStart, }: ColumnCell) => string[];
|
|
22
|
+
/** Hardcoded list of full-width column spans */
|
|
23
|
+
export declare const GRID_COLUMN_FULL_WIDTHS: string[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from "react";
|
|
2
|
+
import { TextProps } from "../Text";
|
|
3
|
+
/**
|
|
4
|
+
* HTML
|
|
5
|
+
*/
|
|
6
|
+
export declare type HTMLProps = TextProps & HTMLAttributes<HTMLDivElement | HTMLHeadingElement | HTMLParagraphElement> & ({
|
|
7
|
+
html: string;
|
|
8
|
+
} | {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
});
|
|
11
|
+
/**
|
|
12
|
+
* Sets reasonable defaults for tags that we might encounter in Markdown output.
|
|
13
|
+
*/
|
|
14
|
+
export declare const htmlMixin: import("styled-components").RuleSet<object>;
|
|
15
|
+
/**
|
|
16
|
+
* Sets reasonable defaults for tags that we might encounter in Markdown output.
|
|
17
|
+
* If `html` prop is passed; it's set as innerHTML, otherwise contents are wrapped
|
|
18
|
+
* with default HTML styling.
|
|
19
|
+
*/
|
|
20
|
+
export declare const HTML: React.FC<React.PropsWithChildren<HTMLProps>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Html: {
|
|
7
|
+
(): React.JSX.Element;
|
|
8
|
+
story: {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const DefaultHtmlStyling: {
|
|
13
|
+
(): React.JSX.Element;
|
|
14
|
+
story: {
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./HTML";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BoxProps } from "../Box";
|
|
3
|
+
export declare type HorizontalOverflowProps = BoxProps & {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare const HorizontalOverflow: React.ForwardRefExoticComponent<BoxProps & {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./HorizontalOverflow";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BorderRadiusProps, HeightProps, MaxHeightProps, SpaceProps, WidthProps } from "styled-system";
|
|
3
|
+
export interface ImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, "width" | "height">, SpaceProps, WidthProps, HeightProps, MaxHeightProps, BorderRadiusProps {
|
|
4
|
+
/** Flag for if image should be lazy loaded */
|
|
5
|
+
lazyLoad?: boolean;
|
|
6
|
+
/** Flag indicating that right clicks should be prevented */
|
|
7
|
+
preventRightClick?: boolean;
|
|
8
|
+
/** Currently, this is used by clients for BlurHash data,
|
|
9
|
+
decoded and represented as a data URL */
|
|
10
|
+
placeHolderURL?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const BaseImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("../CleanTag").TagProps & React.RefAttributes<any>, "ref"> & {
|
|
13
|
+
ref?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
|
|
14
|
+
}, ImageProps>> & string & Omit<React.ForwardRefExoticComponent<import("../CleanTag").TagProps & React.RefAttributes<any>>, keyof React.Component<any, {}, any>>;
|
|
15
|
+
/** A web-only Image component. */
|
|
16
|
+
export declare const Image: ({ lazyLoad, preventRightClick, ...rest }: ImageProps) => React.JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: {
|
|
7
|
+
(): React.JSX.Element;
|
|
8
|
+
story: {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const ImageWSrcSet: {
|
|
13
|
+
(): React.JSX.Element;
|
|
14
|
+
story: {
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const ImageLazyLoad: {
|
|
19
|
+
(): React.JSX.Element;
|
|
20
|
+
story: {
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const ImageLazyLoadSrcSet: {
|
|
25
|
+
(): React.JSX.Element;
|
|
26
|
+
story: {
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const ImageLazyLoadSrcSetPlaceHolderURL: {
|
|
31
|
+
(): React.JSX.Element;
|
|
32
|
+
story: {
|
|
33
|
+
name: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
|
+
import { BorderRadiusProps, HeightProps, WidthProps } from "styled-system";
|
|
3
|
+
import { ImageProps } from "./Image";
|
|
4
|
+
interface LazyImageProps extends ImageProps, WidthProps, HeightProps, BorderRadiusProps {
|
|
5
|
+
/** Eagerly load the image instead of lazy loading it */
|
|
6
|
+
preload?: boolean;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
/** The image component to render when preload is true */
|
|
9
|
+
imageComponent?: any;
|
|
10
|
+
onContextMenu?: (e: any) => void;
|
|
11
|
+
onError?: (event: React.SyntheticEvent<any, Event>) => void;
|
|
12
|
+
}
|
|
13
|
+
/** LazyImage */
|
|
14
|
+
export declare const LazyImage: React.FC<React.PropsWithChildren<LazyImageProps>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Image";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BoxProps } from "../Box";
|
|
3
|
+
export interface InputProps extends BoxProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "width" | "height" | "capture"> {
|
|
4
|
+
active?: boolean;
|
|
5
|
+
description?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
error?: string | boolean;
|
|
8
|
+
focus?: boolean;
|
|
9
|
+
hover?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
title?: string;
|
|
12
|
+
labelOffset?: number;
|
|
13
|
+
showCounter?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** Input component */
|
|
16
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: () => React.JSX.Element;
|
|
7
|
+
export declare const Styled: () => React.JSX.Element;
|
|
8
|
+
export declare const Required: () => React.JSX.Element;
|
|
9
|
+
export declare const WithState: () => React.JSX.Element;
|
|
10
|
+
export declare const CustomHeight: () => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Input";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type State = "active" | "default" | "disabled" | "error" | "focus" | "hover" | "completed";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface JoinProps {
|
|
3
|
+
separator: React.ReactElement<any>;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* `Join` is a higher order component that renders a separator component
|
|
7
|
+
* between each of `Join`'s direct children.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* <Join separator={<SomeComponent/>}>
|
|
12
|
+
* <child1/>
|
|
13
|
+
* <child2/>
|
|
14
|
+
* <child3/>
|
|
15
|
+
* </Join>
|
|
16
|
+
*
|
|
17
|
+
* which renders
|
|
18
|
+
*
|
|
19
|
+
* <child1/>
|
|
20
|
+
* <SomeComponent/>
|
|
21
|
+
* <child2/>
|
|
22
|
+
* <SomeComponent/>
|
|
23
|
+
* <child3/>
|
|
24
|
+
*/
|
|
25
|
+
export declare const Join: React.FC<React.PropsWithChildren<JoinProps>>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const WithMultipleComponents: {
|
|
7
|
+
(): React.JSX.Element;
|
|
8
|
+
story: {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const WithOneComponent: {
|
|
13
|
+
(): React.JSX.Element;
|
|
14
|
+
story: {
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const WithSomeOfTheChildrenEmpty: {
|
|
19
|
+
(): React.JSX.Element;
|
|
20
|
+
story: {
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const WithNestedChildren: () => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Join";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { BoxProps } from "../Box";
|
|
3
|
+
export declare const LABEL_VARIANTS: {
|
|
4
|
+
light: {
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
8
|
+
dark: {
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
color: string;
|
|
11
|
+
};
|
|
12
|
+
brand: {
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
color: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare type LabelVariant = keyof typeof LABEL_VARIANTS;
|
|
18
|
+
export interface LabelProps extends BoxProps {
|
|
19
|
+
variant?: LabelVariant;
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export declare const Label: React.FC<React.PropsWithChildren<LabelProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Label";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { InputProps } from "../Input";
|
|
3
|
+
export interface LabeledInputProps extends InputProps {
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
variant?: "suffix" | "prefix";
|
|
6
|
+
}
|
|
7
|
+
/** Input with a right-aligned or left-aligned label */
|
|
8
|
+
export declare const LabeledInput: React.ForwardRefExoticComponent<LabeledInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: () => React.JSX.Element;
|
|
7
|
+
export declare const CharacterCountExample: () => React.JSX.Element;
|
|
8
|
+
export declare const CustomHeight: () => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./LabeledInput";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ResponsiveValue } from "styled-system";
|
|
3
|
+
import { BoxProps } from "../Box";
|
|
4
|
+
export interface LinkProps extends BoxProps {
|
|
5
|
+
textDecoration?: ResponsiveValue<string>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Basic <a> tag styled with additional LinkProps
|
|
9
|
+
*
|
|
10
|
+
* Tip: If working on Force, please use <Link as={RouterLink}>.
|
|
11
|
+
|
|
12
|
+
*/
|
|
13
|
+
export declare const Link: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, LinkProps>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Link";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BoxProps } from "../Box";
|
|
3
|
+
declare const VARIANTS: {
|
|
4
|
+
defaultLight: {
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
8
|
+
defaultDark: {
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
color: string;
|
|
11
|
+
};
|
|
12
|
+
brand: {
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
color: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export interface MarqueeProps extends BoxProps {
|
|
18
|
+
variant?: keyof typeof VARIANTS;
|
|
19
|
+
speed?: string;
|
|
20
|
+
color?: string;
|
|
21
|
+
marqueeText: string;
|
|
22
|
+
divider?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const Marquee: React.FC<React.PropsWithChildren<MarqueeProps>>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Marquee";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FlexProps } from "../Flex";
|
|
3
|
+
export declare const MESSAGE_VARIANTS: {
|
|
4
|
+
default: {
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
8
|
+
info: {
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
color: string;
|
|
11
|
+
};
|
|
12
|
+
success: {
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
color: string;
|
|
15
|
+
};
|
|
16
|
+
alert: {
|
|
17
|
+
backgroundColor: string;
|
|
18
|
+
color: string;
|
|
19
|
+
};
|
|
20
|
+
warning: {
|
|
21
|
+
backgroundColor: string;
|
|
22
|
+
color: string;
|
|
23
|
+
};
|
|
24
|
+
error: {
|
|
25
|
+
backgroundColor: string;
|
|
26
|
+
color: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare type MessageVariant = keyof typeof MESSAGE_VARIANTS;
|
|
30
|
+
export interface MessageProps extends FlexProps {
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
title?: string;
|
|
33
|
+
variant?: MessageVariant;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* `Message` is used for in-line communication. These should fill the allotted
|
|
37
|
+
* container or space they are placed and key for temporal messages and
|
|
38
|
+
* comments within flows. Additionally, they can be used to highlight particular
|
|
39
|
+
* messaging within a specific section of a page or screen.
|
|
40
|
+
*/
|
|
41
|
+
export declare const Message: React.FC<React.PropsWithChildren<MessageProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Message";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ZIndexProps } from "styled-system";
|
|
3
|
+
import { FlexProps } from "../Flex";
|
|
4
|
+
/** BaseModal */
|
|
5
|
+
export declare type ModalBaseProps = React.HTMLAttributes<HTMLDivElement> & FlexProps & ZIndexProps & {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
dialogProps?: FlexProps;
|
|
8
|
+
onClose?(): void;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* It seems we've landed on this value as the 'top'
|
|
12
|
+
*/
|
|
13
|
+
export declare const DEFAULT_MODAL_Z_INDEX = 9999;
|
|
14
|
+
/**
|
|
15
|
+
* BaseModal
|
|
16
|
+
* Low-level modal that has no opinions about layout/overlay
|
|
17
|
+
* Modals content using a portal, locks scroll.
|
|
18
|
+
*/
|
|
19
|
+
export declare const ModalBase: React.FC<React.PropsWithChildren<ModalBaseProps>>;
|
|
20
|
+
export declare const _ModalBase: React.FC<React.PropsWithChildren<ModalBaseProps>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: () => React.JSX.Element;
|
|
7
|
+
export declare const DeferredFocusables: () => React.JSX.Element;
|
|
8
|
+
export declare const Fullscreen: () => React.JSX.Element;
|
|
9
|
+
export declare const Scrolling: () => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ModalBase";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ModalBaseProps } from "../Modal";
|
|
3
|
+
import { ModalDialogContentProps } from "./ModalDialogContent";
|
|
4
|
+
export declare type ModalDialogProps = Omit<ModalBaseProps, "title"> & ModalDialogContentProps & {
|
|
5
|
+
leftPanel?: React.ReactNode;
|
|
6
|
+
rightPanel?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const ModalDialog: React.FC<React.PropsWithChildren<ModalDialogProps>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import { ClickableProps } from "../Clickable";
|
|
3
|
+
import { BoxProps } from "../Box";
|
|
4
|
+
export interface ModalDialogContentProps extends BoxProps, Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
footer?: React.ReactNode;
|
|
7
|
+
hasLogo?: boolean;
|
|
8
|
+
leftPanel?: React.ReactNode;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
rightPanel?: React.ReactNode;
|
|
11
|
+
title?: React.ReactNode;
|
|
12
|
+
header?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const ModalDialogContent: React.FC<React.PropsWithChildren<ModalDialogContentProps>>;
|
|
15
|
+
export declare type ModalCloseProps = ClickableProps;
|
|
16
|
+
export declare const ModalClose: FC<React.PropsWithChildren<ModalCloseProps>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BoxProps } from "../Box";
|
|
3
|
+
import { Option } from "../Select";
|
|
4
|
+
export interface MultiSelectProps extends BoxProps {
|
|
5
|
+
complete?: boolean;
|
|
6
|
+
description?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
error?: string | boolean;
|
|
9
|
+
focus?: boolean;
|
|
10
|
+
hover?: boolean;
|
|
11
|
+
name?: string;
|
|
12
|
+
options: Option[];
|
|
13
|
+
required?: boolean;
|
|
14
|
+
title?: string;
|
|
15
|
+
onSelect?: (selection: Option[]) => void;
|
|
16
|
+
visible?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/** A drop-down multi-select menu */
|
|
19
|
+
export declare const MultiSelect: React.FC<React.PropsWithChildren<MultiSelectProps>>;
|