@delightui/components 0.1.158 → 0.1.160
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/cjs/components/molecules/DatePicker/DateInput/DateInput.presenter.d.ts +3 -0
- package/dist/cjs/components/molecules/DatePicker/DatePickerBase/DatePickerBase.presenter.d.ts +13 -18
- package/dist/cjs/components/molecules/DatePicker/DatePickerBase/DatePickerBase.types.d.ts +10 -2
- package/dist/cjs/components/molecules/DatePicker/DatePickerBase/DatePickerBase.utils.d.ts +19 -0
- package/dist/cjs/library.css +8 -2
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/molecules/DatePicker/DateInput/DateInput.presenter.d.ts +3 -0
- package/dist/esm/components/molecules/DatePicker/DatePickerBase/DatePickerBase.presenter.d.ts +13 -18
- package/dist/esm/components/molecules/DatePicker/DatePickerBase/DatePickerBase.types.d.ts +10 -2
- package/dist/esm/components/molecules/DatePicker/DatePickerBase/DatePickerBase.utils.d.ts +19 -0
- package/dist/esm/library.css +8 -2
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +10 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import React__default, { ImgHTMLAttributes, SyntheticEvent, HTMLAttributes, Reac
|
|
|
4
4
|
import { LinkProps } from 'react-router-dom';
|
|
5
5
|
import { Plugin } from 'flatpickr/dist/types/options';
|
|
6
6
|
import FlatPickr, { DateTimePickerProps } from 'react-flatpickr';
|
|
7
|
+
import { Instance } from 'flatpickr/dist/types/instance';
|
|
7
8
|
import { ModalTransitionComponent } from 'react-overlays/cjs/Modal';
|
|
8
9
|
import { Offset } from 'react-overlays/usePopper';
|
|
9
10
|
|
|
@@ -1317,13 +1318,20 @@ type DatePickerBaseProps = ControlledFormComponentProps<DatePickerValue> & {
|
|
|
1317
1318
|
* @param dates - Array of selected dates.
|
|
1318
1319
|
* @param dateStr - String representation of the selected date(s). Will match the date format.
|
|
1319
1320
|
*/
|
|
1320
|
-
onOpen?: (dates: Date[], dateStr: string) => void;
|
|
1321
|
+
onOpen?: (dates: Date[], dateStr: string, calendarInstance: Instance) => void;
|
|
1321
1322
|
/**
|
|
1322
1323
|
* Callback function when the date picker is closed.
|
|
1323
1324
|
* @param dates - Array of selected dates.
|
|
1324
1325
|
* @param dateStr - String representation of the selected date(s). Will match the date format.
|
|
1325
1326
|
*/
|
|
1326
|
-
onClose?: (dates: Date[], dateStr: string) => void;
|
|
1327
|
+
onClose?: (dates: Date[], dateStr: string, calendarInstance: Instance) => void;
|
|
1328
|
+
/**
|
|
1329
|
+
* Callback function when the calendar is ready and mounted.
|
|
1330
|
+
* @param dates - Array of selected dates.
|
|
1331
|
+
* @param dateStr - String representation of the selected date(s). Will match the date format.
|
|
1332
|
+
* @param calendarInstance - The Flatpickr instance.
|
|
1333
|
+
*/
|
|
1334
|
+
onReady?: (dates: Date[], dateStr: string, calendarInstance: Instance) => void;
|
|
1327
1335
|
/**
|
|
1328
1336
|
* render date picker inline
|
|
1329
1337
|
*/
|