@clasing/ui 0.1.57 → 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 +30 -1
- package/dist/index.es.js +2007 -1811
- 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
|
|
|
@@ -415,7 +444,7 @@ declare const tooltipStyles: (props?: ({
|
|
|
415
444
|
shadow?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
416
445
|
intent?: "light" | "dark" | null | undefined;
|
|
417
446
|
weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
|
|
418
|
-
placement?: "
|
|
447
|
+
placement?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
419
448
|
delay?: 0 | 200 | 75 | 100 | 150 | 300 | 500 | null | undefined;
|
|
420
449
|
closeDelay?: 0 | 200 | 75 | 100 | 150 | 300 | 500 | null | undefined;
|
|
421
450
|
rounded?: "sm" | "full" | null | undefined;
|