@northlight/ui 2.36.12 → 2.37.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.
- package/dist/es/northlight.d.ts +1 -0
- package/dist/es/northlight.js +6 -1
- package/dist/es/northlight.js.map +1 -1
- package/dist/umd/northlight.cjs +6 -1
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +1 -1
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/package.json +2 -2
package/dist/es/northlight.d.ts
CHANGED
|
@@ -1005,6 +1005,7 @@ interface DateRangePickerProps extends Omit<AriaDateRangePickerProps<DateValue>,
|
|
|
1005
1005
|
fiscalStartDay?: number;
|
|
1006
1006
|
renderInPortal?: boolean;
|
|
1007
1007
|
buttonLabel?: string;
|
|
1008
|
+
setIsOpen?: (isOpen: boolean) => void;
|
|
1008
1009
|
}
|
|
1009
1010
|
interface DatePickerFieldProps extends Omit<InputProps, 'onChange'>, InputFieldProps {
|
|
1010
1011
|
name: string;
|
package/dist/es/northlight.js
CHANGED
|
@@ -7891,7 +7891,9 @@ const DateRangePicker = (props) => {
|
|
|
7891
7891
|
renderInPortal = false,
|
|
7892
7892
|
firstDayOfWeek,
|
|
7893
7893
|
onSave,
|
|
7894
|
-
buttonLabel = "Save"
|
|
7894
|
+
buttonLabel = "Save",
|
|
7895
|
+
setIsOpen = () => {
|
|
7896
|
+
}
|
|
7895
7897
|
} = props;
|
|
7896
7898
|
const ref = useRef();
|
|
7897
7899
|
const { group } = useMultiStyleConfig("DatePicker");
|
|
@@ -7910,6 +7912,9 @@ const DateRangePicker = (props) => {
|
|
|
7910
7912
|
shouldCloseOnSelect: false,
|
|
7911
7913
|
hideTimeZone: true
|
|
7912
7914
|
}));
|
|
7915
|
+
useEffect(() => {
|
|
7916
|
+
setIsOpen(state.isOpen);
|
|
7917
|
+
}, [state.isOpen]);
|
|
7913
7918
|
const {
|
|
7914
7919
|
groupProps,
|
|
7915
7920
|
startFieldProps,
|