@clickhouse/click-ui 0.0.209 → 0.0.211
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.bundled.es.js +175 -157
- package/dist/click-ui.bundled.umd.js +175 -157
- package/dist/click-ui.es.js +175 -157
- package/dist/click-ui.umd.js +175 -157
- 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 +3 -1
- package/dist/components/Select/CheckboxMultiSelect.d.ts +1 -0
- package/dist/components/Select/MultiSelect.d.ts +1 -0
- package/dist/components/Select/SingleSelect.d.ts +1 -0
- package/dist/components/Select/common/InternalSelect.d.ts +2 -1
- package/dist/components/Select/common/SelectStyled.d.ts +1 -0
- package/dist/components/Select/common/types.d.ts +5 -4
- package/dist/components/Toast/Toast.d.ts +8 -3
- package/dist/components/icons/TextSlash.d.ts +4 -0
- package/dist/components/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { PaymentName, PaymentProps } from '../icons/Payments';
|
|
|
6
6
|
|
|
7
7
|
export type IconSize = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
8
8
|
export type IconState = "default" | "success" | "warning" | "danger" | "info";
|
|
9
|
-
export declare const ICON_NAMES: readonly ["activity", "alarm", "arrow-down", "arrow-left", "arrow-right", "arrow-triangle", "arrow-directions", "arrow-up", "auth-app", "auth-sms", "backups", "bar-chart", "bell", "beta", "blog", "bold", "book", "brackets", "briefcase", "building", "burger-menu", "calendar", "calendar-with-time", "cards", "cell-tower", "chat", "chart-area", "chart-bar-horizontal", "chart-donut", "chart-heatmap", "chart-scatter", "chart-stacked-horizontal", "chart-stacked-vertical", "check", "check-in-circle", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle", "clock", "cloud", "cloud-keys", "code", "code-in-square", "connect", "connect-alt", "console", "copy", "cpu", "cross", "credit-card", "data", "database", "disk", "display", "document", "dot", "dots-horizontal", "dots-triangle", "dots-vertical", "dots-vertical-double", "double-check", "download", "download-in-circle", "email", "empty", "enter", "eye", "eye-closed", "filter", "fire", "flag", "flask", "folder-closed", "folder-open", "gear", "gift", "git-merge", "globe", "hexagon", "history", "horizontal-loading", "home", "http", "http-monitoring", "info-in-circle", "information", "insert-row", "integrations", "italic", "key", "keys", "lifebuoy", "light-bulb", "light-bulb-on", "lightening", "line-in-circle", "list-bulleted", "list-numbered", "loading", "loading-animated", "lock", "metrics", "metrics-alt", "minus", "mcp", "moon", "no-cloud", "pause", "payment", "pencil", "pie-chart", "pipe", "play", "play-in-circle", "plus", "popout", "puzzle-piece", "query", "question", "refresh", "rocket", "sandglass", "search", "secure", "server", "services", "settings", "share", "share-arrow", "share-network", "slide-in", "slide-out", "sort-alt", "sort", "sparkle", "speaker", "speed", "square", "star", "stop", "support", "table", "taxi", "trash", "tree-structure", "upgrade", "upload", "url", "user", "users", "underline", "warning", "waves"];
|
|
9
|
+
export declare const ICON_NAMES: readonly ["activity", "alarm", "arrow-down", "arrow-left", "arrow-right", "arrow-triangle", "arrow-directions", "arrow-up", "auth-app", "auth-sms", "backups", "bar-chart", "bell", "beta", "blog", "bold", "book", "brackets", "briefcase", "building", "burger-menu", "calendar", "calendar-with-time", "cards", "cell-tower", "chat", "chart-area", "chart-bar-horizontal", "chart-donut", "chart-heatmap", "chart-scatter", "chart-stacked-horizontal", "chart-stacked-vertical", "check", "check-in-circle", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle", "clock", "cloud", "cloud-keys", "code", "code-in-square", "connect", "connect-alt", "console", "copy", "cpu", "cross", "credit-card", "data", "database", "disk", "display", "document", "dot", "dots-horizontal", "dots-triangle", "dots-vertical", "dots-vertical-double", "double-check", "download", "download-in-circle", "email", "empty", "enter", "eye", "eye-closed", "filter", "fire", "flag", "flask", "folder-closed", "folder-open", "gear", "gift", "git-merge", "globe", "hexagon", "history", "horizontal-loading", "home", "http", "http-monitoring", "info-in-circle", "information", "insert-row", "integrations", "italic", "key", "keys", "lifebuoy", "light-bulb", "light-bulb-on", "lightening", "line-in-circle", "list-bulleted", "list-numbered", "loading", "loading-animated", "lock", "metrics", "metrics-alt", "minus", "mcp", "moon", "no-cloud", "pause", "payment", "pencil", "pie-chart", "pipe", "play", "play-in-circle", "plus", "popout", "puzzle-piece", "query", "question", "refresh", "rocket", "sandglass", "search", "secure", "server", "services", "settings", "share", "share-arrow", "share-network", "slide-in", "slide-out", "sort-alt", "sort", "sparkle", "speaker", "speed", "square", "star", "stop", "support", "table", "taxi", "text-slash", "trash", "tree-structure", "upgrade", "upload", "url", "user", "users", "underline", "warning", "waves"];
|
|
10
10
|
export type IconName = (typeof ICON_NAMES)[number];
|
|
11
11
|
export interface IconProps extends SVGAttributes<HTMLOrSVGElement> {
|
|
12
12
|
name: IconName;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { HorizontalDirection, IconName } from '..';
|
|
3
|
+
import { GapOptions } from '../Container/Container';
|
|
3
4
|
import { IconSize } from '../Icon/types';
|
|
4
5
|
|
|
5
6
|
interface IconWrapperProps {
|
|
@@ -10,6 +11,7 @@ interface IconWrapperProps {
|
|
|
10
11
|
height?: number | string;
|
|
11
12
|
children: ReactNode;
|
|
12
13
|
ellipsisContent?: boolean;
|
|
14
|
+
gap?: GapOptions;
|
|
13
15
|
}
|
|
14
|
-
declare const IconWrapper: ({ icon, iconDir, size, width, height, children, ellipsisContent, ...props }: IconWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const IconWrapper: ({ icon, iconDir, size, width, height, children, ellipsisContent, gap, ...props }: IconWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
export default IconWrapper;
|
|
@@ -7,4 +7,5 @@ export declare const CheckboxMultiSelect: {
|
|
|
7
7
|
({ value: valueProp, defaultValue, onSelect: onSelectProp, options, children, onOpenChange: onOpenChangeProp, selectLabel, ...props }: CheckboxMultiSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
Group: import('react').ForwardRefExoticComponent<import('./common/types').SelectGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
9
9
|
Item: import('react').ForwardRefExoticComponent<import('./common/InternalSelect').MultiSelectCheckboxItemProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
|
+
ItemDescription: import('react').ForwardRefExoticComponent<import('..').TextProps<"p"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
11
|
};
|
|
@@ -12,4 +12,5 @@ export declare const MultiSelect: {
|
|
|
12
12
|
({ value: valueProp, defaultValue, onSelect: onSelectProp, options, children, onOpenChange: onOpenChangeProp, ...props }: MultiSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
Group: import('react').ForwardRefExoticComponent<import('./common/types').SelectGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
14
|
Item: import('react').ForwardRefExoticComponent<import('./common/types').SelectItemProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
|
+
ItemDescription: import('react').ForwardRefExoticComponent<import('..').TextProps<"p"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
16
|
};
|
|
@@ -14,4 +14,5 @@ export declare const Select: {
|
|
|
14
14
|
({ value: valueProp, defaultValue, onSelect: onSelectProp, options, children, onOpenChange: onOpenChangeProp, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
Group: import('react').ForwardRefExoticComponent<import('./common/types').SelectGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
16
16
|
Item: import('react').ForwardRefExoticComponent<import('./common/types').SelectItemProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
|
+
ItemDescription: import('react').ForwardRefExoticComponent<import('..').TextProps<"p"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
18
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SelectContainerProps, SelectGroupProps, SelectItemProps } from './types';
|
|
2
|
-
import { CheckboxVariants } from '../..';
|
|
2
|
+
import { CheckboxVariants, TextProps } from '../..';
|
|
3
3
|
|
|
4
4
|
export declare const InternalSelect: ({ label, children, orientation, dir, disabled, id, error, value: selectedValues, onChange, onSelect, open, onOpenChange, name, form, allowCreateOption, customText, options, sortable, placeholder, multiple, checkbox, selectLabel, showSearch, container, useFullWidthItems, itemCharacterLimit, ...props }: SelectContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare const SelectGroup: import('react').ForwardRefExoticComponent<SelectGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -8,3 +8,4 @@ export type MultiSelectCheckboxItemProps = SelectItemProps & {
|
|
|
8
8
|
variant?: CheckboxVariants;
|
|
9
9
|
};
|
|
10
10
|
export declare const MultiSelectCheckboxItem: import('react').ForwardRefExoticComponent<MultiSelectCheckboxItemProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const SelectItemDescription: import('react').ForwardRefExoticComponent<TextProps<"p"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -29,3 +29,4 @@ export declare const SelectGroupContent: import('styled-components/dist/types').
|
|
|
29
29
|
export declare const SelectNoDataContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
30
30
|
$clickable: boolean;
|
|
31
31
|
}>> & string;
|
|
32
|
+
export declare const SelectItemDescriptionText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -14,10 +14,12 @@ interface SelectItemComponentProps extends Omit<DivProps, "disabled" | "onSelect
|
|
|
14
14
|
type SelectItemChildren = {
|
|
15
15
|
children: ReactNode;
|
|
16
16
|
label?: never;
|
|
17
|
+
description?: never;
|
|
17
18
|
};
|
|
18
19
|
type SelectItemLabel = {
|
|
19
20
|
children?: never;
|
|
20
21
|
label: ReactNode;
|
|
22
|
+
description?: ReactNode;
|
|
21
23
|
};
|
|
22
24
|
export type SelectItemProps = SelectItemComponentProps & (SelectItemChildren | SelectItemLabel);
|
|
23
25
|
export interface SelectGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "heading"> {
|
|
@@ -25,14 +27,13 @@ export interface SelectGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "
|
|
|
25
27
|
value?: never;
|
|
26
28
|
onSelect?: never;
|
|
27
29
|
}
|
|
28
|
-
export interface SelectOptionItem extends Omit<SelectItemProps, "children" | "label"> {
|
|
29
|
-
heading?: never;
|
|
30
|
+
export interface SelectOptionItem extends Omit<SelectItemProps, "children" | "label" | "description"> {
|
|
30
31
|
label: ReactNode;
|
|
32
|
+
description?: ReactNode;
|
|
31
33
|
[key: `data-${string}`]: string;
|
|
32
34
|
}
|
|
33
|
-
interface SelectGroupOptionItem extends Omit<SelectGroupProps, "children" | "label"> {
|
|
35
|
+
interface SelectGroupOptionItem extends Omit<SelectGroupProps, "children" | "label" | "description"> {
|
|
34
36
|
options: Array<SelectOptionItem>;
|
|
35
|
-
label?: never;
|
|
36
37
|
[key: `data-${string}`]: string;
|
|
37
38
|
}
|
|
38
39
|
export type SelectOptionListItem = SelectGroupOptionItem | SelectOptionItem;
|
|
@@ -3,9 +3,10 @@ import { ButtonProps } from '..';
|
|
|
3
3
|
|
|
4
4
|
import * as RadixUIToast from "@radix-ui/react-toast";
|
|
5
5
|
export interface ToastContextProps {
|
|
6
|
-
createToast: (toast: ToastProps) => void;
|
|
6
|
+
createToast: (toast: ToastProps, align?: ToastAlignment) => void;
|
|
7
7
|
}
|
|
8
8
|
export declare const ToastContext: import('react').Context<ToastContextProps>;
|
|
9
|
+
export type ToastAlignment = "start" | "end";
|
|
9
10
|
export type ToastType = "danger" | "warning" | "default" | "success";
|
|
10
11
|
export interface ToastProps {
|
|
11
12
|
id?: string;
|
|
@@ -17,8 +18,12 @@ export interface ToastProps {
|
|
|
17
18
|
actions?: Array<ButtonProps & {
|
|
18
19
|
altText: string;
|
|
19
20
|
}>;
|
|
21
|
+
align?: ToastAlignment;
|
|
20
22
|
}
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
+
export declare const Toast: ({ type, title, description, actions, duration, onClose, }: ToastProps & {
|
|
24
|
+
onClose: (open: boolean) => void;
|
|
25
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export interface ToastProviderProps extends RadixUIToast.ToastProviderProps {
|
|
27
|
+
align?: ToastAlignment;
|
|
23
28
|
}
|
|
24
29
|
export declare const ToastProvider: ({ children, align, ...props }: ToastProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -69,4 +69,4 @@ export { createToast } from './Toast/toastEmitter';
|
|
|
69
69
|
export { UserIcon as ProfileIcon } from './icons/UserIcon';
|
|
70
70
|
export { default as VerticalStepper } from './VerticalStepper/VerticalStepper';
|
|
71
71
|
export { MultiAccordion } from './MultiAccordion/MultiAccordion';
|
|
72
|
-
export { ToastProvider } from './Toast/Toast';
|
|
72
|
+
export { ToastProvider, Toast } from './Toast/Toast';
|