@clasing/ui 0.1.106 → 0.1.107

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
@@ -10,6 +10,7 @@ import { Placement } from '@floating-ui/react';
10
10
  import { ReactNode } from 'react';
11
11
  import { RefAttributes } from 'react';
12
12
  import { SetStateAction } from 'react';
13
+ import { SVGAttributes } from 'react';
13
14
  import * as TablerIcons from '@tabler/icons-react';
14
15
  import { VariantProps } from 'class-variance-authority';
15
16
 
@@ -142,6 +143,7 @@ export declare const Divider: ForwardRefExoticComponent<IDividerProps & RefAttri
142
143
  declare type DropdownOption<T extends string | number | readonly string[] | undefined> = {
143
144
  label: string;
144
145
  value: T;
146
+ component?: React.ReactNode;
145
147
  };
146
148
 
147
149
  export declare const DropdownSelect: ForwardRefExoticComponent<DropdownSelectProps<any> & RefAttributes<HTMLDivElement>>;
@@ -152,6 +154,8 @@ declare interface DropdownSelectProps<T extends string | number | readonly strin
152
154
  disabled?: boolean;
153
155
  error?: string;
154
156
  touched?: boolean;
157
+ triggerSize?: 'sm' | 'md' | 'lg';
158
+ rounded?: 'sm' | 'full';
155
159
  iconName?: TablerIconName;
156
160
  placement?: PopoverPlacement;
157
161
  placeholder?: string;
@@ -168,6 +172,7 @@ declare interface DropdownSelectProps<T extends string | number | readonly strin
168
172
  onSearch?: (query: string) => void;
169
173
  noOptionsMessage?: string;
170
174
  disableSearchWhileLoading?: boolean;
175
+ dropdownClassName?: string;
171
176
  }
172
177
 
173
178
  declare interface IAlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertStyles> {
@@ -180,11 +185,11 @@ declare interface IAlertProps extends React.HTMLAttributes<HTMLDivElement>, Vari
180
185
  declare interface IBadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeStyles> {
181
186
  iconLeft?: {
182
187
  name: TablerIconName;
183
- stroke?: number;
188
+ stroke?: string;
184
189
  } | TablerIconName;
185
190
  iconRight?: {
186
191
  name: TablerIconName;
187
- stroke?: number;
192
+ stroke?: string;
188
193
  } | TablerIconName;
189
194
  iconOnly?: boolean;
190
195
  }
@@ -192,7 +197,7 @@ declare interface IBadgeProps extends React.HTMLAttributes<HTMLSpanElement>, Var
192
197
  declare interface IButtonIconProps extends Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>, VariantProps<typeof buttonIconStyles> {
193
198
  iconName: {
194
199
  name: TablerIconName;
195
- stroke?: number;
200
+ stroke?: string;
196
201
  } | TablerIconName;
197
202
  iconText?: string;
198
203
  isLoading?: boolean;
@@ -203,11 +208,11 @@ declare interface IButtonIconProps extends Omit<default_2.ButtonHTMLAttributes<H
203
208
  declare interface IButtonLinkProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonLinkStyles> {
204
209
  iconLeft?: {
205
210
  name: TablerIconName;
206
- stroke?: number;
211
+ stroke?: string;
207
212
  } | TablerIconName;
208
213
  iconRight?: {
209
214
  name: TablerIconName;
210
- stroke?: number;
215
+ stroke?: string;
211
216
  } | TablerIconName;
212
217
  iconTextLeft?: string;
213
218
  iconTextRight?: string;
@@ -217,11 +222,11 @@ declare interface IButtonLinkProps extends React.ButtonHTMLAttributes<HTMLButton
217
222
  declare interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonStyles> {
218
223
  iconLeft?: {
219
224
  name: TablerIconName;
220
- stroke?: number;
225
+ stroke?: string;
221
226
  } | TablerIconName;
222
227
  iconRight?: {
223
228
  name: TablerIconName;
224
- stroke?: number;
229
+ stroke?: string;
225
230
  } | TablerIconName;
226
231
  iconTextLeft?: string;
227
232
  iconTextRight?: string;
@@ -249,11 +254,11 @@ declare interface ICardProps extends React.HTMLAttributes<HTMLDivElement>, Varia
249
254
  declare interface IChipProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof chipStyles> {
250
255
  iconLeft?: {
251
256
  name: TablerIconName;
252
- stroke?: number;
257
+ stroke?: string;
253
258
  } | TablerIconName;
254
259
  iconRight?: {
255
260
  name: TablerIconName;
256
- stroke?: number;
261
+ stroke?: string;
257
262
  } | TablerIconName;
258
263
  notification?: boolean;
259
264
  }
@@ -267,6 +272,8 @@ declare interface IDatepickerProps extends React.InputHTMLAttributes<HTMLInputEl
267
272
  touched?: boolean;
268
273
  value?: string;
269
274
  locale?: 'enGB' | 'enUS' | 'es';
275
+ triggerSize?: 'sm' | 'md' | 'lg';
276
+ rounded?: 'sm' | 'full';
270
277
  placement?: PopoverPlacement;
271
278
  placeholder?: string;
272
279
  disabledDates?: string | string[] | Date | Date[] | undefined;
@@ -285,6 +292,8 @@ declare interface IDateRangePickerProps extends React.InputHTMLAttributes<HTMLIn
285
292
  helperText?: string;
286
293
  error?: string;
287
294
  touched?: boolean;
295
+ triggerSize?: 'sm' | 'md' | 'lg';
296
+ rounded?: 'sm' | 'full';
288
297
  startDate: string;
289
298
  endDate: string;
290
299
  calendarDropdowns?: boolean;
@@ -301,13 +310,11 @@ declare interface IDividerProps extends HTMLAttributes<HTMLSpanElement> {
301
310
  orientation?: 'horizontal' | 'vertical';
302
311
  }
303
312
 
304
- declare interface IIconComponentProps {
313
+ declare interface IIconComponentProps extends SVGAttributes<SVGElement> {
305
314
  iconName?: TablerIconName;
306
315
  iconText?: string;
307
- stroke?: number;
308
316
  size?: number;
309
317
  color?: string;
310
- className?: string;
311
318
  onClick?: () => void;
312
319
  }
313
320
 
@@ -331,7 +338,7 @@ declare interface IInteractiveCardProps extends React.HTMLAttributes<HTMLDivElem
331
338
 
332
339
  export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
333
340
 
334
- declare interface InputProps extends React.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
341
+ declare interface InputProps extends React.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, VariantProps<typeof inputStyles> {
335
342
  label?: string;
336
343
  helperText?: string;
337
344
  error?: string;
@@ -339,10 +346,16 @@ declare interface InputProps extends React.InputHTMLAttributes<HTMLInputElement
339
346
  type?: 'text' | 'textarea' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'color';
340
347
  iconName?: {
341
348
  name: TablerIconName;
342
- stroke?: number;
349
+ stroke?: string;
343
350
  } | TablerIconName;
344
351
  }
345
352
 
353
+ declare const inputStyles: (props?: ({
354
+ inputSize?: "sm" | "md" | "lg" | null | undefined;
355
+ rounded?: "sm" | "full" | null | undefined;
356
+ defaultVariants?: "rounded" | "inputSize" | null | undefined;
357
+ } & ClassProp) | undefined) => string;
358
+
346
359
  export declare const InteractiveCard: ForwardRefExoticComponent<IInteractiveCardProps & RefAttributes<HTMLDivElement>>;
347
360
 
348
361
  declare const interactiveCardStyles: (props?: ({
@@ -360,7 +373,7 @@ declare interface IPopoverProps {
360
373
  className?: string;
361
374
  onMouseDown?: (e: default_2.MouseEvent) => void;
362
375
  onMouseUp?: (e: default_2.MouseEvent) => void;
363
- popoverWidth?: 'as-trigger' | 'auto';
376
+ popoverWidth?: 'as-trigger' | 'min-as-trigger' | 'auto';
364
377
  disabled?: boolean;
365
378
  }
366
379