@clasing/ui 0.1.58 → 0.1.59

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
@@ -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;
@@ -350,8 +353,14 @@ declare interface ISpinnerProps {
350
353
  className?: string;
351
354
  }
352
355
 
356
+ declare interface ISwitchProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof switchRootStyles> {
357
+ defaultChecked?: boolean;
358
+ checked?: boolean;
359
+ onCheckedChange?: (checked: boolean) => void;
360
+ }
361
+
353
362
  declare interface ITextProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof textStyles> {
354
- as?: 'span' | 'p' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
363
+ as?: 'span' | 'p' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label';
355
364
  className?: string;
356
365
  }
357
366
 
@@ -404,6 +413,12 @@ export declare const Skeleton: ({ className, ...props }: ISkeletonProps) => JSX_
404
413
 
405
414
  export declare const Spinner: ({ className }: ISpinnerProps) => JSX_2.Element;
406
415
 
416
+ export declare const Switch: ForwardRefExoticComponent<ISwitchProps & RefAttributes<HTMLButtonElement>>;
417
+
418
+ declare const switchRootStyles: (props?: ({
419
+ switchSize?: "sm" | "md" | null | undefined;
420
+ } & ClassProp) | undefined) => string;
421
+
407
422
  declare type TablerIconName = keyof typeof TablerIcons;
408
423
 
409
424
  declare const Text_2: ({ as, intent, className, weight, ...props }: ITextProps) => JSX_2.Element;