@prismicio/editor-ui 0.4.51 → 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 (63) 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/context.d.ts +4 -4
  26. package/dist/components/Image/Image.d.ts +2 -2
  27. package/dist/components/List/UnorderedList.d.ts +4 -4
  28. package/dist/components/MediaCard/MediaCard.d.ts +6 -6
  29. package/dist/components/NumberInput/NumberInput.d.ts +2 -2
  30. package/dist/components/OverflowContainer/OverflowContainer.d.ts +7 -6
  31. package/dist/components/Popover/Popover.d.ts +2 -2
  32. package/dist/components/ProgressBar/ProgressBar.d.ts +2 -2
  33. package/dist/components/Radio/RadioButton.d.ts +2 -2
  34. package/dist/components/Radio/RadioCard.d.ts +2 -2
  35. package/dist/components/Radio/RadioItem.d.ts +2 -2
  36. package/dist/components/SearchInput/SearchInput.d.ts +2 -2
  37. package/dist/components/SelectCard/SelectCard.d.ts +3 -2
  38. package/dist/components/Separator/Separator.d.ts +2 -2
  39. package/dist/components/Skeleton/Skeleton.d.ts +23 -13
  40. package/dist/components/Skeleton/Skeleton.stories.d.ts +1 -0
  41. package/dist/components/Slice/SliceCard.d.ts +2 -2
  42. package/dist/components/Slice/SliceSelectCard.d.ts +2 -2
  43. package/dist/components/StoryCard.d.ts +2 -2
  44. package/dist/components/Tab/Tab.d.ts +2 -2
  45. package/dist/components/Table/Table.d.ts +12 -12
  46. package/dist/components/Tag/Tag.d.ts +2 -2
  47. package/dist/components/TagField/TagFieldHeader.d.ts +4 -4
  48. package/dist/components/TagField/useTagField.d.ts +2 -2
  49. package/dist/components/TagField/useTagFieldHeader.d.ts +4 -4
  50. package/dist/components/TextInput/TextInput.d.ts +2 -2
  51. package/dist/components/ThemeProvider.d.ts +2 -2
  52. package/dist/components/TimeField/TimeField.d.ts +2 -2
  53. package/dist/components/Toast/Toast.d.ts +8 -8
  54. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
  55. package/dist/components/Toolbar/Toolbar.d.ts +14 -14
  56. package/dist/components/Tooltip/Tooltip.d.ts +6 -6
  57. package/dist/components/Video/Video.d.ts +2 -2
  58. package/dist/components/Window/Window.d.ts +10 -10
  59. package/dist/index.cjs.js +21 -21
  60. package/dist/index.es.js +222 -219
  61. package/dist/style.css +1 -1
  62. package/dist/theme/sx.d.ts +4 -3
  63. package/package.json +2 -2
@@ -1,24 +1,24 @@
1
1
  import { type ReactNode, type RefObject } from "react";
2
2
  import { type FooterButtons } from ".";
3
3
  import { type Colors } from "./Alert";
4
- export interface AlertConfig {
5
- id?: string;
4
+ export type AlertConfig = {
5
+ id?: string;
6
6
  title: string;
7
7
  subtitle: ReactNode;
8
8
  buttons?: FooterButtons;
9
9
  onRetry?: () => void;
10
10
  color?: Colors;
11
11
  }
12
- interface AlertContext {
13
- showAlert: (config: AlertConfig) => void;
12
+ type AlertContext = {
13
+ showAlert: (config: AlertConfig) => void;
14
14
  /** Useful to ignore click events when interacting with the alerts.
15
15
  *
16
16
  * E.g. if you don't want to close a dialog when dismissing an alert. */
17
17
  containerRef: RefObject<HTMLDivElement> | null;
18
18
  }
19
19
  declare const AlertContext: import("react").Context<AlertContext>;
20
- interface AlertProviderProps {
21
- children: ReactNode;
20
+ type AlertProviderProps = {
21
+ children: ReactNode;
22
22
  }
23
23
  export declare function AlertProvider(props: AlertProviderProps): JSX.Element;
24
24
  export declare function useAlert(): AlertContext;
@@ -1,10 +1,10 @@
1
1
  import { type ReactElement } from "react";
2
2
  import { type SX, type ThemeKeys } from "../../theme";
3
- export interface AnimatedElementProps {
4
- children: OnlyChild;
3
+ export type AnimatedElementProps = {
4
+ children: OnlyChild;
5
5
  animation?: {
6
6
  name: "fade";
7
- } | {
7
+ } | {
8
8
  name: "slide";
9
9
  offset?: number;
10
10
  } | {
@@ -8,7 +8,7 @@ export default meta;
8
8
  export declare const Default: {
9
9
  render: (args: {
10
10
  ariaLabel: string;
11
- gap?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
11
+ gap?: 0 | 2 | 1 | 20 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
12
12
  direction?: "horizontal" | "vertical" | undefined;
13
13
  items: unknown[];
14
14
  getItemKey: (item: unknown) => string;
@@ -1,7 +1,7 @@
1
1
  import { type ReactNode } from "react";
2
2
  export type DragPreviewRenderer = (draggedKey: string, callback: (element: HTMLElement) => void) => void;
3
- export interface DragPreviewProps {
4
- direction: "horizontal" | "vertical";
3
+ export type DragPreviewProps = {
4
+ direction: "horizontal" | "vertical";
5
5
  children: (key: string) => ReactNode;
6
6
  }
7
7
  export declare const DragPreview: (props: DragPreviewProps & import("react").RefAttributes<DragPreviewRenderer>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
@@ -1,8 +1,8 @@
1
1
  import { type MouseEvent, type ReactNode } from "react";
2
2
  import type { SX } from "../../theme";
3
3
  import { type IconName } from "../Icon";
4
- export interface BadgeProps {
5
- title: ReactNode;
4
+ export type BadgeProps = {
5
+ title: ReactNode;
6
6
  color?: "grey" | "green" | "amber" | "purple" | "tomato" | "indigo";
7
7
  size?: "large" | "medium" | "small";
8
8
  maxWidth?: 150 | 250;
@@ -3,8 +3,8 @@ import type { SX, ThemeKeys } from "../../theme";
3
3
  /**
4
4
  * Flexible base Input, provided with no height or block padding.
5
5
  */
6
- export interface BaseInputProps {
7
- autoComplete?: string;
6
+ export type BaseInputProps = {
7
+ autoComplete?: string;
8
8
  id?: string;
9
9
  inputMode?: "decimal" | "text";
10
10
  name?: string;
@@ -36,19 +36,19 @@ export interface BaseInputProps {
36
36
  */
37
37
  autoFocus?: boolean;
38
38
  }
39
- interface Padding {
40
- input?: PaddingInline | PaddingLeftRight;
39
+ type Padding = {
40
+ input?: PaddingInline | PaddingLeftRight;
41
41
  adornment?: {
42
42
  inline: ThemeKeys<"space">;
43
- };
43
+ };
44
44
  }
45
- interface PaddingInline {
46
- inline: ThemeKeys<"space">;
45
+ type PaddingInline = {
46
+ inline: ThemeKeys<"space">;
47
47
  left?: never;
48
48
  right?: never;
49
49
  }
50
- interface PaddingLeftRight {
51
- left?: ThemeKeys<"space">;
50
+ type PaddingLeftRight = {
51
+ left?: ThemeKeys<"space">;
52
52
  right?: ThemeKeys<"space">;
53
53
  inline?: never;
54
54
  }
@@ -13,7 +13,7 @@ interface BlankSlateIconProps {
13
13
  backgroundColor?: ThemeKeys<"color">;
14
14
  borderColor?: ThemeKeys<"color">;
15
15
  borderStyle?: CSSProperties["borderStyle"];
16
- size?: "small" | "medium" | "large" | "xlarge";
16
+ size?: "small" | "medium" | 48 | "large" | "xlarge";
17
17
  }
18
18
  export declare function BlankSlateIcon(props: BlankSlateIconProps): JSX.Element;
19
19
  declare const titleSizeVariant: {
@@ -1,7 +1,7 @@
1
1
  import { type ReactNode } from "react";
2
2
  import type { SX } from "../../theme";
3
- export interface ButtonGroupProps {
4
- children?: ReactNode;
3
+ export type ButtonGroupProps = {
4
+ children?: ReactNode;
5
5
  disabled?: boolean;
6
6
  size?: "small" | "medium" | "large";
7
7
  color?: "grey" | "purple" | "dark";
@@ -9,8 +9,8 @@ export interface ButtonGroupProps {
9
9
  sx?: SX;
10
10
  }
11
11
  export declare const ButtonGroup: (props: ButtonGroupProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
12
- interface ButtonGroupContextValue {
13
- disabled?: boolean;
12
+ type ButtonGroupContextValue = {
13
+ disabled?: boolean;
14
14
  size: "small" | "medium" | "large";
15
15
  color: "grey" | "dark" | "purple";
16
16
  }
@@ -33,7 +33,7 @@ export declare const Default: {
33
33
  render: (args: {
34
34
  children?: import("react").ReactNode;
35
35
  color?: "grey1" | "grey2" | "grey3" | "indigo2" | "tomato2" | "purple1" | "purple2" | undefined;
36
- variant?: "dashed" | "selected" | "animated-light" | "animated-dark" | "elevated" | "highlighted" | "outlined" | undefined;
36
+ variant?: "dashed" | "animated-light" | "animated-dark" | "elevated" | "highlighted" | "outlined" | "selected" | undefined;
37
37
  radius?: 4 | 6 | undefined;
38
38
  paddingBlock?: 0 | 8 | 12 | 16 | 28 | undefined;
39
39
  paddingInline?: 0 | 16 | 24 | 32 | undefined;
@@ -1,14 +1,14 @@
1
1
  import type { ReactNode } from "react";
2
- export interface PreviewCardProps {
3
- children: ReactNode;
2
+ export type PreviewCardProps = {
3
+ children: ReactNode;
4
4
  /** Applies selected style, useful for the richtext field */
5
5
  selected?: boolean;
6
6
  variant?: "compact" | "large";
7
7
  onClick?: () => void;
8
8
  }
9
9
  export declare function PreviewCard(props: PreviewCardProps): JSX.Element;
10
- interface PreviewImageProps {
11
- src: string;
10
+ type PreviewImageProps = {
11
+ src: string;
12
12
  alt?: string;
13
13
  aspectRatio?: "1:1" | "16:9";
14
14
  framed?: boolean;
@@ -16,8 +16,8 @@ interface PreviewImageProps {
16
16
  height?: number;
17
17
  }
18
18
  export declare function PreviewImage(props: PreviewImageProps): JSX.Element;
19
- interface PreviewContentProps {
20
- children: ReactNode;
19
+ type PreviewContentProps = {
20
+ children: ReactNode;
21
21
  }
22
22
  export declare function PreviewContent(props: PreviewContentProps): JSX.Element;
23
23
  export {};
@@ -1,6 +1,6 @@
1
1
  export declare const supportedLanguages: readonly ["typescript", "tsx", "javascript", "jsx", "vue", "svelte", "plaintext", "json", "bash"];
2
- export interface CodeBlockProps {
3
- title?: string;
2
+ export type CodeBlockProps = {
3
+ title?: string;
4
4
  language: typeof supportedLanguages[number];
5
5
  code: string;
6
6
  showLineNumbers?: boolean;
@@ -2,8 +2,8 @@ import { type ReactNode, type RefObject } from "react";
2
2
  import type { SX } from "../../theme";
3
3
  import { type IconProps } from "../Icon";
4
4
  type Variant = "attached" | "detached" | "detached-connected";
5
- export interface ComboBoxProps {
6
- children: ReactNode;
5
+ export type ComboBoxProps = {
6
+ children: ReactNode;
7
7
  /**
8
8
  * Variant defines the appearance and behavior of the ComboBox
9
9
  * - "detached" - the dropdown is hiding or appearing according to user focus on the input
@@ -38,8 +38,8 @@ export interface ComboBoxProps {
38
38
  overlay?: boolean;
39
39
  }
40
40
  export declare const ComboBox: (props: ComboBoxProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
41
- interface ComboBoxContentProps {
42
- children: ReactNode;
41
+ type ComboBoxContentProps = {
42
+ children: ReactNode;
43
43
  /**
44
44
  * Adds padding to the top and bottom of the content
45
45
  */
@@ -70,8 +70,8 @@ type ComboBoxItemProps = {
70
70
  variant?: "default" | "action-list-item";
71
71
  };
72
72
  export declare const ComboBoxItem: (props: ComboBoxItemProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
73
- interface ComboBoxInputProps {
74
- value: string;
73
+ type ComboBoxInputProps = {
74
+ value: string;
75
75
  onValueChange: (search: string) => void;
76
76
  placeholder?: string;
77
77
  /**
@@ -88,8 +88,8 @@ interface ComboBoxInputProps {
88
88
  endAdornment?: boolean;
89
89
  }
90
90
  export declare const ComboBoxInput: (props: ComboBoxInputProps & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
91
- interface ComboBoxActionProps {
92
- children: ReactNode;
91
+ type ComboBoxActionProps = {
92
+ children: ReactNode;
93
93
  }
94
94
  export declare function ComboboxAction(props: ComboBoxActionProps): JSX.Element;
95
95
  export {};
@@ -1,10 +1,10 @@
1
1
  import { type KeyboardEvent, type RefObject } from "react";
2
- interface UseScrollIntoViewProps {
3
- contentInnerRef: RefObject<HTMLDivElement>;
2
+ type UseScrollIntoViewProps = {
3
+ contentInnerRef: RefObject<HTMLDivElement>;
4
4
  }
5
5
  export declare function useScrollIntoView(props: UseScrollIntoViewProps): void;
6
- interface UseInternalSelectionProps {
7
- contentInnerRef: RefObject<HTMLDivElement>;
6
+ type UseInternalSelectionProps = {
7
+ contentInnerRef: RefObject<HTMLDivElement>;
8
8
  inputInnerRef: RefObject<HTMLInputElement>;
9
9
  }
10
10
  export declare function useInternalSelection(props: UseInternalSelectionProps): {
@@ -19,8 +19,8 @@ export declare function useInternalSelection(props: UseInternalSelectionProps):
19
19
  };
20
20
  export declare function getValidItems(contentInnerRef: RefObject<HTMLDivElement>): Element[];
21
21
  export declare function getSelectedItem(contentInnerRef: RefObject<HTMLDivElement>): Element | null | undefined;
22
- interface UseSelectFirstArgs {
23
- listIsOpen: boolean;
22
+ type UseSelectFirstArgs = {
23
+ listIsOpen: boolean;
24
24
  contentInnerRef: RefObject<HTMLDivElement>;
25
25
  onChangeInternalSelection: (value: string | undefined) => void;
26
26
  }
@@ -1,11 +1,12 @@
1
1
  import type { Editor } from "@tiptap/core";
2
- interface ContentEditableProps {
3
- /** The raw text or HTML content */
2
+ type ContentEditableProps = {
3
+ /** The raw text or HTML content */
4
4
  content: string;
5
5
  /**
6
6
  * Bump the contentVersion when you need to reset/resync the content from the outside,
7
7
  * for instance when the content is a radically different thing.
8
- * This is pretty much like <ContentEditable key={contentVersion} /> except the Tiptap Editor remains mounted and doesn't bug out/flicker.
8
+ * This is pretty much like <ContentEditable key={contentVersion
9
+ } /> except the Tiptap Editor remains mounted and doesn't bug out/flicker.
9
10
  * tiptap doesn't officially support being controlled and it results in cursor/concurrency issues.
10
11
  * If you do contentVersion={content}, this is essentially like controlling the component
11
12
  * from the parent but it only works well for a readOnly ContentEditable.
@@ -21,8 +22,8 @@ interface ContentEditableProps {
21
22
  onBlur?: (editor: Editor) => void;
22
23
  }
23
24
  export declare function ContentEditable(props: ContentEditableProps): JSX.Element;
24
- interface Decorations {
25
- em?: "normal" | "highlight";
25
+ type Decorations = {
26
+ em?: "normal" | "highlight";
26
27
  p?: "normal" | "emphasized";
27
28
  }
28
29
  export {};
@@ -1,14 +1,14 @@
1
1
  import { CalendarDate, type DateValue, type Time, ZonedDateTime } from "@internationalized/date";
2
2
  import { type AriaDateFieldProps } from "@react-aria/datepicker";
3
3
  import { type DateFieldState, type DateSegment } from "@react-stately/datepicker";
4
- interface DateSegmentsProps {
5
- ariaDateFieldProps: AriaDateFieldProps<DateValue>;
4
+ type DateSegmentsProps = {
5
+ ariaDateFieldProps: AriaDateFieldProps<DateValue>;
6
6
  defaultTime?: Time;
7
7
  placeholderValue: CalendarDate | ZonedDateTime;
8
8
  }
9
9
  export declare function DateSegments(props: DateSegmentsProps): JSX.Element;
10
- interface SegmentProps {
11
- segment: DateSegment;
10
+ type SegmentProps = {
11
+ segment: DateSegment;
12
12
  state: DateFieldState;
13
13
  }
14
14
  export declare function Segment(props: SegmentProps): JSX.Element;
@@ -3,12 +3,12 @@ import { type ReactNode } from "react";
3
3
  import { type ButtonProps } from "../Button";
4
4
  import { type IconName } from "../Icon";
5
5
  import { type TextProps } from "../Text";
6
- export interface Custom {
7
- width: number | string;
6
+ export type Custom = {
7
+ width: number | string;
8
8
  height: number | string;
9
9
  }
10
- export interface DialogProps {
11
- modal?: boolean;
10
+ export type DialogProps = {
11
+ modal?: boolean;
12
12
  trigger?: ReactNode;
13
13
  children?: ReactNode;
14
14
  renderTooltip?: (trigger: ReactNode) => ReactNode;
@@ -31,14 +31,14 @@ export interface DialogProps {
31
31
  * The first focusable child will automatically be focused.
32
32
  */
33
33
  export declare function Dialog(props: DialogProps): JSX.Element;
34
- interface DialogHeaderProps {
35
- icon?: IconName;
34
+ type DialogHeaderProps = {
35
+ icon?: IconName;
36
36
  onIconClick?: () => void;
37
37
  title: string;
38
38
  }
39
39
  export declare function DialogHeader(props: DialogHeaderProps): JSX.Element;
40
- interface DialogContentProps {
41
- children: ReactNode;
40
+ type DialogContentProps = {
41
+ children: ReactNode;
42
42
  padding?: 16;
43
43
  gap?: 0 | 12;
44
44
  }
@@ -46,8 +46,8 @@ export declare function DialogContent(props: DialogContentProps): JSX.Element;
46
46
  export declare function DialogActions(props: {
47
47
  children: ReactNode;
48
48
  }): JSX.Element;
49
- interface DialogActionButtonProps extends ButtonProps {
50
- tooltipLabel?: string;
49
+ type DialogActionButtonProps = ButtonProps & {
50
+ tooltipLabel?: string;
51
51
  }
52
52
  export declare function DialogActionButton(props: DialogActionButtonProps): JSX.Element;
53
53
  export declare function DialogActionLink(props: TextProps): JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import type { ReactNode } from "react";
2
2
  import type { SX } from "../../../theme";
3
3
  import { type IconName } from "../../Icon";
4
- export interface DialogOptionsProps {
5
- value?: string;
4
+ export type DialogOptionsProps = {
5
+ value?: string;
6
6
  onValueChange?: (newValue: string) => void;
7
7
  children: ReactNode;
8
8
  sx?: SX;
@@ -24,8 +24,8 @@ export interface DialogOptionsProps {
24
24
  footer?: ReactNode;
25
25
  }
26
26
  export declare const DialogOptions: ({ value, onValueChange, children, width, padding, footer }: DialogOptionsProps) => JSX.Element;
27
- interface DialogOptionsItemProps {
28
- value: string;
27
+ type DialogOptionsItemProps = {
28
+ value: string;
29
29
  icon?: IconName;
30
30
  title?: string;
31
31
  subtitle?: string;
@@ -1,6 +1,6 @@
1
1
  import type { AriaRole } from "react";
2
- export interface DotProps {
3
- color: "grey" | "green" | "amber" | "purple";
2
+ export type DotProps = {
3
+ color: "grey" | "green" | "amber" | "purple";
4
4
  role?: AriaRole;
5
5
  }
6
6
  export declare function Dot(props: DotProps): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode } from "react";
2
- export interface DropdownMenuProps {
3
- /**
2
+ export type DropdownMenuProps = {
3
+ /**
4
4
  * The controlled open state of the dropdown menu.
5
5
  * Must be used in conjunction with onOpenChange
6
6
  */
@@ -17,13 +17,13 @@ export interface DropdownMenuProps {
17
17
  children: ReactNode;
18
18
  }
19
19
  export declare function DropdownMenu(props: DropdownMenuProps): JSX.Element;
20
- interface DropdownMenuTriggerProps {
21
- disabled?: boolean;
20
+ type DropdownMenuTriggerProps = {
21
+ disabled?: boolean;
22
22
  children: ReactNode;
23
23
  }
24
24
  export declare function DropdownMenuTrigger(props: DropdownMenuTriggerProps): JSX.Element;
25
- export interface DropdownMenuContentProps {
26
- align?: "center" | "end" | "start";
25
+ export type DropdownMenuContentProps = {
26
+ align?: "center" | "end" | "start";
27
27
  side?: "bottom" | "left" | "right" | "top";
28
28
  sideOffset?: number;
29
29
  minWidth?: 128 | 256 | "full-trigger-width";
@@ -55,8 +55,8 @@ export interface DropdownMenuContentProps {
55
55
  childrenFocusScope?: boolean;
56
56
  }
57
57
  export declare const DropdownMenuContent: (props: DropdownMenuContentProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
58
- interface DropdownMenuItemProps {
59
- children: ReactNode;
58
+ type DropdownMenuItemProps = {
59
+ children: ReactNode;
60
60
  disabled?: boolean;
61
61
  onSelect?: (event: Event) => void;
62
62
  textValue?: string;
@@ -75,8 +75,8 @@ interface DropdownMenuItemProps {
75
75
  renderTooltip?: (node: ReactNode) => ReactNode;
76
76
  }
77
77
  export declare const DropdownMenuItem: (props: DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
78
- interface DropdownMenuLabelProps {
79
- children: ReactNode;
78
+ type DropdownMenuLabelProps = {
79
+ children: ReactNode;
80
80
  }
81
81
  export declare function DropdownMenuLabel({ children }: DropdownMenuLabelProps): JSX.Element;
82
82
  export {};
@@ -1,6 +1,6 @@
1
1
  import type { SX } from "../../theme";
2
- export interface DefaultErrorMessageProps {
3
- title: string;
2
+ export type DefaultErrorMessageProps = {
3
+ title: string;
4
4
  description?: string;
5
5
  errorImageSrc?: string;
6
6
  sx?: SX;
@@ -1,13 +1,13 @@
1
1
  import { type Fetcher } from "@prismicio/editor-support/Suspense";
2
2
  import React, { type ReactNode } from "react";
3
- export interface ErrorBoundaryProps {
4
- children?: ReactNode;
3
+ export type ErrorBoundaryProps = {
4
+ children?: ReactNode;
5
5
  renderError?: (error: unknown, reset: () => void) => ReactNode;
6
6
  onError?: (error: unknown) => void;
7
7
  onReset?: () => void;
8
8
  }
9
- interface State {
10
- error?: unknown;
9
+ type State = {
10
+ error?: unknown;
11
11
  handleError?: boolean;
12
12
  requests: Map<Fetcher, Map<string, readonly unknown[]>>;
13
13
  }
@@ -1,26 +1,26 @@
1
1
  import { type PropsWithChildren, type ReactNode } from "react";
2
2
  import { type IconName } from "../Icon";
3
- export interface FieldProps {
4
- children?: ReactNode;
3
+ export type FieldProps = {
4
+ children?: ReactNode;
5
5
  footer?: ReactNode;
6
6
  labelPosition?: "top" | "side";
7
7
  selected?: boolean;
8
8
  onMouseOverChange?: (isMouseOver: boolean) => void;
9
9
  }
10
10
  export declare const Field: (props: FieldProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
11
- interface FieldIconProps {
12
- name: IconName;
11
+ type FieldIconProps = {
12
+ name: IconName;
13
13
  disabled?: boolean;
14
14
  }
15
15
  export declare function FieldIcon(props: FieldIconProps): JSX.Element;
16
- interface FieldLabelProps {
17
- children: string;
16
+ type FieldLabelProps = {
17
+ children: string;
18
18
  htmlFor?: string;
19
19
  id?: string;
20
20
  }
21
21
  export declare function FieldLabel(props: FieldLabelProps): JSX.Element;
22
- interface FieldControlProps {
23
- children?: ReactNode;
22
+ type FieldControlProps = {
23
+ children?: ReactNode;
24
24
  disabled?: boolean;
25
25
  }
26
26
  export declare function FieldControl(props: FieldControlProps): JSX.Element;
@@ -6,8 +6,8 @@ export interface FilterFieldProps extends Omit<FooterProps, "searchText"> {
6
6
  icon: IconName;
7
7
  }
8
8
  export declare function FilterField(props: FilterFieldProps): JSX.Element;
9
- interface FooterProps extends ErrorFooterProps {
10
- searchText: string;
9
+ type FooterProps = ErrorFooterProps & {
10
+ searchText: string;
11
11
  selectedValues: Set<FilterOption>;
12
12
  values: Set<FilterOption>;
13
13
  fixedSelectedValues?: Set<FilterOption>;
@@ -16,8 +16,8 @@ interface FooterProps extends ErrorFooterProps {
16
16
  /** Allows more than 1 value to be selected. Default: true */
17
17
  multiple?: boolean;
18
18
  }
19
- interface ErrorFooterProps {
20
- label: string;
19
+ type ErrorFooterProps = {
20
+ label: string;
21
21
  onErrorRetry?: () => void;
22
22
  }
23
23
  export {};
@@ -1,10 +1,10 @@
1
1
  import { type KeyboardEvent, type RefObject } from "react";
2
- export interface FilterOption {
3
- id: string;
2
+ export type FilterOption = {
3
+ id: string;
4
4
  label: string;
5
5
  }
6
- interface UseFilterFieldProps {
7
- selectedValues: Set<FilterOption>;
6
+ type UseFilterFieldProps = {
7
+ selectedValues: Set<FilterOption>;
8
8
  fixedSelectedValues: Set<FilterOption>;
9
9
  onSelectedValuesChange: (selectedValues: Set<FilterOption>) => void;
10
10
  setOpen: (open: boolean) => void;
@@ -1,13 +1,13 @@
1
1
  import { type ReactNode } from "react";
2
- interface GroupProviderProps {
3
- children: ReactNode;
2
+ type GroupProviderProps = {
3
+ children: ReactNode;
4
4
  itemCount: number;
5
5
  draggable: boolean;
6
6
  onAddItem?: (atIndex: number) => void;
7
7
  }
8
8
  export declare function GroupProvider(props: GroupProviderProps): JSX.Element;
9
- interface GroupContextValue {
10
- itemCount: number;
9
+ type GroupContextValue = {
10
+ itemCount: number;
11
11
  draggable: boolean;
12
12
  activeItem?: number;
13
13
  onActiveItemChange: (index: number, active: boolean) => void;
@@ -1,6 +1,6 @@
1
1
  import { type SX } from "../../theme";
2
- export interface ImageProps {
3
- "aria-label"?: string;
2
+ export type ImageProps = {
3
+ "aria-label"?: string;
4
4
  src: string;
5
5
  alt?: string;
6
6
  loading?: "eager" | "lazy";
@@ -1,12 +1,12 @@
1
1
  import type { ReactNode } from "react";
2
2
  import type { SX } from "../../theme";
3
- export interface UnorderedListProps {
4
- children?: ReactNode;
3
+ export type UnorderedListProps = {
4
+ children?: ReactNode;
5
5
  density?: "regular" | "compact";
6
6
  sx?: SX;
7
7
  }
8
8
  export declare function UnorderedList(props: UnorderedListProps): JSX.Element;
9
- export interface ListItemProps {
10
- children?: ReactNode;
9
+ export type ListItemProps = {
10
+ children?: ReactNode;
11
11
  }
12
12
  export declare function ListItem(props: ListItemProps): JSX.Element;
@@ -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;