@artsy/palette 40.3.0 → 40.5.0-canary.1420.31535.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 +40 -0
- package/dist/elements/Dropdown/Dropdown.js +4 -2
- package/dist/elements/Dropdown/Dropdown.js.map +1 -1
- 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,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>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MultiSelect";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import { FlexProps } from "../Flex";
|
|
3
|
+
import { BoxProps } from "../Box";
|
|
4
|
+
interface PageCursor {
|
|
5
|
+
cursor: string;
|
|
6
|
+
isCurrent: boolean;
|
|
7
|
+
page: number;
|
|
8
|
+
}
|
|
9
|
+
export interface PageCursors {
|
|
10
|
+
around: PageCursor[];
|
|
11
|
+
first: PageCursor;
|
|
12
|
+
last: PageCursor;
|
|
13
|
+
previous: PageCursor;
|
|
14
|
+
}
|
|
15
|
+
export declare const PageLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, BoxProps>> & string;
|
|
16
|
+
export interface PaginationProps extends FlexProps {
|
|
17
|
+
getHref?: (page: number) => string;
|
|
18
|
+
hasNextPage: boolean;
|
|
19
|
+
onClick?: (cursor: string, page: number, event: React.MouseEvent) => void;
|
|
20
|
+
onNext?: (event: React.MouseEvent, page: number) => void;
|
|
21
|
+
pageCursors: PageCursors;
|
|
22
|
+
scrollTo?: string;
|
|
23
|
+
}
|
|
24
|
+
/** Pagination */
|
|
25
|
+
export declare const Pagination: React.FC<React.PropsWithChildren<PaginationProps>>;
|
|
26
|
+
export interface NextPrevButtonProps extends BoxProps {
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
getHref?: (page: number) => string;
|
|
29
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
30
|
+
page?: number;
|
|
31
|
+
}
|
|
32
|
+
export declare const PaginationSkeleton: FC<React.PropsWithChildren<unknown>>;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
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 Skeleton: () => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Pagination";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PasswordInput";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { InputProps } from "../Input";
|
|
3
|
+
/**
|
|
4
|
+
* The option structure for the list in the dropdown menu
|
|
5
|
+
*
|
|
6
|
+
* @interface Option
|
|
7
|
+
* @property {string} `text` is the content that will be displayed as selected option
|
|
8
|
+
* @property {string} `name` is the content that will be displayed in the dropdown list
|
|
9
|
+
* @property {string} `value` is the value that will be passed to onSelect
|
|
10
|
+
*/
|
|
11
|
+
interface Option {
|
|
12
|
+
text: string;
|
|
13
|
+
name: string;
|
|
14
|
+
value: string;
|
|
15
|
+
countryCode?: string;
|
|
16
|
+
flag?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface PhoneInputProps extends Omit<InputProps, "onSelect"> {
|
|
19
|
+
options: Option[];
|
|
20
|
+
onSelect: (option: Option) => void;
|
|
21
|
+
active?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
error?: string | boolean;
|
|
24
|
+
focus?: boolean;
|
|
25
|
+
hover?: boolean;
|
|
26
|
+
required?: boolean;
|
|
27
|
+
dropdownValue?: string;
|
|
28
|
+
inputValue?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PhoneInput";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const PHONE_INPUT_STATES: {
|
|
2
|
+
default: import("styled-components").RuleSet<object>;
|
|
3
|
+
active: import("styled-components").RuleSet<object>;
|
|
4
|
+
focus: import("styled-components").RuleSet<object>;
|
|
5
|
+
hover: import("styled-components").RuleSet<object>;
|
|
6
|
+
completed: import("styled-components").RuleSet<object>;
|
|
7
|
+
disabled: import("styled-components").RuleSet<object>;
|
|
8
|
+
error: import("styled-components").RuleSet<object>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ClickableProps } from "../Clickable";
|
|
3
|
+
import { BoxProps } from "../Box";
|
|
4
|
+
import { ResponsiveValue } from "styled-system";
|
|
5
|
+
export declare const PILL_VARIANT_NAMES: readonly ["badge", "dotted", "default", "filter", "gray", "profile", "search"];
|
|
6
|
+
export declare type PillVariant = typeof PILL_VARIANT_NAMES[number];
|
|
7
|
+
export declare type PillState = "active" | "default" | "disabled" | "focus" | "hover" | "selected";
|
|
8
|
+
/** PillProps */
|
|
9
|
+
export declare type PillProps = ClickableProps & {
|
|
10
|
+
as?: keyof JSX.IntrinsicElements | React.ComponentType<React.PropsWithChildren<unknown>>;
|
|
11
|
+
/** Forces focus state */
|
|
12
|
+
focus?: boolean;
|
|
13
|
+
/** Forces hover state */
|
|
14
|
+
hover?: boolean;
|
|
15
|
+
/** Forces active state. This is for working with :active; not denoting a selected state */
|
|
16
|
+
active?: boolean;
|
|
17
|
+
/** Forces selected state. Use this state to denote the selected state */
|
|
18
|
+
selected?: boolean;
|
|
19
|
+
/** Optional icon slot */
|
|
20
|
+
Icon?: React.FunctionComponent<React.PropsWithChildren<BoxProps & {
|
|
21
|
+
fill?: ResponsiveValue<string>;
|
|
22
|
+
}>>;
|
|
23
|
+
/** Optional: Icon positioning */
|
|
24
|
+
iconPosition?: "left" | "right";
|
|
25
|
+
} & ({
|
|
26
|
+
variant?: Extract<PillVariant, "badge" | "default" | "dotted" | "filter" | "gray" | "search">;
|
|
27
|
+
} | {
|
|
28
|
+
/** `"profile"` pills have an optional `src` */
|
|
29
|
+
variant?: Extract<PillVariant, "profile">;
|
|
30
|
+
/**
|
|
31
|
+
* Optional avatar; 1x or [1x, 2x]
|
|
32
|
+
* Should target 30x30 @1x, 60x60 @2x
|
|
33
|
+
*/
|
|
34
|
+
src?: string | [string, string];
|
|
35
|
+
/** Optionally switch into a condensed form */
|
|
36
|
+
compact?: boolean;
|
|
37
|
+
} | {
|
|
38
|
+
/** `search` pills have an optional `count` */
|
|
39
|
+
variant?: Extract<PillVariant, "search">;
|
|
40
|
+
/** Optional count */
|
|
41
|
+
count?: number;
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* A Pill is a non-CTA button.
|
|
45
|
+
* It may be used for things like active filters, search states,
|
|
46
|
+
* or to denote an profile entity (possibly in the context of a card).
|
|
47
|
+
*/
|
|
48
|
+
export declare const Pill: React.ForwardRefExoticComponent<PillProps & React.RefAttributes<HTMLAnchorElement & HTMLButtonElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Variants: () => React.JSX.Element;
|
|
7
|
+
export declare const LinkExample: () => React.JSX.Element;
|
|
8
|
+
export declare const LongExampleWithTruncation: () => React.JSX.Element;
|
|
9
|
+
export declare const SearchWithCount: () => React.JSX.Element;
|
|
10
|
+
export declare const ArtistWithImage: () => React.JSX.Element;
|
|
11
|
+
export declare const PillWithIcon: () => React.JSX.Element;
|
|
12
|
+
export declare const Demo: () => React.JSX.Element;
|
|
13
|
+
export declare const ProfileVariant: () => React.JSX.Element;
|
|
14
|
+
export declare const PillWithPopover: () => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Pill";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import { Position } from "../../utils";
|
|
3
|
+
declare const POINTER_VARIANTS: {
|
|
4
|
+
defaultLight: {
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
};
|
|
7
|
+
defaultDark: {
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
declare type PointerVariant = keyof typeof POINTER_VARIANTS;
|
|
12
|
+
export interface PointerProps {
|
|
13
|
+
anchorRef: React.RefObject<HTMLElement>;
|
|
14
|
+
tooltipRef: React.RefObject<HTMLElement>;
|
|
15
|
+
isFlipped: boolean;
|
|
16
|
+
placement: Position;
|
|
17
|
+
variant?: PointerVariant;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Internal-use component for displaying a triangular pointer to an anchor node
|
|
21
|
+
*/
|
|
22
|
+
export declare const Pointer: FC<React.PropsWithChildren<PointerProps>>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Pointer";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Position } from "../../utils";
|
|
3
|
+
import { BoxProps } from "../Box";
|
|
4
|
+
export declare const POPOVER_VARIANTS: {
|
|
5
|
+
defaultLight: {
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
color: string;
|
|
8
|
+
};
|
|
9
|
+
defaultDark: {
|
|
10
|
+
backgroundColor: string;
|
|
11
|
+
color: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare type PopoverVariant = keyof typeof POPOVER_VARIANTS;
|
|
15
|
+
export interface PopoverActions {
|
|
16
|
+
/** Call to show popover */
|
|
17
|
+
onVisible(): void;
|
|
18
|
+
/** Call to hide popover */
|
|
19
|
+
onHide(): void;
|
|
20
|
+
/** Call to dismiss popover */
|
|
21
|
+
onDismiss(): void;
|
|
22
|
+
/** Pass ref to element you want the popover to be anchored to */
|
|
23
|
+
anchorRef: React.MutableRefObject<HTMLElement>;
|
|
24
|
+
}
|
|
25
|
+
export interface PopoverProps extends BoxProps {
|
|
26
|
+
children: (actions: PopoverActions) => JSX.Element;
|
|
27
|
+
ignoreClickOutside?: boolean;
|
|
28
|
+
manageFocus?: boolean;
|
|
29
|
+
offset?: number;
|
|
30
|
+
/** Called whenever the Popver is closed (both explcitly dismissed and through click outside) */
|
|
31
|
+
onClose?: () => void;
|
|
32
|
+
/** Called whenever the Popover is dismissed (explicitly) */
|
|
33
|
+
onDismiss?: () => void;
|
|
34
|
+
placement?: Position;
|
|
35
|
+
/** Display triangular pointer back to anchor node */
|
|
36
|
+
pointer?: boolean;
|
|
37
|
+
popover: ((actions: Omit<PopoverActions, "anchorRef">) => JSX.Element) | React.ReactNode;
|
|
38
|
+
variant?: PopoverVariant;
|
|
39
|
+
/** Initial default visibility */
|
|
40
|
+
visible?: boolean;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A `Popover` is a small modal-type element which is anchored, and can be
|
|
44
|
+
* positioned relative to, another element.
|
|
45
|
+
*/
|
|
46
|
+
export declare const Popover: ({ children, ignoreClickOutside, manageFocus, offset, onClose, onDismiss, placement, pointer, popover, variant, visible: _visible, zIndex, ...rest }: PopoverProps) => React.JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
parameters: {
|
|
10
|
+
chromatic: {
|
|
11
|
+
disable: boolean;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const Placement: {
|
|
17
|
+
(): React.JSX.Element;
|
|
18
|
+
story: {
|
|
19
|
+
parameters: {
|
|
20
|
+
chromatic: {
|
|
21
|
+
disable: boolean;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const ManageFocus: () => React.JSX.Element;
|
|
27
|
+
export declare const PopoverActions: () => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Popover";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Color } from "../../themes/types";
|
|
3
|
+
import { BoxProps } from "../Box";
|
|
4
|
+
export interface ProgressBarProps extends BoxProps {
|
|
5
|
+
percentComplete: number;
|
|
6
|
+
highlight?: Color;
|
|
7
|
+
showBackground?: boolean;
|
|
8
|
+
transition?: string;
|
|
9
|
+
}
|
|
10
|
+
/** ProgressBar */
|
|
11
|
+
export declare const ProgressBar: React.FC<React.PropsWithChildren<ProgressBarProps>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 Demo: {
|
|
8
|
+
(): React.JSX.Element;
|
|
9
|
+
story: {
|
|
10
|
+
parameters: {
|
|
11
|
+
chromatic: {
|
|
12
|
+
disable: boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ProgressBar";
|