@prismicio/editor-ui 0.4.52 → 0.4.54
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/AlertContext.d.ts +6 -6
- package/dist/components/AnimatedElement/AnimatedElement.d.ts +3 -3
- package/dist/components/AnimatedList/AnimatedList.stories.d.ts +1 -1
- package/dist/components/AnimatedList/DragPreview.d.ts +2 -2
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/BaseInput/BaseInput.d.ts +11 -10
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +4 -4
- package/dist/components/Card/Card.stories.d.ts +1 -1
- package/dist/components/Card/PreviewCard.d.ts +6 -6
- package/dist/components/CodeBlock/CodeBlock.d.ts +2 -2
- package/dist/components/ComboBox/ComboBox.d.ts +8 -8
- package/dist/components/ComboBox/useComboBox.d.ts +6 -6
- package/dist/components/ContentEditable/ContentEditable.d.ts +5 -6
- package/dist/components/DateInput/DateSegments.d.ts +4 -4
- package/dist/components/Dialog/Dialog.d.ts +10 -10
- package/dist/components/Dialog/Options/DialogOptions.d.ts +4 -4
- package/dist/components/Dot/Dot.d.ts +2 -2
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +10 -10
- package/dist/components/ErrorBoundary/DefaultErrorMessage.d.ts +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +4 -4
- package/dist/components/Field/Field.d.ts +8 -8
- package/dist/components/FilterField/FilterField.d.ts +4 -4
- package/dist/components/FilterField/useFilterField.d.ts +4 -4
- package/dist/components/Group/context.d.ts +4 -4
- package/dist/components/Image/Image.d.ts +2 -2
- package/dist/components/List/UnorderedList.d.ts +4 -4
- package/dist/components/MediaCard/MediaCard.d.ts +6 -6
- package/dist/components/NumberInput/NumberInput.d.ts +2 -2
- package/dist/components/OverflowContainer/OverflowContainer.d.ts +6 -7
- package/dist/components/Popover/Popover.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/components/Radio/RadioButton.d.ts +2 -2
- package/dist/components/Radio/RadioCard.d.ts +2 -2
- package/dist/components/Radio/RadioItem.d.ts +2 -2
- package/dist/components/SearchInput/SearchInput.d.ts +2 -2
- package/dist/components/Separator/Separator.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.d.ts +13 -13
- package/dist/components/Slice/SliceCard.d.ts +2 -2
- package/dist/components/Slice/SliceSelectCard.d.ts +2 -2
- package/dist/components/StoryCard.d.ts +2 -2
- package/dist/components/Tab/Tab.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +12 -12
- package/dist/components/Tag/Tag.d.ts +2 -2
- package/dist/components/TagField/TagFieldHeader.d.ts +4 -4
- package/dist/components/TagField/useTagField.d.ts +2 -2
- package/dist/components/TagField/useTagFieldHeader.d.ts +4 -4
- package/dist/components/TextInput/TextInput.d.ts +3 -2
- package/dist/components/ThemeProvider.d.ts +2 -2
- package/dist/components/TimeField/TimeField.d.ts +2 -2
- package/dist/components/Toast/Toast.d.ts +8 -8
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
- package/dist/components/Toolbar/Toolbar.d.ts +14 -14
- package/dist/components/Tooltip/Tooltip.d.ts +6 -6
- package/dist/components/Video/Video.d.ts +2 -2
- package/dist/components/Window/Window.d.ts +10 -10
- package/dist/theme/sx.d.ts +3 -4
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import { type ThemeKeys } from "../../theme";
|
|
3
3
|
type Gap = Extract<ThemeKeys<"space">, number>;
|
|
4
|
-
|
|
5
|
-
children: ReactNode[];
|
|
4
|
+
interface OverflowContainerProps {
|
|
5
|
+
children: ReactNode[];
|
|
6
6
|
/**
|
|
7
7
|
* simulates a gap by adding a right margin to each item,
|
|
8
8
|
* required so that gap is included within width calculations
|
|
@@ -10,13 +10,12 @@ children: ReactNode[];
|
|
|
10
10
|
gap?: Gap;
|
|
11
11
|
}
|
|
12
12
|
export declare function OverflowContainer(props: OverflowContainerProps): JSX.Element;
|
|
13
|
-
|
|
14
|
-
children: ReactNode;
|
|
13
|
+
interface OverflowItemProps {
|
|
14
|
+
children: ReactNode;
|
|
15
15
|
}
|
|
16
16
|
export declare function OverflowItem(props: OverflowItemProps): JSX.Element;
|
|
17
|
-
|
|
18
|
-
adornment: ({ numberOfVisibleItems
|
|
19
|
-
}: {
|
|
17
|
+
interface OverflowAdornmentProps {
|
|
18
|
+
adornment: ({ numberOfVisibleItems }: {
|
|
20
19
|
numberOfVisibleItems: number;
|
|
21
20
|
}) => ReactNode;
|
|
22
21
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PopoverContentProps } from "@radix-ui/react-popover";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
|
-
export
|
|
4
|
-
anchor: ReactNode;
|
|
3
|
+
export interface PopoverProps {
|
|
4
|
+
anchor: ReactNode;
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
focusOnEnter?: boolean;
|
|
7
7
|
open?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type AriaRole, type FocusEvent } from "react";
|
|
2
2
|
import type { SX } from "../../theme";
|
|
3
|
-
export
|
|
4
|
-
value: string;
|
|
3
|
+
export interface SearchInputProps {
|
|
4
|
+
value: string;
|
|
5
5
|
onValueChange: (value: string) => void;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
maxLength?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { SX } from "../../theme";
|
|
3
|
-
export
|
|
4
|
-
color?: "grey" | "purple" | "tomato";
|
|
3
|
+
export interface SeparatorProps {
|
|
4
|
+
color?: "grey" | "purple" | "tomato";
|
|
5
5
|
/**
|
|
6
6
|
* Either `vertical` or `horizontal`. Defaults to `horizontal`.
|
|
7
7
|
*/
|
|
@@ -31,20 +31,20 @@ export declare function Skeleton(props: Props): import("react").DetailedReactHTM
|
|
|
31
31
|
flexShrink?: 0 | undefined;
|
|
32
32
|
flexBasis?: 0 | undefined;
|
|
33
33
|
flexWrap?: "wrap" | undefined;
|
|
34
|
-
order?: 0 |
|
|
35
|
-
alignSelf?: "center" | "
|
|
36
|
-
justifySelf?: "center" | "
|
|
34
|
+
order?: 0 | 2 | 1 | 3 | undefined;
|
|
35
|
+
alignSelf?: "center" | "stretch" | "start" | "end" | undefined;
|
|
36
|
+
justifySelf?: "center" | "stretch" | "start" | "end" | undefined;
|
|
37
37
|
visibility?: "hidden" | "visible" | undefined;
|
|
38
38
|
position?: "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
|
39
|
-
marginLeft?: 0 | "auto" | "fieldSetGap" |
|
|
40
|
-
marginRight?: 0 | "auto" | "fieldSetGap" |
|
|
41
|
-
marginTop?: 0 | "auto" | "fieldSetGap" |
|
|
42
|
-
marginBottom?: 0 | "auto" | "fieldSetGap" |
|
|
43
|
-
marginInline?: 0 | "auto" | "fieldSetGap" |
|
|
44
|
-
marginBlock?: 0 | "auto" | "fieldSetGap" |
|
|
45
|
-
top?: 0 | "auto" | "fieldSetGap" |
|
|
46
|
-
left?: 0 | "auto" | "fieldSetGap" |
|
|
47
|
-
right?: 0 | "auto" | "fieldSetGap" |
|
|
48
|
-
bottom?: 0 | "auto" | "fieldSetGap" |
|
|
39
|
+
marginLeft?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
40
|
+
marginRight?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
41
|
+
marginTop?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
42
|
+
marginBottom?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
43
|
+
marginInline?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
44
|
+
marginBlock?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
45
|
+
top?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
46
|
+
left?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
47
|
+
right?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
48
|
+
bottom?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
49
49
|
};
|
|
50
50
|
}, HTMLElement>;
|
|
@@ -3,8 +3,8 @@ import { type BoxFlexDisplayProps, type BoxProps } from "./Box/Box";
|
|
|
3
3
|
/**
|
|
4
4
|
* A basic card with a title for Storybook stories that showcase multiple component variants.
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
title: string;
|
|
6
|
+
interface StoryCardProps {
|
|
7
|
+
title: string;
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
box?: BoxProps & BoxFlexDisplayProps;
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
export
|
|
3
|
-
children: ReactNode;
|
|
2
|
+
export interface TableProps {
|
|
3
|
+
children: ReactNode;
|
|
4
4
|
/** The number and size of columns. See [grid-template-columns](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns). */
|
|
5
5
|
columnLayout: string;
|
|
6
6
|
isLoading?: boolean;
|
|
@@ -13,32 +13,32 @@ children: ReactNode;
|
|
|
13
13
|
* set the layout context.
|
|
14
14
|
*/
|
|
15
15
|
export declare function Table(props: TableProps): JSX.Element;
|
|
16
|
-
export
|
|
17
|
-
children: ReactNode;
|
|
16
|
+
export interface TableHeadProps {
|
|
17
|
+
children: ReactNode;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Wrapper for the entire table header. This ensures any rows contained in it have the
|
|
21
21
|
* header row style applied.
|
|
22
22
|
*/
|
|
23
23
|
export declare function TableHead(props: TableHeadProps): JSX.Element;
|
|
24
|
-
export
|
|
25
|
-
children: ReactNode;
|
|
24
|
+
export interface TableBodyProps {
|
|
25
|
+
children: ReactNode;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Wrapper for the entire table body and its rows. This ensures any rows contained in
|
|
29
29
|
* it have the body row style applied.
|
|
30
30
|
*/
|
|
31
31
|
export declare function TableBody(props: TableBodyProps): JSX.Element;
|
|
32
|
-
export
|
|
33
|
-
children: ReactNode;
|
|
32
|
+
export interface ClickableTableRowProps {
|
|
33
|
+
children: ReactNode;
|
|
34
34
|
/** Visibly disable the row */
|
|
35
35
|
disabled?: boolean;
|
|
36
36
|
/** Callback fired when the row is clicked */
|
|
37
37
|
onClick?: () => void;
|
|
38
38
|
renderLink?: never;
|
|
39
39
|
}
|
|
40
|
-
export
|
|
41
|
-
children: ReactNode;
|
|
40
|
+
export interface LinkTableRowProps {
|
|
41
|
+
children: ReactNode;
|
|
42
42
|
/** Visibly disable the row */
|
|
43
43
|
disabled?: boolean;
|
|
44
44
|
onClick?: never;
|
|
@@ -55,8 +55,8 @@ type TableRowProps = ClickableTableRowProps | LinkTableRowProps;
|
|
|
55
55
|
* - Given a renderLink: wraps the **entire** row in the given component. E.g. wrapping it in `react-router-dom` `<Link>`
|
|
56
56
|
*/
|
|
57
57
|
export declare function TableRow(props: TableRowProps): JSX.Element;
|
|
58
|
-
export
|
|
59
|
-
children?: ReactNode;
|
|
58
|
+
export interface TableCellProps {
|
|
59
|
+
children?: ReactNode;
|
|
60
60
|
/** How to align the content in the cell. Note that undefined defaults to start */
|
|
61
61
|
align?: "center" | "end";
|
|
62
62
|
/** Whether the content of the cell is interactive, this disables the link properties for that cell. Defaults to `false`. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type RefObject } from "react";
|
|
2
2
|
import { type LastItemLocation } from "./useTagFieldHeader";
|
|
3
|
-
|
|
4
|
-
selectedValues: Set<string>;
|
|
3
|
+
interface TagFieldHeaderProps {
|
|
4
|
+
selectedValues: Set<string>;
|
|
5
5
|
searchText: string;
|
|
6
6
|
setSearchText: (searchText: string) => void;
|
|
7
7
|
open: boolean;
|
|
@@ -12,8 +12,8 @@ selectedValues: Set<string>;
|
|
|
12
12
|
fieldRef: RefObject<HTMLDivElement>;
|
|
13
13
|
}
|
|
14
14
|
export declare function TagFieldHeader(props: TagFieldHeaderProps): JSX.Element;
|
|
15
|
-
|
|
16
|
-
displayedTags: string[];
|
|
15
|
+
interface TagsContainerProps {
|
|
16
|
+
displayedTags: string[];
|
|
17
17
|
extraTags: number;
|
|
18
18
|
removeSelectedValue: (valueToDelete: string | LastItemLocation) => void;
|
|
19
19
|
open: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type RefObject } from "react";
|
|
2
|
-
|
|
3
|
-
selectedValues: Set<string>;
|
|
2
|
+
interface UseTagFieldProps {
|
|
3
|
+
selectedValues: Set<string>;
|
|
4
4
|
setOpen: (open: boolean) => void;
|
|
5
5
|
fieldRef: RefObject<HTMLDivElement>;
|
|
6
6
|
onSelectedValuesChange: (selectedValues: Set<string>) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type KeyboardEvent, type RefObject } from "react";
|
|
2
|
-
|
|
3
|
-
selectedValues: Set<string>;
|
|
2
|
+
interface UseTagFieldHeaderProps {
|
|
3
|
+
selectedValues: Set<string>;
|
|
4
4
|
tagsContainerRef: RefObject<HTMLDivElement>;
|
|
5
5
|
open: boolean;
|
|
6
6
|
onSelectedValuesChange: (selectedValues: Set<string>) => void;
|
|
@@ -11,8 +11,8 @@ export declare function useTagFieldHeader(props: UseTagFieldHeaderProps): {
|
|
|
11
11
|
extraTags: number;
|
|
12
12
|
};
|
|
13
13
|
export type LastItemLocation = -1;
|
|
14
|
-
|
|
15
|
-
inputRef: RefObject<HTMLDivElement>;
|
|
14
|
+
interface UseHandleKeyboardEntriesProps {
|
|
15
|
+
inputRef: RefObject<HTMLDivElement>;
|
|
16
16
|
searchText: string;
|
|
17
17
|
setOpen: (open: boolean) => void;
|
|
18
18
|
onCreateTag: () => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { SX } from "../../theme";
|
|
3
3
|
import type { BaseInputProps } from "../BaseInput/BaseInput";
|
|
4
|
-
export
|
|
5
|
-
inputMode?: "text";
|
|
4
|
+
export interface TextInputProps {
|
|
5
|
+
inputMode?: "text";
|
|
6
6
|
name?: string;
|
|
7
7
|
id?: BaseInputProps["id"];
|
|
8
8
|
placeholder?: BaseInputProps["placeholder"];
|
|
@@ -21,5 +21,6 @@ inputMode?: "text";
|
|
|
21
21
|
onFocus?: BaseInputProps["onFocus"];
|
|
22
22
|
onBlur?: BaseInputProps["onBlur"];
|
|
23
23
|
onPaste?: BaseInputProps["onPaste"];
|
|
24
|
+
onClick?: BaseInputProps["onClick"];
|
|
24
25
|
}
|
|
25
26
|
export declare const TextInput: (props: TextInputProps & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
export
|
|
3
|
-
children?: ReactNode;
|
|
2
|
+
export interface ThemeProviderProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
4
|
mode?: "light" | "dark" | "system";
|
|
5
5
|
}
|
|
6
6
|
export declare function ThemeProvider(props: ThemeProviderProps): JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ZonedDateTime } from "@internationalized/date";
|
|
2
2
|
import { type TimeValue } from "@react-aria/datepicker";
|
|
3
3
|
import type { SX } from "../../theme";
|
|
4
|
-
|
|
5
|
-
defaultValue?: TimeValue | ZonedDateTime;
|
|
4
|
+
interface TimeFieldProps {
|
|
5
|
+
defaultValue?: TimeValue | ZonedDateTime;
|
|
6
6
|
minValue?: "now";
|
|
7
7
|
onChange: (value: TimeValue) => void;
|
|
8
8
|
sx?: SX;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import { type IconName } from "../Icon";
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
3
|
+
interface ToastAction {
|
|
4
|
+
title: string;
|
|
5
5
|
onClick: () => void;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
onClick: () => void;
|
|
7
|
+
interface ToastCancel {
|
|
8
|
+
onClick: () => void;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
variant?: "inline";
|
|
10
|
+
interface InlineToastProps {
|
|
11
|
+
variant?: "inline";
|
|
12
12
|
icon?: IconName;
|
|
13
13
|
loadingIndicator?: boolean;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
variant: "card";
|
|
15
|
+
interface CardToastProps {
|
|
16
|
+
variant: "card";
|
|
17
17
|
subtitle?: ReactNode;
|
|
18
18
|
}
|
|
19
19
|
export type ToastProps = {
|
|
@@ -18,8 +18,8 @@ type MultipleValueProps<Value extends string> = {
|
|
|
18
18
|
onValueChange?: (value: Value[]) => void;
|
|
19
19
|
};
|
|
20
20
|
export declare function ToggleButtonGroup<Value extends string>(props: ToggleButtonGroupProps<Value>): JSX.Element;
|
|
21
|
-
|
|
22
|
-
children?: ReactNode;
|
|
21
|
+
interface ToggleButtonGroupItemProps {
|
|
22
|
+
children?: ReactNode;
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
value: string;
|
|
25
25
|
endIcon?: IconName;
|
|
@@ -2,43 +2,43 @@ import * as ToolbarPrimitive from "@radix-ui/react-toolbar";
|
|
|
2
2
|
import { type MouseEvent, type ReactNode } from "react";
|
|
3
3
|
import type { SX } from "../../theme";
|
|
4
4
|
import type { IconName } from "../Icon";
|
|
5
|
-
export
|
|
6
|
-
children?: ReactNode;
|
|
5
|
+
export interface ToolbarProps {
|
|
6
|
+
children?: ReactNode;
|
|
7
7
|
sx?: SX;
|
|
8
8
|
}
|
|
9
9
|
export declare function Toolbar(props: ToolbarProps): JSX.Element;
|
|
10
|
-
|
|
11
|
-
children?: ReactNode;
|
|
10
|
+
interface ToolbarButtonProps {
|
|
11
|
+
children?: ReactNode;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
startIcon?: IconName;
|
|
14
14
|
endIcon?: IconName;
|
|
15
15
|
onClick?: (event: MouseEvent) => void;
|
|
16
16
|
}
|
|
17
17
|
export declare const ToolbarButton: (props: ToolbarButtonProps & import("react").RefAttributes<HTMLButtonElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
18
|
-
|
|
19
|
-
children?: ReactNode;
|
|
18
|
+
interface ToolbarButtonGroupProps {
|
|
19
|
+
children?: ReactNode;
|
|
20
20
|
density?: "regular" | "compact";
|
|
21
21
|
disabled?: boolean;
|
|
22
22
|
}
|
|
23
23
|
export declare function ToolbarButtonGroup(props: ToolbarButtonGroupProps): JSX.Element;
|
|
24
|
-
|
|
25
|
-
children?: ReactNode;
|
|
24
|
+
interface ToolbarSelectProps {
|
|
25
|
+
children?: ReactNode;
|
|
26
26
|
placeholder?: string;
|
|
27
27
|
disabled?: boolean;
|
|
28
28
|
value?: string;
|
|
29
29
|
onValueChange?: (value: string) => void;
|
|
30
30
|
}
|
|
31
31
|
export declare function ToolbarSelect(props: ToolbarSelectProps): JSX.Element;
|
|
32
|
-
|
|
33
|
-
children?: ReactNode;
|
|
32
|
+
interface ToolbarSelectItemProps {
|
|
33
|
+
children?: ReactNode;
|
|
34
34
|
disabled?: boolean;
|
|
35
35
|
textValue?: string;
|
|
36
36
|
value: string;
|
|
37
37
|
}
|
|
38
38
|
export declare function ToolbarSelectItem(props: ToolbarSelectItemProps): JSX.Element;
|
|
39
39
|
export declare function ToolbarSeparator(): JSX.Element;
|
|
40
|
-
|
|
41
|
-
children?: ReactNode;
|
|
40
|
+
interface ToolbarToggleButtonProps {
|
|
41
|
+
children?: ReactNode;
|
|
42
42
|
disabled?: boolean;
|
|
43
43
|
startIcon?: IconName;
|
|
44
44
|
endIcon?: IconName;
|
|
@@ -55,8 +55,8 @@ type ToolbarToggleButtonGroupProps = {
|
|
|
55
55
|
density?: "regular" | "compact";
|
|
56
56
|
} & GroupProps;
|
|
57
57
|
export declare function ToolbarToggleButtonGroup(props: ToolbarToggleButtonGroupProps): JSX.Element;
|
|
58
|
-
|
|
59
|
-
children?: ReactNode;
|
|
58
|
+
interface ToolbarToggleButtonGroupItemProps {
|
|
59
|
+
children?: ReactNode;
|
|
60
60
|
disabled?: boolean;
|
|
61
61
|
value: string;
|
|
62
62
|
endIcon?: IconName;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
3
|
export declare const TooltipProvider: import("react").FC<TooltipPrimitive.TooltipProviderProps>;
|
|
4
|
-
|
|
5
|
-
children: ReactNode;
|
|
4
|
+
interface BaseTooltipProps {
|
|
5
|
+
children: ReactNode;
|
|
6
6
|
side?: Parameters<typeof TooltipPrimitive.Content>[0]["side"];
|
|
7
7
|
sideOffset?: Parameters<typeof TooltipPrimitive.Content>[0]["sideOffset"];
|
|
8
8
|
align?: Parameters<typeof TooltipPrimitive.Content>[0]["align"];
|
|
@@ -33,13 +33,13 @@ children: ReactNode;
|
|
|
33
33
|
*/
|
|
34
34
|
animation?: "fade" | "none";
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
variant?: "text";
|
|
36
|
+
interface TextTooltipProps extends BaseTooltipProps {
|
|
37
|
+
variant?: "text";
|
|
38
38
|
content: string;
|
|
39
39
|
title?: string;
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
variant: "custom";
|
|
41
|
+
interface CustomTooltipProps extends BaseTooltipProps {
|
|
42
|
+
variant: "custom";
|
|
43
43
|
content: ReactNode;
|
|
44
44
|
title?: never;
|
|
45
45
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import type { SX } from "../../theme";
|
|
3
|
-
|
|
4
|
-
children: ReactNode;
|
|
3
|
+
interface WindowProps {
|
|
4
|
+
children: ReactNode;
|
|
5
5
|
sx?: SX;
|
|
6
6
|
}
|
|
7
7
|
export declare function Window(props: WindowProps): JSX.Element;
|
|
@@ -9,26 +9,26 @@ type WindowFrameProps = {
|
|
|
9
9
|
title?: ReactNode;
|
|
10
10
|
};
|
|
11
11
|
export declare function WindowFrame({ title }: WindowFrameProps): JSX.Element;
|
|
12
|
-
|
|
13
|
-
children: ReactNode;
|
|
12
|
+
interface WindowTabsProps {
|
|
13
|
+
children: ReactNode;
|
|
14
14
|
defaultValue?: string;
|
|
15
15
|
onValueChange?: (value: string) => void;
|
|
16
16
|
value?: string;
|
|
17
17
|
}
|
|
18
18
|
export declare function WindowTabs(props: WindowTabsProps): JSX.Element;
|
|
19
|
-
|
|
20
|
-
children: ReactNode;
|
|
19
|
+
interface WindowTabsListProps {
|
|
20
|
+
children: ReactNode;
|
|
21
21
|
onAddNewTab?: () => void;
|
|
22
22
|
}
|
|
23
23
|
export declare function WindowTabsList(props: WindowTabsListProps): JSX.Element;
|
|
24
|
-
|
|
25
|
-
children: ReactNode;
|
|
24
|
+
interface WindowTabsTriggerProps {
|
|
25
|
+
children: ReactNode;
|
|
26
26
|
value: string;
|
|
27
27
|
menu?: ReactNode;
|
|
28
28
|
}
|
|
29
29
|
export declare function WindowTabsTrigger(props: WindowTabsTriggerProps): JSX.Element;
|
|
30
|
-
|
|
31
|
-
children: ReactNode;
|
|
30
|
+
interface WindowTabsContentProps {
|
|
31
|
+
children: ReactNode;
|
|
32
32
|
value: string;
|
|
33
33
|
}
|
|
34
34
|
export declare function WindowTabsContent(props: WindowTabsContentProps): JSX.Element;
|
package/dist/theme/sx.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ import type { ThemeKeys } from "./theme";
|
|
|
12
12
|
* Layout properties that are safe to set on component without disturbing its own implementation details.
|
|
13
13
|
* Favor using this over using Box when applicable.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
16
|
-
flexGrow?: 1;
|
|
15
|
+
export interface SX {
|
|
16
|
+
flexGrow?: 1;
|
|
17
17
|
flexShrink?: 0;
|
|
18
18
|
flexBasis?: 0;
|
|
19
19
|
flexWrap?: "wrap";
|
|
@@ -34,6 +34,5 @@ flexGrow?: 1;
|
|
|
34
34
|
bottom?: ThemeKeys<"space">;
|
|
35
35
|
width?: CSSProperties["width"];
|
|
36
36
|
height?: CSSProperties["height"];
|
|
37
|
-
[key: `--${string
|
|
38
|
-
}`]: string | number;
|
|
37
|
+
[key: `--${string}`]: string | number;
|
|
39
38
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@internationalized/date": "3.5.5",
|
|
4
|
-
"@prismicio/editor-support": "0.4.
|
|
4
|
+
"@prismicio/editor-support": "0.4.54",
|
|
5
5
|
"@radix-ui/react-avatar": "1.1.0",
|
|
6
6
|
"@radix-ui/react-checkbox": "1.1.1",
|
|
7
7
|
"@radix-ui/react-dialog": "1.1.1",
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"sideEffects": false,
|
|
120
120
|
"stableVersion": "0.0.0",
|
|
121
121
|
"types": "./dist/index.d.ts",
|
|
122
|
-
"version": "0.4.
|
|
122
|
+
"version": "0.4.54"
|
|
123
123
|
}
|