@clasing/ui 0.1.38 → 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 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?: "outline" | "fill" | "blue-subtle" | "ghost" | "destructive" | null | undefined;
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?: "outline" | "fill" | "blue-subtle" | "ghost" | "destructive" | null | undefined;
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?: "outline" | "fill" | "blue-subtle" | "ghost" | "destructive" | null | undefined;
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?: "outline" | "fill" | "blue-subtle" | "ghost" | "destructive" | null | undefined;
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?: "outline" | "default" | null | undefined;
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
  }
@@ -190,13 +196,15 @@ declare interface IDateRangePickerProps extends React.InputHTMLAttributes<HTMLIn
190
196
  endDate: string;
191
197
  disabledDates?: Matcher | Matcher[] | undefined;
192
198
  locale?: 'enGB' | 'enUS' | 'es';
199
+ placement?: PopoverPlacement;
193
200
  placeholder?: string;
194
201
  minDate?: Date;
195
202
  maxDate?: Date;
196
203
  }
197
204
 
198
205
  declare interface IIconComponentProps {
199
- iconName: TablerIconName;
206
+ iconName?: TablerIconName;
207
+ iconText?: string;
200
208
  stroke?: number;
201
209
  size?: number;
202
210
  color?: string;
@@ -204,6 +212,19 @@ declare interface IIconComponentProps {
204
212
  onClick?: () => void;
205
213
  }
206
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
+
207
228
  export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
208
229
 
209
230
  declare interface InputProps extends React.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
@@ -218,6 +239,13 @@ declare interface InputProps extends React.InputHTMLAttributes<HTMLInputElement
218
239
  } | TablerIconName;
219
240
  }
220
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
+
221
249
  declare interface IPopoverProps {
222
250
  children: default_2.ReactNode;
223
251
  trigger: JSX.Element;
@@ -232,10 +260,17 @@ declare interface IProgressBarProps extends Omit<React.HTMLAttributes<HTMLDivEle
232
260
  }
233
261
 
234
262
  declare interface ISelectableChipsProps {
263
+ id?: string;
264
+ label?: string;
235
265
  options: Option_2[];
236
266
  multiple?: boolean;
237
- selectedOptions: Option_2[];
238
- setSelectedOptions: Dispatch<SetStateAction<Option_2[]>>;
267
+ selectedOptions: Option_2['value'] | Option_2['value'][] | undefined;
268
+ setSelectedOptions: Dispatch<SetStateAction<Option_2['value'] | Option_2['value'][] | undefined>>;
269
+ className?: string;
270
+ disabled?: boolean;
271
+ helperText?: string;
272
+ error?: string;
273
+ touched?: boolean;
239
274
  }
240
275
 
241
276
  declare interface ISpinnerProps {
@@ -273,7 +308,7 @@ declare interface OutsideClickHandlerProps {
273
308
  handler: () => void;
274
309
  }
275
310
 
276
- export declare const Popover: ({ children, trigger, open, placement, closeOnAction, className, }: IPopoverProps) => JSX_2.Element;
311
+ export declare const Popover: default_2.ForwardRefExoticComponent<IPopoverProps & default_2.RefAttributes<unknown>>;
277
312
 
278
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';
279
314
 
@@ -287,7 +322,7 @@ declare const progressBarStyles: (props?: ({
287
322
  rounded?: "sm" | "full" | null | undefined;
288
323
  } & ClassProp) | undefined) => string;
289
324
 
290
- export declare const SelectableChips: ({ options, multiple, selectedOptions, setSelectedOptions, }: ISelectableChipsProps) => JSX_2.Element;
325
+ export declare const SelectableChips: ({ id, label, options, multiple, selectedOptions, setSelectedOptions, className, disabled, helperText, error, touched, }: ISelectableChipsProps) => JSX_2.Element | null;
291
326
 
292
327
  export declare const Spinner: ({ className }: ISpinnerProps) => JSX_2.Element;
293
328