@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.
Files changed (65) hide show
  1. package/dist/components/Alert/AlertContext.d.ts +6 -6
  2. package/dist/components/AnimatedElement/AnimatedElement.d.ts +3 -3
  3. package/dist/components/AnimatedList/AnimatedList.stories.d.ts +1 -1
  4. package/dist/components/AnimatedList/DragPreview.d.ts +2 -2
  5. package/dist/components/Badge/Badge.d.ts +2 -2
  6. package/dist/components/BaseInput/BaseInput.d.ts +9 -9
  7. package/dist/components/BlankSlate/BlankSlate.d.ts +1 -1
  8. package/dist/components/ButtonGroup/ButtonGroup.d.ts +4 -4
  9. package/dist/components/Card/Card.stories.d.ts +1 -1
  10. package/dist/components/Card/PreviewCard.d.ts +6 -6
  11. package/dist/components/CodeBlock/CodeBlock.d.ts +2 -2
  12. package/dist/components/ComboBox/ComboBox.d.ts +8 -8
  13. package/dist/components/ComboBox/useComboBox.d.ts +6 -6
  14. package/dist/components/ContentEditable/ContentEditable.d.ts +6 -5
  15. package/dist/components/DateInput/DateSegments.d.ts +4 -4
  16. package/dist/components/Dialog/Dialog.d.ts +10 -10
  17. package/dist/components/Dialog/Options/DialogOptions.d.ts +4 -4
  18. package/dist/components/Dot/Dot.d.ts +2 -2
  19. package/dist/components/DropdownMenu/DropdownMenu.d.ts +10 -10
  20. package/dist/components/ErrorBoundary/DefaultErrorMessage.d.ts +2 -2
  21. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +4 -4
  22. package/dist/components/Field/Field.d.ts +8 -8
  23. package/dist/components/FilterField/FilterField.d.ts +4 -4
  24. package/dist/components/FilterField/useFilterField.d.ts +4 -4
  25. package/dist/components/Group/Group.d.ts +1 -1
  26. package/dist/components/Group/GroupItem.d.ts +5 -7
  27. package/dist/components/Group/context.d.ts +16 -12
  28. package/dist/components/Image/Image.d.ts +2 -2
  29. package/dist/components/List/UnorderedList.d.ts +4 -4
  30. package/dist/components/MediaCard/MediaCard.d.ts +6 -6
  31. package/dist/components/NumberInput/NumberInput.d.ts +2 -2
  32. package/dist/components/OverflowContainer/OverflowContainer.d.ts +7 -6
  33. package/dist/components/Popover/Popover.d.ts +2 -2
  34. package/dist/components/ProgressBar/ProgressBar.d.ts +2 -2
  35. package/dist/components/Radio/RadioButton.d.ts +2 -2
  36. package/dist/components/Radio/RadioCard.d.ts +2 -2
  37. package/dist/components/Radio/RadioItem.d.ts +2 -2
  38. package/dist/components/SearchInput/SearchInput.d.ts +2 -2
  39. package/dist/components/SelectCard/SelectCard.d.ts +3 -2
  40. package/dist/components/Separator/Separator.d.ts +2 -2
  41. package/dist/components/Skeleton/Skeleton.d.ts +23 -13
  42. package/dist/components/Skeleton/Skeleton.stories.d.ts +1 -0
  43. package/dist/components/Slice/SliceCard.d.ts +2 -2
  44. package/dist/components/Slice/SliceSelectCard.d.ts +2 -2
  45. package/dist/components/StoryCard.d.ts +2 -2
  46. package/dist/components/Tab/Tab.d.ts +2 -2
  47. package/dist/components/Table/Table.d.ts +12 -12
  48. package/dist/components/Tag/Tag.d.ts +2 -2
  49. package/dist/components/TagField/TagFieldHeader.d.ts +4 -4
  50. package/dist/components/TagField/useTagField.d.ts +2 -2
  51. package/dist/components/TagField/useTagFieldHeader.d.ts +4 -4
  52. package/dist/components/TextInput/TextInput.d.ts +2 -2
  53. package/dist/components/ThemeProvider.d.ts +2 -2
  54. package/dist/components/TimeField/TimeField.d.ts +2 -2
  55. package/dist/components/Toast/Toast.d.ts +8 -8
  56. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
  57. package/dist/components/Toolbar/Toolbar.d.ts +14 -14
  58. package/dist/components/Tooltip/Tooltip.d.ts +6 -6
  59. package/dist/components/Video/Video.d.ts +2 -2
  60. package/dist/components/Window/Window.d.ts +10 -10
  61. package/dist/index.cjs.js +159 -159
  62. package/dist/index.es.js +6482 -6443
  63. package/dist/style.css +1 -1
  64. package/dist/theme/sx.d.ts +4 -3
  65. 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
- interface Tag {
4
- id: string;
3
+ type Tag = {
4
+ id: string;
5
5
  name: string;
6
6
  }
7
- interface MediaCardProps {
8
- "aria-label"?: string;
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
- interface MediaCardPlaceholderProps {
54
- filename: string;
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 interface NumberInputProps {
4
- autoComplete?: string;
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
- interface OverflowContainerProps {
5
- children: ReactNode[];
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
- interface OverflowItemProps {
14
- children: ReactNode;
13
+ type OverflowItemProps = {
14
+ children: ReactNode;
15
15
  }
16
16
  export declare function OverflowItem(props: OverflowItemProps): JSX.Element;
17
- interface OverflowAdornmentProps {
18
- adornment: ({ numberOfVisibleItems }: {
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 interface PopoverProps {
4
- anchor: ReactNode;
3
+ export type PopoverProps = {
4
+ anchor: ReactNode;
5
5
  children?: ReactNode;
6
6
  focusOnEnter?: boolean;
7
7
  open?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { type SX, type ThemeKeys } from "../../theme";
2
- export interface ProgressBarProps {
3
- /**
2
+ export type ProgressBarProps = {
3
+ /**
4
4
  * The current value of the progress.
5
5
  */
6
6
  value: number;
@@ -1,5 +1,5 @@
1
- export interface RadioButtonProps {
2
- label?: string;
1
+ export type RadioButtonProps = {
2
+ label?: string;
3
3
  disabled?: boolean;
4
4
  /**
5
5
  * Whether this RadioButton is only included for decoration purposes
@@ -1,5 +1,5 @@
1
- export interface RadioCardProps {
2
- title: string;
1
+ export type RadioCardProps = {
2
+ title: string;
3
3
  disabled?: boolean;
4
4
  }
5
5
  export declare function RadioCard(props: RadioCardProps): JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from "react";
2
2
  /** Private component */
3
- interface RadioItemProps {
4
- disabled: boolean;
3
+ type RadioItemProps = {
4
+ disabled: boolean;
5
5
  children: ReactNode;
6
6
  }
7
7
  export declare function RadioItem(props: RadioItemProps): JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { type AriaRole, type FocusEvent } from "react";
2
2
  import type { SX } from "../../theme";
3
- export interface SearchInputProps {
4
- value: string;
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: () => void;
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 interface SeparatorProps {
4
- color?: "grey" | "purple" | "tomato";
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 | 2 | 1 | 3 | undefined;
25
- alignSelf?: "center" | "stretch" | "start" | "end" | undefined;
26
- justifySelf?: "center" | "stretch" | "start" | "end" | undefined;
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 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
30
- marginRight?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
31
- marginTop?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
32
- marginBottom?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
33
- marginInline?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
34
- marginBlock?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
35
- top?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
36
- left?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
37
- right?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
38
- bottom?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
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>;
@@ -43,6 +43,7 @@ export declare const Default: {
43
43
  height?: string | number | undefined;
44
44
  children?: import("react").ReactNode;
45
45
  sx?: import("../../theme").SX | undefined;
46
+ zIndex?: -1 | undefined;
46
47
  }) => JSX.Element;
47
48
  args: {
48
49
  width: number;
@@ -1,6 +1,6 @@
1
1
  import type { KeyboardEvent, MouseEvent, ReactNode } from "react";
2
- export interface SliceCardProps {
3
- id?: string;
2
+ export type SliceCardProps = {
3
+ id?: string;
4
4
  title: string;
5
5
  subTitle: string;
6
6
  index: number;
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
- export interface SliceSelectCardProps {
3
- /**
2
+ export type SliceSelectCardProps = {
3
+ /**
4
4
  * Whether the card should have a fixed height or not. Defaults to `true`.
5
5
  */
6
6
  fixedHeight?: boolean;
@@ -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
- interface StoryCardProps {
7
- title: string;
6
+ type StoryCardProps = {
7
+ title: string;
8
8
  children: ReactNode;
9
9
  box?: BoxProps & BoxFlexDisplayProps;
10
10
  }
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from "react";
2
2
  import type { SX } from "../../theme";
3
- export interface TabProps {
4
- children: ReactNode;
3
+ export type TabProps = {
4
+ children: ReactNode;
5
5
  asChild?: boolean;
6
6
  selected?: boolean;
7
7
  outline?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode } from "react";
2
- export interface TableProps {
3
- children: ReactNode;
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 interface TableHeadProps {
17
- children: ReactNode;
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 interface TableBodyProps {
25
- children: ReactNode;
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 interface ClickableTableRowProps {
33
- children: ReactNode;
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 interface LinkTableRowProps {
41
- children: ReactNode;
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 interface TableCellProps {
59
- children?: ReactNode;
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,5 +1,5 @@
1
- export interface TagProps {
2
- title: string;
1
+ export type TagProps = {
2
+ title: string;
3
3
  label?: string;
4
4
  active?: boolean;
5
5
  onClose?: () => void;
@@ -1,7 +1,7 @@
1
1
  import { type RefObject } from "react";
2
2
  import { type LastItemLocation } from "./useTagFieldHeader";
3
- interface TagFieldHeaderProps {
4
- selectedValues: Set<string>;
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
- interface TagsContainerProps {
16
- displayedTags: string[];
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
- interface UseTagFieldProps {
3
- selectedValues: Set<string>;
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
- interface UseTagFieldHeaderProps {
3
- selectedValues: Set<string>;
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
- interface UseHandleKeyboardEntriesProps {
15
- inputRef: RefObject<HTMLDivElement>;
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 interface TextInputProps {
5
- inputMode?: "text";
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 interface ThemeProviderProps {
3
- children?: ReactNode;
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
- interface TimeFieldProps {
5
- defaultValue?: TimeValue | ZonedDateTime;
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
- interface ToastAction {
4
- title: string;
3
+ type ToastAction = {
4
+ title: string;
5
5
  onClick: () => void;
6
6
  }
7
- interface ToastCancel {
8
- onClick: () => void;
7
+ type ToastCancel = {
8
+ onClick: () => void;
9
9
  }
10
- interface InlineToastProps {
11
- variant?: "inline";
10
+ type InlineToastProps = {
11
+ variant?: "inline";
12
12
  icon?: IconName;
13
13
  loadingIndicator?: boolean;
14
14
  }
15
- interface CardToastProps {
16
- variant: "card";
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
- interface ToggleButtonGroupItemProps {
22
- children?: ReactNode;
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 interface ToolbarProps {
6
- children?: ReactNode;
5
+ export type ToolbarProps = {
6
+ children?: ReactNode;
7
7
  sx?: SX;
8
8
  }
9
9
  export declare function Toolbar(props: ToolbarProps): JSX.Element;
10
- interface ToolbarButtonProps {
11
- children?: ReactNode;
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
- interface ToolbarButtonGroupProps {
19
- children?: ReactNode;
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
- interface ToolbarSelectProps {
25
- children?: ReactNode;
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
- interface ToolbarSelectItemProps {
33
- children?: ReactNode;
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
- interface ToolbarToggleButtonProps {
41
- children?: ReactNode;
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
- interface ToolbarToggleButtonGroupItemProps {
59
- children?: ReactNode;
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
- interface BaseTooltipProps {
5
- children: ReactNode;
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
- interface TextTooltipProps extends BaseTooltipProps {
37
- variant?: "text";
36
+ type TextTooltipProps = BaseTooltipProps & {
37
+ variant?: "text";
38
38
  content: string;
39
39
  title?: string;
40
40
  }
41
- interface CustomTooltipProps extends BaseTooltipProps {
42
- variant: "custom";
41
+ type CustomTooltipProps = BaseTooltipProps & {
42
+ variant: "custom";
43
43
  content: ReactNode;
44
44
  title?: never;
45
45
  }
@@ -1,6 +1,6 @@
1
1
  import { type SX } from "../../theme";
2
- export interface VideoProps {
3
- src: string;
2
+ export type VideoProps = {
3
+ src: string;
4
4
  loop?: boolean;
5
5
  autoPlay?: boolean;
6
6
  sizing?: "contain" | "cover" | "none";
@@ -1,7 +1,7 @@
1
1
  import { type ReactNode } from "react";
2
2
  import type { SX } from "../../theme";
3
- interface WindowProps {
4
- children: ReactNode;
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
- interface WindowTabsProps {
13
- children: ReactNode;
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
- interface WindowTabsListProps {
20
- children: ReactNode;
19
+ type WindowTabsListProps = {
20
+ children: ReactNode;
21
21
  onAddNewTab?: () => void;
22
22
  }
23
23
  export declare function WindowTabsList(props: WindowTabsListProps): JSX.Element;
24
- interface WindowTabsTriggerProps {
25
- children: ReactNode;
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
- interface WindowTabsContentProps {
31
- children: ReactNode;
30
+ type WindowTabsContentProps = {
31
+ children: ReactNode;
32
32
  value: string;
33
33
  }
34
34
  export declare function WindowTabsContent(props: WindowTabsContentProps): JSX.Element;