@prismicio/editor-ui 0.4.19 → 0.4.21
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/components/Alert/Alert.d.ts +3 -6
- package/dist/components/Alert/Alert.stories.d.ts +2 -2
- package/dist/components/Alert/AlertContext.d.ts +17 -3
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/AnimatedList/AnimatedList.d.ts +10 -1
- package/dist/components/Badge/Badge.d.ts +13 -11
- package/dist/components/Badge/Badge.stories.d.ts +2 -12
- package/dist/components/BlankSlate/BlankSlate.d.ts +1 -1
- package/dist/components/Box/Box.d.ts +2 -1
- package/dist/components/Button/Button.stories.d.ts +3 -3
- package/dist/components/Dialog/Dialog.d.ts +4 -1
- package/dist/components/Dialog/Options/DialogOptions.d.ts +5 -1
- package/dist/components/DropdownMenu/index.d.ts +0 -1
- package/dist/components/EditableText/EditableText.d.ts +2 -2
- package/dist/components/FileUpload/FileUpload.utils.d.ts +2 -3
- package/dist/components/Form/FormInput.d.ts +1 -0
- package/dist/components/Form/FormSearchInput.d.ts +2 -1
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Icon/iconNames.d.ts +1 -1
- package/dist/components/Image/Image.d.ts +1 -1
- package/dist/components/InvisibleButton/InvisibleButton.d.ts +2 -2
- package/dist/components/MediaCard/MediaCard.d.ts +7 -0
- package/dist/components/MediaCard/MediaCard.stories.d.ts +3 -1
- package/dist/components/MediaCard/index.d.ts +1 -1
- package/dist/components/MediaProgress/index.d.ts +1 -1
- package/dist/components/SelectButton/SelectButton.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.d.ts +2 -1
- package/dist/components/Tab/Tab.d.ts +4 -0
- package/dist/components/Text/Text.d.ts +20 -7
- package/dist/components/Text/index.d.ts +3 -1
- package/dist/components/TextArea/TextArea.d.ts +2 -0
- package/dist/components/Toast/Toast.stories.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +3 -2
- package/dist/index.cjs.js +386 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.es.js +9366 -9089
- package/dist/style.css +1 -1
- package/dist/theme/new/sx.d.ts +1 -0
- package/dist/theme/new/theme.d.ts +2 -0
- package/package.json +5 -3
- package/dist/components/Alert/Alert.css.d.ts +0 -6
- package/dist/components/AnimatedList/AnimatedList.css.d.ts +0 -13
- package/dist/components/Badge/Badge.css.d.ts +0 -30
- package/dist/components/ColorInput/ColorArea.css.d.ts +0 -2
- package/dist/components/ColorInput/ColorInput.css.d.ts +0 -7
- package/dist/components/ColorInput/ColorSlider.css.d.ts +0 -3
- package/dist/components/DropdownMenu/DropdownMenu.css.d.ts +0 -19
- package/dist/components/Group/Group.css.d.ts +0 -3
- package/dist/components/Group/GroupItem.css.d.ts +0 -4
- package/dist/components/Popover/Popover.css.d.ts +0 -1
- package/dist/components/Radio/RadioButton.css.d.ts +0 -3
- package/dist/components/Radio/RadioCard.css.d.ts +0 -1
- package/dist/components/Radio/RadioGroup.css.d.ts +0 -1
- package/dist/components/Radio/RadioItem.css.d.ts +0 -10
- package/dist/components/Select/Select.css.d.ts +0 -14
- package/dist/components/Slider/Slider.css.d.ts +0 -4
- package/dist/components/Tab/Tab.css.d.ts +0 -5
- package/dist/components/Tag/Tag.css.d.ts +0 -5
- package/dist/components/Text/Text.css.d.ts +0 -14
- package/dist/components/Toast/Toast.css.d.ts +0 -4
|
@@ -1,12 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
1
2
|
type Props = {
|
|
2
3
|
title: string;
|
|
3
|
-
subtitle?:
|
|
4
|
-
footerButtons?:
|
|
4
|
+
subtitle?: ReactNode;
|
|
5
|
+
footerButtons?: ReactNode;
|
|
5
6
|
onClose?: () => void;
|
|
6
7
|
};
|
|
7
8
|
export declare function Alert({ title, subtitle, footerButtons, onClose }: Props): JSX.Element;
|
|
8
|
-
export declare const AlertButton: ({ title, onClick }: {
|
|
9
|
-
title: string;
|
|
10
|
-
onClick: () => void;
|
|
11
|
-
}) => JSX.Element;
|
|
12
9
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
2
2
|
title: string;
|
|
3
|
-
subtitle?:
|
|
3
|
+
subtitle?: import("react").ReactNode;
|
|
4
4
|
footerButtons?: import("react").ReactNode;
|
|
5
5
|
onClose?: (() => void) | undefined;
|
|
6
6
|
}>;
|
|
@@ -8,7 +8,7 @@ export default _default;
|
|
|
8
8
|
export declare const Default: {
|
|
9
9
|
render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
10
10
|
title: string;
|
|
11
|
-
subtitle?:
|
|
11
|
+
subtitle?: import("react").ReactNode;
|
|
12
12
|
footerButtons?: import("react").ReactNode;
|
|
13
13
|
onClose?: (() => void) | undefined;
|
|
14
14
|
}>;
|
|
@@ -1,13 +1,27 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ReactNode, type RefObject } from "react";
|
|
2
|
+
import type { IconName } from "../Icon";
|
|
2
3
|
export interface AlertConfig {
|
|
4
|
+
id?: string;
|
|
3
5
|
title: string;
|
|
4
|
-
subtitle:
|
|
6
|
+
subtitle: ReactNode;
|
|
7
|
+
buttons?: {
|
|
8
|
+
text: string;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
icon?: IconName;
|
|
11
|
+
}[];
|
|
5
12
|
onRetry?: () => void;
|
|
6
13
|
}
|
|
7
14
|
interface AlertContext {
|
|
8
15
|
showAlert: (config: AlertConfig) => void;
|
|
16
|
+
/** Useful to ignore click events when interacting with the alerts.
|
|
17
|
+
*
|
|
18
|
+
* E.g. if you don't want to close a dialog when dismissing an alert. */
|
|
19
|
+
containerRef: RefObject<HTMLDivElement> | null;
|
|
9
20
|
}
|
|
10
21
|
declare const AlertContext: import("react").Context<AlertContext>;
|
|
11
|
-
|
|
22
|
+
interface AlertProviderProps {
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
export declare function AlertProvider(props: AlertProviderProps): JSX.Element;
|
|
12
26
|
export declare function useAlert(): AlertContext;
|
|
13
27
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Alert
|
|
1
|
+
export { Alert } from "./Alert";
|
|
2
2
|
export { type AlertConfig, AlertProvider, useAlert } from "./AlertContext";
|
|
@@ -2,6 +2,7 @@ import { type ReactNode } from "react";
|
|
|
2
2
|
import { type Sprinkles } from "../../theme/sprinkles.css";
|
|
3
3
|
import type { tokens } from "../../theme/vars.css";
|
|
4
4
|
import { type RenderDragPreview, type RenderDropIndicator } from "./dnd";
|
|
5
|
+
import { type State } from "./layout";
|
|
5
6
|
export interface AnimatedListProps<ITEM> {
|
|
6
7
|
ariaLabel: string;
|
|
7
8
|
gap?: keyof typeof tokens.space;
|
|
@@ -13,7 +14,15 @@ export interface AnimatedListProps<ITEM> {
|
|
|
13
14
|
renderDragPreview?: RenderDragPreview;
|
|
14
15
|
renderDropIndicator?: RenderDropIndicator;
|
|
15
16
|
onReorder?: (items: ITEM[]) => void;
|
|
17
|
+
stacked?: {
|
|
18
|
+
/** Offset between stacked items */
|
|
19
|
+
offset: number;
|
|
20
|
+
/** Scaling factor between items */
|
|
21
|
+
scaleFactor: number;
|
|
22
|
+
/** Maximum number of items to stack, others will be hidden */
|
|
23
|
+
maxDepth: number;
|
|
24
|
+
};
|
|
16
25
|
}
|
|
17
26
|
export declare function AnimatedList<ITEM>(props: AnimatedListProps<ITEM>): JSX.Element;
|
|
18
|
-
type ChildrenFunction<ITEM> = (item: ITEM, index: number) => ReactNode;
|
|
27
|
+
type ChildrenFunction<ITEM> = (item: ITEM, index: number, state: State<ITEM>["state"]) => ReactNode;
|
|
19
28
|
export {};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
|
|
2
|
+
import { type IconName } from "../Icon";
|
|
3
|
+
export interface BadgeProps {
|
|
3
4
|
title: ReactNode;
|
|
4
|
-
color?: "
|
|
5
|
-
size?: "
|
|
6
|
-
maxWidth?: 150 | 250
|
|
7
|
-
onClose?: (
|
|
8
|
-
icon?:
|
|
9
|
-
onClick?: (
|
|
10
|
-
selected?: boolean
|
|
11
|
-
onMouseEnter?: (
|
|
12
|
-
onMouseLeave?: (
|
|
13
|
-
}
|
|
5
|
+
color?: "grey" | "green" | "amber" | "purple" | "tomato";
|
|
6
|
+
size?: "large" | "medium";
|
|
7
|
+
maxWidth?: 150 | 250;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
icon?: IconName;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
onMouseEnter?: () => void;
|
|
13
|
+
onMouseLeave?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R,
|
|
2
|
-
title: import("react").ReactNode;
|
|
3
|
-
color?: "green" | "grey" | "purple" | "tomato" | "amber" | undefined;
|
|
4
|
-
size?: "medium" | "large" | undefined;
|
|
5
|
-
maxWidth?: 150 | 250 | undefined;
|
|
6
|
-
onClose?: (() => void) | undefined;
|
|
7
|
-
icon?: "visibility" | "search" | "link" | "description" | "code" | "block" | "add" | "alert" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "autoFixHigh" | "calendarToday" | "centerFocusWeak" | "check" | "checkBox" | "checkBoxOutlinedBlank" | "chevronLeft" | "chevronRight" | "close" | "cloud" | "cloudUpload" | "colorLens" | "contentCopy" | "crop" | "cropLandscape" | "cropPortrait" | "dataObject" | "database" | "dateRange" | "delete" | "desktopWindows" | "dragIndicator" | "driveFileMove" | "edit" | "event" | "expandLess" | "expandMore" | "firstPage" | "folder" | "formatBold" | "formatClear" | "formatItalic" | "formatListBulleted" | "formatListNumbered" | "formatTextDirectionRToL" | "hideImage" | "image" | "imageSearch" | "insertDriveFile" | "inventory" | "keyboardArrowDown" | "keyboardArrowUp" | "label" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "moreVert" | "musicNote" | "notes" | "openInNew" | "phoneIphone" | "photo" | "pin" | "place" | "preview" | "prismic" | "public" | "refresh" | "save" | "schedule" | "smartDisplay" | "tabletMac" | "tag" | "textFields" | "toggleOff" | "unfoldMore" | "unsplash" | "viewDay" | "zoomOutMap" | undefined;
|
|
8
|
-
onClick?: (() => void) | undefined;
|
|
9
|
-
selected?: boolean | undefined;
|
|
10
|
-
onMouseEnter?: (() => void) | undefined;
|
|
11
|
-
onMouseLeave?: (() => void) | undefined;
|
|
12
|
-
}> & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./Badge").BadgeProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
2
|
export default _default;
|
|
14
3
|
export declare const Default: {
|
|
15
4
|
args: {
|
|
@@ -18,6 +7,7 @@ export declare const Default: {
|
|
|
18
7
|
size: string;
|
|
19
8
|
onClose: () => undefined;
|
|
20
9
|
icon: string;
|
|
10
|
+
selected: boolean;
|
|
21
11
|
};
|
|
22
12
|
name: string;
|
|
23
13
|
};
|
|
@@ -12,7 +12,7 @@ interface BlankSlateIconProps {
|
|
|
12
12
|
backgroundColor?: ThemeKeys<"color">;
|
|
13
13
|
borderColor?: ThemeKeys<"color">;
|
|
14
14
|
borderStyle?: CSSProperties["borderStyle"];
|
|
15
|
-
size?: "medium" | "large";
|
|
15
|
+
size?: "medium" | "large" | "xlarge";
|
|
16
16
|
}
|
|
17
17
|
export declare function BlankSlateIcon(props: BlankSlateIconProps): JSX.Element;
|
|
18
18
|
declare const titleSizeVariant: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
1
|
+
import { type CSSProperties, type ReactNode } from "react";
|
|
2
2
|
import { type ThemeColor } from "../../theme/colors";
|
|
3
3
|
import { type Sprinkles } from "../../theme/sprinkles.css";
|
|
4
4
|
export type BoxProps = {
|
|
@@ -32,6 +32,7 @@ export type BoxProps = {
|
|
|
32
32
|
overflow?: Sprinkles["overflow"];
|
|
33
33
|
gridColumn?: string;
|
|
34
34
|
gridRow?: string;
|
|
35
|
+
transform?: CSSProperties["transform"];
|
|
35
36
|
} & DisplayProps;
|
|
36
37
|
type DisplayProps = {
|
|
37
38
|
gap?: Sprinkles["gap"];
|
|
@@ -7,7 +7,7 @@ declare const meta: {
|
|
|
7
7
|
control: {
|
|
8
8
|
type: string;
|
|
9
9
|
};
|
|
10
|
-
options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "keyboardArrowDown", "keyboardArrowUp", "label", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "moreVert", "musicNote", "notes", "openInNew", "phoneIphone", "photo", "pin", "place", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "viewDay", "visibility", "zoomOutMap"];
|
|
10
|
+
options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "keyboardArrowDown", "keyboardArrowUp", "label", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "moreVert", "musicNote", "notes", "openInFull", "openInNew", "phoneIphone", "photo", "pin", "place", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "viewDay", "visibility", "zoomOutMap"];
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
};
|
|
@@ -23,8 +23,8 @@ export declare const Default: {
|
|
|
23
23
|
flexContent?: boolean | undefined;
|
|
24
24
|
textWeight?: "bold" | "normal" | undefined;
|
|
25
25
|
sx?: import("../../theme/new").SX | undefined;
|
|
26
|
-
startIcon?: "visibility" | "search" | "link" | "description" | "code" | "block" | "add" | "alert" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "autoFixHigh" | "calendarToday" | "centerFocusWeak" | "check" | "checkBox" | "checkBoxOutlinedBlank" | "chevronLeft" | "chevronRight" | "close" | "cloud" | "cloudUpload" | "colorLens" | "contentCopy" | "crop" | "cropLandscape" | "cropPortrait" | "dataObject" | "database" | "dateRange" | "delete" | "desktopWindows" | "dragIndicator" | "driveFileMove" | "edit" | "event" | "expandLess" | "expandMore" | "firstPage" | "folder" | "formatBold" | "formatClear" | "formatItalic" | "formatListBulleted" | "formatListNumbered" | "formatTextDirectionRToL" | "hideImage" | "image" | "imageSearch" | "insertDriveFile" | "inventory" | "keyboardArrowDown" | "keyboardArrowUp" | "label" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "moreVert" | "musicNote" | "notes" | "openInNew" | "phoneIphone" | "photo" | "pin" | "place" | "preview" | "prismic" | "public" | "refresh" | "save" | "schedule" | "smartDisplay" | "tabletMac" | "tag" | "textFields" | "toggleOff" | "unfoldMore" | "unsplash" | "viewDay" | "zoomOutMap" | undefined;
|
|
27
|
-
endIcon?: "visibility" | "search" | "link" | "description" | "code" | "block" | "add" | "alert" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "autoFixHigh" | "calendarToday" | "centerFocusWeak" | "check" | "checkBox" | "checkBoxOutlinedBlank" | "chevronLeft" | "chevronRight" | "close" | "cloud" | "cloudUpload" | "colorLens" | "contentCopy" | "crop" | "cropLandscape" | "cropPortrait" | "dataObject" | "database" | "dateRange" | "delete" | "desktopWindows" | "dragIndicator" | "driveFileMove" | "edit" | "event" | "expandLess" | "expandMore" | "firstPage" | "folder" | "formatBold" | "formatClear" | "formatItalic" | "formatListBulleted" | "formatListNumbered" | "formatTextDirectionRToL" | "hideImage" | "image" | "imageSearch" | "insertDriveFile" | "inventory" | "keyboardArrowDown" | "keyboardArrowUp" | "label" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "moreVert" | "musicNote" | "notes" | "openInNew" | "phoneIphone" | "photo" | "pin" | "place" | "preview" | "prismic" | "public" | "refresh" | "save" | "schedule" | "smartDisplay" | "tabletMac" | "tag" | "textFields" | "toggleOff" | "unfoldMore" | "unsplash" | "viewDay" | "zoomOutMap" | undefined;
|
|
26
|
+
startIcon?: "visibility" | "search" | "link" | "description" | "code" | "block" | "add" | "alert" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "autoFixHigh" | "calendarToday" | "centerFocusWeak" | "check" | "checkBox" | "checkBoxOutlinedBlank" | "chevronLeft" | "chevronRight" | "close" | "cloud" | "cloudUpload" | "colorLens" | "contentCopy" | "crop" | "cropLandscape" | "cropPortrait" | "dataObject" | "database" | "dateRange" | "delete" | "desktopWindows" | "dragIndicator" | "driveFileMove" | "edit" | "event" | "expandLess" | "expandMore" | "firstPage" | "folder" | "formatBold" | "formatClear" | "formatItalic" | "formatListBulleted" | "formatListNumbered" | "formatTextDirectionRToL" | "hideImage" | "image" | "imageSearch" | "insertDriveFile" | "inventory" | "keyboardArrowDown" | "keyboardArrowUp" | "label" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "moreVert" | "musicNote" | "notes" | "openInFull" | "openInNew" | "phoneIphone" | "photo" | "pin" | "place" | "preview" | "prismic" | "public" | "refresh" | "save" | "schedule" | "smartDisplay" | "tabletMac" | "tag" | "textFields" | "toggleOff" | "unfoldMore" | "unsplash" | "viewDay" | "zoomOutMap" | undefined;
|
|
27
|
+
endIcon?: "visibility" | "search" | "link" | "description" | "code" | "block" | "add" | "alert" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "autoFixHigh" | "calendarToday" | "centerFocusWeak" | "check" | "checkBox" | "checkBoxOutlinedBlank" | "chevronLeft" | "chevronRight" | "close" | "cloud" | "cloudUpload" | "colorLens" | "contentCopy" | "crop" | "cropLandscape" | "cropPortrait" | "dataObject" | "database" | "dateRange" | "delete" | "desktopWindows" | "dragIndicator" | "driveFileMove" | "edit" | "event" | "expandLess" | "expandMore" | "firstPage" | "folder" | "formatBold" | "formatClear" | "formatItalic" | "formatListBulleted" | "formatListNumbered" | "formatTextDirectionRToL" | "hideImage" | "image" | "imageSearch" | "insertDriveFile" | "inventory" | "keyboardArrowDown" | "keyboardArrowUp" | "label" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "moreVert" | "musicNote" | "notes" | "openInFull" | "openInNew" | "phoneIphone" | "photo" | "pin" | "place" | "preview" | "prismic" | "public" | "refresh" | "save" | "schedule" | "smartDisplay" | "tabletMac" | "tag" | "textFields" | "toggleOff" | "unfoldMore" | "unsplash" | "viewDay" | "zoomOutMap" | undefined;
|
|
28
28
|
renderStartIcon?: ((icon: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
29
29
|
renderEndIcon?: ((icon: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
30
30
|
onClick?: ((event: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type DialogContentProps } from "@radix-ui/react-dialog";
|
|
2
|
+
import { type FC, type PropsWithChildren, type ReactNode } from "react";
|
|
2
3
|
import { type IconName } from "../Icon";
|
|
3
4
|
export interface Custom {
|
|
4
5
|
width: number | "auto";
|
|
@@ -15,6 +16,7 @@ export interface DialogProps {
|
|
|
15
16
|
hasClose?: boolean;
|
|
16
17
|
size?: "small" | "large" | "fullscreen" | Custom;
|
|
17
18
|
position?: "center" | "bottomRight";
|
|
19
|
+
onPointerDownOutside?: DialogContentProps["onPointerDownOutside"];
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* A Dialog rendered in document.body.
|
|
@@ -35,6 +37,7 @@ type ActionsProps = {
|
|
|
35
37
|
loading?: boolean;
|
|
36
38
|
disabled?: boolean;
|
|
37
39
|
disabledTooltip?: string;
|
|
40
|
+
color?: "grey" | "purple" | "dark" | "tomato" | "amber" | "green";
|
|
38
41
|
};
|
|
39
42
|
cancel?: {
|
|
40
43
|
text: string;
|
|
@@ -18,8 +18,12 @@ export interface DialogOptionsProps {
|
|
|
18
18
|
* @default large
|
|
19
19
|
*/
|
|
20
20
|
width?: "large" | "auto";
|
|
21
|
+
/**
|
|
22
|
+
* The sticky footer of the dialog options panel.
|
|
23
|
+
*/
|
|
24
|
+
footer?: ReactNode;
|
|
21
25
|
}
|
|
22
|
-
export declare const DialogOptions: ({ value, onValueChange, children, width, padding }: DialogOptionsProps) => JSX.Element;
|
|
26
|
+
export declare const DialogOptions: ({ value, onValueChange, children, width, padding, footer }: DialogOptionsProps) => JSX.Element;
|
|
23
27
|
interface DialogOptionsItemProps {
|
|
24
28
|
value: string;
|
|
25
29
|
icon?: IconName;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { colors } from "../../theme/colors";
|
|
2
|
-
import {
|
|
2
|
+
import { textVariantMapping } from "../Text";
|
|
3
3
|
export interface EditableTextProps {
|
|
4
4
|
"aria-label": string;
|
|
5
5
|
value: string;
|
|
@@ -7,7 +7,7 @@ export interface EditableTextProps {
|
|
|
7
7
|
onBlur?: () => void;
|
|
8
8
|
onChange?: (value: string) => void;
|
|
9
9
|
color?: keyof typeof colors;
|
|
10
|
-
variant?: keyof typeof
|
|
10
|
+
variant?: keyof typeof textVariantMapping;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare function EditableText(props: EditableTextProps): JSX.Element;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type { FileDropItem } from "@react-aria/dnd";
|
|
2
1
|
export declare const validExtensions: {
|
|
3
2
|
readonly applicationAll: "application/*";
|
|
4
|
-
readonly textAll: "text/*";
|
|
5
3
|
readonly imageAll: "image/*";
|
|
6
4
|
readonly videoAll: "video/*";
|
|
7
5
|
readonly audioAll: "audio/*";
|
|
6
|
+
readonly csv: "text/csv";
|
|
8
7
|
};
|
|
9
8
|
export type MediaAssetType = "image" | "all";
|
|
10
|
-
export declare function isValidFileExtension(
|
|
9
|
+
export declare function isValidFileExtension(type: string, assetType: "image" | "all"): boolean;
|
|
11
10
|
export declare function getNonSpecificExtension(inputString: string): string;
|
|
@@ -16,6 +16,7 @@ export interface FormInputProps {
|
|
|
16
16
|
onKeyDown?: KeyboardEventHandler<HTMLInputElement>;
|
|
17
17
|
onValueChange?: (value: string) => void;
|
|
18
18
|
onPaste?: ClipboardEventHandler<HTMLInputElement>;
|
|
19
|
+
onBlur?: () => void;
|
|
19
20
|
}
|
|
20
21
|
export declare function FormInput(props: FormInputProps): JSX.Element;
|
|
21
22
|
type AutoCompleteValue = "username" | "current-password";
|
|
@@ -4,8 +4,9 @@ export interface FormSearchInputProps {
|
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
maxLength?: number;
|
|
6
6
|
isLoading?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
7
8
|
value: string;
|
|
8
|
-
sx?: SX;
|
|
9
9
|
onValueChange: (value: string) => void;
|
|
10
|
+
sx?: SX;
|
|
10
11
|
}
|
|
11
12
|
export declare function FormSearchInput(props: FormSearchInputProps): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const iconNames: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "keyboardArrowDown", "keyboardArrowUp", "label", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "moreVert", "musicNote", "notes", "openInNew", "phoneIphone", "photo", "pin", "place", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "viewDay", "visibility", "zoomOutMap"];
|
|
1
|
+
export declare const iconNames: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "keyboardArrowDown", "keyboardArrowUp", "label", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "moreVert", "musicNote", "notes", "openInFull", "openInNew", "phoneIphone", "photo", "pin", "place", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "viewDay", "visibility", "zoomOutMap"];
|
|
2
2
|
export type IconName = typeof iconNames[number];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MouseEvent } from "react";
|
|
2
2
|
import { type IconName } from "../Icon";
|
|
3
|
-
import
|
|
3
|
+
import { textVariantMapping } from "../Text";
|
|
4
4
|
import * as styles from "./InvisibleButton.css";
|
|
5
5
|
export interface InvisibleButtonProps {
|
|
6
6
|
buttonText: string;
|
|
@@ -9,7 +9,7 @@ export interface InvisibleButtonProps {
|
|
|
9
9
|
endIcon?: IconName;
|
|
10
10
|
onClick?: (event: MouseEvent) => void;
|
|
11
11
|
startIcon?: IconName;
|
|
12
|
-
textVariant?: keyof typeof
|
|
12
|
+
textVariant?: keyof typeof textVariantMapping;
|
|
13
13
|
inline?: boolean;
|
|
14
14
|
}
|
|
15
15
|
export declare const InvisibleButton: import("react").ForwardRefExoticComponent<InvisibleButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -7,9 +7,11 @@ interface MediaCardProps {
|
|
|
7
7
|
* @example "png"
|
|
8
8
|
*/
|
|
9
9
|
extension: string;
|
|
10
|
+
kind?: string;
|
|
10
11
|
width?: number;
|
|
11
12
|
height?: number;
|
|
12
13
|
selected?: boolean;
|
|
14
|
+
loading?: boolean;
|
|
13
15
|
/**
|
|
14
16
|
* The upload status of the media
|
|
15
17
|
* @default idle
|
|
@@ -32,4 +34,9 @@ interface MediaCardProps {
|
|
|
32
34
|
onCheckedChange?: (checked: boolean) => void;
|
|
33
35
|
}
|
|
34
36
|
export declare function MediaCard(props: MediaCardProps): JSX.Element;
|
|
37
|
+
interface MediaCardPlaceholderProps {
|
|
38
|
+
extension: MediaCardProps["extension"];
|
|
39
|
+
filename: MediaCardProps["filename"];
|
|
40
|
+
}
|
|
41
|
+
export declare function MediaCardPlaceholder(props: MediaCardPlaceholderProps): JSX.Element;
|
|
35
42
|
export {};
|
|
@@ -43,10 +43,12 @@ export declare const Default: {
|
|
|
43
43
|
url: string;
|
|
44
44
|
filename: string;
|
|
45
45
|
extension: string;
|
|
46
|
+
kind?: string | undefined;
|
|
46
47
|
width?: number | undefined;
|
|
47
48
|
height?: number | undefined;
|
|
48
49
|
selected?: boolean | undefined;
|
|
49
|
-
|
|
50
|
+
loading?: boolean | undefined;
|
|
51
|
+
status?: import("../MediaProgress").Status | undefined;
|
|
50
52
|
size?: number | undefined;
|
|
51
53
|
onCardClick?: (() => void) | undefined;
|
|
52
54
|
onCheckedChange?: ((checked: boolean) => void) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MediaCard } from "./MediaCard";
|
|
1
|
+
export { MediaCard, MediaCardPlaceholder } from "./MediaCard";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MediaProgress } from "./MediaProgress";
|
|
1
|
+
export { MediaProgress, type Status } from "./MediaProgress";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ThemeKeys } from "../../theme/new";
|
|
2
2
|
import { type IconName } from "../Icon";
|
|
3
3
|
export interface SelectButtonProps {
|
|
4
4
|
textContent: string;
|
|
5
5
|
onSelect: () => void;
|
|
6
6
|
icon?: IconName;
|
|
7
|
-
color?:
|
|
7
|
+
color?: ThemeKeys<"color">;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SX, ThemeKeys } from "../../theme/new";
|
|
2
2
|
export interface Props {
|
|
3
3
|
component?: "span";
|
|
4
|
-
borderRadius?: ThemeKeys<"borderRadius", 0 | 4 | 6 | "100%">;
|
|
4
|
+
borderRadius?: ThemeKeys<"borderRadius", 0 | 4 | 6 | 12 | "100%">;
|
|
5
5
|
color?: ThemeKeys<"color", "grey1" | "grey5">;
|
|
6
6
|
width?: number | string;
|
|
7
7
|
height?: number | string;
|
|
@@ -14,6 +14,7 @@ export declare function Skeleton(props: Props): import("react").DetailedReactHTM
|
|
|
14
14
|
height: string | number | undefined;
|
|
15
15
|
flexGrow?: 1 | undefined;
|
|
16
16
|
flexShrink?: 0 | undefined;
|
|
17
|
+
flexBasis?: 0 | undefined;
|
|
17
18
|
alignSelf?: "center" | "stretch" | undefined;
|
|
18
19
|
justifySelf?: "center" | "stretch" | undefined;
|
|
19
20
|
visibility?: "hidden" | "visible" | undefined;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import type { SX } from "../../theme/new";
|
|
1
2
|
export interface TabProps {
|
|
2
3
|
title: string;
|
|
3
4
|
selected?: boolean;
|
|
4
5
|
onSelect?: () => void;
|
|
6
|
+
outline?: boolean;
|
|
7
|
+
background?: "transparent";
|
|
8
|
+
sx?: SX;
|
|
5
9
|
}
|
|
6
10
|
export declare function Tab(props: TabProps): JSX.Element;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import type { SX } from "../../theme/new";
|
|
4
|
-
import * as styles from "./Text.css";
|
|
2
|
+
import { type SX, type ThemeKeys } from "../../theme/new";
|
|
5
3
|
export interface TextProps {
|
|
6
|
-
align?:
|
|
4
|
+
align?: "inherit" | "start" | "center" | "end";
|
|
7
5
|
children?: ReactNode;
|
|
8
6
|
className?: string;
|
|
9
|
-
color?:
|
|
7
|
+
color?: ThemeKeys<"color">;
|
|
10
8
|
component?: Component;
|
|
11
9
|
noWrap?: boolean;
|
|
12
|
-
variant?:
|
|
10
|
+
variant?: keyof typeof textVariantMapping;
|
|
13
11
|
noSelect?: boolean;
|
|
14
12
|
htmlFor?: string;
|
|
15
13
|
underline?: boolean;
|
|
@@ -18,5 +16,20 @@ export interface TextProps {
|
|
|
18
16
|
}
|
|
19
17
|
export declare const Text: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<HTMLElement>>;
|
|
20
18
|
type Component = "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "kbd" | "p" | "pre" | "span" | "label";
|
|
21
|
-
|
|
19
|
+
export declare const textVariantMapping: {
|
|
20
|
+
readonly normal: "p";
|
|
21
|
+
readonly bold: "p";
|
|
22
|
+
readonly italic: "p";
|
|
23
|
+
readonly small: "p";
|
|
24
|
+
readonly extraSmall: "p";
|
|
25
|
+
readonly smallBold: "p";
|
|
26
|
+
readonly smallItalic: "p";
|
|
27
|
+
readonly emphasized: "p";
|
|
28
|
+
readonly h1: "h1";
|
|
29
|
+
readonly h2: "h2";
|
|
30
|
+
readonly h3: "h3";
|
|
31
|
+
readonly h4: "h4";
|
|
32
|
+
readonly h5: "h5";
|
|
33
|
+
readonly inherit: "p";
|
|
34
|
+
};
|
|
22
35
|
export {};
|
|
@@ -6,9 +6,11 @@ export interface TextAreaProps {
|
|
|
6
6
|
onChange?: (value: string) => void;
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
readOnly?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
9
10
|
value?: string;
|
|
10
11
|
paddingLeft?: ThemeKeys<"space">;
|
|
11
12
|
paddingRight?: ThemeKeys<"space">;
|
|
12
13
|
sx?: SX;
|
|
14
|
+
onBlur?: () => void;
|
|
13
15
|
}
|
|
14
16
|
export declare function TextArea(props: TextAreaProps): JSX.Element;
|
|
@@ -3,7 +3,7 @@ declare const _default: import("@storybook/types").ComponentAnnotations<import("
|
|
|
3
3
|
anchor: React.ReactNode;
|
|
4
4
|
open: boolean;
|
|
5
5
|
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
6
|
-
icon?: "visibility" | "search" | "link" | "description" | "code" | "block" | "add" | "alert" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "autoFixHigh" | "calendarToday" | "centerFocusWeak" | "check" | "checkBox" | "checkBoxOutlinedBlank" | "chevronLeft" | "chevronRight" | "close" | "cloud" | "cloudUpload" | "colorLens" | "contentCopy" | "crop" | "cropLandscape" | "cropPortrait" | "dataObject" | "database" | "dateRange" | "delete" | "desktopWindows" | "dragIndicator" | "driveFileMove" | "edit" | "event" | "expandLess" | "expandMore" | "firstPage" | "folder" | "formatBold" | "formatClear" | "formatItalic" | "formatListBulleted" | "formatListNumbered" | "formatTextDirectionRToL" | "hideImage" | "image" | "imageSearch" | "insertDriveFile" | "inventory" | "keyboardArrowDown" | "keyboardArrowUp" | "label" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "moreVert" | "musicNote" | "notes" | "openInNew" | "phoneIphone" | "photo" | "pin" | "place" | "preview" | "prismic" | "public" | "refresh" | "save" | "schedule" | "smartDisplay" | "tabletMac" | "tag" | "textFields" | "toggleOff" | "unfoldMore" | "unsplash" | "viewDay" | "zoomOutMap" | undefined;
|
|
6
|
+
icon?: "visibility" | "search" | "link" | "description" | "code" | "block" | "add" | "alert" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "autoFixHigh" | "calendarToday" | "centerFocusWeak" | "check" | "checkBox" | "checkBoxOutlinedBlank" | "chevronLeft" | "chevronRight" | "close" | "cloud" | "cloudUpload" | "colorLens" | "contentCopy" | "crop" | "cropLandscape" | "cropPortrait" | "dataObject" | "database" | "dateRange" | "delete" | "desktopWindows" | "dragIndicator" | "driveFileMove" | "edit" | "event" | "expandLess" | "expandMore" | "firstPage" | "folder" | "formatBold" | "formatClear" | "formatItalic" | "formatListBulleted" | "formatListNumbered" | "formatTextDirectionRToL" | "hideImage" | "image" | "imageSearch" | "insertDriveFile" | "inventory" | "keyboardArrowDown" | "keyboardArrowUp" | "label" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "moreVert" | "musicNote" | "notes" | "openInFull" | "openInNew" | "phoneIphone" | "photo" | "pin" | "place" | "preview" | "prismic" | "public" | "refresh" | "save" | "schedule" | "smartDisplay" | "tabletMac" | "tag" | "textFields" | "toggleOff" | "unfoldMore" | "unsplash" | "viewDay" | "zoomOutMap" | undefined;
|
|
7
7
|
loadingIndicator?: boolean | undefined;
|
|
8
8
|
title: string;
|
|
9
9
|
seconds: number;
|
|
@@ -18,7 +18,7 @@ export declare const Default: {
|
|
|
18
18
|
anchor: React.ReactNode;
|
|
19
19
|
open: boolean;
|
|
20
20
|
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
21
|
-
icon?: "visibility" | "search" | "link" | "description" | "code" | "block" | "add" | "alert" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "autoFixHigh" | "calendarToday" | "centerFocusWeak" | "check" | "checkBox" | "checkBoxOutlinedBlank" | "chevronLeft" | "chevronRight" | "close" | "cloud" | "cloudUpload" | "colorLens" | "contentCopy" | "crop" | "cropLandscape" | "cropPortrait" | "dataObject" | "database" | "dateRange" | "delete" | "desktopWindows" | "dragIndicator" | "driveFileMove" | "edit" | "event" | "expandLess" | "expandMore" | "firstPage" | "folder" | "formatBold" | "formatClear" | "formatItalic" | "formatListBulleted" | "formatListNumbered" | "formatTextDirectionRToL" | "hideImage" | "image" | "imageSearch" | "insertDriveFile" | "inventory" | "keyboardArrowDown" | "keyboardArrowUp" | "label" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "moreVert" | "musicNote" | "notes" | "openInNew" | "phoneIphone" | "photo" | "pin" | "place" | "preview" | "prismic" | "public" | "refresh" | "save" | "schedule" | "smartDisplay" | "tabletMac" | "tag" | "textFields" | "toggleOff" | "unfoldMore" | "unsplash" | "viewDay" | "zoomOutMap" | undefined;
|
|
21
|
+
icon?: "visibility" | "search" | "link" | "description" | "code" | "block" | "add" | "alert" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "autoFixHigh" | "calendarToday" | "centerFocusWeak" | "check" | "checkBox" | "checkBoxOutlinedBlank" | "chevronLeft" | "chevronRight" | "close" | "cloud" | "cloudUpload" | "colorLens" | "contentCopy" | "crop" | "cropLandscape" | "cropPortrait" | "dataObject" | "database" | "dateRange" | "delete" | "desktopWindows" | "dragIndicator" | "driveFileMove" | "edit" | "event" | "expandLess" | "expandMore" | "firstPage" | "folder" | "formatBold" | "formatClear" | "formatItalic" | "formatListBulleted" | "formatListNumbered" | "formatTextDirectionRToL" | "hideImage" | "image" | "imageSearch" | "insertDriveFile" | "inventory" | "keyboardArrowDown" | "keyboardArrowUp" | "label" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "moreVert" | "musicNote" | "notes" | "openInFull" | "openInNew" | "phoneIphone" | "photo" | "pin" | "place" | "preview" | "prismic" | "public" | "refresh" | "save" | "schedule" | "smartDisplay" | "tabletMac" | "tag" | "textFields" | "toggleOff" | "unfoldMore" | "unsplash" | "viewDay" | "zoomOutMap" | undefined;
|
|
22
22
|
loadingIndicator?: boolean | undefined;
|
|
23
23
|
title: string;
|
|
24
24
|
seconds: number;
|
|
@@ -19,13 +19,13 @@ declare const meta: {
|
|
|
19
19
|
control: {
|
|
20
20
|
type: string;
|
|
21
21
|
};
|
|
22
|
-
options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "keyboardArrowDown", "keyboardArrowUp", "label", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "moreVert", "musicNote", "notes", "openInNew", "phoneIphone", "photo", "pin", "place", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "viewDay", "visibility", "zoomOutMap"];
|
|
22
|
+
options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "keyboardArrowDown", "keyboardArrowUp", "label", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "moreVert", "musicNote", "notes", "openInFull", "openInNew", "phoneIphone", "photo", "pin", "place", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "viewDay", "visibility", "zoomOutMap"];
|
|
23
23
|
};
|
|
24
24
|
endIcon: {
|
|
25
25
|
control: {
|
|
26
26
|
type: string;
|
|
27
27
|
};
|
|
28
|
-
options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "keyboardArrowDown", "keyboardArrowUp", "label", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "moreVert", "musicNote", "notes", "openInNew", "phoneIphone", "photo", "pin", "place", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "viewDay", "visibility", "zoomOutMap"];
|
|
28
|
+
options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "keyboardArrowDown", "keyboardArrowUp", "label", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "moreVert", "musicNote", "notes", "openInFull", "openInNew", "phoneIphone", "photo", "pin", "place", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "viewDay", "visibility", "zoomOutMap"];
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
+
import type { IconName } from "../Icon";
|
|
2
3
|
type ToggleButtonGroupProps<Value extends string> = {
|
|
3
4
|
children?: ReactNode;
|
|
4
5
|
disabled?: boolean;
|
|
@@ -21,8 +22,8 @@ interface ToggleButtonGroupItemProps {
|
|
|
21
22
|
children?: ReactNode;
|
|
22
23
|
disabled?: boolean;
|
|
23
24
|
value: string;
|
|
24
|
-
endIcon?:
|
|
25
|
-
startIcon?:
|
|
25
|
+
endIcon?: IconName;
|
|
26
|
+
startIcon?: IconName;
|
|
26
27
|
}
|
|
27
28
|
export declare function ToggleButtonGroupItem(props: ToggleButtonGroupItemProps): JSX.Element;
|
|
28
29
|
export {};
|