@ikatec/nebula-react 1.9.0-beta.6 → 1.9.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.
|
Binary file
|
package/dist/index.d.mts
CHANGED
|
@@ -621,6 +621,7 @@ interface InputDateTimePickerSingleProps extends Omit<InputTextProps, 'onChange'
|
|
|
621
621
|
className?: string;
|
|
622
622
|
disabledDates?: CalendarProps['disabled'];
|
|
623
623
|
onClean?: VoidFunction;
|
|
624
|
+
popoverContainer?: HTMLElement | null;
|
|
624
625
|
}
|
|
625
626
|
declare const InputDateTimePickerSingle: ({ placeholder, className, value, onChange, numberOfMonths, onClean, disabledDates, ...rest }: InputDateTimePickerSingleProps) => react_jsx_runtime.JSX.Element;
|
|
626
627
|
|
package/dist/index.d.ts
CHANGED
|
@@ -621,6 +621,7 @@ interface InputDateTimePickerSingleProps extends Omit<InputTextProps, 'onChange'
|
|
|
621
621
|
className?: string;
|
|
622
622
|
disabledDates?: CalendarProps['disabled'];
|
|
623
623
|
onClean?: VoidFunction;
|
|
624
|
+
popoverContainer?: HTMLElement | null;
|
|
624
625
|
}
|
|
625
626
|
declare const InputDateTimePickerSingle: ({ placeholder, className, value, onChange, numberOfMonths, onClean, disabledDates, ...rest }: InputDateTimePickerSingleProps) => react_jsx_runtime.JSX.Element;
|
|
626
627
|
|
package/dist/index.js
CHANGED
|
@@ -5552,15 +5552,15 @@ var InputDateTimePickerSingle = ({
|
|
|
5552
5552
|
replacement: { _: /\d/ }
|
|
5553
5553
|
};
|
|
5554
5554
|
const inputRef = mask.useMask(maskOptions);
|
|
5555
|
-
const
|
|
5555
|
+
const containerRef = React25.useRef(null);
|
|
5556
5556
|
const calendarRef = React25.useRef(null);
|
|
5557
|
-
useClickOutside([
|
|
5557
|
+
useClickOutside([containerRef, calendarRef], () => {
|
|
5558
5558
|
setPopoverIsOpen(false);
|
|
5559
5559
|
});
|
|
5560
5560
|
useKeyPress("Escape", () => {
|
|
5561
5561
|
setPopoverIsOpen(false);
|
|
5562
5562
|
});
|
|
5563
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nebula-ds w-full", ref:
|
|
5563
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nebula-ds w-full", ref: containerRef, children: [
|
|
5564
5564
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5565
5565
|
InputText,
|
|
5566
5566
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -5509,15 +5509,15 @@ var InputDateTimePickerSingle = ({
|
|
|
5509
5509
|
replacement: { _: /\d/ }
|
|
5510
5510
|
};
|
|
5511
5511
|
const inputRef = useMask(maskOptions);
|
|
5512
|
-
const
|
|
5512
|
+
const containerRef = useRef(null);
|
|
5513
5513
|
const calendarRef = useRef(null);
|
|
5514
|
-
useClickOutside([
|
|
5514
|
+
useClickOutside([containerRef, calendarRef], () => {
|
|
5515
5515
|
setPopoverIsOpen(false);
|
|
5516
5516
|
});
|
|
5517
5517
|
useKeyPress("Escape", () => {
|
|
5518
5518
|
setPopoverIsOpen(false);
|
|
5519
5519
|
});
|
|
5520
|
-
return /* @__PURE__ */ jsxs("div", { className: "nebula-ds w-full", ref:
|
|
5520
|
+
return /* @__PURE__ */ jsxs("div", { className: "nebula-ds w-full", ref: containerRef, children: [
|
|
5521
5521
|
/* @__PURE__ */ jsx(
|
|
5522
5522
|
InputText,
|
|
5523
5523
|
{
|
package/package.json
CHANGED
|
Binary file
|