@clasing/ui 0.0.61-beta.1 → 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 +37 -2
- package/dist/index.es.js +1196 -16473
- package/dist/index.umd.js +13 -126
- package/dist/style.css +1 -1
- package/package.json +85 -85
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?: "
|
|
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;
|
|
@@ -119,6 +142,14 @@ declare interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
119
142
|
} | TablerIconName;
|
|
120
143
|
}
|
|
121
144
|
|
|
145
|
+
declare interface IPopoverProps {
|
|
146
|
+
children: default_2.ReactNode;
|
|
147
|
+
trigger: JSX.Element;
|
|
148
|
+
open?: boolean;
|
|
149
|
+
placement?: PopoverPlacement;
|
|
150
|
+
closeOnAction?: boolean;
|
|
151
|
+
}
|
|
152
|
+
|
|
122
153
|
declare interface IProgressBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof progressBarStyles> {
|
|
123
154
|
progress: number;
|
|
124
155
|
}
|
|
@@ -141,6 +172,10 @@ declare interface ModalProps {
|
|
|
141
172
|
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
142
173
|
}
|
|
143
174
|
|
|
175
|
+
export declare const Popover: ({ children, trigger, open, placement, closeOnAction, }: IPopoverProps) => JSX_2.Element;
|
|
176
|
+
|
|
177
|
+
declare type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
178
|
+
|
|
144
179
|
export declare const ProgressBar: ({ progress, className, intent, size, rounded, ...props }: IProgressBarProps) => JSX_2.Element;
|
|
145
180
|
|
|
146
181
|
declare const progressBarStyles: (props?: ({
|
|
@@ -157,7 +192,7 @@ declare const Text_2: ({ as, intent, className, weight, ...props }: ITextProps)
|
|
|
157
192
|
export { Text_2 as Text }
|
|
158
193
|
|
|
159
194
|
declare const textStyles: (props?: ({
|
|
160
|
-
intent?: "
|
|
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;
|
|
161
196
|
weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
|
|
162
197
|
} & ClassProp) | undefined) => string;
|
|
163
198
|
|