@prismicio/editor-ui 0.4.61 → 0.4.62-alpha.jp-table-render-default-layout.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ActionList/ActionList.stories.d.ts +22 -426
- package/dist/components/Alert/Alert.stories.d.ts +4 -4
- package/dist/components/AnimatedElement/AnimatedElement.stories.d.ts +4 -4
- package/dist/components/AnimatedList/AnimatedList.stories.d.ts +6 -6
- package/dist/components/Avatar/Avatar.stories.d.ts +33 -11
- package/dist/components/BackgroundIcon/BackgroundIcon.stories.d.ts +9 -4
- package/dist/components/Badge/Badge.stories.d.ts +31 -11
- package/dist/components/Banner/Banner.stories.d.ts +2 -2
- package/dist/components/BaseInput/BaseInput.stories.d.ts +35 -7
- package/dist/components/BlankSlate/BlankSlate.stories.d.ts +21 -6
- package/dist/components/Box/Box.stories.d.ts +1 -1
- package/dist/components/Button/Button.stories.d.ts +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +4 -4
- package/dist/components/Calendar/Calendar.stories.d.ts +17 -7
- package/dist/components/Card/Card.stories.d.ts +4 -4
- package/dist/components/Card/PreviewCard.stories.d.ts +1 -1
- package/dist/components/Carousel/Carousel.stories.d.ts +6 -14
- package/dist/components/Checkbox/Checkbox.stories.d.ts +15 -2
- package/dist/components/CheckerBoard/CheckerBoard.stories.d.ts +8 -6
- package/dist/components/CodeBlock/CodeBlock.stories.d.ts +3 -3
- package/dist/components/ColorInput/ColorInput.stories.d.ts +11 -7
- package/dist/components/ComboBox/ComboBox.stories.d.ts +2 -2
- package/dist/components/ConjoinedIcons/ConjoinedIcons.stories.d.ts +19 -1
- package/dist/components/ContentEditable/useEditor.d.ts +1 -2
- package/dist/components/Cropper/Cropper.stories.d.ts +6 -28
- package/dist/components/DateInput/DateInput.stories.d.ts +2 -1
- package/dist/components/Dialog/Dialog.stories.d.ts +43 -37
- package/dist/components/Dot/Dot.stories.d.ts +1 -1
- package/dist/components/Draggable/Draggable.stories.d.ts +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +34 -7
- package/dist/components/EditableText/EditableText.stories.d.ts +20 -10
- package/dist/components/ErrorBoundary/ErrorBoundary.stories.d.ts +14 -7
- package/dist/components/Field/Field.stories.d.ts +4 -4
- package/dist/components/FieldSet/FieldSet.stories.d.ts +30 -7
- package/dist/components/FileUpload/FileDropZone.d.ts +1 -0
- package/dist/components/FileUpload/FileDropZone.stories.d.ts +9 -9
- package/dist/components/FilterField/FilterField.stories.d.ts +8 -17
- package/dist/components/Form/Form.stories.d.ts +1 -1
- package/dist/components/Gradient/Gradient.stories.d.ts +13 -14
- package/dist/components/HairlineButton/HairlineButton.stories.d.ts +28 -11
- package/dist/components/Icon/Icon.stories.d.ts +20 -8
- package/dist/components/IconButton/IconButton.stories.d.ts +15 -7
- package/dist/components/Image/Image.stories.d.ts +20 -9
- package/dist/components/LazyRender/LazyRender.stories.d.ts +15 -6
- package/dist/components/Line/Line.stories.d.ts +2 -2
- package/dist/components/List/UnorderedList.stories.d.ts +1 -1
- package/dist/components/MediaCard/MediaCard.stories.d.ts +2 -2
- package/dist/components/NumberInput/NumberInput.stories.d.ts +27 -8
- package/dist/components/OverflowContainer/OverflowContainer.stories.d.ts +2 -17
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +5 -94
- package/dist/components/ProgressCircle/ProgressCircle.stories.d.ts +9 -5
- package/dist/components/Radio/RadioGroup.stories.d.ts +10 -8
- package/dist/components/ScrollArea/ScrollArea.stories.d.ts +21 -17
- package/dist/components/SearchInput/SearchInput.stories.d.ts +14 -9
- package/dist/components/Select/Select.stories.d.ts +10 -10
- package/dist/components/SelectCard/SelectCard.stories.d.ts +8 -11
- package/dist/components/Separator/Separator.stories.d.ts +3 -3
- package/dist/components/Skeleton/Skeleton.stories.d.ts +5 -5
- package/dist/components/Slice/Slice.stories.d.ts +10 -45
- package/dist/components/Slider/Slider.stories.d.ts +10 -9
- package/dist/components/Switch/Switch.stories.d.ts +2 -2
- package/dist/components/Table/Table.stories.d.ts +15 -5
- package/dist/components/Tag/Tag.stories.d.ts +14 -10
- package/dist/components/TagField/TagField.stories.d.ts +8 -11
- package/dist/components/Text/Text.stories.d.ts +6 -13
- package/dist/components/TextArea/TextArea.stories.d.ts +6 -9
- package/dist/components/TextInput/TextInput.stories.d.ts +27 -7
- package/dist/components/Toast/Toast.stories.d.ts +65 -6
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +4 -4
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts +5 -5
- package/dist/components/Toolbar/Toolbar.stories.d.ts +25 -6
- package/dist/components/Video/Video.stories.d.ts +2 -2
- package/dist/components/Window/Window.stories.d.ts +1 -1
- package/dist/index.cjs.js +169 -169
- package/dist/index.es.js +6000 -5954
- package/dist/style.css +1 -1
- package/package.json +7 -15
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
children:
|
|
8
|
-
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: import("./ScrollArea").ScrollAreaProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
6
|
+
argTypes: {
|
|
7
|
+
children: {
|
|
8
|
+
control: {
|
|
9
|
+
disable: true;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
direction: {
|
|
13
|
+
control: {
|
|
14
|
+
type: "select";
|
|
15
|
+
};
|
|
16
|
+
options: string[];
|
|
17
|
+
};
|
|
9
18
|
};
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
export declare const ScrollAreaWithControls: {
|
|
13
|
-
render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ScrollArea").ScrollAreaProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
-
args: {
|
|
15
|
-
children: JSX.Element[];
|
|
16
|
-
direction: string;
|
|
17
|
-
controls: boolean;
|
|
18
|
-
};
|
|
19
|
-
name: string;
|
|
19
|
+
render: (args: import("./ScrollArea").ScrollAreaProps & import("react").RefAttributes<HTMLDivElement>) => JSX.Element;
|
|
20
20
|
};
|
|
21
|
+
export default meta;
|
|
22
|
+
type Story = StoryObj<typeof meta>;
|
|
23
|
+
export declare const Default: Story;
|
|
24
|
+
export declare const ScrollAreaWithControls: Story;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: import("./SearchInput").SearchInputProps & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
6
|
+
argTypes: {
|
|
7
|
+
onValueChange: {};
|
|
8
|
+
isLoading: {
|
|
9
|
+
control: {
|
|
10
|
+
type: "boolean";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
10
13
|
};
|
|
11
|
-
name: string;
|
|
12
14
|
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Default: Story;
|
|
@@ -5,58 +5,58 @@ declare const meta: {
|
|
|
5
5
|
argTypes: {
|
|
6
6
|
autoComplete: {
|
|
7
7
|
control: {
|
|
8
|
-
type:
|
|
8
|
+
type: "text";
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
children: {
|
|
12
12
|
control: {
|
|
13
|
-
disable:
|
|
13
|
+
disable: true;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
id: {
|
|
17
17
|
control: {
|
|
18
|
-
type:
|
|
18
|
+
type: "text";
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
name: {
|
|
22
22
|
control: {
|
|
23
|
-
type:
|
|
23
|
+
type: "text";
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
onValueChange: {};
|
|
27
27
|
value: {};
|
|
28
28
|
size: {
|
|
29
29
|
control: {
|
|
30
|
-
type:
|
|
30
|
+
type: "select";
|
|
31
31
|
};
|
|
32
32
|
options: string[];
|
|
33
33
|
};
|
|
34
34
|
color: {
|
|
35
35
|
control: {
|
|
36
|
-
type:
|
|
36
|
+
type: "select";
|
|
37
37
|
};
|
|
38
38
|
options: string[];
|
|
39
39
|
};
|
|
40
40
|
constrainContentWidth: {
|
|
41
41
|
control: {
|
|
42
|
-
type:
|
|
42
|
+
type: "boolean";
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
position: {
|
|
46
46
|
control: {
|
|
47
|
-
type:
|
|
47
|
+
type: "select";
|
|
48
48
|
};
|
|
49
49
|
options: string[];
|
|
50
50
|
};
|
|
51
51
|
side: {
|
|
52
52
|
control: {
|
|
53
|
-
type:
|
|
53
|
+
type: "select";
|
|
54
54
|
};
|
|
55
55
|
options: string[];
|
|
56
56
|
};
|
|
57
57
|
sideOffset: {
|
|
58
58
|
control: {
|
|
59
|
-
type:
|
|
59
|
+
type: "number";
|
|
60
60
|
step: number;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
title: string;
|
|
7
|
-
subtitle: string;
|
|
8
|
-
selected: boolean;
|
|
9
|
-
onSelect: () => void;
|
|
10
|
-
};
|
|
11
|
-
name: string;
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import { SelectCard } from "./SelectCard";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof SelectCard;
|
|
12
6
|
};
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const Default: Story;
|
|
@@ -5,19 +5,19 @@ declare const meta: {
|
|
|
5
5
|
argTypes: {
|
|
6
6
|
color: {
|
|
7
7
|
control: {
|
|
8
|
-
type:
|
|
8
|
+
type: "select";
|
|
9
9
|
};
|
|
10
10
|
options: string[];
|
|
11
11
|
};
|
|
12
12
|
orientation: {
|
|
13
13
|
control: {
|
|
14
|
-
type:
|
|
14
|
+
type: "select";
|
|
15
15
|
};
|
|
16
16
|
options: string[];
|
|
17
17
|
};
|
|
18
18
|
style: {
|
|
19
19
|
control: {
|
|
20
|
-
type:
|
|
20
|
+
type: "select";
|
|
21
21
|
};
|
|
22
22
|
options: string[];
|
|
23
23
|
};
|
|
@@ -6,29 +6,29 @@ declare const meta: {
|
|
|
6
6
|
argTypes: {
|
|
7
7
|
width: {
|
|
8
8
|
control: {
|
|
9
|
-
type:
|
|
9
|
+
type: "number";
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
height: {
|
|
13
13
|
control: {
|
|
14
|
-
type:
|
|
14
|
+
type: "number";
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
color: {
|
|
18
18
|
control: {
|
|
19
|
-
type:
|
|
19
|
+
type: "select";
|
|
20
20
|
};
|
|
21
21
|
options: string[];
|
|
22
22
|
};
|
|
23
23
|
borderRadius: {
|
|
24
24
|
control: {
|
|
25
|
-
type:
|
|
25
|
+
type: "select";
|
|
26
26
|
};
|
|
27
27
|
options: number[];
|
|
28
28
|
};
|
|
29
29
|
children: {
|
|
30
30
|
control: {
|
|
31
|
-
disable:
|
|
31
|
+
disable: true;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
};
|
|
@@ -1,47 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import { SliceCard } from "./SliceCard";
|
|
3
|
+
import { SliceSelectCard } from "./SliceSelectCard";
|
|
4
|
+
declare const meta: {
|
|
2
5
|
title: string;
|
|
6
|
+
component: typeof SliceCard;
|
|
3
7
|
};
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
title: string;
|
|
10
|
-
subTitle: string;
|
|
11
|
-
selected: boolean;
|
|
12
|
-
canMove: boolean;
|
|
13
|
-
children: JSX.Element;
|
|
14
|
-
menuItems: JSX.Element;
|
|
15
|
-
};
|
|
16
|
-
argTypes: {
|
|
17
|
-
children: {
|
|
18
|
-
control: {
|
|
19
|
-
disable: boolean;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
menuItems: {
|
|
23
|
-
control: {
|
|
24
|
-
disable: boolean;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
onSelect: {};
|
|
28
|
-
};
|
|
29
|
-
name: string;
|
|
30
|
-
};
|
|
31
|
-
export declare const SliceSelectCardStory: {
|
|
32
|
-
render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SliceSelectCard").SliceSelectCardProps>;
|
|
33
|
-
args: {
|
|
34
|
-
slice: string;
|
|
35
|
-
variation: string;
|
|
36
|
-
children: JSX.Element;
|
|
37
|
-
};
|
|
38
|
-
argTypes: {
|
|
39
|
-
children: {
|
|
40
|
-
control: {
|
|
41
|
-
disable: boolean;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
onClick: {};
|
|
45
|
-
};
|
|
46
|
-
name: string;
|
|
47
|
-
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const SliceCardStory: Story;
|
|
11
|
+
type SliceSelectCardStory = StoryObj<typeof SliceSelectCard>;
|
|
12
|
+
export declare const SliceSelectCardStory: SliceSelectCardStory;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
step: number;
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ value, ...props }: Readonly<Pick<import("@radix-ui/react-slider").SliderProps, "value" | "min" | "max" | "step" | "onValueChange">>) => JSX.Element;
|
|
5
|
+
argTypes: {
|
|
6
|
+
value: {};
|
|
7
|
+
onValueChange: {};
|
|
9
8
|
};
|
|
10
|
-
name: string;
|
|
11
9
|
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Default: Story;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import { Table } from "./Table";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Table;
|
|
6
|
+
argTypes: {
|
|
7
|
+
children: {
|
|
8
|
+
control: {
|
|
9
|
+
disable: true;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
6
13
|
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof Table>;
|
|
16
|
+
export declare const Default: Story;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import { Tag } from "./Tag";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Tag;
|
|
6
|
+
argTypes: {
|
|
7
|
+
onClose: {
|
|
8
|
+
control: {
|
|
9
|
+
type: "boolean";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
10
12
|
};
|
|
11
|
-
name: string;
|
|
12
13
|
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof meta>;
|
|
16
|
+
export declare const Default: Story;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
selectedValues: Set<string>;
|
|
7
|
-
values: Set<string>;
|
|
8
|
-
loading: boolean;
|
|
9
|
-
error: boolean;
|
|
10
|
-
};
|
|
11
|
-
name: string;
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import { TagField } from ".";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof TagField;
|
|
12
6
|
};
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const Default: Story;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
children: string;
|
|
8
|
-
color: string;
|
|
9
|
-
noWrap: boolean;
|
|
10
|
-
variant: string;
|
|
11
|
-
};
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Text } from "./Text";
|
|
3
|
+
declare const meta: Meta<typeof Text>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Text>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
name: string;
|
|
9
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { TextArea } from "./TextArea";
|
|
3
|
+
declare const meta: Meta<typeof TextArea>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -1,11 +1,31 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: import("./TextInput").TextInputProps & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
6
|
+
argTypes: {
|
|
7
|
+
id: {
|
|
8
|
+
control: {
|
|
9
|
+
type: "text";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
inputMode: {
|
|
13
|
+
control: {
|
|
14
|
+
type: "select";
|
|
15
|
+
};
|
|
16
|
+
options: string[];
|
|
17
|
+
};
|
|
18
|
+
name: {
|
|
19
|
+
control: {
|
|
20
|
+
type: "text";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
onValueChange: {};
|
|
24
|
+
};
|
|
5
25
|
args: {
|
|
6
|
-
|
|
7
|
-
placeholder: string;
|
|
8
|
-
readOnly: boolean;
|
|
26
|
+
value: string;
|
|
9
27
|
};
|
|
10
|
-
name: string;
|
|
11
28
|
};
|
|
29
|
+
export default meta;
|
|
30
|
+
type Story = StoryObj<typeof meta>;
|
|
31
|
+
export declare const Default: Story;
|
|
@@ -1,9 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import { Toast } from "./Toast";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Toast;
|
|
6
|
+
tags: string[];
|
|
7
|
+
argTypes: {
|
|
8
|
+
seconds: {
|
|
9
|
+
defaultValue: number;
|
|
10
|
+
control: {
|
|
11
|
+
type: "number";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
anchor: {
|
|
15
|
+
control: {
|
|
16
|
+
disable: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
open: {
|
|
20
|
+
control: {
|
|
21
|
+
disable: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
onOpenChange: {
|
|
25
|
+
control: {
|
|
26
|
+
disable: true;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
icon: {
|
|
30
|
+
control: {
|
|
31
|
+
disable: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
action: {
|
|
35
|
+
control: {
|
|
36
|
+
disable: true;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
cancel: {
|
|
40
|
+
control: {
|
|
41
|
+
disable: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
title: {
|
|
45
|
+
control: {
|
|
46
|
+
disable: true;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
subtitle: {
|
|
50
|
+
control: {
|
|
51
|
+
disable: true;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
variant: {
|
|
55
|
+
control: {
|
|
56
|
+
disable: true;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
6
60
|
args: {
|
|
7
|
-
|
|
61
|
+
anchor: JSX.Element;
|
|
62
|
+
title: string;
|
|
63
|
+
open: false;
|
|
8
64
|
};
|
|
9
65
|
};
|
|
66
|
+
export default meta;
|
|
67
|
+
type Story = StoryObj<typeof meta>;
|
|
68
|
+
export declare const Default: Story;
|
|
@@ -6,25 +6,25 @@ declare const meta: {
|
|
|
6
6
|
onPressedChange: {};
|
|
7
7
|
size: {
|
|
8
8
|
control: {
|
|
9
|
-
type:
|
|
9
|
+
type: "select";
|
|
10
10
|
};
|
|
11
11
|
options: string[];
|
|
12
12
|
};
|
|
13
13
|
color: {
|
|
14
14
|
control: {
|
|
15
|
-
type:
|
|
15
|
+
type: "select";
|
|
16
16
|
};
|
|
17
17
|
options: string[];
|
|
18
18
|
};
|
|
19
19
|
startIcon: {
|
|
20
20
|
control: {
|
|
21
|
-
type:
|
|
21
|
+
type: "select";
|
|
22
22
|
};
|
|
23
23
|
options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "attachFile", "autoFixHigh", "autorenew", "biToggle", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "contentPaste", "createNewFolder", "creditCard", "crop", "cropLandscape", "cropPortrait", "dataObject", "dataUsage", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "folderManaged", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "groupWork", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "invite", "javascript", "json", "keyboardArrowDown", "keyboardArrowUp", "label", "language", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "menuBook", "migrationRelease", "moreVert", "multipleStop", "musicNote", "notStarted", "notes", "openInFull", "openInNew", "outbound", "people", "phoneIphone", "photo", "pin", "place", "playCircle", "preview", "prismic", "public", "receiptLong", "refresh", "save", "schedule", "search", "security", "sentimentSatisfied", "settings", "settingsEthernet", "smartDisplay", "svelte", "table", "tabletMac", "tag", "terminal", "textFields", "title", "toggleOff", "translate", "tune", "typescript", "unfoldMore", "unsplash", "upload", "videocam", "viewDay", "visibility", "vue", "warning", "zoomOutMap"];
|
|
24
24
|
};
|
|
25
25
|
endIcon: {
|
|
26
26
|
control: {
|
|
27
|
-
type:
|
|
27
|
+
type: "select";
|
|
28
28
|
};
|
|
29
29
|
options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "attachFile", "autoFixHigh", "autorenew", "biToggle", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "contentPaste", "createNewFolder", "creditCard", "crop", "cropLandscape", "cropPortrait", "dataObject", "dataUsage", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "folderManaged", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "groupWork", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "invite", "javascript", "json", "keyboardArrowDown", "keyboardArrowUp", "label", "language", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "menuBook", "migrationRelease", "moreVert", "multipleStop", "musicNote", "notStarted", "notes", "openInFull", "openInNew", "outbound", "people", "phoneIphone", "photo", "pin", "place", "playCircle", "preview", "prismic", "public", "receiptLong", "refresh", "save", "schedule", "search", "security", "sentimentSatisfied", "settings", "settingsEthernet", "smartDisplay", "svelte", "table", "tabletMac", "tag", "terminal", "textFields", "title", "toggleOff", "translate", "tune", "typescript", "unfoldMore", "unsplash", "upload", "videocam", "viewDay", "visibility", "vue", "warning", "zoomOutMap"];
|
|
30
30
|
};
|
|
@@ -6,31 +6,31 @@ declare const meta: {
|
|
|
6
6
|
argTypes: {
|
|
7
7
|
children: {
|
|
8
8
|
control: {
|
|
9
|
-
disable:
|
|
9
|
+
disable: true;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
density: {
|
|
13
13
|
control: {
|
|
14
|
-
type:
|
|
14
|
+
type: "select";
|
|
15
15
|
};
|
|
16
16
|
options: string[];
|
|
17
17
|
};
|
|
18
18
|
onValueChange: {};
|
|
19
19
|
size: {
|
|
20
20
|
control: {
|
|
21
|
-
type:
|
|
21
|
+
type: "select";
|
|
22
22
|
};
|
|
23
23
|
options: string[];
|
|
24
24
|
};
|
|
25
25
|
type: {
|
|
26
26
|
control: {
|
|
27
|
-
type:
|
|
27
|
+
type: "select";
|
|
28
28
|
};
|
|
29
29
|
options: string[];
|
|
30
30
|
};
|
|
31
31
|
color: {
|
|
32
32
|
control: {
|
|
33
|
-
type:
|
|
33
|
+
type: "select";
|
|
34
34
|
};
|
|
35
35
|
options: string[];
|
|
36
36
|
};
|
|
@@ -1,8 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import type { ComponentType } from "react";
|
|
3
|
+
import { Toolbar, ToolbarSeparator } from "./Toolbar";
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof Toolbar;
|
|
7
|
+
subcomponents: {
|
|
8
|
+
ToolbarButton: ComponentType<unknown>;
|
|
9
|
+
ToolbarButtonGroup: ComponentType<unknown>;
|
|
10
|
+
ToolbarSelect: ComponentType<unknown>;
|
|
11
|
+
ToolbarSelectItem: ComponentType<unknown>;
|
|
12
|
+
ToolbarSeparator: typeof ToolbarSeparator;
|
|
13
|
+
ToolbarToggleButton: ComponentType<unknown>;
|
|
14
|
+
ToolbarToggleButtonGroup: ComponentType<unknown>;
|
|
15
|
+
ToolbarToggleButtonGroupItem: ComponentType<unknown>;
|
|
16
|
+
};
|
|
17
|
+
argTypes: {
|
|
18
|
+
children: {
|
|
19
|
+
control: {
|
|
20
|
+
disable: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
6
23
|
};
|
|
7
|
-
name: string;
|
|
8
24
|
};
|
|
25
|
+
export default meta;
|
|
26
|
+
type Story = StoryObj<typeof meta>;
|
|
27
|
+
export declare const Default: Story;
|