@prismicio/editor-ui 0.4.50 → 0.4.52
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 +9 -9
- package/dist/components/BlankSlate/BlankSlate.d.ts +1 -1
- 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 +6 -5
- 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/Group.d.ts +1 -1
- package/dist/components/Group/GroupItem.d.ts +5 -7
- package/dist/components/Group/context.d.ts +16 -12
- 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 +7 -6
- 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/SelectCard/SelectCard.d.ts +3 -2
- package/dist/components/Separator/Separator.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.d.ts +23 -13
- package/dist/components/Skeleton/Skeleton.stories.d.ts +1 -0
- 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 +2 -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/index.cjs.js +159 -159
- package/dist/index.es.js +6482 -6443
- package/dist/style.css +1 -1
- package/dist/theme/sx.d.ts +4 -3
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { KeyboardEvent, MouseEvent } from "react";
|
|
2
2
|
import { type ProgressBarProps } from "../ProgressBar";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type Tag = {
|
|
4
|
+
id: string;
|
|
5
5
|
name: string;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
type MediaCardProps = {
|
|
8
|
+
"aria-label"?: string;
|
|
9
9
|
url: string;
|
|
10
10
|
filename: string;
|
|
11
11
|
filenameHighlight?: string;
|
|
@@ -50,8 +50,8 @@ interface MediaCardProps {
|
|
|
50
50
|
onAddTagClick?: () => void;
|
|
51
51
|
}
|
|
52
52
|
export declare function MediaCard(props: MediaCardProps): JSX.Element;
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
type MediaCardPlaceholderProps = {
|
|
54
|
+
filename: string;
|
|
55
55
|
kind?: string;
|
|
56
56
|
}
|
|
57
57
|
export declare function MediaCardPlaceholder(props: MediaCardPlaceholderProps): JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SX } from "../../theme";
|
|
2
2
|
import type { BaseInputProps } from "../BaseInput/BaseInput";
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export type NumberInputProps = {
|
|
4
|
+
autoComplete?: string;
|
|
5
5
|
id?: string;
|
|
6
6
|
max?: number;
|
|
7
7
|
min?: number;
|
|
@@ -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
|
-
|
|
4
|
+
type 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,12 +10,13 @@ interface OverflowContainerProps {
|
|
|
10
10
|
gap?: Gap;
|
|
11
11
|
}
|
|
12
12
|
export declare function OverflowContainer(props: OverflowContainerProps): JSX.Element;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
type OverflowItemProps = {
|
|
14
|
+
children: ReactNode;
|
|
15
15
|
}
|
|
16
16
|
export declare function OverflowItem(props: OverflowItemProps): JSX.Element;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
type OverflowAdornmentProps = {
|
|
18
|
+
adornment: ({ numberOfVisibleItems
|
|
19
|
+
}: {
|
|
19
20
|
numberOfVisibleItems: number;
|
|
20
21
|
}) => ReactNode;
|
|
21
22
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PopoverContentProps } from "@radix-ui/react-popover";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export type 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
|
-
|
|
3
|
+
export type SearchInputProps = {
|
|
4
|
+
value: string;
|
|
5
5
|
onValueChange: (value: string) => void;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
maxLength?: number;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
1
|
+
import type { MouseEventHandler, ReactNode } from "react";
|
|
2
2
|
export interface SelectCardProps {
|
|
3
3
|
selected: boolean;
|
|
4
|
-
onSelect
|
|
4
|
+
onSelect?: MouseEventHandler<HTMLButtonElement>;
|
|
5
5
|
children: ReactNode;
|
|
6
|
+
asChild?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export declare function SelectCard(props: SelectCardProps): JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { SX } from "../../theme";
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export type SeparatorProps = {
|
|
4
|
+
color?: "grey" | "purple" | "tomato";
|
|
5
5
|
/**
|
|
6
6
|
* Either `vertical` or `horizontal`. Defaults to `horizontal`.
|
|
7
7
|
*/
|
|
@@ -11,30 +11,40 @@ export interface Props {
|
|
|
11
11
|
*/
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
sx?: SX;
|
|
14
|
+
/**
|
|
15
|
+
* Skeleton is creating a new stacking context because it's opacity is lower than 1 during animation.
|
|
16
|
+
* If you need to render an element which meets the following criteria:
|
|
17
|
+
* - precedes the Skeleton in the DOM
|
|
18
|
+
* - creates a new stacking context (ie. because of position: sticky)
|
|
19
|
+
* and you want the Skeleton to render behind it,
|
|
20
|
+
* you will need to set the zIndex to -1 on the Skeleton.
|
|
21
|
+
*/
|
|
22
|
+
zIndex?: -1;
|
|
14
23
|
}
|
|
15
24
|
export declare function Skeleton(props: Props): import("react").DetailedReactHTMLElement<{
|
|
16
25
|
className: string;
|
|
17
26
|
style: {
|
|
18
27
|
width: string | number | undefined;
|
|
19
28
|
height: string | number | undefined;
|
|
29
|
+
zIndex: -1 | undefined;
|
|
20
30
|
flexGrow?: 1 | undefined;
|
|
21
31
|
flexShrink?: 0 | undefined;
|
|
22
32
|
flexBasis?: 0 | undefined;
|
|
23
33
|
flexWrap?: "wrap" | undefined;
|
|
24
|
-
order?: 0 |
|
|
25
|
-
alignSelf?: "center" | "
|
|
26
|
-
justifySelf?: "center" | "
|
|
34
|
+
order?: 0 | 1 | 2 | 3 | undefined;
|
|
35
|
+
alignSelf?: "center" | "end" | "start" | "stretch" | undefined;
|
|
36
|
+
justifySelf?: "center" | "end" | "start" | "stretch" | undefined;
|
|
27
37
|
visibility?: "hidden" | "visible" | undefined;
|
|
28
38
|
position?: "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
|
29
|
-
marginLeft?: 0 |
|
|
30
|
-
marginRight?: 0 |
|
|
31
|
-
marginTop?: 0 |
|
|
32
|
-
marginBottom?: 0 |
|
|
33
|
-
marginInline?: 0 |
|
|
34
|
-
marginBlock?: 0 |
|
|
35
|
-
top?: 0 |
|
|
36
|
-
left?: 0 |
|
|
37
|
-
right?: 0 |
|
|
38
|
-
bottom?: 0 |
|
|
39
|
+
marginLeft?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
40
|
+
marginRight?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
41
|
+
marginTop?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
42
|
+
marginBottom?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
43
|
+
marginInline?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
44
|
+
marginBlock?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
45
|
+
top?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
46
|
+
left?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
47
|
+
right?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
48
|
+
bottom?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
|
|
39
49
|
};
|
|
40
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
|
-
|
|
6
|
+
type 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
|
-
|
|
2
|
+
export type 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 @@ export interface TableProps {
|
|
|
13
13
|
* set the layout context.
|
|
14
14
|
*/
|
|
15
15
|
export declare function Table(props: TableProps): JSX.Element;
|
|
16
|
-
export
|
|
17
|
-
|
|
16
|
+
export type 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
|
-
|
|
24
|
+
export type 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
|
-
|
|
32
|
+
export type 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
|
-
|
|
40
|
+
export type 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
|
-
|
|
58
|
+
export type 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
|
-
|
|
3
|
+
type TagFieldHeaderProps = {
|
|
4
|
+
selectedValues: Set<string>;
|
|
5
5
|
searchText: string;
|
|
6
6
|
setSearchText: (searchText: string) => void;
|
|
7
7
|
open: boolean;
|
|
@@ -12,8 +12,8 @@ interface TagFieldHeaderProps {
|
|
|
12
12
|
fieldRef: RefObject<HTMLDivElement>;
|
|
13
13
|
}
|
|
14
14
|
export declare function TagFieldHeader(props: TagFieldHeaderProps): JSX.Element;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
type 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
|
-
|
|
2
|
+
type 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
|
-
|
|
2
|
+
type 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
|
-
|
|
14
|
+
type 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
|
-
|
|
4
|
+
export type TextInputProps = {
|
|
5
|
+
inputMode?: "text";
|
|
6
6
|
name?: string;
|
|
7
7
|
id?: BaseInputProps["id"];
|
|
8
8
|
placeholder?: BaseInputProps["placeholder"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export type 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
|
-
|
|
4
|
+
type 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
|
-
|
|
3
|
+
type ToastAction = {
|
|
4
|
+
title: string;
|
|
5
5
|
onClick: () => void;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
type ToastCancel = {
|
|
8
|
+
onClick: () => void;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
type InlineToastProps = {
|
|
11
|
+
variant?: "inline";
|
|
12
12
|
icon?: IconName;
|
|
13
13
|
loadingIndicator?: boolean;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
type 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
|
-
|
|
21
|
+
type 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
|
-
|
|
5
|
+
export type ToolbarProps = {
|
|
6
|
+
children?: ReactNode;
|
|
7
7
|
sx?: SX;
|
|
8
8
|
}
|
|
9
9
|
export declare function Toolbar(props: ToolbarProps): JSX.Element;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
type 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
|
-
|
|
18
|
+
type 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
|
-
|
|
24
|
+
type 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
|
-
|
|
32
|
+
type 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
|
-
|
|
40
|
+
type 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
|
-
|
|
58
|
+
type 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
|
-
|
|
4
|
+
type 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 @@ interface BaseTooltipProps {
|
|
|
33
33
|
*/
|
|
34
34
|
animation?: "fade" | "none";
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
type TextTooltipProps = BaseTooltipProps & {
|
|
37
|
+
variant?: "text";
|
|
38
38
|
content: string;
|
|
39
39
|
title?: string;
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
type CustomTooltipProps = 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
|
-
|
|
3
|
+
type 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
|
-
|
|
12
|
+
type 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
|
-
|
|
19
|
+
type WindowTabsListProps = {
|
|
20
|
+
children: ReactNode;
|
|
21
21
|
onAddNewTab?: () => void;
|
|
22
22
|
}
|
|
23
23
|
export declare function WindowTabsList(props: WindowTabsListProps): JSX.Element;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
type 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
|
-
|
|
30
|
+
type WindowTabsContentProps = {
|
|
31
|
+
children: ReactNode;
|
|
32
32
|
value: string;
|
|
33
33
|
}
|
|
34
34
|
export declare function WindowTabsContent(props: WindowTabsContentProps): JSX.Element;
|