@clasing/ui 0.1.56 → 0.1.58
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 +32 -2
- package/dist/index.es.js +1980 -1787
- package/dist/index.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
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,23 @@ 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, 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?: string[];
|
|
128
|
+
onSelectionChange?: (selectedTimes: {
|
|
129
|
+
[key: string]: string[];
|
|
130
|
+
}) => void;
|
|
131
|
+
locale?: 'enGB' | 'enUS' | 'es';
|
|
132
|
+
intervalMinutes?: 30 | 60;
|
|
133
|
+
singleSelection?: boolean;
|
|
134
|
+
singleSelectionPerDay?: boolean;
|
|
135
|
+
}
|
|
136
|
+
|
|
118
137
|
declare type DropdownOption<T extends string | number | readonly string[] | undefined> = {
|
|
119
138
|
label: string;
|
|
120
139
|
value: T;
|
|
@@ -191,6 +210,16 @@ declare interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
191
210
|
isActive?: boolean;
|
|
192
211
|
}
|
|
193
212
|
|
|
213
|
+
declare interface ICalendarProps {
|
|
214
|
+
locale?: 'enGB' | 'enUS' | 'es';
|
|
215
|
+
disabledDates?: Matcher | Matcher[] | undefined;
|
|
216
|
+
minDate?: Date;
|
|
217
|
+
maxDate?: Date;
|
|
218
|
+
value?: string;
|
|
219
|
+
onChange?: (value: string) => void;
|
|
220
|
+
className?: string;
|
|
221
|
+
}
|
|
222
|
+
|
|
194
223
|
declare interface ICardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardStyles> {
|
|
195
224
|
}
|
|
196
225
|
|
|
@@ -330,7 +359,7 @@ declare interface ITooltipProps extends React.HTMLAttributes<HTMLSpanElement>, V
|
|
|
330
359
|
content: string;
|
|
331
360
|
}
|
|
332
361
|
|
|
333
|
-
export declare const Modal: ({ className, children, isOpen, setIsOpen, canClose, intent, closeOnClickOutside, }: ModalProps) => ReactPortal | null;
|
|
362
|
+
export declare const Modal: ({ className, children, isOpen, setIsOpen, canClose, intent, closeOnClickOutside, closeButtonAriaLabel, }: ModalProps) => ReactPortal | null;
|
|
334
363
|
|
|
335
364
|
declare interface ModalProps {
|
|
336
365
|
className?: string;
|
|
@@ -340,6 +369,7 @@ declare interface ModalProps {
|
|
|
340
369
|
canClose?: boolean;
|
|
341
370
|
intent?: 'card' | 'sheet';
|
|
342
371
|
closeOnClickOutside?: boolean;
|
|
372
|
+
closeButtonAriaLabel?: string;
|
|
343
373
|
}
|
|
344
374
|
|
|
345
375
|
declare type Option_2 = {
|
|
@@ -414,7 +444,7 @@ declare const tooltipStyles: (props?: ({
|
|
|
414
444
|
shadow?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
415
445
|
intent?: "light" | "dark" | null | undefined;
|
|
416
446
|
weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
|
|
417
|
-
placement?: "
|
|
447
|
+
placement?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
418
448
|
delay?: 0 | 200 | 75 | 100 | 150 | 300 | 500 | null | undefined;
|
|
419
449
|
closeDelay?: 0 | 200 | 75 | 100 | 150 | 300 | 500 | null | undefined;
|
|
420
450
|
rounded?: "sm" | "full" | null | undefined;
|