@prismicio/editor-ui 0.4.60 → 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 +5 -5
- 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 +11 -6
- package/dist/components/Badge/Badge.stories.d.ts +31 -11
- package/dist/components/Banner/Banner.d.ts +3 -2
- package/dist/components/Banner/Banner.stories.d.ts +3 -3
- 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 +4 -4
- 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/Icon/iconNames.d.ts +1 -1
- 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.d.ts +2 -0
- 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 +6 -6
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts +5 -5
- package/dist/components/Toolbar/Toolbar.stories.d.ts +25 -6
- package/dist/components/Tooltip/Tooltip.d.ts +8 -5
- 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 +172 -170
- package/dist/index.es.js +6569 -6510
- package/dist/style.css +1 -1
- package/package.json +7 -15
|
@@ -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,27 +6,27 @@ 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
|
-
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", "tabletMac", "tag", "terminal", "textFields", "title", "toggleOff", "translate", "tune", "typescript", "unfoldMore", "unsplash", "upload", "videocam", "viewDay", "visibility", "vue", "warning", "zoomOutMap"];
|
|
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
|
-
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", "tabletMac", "tag", "terminal", "textFields", "title", "toggleOff", "translate", "tune", "typescript", "unfoldMore", "unsplash", "upload", "videocam", "viewDay", "visibility", "vue", "warning", "zoomOutMap"];
|
|
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
|
};
|
|
31
31
|
};
|
|
32
32
|
};
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
2
|
-
import { type ReactNode
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
3
|
export declare const TooltipProvider: import("react").FC<TooltipPrimitive.TooltipProviderProps>;
|
|
4
4
|
interface BaseTooltipProps {
|
|
5
5
|
children: ReactNode;
|
|
@@ -9,11 +9,14 @@ interface BaseTooltipProps {
|
|
|
9
9
|
delayDuration?: Parameters<typeof TooltipPrimitive.Root>[0]["delayDuration"];
|
|
10
10
|
open?: boolean;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* By passing an element here, the tooltip will be rendered as the last child of this element.
|
|
13
|
+
* If not, the tooltip will be rendered as the last child of the document.body element.
|
|
14
|
+
*
|
|
15
|
+
* Passing a specific element is useful i.e. when you're trying to display
|
|
16
|
+
* a Tooltip in a container that has specified the `z-index` value.
|
|
17
|
+
* Examples of such containers are Tiptap's BubbleMenu and SliceMachineModal.
|
|
15
18
|
*/
|
|
16
|
-
|
|
19
|
+
container?: Element | null;
|
|
17
20
|
visible?: boolean;
|
|
18
21
|
/**
|
|
19
22
|
* By enabling the stable mount a `div` will be rendered around your trigger item.
|