@prismicio/editor-ui 0.4.77-alpha.bump-types-internal.2 → 0.4.77
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/{BarChart-s7zeMktu.js → BarChart-NmBMMDYL.js} +2 -2
- package/dist/{BarChart-fjeVn9N_.mjs → BarChart-yEm-2JeH.mjs} +3 -3
- package/dist/components/BlankSlate/BlankSlate.d.ts +2 -0
- package/dist/components/ComboBox/ComboBox.d.ts +2 -1
- package/dist/components/ContentEditable/index.d.ts +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -8
- package/dist/components/DateRangePicker/DateRangePicker.stories.d.ts +2 -1
- package/dist/components/DateRangePicker/index.d.ts +1 -0
- package/dist/components/Form/FormSearchInput.d.ts +1 -1
- package/dist/components/Toast/Toast.d.ts +1 -0
- package/dist/components/TreeView/TreeView.d.ts +0 -2
- package/dist/{index-nfqGt1hJ.mjs → index-EbFdiRMR.mjs} +13169 -12476
- package/dist/index-h_wYQy3w.js +681 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +142 -140
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index-C6fc3RrU.js +0 -681
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as _i, g as et, j as w, t as Fi, d as x1 } from "./index-
|
|
1
|
+
import { c as _i, g as et, j as w, t as Fi, d as x1 } from "./index-EbFdiRMR.mjs";
|
|
2
2
|
import * as nn from "react";
|
|
3
3
|
import { useEffect as sn, useLayoutEffect as $1, useState as Tn, useRef as Xe, forwardRef as ir, useCallback as Ce, useContext as kn, useMemo as fe, createContext as si, memo as Oe, createElement as an, cloneElement as w1, isValidElement as T1, Fragment as qc } from "react";
|
|
4
4
|
import { unstable_batchedUpdates as M1 } from "react-dom";
|
|
@@ -9309,13 +9309,13 @@ const vO = "_container_1ogi3_1", _O = {
|
|
|
9309
9309
|
legend: {
|
|
9310
9310
|
text: {
|
|
9311
9311
|
fontWeight: 600,
|
|
9312
|
-
|
|
9312
|
+
fill: Fi.color.grey12
|
|
9313
9313
|
}
|
|
9314
9314
|
},
|
|
9315
9315
|
ticks: {
|
|
9316
9316
|
text: {
|
|
9317
9317
|
fontSize: 10,
|
|
9318
|
-
|
|
9318
|
+
fill: Fi.color.grey11
|
|
9319
9319
|
}
|
|
9320
9320
|
}
|
|
9321
9321
|
}
|
|
@@ -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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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:
|
|
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;
|