@prismicio/editor-ui 0.1.0 → 0.3.0
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/README.md +9 -0
- package/dist/components/AnimatedList/AnimatedList.css.d.ts +8 -0
- package/dist/components/AnimatedList/AnimatedList.d.ts +11 -0
- package/dist/components/AnimatedList/AnimatedList.stories.d.ts +5 -0
- package/dist/components/AnimatedList/index.d.ts +1 -0
- package/dist/components/AppBackground.d.ts +2 -0
- package/dist/components/BaseInput/BaseInput.css.d.ts +1 -0
- package/dist/components/BaseInput/BaseInput.d.ts +11 -9
- package/dist/components/BaseInput/BaseInput.stories.d.ts +2 -28
- package/dist/components/BlankSlate/BlankSlate.d.ts +6 -7
- package/dist/components/Box/Box.d.ts +39 -0
- package/dist/components/Box/Box.stories.d.ts +5 -0
- package/dist/components/Box/index.d.ts +1 -0
- package/dist/components/Calendar/Calendar.css.d.ts +2 -0
- package/dist/components/Calendar/Calendar.d.ts +7 -0
- package/dist/components/Calendar/Calendar.stories.d.ts +12 -0
- package/dist/components/Calendar/CalendarCell.css.d.ts +6 -0
- package/dist/components/Calendar/CalendarCell.d.ts +8 -0
- package/dist/components/Calendar/CalendarGrid.css.d.ts +1 -0
- package/dist/components/Calendar/CalendarGrid.d.ts +7 -0
- package/dist/components/Calendar/index.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +3 -4
- package/dist/components/Card/Card.stories.d.ts +2 -2
- package/dist/components/DateInput/DateInput.d.ts +11 -0
- package/dist/components/DateInput/DateInput.stories.d.ts +10 -0
- package/dist/components/DateInput/index.d.ts +1 -0
- package/dist/components/Dialog/Dialog.css.d.ts +0 -1
- package/dist/components/Dialog/Dialog.d.ts +9 -18
- package/dist/components/Dialog/Dialog.stories.d.ts +1 -0
- package/dist/components/{DialogOptions → Dialog/Options}/DialogOptions.d.ts +7 -7
- package/dist/components/Dialog/index.d.ts +2 -1
- package/dist/components/Field/Field.d.ts +4 -5
- package/dist/components/Field/Field.stories.d.ts +6 -4
- package/dist/components/Icon/Icon.css.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.stories.d.ts +4 -4
- package/dist/components/Icon/iconNames.d.ts +1 -1
- package/dist/components/Link/Link.css.d.ts +1 -0
- package/dist/components/Link/Link.d.ts +7 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Masonry/MasonryMedia.css.d.ts +1 -0
- package/dist/components/Popover/LinkDescriptionPopover.css.d.ts +3 -0
- package/dist/components/Popover/LinkDescriptionPopover.d.ts +15 -0
- package/dist/components/Popover/Popover.css.d.ts +1 -0
- package/dist/components/Popover/Popover.d.ts +13 -0
- package/dist/components/Popover/Popover.stories.d.ts +6 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Select/Select.d.ts +18 -4
- package/dist/components/Select/Select.stories.d.ts +2 -16
- package/dist/components/Skeleton/Skeleton.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.stories.d.ts +4 -4
- package/dist/components/Text/Text.css.d.ts +3 -3
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/Text/Text.stories.d.ts +2 -2
- package/dist/components/TextInput/TextInput.d.ts +14 -11
- package/dist/components/TextInput/TextInput.stories.d.ts +2 -24
- package/dist/components/ThemeProvider.d.ts +2 -2
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts +4 -4
- package/dist/index.d.ts +7 -2
- package/dist/index.es.js +9201 -5606
- package/dist/index.umd.js +97 -89
- package/dist/style.css +1 -1
- package/dist/theme/colors.d.ts +119 -0
- package/dist/theme/selectors.d.ts +48 -0
- package/dist/theme/sprinkles.css.d.ts +617 -506
- package/dist/theme/utils.d.ts +2 -0
- package/dist/theme/vars.css.d.ts +337 -337
- package/package.json +13 -17
- package/dist/components/DialogOptions/DialogOptions.stories.d.ts +0 -12
- package/dist/components/DialogOptions/index.d.ts +0 -1
- package/dist/components/List/List.css.d.ts +0 -2
- package/dist/components/List/List.d.ts +0 -8
- package/dist/components/List/index.d.ts +0 -1
- /package/dist/components/{DialogOptions → Dialog/Options}/DialogOptions.css.d.ts +0 -0
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
|
-
declare const _default: ComponentMeta<import("react").FC<
|
|
3
|
-
disabled?: boolean | undefined;
|
|
4
|
-
id?: string | undefined;
|
|
5
|
-
inField?: boolean | undefined;
|
|
6
|
-
size?: "medium" | "large" | "small" | undefined;
|
|
7
|
-
trigger?: import("react").ReactNode;
|
|
8
|
-
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
9
|
-
}>>>;
|
|
2
|
+
declare const _default: ComponentMeta<import("react").FC<import("./Select").SelectProps>>;
|
|
10
3
|
export default _default;
|
|
11
|
-
export declare const Default: ComponentStoryFn<import("react").FC<
|
|
12
|
-
disabled?: boolean | undefined;
|
|
13
|
-
id?: string | undefined;
|
|
14
|
-
inField?: boolean | undefined;
|
|
15
|
-
size?: "medium" | "large" | "small" | undefined;
|
|
16
|
-
trigger?: import("react").ReactNode;
|
|
17
|
-
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
18
|
-
}>>>;
|
|
4
|
+
export declare const Default: ComponentStoryFn<import("react").FC<import("./Select").SelectProps>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type CSSProperties, type FC, type ReactNode } from "react";
|
|
2
2
|
declare type SkeletonProps = Readonly<{
|
|
3
|
-
|
|
3
|
+
height?: CSSProperties["height"];
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
component?: "span";
|
|
7
|
-
|
|
7
|
+
width?: CSSProperties["width"];
|
|
8
8
|
style?: CSSProperties;
|
|
9
9
|
}>;
|
|
10
10
|
export declare const Skeleton: FC<SkeletonProps>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
2
|
declare const _default: ComponentMeta<import("react").FC<Readonly<{
|
|
3
|
-
|
|
3
|
+
height?: import("csstype").Property.Height<string | number> | undefined;
|
|
4
4
|
children?: import("react").ReactNode;
|
|
5
5
|
className?: string | undefined;
|
|
6
6
|
component?: "span" | undefined;
|
|
7
|
-
|
|
7
|
+
width?: import("csstype").Property.Width<string | number> | undefined;
|
|
8
8
|
style?: import("react").CSSProperties | undefined;
|
|
9
9
|
}>>>;
|
|
10
10
|
export default _default;
|
|
11
11
|
export declare const Default: ComponentStoryFn<import("react").FC<Readonly<{
|
|
12
|
-
|
|
12
|
+
height?: import("csstype").Property.Height<string | number> | undefined;
|
|
13
13
|
children?: import("react").ReactNode;
|
|
14
14
|
className?: string | undefined;
|
|
15
15
|
component?: "span" | undefined;
|
|
16
|
-
|
|
16
|
+
width?: import("csstype").Property.Width<string | number> | undefined;
|
|
17
17
|
style?: import("react").CSSProperties | undefined;
|
|
18
18
|
}>>>;
|
|
@@ -28,8 +28,8 @@ export declare const color: {
|
|
|
28
28
|
export declare const inField: string;
|
|
29
29
|
export declare const noWrap: string;
|
|
30
30
|
export declare const weight: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
"400": string;
|
|
32
|
+
"500": string;
|
|
33
|
+
"600": string;
|
|
34
34
|
inherit: string;
|
|
35
35
|
};
|
|
@@ -22,6 +22,6 @@ export declare const Text: import("react").ForwardRefExoticComponent<Readonly<{
|
|
|
22
22
|
inField?: boolean | undefined;
|
|
23
23
|
noWrap?: boolean | undefined;
|
|
24
24
|
variant?: "inherit" | "pre" | "caption" | "code" | "h1" | "h2" | "h3" | "h4" | "body1" | "body2" | "body3" | "button1" | "button2" | undefined;
|
|
25
|
-
weight?: "inherit" | "
|
|
25
|
+
weight?: "inherit" | "400" | "500" | "600" | undefined;
|
|
26
26
|
}> & import("react").RefAttributes<HTMLElement>>;
|
|
27
27
|
export {};
|
|
@@ -8,7 +8,7 @@ declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<
|
|
|
8
8
|
inField?: boolean | undefined;
|
|
9
9
|
noWrap?: boolean | undefined;
|
|
10
10
|
variant?: "inherit" | "pre" | "caption" | "code" | "h1" | "h2" | "h3" | "h4" | "body1" | "body2" | "body3" | "button1" | "button2" | undefined;
|
|
11
|
-
weight?: "inherit" | "
|
|
11
|
+
weight?: "inherit" | "400" | "500" | "600" | undefined;
|
|
12
12
|
}> & import("react").RefAttributes<HTMLElement>>>;
|
|
13
13
|
export default _default;
|
|
14
14
|
export declare const Default: ComponentStoryFn<import("react").ForwardRefExoticComponent<Readonly<{
|
|
@@ -20,5 +20,5 @@ export declare const Default: ComponentStoryFn<import("react").ForwardRefExoticC
|
|
|
20
20
|
inField?: boolean | undefined;
|
|
21
21
|
noWrap?: boolean | undefined;
|
|
22
22
|
variant?: "inherit" | "pre" | "caption" | "code" | "h1" | "h2" | "h3" | "h4" | "body1" | "body2" | "body3" | "button1" | "button2" | undefined;
|
|
23
|
-
weight?: "inherit" | "
|
|
23
|
+
weight?: "inherit" | "400" | "500" | "600" | undefined;
|
|
24
24
|
}> & import("react").RefAttributes<HTMLElement>>>;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
autoComplete?: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
id?: string;
|
|
1
|
+
import type { BaseInputProps } from "../BaseInput/BaseInput";
|
|
2
|
+
export interface TextInputProps {
|
|
6
3
|
inField?: boolean;
|
|
7
4
|
inputMode?: "text";
|
|
8
5
|
name?: string;
|
|
9
6
|
onValueChange?: (value: string) => void;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
className?: BaseInputProps["className"];
|
|
8
|
+
id?: BaseInputProps["id"];
|
|
9
|
+
placeholder?: BaseInputProps["placeholder"];
|
|
10
|
+
readOnly?: BaseInputProps["readOnly"];
|
|
11
|
+
value: BaseInputProps["value"];
|
|
12
|
+
startAdornment?: BaseInputProps["startAdornment"];
|
|
13
|
+
endAdornment?: BaseInputProps["endAdornment"];
|
|
14
|
+
variant?: BaseInputProps["variant"];
|
|
15
|
+
onFocus?: BaseInputProps["onFocus"];
|
|
16
|
+
onBlur?: BaseInputProps["onBlur"];
|
|
17
|
+
}
|
|
18
|
+
export declare const TextInput: import("react").ForwardRefExoticComponent<TextInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,26 +1,4 @@
|
|
|
1
1
|
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
|
-
declare const _default: ComponentMeta<import("react").
|
|
3
|
-
autoComplete?: string | undefined;
|
|
4
|
-
className?: string | undefined;
|
|
5
|
-
id?: string | undefined;
|
|
6
|
-
inField?: boolean | undefined;
|
|
7
|
-
inputMode?: "text" | undefined;
|
|
8
|
-
name?: string | undefined;
|
|
9
|
-
onValueChange?: ((value: string) => void) | undefined;
|
|
10
|
-
placeholder?: string | undefined;
|
|
11
|
-
readOnly?: boolean | undefined;
|
|
12
|
-
value?: string | undefined;
|
|
13
|
-
}>>>;
|
|
2
|
+
declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<import("./TextInput").TextInputProps & import("react").RefAttributes<HTMLInputElement>>>;
|
|
14
3
|
export default _default;
|
|
15
|
-
export declare const Default: ComponentStoryFn<import("react").
|
|
16
|
-
autoComplete?: string | undefined;
|
|
17
|
-
className?: string | undefined;
|
|
18
|
-
id?: string | undefined;
|
|
19
|
-
inField?: boolean | undefined;
|
|
20
|
-
inputMode?: "text" | undefined;
|
|
21
|
-
name?: string | undefined;
|
|
22
|
-
onValueChange?: ((value: string) => void) | undefined;
|
|
23
|
-
placeholder?: string | undefined;
|
|
24
|
-
readOnly?: boolean | undefined;
|
|
25
|
-
value?: string | undefined;
|
|
26
|
-
}>>>;
|
|
4
|
+
export declare const Default: ComponentStoryFn<import("react").ForwardRefExoticComponent<import("./TextInput").TextInputProps & import("react").RefAttributes<HTMLInputElement>>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type FC, type ReactNode } from "react";
|
|
2
2
|
import * as styles from "../theme/mode.css";
|
|
3
|
-
|
|
3
|
+
interface ThemeProviderProps {
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
mode?: keyof typeof styles.mode | "system";
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
7
|
export declare const ThemeProvider: FC<ThemeProviderProps>;
|
|
8
8
|
export {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
|
-
declare const _default: ComponentMeta<import("react").FC<Readonly<Pick<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps, "disabled" | "children"> & Pick<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps, "value" | "
|
|
2
|
+
declare const _default: ComponentMeta<import("react").FC<Readonly<Pick<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps, "disabled" | "children"> & Pick<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps, "value" | "type" | "onValueChange"> & {
|
|
3
3
|
density?: "compact" | "regular" | undefined;
|
|
4
4
|
size?: "medium" | "large" | "small" | undefined;
|
|
5
5
|
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
6
|
-
}> | Readonly<Pick<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps, "disabled" | "children"> & Pick<import("@radix-ui/react-toggle-group").ToggleGroupSingleProps, "value" | "
|
|
6
|
+
}> | Readonly<Pick<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps, "disabled" | "children"> & Pick<import("@radix-ui/react-toggle-group").ToggleGroupSingleProps, "value" | "type" | "onValueChange"> & {
|
|
7
7
|
density?: "compact" | "regular" | undefined;
|
|
8
8
|
size?: "medium" | "large" | "small" | undefined;
|
|
9
9
|
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
10
10
|
}>>>;
|
|
11
11
|
export default _default;
|
|
12
|
-
export declare const Default: ComponentStoryFn<import("react").FC<Readonly<Pick<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps, "disabled" | "children"> & Pick<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps, "value" | "
|
|
12
|
+
export declare const Default: ComponentStoryFn<import("react").FC<Readonly<Pick<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps, "disabled" | "children"> & Pick<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps, "value" | "type" | "onValueChange"> & {
|
|
13
13
|
density?: "compact" | "regular" | undefined;
|
|
14
14
|
size?: "medium" | "large" | "small" | undefined;
|
|
15
15
|
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
16
|
-
}> | Readonly<Pick<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps, "disabled" | "children"> & Pick<import("@radix-ui/react-toggle-group").ToggleGroupSingleProps, "value" | "
|
|
16
|
+
}> | Readonly<Pick<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps, "disabled" | "children"> & Pick<import("@radix-ui/react-toggle-group").ToggleGroupSingleProps, "value" | "type" | "onValueChange"> & {
|
|
17
17
|
density?: "compact" | "regular" | undefined;
|
|
18
18
|
size?: "medium" | "large" | "small" | undefined;
|
|
19
19
|
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
export { AnimatedList } from "./components/AnimatedList";
|
|
2
|
+
export { AppBackground } from "./components/AppBackground";
|
|
1
3
|
export { Badge } from "./components/Badge";
|
|
2
4
|
export { BlankSlate, BlankSlateActions, BlankSlateDescription, BlankSlateIcon, BlankSlateImage, BlankSlateTitle } from "./components/BlankSlate";
|
|
5
|
+
export { Box } from "./components/Box";
|
|
3
6
|
export { Button } from "./components/Button";
|
|
4
7
|
export { ButtonGroup } from "./components/ButtonGroup";
|
|
5
8
|
export { Card, CardContent, CardHeader, CardHeaderActions, CardHeaderTitle } from "./components/Card";
|
|
@@ -7,8 +10,8 @@ export { Carousel, CarouselItem } from "./components/Carousel";
|
|
|
7
10
|
export { contentEditableClass } from "./components/ContentEditable";
|
|
8
11
|
export { Cropper } from "./components/Cropper";
|
|
9
12
|
export { CropperControls } from "./components/CropperControls";
|
|
10
|
-
export {
|
|
11
|
-
export { DialogOptions, DialogOptionsItem } from "./components/
|
|
13
|
+
export { DateInput } from "./components/DateInput";
|
|
14
|
+
export { Dialog, DialogContent, DialogHeader, DialogOptions, DialogOptionsItem } from "./components/Dialog";
|
|
12
15
|
export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, dropdownMenuStyles, DropdownMenuTrigger } from "./components/DropdownMenu";
|
|
13
16
|
export { ErrorBoundary } from "./components/ErrorBoundary";
|
|
14
17
|
export { Field, FieldControl, FieldIcon, FieldLabel } from "./components/Field";
|
|
@@ -19,8 +22,10 @@ export { Icon } from "./components/Icon";
|
|
|
19
22
|
export { IconButton } from "./components/IconButton";
|
|
20
23
|
export { Image, SuspenseImage } from "./components/Image";
|
|
21
24
|
export { Layout, LayoutContent } from "./components/Layout";
|
|
25
|
+
export { Link } from "./components/Link";
|
|
22
26
|
export { type MasonryItemInfo, Masonry, MasonryMedia, MasonrySkeleton } from "./components/Masonry";
|
|
23
27
|
export { NumberInput } from "./components/NumberInput";
|
|
28
|
+
export { LinkDescriptionPopover, Popover } from "./components/Popover";
|
|
24
29
|
export { ScrollArea } from "./components/ScrollArea";
|
|
25
30
|
export { SearchInput } from "./components/SearchInput";
|
|
26
31
|
export { Select, SelectItem } from "./components/Select";
|