@clasing/ui 0.1.39 → 0.1.45
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 +34 -7
- package/dist/index.es.js +1768 -1590
- package/dist/index.umd.js +9 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -40,25 +40,25 @@ export declare const Button: ForwardRefExoticComponent<IButtonProps & RefAttribu
|
|
|
40
40
|
export declare const ButtonIcon: default_2.ForwardRefExoticComponent<IButtonIconProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
41
41
|
|
|
42
42
|
export declare const buttonIconActiveStyles: (props?: ({
|
|
43
|
-
intent?: "
|
|
43
|
+
intent?: "fill" | "outline" | "blue-subtle" | "ghost" | "destructive" | null | undefined;
|
|
44
44
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
45
45
|
rounded?: "sm" | "full" | null | undefined;
|
|
46
46
|
} & ClassProp) | undefined) => string;
|
|
47
47
|
|
|
48
48
|
export declare const buttonIconDisabledStyles: (props?: ({
|
|
49
|
-
intent?: "
|
|
49
|
+
intent?: "fill" | "outline" | "blue-subtle" | "ghost" | "destructive" | null | undefined;
|
|
50
50
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
51
51
|
rounded?: "sm" | "full" | null | undefined;
|
|
52
52
|
} & ClassProp) | undefined) => string;
|
|
53
53
|
|
|
54
54
|
export declare const buttonIconLoadingStyles: (props?: ({
|
|
55
|
-
intent?: "
|
|
55
|
+
intent?: "fill" | "outline" | "blue-subtle" | "ghost" | "destructive" | null | undefined;
|
|
56
56
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
57
57
|
rounded?: "sm" | "full" | null | undefined;
|
|
58
58
|
} & ClassProp) | undefined) => string;
|
|
59
59
|
|
|
60
60
|
export declare const buttonIconStyles: (props?: ({
|
|
61
|
-
intent?: "
|
|
61
|
+
intent?: "fill" | "outline" | "blue-subtle" | "ghost" | "destructive" | null | undefined;
|
|
62
62
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
63
63
|
rounded?: "sm" | "full" | null | undefined;
|
|
64
64
|
} & ClassProp) | undefined) => string;
|
|
@@ -80,7 +80,7 @@ export declare const buttonStyles: (props?: ({
|
|
|
80
80
|
export declare const Card: ForwardRefExoticComponent<ICardProps & RefAttributes<HTMLDivElement>>;
|
|
81
81
|
|
|
82
82
|
declare const cardStyles: (props?: ({
|
|
83
|
-
intent?: "
|
|
83
|
+
intent?: "default" | "outline" | null | undefined;
|
|
84
84
|
shadow?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
85
85
|
} & ClassProp) | undefined) => string;
|
|
86
86
|
|
|
@@ -133,6 +133,7 @@ declare interface IButtonIconProps extends Omit<default_2.ButtonHTMLAttributes<H
|
|
|
133
133
|
name: TablerIconName;
|
|
134
134
|
stroke?: number;
|
|
135
135
|
} | TablerIconName;
|
|
136
|
+
iconText?: string;
|
|
136
137
|
isLoading?: boolean;
|
|
137
138
|
isActive?: boolean;
|
|
138
139
|
notification?: boolean;
|
|
@@ -147,6 +148,8 @@ declare interface IButtonLinkProps extends React.ButtonHTMLAttributes<HTMLButton
|
|
|
147
148
|
name: TablerIconName;
|
|
148
149
|
stroke?: number;
|
|
149
150
|
} | TablerIconName;
|
|
151
|
+
iconTextLeft?: string;
|
|
152
|
+
iconTextRight?: string;
|
|
150
153
|
isLoading?: boolean;
|
|
151
154
|
}
|
|
152
155
|
|
|
@@ -159,6 +162,8 @@ declare interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
159
162
|
name: TablerIconName;
|
|
160
163
|
stroke?: number;
|
|
161
164
|
} | TablerIconName;
|
|
165
|
+
iconTextLeft?: string;
|
|
166
|
+
iconTextRight?: string;
|
|
162
167
|
isLoading?: boolean;
|
|
163
168
|
}
|
|
164
169
|
|
|
@@ -177,6 +182,7 @@ declare interface IDatepickerProps extends React.InputHTMLAttributes<HTMLInputEl
|
|
|
177
182
|
placement?: PopoverPlacement;
|
|
178
183
|
placeholder?: string;
|
|
179
184
|
disabledDates?: Matcher | Matcher[] | undefined;
|
|
185
|
+
closeOnAction?: boolean;
|
|
180
186
|
minDate?: Date;
|
|
181
187
|
maxDate?: Date;
|
|
182
188
|
}
|
|
@@ -197,7 +203,8 @@ declare interface IDateRangePickerProps extends React.InputHTMLAttributes<HTMLIn
|
|
|
197
203
|
}
|
|
198
204
|
|
|
199
205
|
declare interface IIconComponentProps {
|
|
200
|
-
iconName
|
|
206
|
+
iconName?: TablerIconName;
|
|
207
|
+
iconText?: string;
|
|
201
208
|
stroke?: number;
|
|
202
209
|
size?: number;
|
|
203
210
|
color?: string;
|
|
@@ -205,6 +212,19 @@ declare interface IIconComponentProps {
|
|
|
205
212
|
onClick?: () => void;
|
|
206
213
|
}
|
|
207
214
|
|
|
215
|
+
declare interface IInteractiveCardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof interactiveCardStyles> {
|
|
216
|
+
isActive?: boolean;
|
|
217
|
+
title?: string;
|
|
218
|
+
text?: string;
|
|
219
|
+
helperText?: string;
|
|
220
|
+
disabled?: boolean;
|
|
221
|
+
utilityBadge?: 'error' | 'warning' | 'success' | 'info';
|
|
222
|
+
badgeText?: string;
|
|
223
|
+
badgeSize?: 'xs' | 'sm' | 'md' | 'lg';
|
|
224
|
+
iconName?: TablerIconName;
|
|
225
|
+
iconText?: string;
|
|
226
|
+
}
|
|
227
|
+
|
|
208
228
|
export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
209
229
|
|
|
210
230
|
declare interface InputProps extends React.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
|
|
@@ -219,6 +239,13 @@ declare interface InputProps extends React.InputHTMLAttributes<HTMLInputElement
|
|
|
219
239
|
} | TablerIconName;
|
|
220
240
|
}
|
|
221
241
|
|
|
242
|
+
export declare const InteractiveCard: ForwardRefExoticComponent<IInteractiveCardProps & RefAttributes<HTMLDivElement>>;
|
|
243
|
+
|
|
244
|
+
declare const interactiveCardStyles: (props?: ({
|
|
245
|
+
intent?: "default" | "outline" | null | undefined;
|
|
246
|
+
shadow?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
247
|
+
} & ClassProp) | undefined) => string;
|
|
248
|
+
|
|
222
249
|
declare interface IPopoverProps {
|
|
223
250
|
children: default_2.ReactNode;
|
|
224
251
|
trigger: JSX.Element;
|
|
@@ -281,7 +308,7 @@ declare interface OutsideClickHandlerProps {
|
|
|
281
308
|
handler: () => void;
|
|
282
309
|
}
|
|
283
310
|
|
|
284
|
-
export declare const Popover:
|
|
311
|
+
export declare const Popover: default_2.ForwardRefExoticComponent<IPopoverProps & default_2.RefAttributes<unknown>>;
|
|
285
312
|
|
|
286
313
|
declare type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-right-corner' | 'top-left-corner' | 'bottom-right-corner' | 'bottom-left-corner';
|
|
287
314
|
|