@prismicio/editor-ui 0.4.28 → 0.4.30
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/README.md +0 -4
- package/dist/components/Alert/Alert.stories.d.ts +1 -1
- package/dist/components/AnimatedElement/AnimatedElement.d.ts +1 -1
- package/dist/components/AnimatedElement/AnimatedElement.stories.d.ts +1 -1
- package/dist/components/AnimatedList/AnimatedList.d.ts +1 -1
- package/dist/components/AnimatedList/AnimatedList.stories.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/BaseInput/BaseInput.d.ts +1 -1
- package/dist/components/BlankSlate/BlankSlate.d.ts +1 -1
- package/dist/components/Box/Box.d.ts +1 -1
- package/dist/components/Box/Box.stories.d.ts +33 -33
- package/dist/components/Button/Button.d.ts +4 -2
- package/dist/components/Button/Button.stories.d.ts +6 -5
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +1 -1
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/Card.stories.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +2 -2
- package/dist/components/ComboBox/ComboBox.d.ts +4 -3
- package/dist/components/ComboBox/useComboBox.d.ts +11 -0
- package/dist/components/Cropper/Cropper.stories.d.ts +2 -2
- package/dist/components/DateInput/DateInput.d.ts +1 -1
- package/dist/components/DateInput/DateInput.stories.d.ts +1 -1
- package/dist/components/Dialog/Options/DialogOptions.d.ts +1 -1
- package/dist/components/EditableText/EditableText.d.ts +1 -1
- package/dist/components/ErrorBoundary/DefaultErrorMessage.d.ts +1 -1
- package/dist/components/Form/Form.d.ts +1 -1
- package/dist/components/Form/Form.stories.d.ts +1 -1
- package/dist/components/Form/FormDateInput.d.ts +1 -1
- package/dist/components/Form/FormField.d.ts +1 -1
- package/dist/components/Form/FormInput.d.ts +1 -1
- package/dist/components/Form/FormSearchInput.d.ts +2 -1
- package/dist/components/Gradient/Gradient.d.ts +1 -1
- package/dist/components/Group/Group.d.ts +2 -4
- package/dist/components/Group/Group.stories.d.ts +2 -30
- package/dist/components/Group/GroupItem.d.ts +0 -1
- package/dist/components/HairlineButton/HairlineButton.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/iconNames.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts +3 -1
- package/dist/components/Image/Image.d.ts +1 -1
- package/dist/components/LazyRender/LazyRender.d.ts +1 -1
- package/dist/components/List/UnorderedList.d.ts +1 -1
- package/dist/components/List/UnorderedList.stories.d.ts +1 -1
- package/dist/components/MediaCard/MediaCard.d.ts +5 -0
- package/dist/components/NumberInput/NumberInput.d.ts +1 -1
- package/dist/components/OverflowContainer/OverflowContainer.d.ts +1 -1
- package/dist/components/ProgressCircle/ProgressCircle.d.ts +1 -1
- package/dist/components/Radio/RadioBigCard.d.ts +12 -0
- package/dist/components/Radio/RadioGroup.d.ts +2 -1
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/SelectButton/SelectButton.d.ts +1 -1
- package/dist/components/Separator/Separator.d.ts +1 -1
- package/dist/components/Separator/Separator.stories.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +12 -12
- package/dist/components/Skeleton/Skeleton.stories.d.ts +2 -2
- package/dist/components/Slider/Slider.stories.d.ts +2 -2
- package/dist/components/Suspense/AnimatedSuspense.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Tab/Tab.d.ts +1 -1
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/TextArea/TextArea.d.ts +1 -1
- package/dist/components/TextInput/TextInput.d.ts +1 -1
- package/dist/components/ThemeProvider.d.ts +3 -4
- package/dist/components/Toast/Toast.stories.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
- package/dist/components/Toolbar/Toolbar.d.ts +1 -1
- package/dist/components/Video/Video.d.ts +1 -1
- package/dist/components/Video/Video.stories.d.ts +2 -2
- package/dist/components/Window/Window.d.ts +1 -1
- package/dist/index.cjs.js +152 -148
- package/dist/index.d.ts +2 -9
- package/dist/index.es.js +20556 -20920
- package/dist/style.css +1 -1
- package/dist/theme/{new/index.d.ts → index.d.ts} +1 -1
- package/dist/theme/{new/useMediaQuery.d.ts → useMediaQuery.d.ts} +1 -0
- package/package.json +3 -7
- package/dist/components/Accordion/Accordion.d.ts +0 -16
- package/dist/components/Accordion/Accordion.stories.d.ts +0 -33
- package/dist/components/Accordion/index.d.ts +0 -3
- package/dist/components/Accordion/useAccordion.d.ts +0 -18
- package/dist/theme/colors.d.ts +0 -223
- package/dist/theme/mode.css.d.ts +0 -1
- package/dist/theme/selectors.d.ts +0 -48
- package/dist/theme/sprinkles.css.d.ts +0 -29801
- package/dist/theme/vars.css.d.ts +0 -487
- /package/dist/theme/{new/Theme.stories.d.ts → Theme.stories.d.ts} +0 -0
- /package/dist/theme/{new/install.d.ts → install.d.ts} +0 -0
- /package/dist/theme/{new/sx.d.ts → sx.d.ts} +0 -0
- /package/dist/theme/{new/theme.d.ts → theme.d.ts} +0 -0
- /package/dist/theme/{new/utils.d.ts → utils.d.ts} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const iconNames: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "biToggle", "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", "migrationRelease", "moreVert", "multipleStop", "musicNote", "notes", "openInFull", "openInNew", "phoneIphone", "photo", "pin", "place", "playCircle", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "upload", "viewDay", "visibility", "zoomOutMap"];
|
|
1
|
+
export declare const iconNames: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "biToggle", "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", "language", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "migrationRelease", "moreVert", "multipleStop", "musicNote", "notes", "openInFull", "openInNew", "phoneIphone", "photo", "pin", "place", "playCircle", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "translate", "unfoldMore", "unsplash", "upload", "viewDay", "visibility", "zoomOutMap"];
|
|
2
2
|
export type IconName = typeof iconNames[number];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type MouseEvent } from "react";
|
|
2
|
+
import type { Keys } from "react-hotkeys-hook";
|
|
2
3
|
import type { IconName } from "../Icon/iconNames";
|
|
3
4
|
export interface IconButtonProps {
|
|
4
5
|
color?: Color;
|
|
@@ -6,7 +7,8 @@ export interface IconButtonProps {
|
|
|
6
7
|
hiddenLabel?: string;
|
|
7
8
|
icon: IconName | JSX.Element;
|
|
8
9
|
loading?: boolean;
|
|
9
|
-
|
|
10
|
+
hotkeys?: Keys;
|
|
11
|
+
onClick?: (event: MouseEvent | KeyboardEvent) => void;
|
|
10
12
|
onMouseDown?: (event: MouseEvent) => void;
|
|
11
13
|
onMouseUp?: (event: MouseEvent) => void;
|
|
12
14
|
radius?: "full" | "medium";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import { type ThemeKeys } from "../../theme
|
|
2
|
+
import { type ThemeKeys } from "../../theme";
|
|
3
3
|
/**
|
|
4
4
|
* Lazily renders a child the first time it intersects with the viewport.
|
|
5
5
|
* Works with any vertical scrolling ancestor (direct or not).
|
|
@@ -16,7 +16,7 @@ export declare const Default: {
|
|
|
16
16
|
name: string;
|
|
17
17
|
render: (args: {
|
|
18
18
|
children?: import("react").ReactNode;
|
|
19
|
-
sx?: import("../../theme
|
|
19
|
+
sx?: import("../../theme").SX | undefined;
|
|
20
20
|
}) => JSX.Element;
|
|
21
21
|
args: {
|
|
22
22
|
children: JSX.Element;
|
|
@@ -41,6 +41,11 @@ interface MediaCardProps {
|
|
|
41
41
|
* @param checked - The new checked state of the checkbox
|
|
42
42
|
*/
|
|
43
43
|
onCheckedChange?: (checked: boolean) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Function called when Add a tag is clicked
|
|
46
|
+
* @description This only affects the Add a tag button, not the card
|
|
47
|
+
*/
|
|
48
|
+
onAddTagClick?: () => void;
|
|
44
49
|
}
|
|
45
50
|
export declare function MediaCard(props: MediaCardProps): JSX.Element;
|
|
46
51
|
interface MediaCardPlaceholderProps {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type IconName } from "../Icon";
|
|
2
|
+
export interface RadioBigCardProps {
|
|
3
|
+
icon: IconName;
|
|
4
|
+
title: string;
|
|
5
|
+
badge?: {
|
|
6
|
+
icon: IconName;
|
|
7
|
+
title: string;
|
|
8
|
+
};
|
|
9
|
+
description: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function RadioBigCard(props: RadioBigCardProps): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import type { SX } from "../../theme
|
|
2
|
+
import type { SX } from "../../theme";
|
|
3
3
|
export interface RadioGroupProps<VALUE extends string> {
|
|
4
4
|
values: readonly VALUE[];
|
|
5
5
|
selectedValue: VALUE;
|
|
@@ -12,6 +12,7 @@ export interface RadioGroupProps<VALUE extends string> {
|
|
|
12
12
|
export declare function RadioGroup<VALUE extends string>(props: RadioGroupProps<VALUE>): JSX.Element;
|
|
13
13
|
interface RadioItemContextValue {
|
|
14
14
|
value: string;
|
|
15
|
+
isSelected: boolean;
|
|
15
16
|
evenItemSize: boolean;
|
|
16
17
|
}
|
|
17
18
|
export declare function useRadioItem(): RadioItemContextValue;
|
|
@@ -24,7 +24,7 @@ export declare const Default: {
|
|
|
24
24
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
25
25
|
decorative?: boolean | undefined;
|
|
26
26
|
style?: "dashed" | "solid" | undefined;
|
|
27
|
-
sx?: import("../../theme
|
|
27
|
+
sx?: import("../../theme").SX | undefined;
|
|
28
28
|
ref?: import("react").Ref<HTMLDivElement> | undefined;
|
|
29
29
|
key?: import("react").Key | null | undefined;
|
|
30
30
|
}) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import type { SX, ThemeKeys } from "../../theme
|
|
2
|
+
import type { SX, ThemeKeys } from "../../theme";
|
|
3
3
|
export interface Props {
|
|
4
4
|
component?: "span";
|
|
5
5
|
borderRadius?: ThemeKeys<"borderRadius", 0 | 4 | 6 | 12 | "100%">;
|
|
@@ -25,16 +25,16 @@ export declare function Skeleton(props: Props): import("react").DetailedReactHTM
|
|
|
25
25
|
justifySelf?: "center" | "stretch" | undefined;
|
|
26
26
|
visibility?: "hidden" | "visible" | undefined;
|
|
27
27
|
position?: "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
|
28
|
-
marginLeft?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 |
|
|
29
|
-
marginRight?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 |
|
|
30
|
-
marginTop?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 |
|
|
31
|
-
marginBottom?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 |
|
|
32
|
-
marginInline?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 |
|
|
33
|
-
marginBlock?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 |
|
|
34
|
-
top?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 |
|
|
35
|
-
left?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 |
|
|
36
|
-
right?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 |
|
|
37
|
-
bottom?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 |
|
|
38
|
-
borderRadius?: 0 | 2 | 1 |
|
|
28
|
+
marginLeft?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
29
|
+
marginRight?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
30
|
+
marginTop?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
31
|
+
marginBottom?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
32
|
+
marginInline?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
33
|
+
marginBlock?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
34
|
+
top?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
35
|
+
left?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
36
|
+
right?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
37
|
+
bottom?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
38
|
+
borderRadius?: 0 | 2 | 1 | "50%" | "100%" | "inherit" | 4 | 6 | 8 | 10 | 12 | undefined;
|
|
39
39
|
};
|
|
40
40
|
}, HTMLElement>;
|
|
@@ -37,12 +37,12 @@ export default meta;
|
|
|
37
37
|
export declare const Default: {
|
|
38
38
|
render: (args: {
|
|
39
39
|
component?: "span" | undefined;
|
|
40
|
-
borderRadius?: 0 | 4 | 6 | 12 |
|
|
40
|
+
borderRadius?: 0 | "100%" | 4 | 6 | 12 | undefined;
|
|
41
41
|
color?: "grey1" | "grey5" | undefined;
|
|
42
42
|
width?: string | number | undefined;
|
|
43
43
|
height?: string | number | undefined;
|
|
44
44
|
children?: import("react").ReactNode;
|
|
45
|
-
sx?: import("../../theme
|
|
45
|
+
sx?: import("../../theme").SX | undefined;
|
|
46
46
|
}) => JSX.Element;
|
|
47
47
|
args: {
|
|
48
48
|
width: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, Readonly<Pick<import("@radix-ui/react-slider").SliderProps, "value" | "
|
|
1
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, Readonly<Pick<import("@radix-ui/react-slider").SliderProps, "value" | "min" | "max" | "step" | "onValueChange">>>;
|
|
2
2
|
export default _default;
|
|
3
3
|
export declare const Default: {
|
|
4
|
-
render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Readonly<Pick<import("@radix-ui/react-slider").SliderProps, "value" | "
|
|
4
|
+
render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Readonly<Pick<import("@radix-ui/react-slider").SliderProps, "value" | "min" | "max" | "step" | "onValueChange">>>;
|
|
5
5
|
args: {
|
|
6
6
|
min: number;
|
|
7
7
|
max: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AnchorHTMLAttributes, type ReactNode } from "react";
|
|
2
|
-
import { type SX, type ThemeKeys } from "../../theme
|
|
2
|
+
import { type SX, type ThemeKeys } from "../../theme";
|
|
3
3
|
interface BaseTextProps {
|
|
4
4
|
align?: "inherit" | "start" | "center" | "end";
|
|
5
5
|
children?: ReactNode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import * as styles from "../theme/mode.css";
|
|
1
|
+
import { type ReactNode } from "react";
|
|
3
2
|
export interface ThemeProviderProps {
|
|
4
3
|
children?: ReactNode;
|
|
5
|
-
mode?:
|
|
4
|
+
mode?: "light" | "dark" | "system";
|
|
6
5
|
}
|
|
7
|
-
export declare
|
|
6
|
+
export declare function ThemeProvider(props: ThemeProviderProps): 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?: "
|
|
6
|
+
icon?: "translate" | "visibility" | "search" | "link" | "description" | "code" | "add" | "alert" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "autoFixHigh" | "biToggle" | "block" | "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" | "language" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "migrationRelease" | "moreVert" | "multipleStop" | "musicNote" | "notes" | "openInFull" | "openInNew" | "phoneIphone" | "photo" | "pin" | "place" | "playCircle" | "preview" | "prismic" | "public" | "refresh" | "save" | "schedule" | "smartDisplay" | "tabletMac" | "tag" | "textFields" | "toggleOff" | "unfoldMore" | "unsplash" | "upload" | "viewDay" | "zoomOutMap" | undefined;
|
|
7
7
|
loadingIndicator?: boolean | undefined;
|
|
8
8
|
title: string;
|
|
9
9
|
seconds?: number | undefined;
|
|
@@ -21,7 +21,7 @@ export declare const Default: {
|
|
|
21
21
|
anchor: React.ReactNode;
|
|
22
22
|
open: boolean;
|
|
23
23
|
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
24
|
-
icon?: "
|
|
24
|
+
icon?: "translate" | "visibility" | "search" | "link" | "description" | "code" | "add" | "alert" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "autoFixHigh" | "biToggle" | "block" | "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" | "language" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "migrationRelease" | "moreVert" | "multipleStop" | "musicNote" | "notes" | "openInFull" | "openInNew" | "phoneIphone" | "photo" | "pin" | "place" | "playCircle" | "preview" | "prismic" | "public" | "refresh" | "save" | "schedule" | "smartDisplay" | "tabletMac" | "tag" | "textFields" | "toggleOff" | "unfoldMore" | "unsplash" | "upload" | "viewDay" | "zoomOutMap" | undefined;
|
|
25
25
|
loadingIndicator?: boolean | undefined;
|
|
26
26
|
title: string;
|
|
27
27
|
seconds?: number | undefined;
|
|
@@ -20,13 +20,13 @@ declare const meta: {
|
|
|
20
20
|
control: {
|
|
21
21
|
type: string;
|
|
22
22
|
};
|
|
23
|
-
options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "biToggle", "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", "migrationRelease", "moreVert", "multipleStop", "musicNote", "notes", "openInFull", "openInNew", "phoneIphone", "photo", "pin", "place", "playCircle", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "upload", "viewDay", "visibility", "zoomOutMap"];
|
|
23
|
+
options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "biToggle", "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", "language", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "migrationRelease", "moreVert", "multipleStop", "musicNote", "notes", "openInFull", "openInNew", "phoneIphone", "photo", "pin", "place", "playCircle", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "translate", "unfoldMore", "unsplash", "upload", "viewDay", "visibility", "zoomOutMap"];
|
|
24
24
|
};
|
|
25
25
|
endIcon: {
|
|
26
26
|
control: {
|
|
27
27
|
type: string;
|
|
28
28
|
};
|
|
29
|
-
options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "biToggle", "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", "migrationRelease", "moreVert", "multipleStop", "musicNote", "notes", "openInFull", "openInNew", "phoneIphone", "photo", "pin", "place", "playCircle", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "upload", "viewDay", "visibility", "zoomOutMap"];
|
|
29
|
+
options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "biToggle", "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", "language", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "migrationRelease", "moreVert", "multipleStop", "musicNote", "notes", "openInFull", "openInNew", "phoneIphone", "photo", "pin", "place", "playCircle", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "translate", "unfoldMore", "unsplash", "upload", "viewDay", "visibility", "zoomOutMap"];
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ToolbarPrimitive from "@radix-ui/react-toolbar";
|
|
2
2
|
import { type MouseEvent, type ReactNode } from "react";
|
|
3
|
-
import type { SX } from "../../theme
|
|
3
|
+
import type { SX } from "../../theme";
|
|
4
4
|
import type { IconName } from "../Icon";
|
|
5
5
|
export interface ToolbarProps {
|
|
6
6
|
children?: ReactNode;
|
|
@@ -22,12 +22,12 @@ export declare const Default: {
|
|
|
22
22
|
src: string;
|
|
23
23
|
loop?: boolean | undefined;
|
|
24
24
|
autoPlay?: boolean | undefined;
|
|
25
|
-
sizing?: "
|
|
25
|
+
sizing?: "contain" | "none" | "cover" | undefined;
|
|
26
26
|
borderRadius?: 0 | 4 | undefined;
|
|
27
27
|
boxShadow?: "3" | undefined;
|
|
28
28
|
animateOnLoad?: boolean | undefined;
|
|
29
29
|
withControls?: boolean | undefined;
|
|
30
|
-
sx?: import("../../theme
|
|
30
|
+
sx?: import("../../theme").SX | undefined;
|
|
31
31
|
onLoad?: (() => void) | undefined;
|
|
32
32
|
}) => JSX.Element;
|
|
33
33
|
args: {
|