@clickhouse/click-ui 0.0.4 → 0.0.6
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/click-ui.es.js +8949 -8303
- package/dist/click-ui.umd.js +192 -133
- 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/CardPrimary/CardPrimary.d.ts +12 -0
- package/dist/components/CardPrimary/CardPrimary.stories.d.ts +18 -0
- package/dist/components/CardPrimary/CardPrimary.test.d.ts +1 -0
- package/dist/components/CardSecondary/CardSecondary.d.ts +14 -0
- package/dist/components/CardSecondary/CardSecondary.stories.d.ts +27 -0
- package/dist/components/CardSecondary/CardSecondary.test.d.ts +1 -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/FileTabs/FileTabs.d.ts +39 -0
- package/dist/components/FileTabs/FileTabs.stories.d.ts +23 -0
- package/dist/components/FileTabs/FileTabs.test.d.ts +0 -0
- package/dist/components/FormField/Input/InputWrapper.d.ts +797 -0
- package/dist/components/FormField/Input/NumberField.d.ts +8 -0
- package/dist/components/FormField/Input/NumberField.stories.d.ts +34 -0
- package/dist/components/FormField/Input/PasswordField.d.ts +8 -0
- package/dist/components/FormField/Input/PasswordField.stories.d.ts +34 -0
- package/dist/components/FormField/Input/SearchField.d.ts +9 -0
- package/dist/components/FormField/Input/SearchField.stories.d.ts +37 -0
- package/dist/components/FormField/Input/TextField.d.ts +10 -0
- package/dist/components/FormField/Input/TextField.stories.d.ts +43 -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/FormField/useSelect.d.ts +8 -0
- package/dist/components/GenericMenu.d.ts +763 -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 +483 -0
- package/dist/components/Icon/Icon.stories.d.ts +494 -0
- package/dist/components/Icon/IconCommon.d.ts +90 -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/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 +19 -0
- package/dist/components/Typography/Text/Text.stories.d.ts +29 -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/Eye.d.ts +3 -0
- package/dist/components/icons/EyeClosed.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 +3 -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 +31 -0
- package/dist/components/types.d.ts +51 -0
- package/dist/index.d.ts +2 -0
- package/dist/main.d.ts +0 -0
- package/dist/styles/types.d.ts +2249 -0
- package/dist/styles/variables.classic.json.d.ts +258 -0
- package/dist/styles/variables.dark.json.d.ts +946 -0
- package/dist/styles/variables.json.d.ts +2251 -0
- package/dist/styles/variables.light.json.d.ts +998 -0
- package/dist/theme/index.d.ts +10 -0
- package/dist/theme/theme.d.ts +6 -0
- package/dist/utils/mergeRefs.d.ts +2 -0
- package/package.json +5 -3
|
@@ -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("..").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").NonDismissibleBadge | import("./Badge").DismissibleBadge) => 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,12 @@
|
|
|
1
|
+
import { IconName } from '../../components/Icon/types';
|
|
2
|
+
export interface CardPrimaryProps {
|
|
3
|
+
title: string;
|
|
4
|
+
icon: IconName;
|
|
5
|
+
hasShadow?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
description: string;
|
|
8
|
+
infoUrl: string;
|
|
9
|
+
infoText: string;
|
|
10
|
+
size?: "sm" | "md";
|
|
11
|
+
}
|
|
12
|
+
export declare const CardPrimary: ({ title, icon, hasShadow, description, infoUrl, infoText, size, disabled, }: CardPrimaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: ({ title, icon, hasShadow, description, infoUrl, infoText, size, disabled, }: import("./CardPrimary").CardPrimaryProps) => 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
|
+
icon: string;
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
infoUrl: string;
|
|
13
|
+
infoText: string;
|
|
14
|
+
hasShadow: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
size: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IconName } from '../../components/Icon/types';
|
|
2
|
+
export type BadgeState = "default" | "success" | "neutral" | "danger" | "disabled" | "warning" | "info";
|
|
3
|
+
export interface CardSecondaryProps {
|
|
4
|
+
title: string;
|
|
5
|
+
icon: IconName;
|
|
6
|
+
badgeState?: BadgeState;
|
|
7
|
+
hasShadow?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
badgeText?: string;
|
|
10
|
+
description: string;
|
|
11
|
+
infoUrl: string;
|
|
12
|
+
infoText: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const CardSecondary: ({ title, icon, badgeState, badgeText, hasShadow, disabled, description, infoUrl, infoText, }: CardSecondaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: ({ title, icon, badgeState, badgeText, hasShadow, disabled, description, infoUrl, infoText, }: import("./CardSecondary").CardSecondaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
title: string;
|
|
4
|
+
tags: string[];
|
|
5
|
+
argTypes: {
|
|
6
|
+
badgeState: {
|
|
7
|
+
options: string[];
|
|
8
|
+
control: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
export declare const Playground: {
|
|
16
|
+
args: {
|
|
17
|
+
title: string;
|
|
18
|
+
icon: string;
|
|
19
|
+
description: string;
|
|
20
|
+
infoUrl: string;
|
|
21
|
+
infoText: string;
|
|
22
|
+
hasShadow: boolean;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
badgeText: string;
|
|
25
|
+
badgeState: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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: "default" | "checked" | "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,39 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactElement, RefObject, ReactNode } from "react";
|
|
2
|
+
import { IconName } from "../Icon/types";
|
|
3
|
+
export type StatusType = "default" | "success" | "neutral" | "danger" | "warning" | "info";
|
|
4
|
+
interface ContextProps {
|
|
5
|
+
selected?: string;
|
|
6
|
+
list: Array<string>;
|
|
7
|
+
updateOrder: (order: number) => void;
|
|
8
|
+
dragElementContainer: RefObject<HTMLDivElement>;
|
|
9
|
+
onSelect: (value: string) => void;
|
|
10
|
+
onClose: (value: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const TabContext: import("react").Context<ContextProps>;
|
|
13
|
+
interface TabProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
value: string;
|
|
16
|
+
status?: StatusType;
|
|
17
|
+
icon?: IconName | ReactNode;
|
|
18
|
+
text: string;
|
|
19
|
+
testId?: string;
|
|
20
|
+
}
|
|
21
|
+
interface Props extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "onClose" | "onSelect"> {
|
|
22
|
+
selected?: string;
|
|
23
|
+
children: ReactElement<TabProps> | Array<ReactElement<TabProps>>;
|
|
24
|
+
onReorderTab: (props: {
|
|
25
|
+
sourcePosition: number;
|
|
26
|
+
destinationPosition: number;
|
|
27
|
+
sourceValue: string;
|
|
28
|
+
}) => void;
|
|
29
|
+
onClose: (value: string, index: number) => void;
|
|
30
|
+
onSelect: (value: string, index: number) => void;
|
|
31
|
+
}
|
|
32
|
+
export declare const FileTabs: {
|
|
33
|
+
({ selected, children, onReorderTab, onMouseLeave: onMouseLeaveProp, onClose: onCloseProp, onSelect: onSelectProp, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
Tab: {
|
|
35
|
+
({ text, value, icon, onMouseDown: onMouseDownProp, status, testId, ...props }: TabProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StatusType } from "./FileTabs";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
component: ({ selected: selectedProp, status, }: {
|
|
4
|
+
selected: string;
|
|
5
|
+
status: StatusType;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
title: string;
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
selected: {
|
|
11
|
+
control: string;
|
|
12
|
+
options: string[];
|
|
13
|
+
};
|
|
14
|
+
status: {
|
|
15
|
+
control: string;
|
|
16
|
+
options: string[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
export declare const Playground: {
|
|
22
|
+
args: {};
|
|
23
|
+
};
|
|
File without changes
|