@clasing/ui 0.0.56 → 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,13 +28,21 @@ declare const buttonIconStyles: (props?: ({
23
28
  rounded?: "full" | "sm" | null | undefined;
24
29
  } & ClassProp) | undefined) => string;
25
30
 
31
+ export declare const ButtonLink: ForwardRefExoticComponent<IButtonLinkProps & RefAttributes<HTMLButtonElement>>;
32
+
26
33
  declare const buttonStyles: (props?: ({
27
34
  intent?: "outline" | "primary" | "secondary" | "tertiary" | "ghost" | "destructive" | null | undefined;
28
35
  size?: "small" | "medium" | "large" | null | undefined;
29
36
  weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
30
37
  } & ClassProp) | undefined) => string;
31
38
 
32
- export declare const Card: ({ className, intent, shadow, children, ...props }: ICardProps) => JSX_2.Element;
39
+ declare const buttonStyles_2: (props?: ({
40
+ intent?: "primary" | null | undefined;
41
+ size?: "small" | "medium" | "large" | null | undefined;
42
+ weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
43
+ } & ClassProp) | undefined) => string;
44
+
45
+ export declare const Card: ForwardRefExoticComponent<ICardProps & RefAttributes<HTMLDivElement>>;
33
46
 
34
47
  declare const cardStyles: (props?: ({
35
48
  intent?: "outline" | "default" | null | undefined;
@@ -47,7 +60,7 @@ declare interface IBadgeProps extends React.HTMLAttributes<HTMLSpanElement>, Var
47
60
  } | TablerIconName;
48
61
  }
49
62
 
50
- 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> {
51
64
  iconName: {
52
65
  name: TablerIconName;
53
66
  stroke?: number;
@@ -56,6 +69,18 @@ declare interface IButtonIconProps extends Omit<React.ButtonHTMLAttributes<HTMLB
56
69
  notification?: boolean;
57
70
  }
58
71
 
72
+ declare interface IButtonLinkProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonStyles_2> {
73
+ iconLeft?: {
74
+ name: TablerIconName;
75
+ stroke?: number;
76
+ } | TablerIconName;
77
+ iconRight?: {
78
+ name: TablerIconName;
79
+ stroke?: number;
80
+ } | TablerIconName;
81
+ isLoading?: boolean;
82
+ }
83
+
59
84
  declare interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonStyles> {
60
85
  iconLeft?: {
61
86
  name: TablerIconName;
@@ -71,7 +96,7 @@ declare interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElem
71
96
  declare interface ICardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardStyles> {
72
97
  }
73
98
 
74
- export declare const IconComponent: ({ iconName, stroke, ...props }: IIconComponentProps) => JSX_2.Element | null;
99
+ export declare const IconComponent: ForwardRefExoticComponent<IIconComponentProps & RefAttributes<SVGSVGElement>>;
75
100
 
76
101
  declare interface IIconComponentProps {
77
102
  iconName: TablerIconName;
@@ -97,7 +122,7 @@ declare interface ITextProps extends React.HTMLAttributes<HTMLSpanElement>, Vari
97
122
  export declare const ProgressBar: ({ progress, className, intent, size, rounded, ...props }: IProgressBarProps) => JSX_2.Element;
98
123
 
99
124
  declare const progressBarStyles: (props?: ({
100
- 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;
101
126
  size?: "small" | "medium" | "large" | null | undefined;
102
127
  rounded?: "full" | "sm" | null | undefined;
103
128
  } & ClassProp) | undefined) => string;