@clickhouse/click-ui 0.0.30 → 0.0.32
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/click-ui.es.js +11652 -9247
- package/dist/click-ui.umd.js +229 -269
- package/dist/components/Badge/Badge.d.ts +11 -6
- package/dist/components/CardPrimary/CardPrimary.d.ts +4 -3
- package/dist/components/EllipsisContent/EllipsisContent.d.ts +2 -0
- package/dist/components/Icon/IconCommon.d.ts +1 -0
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconWrapper/IconWrapper.d.ts +12 -0
- package/dist/components/Logos/AWSMsk.d.ts +3 -0
- package/dist/components/Logos/types.d.ts +1 -1
- package/dist/components/Panel/Panel.d.ts +8 -7
- package/dist/components/Select/MultiSelect.d.ts +13 -0
- package/dist/components/Select/MultiSelectValue.d.ts +11 -0
- package/dist/components/Select/SingleSelect.d.ts +13 -0
- package/dist/components/Select/SingleSelectValue.d.ts +6 -0
- package/dist/components/Select/common/InternalSelect.d.ts +5 -0
- package/dist/components/Select/common/OptionContext.d.ts +13 -0
- package/dist/components/Select/common/SelectStyled.d.ts +2226 -0
- package/dist/components/Select/common/types.d.ts +74 -0
- package/dist/components/Select/common/useOption.d.ts +11 -0
- package/dist/components/Select/selectOptions.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +3 -2
- package/dist/components/Typography/Title/Title.d.ts +1 -1
- package/dist/components/commonElement.d.ts +272 -0
- package/dist/components/icons/PlayInCircle.d.ts +3 -0
- package/dist/components/index.d.ts +5 -1
- package/dist/components/types.d.ts +4 -1
- package/dist/styles/variables.classic.json.d.ts +3 -3
- package/dist/styles/variables.dark.json.d.ts +3 -3
- package/dist/styles/variables.json.d.ts +3 -3
- package/dist/styles/variables.light.json.d.ts +3 -3
- package/package.json +5 -3
- package/dist/components/Select/Select.d.ts +0 -43
- package/dist/components/Select/SelectContext.d.ts +0 -24
- package/dist/components/Select/useSelect.d.ts +0 -8
|
@@ -1,16 +1,21 @@
|
|
|
1
|
+
import { HorizontalDirection, IconName } from '../../components';
|
|
2
|
+
import { HTMLAttributes, MouseEvent, ReactNode } from "react";
|
|
1
3
|
export type BadgeState = "default" | "success" | "neutral" | "danger" | "disabled" | "warning" | "info";
|
|
2
4
|
export type BadgeSize = "sm" | "md";
|
|
3
|
-
export interface
|
|
4
|
-
text:
|
|
5
|
+
export interface CommonBadgeProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
text: ReactNode;
|
|
5
7
|
state?: BadgeState;
|
|
6
8
|
size?: BadgeSize;
|
|
9
|
+
icon?: IconName;
|
|
10
|
+
iconDir?: HorizontalDirection;
|
|
7
11
|
}
|
|
8
|
-
export interface DismissibleBadge extends
|
|
12
|
+
export interface DismissibleBadge extends CommonBadgeProps {
|
|
9
13
|
dismissible: true;
|
|
10
|
-
onClose: () => void;
|
|
14
|
+
onClose: (e: MouseEvent<HTMLOrSVGElement>) => void;
|
|
11
15
|
}
|
|
12
|
-
export interface NonDismissibleBadge extends
|
|
16
|
+
export interface NonDismissibleBadge extends CommonBadgeProps {
|
|
13
17
|
dismissible?: never;
|
|
14
18
|
onClose?: never;
|
|
15
19
|
}
|
|
16
|
-
export
|
|
20
|
+
export type BadgeProps = NonDismissibleBadge | DismissibleBadge;
|
|
21
|
+
export declare const Badge: ({ icon, iconDir, text, state, size, dismissible, onClose, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconName } from '../../components';
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
export interface CardPrimaryProps {
|
|
2
|
+
import { HTMLAttributes, MouseEventHandler, ReactNode } from "react";
|
|
3
|
+
export interface CardPrimaryProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
title: string;
|
|
5
5
|
icon: IconName;
|
|
6
6
|
hasShadow?: boolean;
|
|
@@ -9,5 +9,6 @@ export interface CardPrimaryProps {
|
|
|
9
9
|
infoUrl?: string;
|
|
10
10
|
infoText?: string;
|
|
11
11
|
size?: "sm" | "md";
|
|
12
|
+
onButtonClick?: MouseEventHandler<HTMLElement>;
|
|
12
13
|
}
|
|
13
|
-
export declare const CardPrimary: ({ title, icon, hasShadow, description, infoUrl, infoText, size, disabled, }: CardPrimaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const CardPrimary: ({ title, icon, hasShadow, description, infoUrl, infoText, size, disabled, onButtonClick, ...props }: CardPrimaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1032,6 +1032,7 @@ export declare const ICONS_MAP: {
|
|
|
1032
1032
|
pencil: (props: import("react").SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
1033
1033
|
"pie-chart": (props: import("react").SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
1034
1034
|
play: (props: import("react").SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
1035
|
+
"play-in-circle": (props: import("react").SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
1035
1036
|
plus: (props: import("react").SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
1036
1037
|
popout: (props: import("react").SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
1037
1038
|
query: (props: import("react").SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { FlagName, FlagProps } from "../icons/Flags";
|
|
|
4
4
|
import { LogoName } from "../Logos/types";
|
|
5
5
|
import { PaymentName, PaymentProps } from "../icons/Payments";
|
|
6
6
|
export type IconSize = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
7
|
-
export type IconName = "activity" | "arrow-down" | "arrow-right" | "arrow-triangle" | "arrow-directions" | "arrow-up" | "auth-app" | "auth-sms" | "backups" | "blog" | "book" | "brackets" | "briefcase" | "building" | "burger-menu" | "cards" | "cell-tower" | "chat" | "check" | "check-in-circle" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "cloud" | "code" | "code-in-square" | "connect" | "connect-alt" | "console" | "copy" | "cross" | "data" | "database" | "disk" | "display" | "document" | "dots-horizontal" | "dots-triangle" | "dots-vertical" | "download" | "download-in-circle" | "email" | "empty" | "eye" | "eye-closed" | "filter" | "fire" | "folder-closed" | "folder-open" | "gift" | "history" | "home" | "http" | "info-in-circle" | "information" | "insert-row" | "integrations" | "key" | "keys" | "light-bulb" | "lightening" | "loading" | "loading-animated" | "metrics" | "metrics-alt" | "payment" | "pencil" | "pie-chart" | "play" | "plus" | "popout" | "query" | "question" | "refresh" | "search" | "secure" | "services" | "settings" | "share" | "share-arrow" | "slide-in" | "slide-out" | "sort-alt" | "sort" | "sparkle" | "speaker" | "speed" | "star" | "support" | "table" | "taxi" | "trash" | "upload" | "url" | "user" | "users" | "warning" | "waves";
|
|
7
|
+
export type IconName = "activity" | "arrow-down" | "arrow-right" | "arrow-triangle" | "arrow-directions" | "arrow-up" | "auth-app" | "auth-sms" | "backups" | "blog" | "book" | "brackets" | "briefcase" | "building" | "burger-menu" | "cards" | "cell-tower" | "chat" | "check" | "check-in-circle" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "cloud" | "code" | "code-in-square" | "connect" | "connect-alt" | "console" | "copy" | "cross" | "data" | "database" | "disk" | "display" | "document" | "dots-horizontal" | "dots-triangle" | "dots-vertical" | "download" | "download-in-circle" | "email" | "empty" | "eye" | "eye-closed" | "filter" | "fire" | "folder-closed" | "folder-open" | "gift" | "history" | "home" | "http" | "info-in-circle" | "information" | "insert-row" | "integrations" | "key" | "keys" | "light-bulb" | "lightening" | "loading" | "loading-animated" | "metrics" | "metrics-alt" | "payment" | "pencil" | "pie-chart" | "play" | "play-in-circle" | "plus" | "popout" | "query" | "question" | "refresh" | "search" | "secure" | "services" | "settings" | "share" | "share-arrow" | "slide-in" | "slide-out" | "sort-alt" | "sort" | "sparkle" | "speaker" | "speed" | "star" | "support" | "table" | "taxi" | "trash" | "upload" | "url" | "user" | "users" | "warning" | "waves";
|
|
8
8
|
export interface IconProps extends SVGAttributes<HTMLOrSVGElement> {
|
|
9
9
|
name: IconName;
|
|
10
10
|
color?: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { HorizontalDirection, IconName } from '../../components';
|
|
3
|
+
import { IconSize } from '../../components/Icon/types';
|
|
4
|
+
declare const IconWrapper: ({ icon, iconDir, size, width, height, children, }: {
|
|
5
|
+
icon?: IconName | undefined;
|
|
6
|
+
iconDir?: HorizontalDirection | undefined;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
size?: IconSize | undefined;
|
|
9
|
+
width?: string | number | undefined;
|
|
10
|
+
height?: string | number | undefined;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default IconWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type LogoName = "clickhouse" | "aws-s3" | "aws-redshift" | "kakfa" | "fivetran" | "confluent" | "tableau" | "graphana" | "superset" | "metabase" | "aws" | "gcp" | "azure" | "dbt" | "jdbc" | "mysql" | "postgres" | "google" | "github" | "decodeable" | "golang" | "python" | "deepnote" | "nodejs" | "datagrip" | "vector" | "kubenetes" | "c#" | "rust" | "hudi" | "deltalake" | "snowflake" | "mongodb" | "bigquery" | "iceberg";
|
|
1
|
+
export type LogoName = "clickhouse" | "aws-s3" | "aws-redshift" | "aws-msk" | "kakfa" | "fivetran" | "confluent" | "tableau" | "graphana" | "superset" | "metabase" | "aws" | "gcp" | "azure" | "dbt" | "jdbc" | "mysql" | "postgres" | "google" | "github" | "decodeable" | "golang" | "python" | "deepnote" | "nodejs" | "datagrip" | "vector" | "kubenetes" | "c#" | "rust" | "hudi" | "deltalake" | "snowflake" | "mongodb" | "bigquery" | "iceberg";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
4
|
-
export interface
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
export type PanelPadding = "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
3
|
+
export type PanelColor = "default" | "muted" | "transparent";
|
|
4
|
+
export interface PanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
hasBorder?: boolean;
|
|
6
6
|
hasShadow?: boolean;
|
|
7
|
-
color?:
|
|
8
|
-
padding?:
|
|
7
|
+
color?: PanelColor;
|
|
8
|
+
padding?: PanelPadding;
|
|
9
9
|
children?: React.ReactNode;
|
|
10
|
+
orientation?: "horizontal" | "vertical";
|
|
10
11
|
}
|
|
11
|
-
export declare const Panel: ({ hasBorder, hasShadow, color, padding, children }:
|
|
12
|
+
export declare const Panel: ({ hasBorder, hasShadow, color, padding, children, orientation, ...props }: PanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SelectContainerProps } from "./common/types";
|
|
3
|
+
export interface MultiSelectProps extends Omit<SelectContainerProps, "onChange" | "value" | "open" | "onOpenChange" | "onSelect"> {
|
|
4
|
+
defaultValue?: Array<string>;
|
|
5
|
+
onSelect?: (value: Array<string>) => void;
|
|
6
|
+
value?: Array<string>;
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const MultiSelect: {
|
|
10
|
+
({ value: valueProp, defaultValue, onSelect: onSelectProp, options, children, ...props }: MultiSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
Group: import("react").ForwardRefExoticComponent<import("./common/types").SelectGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Item: import("react").ForwardRefExoticComponent<import("./common/types").SelectItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SelectItemProps } from "./common/types";
|
|
2
|
+
interface MultiSelectValueProps {
|
|
3
|
+
selectedValues: Array<string>;
|
|
4
|
+
valueNode: Map<string, SelectItemProps>;
|
|
5
|
+
onChange: (selectedValues: Array<string>) => void;
|
|
6
|
+
onSelect: (selectedValue: string) => void;
|
|
7
|
+
sortable: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const MultiSelectValue: ({ selectedValues, valueNode, onChange, sortable, onSelect, disabled, }: MultiSelectValueProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SelectContainerProps } from "./common/types";
|
|
3
|
+
export interface SelectProps extends Omit<SelectContainerProps, "onChange" | "value" | "sortable" | "open" | "onOpenChange" | "onSelect"> {
|
|
4
|
+
defaultValue?: string;
|
|
5
|
+
onSelect?: (value: string) => void;
|
|
6
|
+
value?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Select: {
|
|
10
|
+
({ value: valueProp, defaultValue, onSelect: onSelectProp, options, children, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
Group: import("react").ForwardRefExoticComponent<import("./common/types").SelectGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Item: import("react").ForwardRefExoticComponent<import("./common/types").SelectItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SelectContainerProps, SelectGroupProps, SelectItemProps } from "./types";
|
|
3
|
+
export declare const InternalSelect: ({ label, children, orientation, dir, disabled, id, error, value: selectedValues, onChange, onSelect, open, onOpenChange, name, form, onCreateOption: onCreateOptionProp, customText, options, showCheck, sortable, placeholder, multiple, showSearch, ...props }: SelectContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const SelectGroup: import("react").ForwardRefExoticComponent<SelectGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const SelectItem: import("react").ForwardRefExoticComponent<SelectItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type OptionContextProps = {
|
|
3
|
+
search: string;
|
|
4
|
+
highlighted?: string;
|
|
5
|
+
updateHighlighted: (value: string) => void;
|
|
6
|
+
isHidden: (value?: string) => boolean;
|
|
7
|
+
selectedValues: Array<string>;
|
|
8
|
+
onSelect: (value: string) => void;
|
|
9
|
+
onCreateOption?: (search: string) => void;
|
|
10
|
+
showCheck?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const OptionContext: import("react").Context<OptionContextProps>;
|
|
13
|
+
export {};
|