@clickhouse/click-ui 0.0.2 → 0.0.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/dist/App.d.ts +2 -0
- package/dist/assets/RightArrow/RightArrow.d.ts +1 -0
- package/dist/assets/S3Logo/S3Logo.d.ts +1 -0
- package/dist/components/Accordion/Accordion.d.ts +27 -0
- package/dist/components/Accordion/Accordion.stories.d.ts +21 -0
- package/dist/components/Accordion/Accordion.test.d.ts +1 -0
- package/dist/components/Alert/Alert.d.ts +16 -0
- package/dist/components/Alert/Alert.stories.d.ts +12 -0
- package/dist/components/Alert/Alert.test.d.ts +1 -0
- package/dist/components/Avatar/Avatar.d.ts +7 -0
- package/dist/components/Avatar/Avatar.stories.d.ts +11 -0
- package/dist/components/Badge/Badge.d.ts +16 -0
- package/dist/components/Badge/Badge.stories.d.ts +34 -0
- package/dist/components/Badge/Badge.test.d.ts +1 -0
- package/dist/components/BigStat/BigStat.d.ts +10 -0
- package/dist/components/BigStat/BigStat.stories.d.ts +20 -0
- package/dist/components/Button/Button.d.ts +23 -0
- package/dist/components/Button/Button.stories.d.ts +28 -0
- package/dist/components/Button/Button.test.d.ts +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +6 -0
- package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +12 -0
- package/dist/components/Card/Card.d.ts +10 -0
- package/dist/components/Card/Card.stories.d.ts +16 -0
- package/dist/components/Checkbox/Checkbox.d.ts +5 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +29 -0
- package/dist/components/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +38 -0
- package/dist/components/ContextMenu/ContextMenu.stories.d.ts +30 -0
- package/dist/components/ContextMenu/ContextMenu.test.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +38 -0
- package/dist/components/Dropdown/Dropdown.stories.d.ts +36 -0
- package/dist/components/Dropdown/Dropdown.test.d.ts +1 -0
- package/dist/components/FormField/Label.d.ts +7 -0
- package/dist/components/FormField/Label.stories.d.ts +28 -0
- package/dist/components/FormField/Select.d.ts +43 -0
- package/dist/components/FormField/Select.stories.d.ts +54 -0
- package/dist/components/FormField/Select.test.d.ts +0 -0
- package/dist/components/FormField/SelectContext.d.ts +24 -0
- package/dist/components/FormField/commonElement.d.ts +1100 -0
- package/dist/components/GenericMenu.d.ts +764 -0
- package/dist/components/HoverCard/HoverCard.d.ts +20 -0
- package/dist/components/HoverCard/HoverCard.stories.d.ts +36 -0
- package/dist/components/HoverCard/HoverCard.test.d.ts +0 -0
- package/dist/components/Icon/Icon.d.ts +571 -0
- package/dist/components/Icon/Icon.stories.d.ts +495 -0
- package/dist/components/Icon/types.d.ts +8 -0
- package/dist/components/IconButton/IconButton.d.ts +15 -0
- package/dist/components/IconButton/IconButton.stories.d.ts +30 -0
- package/dist/components/IconButton/IconButton.test.d.ts +1 -0
- package/dist/components/Panel/Panel.d.ts +11 -0
- package/dist/components/Panel/Panel.stories.d.ts +23 -0
- package/dist/components/Popover/Popover.d.ts +23 -0
- package/dist/components/Popover/Popover.stories.d.ts +43 -0
- package/dist/components/Popover/Popover.test.d.ts +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +17 -0
- package/dist/components/RadioGroup/RadioGroup.stories.d.ts +39 -0
- package/dist/components/RadioGroup/RadioGroup.test.d.ts +1 -0
- package/dist/components/Separator/Separator.d.ts +6 -0
- package/dist/components/SidebarNavigationItem/SidebarNavigationItem.d.ts +17 -0
- package/dist/components/SidebarNavigationItem/SidebarNavigationItem.stories.d.ts +20 -0
- package/dist/components/Spacer/Spacer.d.ts +4 -0
- package/dist/components/Spacer/Spacer.stories.d.ts +19 -0
- package/dist/components/Switch/Switch.d.ts +7 -0
- package/dist/components/Switch/Switch.stories.d.ts +13 -0
- package/dist/components/Table/Table.d.ts +568 -0
- package/dist/components/Table/Table.stories.d.ts +575 -0
- package/dist/components/Tabs/Tabs.d.ts +848 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +845 -0
- package/dist/components/Tabs/Tabs.test.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +17 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +45 -0
- package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/components/Typography/Text/Text.d.ts +12 -0
- package/dist/components/Typography/Text/Text.stories.d.ts +22 -0
- package/dist/components/Typography/Text/Text.test.d.ts +1 -0
- package/dist/components/Typography/Title/Title.d.ts +14 -0
- package/dist/components/Typography/Title/Title.stories.d.ts +35 -0
- package/dist/components/Typography/Title/Title.test.d.ts +1 -0
- package/dist/components/icons/Activity.d.ts +3 -0
- package/dist/components/icons/ArrowDown.d.ts +3 -0
- package/dist/components/icons/ArrowRight.d.ts +3 -0
- package/dist/components/icons/ArrowTriangle.d.ts +3 -0
- package/dist/components/icons/ArrowUp.d.ts +3 -0
- package/dist/components/icons/Backups.d.ts +3 -0
- package/dist/components/icons/Blog.d.ts +3 -0
- package/dist/components/icons/Book.d.ts +3 -0
- package/dist/components/icons/Brackets.d.ts +3 -0
- package/dist/components/icons/Briefcase.d.ts +3 -0
- package/dist/components/icons/Building.d.ts +3 -0
- package/dist/components/icons/BurgerMenu.d.ts +3 -0
- package/dist/components/icons/Cards.d.ts +3 -0
- package/dist/components/icons/CellTower.d.ts +3 -0
- package/dist/components/icons/ChatIcon.d.ts +3 -0
- package/dist/components/icons/CheckIcon.d.ts +3 -0
- package/dist/components/icons/CheckInCircle.d.ts +3 -0
- package/dist/components/icons/ChevronDown.d.ts +2 -0
- package/dist/components/icons/ChevronLeft.d.ts +3 -0
- package/dist/components/icons/ChevronRight.d.ts +2 -0
- package/dist/components/icons/ChevronUp.d.ts +3 -0
- package/dist/components/icons/Clock.d.ts +3 -0
- package/dist/components/icons/Cloud.d.ts +3 -0
- package/dist/components/icons/Code.d.ts +3 -0
- package/dist/components/icons/CodeInSquare.d.ts +3 -0
- package/dist/components/icons/Connect.d.ts +3 -0
- package/dist/components/icons/ConnectAlt.d.ts +3 -0
- package/dist/components/icons/Console.d.ts +3 -0
- package/dist/components/icons/Copy.d.ts +3 -0
- package/dist/components/icons/CrossIcon.d.ts +3 -0
- package/dist/components/icons/Data.d.ts +3 -0
- package/dist/components/icons/DatabaseIcon.d.ts +3 -0
- package/dist/components/icons/Disk.d.ts +3 -0
- package/dist/components/icons/Display.d.ts +3 -0
- package/dist/components/icons/Document.d.ts +3 -0
- package/dist/components/icons/DotsHorizontal.d.ts +3 -0
- package/dist/components/icons/DotsVertical.d.ts +3 -0
- package/dist/components/icons/Email.d.ts +3 -0
- package/dist/components/icons/Empty.d.ts +3 -0
- package/dist/components/icons/FilterIcon.d.ts +3 -0
- package/dist/components/icons/Fire.d.ts +3 -0
- package/dist/components/icons/Flags/EuropeanUnion.d.ts +3 -0
- package/dist/components/icons/Flags/Germany.d.ts +3 -0
- package/dist/components/icons/Flags/India.d.ts +3 -0
- package/dist/components/icons/Flags/Ireland.d.ts +3 -0
- package/dist/components/icons/Flags/Netherlands.d.ts +3 -0
- package/dist/components/icons/Flags/Singapore.d.ts +2 -0
- package/dist/components/icons/Flags/UnitedKingdom.d.ts +3 -0
- package/dist/components/icons/Flags/UnitedStates.d.ts +3 -0
- package/dist/components/icons/Flags/index.d.ts +6 -0
- package/dist/components/icons/Folder.d.ts +3 -0
- package/dist/components/icons/Gift.d.ts +3 -0
- package/dist/components/icons/HistoryIcon.d.ts +3 -0
- package/dist/components/icons/Home.d.ts +3 -0
- package/dist/components/icons/Http.d.ts +3 -0
- package/dist/components/icons/InfoInCircleIcon.d.ts +3 -0
- package/dist/components/icons/InformationIcon.d.ts +3 -0
- package/dist/components/icons/InsertRowIcon.d.ts +3 -0
- package/dist/components/icons/Integrations.d.ts +3 -0
- package/dist/components/icons/LightBulb.d.ts +3 -0
- package/dist/components/icons/Lightening.d.ts +3 -0
- package/dist/components/icons/Loading.d.ts +3 -0
- package/dist/components/icons/Metrics.d.ts +3 -0
- package/dist/components/icons/MetricsAlt.d.ts +3 -0
- package/dist/components/icons/Payment.d.ts +3 -0
- package/dist/components/icons/Payments/Amex.d.ts +3 -0
- package/dist/components/icons/Payments/MasterCard.d.ts +3 -0
- package/dist/components/icons/Payments/Paypal.d.ts +3 -0
- package/dist/components/icons/Payments/Visa.d.ts +3 -0
- package/dist/components/icons/Payments/index.d.ts +6 -0
- package/dist/components/icons/Pencil.d.ts +3 -0
- package/dist/components/icons/PieChart.d.ts +3 -0
- package/dist/components/icons/Play.d.ts +3 -0
- package/dist/components/icons/Plus.d.ts +3 -0
- package/dist/components/icons/Popout.d.ts +3 -0
- package/dist/components/icons/PopoverArrow.d.ts +3 -0
- package/dist/components/icons/Question.d.ts +3 -0
- package/dist/components/icons/Refresh.d.ts +3 -0
- package/dist/components/icons/Search.d.ts +3 -0
- package/dist/components/icons/Secure.d.ts +3 -0
- package/dist/components/icons/Services.d.ts +3 -0
- package/dist/components/icons/Settings.d.ts +3 -0
- package/dist/components/icons/Share.d.ts +3 -0
- package/dist/components/icons/SlideIn.d.ts +3 -0
- package/dist/components/icons/SlideOut.d.ts +3 -0
- package/dist/components/icons/SortAltIcon.d.ts +3 -0
- package/dist/components/icons/SortIcon.d.ts +3 -0
- package/dist/components/icons/Sparkle.d.ts +3 -0
- package/dist/components/icons/Speaker.d.ts +3 -0
- package/dist/components/icons/Speed.d.ts +3 -0
- package/dist/components/icons/Star.d.ts +3 -0
- package/dist/components/icons/Support.d.ts +3 -0
- package/dist/components/icons/Table.d.ts +3 -0
- package/dist/components/icons/Taxi.d.ts +3 -0
- package/dist/components/icons/Trash.d.ts +3 -0
- package/dist/components/icons/Upload.d.ts +3 -0
- package/dist/components/icons/Url.d.ts +3 -0
- package/dist/components/icons/UserIcon.d.ts +2 -0
- package/dist/components/icons/UsersIcon.d.ts +2 -0
- package/dist/components/icons/WarningIcon.d.ts +3 -0
- package/dist/components/index.d.ts +24 -0
- package/dist/components/types.d.ts +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.cjs +442 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +16474 -0
- package/dist/logo.svg +17 -0
- package/dist/main.d.ts +0 -0
- package/dist/styles/types.d.ts +2087 -0
- package/dist/styles/variables.classic.json.d.ts +204 -0
- package/dist/styles/variables.dark.json.d.ts +896 -0
- package/dist/styles/variables.json.d.ts +2089 -0
- package/dist/styles/variables.light.json.d.ts +951 -0
- package/dist/theme/index.d.ts +10 -0
- package/dist/theme/theme.d.ts +6 -0
- package/dist/vite.svg +1 -0
- package/package.json +4 -3
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RightArrow: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const S3Logo: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconName } from '../../components/Icon/types';
|
|
3
|
+
type Size = "small" | "medium" | "large";
|
|
4
|
+
export interface AccordionProps extends SizeProp {
|
|
5
|
+
title: string;
|
|
6
|
+
icon?: IconName;
|
|
7
|
+
iconSize?: Size;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
interface SizeProp {
|
|
11
|
+
size?: Size;
|
|
12
|
+
}
|
|
13
|
+
declare const SidebarAccordion: import("styled-components").IStyledComponent<"web", {
|
|
14
|
+
title: string;
|
|
15
|
+
icon?: IconName | undefined;
|
|
16
|
+
iconSize?: Size | undefined;
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
size?: Size | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
declare const AccordionToExport: import("styled-components").IStyledComponent<"web", {
|
|
21
|
+
title: string;
|
|
22
|
+
icon?: IconName | undefined;
|
|
23
|
+
iconSize?: Size | undefined;
|
|
24
|
+
children: React.ReactNode;
|
|
25
|
+
size?: Size | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export { AccordionToExport as Accordion, SidebarAccordion };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
component: import("styled-components").IStyledComponent<"web", {
|
|
4
|
+
title: string;
|
|
5
|
+
icon?: import("../Icon/types").IconName | undefined;
|
|
6
|
+
iconSize?: ("small" | "medium" | "large") | undefined;
|
|
7
|
+
children: import("react").ReactNode;
|
|
8
|
+
size?: ("small" | "medium" | "large") | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
title: string;
|
|
11
|
+
tags: string[];
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
export declare const Playground: {
|
|
15
|
+
args: {
|
|
16
|
+
title: string;
|
|
17
|
+
theme: string;
|
|
18
|
+
size: string;
|
|
19
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type AlertSize = "small" | "medium";
|
|
2
|
+
type AlertState = "neutral" | "success" | "warning" | "danger" | "info";
|
|
3
|
+
export type AlertProps = {
|
|
4
|
+
state?: AlertState;
|
|
5
|
+
title?: string;
|
|
6
|
+
text: string;
|
|
7
|
+
size?: AlertSize;
|
|
8
|
+
showIcon?: boolean;
|
|
9
|
+
dismissible?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const Alert: ({ text, title, size, state, showIcon, dismissible, ...delegated }: AlertProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
declare const DangerAlert: (props: AlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const InfoAlert: (props: AlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const SuccessAlert: (props: AlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare const WarningAlert: (props: AlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export { Alert, DangerAlert, InfoAlert, SuccessAlert, WarningAlert };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: ({ text, title, size, state, showIcon, dismissible, ...delegated }: import('../../components/Alert/Alert').AlertProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
title: string;
|
|
4
|
+
tags: string[];
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Playground: {
|
|
8
|
+
args: {
|
|
9
|
+
state: string;
|
|
10
|
+
text: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: ({ text, textSize, ...delegated }: import("./Avatar").AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
title: string;
|
|
4
|
+
tags: string[];
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Playground: {
|
|
8
|
+
args: {
|
|
9
|
+
text: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type BadgeState = "default" | "success" | "neutral" | "danger" | "disabled" | "warning" | "info";
|
|
2
|
+
export type BadgeSize = "sm" | "md";
|
|
3
|
+
export interface BadgeProps {
|
|
4
|
+
text: string;
|
|
5
|
+
state?: BadgeState;
|
|
6
|
+
size?: BadgeSize;
|
|
7
|
+
}
|
|
8
|
+
export interface DismissibleBadge extends BadgeProps {
|
|
9
|
+
dismissible: true;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface NonDismissibleBadge extends BadgeProps {
|
|
13
|
+
dismissible?: never;
|
|
14
|
+
onClose?: never;
|
|
15
|
+
}
|
|
16
|
+
export declare const Badge: ({ text, state, size, dismissible, onClose, }: NonDismissibleBadge | DismissibleBadge) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: ({ text, state, size, dismissible, onClose, }: import("./Badge").DismissibleBadge | import("./Badge").NonDismissibleBadge) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
title: string;
|
|
4
|
+
tags: string[];
|
|
5
|
+
argTypes: {
|
|
6
|
+
size: {
|
|
7
|
+
options: string[];
|
|
8
|
+
control: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
state: {
|
|
13
|
+
options: string[];
|
|
14
|
+
control: {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
dismissible: {
|
|
19
|
+
options: boolean[];
|
|
20
|
+
control: {
|
|
21
|
+
type: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default _default;
|
|
27
|
+
export declare const Playground: {
|
|
28
|
+
args: {
|
|
29
|
+
text: string;
|
|
30
|
+
state: string;
|
|
31
|
+
size: string;
|
|
32
|
+
dismissible: boolean;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type bigStatState = "default";
|
|
3
|
+
export type bigStatSize = "sm" | "lg";
|
|
4
|
+
export interface BigStatProps {
|
|
5
|
+
label: React.ReactNode;
|
|
6
|
+
title: React.ReactNode;
|
|
7
|
+
state?: bigStatState;
|
|
8
|
+
size?: bigStatSize;
|
|
9
|
+
}
|
|
10
|
+
export declare const BigStat: ({ label, title, size, state, }: BigStatProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: ({ label, title, size, state, }: import("./BigStat").BigStatProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
title: string;
|
|
4
|
+
tags: string[];
|
|
5
|
+
size: {
|
|
6
|
+
options: string[];
|
|
7
|
+
control: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
export declare const Playground: {
|
|
14
|
+
args: {
|
|
15
|
+
label: string;
|
|
16
|
+
title: string;
|
|
17
|
+
state: string;
|
|
18
|
+
size: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconName } from '../../components/Icon/types';
|
|
3
|
+
type ButtonType = "primary" | "secondary" | "danger";
|
|
4
|
+
type Alignment = "center" | "left";
|
|
5
|
+
export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
type?: ButtonType;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
label?: string;
|
|
9
|
+
iconLeft?: IconName;
|
|
10
|
+
iconRight?: IconName;
|
|
11
|
+
align?: Alignment;
|
|
12
|
+
width?: string;
|
|
13
|
+
height?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface StyledButtonProps {
|
|
16
|
+
styleType: ButtonType;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
align?: Alignment;
|
|
19
|
+
width?: string;
|
|
20
|
+
height?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const Button: ({ type, iconLeft, iconRight, label, align, children, ...delegated }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: ({ type, iconLeft, iconRight, label, align, children, ...delegated }: import("./Button").ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
tags: string[];
|
|
5
|
+
argTypes: {
|
|
6
|
+
type: {
|
|
7
|
+
options: string[];
|
|
8
|
+
control: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
align: {
|
|
13
|
+
options: string[];
|
|
14
|
+
control: {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
export declare const Playground: {
|
|
22
|
+
args: {
|
|
23
|
+
type: string;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
label: string;
|
|
26
|
+
align: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: ({ labels, activeIndex, onClick, }: import("./ButtonGroup").ButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
title: string;
|
|
4
|
+
tags: string[];
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Playground: {
|
|
8
|
+
args: {
|
|
9
|
+
labels: string[];
|
|
10
|
+
activeIndex: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type CardState = "active" | "disabled";
|
|
2
|
+
export interface CardProps {
|
|
3
|
+
title: string;
|
|
4
|
+
badgeText: string;
|
|
5
|
+
description: string;
|
|
6
|
+
infoUrl: string;
|
|
7
|
+
infoText: string;
|
|
8
|
+
state?: CardState;
|
|
9
|
+
}
|
|
10
|
+
export declare const Card: ({ title, badgeText, description, infoUrl, infoText, state, }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: ({ title, badgeText, description, infoUrl, infoText, state, }: import("./Card").CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
title: string;
|
|
4
|
+
tags: string[];
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Playground: {
|
|
8
|
+
args: {
|
|
9
|
+
title: string;
|
|
10
|
+
badgeText: string;
|
|
11
|
+
description: string;
|
|
12
|
+
infoUrl: string;
|
|
13
|
+
infoText: string;
|
|
14
|
+
state: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as RadixCheckbox from "@radix-ui/react-checkbox";
|
|
2
|
+
export interface CheckboxProps extends RadixCheckbox.CheckboxProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const Checkbox: ({ id, label, ...delegated }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: ({ checked, ...props }: {
|
|
3
|
+
checked: "checked" | "default" | "unchecked";
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
label?: string | undefined;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
title: string;
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
checked: {
|
|
11
|
+
control: string;
|
|
12
|
+
options: string[];
|
|
13
|
+
};
|
|
14
|
+
disabled: {
|
|
15
|
+
control: string;
|
|
16
|
+
};
|
|
17
|
+
label: {
|
|
18
|
+
control: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
23
|
+
export declare const Playground: {
|
|
24
|
+
args: {
|
|
25
|
+
label: string;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
checked: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as RightMenu from "@radix-ui/react-context-menu";
|
|
2
|
+
export declare const ContextMenu: {
|
|
3
|
+
(props: RightMenu.ContextMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
Trigger: {
|
|
5
|
+
(props: RightMenu.ContextMenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
SubTrigger: {
|
|
9
|
+
({ children, ...props }: RightMenu.ContextMenuSubTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
Content: {
|
|
13
|
+
({ sub, children, showArrow, ...props }: ContextMenuContentProps | ContextMenuSubContentProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
Group: {
|
|
17
|
+
(props: RightMenu.ContextMenuGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
Sub: {
|
|
21
|
+
({ ...props }: RightMenu.ContextMenuGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
Item: {
|
|
25
|
+
({ ...props }: RightMenu.ContextMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type ArrowProps = {
|
|
30
|
+
showArrow?: boolean;
|
|
31
|
+
};
|
|
32
|
+
type ContextMenuContentProps = RightMenu.MenuContentProps & {
|
|
33
|
+
sub?: true;
|
|
34
|
+
} & ArrowProps;
|
|
35
|
+
type ContextMenuSubContentProps = RightMenu.MenuSubContentProps & {
|
|
36
|
+
sub?: never;
|
|
37
|
+
} & ArrowProps;
|
|
38
|
+
export default ContextMenu;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ContextMenuProps } from "@radix-ui/react-context-menu";
|
|
2
|
+
interface Props extends ContextMenuProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
showArrow?: boolean;
|
|
5
|
+
side: "top" | "right" | "left" | "bottom";
|
|
6
|
+
}
|
|
7
|
+
declare const _default: {
|
|
8
|
+
component: ({ showArrow, disabled, side, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
title: string;
|
|
10
|
+
tags: string[];
|
|
11
|
+
argTypes: {
|
|
12
|
+
disabled: {
|
|
13
|
+
control: string;
|
|
14
|
+
};
|
|
15
|
+
showArrow: {
|
|
16
|
+
control: string;
|
|
17
|
+
};
|
|
18
|
+
side: {
|
|
19
|
+
control: string;
|
|
20
|
+
options: string[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
25
|
+
export declare const Playground: {
|
|
26
|
+
args: {
|
|
27
|
+
showArrow: boolean;
|
|
28
|
+
side: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
2
|
+
export declare const Dropdown: {
|
|
3
|
+
(props: DropdownMenu.DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
Trigger: {
|
|
5
|
+
({ sub, ...props }: DropdownSubTriggerProps | DropdownTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
Content: {
|
|
9
|
+
({ sub, children, showArrow, ...props }: DropdownContentProps | DropdownSubContentProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
Group: {
|
|
13
|
+
(props: DropdownMenu.DropdownMenuGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
Sub: {
|
|
17
|
+
({ ...props }: DropdownMenu.DropdownMenuGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
Item: {
|
|
21
|
+
({ ...props }: DropdownMenu.DropdownMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
interface SubDropdownProps {
|
|
26
|
+
sub?: true;
|
|
27
|
+
}
|
|
28
|
+
interface MainDropdownProps {
|
|
29
|
+
sub?: never;
|
|
30
|
+
}
|
|
31
|
+
type DropdownSubTriggerProps = DropdownMenu.DropdownMenuSubTriggerProps & SubDropdownProps;
|
|
32
|
+
type DropdownTriggerProps = DropdownMenu.DropdownMenuTriggerProps & MainDropdownProps;
|
|
33
|
+
export type ArrowProps = {
|
|
34
|
+
showArrow?: boolean;
|
|
35
|
+
};
|
|
36
|
+
type DropdownContentProps = DropdownMenu.MenuContentProps & SubDropdownProps & ArrowProps;
|
|
37
|
+
type DropdownSubContentProps = DropdownMenu.MenuSubContentProps & MainDropdownProps & ArrowProps;
|
|
38
|
+
export default Dropdown;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DropdownMenuProps } from "@radix-ui/react-dropdown-menu";
|
|
2
|
+
interface Props extends DropdownMenuProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
showArrow?: boolean;
|
|
5
|
+
side: "top" | "right" | "left" | "bottom";
|
|
6
|
+
}
|
|
7
|
+
declare const _default: {
|
|
8
|
+
component: ({ showArrow, disabled, side, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
title: string;
|
|
10
|
+
tags: string[];
|
|
11
|
+
argTypes: {
|
|
12
|
+
disabled: {
|
|
13
|
+
control: string;
|
|
14
|
+
};
|
|
15
|
+
open: {
|
|
16
|
+
control: string;
|
|
17
|
+
options: (boolean | undefined)[];
|
|
18
|
+
};
|
|
19
|
+
defaultOpen: {
|
|
20
|
+
control: string;
|
|
21
|
+
};
|
|
22
|
+
showArrow: {
|
|
23
|
+
control: string;
|
|
24
|
+
};
|
|
25
|
+
side: {
|
|
26
|
+
control: string;
|
|
27
|
+
options: string[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
export declare const Playground: {
|
|
33
|
+
args: {
|
|
34
|
+
side: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
export interface LabelProps extends HTMLAttributes<HTMLLabelElement> {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
error?: boolean;
|
|
5
|
+
htmlFor?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Label: ({ disabled, error, children, ...props }: LabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: ({ disabled, error, text, }: {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
error: boolean;
|
|
5
|
+
text: string;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
title: string;
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
disabled: {
|
|
11
|
+
control: string;
|
|
12
|
+
};
|
|
13
|
+
error: {
|
|
14
|
+
control: string;
|
|
15
|
+
};
|
|
16
|
+
text: {
|
|
17
|
+
control: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
22
|
+
export declare const Default: {
|
|
23
|
+
args: {
|
|
24
|
+
text: string;
|
|
25
|
+
error: boolean;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import * as RadixPopover from "@radix-ui/react-popover";
|
|
3
|
+
interface Props extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
error?: ReactNode;
|
|
8
|
+
showSearch?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
onChange?: (value: string) => void;
|
|
12
|
+
name?: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
isFormControl?: boolean;
|
|
15
|
+
value?: string;
|
|
16
|
+
}
|
|
17
|
+
declare type DivProps = HTMLAttributes<HTMLDivElement>;
|
|
18
|
+
export type SelectProps = RadixPopover.PopoverProps & Props;
|
|
19
|
+
export declare const Select: {
|
|
20
|
+
({ placeholder, label, children, disabled, id, error, value, defaultValue, onChange, open, defaultOpen, onOpenChange, name, required, isFormControl, showSearch, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
Group: import("react").ForwardRefExoticComponent<GroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
Item: import("react").ForwardRefExoticComponent<ItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
|
+
NoData: {
|
|
24
|
+
({ children, onClick, ...props }: SelectNoDataProps): ReactNode;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
interface GroupProps extends Omit<DivProps, "value" | "heading"> {
|
|
29
|
+
heading?: ReactNode;
|
|
30
|
+
value?: string;
|
|
31
|
+
}
|
|
32
|
+
interface ItemProps extends Omit<DivProps, "disabled" | "onSelect" | "value"> {
|
|
33
|
+
separator?: boolean;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
onSelect?: (value: string) => void;
|
|
36
|
+
value?: string;
|
|
37
|
+
}
|
|
38
|
+
type SelectNoDataProps = Omit<HTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
39
|
+
children?: (props: {
|
|
40
|
+
search: string;
|
|
41
|
+
}) => ReactNode;
|
|
42
|
+
};
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { SelectProps } from "./Select";
|
|
2
|
+
interface Props extends SelectProps {
|
|
3
|
+
clickableNoData?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: {
|
|
6
|
+
component: ({ clickableNoData, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
title: string;
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
label: {
|
|
11
|
+
control: string;
|
|
12
|
+
};
|
|
13
|
+
disabled: {
|
|
14
|
+
control: string;
|
|
15
|
+
};
|
|
16
|
+
error: {
|
|
17
|
+
control: string;
|
|
18
|
+
};
|
|
19
|
+
value: {
|
|
20
|
+
control: string;
|
|
21
|
+
};
|
|
22
|
+
defaultValue: {
|
|
23
|
+
control: string;
|
|
24
|
+
};
|
|
25
|
+
open: {
|
|
26
|
+
control: string;
|
|
27
|
+
options: (boolean | undefined)[];
|
|
28
|
+
};
|
|
29
|
+
defaultOpen: {
|
|
30
|
+
control: string;
|
|
31
|
+
};
|
|
32
|
+
name: {
|
|
33
|
+
control: string;
|
|
34
|
+
};
|
|
35
|
+
required: {
|
|
36
|
+
control: string;
|
|
37
|
+
};
|
|
38
|
+
showSearch: {
|
|
39
|
+
control: string;
|
|
40
|
+
};
|
|
41
|
+
isFormCotrol: {
|
|
42
|
+
control: string;
|
|
43
|
+
};
|
|
44
|
+
clickableNoData: {
|
|
45
|
+
control: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default _default;
|
|
50
|
+
export declare const Playground: {
|
|
51
|
+
args: {
|
|
52
|
+
label: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
File without changes
|