@pismo/marola 2.1.27 → 2.1.28
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/components/DatePicker/DatePicker.d.ts +6 -2
- package/dist/components/DatePicker/DatePicker.js +649 -647
- package/dist/components/DatePicker/DatePicker.stories.d.ts +4 -2
- package/dist/components/DatePicker/dateUtils.d.ts +1 -1
- package/dist/components/DatePicker/dateUtils.js +34 -33
- package/dist/components/DatePicker/renderCalendarDays.d.ts +2 -1
- package/dist/components/DatePicker/renderCalendarDays.js +48 -47
- package/package.json +1 -1
|
@@ -4,8 +4,6 @@ type DatePickerCommonProps = {
|
|
|
4
4
|
viewMode: 'day' | 'month' | 'year';
|
|
5
5
|
/** Locale for date formatting and localization support */
|
|
6
6
|
locale?: string;
|
|
7
|
-
/** Placeholder text for the date input field */
|
|
8
|
-
placeholder?: string;
|
|
9
7
|
/** Format string for displaying the date */
|
|
10
8
|
format?: string;
|
|
11
9
|
/** Minimum selectable date */
|
|
@@ -30,11 +28,17 @@ export type DatePickerProps = DatePickerCommonProps & ({
|
|
|
30
28
|
mode: 'single';
|
|
31
29
|
/** Initial value the date picker */
|
|
32
30
|
value?: Date;
|
|
31
|
+
/** Placeholder text for the date input field */
|
|
32
|
+
placeholder?: string;
|
|
33
33
|
} | {
|
|
34
34
|
/** Mode of the date picker, can be 'single' for single date selection or 'range' for date range selection */
|
|
35
35
|
mode: 'range';
|
|
36
36
|
/** Initial value the date picker */
|
|
37
37
|
values?: [Date, Date];
|
|
38
|
+
/** Placeholder texts for the date input fields */
|
|
39
|
+
placeholders?: [string, string];
|
|
40
|
+
/** Limit the number of future selectable dates in the range */
|
|
41
|
+
limit?: number;
|
|
38
42
|
});
|
|
39
43
|
export declare const DatePicker: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
44
|
export default DatePicker;
|