@prismicio/editor-ui 0.4.77-alpha.bump-types-internal.2 → 0.4.77-alpha.bump-types-internal.3

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.
@@ -20,11 +20,13 @@ interface BlankSlateIconProps {
20
20
  export declare function BlankSlateIcon(props: BlankSlateIconProps): JSX.Element;
21
21
  declare const titleSizeVariant: {
22
22
  readonly regular: "normal";
23
+ readonly medium: "emphasized";
23
24
  readonly big: "h2";
24
25
  readonly h4: "h4";
25
26
  };
26
27
  export interface BlankSlateTitleProps {
27
28
  size?: keyof typeof titleSizeVariant;
29
+ color?: "grey11" | "grey12";
28
30
  children?: ReactNode;
29
31
  sx?: SX;
30
32
  }
@@ -1,5 +1,6 @@
1
1
  import { type ReactNode, type RefObject } from "react";
2
2
  import type { SX } from "../../theme";
3
+ import type { FormSearchInputProps } from "../Form/FormSearchInput";
3
4
  import { type IconProps } from "../Icon";
4
5
  type Variant = "attached" | "detached" | "detached-connected";
5
6
  export interface ComboBoxProps {
@@ -78,7 +79,7 @@ type ComboBoxItemProps = {
78
79
  variant?: "default" | "action-list-item";
79
80
  };
80
81
  export declare const ComboBoxItem: (props: ComboBoxItemProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
81
- interface ComboBoxInputProps {
82
+ interface ComboBoxInputProps extends Pick<FormSearchInputProps, "size" | "error"> {
82
83
  value: string;
83
84
  onValueChange: (search: string) => void;
84
85
  id?: string;
@@ -1,5 +1,6 @@
1
1
  export { ContentEditable } from "./ContentEditable";
2
2
  export declare const contentEditableClass: string;
3
+ export declare const contentEditableClassWithIcon: string;
3
4
  export declare const contentEditableNoPaddingClass: string;
4
5
  export declare const tableFieldStyles: {
5
6
  tableWithControls: string;
@@ -1,13 +1,10 @@
1
1
  /// <reference types="react" />
2
- export type DateRange = {
3
- start: Date;
4
- end: Date;
5
- };
6
- export interface DateRangePickerProps {
7
- value: DateRange | null;
2
+ import { type DateRange } from "@prismicio/editor-support/Date";
3
+ export interface DateRangePickerProps<Value extends DateRange | null> {
4
+ value: Value;
8
5
  minValue?: DateLimit;
9
6
  maxValue?: DateLimit;
10
- onSubmit?: (value: DateRange | null) => void;
7
+ onSubmit?: (value: Value) => void;
11
8
  disabled?: boolean;
12
9
  triggerSize?: "small" | "medium" | "large";
13
10
  /** Accessible label for the date range picker */
@@ -17,6 +14,6 @@ export interface DateRangePickerProps {
17
14
  /** Label for the reset button */
18
15
  resetLabel?: string;
19
16
  }
20
- export declare const DateRangePicker: (props: DateRangePickerProps & import("react").RefAttributes<HTMLButtonElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
17
+ export declare const DateRangePicker: <Value extends DateRange | null>(props: DateRangePickerProps<Value> & import("react").RefAttributes<HTMLButtonElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
21
18
  type DateLimit = Date | "today";
22
19
  export {};
@@ -1,8 +1,9 @@
1
1
  /// <reference types="react" />
2
+ import type { DateRange } from "@prismicio/editor-support/Date";
2
3
  import type { StoryObj } from "@storybook/react";
3
4
  declare const meta: {
4
5
  title: string;
5
- component: (props: import("./DateRangePicker").DateRangePickerProps & import("react").RefAttributes<HTMLButtonElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
6
+ component: <Value extends DateRange | null>(props: import("./DateRangePicker").DateRangePickerProps<Value> & import("react").RefAttributes<HTMLButtonElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
6
7
  };
7
8
  export default meta;
8
9
  type Story = StoryObj<typeof meta>;
@@ -0,0 +1 @@
1
+ export { DateRangePicker, type DateRangePickerProps } from "./DateRangePicker";
@@ -1,6 +1,6 @@
1
1
  import { type AriaRole, type FocusEvent } from "react";
2
2
  import { type FormInputFieldProps } from "./FormField";
3
- export interface FormSearchInputProps extends Pick<FormInputFieldProps, "disabled" | "error" | "sx" | "description" | "roundedSide"> {
3
+ export interface FormSearchInputProps extends Pick<FormInputFieldProps, "disabled" | "error" | "sx" | "description" | "roundedSide" | "size"> {
4
4
  label?: string;
5
5
  placeholder?: string;
6
6
  maxLength?: number;