@prismicio/editor-ui 0.1.0-rc.1 → 0.1.0-rc.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.
- package/README.md +8 -0
- package/dist/components/Badge/Badge.css.d.ts +7 -0
- package/dist/components/Badge/Badge.d.ts +9 -0
- package/dist/components/{CodeBlock/CodeBlock.stories.d.ts → Badge/Badge.stories.d.ts} +6 -2
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/BaseInput/BaseInput.css.d.ts +5 -0
- package/dist/components/BaseInput/BaseInput.d.ts +17 -0
- package/dist/components/BaseInput/BaseInput.stories.d.ts +30 -0
- package/dist/components/BaseInput/index.d.ts +1 -0
- package/dist/components/BlankSlate/BlankSlate.css.d.ts +11 -0
- package/dist/components/BlankSlate/BlankSlate.d.ts +20 -0
- package/dist/components/{AspectRatio/AspectRatio.stories.d.ts → BlankSlate/BlankSlate.stories.d.ts} +2 -6
- package/dist/components/BlankSlate/index.d.ts +1 -0
- package/dist/components/Button/Button.css.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +5 -6
- package/dist/components/Button/Button.stories.d.ts +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +4 -4
- package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +6 -4
- package/dist/components/Card/Card.css.d.ts +6 -5
- package/dist/components/Card/Card.d.ts +17 -19
- package/dist/components/Card/Card.stories.d.ts +6 -18
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Carousel/Carousel.css.d.ts +7 -0
- package/dist/components/Carousel/Carousel.d.ts +10 -0
- package/dist/components/Carousel/Carousel.stories.d.ts +5 -0
- package/dist/components/Carousel/CarouselItem.css.d.ts +2 -0
- package/dist/components/Carousel/CarouselItem.d.ts +6 -0
- package/dist/components/Carousel/index.d.ts +2 -0
- package/dist/components/ContentEditable/ContentEditable.d.ts +6 -5
- package/dist/components/ContentEditable/ContentEditable.stories.d.ts +2 -0
- package/dist/components/Cropper/Cropper.css.d.ts +4 -0
- package/dist/components/Cropper/Cropper.d.ts +7 -0
- package/dist/components/Cropper/Cropper.stories.d.ts +8 -0
- package/dist/components/Cropper/index.d.ts +1 -0
- package/dist/components/CropperControls/CropperControls.css.d.ts +3 -0
- package/dist/components/CropperControls/CropperControls.d.ts +11 -0
- package/dist/components/CropperControls/CropperControls.stories.d.ts +20 -0
- package/dist/components/CropperControls/index.d.ts +1 -0
- package/dist/components/Dialog/Dialog.css.d.ts +5 -4
- package/dist/components/Dialog/Dialog.d.ts +26 -12
- package/dist/components/Dialog/Dialog.stories.d.ts +2 -8
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/DialogOptions/DialogOptions.css.d.ts +4 -0
- package/dist/components/DialogOptions/DialogOptions.d.ts +16 -0
- package/dist/components/DialogOptions/DialogOptions.stories.d.ts +12 -0
- package/dist/components/DialogOptions/index.d.ts +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +10 -8
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +2 -2
- package/dist/components/DropdownMenu/index.d.ts +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.stories.d.ts +5 -0
- package/dist/components/ErrorBoundary/index.d.ts +1 -0
- package/dist/components/Field/Field.d.ts +12 -5
- package/dist/components/Field/Field.stories.d.ts +2 -0
- package/dist/components/FieldSet/FieldSet.d.ts +7 -3
- package/dist/components/FieldSet/FieldSet.stories.d.ts +2 -0
- package/dist/components/Group/Group.css.d.ts +3 -0
- package/dist/components/Group/Group.d.ts +9 -0
- package/dist/components/Group/Group.stories.d.ts +15 -0
- package/dist/components/Group/GroupItem.css.d.ts +6 -0
- package/dist/components/Group/GroupItem.d.ts +15 -0
- package/dist/components/Group/context.d.ts +13 -0
- package/dist/components/Group/index.d.ts +2 -0
- package/dist/components/HairlineButton/HairlineButton.css.d.ts +1 -0
- package/dist/components/HairlineButton/HairlineButton.d.ts +1 -1
- package/dist/components/Icon/Icon.css.d.ts +10 -0
- package/dist/components/Icon/Icon.d.ts +7 -0
- package/dist/components/Icon/Icon.stories.d.ts +14 -0
- package/dist/components/Icon/iconNames.d.ts +2 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/Image/Image.css.d.ts +2 -0
- package/dist/components/Image/Image.d.ts +12 -0
- package/dist/components/{Well/Well.stories.d.ts → Image/Image.stories.d.ts} +8 -0
- package/dist/components/Image/index.d.ts +1 -0
- package/dist/components/Layout/Layout.css.d.ts +0 -2
- package/dist/components/Layout/Layout.d.ts +3 -5
- package/dist/components/Layout/Layout.stories.d.ts +2 -2
- package/dist/components/Layout/index.d.ts +1 -1
- package/dist/components/Masonry/Masonry.css.d.ts +2 -0
- package/dist/components/Masonry/Masonry.d.ts +12 -0
- package/dist/components/Masonry/Masonry.stories.d.ts +9 -0
- package/dist/components/Masonry/MasonryMedia.css.d.ts +2 -0
- package/dist/components/Masonry/MasonryMedia.d.ts +7 -0
- package/dist/components/Masonry/MasonrySkeleton.d.ts +2 -0
- package/dist/components/Masonry/index.d.ts +3 -0
- package/dist/components/NumberInput/NumberInput.d.ts +17 -0
- package/dist/components/NumberInput/NumberInput.stories.d.ts +28 -0
- package/dist/components/NumberInput/index.d.ts +1 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +5 -4
- package/dist/components/ScrollArea/ScrollArea.stories.d.ts +2 -0
- package/dist/components/SearchInput/SearchInput.css.d.ts +2 -0
- package/dist/components/SearchInput/SearchInput.d.ts +7 -0
- package/dist/components/SearchInput/SearchInput.stories.d.ts +12 -0
- package/dist/components/SearchInput/index.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +8 -8
- package/dist/components/Select/Select.stories.d.ts +4 -4
- package/dist/components/Separator/Separator.d.ts +1 -3
- package/dist/components/Separator/Separator.stories.d.ts +2 -6
- package/dist/components/Skeleton/Skeleton.d.ts +7 -6
- package/dist/components/Skeleton/Skeleton.stories.d.ts +2 -0
- package/dist/components/Slider/Slider.css.d.ts +4 -0
- package/dist/components/Slider/Slider.d.ts +4 -0
- package/dist/components/Slider/Slider.stories.d.ts +4 -0
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/Switch/Switch.css.d.ts +3 -0
- package/dist/components/Switch/Switch.d.ts +9 -0
- package/dist/components/Switch/Switch.stories.d.ts +10 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Text/Text.css.d.ts +1 -10
- package/dist/components/Text/Text.d.ts +17 -7
- package/dist/components/Text/Text.stories.d.ts +8 -10
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/TextArea/TextArea.d.ts +9 -9
- package/dist/components/TextInput/TextInput.d.ts +15 -0
- package/dist/components/{Input/Input.stories.d.ts → TextInput/TextInput.stories.d.ts} +2 -4
- package/dist/components/TextInput/index.d.ts +1 -0
- package/dist/components/ThemeProvider.d.ts +8 -2
- package/dist/components/ToggleButton/ToggleButton.d.ts +7 -7
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +6 -4
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +9 -9
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts +12 -12
- package/dist/components/Toolbar/Toolbar.d.ts +20 -19
- package/dist/components/Toolbar/Toolbar.stories.d.ts +2 -6
- package/dist/components/Toolbar/index.d.ts +1 -1
- package/dist/index.d.ts +25 -52
- package/dist/index.es.js +7235 -5851
- package/dist/index.umd.js +148 -38
- package/dist/style.css +1 -1
- package/dist/theme/mode.css.d.ts +1 -0
- package/dist/theme/sprinkles.css.d.ts +2709 -2103
- package/dist/theme/vars.css.d.ts +196 -5
- package/package.json +54 -39
- package/dist/components/AspectRatio/AspectRatio.css.d.ts +0 -3
- package/dist/components/AspectRatio/AspectRatio.d.ts +0 -6
- package/dist/components/AspectRatio/index.d.ts +0 -1
- package/dist/components/Backdrop/Backdrop.css.d.ts +0 -3
- package/dist/components/Backdrop/Backdrop.d.ts +0 -7
- package/dist/components/Backdrop/Backdrop.stories.d.ts +0 -10
- package/dist/components/Backdrop/index.d.ts +0 -1
- package/dist/components/CodeBlock/CodeBlock.css.d.ts +0 -7
- package/dist/components/CodeBlock/CodeBlock.d.ts +0 -6
- package/dist/components/CodeBlock/index.d.ts +0 -1
- package/dist/components/Drawer/Drawer.css.d.ts +0 -11
- package/dist/components/Drawer/Drawer.d.ts +0 -20
- package/dist/components/Drawer/Drawer.stories.d.ts +0 -28
- package/dist/components/Drawer/index.d.ts +0 -1
- package/dist/components/DrawerScrollArea/DrawerScrollArea.css.d.ts +0 -1
- package/dist/components/DrawerScrollArea/DrawerScrollArea.d.ts +0 -6
- package/dist/components/DrawerScrollArea/DrawerScrollArea.stories.d.ts +0 -10
- package/dist/components/DrawerScrollArea/index.d.ts +0 -1
- package/dist/components/Input/Input.css.d.ts +0 -1
- package/dist/components/Input/Input.d.ts +0 -16
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/SvgIcon.d.ts +0 -11
- package/dist/components/Thumbnail/Thumbnail.css.d.ts +0 -5
- package/dist/components/Thumbnail/Thumbnail.d.ts +0 -16
- package/dist/components/Thumbnail/Thumbnail.stories.d.ts +0 -12
- package/dist/components/Thumbnail/index.d.ts +0 -1
- package/dist/components/Well/Well.css.d.ts +0 -1
- package/dist/components/Well/Well.d.ts +0 -7
- package/dist/components/Well/index.d.ts +0 -1
- package/dist/icons/AddCircleIcon/AddCircleIcon.css.d.ts +0 -4
- package/dist/icons/AddCircleIcon/AddCircleIcon.d.ts +0 -8
- package/dist/icons/AddCircleIcon/index.d.ts +0 -1
- package/dist/icons/ArrowDownwardIcon.d.ts +0 -5
- package/dist/icons/ArrowDropDownCircleIcon.d.ts +0 -5
- package/dist/icons/ArrowDropDownIcon.d.ts +0 -4
- package/dist/icons/ArrowUpwardIcon.d.ts +0 -5
- package/dist/icons/CheckCircleIcon.d.ts +0 -5
- package/dist/icons/CheckIcon.d.ts +0 -4
- package/dist/icons/ClockIcon.d.ts +0 -5
- package/dist/icons/CloseIcon.d.ts +0 -5
- package/dist/icons/DataObjectIcon.d.ts +0 -5
- package/dist/icons/DeleteIcon.d.ts +0 -5
- package/dist/icons/DesktopWindowsIcon.d.ts +0 -5
- package/dist/icons/FolderIcon.d.ts +0 -5
- package/dist/icons/FormatBoldIcon.d.ts +0 -5
- package/dist/icons/FormatClearIcon.d.ts +0 -5
- package/dist/icons/FormatItalicIcon.d.ts +0 -5
- package/dist/icons/FormatListBulletedIcon.d.ts +0 -5
- package/dist/icons/FormatListNumberedIcon.d.ts +0 -5
- package/dist/icons/FormatTextDirectionRtlIcon.d.ts +0 -5
- package/dist/icons/KeyboardArrowDownIcon.d.ts +0 -5
- package/dist/icons/KeyboardArrowUpIcon.d.ts +0 -5
- package/dist/icons/LinkIcon.d.ts +0 -5
- package/dist/icons/LooksFiveIcon.d.ts +0 -5
- package/dist/icons/LooksFourIcon.d.ts +0 -5
- package/dist/icons/LooksOneIcon.d.ts +0 -5
- package/dist/icons/LooksSixIcon.d.ts +0 -5
- package/dist/icons/LooksThreeIcon.d.ts +0 -5
- package/dist/icons/LooksTwoIcon.d.ts +0 -5
- package/dist/icons/NotesIcon.d.ts +0 -5
- package/dist/icons/PhoneIphoneIcon.d.ts +0 -5
- package/dist/icons/TabletMacIcon.d.ts +0 -5
- package/dist/icons/TextFieldsIcon.d.ts +0 -5
- package/dist/icons/UnfoldMoreIcon.d.ts +0 -4
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
2
2
|
import { type FC, type ReactNode } from "react";
|
|
3
|
-
|
|
4
|
-
declare
|
|
3
|
+
declare type DropdownMenuProps = Readonly<Pick<DropdownMenuPrimitive.DropdownMenuProps, "children">>;
|
|
4
|
+
export declare const DropdownMenu: FC<DropdownMenuProps>;
|
|
5
|
+
declare type DropdownMenuTriggerProps = Readonly<Pick<DropdownMenuPrimitive.DropdownMenuTriggerProps, "children" | "disabled">>;
|
|
5
6
|
export declare const DropdownMenuTrigger: FC<DropdownMenuTriggerProps>;
|
|
6
|
-
declare type DropdownMenuContentProps = Readonly<Pick<DropdownMenuPrimitive.DropdownMenuContentProps, "align" | "side">>;
|
|
7
|
+
declare type DropdownMenuContentProps = Readonly<Pick<DropdownMenuPrimitive.DropdownMenuContentProps, "align" | "children" | "side">>;
|
|
7
8
|
export declare const DropdownMenuContent: FC<DropdownMenuContentProps>;
|
|
8
|
-
declare type DropdownMenuItemProps = Readonly<Pick<DropdownMenuPrimitive.DropdownMenuItemProps, "disabled" | "onSelect" | "textValue"> & {
|
|
9
|
-
endIcon?: ReactNode
|
|
10
|
-
shortcut?: ReactNode
|
|
11
|
-
startIcon?: ReactNode
|
|
9
|
+
declare type DropdownMenuItemProps = Readonly<Pick<DropdownMenuPrimitive.DropdownMenuItemProps, "children" | "disabled" | "onSelect" | "textValue"> & {
|
|
10
|
+
endIcon?: ReactNode;
|
|
11
|
+
shortcut?: ReactNode;
|
|
12
|
+
startIcon?: ReactNode;
|
|
12
13
|
}>;
|
|
13
14
|
export declare const DropdownMenuItem: FC<DropdownMenuItemProps>;
|
|
14
|
-
|
|
15
|
+
declare type DropdownMenuLabelProps = Readonly<Pick<DropdownMenuPrimitive.DropdownMenuLabelProps, "children">>;
|
|
16
|
+
export declare const DropdownMenuLabel: FC<DropdownMenuLabelProps>;
|
|
15
17
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
|
-
declare const _default: ComponentMeta<import("react").FC<
|
|
2
|
+
declare const _default: ComponentMeta<import("react").FC<Readonly<Pick<import("@radix-ui/react-dropdown-menu").DropdownMenuProps, "children">>>>;
|
|
3
3
|
export default _default;
|
|
4
|
-
export declare const Default: ComponentStoryFn<import("react").FC<
|
|
4
|
+
export declare const Default: ComponentStoryFn<import("react").FC<Readonly<Pick<import("@radix-ui/react-dropdown-menu").DropdownMenuProps, "children">>>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuTrigger
|
|
1
|
+
export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuTrigger } from "./DropdownMenu";
|
|
2
2
|
export * as dropdownMenuStyles from "./DropdownMenu.css";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { CSSProperties, ReactNode } from "react";
|
|
2
|
+
interface ErrorBoundaryProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
errorImageSrc?: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
interface ErrorBoundaryState {
|
|
10
|
+
hasError: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
13
|
+
constructor(props: ErrorBoundaryProps);
|
|
14
|
+
static getDerivedStateFromError(_error: unknown): {
|
|
15
|
+
hasError: boolean;
|
|
16
|
+
};
|
|
17
|
+
render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
|
+
import { ErrorBoundary } from "./ErrorBoundary";
|
|
3
|
+
declare const _default: ComponentMeta<typeof ErrorBoundary>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStoryFn<typeof ErrorBoundary>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ErrorBoundary } from "./ErrorBoundary";
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2
|
-
import { type FC } from "react";
|
|
2
|
+
import { type FC, type ReactNode } from "react";
|
|
3
3
|
import * as styles from "./Field.css";
|
|
4
4
|
declare type FieldProps = Readonly<{
|
|
5
|
-
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
labelPosition?: keyof typeof styles.labelPosition;
|
|
6
7
|
}>;
|
|
7
8
|
export declare const Field: FC<FieldProps>;
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
declare type FieldIconProps = Readonly<{
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const FieldIcon: FC<FieldIconProps>;
|
|
13
|
+
declare type FieldLabelProps = Readonly<Pick<LabelPrimitive.LabelProps, "children" | "htmlFor">>;
|
|
10
14
|
export declare const FieldLabel: FC<FieldLabelProps>;
|
|
11
|
-
|
|
15
|
+
declare type FieldControlProps = Readonly<{
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const FieldControl: FC<FieldControlProps>;
|
|
12
19
|
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
2
|
declare const _default: ComponentMeta<import("react").FC<Readonly<{
|
|
3
|
+
children?: import("react").ReactNode;
|
|
3
4
|
labelPosition?: "top" | "side" | undefined;
|
|
4
5
|
}>>>;
|
|
5
6
|
export default _default;
|
|
6
7
|
export declare const Default: ComponentStoryFn<import("react").FC<Readonly<{
|
|
8
|
+
children?: import("react").ReactNode;
|
|
7
9
|
labelPosition?: "top" | "side" | undefined;
|
|
8
10
|
}>>>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import type { FC } from "react";
|
|
1
|
+
import type { FC, ReactNode } from "react";
|
|
2
2
|
declare type FieldSetProps = Readonly<{
|
|
3
|
-
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
name?: string;
|
|
4
5
|
}>;
|
|
5
6
|
export declare const FieldSet: FC<FieldSetProps>;
|
|
6
|
-
|
|
7
|
+
declare type FieldSetLegendProps = Readonly<{
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const FieldSetLegend: FC<FieldSetLegendProps>;
|
|
7
11
|
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
2
|
declare const _default: ComponentMeta<import("react").FC<Readonly<{
|
|
3
|
+
children?: import("react").ReactNode;
|
|
3
4
|
name?: string | undefined;
|
|
4
5
|
}>>>;
|
|
5
6
|
export default _default;
|
|
6
7
|
export declare const Default: ComponentStoryFn<import("react").FC<Readonly<{
|
|
8
|
+
children?: import("react").ReactNode;
|
|
7
9
|
name?: string | undefined;
|
|
8
10
|
}>>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
|
+
import { type FC } from "react";
|
|
3
|
+
declare const _default: ComponentMeta<FC<Readonly<{
|
|
4
|
+
title?: string | undefined;
|
|
5
|
+
addItemButtonTitle?: string | undefined;
|
|
6
|
+
onAddItem?: (() => void) | undefined;
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
}>>>;
|
|
9
|
+
export default _default;
|
|
10
|
+
export declare const Default: ComponentStoryFn<FC<Readonly<{
|
|
11
|
+
title?: string | undefined;
|
|
12
|
+
addItemButtonTitle?: string | undefined;
|
|
13
|
+
onAddItem?: (() => void) | undefined;
|
|
14
|
+
children?: import("react").ReactNode;
|
|
15
|
+
}>>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FC, ReactNode } from "react";
|
|
2
|
+
declare type Props = Readonly<{
|
|
3
|
+
index?: number;
|
|
4
|
+
title?: string;
|
|
5
|
+
onMove?: (params: {
|
|
6
|
+
index: number;
|
|
7
|
+
offset: number;
|
|
8
|
+
}) => void;
|
|
9
|
+
onDelete?: (params: {
|
|
10
|
+
index: number;
|
|
11
|
+
}) => void;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const GroupItem: FC<Props>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ComponentProps } from "react";
|
|
2
|
+
declare const GroupContext: import("react").Context<{
|
|
3
|
+
itemsCount: number;
|
|
4
|
+
}>;
|
|
5
|
+
export declare const GroupContextProvider: ({ itemsCount, children }: Pick<import("react").ProviderProps<{
|
|
6
|
+
itemsCount: number;
|
|
7
|
+
}>, "children"> & {
|
|
8
|
+
itemsCount: number;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export declare const useGroupContext: () => {
|
|
11
|
+
itemsCount: number;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CSSProperties, type MouseEvent, type ReactNode } from "react";
|
|
2
2
|
export declare const HairlineButton: import("react").ForwardRefExoticComponent<Readonly<{
|
|
3
|
-
children?: ReactNode
|
|
3
|
+
children?: ReactNode;
|
|
4
4
|
disabled?: boolean | undefined;
|
|
5
5
|
onClick?: ((event: MouseEvent) => void) | undefined;
|
|
6
6
|
style?: CSSProperties | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IconName } from "./iconNames";
|
|
2
|
+
export declare const Icon: import("react").ForwardRefExoticComponent<Readonly<{
|
|
3
|
+
className?: string | undefined;
|
|
4
|
+
color?: "inherit" | "grey2" | "grey11" | undefined;
|
|
5
|
+
name: IconName;
|
|
6
|
+
size?: "medium" | "large" | "small" | undefined;
|
|
7
|
+
}> & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
|
+
declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<Readonly<{
|
|
3
|
+
className?: string | undefined;
|
|
4
|
+
color?: "inherit" | "grey2" | "grey11" | undefined;
|
|
5
|
+
name: "add" | "search" | "link" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "centerFocusWeak" | "check" | "close" | "cloudUpload" | "crop" | "cropLandscape" | "cropPortrait" | "dataObject" | "delete" | "desktopWindows" | "folder" | "formatBold" | "formatClear" | "formatItalic" | "formatListBulleted" | "formatListNumbered" | "formatTextDirectionRToL" | "imageSearch" | "keyboardArrowDown" | "keyboardArrowUp" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "notes" | "phoneIphone" | "photo" | "pin" | "schedule" | "tabletMac" | "textFields" | "toggleOff" | "unfoldMore" | "viewDay" | "zoomOutMap";
|
|
6
|
+
size?: "medium" | "large" | "small" | undefined;
|
|
7
|
+
}> & import("react").RefAttributes<SVGSVGElement>>>;
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: ComponentStoryFn<import("react").ForwardRefExoticComponent<Readonly<{
|
|
10
|
+
className?: string | undefined;
|
|
11
|
+
color?: "inherit" | "grey2" | "grey11" | undefined;
|
|
12
|
+
name: "add" | "search" | "link" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "centerFocusWeak" | "check" | "close" | "cloudUpload" | "crop" | "cropLandscape" | "cropPortrait" | "dataObject" | "delete" | "desktopWindows" | "folder" | "formatBold" | "formatClear" | "formatItalic" | "formatListBulleted" | "formatListNumbered" | "formatTextDirectionRToL" | "imageSearch" | "keyboardArrowDown" | "keyboardArrowUp" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "notes" | "phoneIphone" | "photo" | "pin" | "schedule" | "tabletMac" | "textFields" | "toggleOff" | "unfoldMore" | "viewDay" | "zoomOutMap";
|
|
13
|
+
size?: "medium" | "large" | "small" | undefined;
|
|
14
|
+
}> & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const iconNames: readonly ["add", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "centerFocusWeak", "check", "close", "cloudUpload", "crop", "cropLandscape", "cropPortrait", "dataObject", "delete", "desktopWindows", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "imageSearch", "keyboardArrowDown", "keyboardArrowUp", "link", "looks1", "looks2", "looks3", "looks4", "looks5", "looks6", "notes", "phoneIphone", "photo", "pin", "schedule", "search", "tabletMac", "textFields", "toggleOff", "unfoldMore", "viewDay", "zoomOutMap"];
|
|
2
|
+
export declare type IconName = typeof iconNames[number];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CSSProperties, type MouseEvent, type ReactNode } from "react";
|
|
2
2
|
export declare const IconButton: import("react").ForwardRefExoticComponent<Readonly<{
|
|
3
|
-
children?: ReactNode
|
|
3
|
+
children?: ReactNode;
|
|
4
4
|
className?: string | undefined;
|
|
5
5
|
onClick?: ((event: MouseEvent) => void) | undefined;
|
|
6
6
|
style?: CSSProperties | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CSSProperties, FC } from "react";
|
|
2
|
+
declare type ImageProps = Readonly<{
|
|
3
|
+
src: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
loading?: "eager" | "lazy";
|
|
6
|
+
decoding?: "async" | "auto" | "sync";
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const ImageComponent: FC<ImageProps>;
|
|
11
|
+
export declare const SuspenseImage: FC<ImageProps>;
|
|
12
|
+
export {};
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
2
|
declare const _default: ComponentMeta<import("react").FC<Readonly<{
|
|
3
|
+
src: string;
|
|
4
|
+
alt?: string | undefined;
|
|
5
|
+
loading?: "eager" | "lazy" | undefined;
|
|
6
|
+
decoding?: "auto" | "async" | "sync" | undefined;
|
|
3
7
|
className?: string | undefined;
|
|
4
8
|
style?: import("react").CSSProperties | undefined;
|
|
5
9
|
}>>>;
|
|
6
10
|
export default _default;
|
|
7
11
|
export declare const Default: ComponentStoryFn<import("react").FC<Readonly<{
|
|
12
|
+
src: string;
|
|
13
|
+
alt?: string | undefined;
|
|
14
|
+
loading?: "eager" | "lazy" | undefined;
|
|
15
|
+
decoding?: "auto" | "async" | "sync" | undefined;
|
|
8
16
|
className?: string | undefined;
|
|
9
17
|
style?: import("react").CSSProperties | undefined;
|
|
10
18
|
}>>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ImageComponent as Image, SuspenseImage } from "./Image";
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { FC } from "react";
|
|
1
|
+
import type { FC, ReactNode } from "react";
|
|
2
2
|
declare type LayoutProps = Readonly<{
|
|
3
|
-
|
|
3
|
+
children?: ReactNode;
|
|
4
4
|
}>;
|
|
5
5
|
export declare const Layout: FC<LayoutProps>;
|
|
6
|
-
export declare const LayoutNavigation: FC;
|
|
7
|
-
export declare const LayoutHeader: FC;
|
|
8
6
|
declare type LayoutContentProps = Readonly<{
|
|
9
|
-
|
|
7
|
+
children?: ReactNode;
|
|
10
8
|
}>;
|
|
11
9
|
export declare const LayoutContent: FC<LayoutContentProps>;
|
|
12
10
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
2
|
declare const _default: ComponentMeta<import("react").FC<Readonly<{
|
|
3
|
-
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
4
|
}>>>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Default: ComponentStoryFn<import("react").FC<Readonly<{
|
|
7
|
-
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
8
|
}>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Layout, LayoutContent
|
|
1
|
+
export { Layout, LayoutContent } from "./Layout";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CSSProperties, Key, ReactElement, ReactNode } from "react";
|
|
2
|
+
export interface ItemInfo {
|
|
3
|
+
key: Key;
|
|
4
|
+
aspectRatio: number;
|
|
5
|
+
}
|
|
6
|
+
export interface MasonryProps<ITEM> {
|
|
7
|
+
items: readonly ITEM[];
|
|
8
|
+
getItemInfo: (item: ITEM) => ItemInfo;
|
|
9
|
+
children?: (item: ITEM) => ReactNode;
|
|
10
|
+
style?: CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
export declare function Masonry<ITEM>(props: MasonryProps<ITEM>): ReactElement;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
|
+
import { Masonry } from "./Masonry";
|
|
3
|
+
declare const _default: ComponentMeta<typeof Masonry>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStoryFn<typeof Masonry>;
|
|
6
|
+
export declare const Skeleton: {
|
|
7
|
+
(): JSX.Element;
|
|
8
|
+
args: {};
|
|
9
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
declare type NumberInputProps = Readonly<{
|
|
3
|
+
autoComplete?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
inField?: boolean;
|
|
7
|
+
max?: number;
|
|
8
|
+
min?: number;
|
|
9
|
+
name?: string;
|
|
10
|
+
onValueChange?: (value: number | undefined) => void;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
value?: number;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const NumberInput: FC<NumberInputProps>;
|
|
16
|
+
export declare function isValidDraftValue(value: string): boolean;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
|
+
declare const _default: ComponentMeta<import("react").FC<Readonly<{
|
|
3
|
+
autoComplete?: string | undefined;
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
id?: string | undefined;
|
|
6
|
+
inField?: boolean | undefined;
|
|
7
|
+
max?: number | undefined;
|
|
8
|
+
min?: number | undefined;
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
onValueChange?: ((value: number | undefined) => void) | undefined;
|
|
11
|
+
placeholder?: string | undefined;
|
|
12
|
+
readOnly?: boolean | undefined;
|
|
13
|
+
value?: number | undefined;
|
|
14
|
+
}>>>;
|
|
15
|
+
export default _default;
|
|
16
|
+
export declare const Default: ComponentStoryFn<import("react").FC<Readonly<{
|
|
17
|
+
autoComplete?: string | undefined;
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
inField?: boolean | undefined;
|
|
21
|
+
max?: number | undefined;
|
|
22
|
+
min?: number | undefined;
|
|
23
|
+
name?: string | undefined;
|
|
24
|
+
onValueChange?: ((value: number | undefined) => void) | undefined;
|
|
25
|
+
placeholder?: string | undefined;
|
|
26
|
+
readOnly?: boolean | undefined;
|
|
27
|
+
value?: number | undefined;
|
|
28
|
+
}>>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NumberInput } from "./NumberInput";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { CSSProperties, FC } from "react";
|
|
1
|
+
import type { CSSProperties, FC, ReactNode } from "react";
|
|
2
2
|
import * as styles from "./ScrollArea.css";
|
|
3
3
|
declare type ScrollAreaProps = Readonly<{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
direction?: keyof typeof styles.direction;
|
|
7
|
+
style?: CSSProperties;
|
|
7
8
|
}>;
|
|
8
9
|
export declare const ScrollArea: FC<ScrollAreaProps>;
|
|
9
10
|
export {};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
2
|
declare const _default: ComponentMeta<import("react").FC<Readonly<{
|
|
3
|
+
children?: import("react").ReactNode;
|
|
3
4
|
className?: string | undefined;
|
|
4
5
|
direction?: "horizontal" | "vertical" | undefined;
|
|
5
6
|
style?: import("react").CSSProperties | undefined;
|
|
6
7
|
}>>>;
|
|
7
8
|
export default _default;
|
|
8
9
|
export declare const Default: ComponentStoryFn<import("react").FC<Readonly<{
|
|
10
|
+
children?: import("react").ReactNode;
|
|
9
11
|
className?: string | undefined;
|
|
10
12
|
direction?: "horizontal" | "vertical" | undefined;
|
|
11
13
|
style?: import("react").CSSProperties | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
|
+
declare const _default: ComponentMeta<({ onValueChange, value, ...props }: Readonly<{
|
|
3
|
+
value: string;
|
|
4
|
+
onValueChange: (value: string) => void;
|
|
5
|
+
placeholder?: string | undefined;
|
|
6
|
+
}>) => JSX.Element>;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: ComponentStoryFn<({ onValueChange, value, ...props }: Readonly<{
|
|
9
|
+
value: string;
|
|
10
|
+
onValueChange: (value: string) => void;
|
|
11
|
+
placeholder?: string | undefined;
|
|
12
|
+
}>) => JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchInput } from "./SearchInput";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2
2
|
import { type FC, type ReactNode } from "react";
|
|
3
3
|
import type * as buttonStyles from "../Button/Button.css";
|
|
4
|
-
declare type SelectProps = Readonly<Pick<SelectPrimitive.SelectProps, "autoComplete" | "name" | "onValueChange" | "value"> & Pick<SelectPrimitive.SelectValueProps, "placeholder"> & {
|
|
5
|
-
disabled?: boolean
|
|
6
|
-
id?: string
|
|
7
|
-
inField?: boolean
|
|
8
|
-
size?: keyof typeof buttonStyles.size
|
|
9
|
-
trigger?: ReactNode
|
|
10
|
-
variant?: keyof typeof buttonStyles.variant
|
|
4
|
+
declare type SelectProps = Readonly<Pick<SelectPrimitive.SelectProps, "autoComplete" | "children" | "name" | "onValueChange" | "value"> & Pick<SelectPrimitive.SelectValueProps, "placeholder"> & {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
id?: string;
|
|
7
|
+
inField?: boolean;
|
|
8
|
+
size?: keyof typeof buttonStyles.size;
|
|
9
|
+
trigger?: ReactNode;
|
|
10
|
+
variant?: keyof typeof buttonStyles.variant;
|
|
11
11
|
}>;
|
|
12
12
|
export declare const Select: FC<SelectProps>;
|
|
13
|
-
declare type SelectItemProps = Readonly<Pick<SelectPrimitive.SelectItemProps, "disabled" | "textValue" | "value">>;
|
|
13
|
+
declare type SelectItemProps = Readonly<Pick<SelectPrimitive.SelectItemProps, "children" | "disabled" | "textValue" | "value">>;
|
|
14
14
|
export declare const SelectItem: FC<SelectItemProps>;
|
|
15
15
|
export {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
|
-
declare const _default: ComponentMeta<import("react").FC<Readonly<Pick<import("@radix-ui/react-select").SelectProps, "value" | "name" | "autoComplete" | "onValueChange"> & Pick<import("@radix-ui/react-select").SelectValueProps, "placeholder"> & {
|
|
2
|
+
declare const _default: ComponentMeta<import("react").FC<Readonly<Pick<import("@radix-ui/react-select").SelectProps, "children" | "value" | "name" | "autoComplete" | "onValueChange"> & Pick<import("@radix-ui/react-select").SelectValueProps, "placeholder"> & {
|
|
3
3
|
disabled?: boolean | undefined;
|
|
4
4
|
id?: string | undefined;
|
|
5
5
|
inField?: boolean | undefined;
|
|
6
|
-
size?: "
|
|
6
|
+
size?: "medium" | "large" | "small" | undefined;
|
|
7
7
|
trigger?: import("react").ReactNode;
|
|
8
8
|
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
9
9
|
}>>>;
|
|
10
10
|
export default _default;
|
|
11
|
-
export declare const Default: ComponentStoryFn<import("react").FC<Readonly<Pick<import("@radix-ui/react-select").SelectProps, "value" | "name" | "autoComplete" | "onValueChange"> & Pick<import("@radix-ui/react-select").SelectValueProps, "placeholder"> & {
|
|
11
|
+
export declare const Default: ComponentStoryFn<import("react").FC<Readonly<Pick<import("@radix-ui/react-select").SelectProps, "children" | "value" | "name" | "autoComplete" | "onValueChange"> & Pick<import("@radix-ui/react-select").SelectValueProps, "placeholder"> & {
|
|
12
12
|
disabled?: boolean | undefined;
|
|
13
13
|
id?: string | undefined;
|
|
14
14
|
inField?: boolean | undefined;
|
|
15
|
-
size?: "
|
|
15
|
+
size?: "medium" | "large" | "small" | undefined;
|
|
16
16
|
trigger?: import("react").ReactNode;
|
|
17
17
|
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
18
18
|
}>>>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
2
2
|
import type { FC } from "react";
|
|
3
|
-
declare type SeparatorProps = Readonly<Pick<SeparatorPrimitive.SeparatorProps, "decorative" | "orientation"
|
|
4
|
-
className?: string | undefined;
|
|
5
|
-
}>;
|
|
3
|
+
declare type SeparatorProps = Readonly<Pick<SeparatorPrimitive.SeparatorProps, "className" | "decorative" | "orientation">>;
|
|
6
4
|
export declare const Separator: FC<SeparatorProps>;
|
|
7
5
|
export {};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import type { ComponentMeta, ComponentStoryFn } from "@storybook/react";
|
|
2
|
-
declare const _default: ComponentMeta<import("react").FC<Readonly<Pick<import("@radix-ui/react-separator").SeparatorProps, "decorative" | "orientation"
|
|
3
|
-
className?: string | undefined;
|
|
4
|
-
}>>>;
|
|
2
|
+
declare const _default: ComponentMeta<import("react").FC<Readonly<Pick<import("@radix-ui/react-separator").SeparatorProps, "className" | "decorative" | "orientation">>>>;
|
|
5
3
|
export default _default;
|
|
6
|
-
export declare const Default: ComponentStoryFn<import("react").FC<Readonly<Pick<import("@radix-ui/react-separator").SeparatorProps, "decorative" | "orientation"
|
|
7
|
-
className?: string | undefined;
|
|
8
|
-
}>>>;
|
|
4
|
+
export declare const Default: ComponentStoryFn<import("react").FC<Readonly<Pick<import("@radix-ui/react-separator").SeparatorProps, "className" | "decorative" | "orientation">>>>;
|