@orfium/ictinus 5.22.0 → 5.24.0
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as React, InputHTMLAttributes } from 'react';
|
|
2
2
|
import { TestProps } from '../../../utils/types';
|
|
3
3
|
import { TextFieldProps } from '../../TextField/TextField';
|
|
4
4
|
import { DateFormatType, DatePickerProps } from '../DatePicker.types';
|
|
@@ -36,5 +36,5 @@ declare const DatePickInput: React.ForwardRefExoticComponent<Pick<DatePickerProp
|
|
|
36
36
|
dateFormatOverride?: DateFormatType;
|
|
37
37
|
/** Defines whether the component is open */
|
|
38
38
|
isOpen: boolean;
|
|
39
|
-
} & Partial<Omit<InputHTMLAttributes<HTMLInputElement>, "size">> & TestProps & React.RefAttributes<HTMLInputElement>>;
|
|
39
|
+
} & Partial<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">> & TestProps & React.RefAttributes<HTMLInputElement>>;
|
|
40
40
|
export default DatePickInput;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { FilterType } from '../Filter/Filter.types';
|
|
1
2
|
import { Dayjs } from '../../utils/date';
|
|
2
3
|
import { TextFieldProps } from '../TextField/TextField';
|
|
3
|
-
import { FilterType } from '../Filter/Filter.types';
|
|
4
4
|
|
|
5
5
|
export type DisabledDates = {
|
|
6
6
|
daysOfWeek?: number[];
|
|
@@ -17,6 +17,8 @@ export type DatePickerProps = {
|
|
|
17
17
|
isRangePicker?: boolean;
|
|
18
18
|
/** A callback to return user selection */
|
|
19
19
|
onChange?: (range: DateRange) => void;
|
|
20
|
+
/** A callback that runs ONLY on added filters when the users clears the date (presses the x button) */
|
|
21
|
+
onClear?: () => void;
|
|
20
22
|
/** Option to disable some dates */
|
|
21
23
|
disableDates?: DisabledDates;
|
|
22
24
|
/** Value to define if needed an initial state or to handle it externally */
|