@clasing/ui 0.0.57 → 0.0.58

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
@@ -1,21 +1,26 @@
1
+ /// <reference types="react" />
2
+
1
3
  import { ClassProp } from 'class-variance-authority/types';
4
+ import { default as default_2 } from 'react';
5
+ import { ForwardRefExoticComponent } from 'react';
2
6
  import { JSX as JSX_2 } from 'react/jsx-runtime';
7
+ import { RefAttributes } from 'react';
3
8
  import * as TablerIcons from '@tabler/icons-react';
4
9
  import { VariantProps } from 'class-variance-authority';
5
10
 
6
- export declare const Badge: ({ children, iconLeft, iconRight, status, intent, size, rounded, weight, className, ...props }: IBadgeProps) => JSX_2.Element;
11
+ export declare const Badge: ForwardRefExoticComponent<IBadgeProps & RefAttributes<HTMLSpanElement>>;
7
12
 
8
13
  declare const badgeStyles: (props?: ({
9
14
  status?: "notStarted" | "notStarted-outline" | "locked" | "locked-outline" | "available" | "available-outline" | "inProgress" | "inProgress-outline" | "completed" | "completed-outline" | "viewed" | "viewed-outline" | null | undefined;
10
- intent?: "neutral" | "neutral-outline" | "blue" | "blue-outline" | "mustard" | "mustard-outline" | "green" | "green-outline" | "lime" | "lime-outline" | "fuchsia" | "fuchsia-outline" | "marine" | "marine-outline" | "ice" | "ice-outline" | "gray" | "gray-outline" | null | undefined;
15
+ intent?: "neutral" | "neutral-outline" | "blue" | "blue-outline" | "mustard" | "mustard-outline" | "green" | "green-outline" | "lime" | "lime-outline" | "fuchsia" | "fuchsia-outline" | "marine" | "marine-outline" | "ice" | "ice-outline" | "gray" | "gray-outline" | "violet" | "violet-outline" | null | undefined;
11
16
  size?: "small" | "medium" | "large" | null | undefined;
12
17
  weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
13
18
  rounded?: "rectangle" | "full" | null | undefined;
14
19
  } & ClassProp) | undefined) => string;
15
20
 
16
- export declare const Button: ({ className, intent, size, weight, children, iconLeft, iconRight, isLoading, disabled, ...props }: IButtonProps) => JSX_2.Element;
21
+ export declare const Button: ForwardRefExoticComponent<IButtonProps & RefAttributes<HTMLButtonElement>>;
17
22
 
18
- export declare const ButtonIcon: ({ iconName, className, intent, size, rounded, disabled, isLoading, notification, ...props }: IButtonIconProps) => JSX_2.Element;
23
+ export declare const ButtonIcon: default_2.ForwardRefExoticComponent<IButtonIconProps & default_2.RefAttributes<HTMLButtonElement>>;
19
24
 
20
25
  declare const buttonIconStyles: (props?: ({
21
26
  intent?: "fill" | "outline" | "ghost" | null | undefined;
@@ -23,7 +28,7 @@ declare const buttonIconStyles: (props?: ({
23
28
  rounded?: "full" | "sm" | null | undefined;
24
29
  } & ClassProp) | undefined) => string;
25
30
 
26
- export declare const ButtonLink: ({ className, intent, size, weight, children, iconLeft, iconRight, isLoading, disabled, ...props }: IButtonLinkProps) => JSX_2.Element;
31
+ export declare const ButtonLink: ForwardRefExoticComponent<IButtonLinkProps & RefAttributes<HTMLButtonElement>>;
27
32
 
28
33
  declare const buttonStyles: (props?: ({
29
34
  intent?: "outline" | "primary" | "secondary" | "tertiary" | "ghost" | "destructive" | null | undefined;
@@ -37,7 +42,7 @@ declare const buttonStyles_2: (props?: ({
37
42
  weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
38
43
  } & ClassProp) | undefined) => string;
39
44
 
40
- export declare const Card: ({ className, intent, shadow, children, ...props }: ICardProps) => JSX_2.Element;
45
+ export declare const Card: ForwardRefExoticComponent<ICardProps & RefAttributes<HTMLDivElement>>;
41
46
 
42
47
  declare const cardStyles: (props?: ({
43
48
  intent?: "outline" | "default" | null | undefined;
@@ -55,7 +60,7 @@ declare interface IBadgeProps extends React.HTMLAttributes<HTMLSpanElement>, Var
55
60
  } | TablerIconName;
56
61
  }
57
62
 
58
- declare interface IButtonIconProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>, VariantProps<typeof buttonIconStyles> {
63
+ declare interface IButtonIconProps extends Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>, VariantProps<typeof buttonIconStyles> {
59
64
  iconName: {
60
65
  name: TablerIconName;
61
66
  stroke?: number;
@@ -91,7 +96,7 @@ declare interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElem
91
96
  declare interface ICardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardStyles> {
92
97
  }
93
98
 
94
- export declare const IconComponent: ({ iconName, stroke, ...props }: IIconComponentProps) => JSX_2.Element | null;
99
+ export declare const IconComponent: ForwardRefExoticComponent<IIconComponentProps & RefAttributes<SVGSVGElement>>;
95
100
 
96
101
  declare interface IIconComponentProps {
97
102
  iconName: TablerIconName;
@@ -117,7 +122,7 @@ declare interface ITextProps extends React.HTMLAttributes<HTMLSpanElement>, Vari
117
122
  export declare const ProgressBar: ({ progress, className, intent, size, rounded, ...props }: IProgressBarProps) => JSX_2.Element;
118
123
 
119
124
  declare const progressBarStyles: (props?: ({
120
- intent?: "blue" | "mustard" | "green" | "lime" | "fuchsia" | "marine" | "ice" | "gray" | "primary" | "violet" | null | undefined;
125
+ intent?: "blue" | "mustard" | "green" | "lime" | "fuchsia" | "marine" | "ice" | "gray" | "violet" | "primary" | null | undefined;
121
126
  size?: "small" | "medium" | "large" | null | undefined;
122
127
  rounded?: "full" | "sm" | null | undefined;
123
128
  } & ClassProp) | undefined) => string;