@clasing/ui 0.1.58 → 0.1.60

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
@@ -30,7 +30,7 @@ export declare const Badge: ForwardRefExoticComponent<IBadgeProps & RefAttribute
30
30
 
31
31
  declare const badgeStyles: (props?: ({
32
32
  utility?: "error" | "warning" | "success" | "info" | null | undefined;
33
- intent?: "neutral" | "brand" | "brand-subtle" | "blue" | "blue-subtle" | "yellow" | "yellow-subtle" | null | undefined;
33
+ intent?: "neutral" | "brand" | "brand-subtle" | "brand-bolder" | "blue" | "blue-subtle" | "blue-bolder" | "yellow" | "yellow-subtle" | "yellow-bolder" | "violet-subtle" | "violet" | "violet-bolder" | null | undefined;
34
34
  size?: "xs" | "sm" | "md" | "lg" | null | undefined;
35
35
  weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
36
36
  rounded?: "rectangle" | "full" | null | undefined;
@@ -117,14 +117,17 @@ export declare const Datepicker: ForwardRefExoticComponent<IDatepickerProps & Re
117
117
 
118
118
  export declare const DateRangePicker: ForwardRefExoticComponent<IDateRangePickerProps & RefAttributes<HTMLInputElement>>;
119
119
 
120
- export declare const DayTimePicker: ({ availableHours, excludeHours, onSelectionChange, locale, intervalMinutes, singleSelection, singleSelectionPerDay, }: DayTimePickerProps) => JSX_2.Element;
120
+ export declare const DayTimePicker: ({ availableHours, excludeHours, disabledDays, onSelectionChange, locale, intervalMinutes, singleSelection, singleSelectionPerDay, }: DayTimePickerProps) => JSX_2.Element;
121
121
 
122
122
  declare interface DayTimePickerProps {
123
123
  availableHours?: {
124
124
  start: string;
125
125
  end: string;
126
126
  };
127
- excludeHours?: string[];
127
+ excludeHours?: {
128
+ [key: string]: string[];
129
+ };
130
+ disabledDays?: string[];
128
131
  onSelectionChange?: (selectedTimes: {
129
132
  [key: string]: string[];
130
133
  }) => void;
@@ -283,12 +286,14 @@ declare interface IInteractiveCardProps extends React.HTMLAttributes<HTMLDivElem
283
286
  text?: string;
284
287
  helperText?: string;
285
288
  disabled?: boolean;
286
- utilityBadge?: 'error' | 'warning' | 'success' | 'info';
289
+ utilityBadge?: IBadgeProps['utility'];
290
+ colorBadge?: IBadgeProps['intent'];
287
291
  badgeText?: string;
288
292
  badgeSize?: 'xs' | 'sm' | 'md' | 'lg';
289
293
  iconName?: TablerIconName;
290
294
  iconText?: string;
291
295
  tooltipText?: string;
296
+ tooltipTitle?: string;
292
297
  tooltipIconName?: TablerIconName;
293
298
  tooltipPlacement?: 'top' | 'bottom';
294
299
  }
@@ -350,16 +355,23 @@ declare interface ISpinnerProps {
350
355
  className?: string;
351
356
  }
352
357
 
358
+ declare interface ISwitchProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof switchRootStyles> {
359
+ defaultChecked?: boolean;
360
+ checked?: boolean;
361
+ onCheckedChange?: (checked: boolean) => void;
362
+ }
363
+
353
364
  declare interface ITextProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof textStyles> {
354
- as?: 'span' | 'p' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
365
+ as?: 'span' | 'p' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label';
355
366
  className?: string;
356
367
  }
357
368
 
358
369
  declare interface ITooltipProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof tooltipStyles> {
370
+ title?: string;
359
371
  content: string;
360
372
  }
361
373
 
362
- export declare const Modal: ({ className, children, isOpen, setIsOpen, canClose, intent, closeOnClickOutside, closeButtonAriaLabel, }: ModalProps) => ReactPortal | null;
374
+ export declare const Modal: ({ className, children, isOpen, setIsOpen, canClose, intent, overlay, closeOnClickOutside, closeButtonAriaLabel, }: ModalProps) => ReactPortal | null;
363
375
 
364
376
  declare interface ModalProps {
365
377
  className?: string;
@@ -368,6 +380,7 @@ declare interface ModalProps {
368
380
  setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
369
381
  canClose?: boolean;
370
382
  intent?: 'card' | 'sheet';
383
+ overlay?: 'blur' | 'opacity';
371
384
  closeOnClickOutside?: boolean;
372
385
  closeButtonAriaLabel?: string;
373
386
  }
@@ -404,6 +417,12 @@ export declare const Skeleton: ({ className, ...props }: ISkeletonProps) => JSX_
404
417
 
405
418
  export declare const Spinner: ({ className }: ISpinnerProps) => JSX_2.Element;
406
419
 
420
+ export declare const Switch: ForwardRefExoticComponent<ISwitchProps & RefAttributes<HTMLButtonElement>>;
421
+
422
+ declare const switchRootStyles: (props?: ({
423
+ switchSize?: "sm" | "md" | null | undefined;
424
+ } & ClassProp) | undefined) => string;
425
+
407
426
  declare type TablerIconName = keyof typeof TablerIcons;
408
427
 
409
428
  declare const Text_2: ({ as, intent, className, weight, ...props }: ITextProps) => JSX_2.Element;
@@ -447,7 +466,7 @@ declare const tooltipStyles: (props?: ({
447
466
  placement?: "left" | "right" | "top" | "bottom" | null | undefined;
448
467
  delay?: 0 | 200 | 75 | 100 | 150 | 300 | 500 | null | undefined;
449
468
  closeDelay?: 0 | 200 | 75 | 100 | 150 | 300 | 500 | null | undefined;
450
- rounded?: "sm" | "full" | null | undefined;
469
+ rounded?: "sm" | "md" | "lg" | "full" | null | undefined;
451
470
  } & ClassProp) | undefined) => string;
452
471
 
453
472
  export declare const useOutsideClick: ({ ref, handler }: OutsideClickHandlerProps) => void;