@prismicio/editor-ui 0.4.25 → 0.4.26
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 +23 -4
- package/dist/components/Alert/Alert.stories.d.ts +25 -20
- package/dist/components/AnimatedElement/AnimatedElement.d.ts +4 -4
- package/dist/components/AnimatedElement/AnimatedElement.stories.d.ts +3 -13
- package/dist/components/AnimatedList/AnimatedList.d.ts +12 -7
- package/dist/components/AnimatedList/AnimatedList.stories.d.ts +41 -5
- package/dist/components/Avatar/Avatar.d.ts +1 -0
- package/dist/components/Badge/Badge.d.ts +7 -3
- package/dist/components/Badge/Badge.stories.d.ts +1 -0
- package/dist/components/BaseInput/BaseInput.d.ts +24 -9
- package/dist/components/BaseInput/BaseInput.stories.d.ts +1 -0
- package/dist/components/Box/Box.d.ts +31 -32
- package/dist/components/Box/Box.stories.d.ts +147 -4
- package/dist/components/Button/Button.d.ts +11 -1
- package/dist/components/Button/Button.stories.d.ts +12 -5
- package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +3 -2
- package/dist/components/Calendar/Calendar.d.ts +1 -1
- package/dist/components/Card/Card.d.ts +8 -2
- package/dist/components/Card/Card.stories.d.ts +44 -5
- package/dist/components/Card/PreviewCard.d.ts +23 -0
- package/dist/components/Card/PreviewCard.stories.d.ts +27 -0
- package/dist/components/Card/index.d.ts +2 -1
- package/dist/components/Carousel/Carousel.d.ts +7 -0
- package/dist/components/Carousel/CarouselItem.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.stories.d.ts +1 -0
- package/dist/components/ComboBox/ComboBox.d.ts +41 -0
- package/dist/components/ComboBox/ComboBox.stories.d.ts +17 -0
- package/dist/components/ComboBox/ComboBoxConstants.d.ts +4 -0
- package/dist/components/ComboBox/index.d.ts +1 -0
- package/dist/components/ComboBox/useComboBox.d.ts +21 -0
- package/dist/components/ConjoinedIcons/ConjoinedIcons.d.ts +1 -1
- package/dist/components/ContentEditable/ContentEditable.d.ts +25 -5
- package/dist/components/ContentEditable/ContentEditable.stories.d.ts +5 -6
- package/dist/components/ContentEditable/index.d.ts +4 -0
- package/dist/components/ContentEditable/useEditor.d.ts +12 -0
- package/dist/components/DateInput/DateInput.d.ts +1 -1
- package/dist/components/DateInput/DateInput.stories.d.ts +3 -12
- package/dist/components/Dialog/Dialog.d.ts +8 -4
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +30 -0
- package/dist/components/EditableText/EditableText.d.ts +4 -4
- package/dist/components/Field/Field.stories.d.ts +1 -0
- package/dist/components/FieldSet/FieldSet.d.ts +2 -5
- package/dist/components/FieldSet/FieldSet.stories.d.ts +1 -0
- package/dist/components/FieldSet/index.d.ts +1 -2
- package/dist/components/FileUpload/{FileDropZone/FileDropZone.d.ts → FileDropZone.d.ts} +1 -1
- package/dist/components/FileUpload/FileDropZone.stories.d.ts +14 -0
- package/dist/components/FileUpload/FileUpload.utils.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts +2 -2
- package/dist/components/Form/Form.stories.d.ts +3 -6
- package/dist/components/Form/FormDateInput.d.ts +1 -1
- package/dist/components/Form/FormField.d.ts +1 -0
- package/dist/components/Form/FormInput.d.ts +6 -2
- package/dist/components/Form/FormSearchInput.d.ts +6 -1
- package/dist/components/HairlineButton/HairlineButton.stories.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Icon/Icon.stories.d.ts +1 -0
- package/dist/components/Icon/PrismicLogo.d.ts +1 -0
- package/dist/components/Icon/iconNames.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts +6 -6
- package/dist/components/IconButton/IconButton.stories.d.ts +1 -1
- package/dist/components/Image/Image.d.ts +2 -1
- package/dist/components/LazyRender/LazyRender.d.ts +9 -2
- package/dist/components/LinkDescriptionCard/LinkDescriptionCard.d.ts +1 -1
- package/dist/components/List/UnorderedList.stories.d.ts +1 -0
- package/dist/components/MediaCard/MediaCard.d.ts +12 -3
- package/dist/components/MediaCard/MediaCard.stories.d.ts +11 -25
- package/dist/components/OverflowContainer/OverflowContainer.d.ts +23 -0
- package/dist/components/OverflowContainer/OverflowContainer.stories.d.ts +23 -0
- package/dist/components/OverflowContainer/index.d.ts +1 -0
- package/dist/components/ProgressCircle/ProgressCircle.d.ts +2 -2
- package/dist/components/ScrollArea/ScrollArea.d.ts +2 -2
- package/dist/components/ScrollArea/ScrollArea.stories.d.ts +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts +12 -2
- package/dist/components/SearchInput/SearchInput.stories.d.ts +3 -2
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Separator/Separator.d.ts +1 -0
- package/dist/components/Separator/Separator.stories.d.ts +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +16 -10
- package/dist/components/Skeleton/Skeleton.stories.d.ts +47 -4
- package/dist/components/Slice/SliceSelectCard.d.ts +1 -0
- package/dist/components/Suspense/AnimatedSuspense.d.ts +2 -2
- package/dist/components/Text/Text.d.ts +17 -3
- package/dist/components/Text/Text.stories.d.ts +1 -0
- package/dist/components/TextInput/TextInput.d.ts +2 -0
- package/dist/components/TextInput/TextInput.stories.d.ts +1 -0
- package/dist/components/TextOverflow/TextOverflow.d.ts +10 -0
- package/dist/components/TextOverflow/index.d.ts +1 -0
- package/dist/components/Toast/Toast.stories.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +3 -2
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts +5 -4
- package/dist/components/Tooltip/Tooltip.d.ts +7 -2
- package/dist/components/Video/Video.d.ts +1 -1
- package/dist/components/Window/Window.d.ts +32 -0
- package/dist/components/Window/Window.stories.d.ts +53 -0
- package/dist/components/Window/index.d.ts +1 -0
- package/dist/index.cjs.js +232 -138
- package/dist/index.d.ts +9 -12
- package/dist/index.es.js +29270 -18569
- package/dist/style.css +1 -1
- package/dist/theme/colors.d.ts +8 -0
- package/dist/theme/new/sx.d.ts +1 -0
- package/dist/theme/new/theme.d.ts +10 -1
- package/dist/theme/new/useMediaQuery.d.ts +17 -0
- package/dist/theme/selectors.d.ts +20 -20
- package/dist/theme/sprinkles.css.d.ts +874 -131
- package/dist/theme/vars.css.d.ts +6 -0
- package/package.json +21 -7
- package/dist/components/Avatar/Avatar.css.d.ts +0 -3
- package/dist/components/Card/Card.css.d.ts +0 -17
- package/dist/components/Carousel/Carousel.css.d.ts +0 -4
- package/dist/components/Carousel/CarouselItem.css.d.ts +0 -4
- package/dist/components/CheckerBoard/CheckerBoard.css.d.ts +0 -1
- package/dist/components/CircledIcon/CircledIcon.d.ts +0 -9
- package/dist/components/CircledIcon/CircledIcon.stories.d.ts +0 -11
- package/dist/components/CircledIcon/CircledIconStyles.css.d.ts +0 -11
- package/dist/components/CircledIcon/index.d.ts +0 -1
- package/dist/components/ConjoinedIcons/ConjoinedIcons.css.d.ts +0 -2
- package/dist/components/ContentEditable/ContentEditable.css.d.ts +0 -1
- package/dist/components/Cropper/Cropper.css.d.ts +0 -4
- package/dist/components/DateInput/DateInput.css.d.ts +0 -2
- package/dist/components/DateInput/DateSegments.css.d.ts +0 -7
- package/dist/components/Dialog/FullscreenDialog.css.d.ts +0 -1
- package/dist/components/DocumentCard/DocumentCard.css.d.ts +0 -14
- package/dist/components/DocumentCard/DocumentCard.d.ts +0 -14
- package/dist/components/DocumentCard/DocumentCard.stories.d.ts +0 -40
- package/dist/components/DocumentCard/index.d.ts +0 -1
- package/dist/components/DragCard/DragCard.css.d.ts +0 -3
- package/dist/components/Embed/EmbedPreview.css.d.ts +0 -5
- package/dist/components/Embed/EmbedPreview.d.ts +0 -13
- package/dist/components/Embed/EmbedPreview.stories.d.ts +0 -25
- package/dist/components/Embed/EmptyEmbed.css.d.ts +0 -1
- package/dist/components/Embed/EmptyEmbed.d.ts +0 -5
- package/dist/components/Embed/EmptyEmbed.stories.d.ts +0 -10
- package/dist/components/Embed/Icon.d.ts +0 -5
- package/dist/components/Embed/index.d.ts +0 -2
- package/dist/components/FieldSet/FieldSet.css.d.ts +0 -6
- package/dist/components/FieldSet/FieldSet.utils.d.ts +0 -4
- package/dist/components/FileUpload/FileUpload.stories.d.ts +0 -31
- package/dist/components/FileUpload/UploadProgress/UploadProgress.css.d.ts +0 -8
- package/dist/components/FileUpload/UploadProgress/UploadProgress.d.ts +0 -7
- package/dist/components/FileUpload/UploadProgress/UploadProgress.utils.d.ts +0 -1
- package/dist/components/FileUploadButton/index.d.ts +0 -1
- package/dist/components/FilterField/FilterField.css.d.ts +0 -12
- package/dist/components/HairlineButton/HairlineButton.css.d.ts +0 -17
- package/dist/components/Icon/Icon.css.d.ts +0 -7
- package/dist/components/IconButton/IconButton.css.d.ts +0 -30
- package/dist/components/InvisibleButton/InvisibleButton.css.d.ts +0 -13
- package/dist/components/InvisibleButton/InvisibleButton.d.ts +0 -15
- package/dist/components/InvisibleButton/InvisibleButton.stories.d.ts +0 -12
- package/dist/components/InvisibleButton/index.d.ts +0 -1
- package/dist/components/LinkDescriptionCard/LinkDescriptionCard.css.d.ts +0 -2
- package/dist/components/Masonry/Masonry.css.d.ts +0 -2
- package/dist/components/Masonry/Masonry.d.ts +0 -12
- package/dist/components/Masonry/Masonry.stories.d.ts +0 -11
- package/dist/components/Masonry/MasonryFile.css.d.ts +0 -2
- package/dist/components/Masonry/MasonryFile.d.ts +0 -7
- package/dist/components/Masonry/MasonryMedia.css.d.ts +0 -1
- package/dist/components/Masonry/MasonryMedia.d.ts +0 -6
- package/dist/components/Masonry/MasonrySkeleton.d.ts +0 -2
- package/dist/components/Masonry/index.d.ts +0 -4
- package/dist/components/ProgressCircle/ProgressCircle.css.d.ts +0 -2
- package/dist/components/ScrollArea/ScrollArea.css.d.ts +0 -6
- package/dist/components/SelectButton/SelectButton.css.d.ts +0 -2
- package/dist/components/SelectCard/SelectCard.css.d.ts +0 -1
- package/dist/components/Slice/SliceCard.css.d.ts +0 -10
- package/dist/components/Slice/SliceSelectCard.css.d.ts +0 -7
- package/dist/components/Suspense/AnimatedSuspense.css.d.ts +0 -1
- package/dist/components/TagField/TagField.css.d.ts +0 -18
- package/dist/components/TagField/TagFieldHeader.css.d.ts +0 -6
- package/dist/components/TextLink/TextLink.css.d.ts +0 -8
- package/dist/components/TextLink/TextLink.d.ts +0 -12
- package/dist/components/TextLink/TextLink.stories.d.ts +0 -9
- package/dist/components/TextLink/index.d.ts +0 -1
- package/dist/components/Toolbar/Toolbar.css.d.ts +0 -1
- package/dist/theme/mediaQueries.d.ts +0 -5
- package/dist/theme/util.d.ts +0 -15
- /package/dist/components/{FileUploadButton → FileUpload}/FileUploadButton.d.ts +0 -0
- /package/dist/components/SelectCard/{SelectButton.stories.d.ts → SelectCard.stories.d.ts} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { SX } from "../../theme/new";
|
|
2
3
|
import type { BaseInputProps } from "../BaseInput/BaseInput";
|
|
3
4
|
export interface TextInputProps {
|
|
@@ -18,5 +19,6 @@ export interface TextInputProps {
|
|
|
18
19
|
onValueChange?: BaseInputProps["onValueChange"];
|
|
19
20
|
onFocus?: BaseInputProps["onFocus"];
|
|
20
21
|
onBlur?: BaseInputProps["onBlur"];
|
|
22
|
+
onPaste?: BaseInputProps["onPaste"];
|
|
21
23
|
}
|
|
22
24
|
export declare const TextInput: import("react").ForwardRefExoticComponent<TextInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./TextInput").TextInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
2
3
|
export default _default;
|
|
3
4
|
export declare const Default: {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
interface TextOverflowProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* A container showing an ellipsis when its children take more width than its constrained width.
|
|
7
|
+
* If you need a gap between the children, use sx on each child.
|
|
8
|
+
*/
|
|
9
|
+
export declare function TextOverflow(props: TextOverflowProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextOverflow } from "./TextOverflow";
|
|
@@ -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" | "
|
|
6
|
+
icon?: "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" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "migrationRelease" | "moreVert" | "multipleStop" | "musicNote" | "notes" | "openInFull" | "openInNew" | "phoneIphone" | "photo" | "pin" | "place" | "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?: "visibility" | "search" | "link" | "description" | "code" | "
|
|
24
|
+
icon?: "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" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "migrationRelease" | "moreVert" | "multipleStop" | "musicNote" | "notes" | "openInFull" | "openInNew" | "phoneIphone" | "photo" | "pin" | "place" | "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;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const meta: {
|
|
2
3
|
title: string;
|
|
3
4
|
component: import("react").ForwardRefExoticComponent<import("./ToggleButton").ToggleButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -19,13 +20,13 @@ declare const meta: {
|
|
|
19
20
|
control: {
|
|
20
21
|
type: string;
|
|
21
22
|
};
|
|
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", "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", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "migrationRelease", "moreVert", "multipleStop", "musicNote", "notes", "openInFull", "openInNew", "phoneIphone", "photo", "pin", "place", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "upload", "viewDay", "visibility", "zoomOutMap"];
|
|
23
24
|
};
|
|
24
25
|
endIcon: {
|
|
25
26
|
control: {
|
|
26
27
|
type: string;
|
|
27
28
|
};
|
|
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", "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", "link", "linkOff", "lock", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "migrationRelease", "moreVert", "multipleStop", "musicNote", "notes", "openInFull", "openInNew", "phoneIphone", "photo", "pin", "place", "preview", "prismic", "public", "refresh", "save", "schedule", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "upload", "viewDay", "visibility", "zoomOutMap"];
|
|
29
30
|
};
|
|
30
31
|
};
|
|
31
32
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ToggleButtonGroup } from "./ToggleButtonGroup";
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
@@ -49,8 +50,8 @@ export declare const Default: {
|
|
|
49
50
|
render: (args: {
|
|
50
51
|
children?: import("react").ReactNode;
|
|
51
52
|
disabled?: boolean | undefined;
|
|
52
|
-
density?: "
|
|
53
|
-
size?: "small" | "
|
|
53
|
+
density?: "regular" | "compact" | undefined;
|
|
54
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
54
55
|
color?: "dark" | "grey" | "purple" | undefined;
|
|
55
56
|
type: "single";
|
|
56
57
|
value?: string | undefined;
|
|
@@ -58,8 +59,8 @@ export declare const Default: {
|
|
|
58
59
|
} | {
|
|
59
60
|
children?: import("react").ReactNode;
|
|
60
61
|
disabled?: boolean | undefined;
|
|
61
|
-
density?: "
|
|
62
|
-
size?: "small" | "
|
|
62
|
+
density?: "regular" | "compact" | undefined;
|
|
63
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
63
64
|
color?: "dark" | "grey" | "purple" | undefined;
|
|
64
65
|
type: "multiple";
|
|
65
66
|
value?: string[] | undefined;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
|
-
import { vars } from "../../theme/vars.css";
|
|
4
3
|
export declare const TooltipProvider: import("react").FC<TooltipPrimitive.TooltipProviderProps>;
|
|
5
4
|
export interface TooltipProps {
|
|
6
5
|
title?: string;
|
|
@@ -9,7 +8,13 @@ export interface TooltipProps {
|
|
|
9
8
|
side?: Parameters<typeof TooltipPrimitive.Content>[0]["side"];
|
|
10
9
|
align?: Parameters<typeof TooltipPrimitive.Content>[0]["align"];
|
|
11
10
|
open?: boolean;
|
|
12
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Try not to use this.
|
|
13
|
+
* You only need this with bad components like Tiptap's BubbleMenu which renders inline instead of using a Portal.
|
|
14
|
+
* Remove this prop once this is done: https://linear.app/prismic/issue/PBD-1067/repeatable-zone-header-covers-link-dropdown
|
|
15
|
+
* i.e, when the Tiptap BubbleMenu has been rewritten.
|
|
16
|
+
*/
|
|
17
|
+
zIndexHack?: boolean;
|
|
13
18
|
visible?: boolean;
|
|
14
19
|
/**
|
|
15
20
|
* By enabling the stable mount a `div` will be rendered around your trigger item.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { SX } from "../../theme/new";
|
|
3
|
+
interface WindowProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
sx?: SX;
|
|
6
|
+
}
|
|
7
|
+
export declare function Window(props: WindowProps): JSX.Element;
|
|
8
|
+
export declare function WindowFrame(): JSX.Element;
|
|
9
|
+
interface WindowTabsProps {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
onValueChange?: (value: string) => void;
|
|
13
|
+
value?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function WindowTabs(props: WindowTabsProps): JSX.Element;
|
|
16
|
+
interface WindowTabsListProps {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
onAddNewTab?: () => void;
|
|
19
|
+
}
|
|
20
|
+
export declare function WindowTabsList(props: WindowTabsListProps): JSX.Element;
|
|
21
|
+
interface WindowTabsTriggerProps {
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
value: string;
|
|
24
|
+
menu?: ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export declare function WindowTabsTrigger(props: WindowTabsTriggerProps): JSX.Element;
|
|
27
|
+
interface WindowTabsContentProps {
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
value: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function WindowTabsContent(props: WindowTabsContentProps): JSX.Element;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Window } from "./Window";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: typeof Window;
|
|
5
|
+
argTypes: {
|
|
6
|
+
children: {
|
|
7
|
+
control: {
|
|
8
|
+
disable: boolean;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
export declare const Default: {
|
|
15
|
+
args: {
|
|
16
|
+
children: JSX.Element;
|
|
17
|
+
sx: {
|
|
18
|
+
height: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const WithListOverflow: {
|
|
23
|
+
args: {
|
|
24
|
+
children: JSX.Element;
|
|
25
|
+
sx: {
|
|
26
|
+
height: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const WithTriggerOverflow: {
|
|
31
|
+
args: {
|
|
32
|
+
children: JSX.Element;
|
|
33
|
+
sx: {
|
|
34
|
+
height: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const WithoutFrame: {
|
|
39
|
+
args: {
|
|
40
|
+
children: JSX.Element;
|
|
41
|
+
sx: {
|
|
42
|
+
height: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const WithoutTabs: {
|
|
47
|
+
args: {
|
|
48
|
+
children: JSX.Element;
|
|
49
|
+
sx: {
|
|
50
|
+
height: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Window, WindowFrame, WindowTabs, WindowTabsContent, WindowTabsList, WindowTabsTrigger } from "./Window";
|