@clasing/ui 0.1.67 → 0.1.69
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 +16 -7
- package/dist/index.es.js +1813 -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
|
@@ -117,24 +117,24 @@ 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,
|
|
120
|
+
export declare const DayTimePicker: ({ availableHours, availableTimes, onSelectionChange, locale, intervalMinutes, singleSelection, singleSelectionPerDay, disabledDays, }: 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
|
-
|
|
128
|
-
[key
|
|
127
|
+
availableTimes?: {
|
|
128
|
+
[key in WeekDay]?: string[];
|
|
129
129
|
};
|
|
130
|
-
disabledDays?: string[];
|
|
131
130
|
onSelectionChange?: (selectedTimes: {
|
|
132
|
-
[key
|
|
131
|
+
[key in WeekDay]?: string[];
|
|
133
132
|
}) => void;
|
|
134
133
|
locale?: 'enGB' | 'enUS' | 'es';
|
|
135
134
|
intervalMinutes?: 30 | 60;
|
|
136
135
|
singleSelection?: boolean;
|
|
137
136
|
singleSelectionPerDay?: boolean;
|
|
137
|
+
disabledDays?: WeekDay[];
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
declare type DropdownOption<T extends string | number | readonly string[] | undefined> = {
|
|
@@ -215,7 +215,10 @@ declare interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
215
215
|
|
|
216
216
|
declare interface ICalendarProps {
|
|
217
217
|
locale?: 'enGB' | 'enUS' | 'es';
|
|
218
|
-
disabledDates?:
|
|
218
|
+
disabledDates?: string | string[] | Date | Date[] | undefined;
|
|
219
|
+
enabledDates?: string | string[] | Date | Date[] | undefined;
|
|
220
|
+
hideNavigation?: boolean;
|
|
221
|
+
showOutsideDays?: boolean;
|
|
219
222
|
minDate?: Date;
|
|
220
223
|
maxDate?: Date;
|
|
221
224
|
value?: string;
|
|
@@ -249,7 +252,10 @@ declare interface IDatepickerProps extends React.InputHTMLAttributes<HTMLInputEl
|
|
|
249
252
|
locale?: 'enGB' | 'enUS' | 'es';
|
|
250
253
|
placement?: PopoverPlacement;
|
|
251
254
|
placeholder?: string;
|
|
252
|
-
disabledDates?:
|
|
255
|
+
disabledDates?: string | string[] | Date | Date[] | undefined;
|
|
256
|
+
enabledDates?: string | string[] | Date | Date[] | undefined;
|
|
257
|
+
hideNavigation?: boolean;
|
|
258
|
+
showOutsideDays?: boolean;
|
|
253
259
|
closeOnAction?: boolean;
|
|
254
260
|
minDate?: Date;
|
|
255
261
|
maxDate?: Date;
|
|
@@ -325,6 +331,7 @@ declare interface IPopoverProps {
|
|
|
325
331
|
open?: boolean;
|
|
326
332
|
placement?: PopoverPlacement;
|
|
327
333
|
closeOnAction?: boolean;
|
|
334
|
+
close?: boolean;
|
|
328
335
|
className?: string;
|
|
329
336
|
onMouseDown?: (e: default_2.MouseEvent) => void;
|
|
330
337
|
onMouseUp?: (e: default_2.MouseEvent) => void;
|
|
@@ -470,4 +477,6 @@ export declare const useOutsideClick: ({ ref, handler }: OutsideClickHandlerProp
|
|
|
470
477
|
|
|
471
478
|
export declare const useToast: () => ToastContextType;
|
|
472
479
|
|
|
480
|
+
declare type WeekDay = 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
|
|
481
|
+
|
|
473
482
|
export { }
|