@clasing/ui 0.1.57 → 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
@@ -87,6 +87,8 @@ export declare const buttonStyles: (props?: ({
87
87
  weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
88
88
  } & ClassProp) | undefined) => string;
89
89
 
90
+ export declare const Calendar: React.FC<ICalendarProps>;
91
+
90
92
  export declare const Card: ForwardRefExoticComponent<ICardProps & RefAttributes<HTMLDivElement>>;
91
93
 
92
94
  declare const cardStyles: (props?: ({
@@ -115,6 +117,26 @@ export declare const Datepicker: ForwardRefExoticComponent<IDatepickerProps & Re
115
117
 
116
118
  export declare const DateRangePicker: ForwardRefExoticComponent<IDateRangePickerProps & RefAttributes<HTMLInputElement>>;
117
119
 
120
+ export declare const DayTimePicker: ({ availableHours, excludeHours, disabledDays, onSelectionChange, locale, intervalMinutes, singleSelection, singleSelectionPerDay, }: DayTimePickerProps) => JSX_2.Element;
121
+
122
+ declare interface DayTimePickerProps {
123
+ availableHours?: {
124
+ start: string;
125
+ end: string;
126
+ };
127
+ excludeHours?: {
128
+ [key: string]: string[];
129
+ };
130
+ disabledDays?: string[];
131
+ onSelectionChange?: (selectedTimes: {
132
+ [key: string]: string[];
133
+ }) => void;
134
+ locale?: 'enGB' | 'enUS' | 'es';
135
+ intervalMinutes?: 30 | 60;
136
+ singleSelection?: boolean;
137
+ singleSelectionPerDay?: boolean;
138
+ }
139
+
118
140
  declare type DropdownOption<T extends string | number | readonly string[] | undefined> = {
119
141
  label: string;
120
142
  value: T;
@@ -191,6 +213,16 @@ declare interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElem
191
213
  isActive?: boolean;
192
214
  }
193
215
 
216
+ declare interface ICalendarProps {
217
+ locale?: 'enGB' | 'enUS' | 'es';
218
+ disabledDates?: Matcher | Matcher[] | undefined;
219
+ minDate?: Date;
220
+ maxDate?: Date;
221
+ value?: string;
222
+ onChange?: (value: string) => void;
223
+ className?: string;
224
+ }
225
+
194
226
  declare interface ICardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardStyles> {
195
227
  }
196
228
 
@@ -321,8 +353,14 @@ declare interface ISpinnerProps {
321
353
  className?: string;
322
354
  }
323
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
+
324
362
  declare interface ITextProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof textStyles> {
325
- as?: 'span' | 'p' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
363
+ as?: 'span' | 'p' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label';
326
364
  className?: string;
327
365
  }
328
366
 
@@ -375,6 +413,12 @@ export declare const Skeleton: ({ className, ...props }: ISkeletonProps) => JSX_
375
413
 
376
414
  export declare const Spinner: ({ className }: ISpinnerProps) => JSX_2.Element;
377
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
+
378
422
  declare type TablerIconName = keyof typeof TablerIcons;
379
423
 
380
424
  declare const Text_2: ({ as, intent, className, weight, ...props }: ITextProps) => JSX_2.Element;
@@ -415,7 +459,7 @@ declare const tooltipStyles: (props?: ({
415
459
  shadow?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
416
460
  intent?: "light" | "dark" | null | undefined;
417
461
  weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
418
- placement?: "top" | "bottom" | "left" | "right" | null | undefined;
462
+ placement?: "left" | "right" | "top" | "bottom" | null | undefined;
419
463
  delay?: 0 | 200 | 75 | 100 | 150 | 300 | 500 | null | undefined;
420
464
  closeDelay?: 0 | 200 | 75 | 100 | 150 | 300 | 500 | null | undefined;
421
465
  rounded?: "sm" | "full" | null | undefined;