@underverse-ui/underverse 1.0.117 → 1.0.118
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/api-reference.json +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -899,8 +899,8 @@ declare const DatePicker: React$1.FC<DatePickerProps>;
|
|
|
899
899
|
interface DateRangePickerProps {
|
|
900
900
|
id?: string;
|
|
901
901
|
startDate?: Date;
|
|
902
|
-
endDate?: Date;
|
|
903
|
-
onChange: (start: Date | undefined, end: Date | undefined) => void;
|
|
902
|
+
endDate?: Date | null;
|
|
903
|
+
onChange: (start: Date | undefined, end: Date | null | undefined) => void;
|
|
904
904
|
placeholder?: string;
|
|
905
905
|
className?: string;
|
|
906
906
|
label?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -899,8 +899,8 @@ declare const DatePicker: React$1.FC<DatePickerProps>;
|
|
|
899
899
|
interface DateRangePickerProps {
|
|
900
900
|
id?: string;
|
|
901
901
|
startDate?: Date;
|
|
902
|
-
endDate?: Date;
|
|
903
|
-
onChange: (start: Date | undefined, end: Date | undefined) => void;
|
|
902
|
+
endDate?: Date | null;
|
|
903
|
+
onChange: (start: Date | undefined, end: Date | null | undefined) => void;
|
|
904
904
|
placeholder?: string;
|
|
905
905
|
className?: string;
|
|
906
906
|
label?: string;
|
package/dist/index.js
CHANGED
|
@@ -9149,9 +9149,11 @@ var DateRangePicker = ({
|
|
|
9149
9149
|
setTempStart(localDate);
|
|
9150
9150
|
setTempEnd(null);
|
|
9151
9151
|
setHoveredDate(null);
|
|
9152
|
+
onChange(localDate, null);
|
|
9152
9153
|
} else if (tempStart && !tempEnd) {
|
|
9153
9154
|
if (localDate < tempStart) {
|
|
9154
9155
|
setTempStart(localDate);
|
|
9156
|
+
onChange(localDate, null);
|
|
9155
9157
|
} else {
|
|
9156
9158
|
setTempEnd(localDate);
|
|
9157
9159
|
setLocalRequiredError(void 0);
|