@clasing/ui 0.1.50 → 0.1.51
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/index.d.ts +20 -10
- package/dist/index.es.js +1728 -1657
- package/dist/index.umd.js +9 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -37,28 +37,29 @@ declare const badgeStyles: (props?: ({
|
|
|
37
37
|
|
|
38
38
|
export declare const Button: ForwardRefExoticComponent<IButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
39
39
|
|
|
40
|
-
export declare const
|
|
41
|
-
|
|
42
|
-
export declare const buttonIconActiveStyles: (props?: ({
|
|
43
|
-
intent?: "fill" | "outline" | "blue-subtle" | "ghost" | "destructive" | null | undefined;
|
|
40
|
+
export declare const buttonActiveStyles: (props?: ({
|
|
41
|
+
intent?: "outline" | "primary-red" | "primary-blue" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
44
42
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
45
43
|
rounded?: "sm" | "full" | null | undefined;
|
|
44
|
+
weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
|
|
46
45
|
} & ClassProp) | undefined) => string;
|
|
47
46
|
|
|
48
|
-
export declare const
|
|
49
|
-
|
|
47
|
+
export declare const ButtonIcon: default_2.ForwardRefExoticComponent<IButtonIconProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
48
|
+
|
|
49
|
+
export declare const buttonIconActiveStyles: (props?: ({
|
|
50
|
+
intent?: "outline" | "primary-red" | "primary-blue" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
50
51
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
51
52
|
rounded?: "sm" | "full" | null | undefined;
|
|
52
53
|
} & ClassProp) | undefined) => string;
|
|
53
54
|
|
|
54
55
|
export declare const buttonIconLoadingStyles: (props?: ({
|
|
55
|
-
intent?: "
|
|
56
|
+
intent?: "outline" | "primary-red" | "primary-blue" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
56
57
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
57
58
|
rounded?: "sm" | "full" | null | undefined;
|
|
58
59
|
} & ClassProp) | undefined) => string;
|
|
59
60
|
|
|
60
61
|
export declare const buttonIconStyles: (props?: ({
|
|
61
|
-
intent?: "
|
|
62
|
+
intent?: "outline" | "primary-red" | "primary-blue" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
62
63
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
63
64
|
rounded?: "sm" | "full" | null | undefined;
|
|
64
65
|
} & ClassProp) | undefined) => string;
|
|
@@ -71,6 +72,13 @@ export declare const buttonLinkStyles: (props?: ({
|
|
|
71
72
|
weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
|
|
72
73
|
} & ClassProp) | undefined) => string;
|
|
73
74
|
|
|
75
|
+
export declare const buttonLoadingStyles: (props?: ({
|
|
76
|
+
intent?: "outline" | "primary-red" | "primary-blue" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
77
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
78
|
+
rounded?: "sm" | "full" | null | undefined;
|
|
79
|
+
weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
|
|
80
|
+
} & ClassProp) | undefined) => string;
|
|
81
|
+
|
|
74
82
|
export declare const buttonStyles: (props?: ({
|
|
75
83
|
intent?: "outline" | "primary-red" | "primary-blue" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
76
84
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -179,6 +187,7 @@ declare interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
179
187
|
iconTextLeft?: string;
|
|
180
188
|
iconTextRight?: string;
|
|
181
189
|
isLoading?: boolean;
|
|
190
|
+
isActive?: boolean;
|
|
182
191
|
}
|
|
183
192
|
|
|
184
193
|
declare interface ICardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardStyles> {
|
|
@@ -317,7 +326,7 @@ declare interface ITooltipProps extends React.HTMLAttributes<HTMLSpanElement>, V
|
|
|
317
326
|
content: string;
|
|
318
327
|
}
|
|
319
328
|
|
|
320
|
-
export declare const Modal: ({ className, children, isOpen, setIsOpen, canClose, }: ModalProps) => JSX_2.Element;
|
|
329
|
+
export declare const Modal: ({ className, children, isOpen, setIsOpen, canClose, intent, }: ModalProps) => JSX_2.Element;
|
|
321
330
|
|
|
322
331
|
declare interface ModalProps {
|
|
323
332
|
className?: string;
|
|
@@ -325,6 +334,7 @@ declare interface ModalProps {
|
|
|
325
334
|
isOpen: boolean;
|
|
326
335
|
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
327
336
|
canClose?: boolean;
|
|
337
|
+
intent?: 'card' | 'sheet';
|
|
328
338
|
}
|
|
329
339
|
|
|
330
340
|
declare type Option_2 = {
|
|
@@ -377,7 +387,7 @@ declare interface ToastProps extends default_2.HTMLAttributes<HTMLDivElement>, V
|
|
|
377
387
|
title?: string;
|
|
378
388
|
message: string;
|
|
379
389
|
canClose?: boolean;
|
|
380
|
-
onClose
|
|
390
|
+
onClose?: () => void;
|
|
381
391
|
position?: PositionProps;
|
|
382
392
|
duration?: number;
|
|
383
393
|
}
|