@clasing/ui 0.0.61-beta.2 → 0.1.0

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
@@ -8,6 +8,12 @@ import { RefAttributes } from 'react';
8
8
  import * as TablerIcons from '@tabler/icons-react';
9
9
  import { VariantProps } from 'class-variance-authority';
10
10
 
11
+ export declare const Avatar: ForwardRefExoticComponent<AvatarProps & RefAttributes<HTMLImageElement>>;
12
+
13
+ declare interface AvatarProps extends React.ImgHTMLAttributes<HTMLImageElement> {
14
+ rounded?: boolean;
15
+ }
16
+
11
17
  export declare const Badge: ForwardRefExoticComponent<IBadgeProps & RefAttributes<HTMLSpanElement>>;
12
18
 
13
19
  declare const badgeStyles: (props?: ({
@@ -23,7 +29,7 @@ export declare const Button: ForwardRefExoticComponent<IButtonProps & RefAttribu
23
29
  export declare const ButtonIcon: default_2.ForwardRefExoticComponent<IButtonIconProps & default_2.RefAttributes<HTMLButtonElement>>;
24
30
 
25
31
  declare const buttonIconStyles: (props?: ({
26
- intent?: "fill" | "outline" | "ghost" | null | undefined;
32
+ intent?: "outline" | "fill" | "ghost" | null | undefined;
27
33
  size?: "small" | "medium" | "large" | null | undefined;
28
34
  rounded?: "full" | "sm" | null | undefined;
29
35
  } & ClassProp) | undefined) => string;
@@ -49,6 +55,23 @@ declare const cardStyles: (props?: ({
49
55
  shadow?: "none" | "sm" | "xs" | "md" | "lg" | "xl" | "2xl" | null | undefined;
50
56
  } & ClassProp) | undefined) => string;
51
57
 
58
+ declare type DropdownOption<T> = {
59
+ label: string;
60
+ value: T;
61
+ };
62
+
63
+ export declare const DropdownSelect: ForwardRefExoticComponent<DropdownSelectProps<any> & RefAttributes<HTMLInputElement>>;
64
+
65
+ declare interface DropdownSelectProps<T> extends React.SelectHTMLAttributes<HTMLInputElement> {
66
+ label?: string;
67
+ helperText?: string;
68
+ error?: string;
69
+ touched?: boolean;
70
+ iconName?: TablerIconName;
71
+ placeholder?: string;
72
+ options?: DropdownOption<T>[];
73
+ }
74
+
52
75
  declare interface IBadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeStyles> {
53
76
  iconLeft?: {
54
77
  name: TablerIconName;
@@ -169,7 +192,7 @@ declare const Text_2: ({ as, intent, className, weight, ...props }: ITextProps)
169
192
  export { Text_2 as Text }
170
193
 
171
194
  declare const textStyles: (props?: ({
172
- intent?: "label-md" | "display-sm" | "display-lg" | "title-xs" | "title-sm" | "title-md" | "title-lg" | "title-xl" | "label-xs" | "label-sm" | "label-lg" | "label-xl" | "label-2xl" | "label-3xl" | "paragraph-xs" | "paragraph-sm" | "paragraph-md" | "paragraph-lg" | "overline-sm" | "overline-lg" | null | undefined;
195
+ intent?: "display-sm" | "display-lg" | "title-xs" | "title-sm" | "title-md" | "title-lg" | "title-xl" | "label-xs" | "label-sm" | "label-md" | "label-lg" | "label-xl" | "label-2xl" | "label-3xl" | "paragraph-xs" | "paragraph-sm" | "paragraph-md" | "paragraph-lg" | "overline-sm" | "overline-lg" | null | undefined;
173
196
  weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
174
197
  } & ClassProp) | undefined) => string;
175
198