@prismicio/editor-ui 0.4.24 → 0.4.25

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.
@@ -1,11 +1,37 @@
1
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./AnimatedElement").AnimatedElementProps>;
2
- export default _default;
3
- export declare const AnimatedElementTemplateStory: {
4
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./AnimatedElement").AnimatedElementProps>;
1
+ import { AnimatedElement } from "./AnimatedElement";
2
+ declare const meta: {
3
+ title: string;
4
+ component: typeof AnimatedElement;
5
+ };
6
+ export default meta;
7
+ export declare const Default: {
8
+ decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
9
+ children: false | 0 | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null | undefined;
10
+ animation?: {
11
+ name: "fade";
12
+ } | {
13
+ name: "slide";
14
+ offset?: number | undefined;
15
+ } | undefined;
16
+ enterDuration?: 0 | 100 | 75 | 150 | 200 | 250 | 300 | 400 | undefined;
17
+ exitDuration?: 0 | 100 | 75 | 150 | 200 | 250 | 300 | 400 | undefined;
18
+ sx?: import("../../theme/new").SX | undefined;
19
+ }>, context: import("@storybook/types").StoryContext<import("@storybook/react/dist/types-0a347bb9").R, {
20
+ children: false | 0 | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null | undefined;
21
+ animation?: {
22
+ name: "fade";
23
+ } | {
24
+ name: "slide";
25
+ offset?: number | undefined;
26
+ } | undefined;
27
+ enterDuration?: 0 | 100 | 75 | 150 | 200 | 250 | 300 | 400 | undefined;
28
+ exitDuration?: 0 | 100 | 75 | 150 | 200 | 250 | 300 | 400 | undefined;
29
+ sx?: import("../../theme/new").SX | undefined;
30
+ }>) => JSX.Element)[];
5
31
  args: {
6
- enterDuration: number;
7
- exitDuration: number;
8
- children: JSX.Element;
32
+ children: null;
33
+ enterDuration: 300;
34
+ exitDuration: 100;
9
35
  };
10
36
  argTypes: {
11
37
  children: {
@@ -1,4 +1,4 @@
1
- import { type KeyboardEvent, type ReactNode } from "react";
1
+ import { type ClipboardEventHandler, type KeyboardEvent, type ReactNode } from "react";
2
2
  import type { SX, ThemeKeys } from "../../theme/new";
3
3
  /**
4
4
  * Flexible base Input, provided with no height or block padding.
@@ -14,18 +14,23 @@ export interface BaseInputProps {
14
14
  endAdornment?: ReactNode;
15
15
  padding?: Padding;
16
16
  value: string;
17
- variant?: "normal" | "link" | "success";
17
+ variant?: "normal" | "link" | "success" | "error";
18
18
  cursor?: "text" | "pointer";
19
19
  maxLength?: number;
20
+ disabled?: boolean;
21
+ type?: "text" | "email" | "password";
20
22
  sx?: SX;
21
23
  onFocus?: () => void;
22
24
  onBlur?: () => void;
23
25
  onValueChange?: (value: string) => void;
24
26
  onKeyDown?: (event: KeyboardEvent) => void;
27
+ onPaste?: ClipboardEventHandler<HTMLInputElement>;
25
28
  }
26
29
  interface Padding {
27
30
  input?: {
28
- inline: ThemeKeys<"space">;
31
+ inline?: ThemeKeys<"space">;
32
+ inlineStart?: ThemeKeys<"space">;
33
+ inlineEnd?: ThemeKeys<"space">;
29
34
  };
30
35
  adornment?: {
31
36
  inline: ThemeKeys<"space">;
@@ -16,7 +16,7 @@ export declare const Default: {
16
16
  render: (args: {
17
17
  children?: import("react").ReactNode;
18
18
  color?: "dark" | "green" | "grey" | "purple" | "tomato" | "amber" | undefined;
19
- size?: "small" | "medium" | "large" | undefined;
19
+ size?: "small" | "large" | "medium" | undefined;
20
20
  disabled?: boolean | undefined;
21
21
  loading?: boolean | undefined;
22
22
  textColor?: "placeholder" | undefined;
@@ -32,7 +32,7 @@ export declare const Default: {
32
32
  render: (args: {
33
33
  children?: import("react").ReactNode;
34
34
  disabled?: boolean | undefined;
35
- size?: "small" | "medium" | "large" | undefined;
35
+ size?: "small" | "large" | "medium" | undefined;
36
36
  color?: "dark" | "grey" | "purple" | undefined;
37
37
  density?: "compact" | "regular" | undefined;
38
38
  sx?: import("../../theme/new").SX | undefined;
@@ -1,7 +1,26 @@
1
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./Form").FormProps>;
2
- export default _default;
1
+ import { Form } from "./";
2
+ declare const meta: {
3
+ title: string;
4
+ component: typeof Form;
5
+ argTypes: {
6
+ children: {
7
+ control: {
8
+ disable: boolean;
9
+ };
10
+ };
11
+ };
12
+ };
13
+ export default meta;
3
14
  export declare const Default: {
4
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Form").FormProps>;
15
+ decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
16
+ children?: import("react").ReactNode;
17
+ sx?: import("../../theme/new").SX | undefined;
18
+ onSubmit: () => void;
19
+ }>, context: import("@storybook/types").StoryContext<import("@storybook/react/dist/types-0a347bb9").R, {
20
+ children?: import("react").ReactNode;
21
+ sx?: import("../../theme/new").SX | undefined;
22
+ onSubmit: () => void;
23
+ }>) => JSX.Element)[];
5
24
  args: {};
6
25
  name: string;
7
26
  };
@@ -1,4 +1,4 @@
1
- import { type ClipboardEventHandler, type KeyboardEventHandler } from "react";
1
+ import { type ClipboardEventHandler, type KeyboardEvent } from "react";
2
2
  import type { SX } from "../../theme/new";
3
3
  import { type IconName } from "../Icon";
4
4
  export interface FormInputProps {
@@ -11,7 +11,7 @@ export interface FormInputProps {
11
11
  icon?: IconName;
12
12
  autoComplete?: AutoCompleteValue;
13
13
  sx?: SX;
14
- onKeyDown?: KeyboardEventHandler<HTMLInputElement>;
14
+ onKeyDown?: (event: KeyboardEvent) => void;
15
15
  onValueChange?: (value: string) => void;
16
16
  onPaste?: ClipboardEventHandler<HTMLInputElement>;
17
17
  onBlur?: () => void;
@@ -50,7 +50,7 @@ export declare const Default: {
50
50
  children?: import("react").ReactNode;
51
51
  disabled?: boolean | undefined;
52
52
  density?: "compact" | "regular" | undefined;
53
- size?: "small" | "medium" | "large" | undefined;
53
+ size?: "small" | "large" | "medium" | undefined;
54
54
  color?: "dark" | "grey" | "purple" | undefined;
55
55
  type: "single";
56
56
  value?: string | undefined;
@@ -59,7 +59,7 @@ export declare const Default: {
59
59
  children?: import("react").ReactNode;
60
60
  disabled?: boolean | undefined;
61
61
  density?: "compact" | "regular" | undefined;
62
- size?: "small" | "medium" | "large" | undefined;
62
+ size?: "small" | "large" | "medium" | undefined;
63
63
  color?: "dark" | "grey" | "purple" | undefined;
64
64
  type: "multiple";
65
65
  value?: string[] | undefined;