@prismicio/editor-ui 0.4.51 → 0.4.53
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/BaseInput/BaseInput.d.ts +2 -1
- package/dist/components/BlankSlate/BlankSlate.d.ts +1 -1
- package/dist/components/SelectCard/SelectCard.d.ts +3 -2
- package/dist/components/Skeleton/Skeleton.d.ts +10 -0
- package/dist/components/Skeleton/Skeleton.stories.d.ts +1 -0
- package/dist/components/TextInput/TextInput.d.ts +1 -0
- package/dist/index.cjs.js +21 -21
- package/dist/index.es.js +222 -219
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AriaRole, type ClipboardEventHandler, type FocusEvent, type KeyboardEvent, type ReactNode } from "react";
|
|
1
|
+
import { type AriaRole, type ClipboardEventHandler, type FocusEvent, type KeyboardEvent, type MouseEvent, type ReactNode } from "react";
|
|
2
2
|
import type { SX, ThemeKeys } from "../../theme";
|
|
3
3
|
/**
|
|
4
4
|
* Flexible base Input, provided with no height or block padding.
|
|
@@ -28,6 +28,7 @@ export interface BaseInputProps {
|
|
|
28
28
|
onBlur?: (event: FocusEvent<HTMLInputElement, Element>) => void;
|
|
29
29
|
onValueChange?: (value: string) => void;
|
|
30
30
|
onKeyDown?: (event: KeyboardEvent) => void;
|
|
31
|
+
onClick?: (event: MouseEvent) => void;
|
|
31
32
|
onPaste?: ClipboardEventHandler<HTMLInputElement>;
|
|
32
33
|
role?: AriaRole;
|
|
33
34
|
/**
|
|
@@ -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,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;
|
|
@@ -11,12 +11,22 @@ 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;
|
|
@@ -21,5 +21,6 @@ export interface TextInputProps {
|
|
|
21
21
|
onFocus?: BaseInputProps["onFocus"];
|
|
22
22
|
onBlur?: BaseInputProps["onBlur"];
|
|
23
23
|
onPaste?: BaseInputProps["onPaste"];
|
|
24
|
+
onClick?: BaseInputProps["onClick"];
|
|
24
25
|
}
|
|
25
26
|
export declare const TextInput: (props: TextInputProps & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|