@clickhouse/click-ui 0.0.117 → 0.0.119
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconName } from '../../components';
|
|
2
|
-
import { ReactNode } from "react";
|
|
2
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
3
3
|
export type BadgeState = "default" | "success" | "neutral" | "danger" | "disabled" | "warning" | "info";
|
|
4
|
-
export interface CardSecondaryProps {
|
|
4
|
+
export interface CardSecondaryProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
title: string;
|
|
6
6
|
icon: IconName;
|
|
7
7
|
badgeState?: BadgeState;
|
|
@@ -12,4 +12,4 @@ export interface CardSecondaryProps {
|
|
|
12
12
|
infoUrl?: string;
|
|
13
13
|
infoText?: string;
|
|
14
14
|
}
|
|
15
|
-
export declare const CardSecondary: ({ title, icon, badgeState, badgeText, hasShadow, disabled, description, infoUrl, infoText, }: CardSecondaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const CardSecondary: ({ title, icon, badgeState, badgeText, hasShadow, disabled, description, infoUrl, infoText, ...props }: CardSecondaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from "react";
|
|
2
2
|
type DialogPrimaryAction = "primary" | "danger";
|
|
3
3
|
export interface ConfirmationDialogProps {
|
|
4
|
-
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
message?: string;
|
|
5
8
|
onCancel?: () => void;
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
onConfirm?: (() => void) | (() => Promise<void>);
|
|
10
|
+
open?: boolean;
|
|
8
11
|
primaryActionLabel?: string;
|
|
12
|
+
primaryActionType?: DialogPrimaryAction;
|
|
9
13
|
secondaryActionLabel?: string;
|
|
10
|
-
message?: string;
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
loading?: boolean;
|
|
13
14
|
showClose?: boolean;
|
|
14
|
-
|
|
15
|
+
title: string;
|
|
15
16
|
}
|
|
16
|
-
export declare const ConfirmationDialog: ({
|
|
17
|
+
export declare const ConfirmationDialog: ({ children, disabled, loading, message, onCancel, onConfirm, open, primaryActionLabel, primaryActionType, secondaryActionLabel, showClose, title, ...props }: ConfirmationDialogProps) => ReactElement;
|
|
17
18
|
export {};
|