@clasing/ui 0.1.49 → 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 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 ButtonIcon: default_2.ForwardRefExoticComponent<IButtonIconProps & default_2.RefAttributes<HTMLButtonElement>>;
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 buttonIconDisabledStyles: (props?: ({
49
- intent?: "fill" | "outline" | "blue-subtle" | "ghost" | "destructive" | null | undefined;
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?: "fill" | "outline" | "blue-subtle" | "ghost" | "destructive" | null | undefined;
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?: "fill" | "outline" | "blue-subtle" | "ghost" | "destructive" | null | undefined;
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,9 +72,17 @@ 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
- intent?: "outline" | "primary" | "secondary" | "tertiary" | "ghost" | "destructive" | null | undefined;
83
+ intent?: "outline" | "primary-red" | "primary-blue" | "secondary" | "ghost" | "destructive" | null | undefined;
76
84
  size?: "sm" | "md" | "lg" | null | undefined;
85
+ rounded?: "sm" | "full" | null | undefined;
77
86
  weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
78
87
  } & ClassProp) | undefined) => string;
79
88
 
@@ -178,6 +187,7 @@ declare interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElem
178
187
  iconTextLeft?: string;
179
188
  iconTextRight?: string;
180
189
  isLoading?: boolean;
190
+ isActive?: boolean;
181
191
  }
182
192
 
183
193
  declare interface ICardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardStyles> {
@@ -316,7 +326,7 @@ declare interface ITooltipProps extends React.HTMLAttributes<HTMLSpanElement>, V
316
326
  content: string;
317
327
  }
318
328
 
319
- 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;
320
330
 
321
331
  declare interface ModalProps {
322
332
  className?: string;
@@ -324,6 +334,7 @@ declare interface ModalProps {
324
334
  isOpen: boolean;
325
335
  setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
326
336
  canClose?: boolean;
337
+ intent?: 'card' | 'sheet';
327
338
  }
328
339
 
329
340
  declare type Option_2 = {
@@ -376,7 +387,7 @@ declare interface ToastProps extends default_2.HTMLAttributes<HTMLDivElement>, V
376
387
  title?: string;
377
388
  message: string;
378
389
  canClose?: boolean;
379
- onClose: () => void;
390
+ onClose?: () => void;
380
391
  position?: PositionProps;
381
392
  duration?: number;
382
393
  }