@elliemae/ds-form-date-time-picker 3.0.0-next.76 → 3.0.0-next.79

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.
@@ -42,6 +42,7 @@ __export(CalendarWrapper_exports, {
42
42
  module.exports = __toCommonJS(CalendarWrapper_exports);
43
43
  var React = __toESM(require("react"));
44
44
  var import_react = __toESM(require("react"));
45
+ var import_react_dom = require("react-dom");
45
46
  var import_ControlledDateTimePickerDatatestid = require("../../../ControlledDateTimePickerDatatestid");
46
47
  var import_ControlledDateTimePickerCTX = require("../../../ControlledDateTimePickerCTX");
47
48
  var import_CalendarContent = require("./CalendarContent");
@@ -55,7 +56,7 @@ const CalendarWrapper = () => {
55
56
  } = (0, import_react.useContext)(import_CalendarContext.CalendarContext);
56
57
  if (isControllerOnly)
57
58
  return /* @__PURE__ */ import_react.default.createElement(import_CalendarContent.CalendarContent, null);
58
- return /* @__PURE__ */ import_react.default.createElement("div", __spreadProps(__spreadValues({
59
+ return (0, import_react_dom.createPortal)(/* @__PURE__ */ import_react.default.createElement("div", __spreadProps(__spreadValues({
59
60
  ref: setPopperElement,
60
61
  style: __spreadProps(__spreadValues({}, styles.popper), { background: "white", zIndex: 110 })
61
62
  }, attributes.popper), {
@@ -63,6 +64,6 @@ const CalendarWrapper = () => {
63
64
  }), /* @__PURE__ */ import_react.default.createElement(import_CalendarContent.CalendarContent, null), /* @__PURE__ */ import_react.default.createElement("div", {
64
65
  ref: setArrowElement,
65
66
  style: styles.arrow
66
- }));
67
+ })), document.body);
67
68
  };
68
69
  //# sourceMappingURL=CalendarWrapper.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/parts/Pickers/Calendar/CalendarWrapper.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React, { useContext } from 'react';\nimport { ControlledDateTimePickerDatatestid } from '../../../ControlledDateTimePickerDatatestid';\nimport { ControlledDateTimePickerContext } from '../../../ControlledDateTimePickerCTX';\nimport { CalendarContent } from './CalendarContent';\nimport { CalendarContext } from './CalendarContext';\n\nexport const CalendarWrapper = (): JSX.Element => {\n const { isControllerOnly } = useContext(ControlledDateTimePickerContext);\n const {\n setPopperElement,\n usePopperHelpers: { styles, attributes },\n setArrowElement,\n } = useContext(CalendarContext);\n if (isControllerOnly) return <CalendarContent />;\n return (\n <div\n ref={setPopperElement}\n style={{ ...styles.popper, background: 'white', zIndex: 110 }}\n {...attributes.popper}\n data-testid={ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR}\n >\n <CalendarContent />\n <div ref={setArrowElement} style={styles.arrow} />\n </div>\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkC;AAClC,gDAAmD;AACnD,yCAAgD;AAChD,6BAAgC;AAChC,6BAAgC;AAEzB,MAAM,kBAAkB,MAAmB;AAChD,QAAM,EAAE,qBAAqB,6BAAW,kEAA+B;AACvE,QAAM;AAAA,IACJ;AAAA,IACA,kBAAkB,EAAE,QAAQ;AAAA,IAC5B;AAAA,MACE,6BAAW,sCAAe;AAC9B,MAAI;AAAkB,WAAO,mDAAC,4CAAgB;AAC9C,SACE,mDAAC;AAAA,IACC,KAAK;AAAA,IACL,OAAO,iCAAK,OAAO,SAAZ,EAAoB,YAAY,SAAS,QAAQ,IAAI;AAAA,KACxD,WAAW,SAHhB;AAAA,IAIC,eAAa,6EAAmC,gBAAgB;AAAA,MAEhE,mDAAC,4CAAgB,GACjB,mDAAC;AAAA,IAAI,KAAK;AAAA,IAAiB,OAAO,OAAO;AAAA,GAAO,CAClD;AAEJ;",
4
+ "sourcesContent": ["import React, { useContext } from 'react';\nimport { createPortal } from 'react-dom';\nimport { ControlledDateTimePickerDatatestid } from '../../../ControlledDateTimePickerDatatestid';\nimport { ControlledDateTimePickerContext } from '../../../ControlledDateTimePickerCTX';\nimport { CalendarContent } from './CalendarContent';\nimport { CalendarContext } from './CalendarContext';\n\nexport const CalendarWrapper = (): JSX.Element => {\n const { isControllerOnly } = useContext(ControlledDateTimePickerContext);\n const {\n setPopperElement,\n usePopperHelpers: { styles, attributes },\n setArrowElement,\n } = useContext(CalendarContext);\n if (isControllerOnly) return <CalendarContent />;\n return createPortal(\n <div\n ref={setPopperElement}\n style={{ ...styles.popper, background: 'white', zIndex: 110 }}\n {...attributes.popper}\n data-testid={ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR}\n >\n <CalendarContent />\n <div ref={setArrowElement} style={styles.arrow} />\n </div>,\n document.body,\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkC;AAClC,uBAA6B;AAC7B,gDAAmD;AACnD,yCAAgD;AAChD,6BAAgC;AAChC,6BAAgC;AAEzB,MAAM,kBAAkB,MAAmB;AAChD,QAAM,EAAE,qBAAqB,6BAAW,kEAA+B;AACvE,QAAM;AAAA,IACJ;AAAA,IACA,kBAAkB,EAAE,QAAQ;AAAA,IAC5B;AAAA,MACE,6BAAW,sCAAe;AAC9B,MAAI;AAAkB,WAAO,mDAAC,4CAAgB;AAC9C,SAAO,mCACL,mDAAC;AAAA,IACC,KAAK;AAAA,IACL,OAAO,iCAAK,OAAO,SAAZ,EAAoB,YAAY,SAAS,QAAQ,IAAI;AAAA,KACxD,WAAW,SAHhB;AAAA,IAIC,eAAa,6EAAmC,gBAAgB;AAAA,MAEhE,mDAAC,4CAAgB,GACjB,mDAAC;AAAA,IAAI,KAAK;AAAA,IAAiB,OAAO,OAAO;AAAA,GAAO,CAClD,GACA,SAAS,IACX;AACF;",
6
6
  "names": []
7
7
  }
@@ -42,6 +42,7 @@ __export(CalendarWithTimeWheelWrapper_exports, {
42
42
  module.exports = __toCommonJS(CalendarWithTimeWheelWrapper_exports);
43
43
  var React = __toESM(require("react"));
44
44
  var import_react = __toESM(require("react"));
45
+ var import_react_dom = require("react-dom");
45
46
  var import_ControlledDateTimePickerDatatestid = require("../../../ControlledDateTimePickerDatatestid");
46
47
  var import_CalendarWithTimeWheelContent = require("./CalendarWithTimeWheelContent");
47
48
  var import_CalendarWithTimeWheelContext = require("./CalendarWithTimeWheelContext");
@@ -54,7 +55,7 @@ const CalendarWithTimeWheelWrapper = () => {
54
55
  } = (0, import_react.useContext)(import_CalendarWithTimeWheelContext.CalendarWithTimeWheelContext);
55
56
  if (isControllerOnly)
56
57
  return /* @__PURE__ */ import_react.default.createElement(import_CalendarWithTimeWheelContent.CalendarWithTimeWheelContent, null);
57
- return /* @__PURE__ */ import_react.default.createElement("div", __spreadProps(__spreadValues({
58
+ return (0, import_react_dom.createPortal)(/* @__PURE__ */ import_react.default.createElement("div", __spreadProps(__spreadValues({
58
59
  ref: setPopperElement,
59
60
  style: __spreadProps(__spreadValues({}, styles.popper), { background: "white", zIndex: 110 })
60
61
  }, attributes.popper), {
@@ -62,6 +63,6 @@ const CalendarWithTimeWheelWrapper = () => {
62
63
  }), /* @__PURE__ */ import_react.default.createElement(import_CalendarWithTimeWheelContent.CalendarWithTimeWheelContent, null), /* @__PURE__ */ import_react.default.createElement("div", {
63
64
  ref: setArrowElement,
64
65
  style: styles.arrow
65
- }));
66
+ })), document.body);
66
67
  };
67
68
  //# sourceMappingURL=CalendarWithTimeWheelWrapper.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React, { useContext } from 'react';\nimport { ControlledDateTimePickerDatatestid } from '../../../ControlledDateTimePickerDatatestid';\nimport { CalendarWithTimeWheelContent } from './CalendarWithTimeWheelContent';\nimport { CalendarWithTimeWheelContext } from './CalendarWithTimeWheelContext';\n\nexport const CalendarWithTimeWheelWrapper = (): JSX.Element => {\n const {\n setPopperElement,\n setArrowElement,\n usePopperHelpers: { attributes, styles },\n isControllerOnly,\n } = useContext(CalendarWithTimeWheelContext);\n if (isControllerOnly) return <CalendarWithTimeWheelContent />;\n return (\n <div\n ref={setPopperElement}\n style={{ ...styles.popper, background: 'white', zIndex: 110 }}\n {...attributes.popper}\n data-testid={ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR_TIMEWHEEL}\n >\n <CalendarWithTimeWheelContent />\n <div ref={setArrowElement} style={styles.arrow} />\n </div>\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkC;AAClC,gDAAmD;AACnD,0CAA6C;AAC7C,0CAA6C;AAEtC,MAAM,+BAA+B,MAAmB;AAC7D,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,kBAAkB,EAAE,YAAY;AAAA,IAChC;AAAA,MACE,6BAAW,gEAA4B;AAC3C,MAAI;AAAkB,WAAO,mDAAC,sEAA6B;AAC3D,SACE,mDAAC;AAAA,IACC,KAAK;AAAA,IACL,OAAO,iCAAK,OAAO,SAAZ,EAAoB,YAAY,SAAS,QAAQ,IAAI;AAAA,KACxD,WAAW,SAHhB;AAAA,IAIC,eAAa,6EAAmC,gBAAgB;AAAA,MAEhE,mDAAC,sEAA6B,GAC9B,mDAAC;AAAA,IAAI,KAAK;AAAA,IAAiB,OAAO,OAAO;AAAA,GAAO,CAClD;AAEJ;",
4
+ "sourcesContent": ["import React, { useContext } from 'react';\nimport { createPortal } from 'react-dom';\nimport { ControlledDateTimePickerDatatestid } from '../../../ControlledDateTimePickerDatatestid';\nimport { CalendarWithTimeWheelContent } from './CalendarWithTimeWheelContent';\nimport { CalendarWithTimeWheelContext } from './CalendarWithTimeWheelContext';\n\nexport const CalendarWithTimeWheelWrapper = (): JSX.Element => {\n const {\n setPopperElement,\n setArrowElement,\n usePopperHelpers: { attributes, styles },\n isControllerOnly,\n } = useContext(CalendarWithTimeWheelContext);\n if (isControllerOnly) return <CalendarWithTimeWheelContent />;\n return createPortal(\n <div\n ref={setPopperElement}\n style={{ ...styles.popper, background: 'white', zIndex: 110 }}\n {...attributes.popper}\n data-testid={ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR_TIMEWHEEL}\n >\n <CalendarWithTimeWheelContent />\n <div ref={setArrowElement} style={styles.arrow} />\n </div>,\n document.body,\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkC;AAClC,uBAA6B;AAC7B,gDAAmD;AACnD,0CAA6C;AAC7C,0CAA6C;AAEtC,MAAM,+BAA+B,MAAmB;AAC7D,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,kBAAkB,EAAE,YAAY;AAAA,IAChC;AAAA,MACE,6BAAW,gEAA4B;AAC3C,MAAI;AAAkB,WAAO,mDAAC,sEAA6B;AAC3D,SAAO,mCACL,mDAAC;AAAA,IACC,KAAK;AAAA,IACL,OAAO,iCAAK,OAAO,SAAZ,EAAoB,YAAY,SAAS,QAAQ,IAAI;AAAA,KACxD,WAAW,SAHhB;AAAA,IAIC,eAAa,6EAAmC,gBAAgB;AAAA,MAEhE,mDAAC,sEAA6B,GAC9B,mDAAC;AAAA,IAAI,KAAK;AAAA,IAAiB,OAAO,OAAO;AAAA,GAAO,CAClD,GACA,SAAS,IACX;AACF;",
6
6
  "names": []
7
7
  }
@@ -42,6 +42,7 @@ __export(TimeWheelWrapper_exports, {
42
42
  module.exports = __toCommonJS(TimeWheelWrapper_exports);
43
43
  var React = __toESM(require("react"));
44
44
  var import_react = __toESM(require("react"));
45
+ var import_react_dom = require("react-dom");
45
46
  var import_ControlledDateTimePickerDatatestid = require("../../../ControlledDateTimePickerDatatestid");
46
47
  var import_ControlledDateTimePickerCTX = require("../../../ControlledDateTimePickerCTX");
47
48
  var import_TimeWheelContent = require("./TimeWheelContent");
@@ -57,7 +58,7 @@ const TimeWheelWrapper = () => {
57
58
  return /* @__PURE__ */ import_react.default.createElement(import_TimeWheelContent.TimeWheelContent, {
58
59
  showShadow: true
59
60
  });
60
- return /* @__PURE__ */ import_react.default.createElement("div", __spreadProps(__spreadValues({
61
+ return (0, import_react_dom.createPortal)(/* @__PURE__ */ import_react.default.createElement("div", __spreadProps(__spreadValues({
61
62
  ref: setPopperElement,
62
63
  style: __spreadProps(__spreadValues({}, styles.popper), { background: "white", zIndex: 110 })
63
64
  }, attributes.popper), {
@@ -67,6 +68,6 @@ const TimeWheelWrapper = () => {
67
68
  }), /* @__PURE__ */ import_react.default.createElement("div", {
68
69
  ref: setArrowElement,
69
70
  style: styles.arrow
70
- }));
71
+ })), document.body);
71
72
  };
72
73
  //# sourceMappingURL=TimeWheelWrapper.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/parts/Pickers/TimeWheel/TimeWheelWrapper.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React, { useContext } from 'react';\nimport { ControlledDateTimePickerDatatestid } from '../../../ControlledDateTimePickerDatatestid';\nimport { ControlledDateTimePickerContext } from '../../../ControlledDateTimePickerCTX';\nimport { TimeWheelContent } from './TimeWheelContent';\nimport { TimeWheelContext } from './TimeWheelContext';\n\nexport const TimeWheelWrapper = (): JSX.Element => {\n const {\n setArrowElement,\n setPopperElement,\n usePopperHelpers: { styles, attributes },\n } = useContext(TimeWheelContext);\n const { isControllerOnly } = useContext(ControlledDateTimePickerContext);\n if (isControllerOnly) return <TimeWheelContent showShadow />;\n return (\n <div\n ref={setPopperElement as (instance: HTMLDivElement | null) => void}\n style={{ ...styles.popper, background: 'white', zIndex: 110 }}\n {...attributes.popper}\n data-testid={ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.TIMEWHEEL}\n >\n <TimeWheelContent showShadow />\n <div ref={setArrowElement as (instance: HTMLDivElement | null) => void} style={styles.arrow} />\n </div>\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkC;AAClC,gDAAmD;AACnD,yCAAgD;AAChD,8BAAiC;AACjC,8BAAiC;AAE1B,MAAM,mBAAmB,MAAmB;AACjD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,kBAAkB,EAAE,QAAQ;AAAA,MAC1B,6BAAW,wCAAgB;AAC/B,QAAM,EAAE,qBAAqB,6BAAW,kEAA+B;AACvE,MAAI;AAAkB,WAAO,mDAAC;AAAA,MAAiB,YAAU;AAAA,KAAC;AAC1D,SACE,mDAAC;AAAA,IACC,KAAK;AAAA,IACL,OAAO,iCAAK,OAAO,SAAZ,EAAoB,YAAY,SAAS,QAAQ,IAAI;AAAA,KACxD,WAAW,SAHhB;AAAA,IAIC,eAAa,6EAAmC,gBAAgB;AAAA,MAEhE,mDAAC;AAAA,IAAiB,YAAU;AAAA,GAAC,GAC7B,mDAAC;AAAA,IAAI,KAAK;AAAA,IAA8D,OAAO,OAAO;AAAA,GAAO,CAC/F;AAEJ;",
4
+ "sourcesContent": ["import React, { useContext } from 'react';\nimport { createPortal } from 'react-dom';\nimport { ControlledDateTimePickerDatatestid } from '../../../ControlledDateTimePickerDatatestid';\nimport { ControlledDateTimePickerContext } from '../../../ControlledDateTimePickerCTX';\nimport { TimeWheelContent } from './TimeWheelContent';\nimport { TimeWheelContext } from './TimeWheelContext';\n\nexport const TimeWheelWrapper = (): JSX.Element => {\n const {\n setArrowElement,\n setPopperElement,\n usePopperHelpers: { styles, attributes },\n } = useContext(TimeWheelContext);\n const { isControllerOnly } = useContext(ControlledDateTimePickerContext);\n if (isControllerOnly) return <TimeWheelContent showShadow />;\n return createPortal(\n <div\n ref={setPopperElement as (instance: HTMLDivElement | null) => void}\n style={{ ...styles.popper, background: 'white', zIndex: 110 }}\n {...attributes.popper}\n data-testid={ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.TIMEWHEEL}\n >\n <TimeWheelContent showShadow />\n <div ref={setArrowElement as (instance: HTMLDivElement | null) => void} style={styles.arrow} />\n </div>,\n document.body,\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkC;AAClC,uBAA6B;AAC7B,gDAAmD;AACnD,yCAAgD;AAChD,8BAAiC;AACjC,8BAAiC;AAE1B,MAAM,mBAAmB,MAAmB;AACjD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,kBAAkB,EAAE,QAAQ;AAAA,MAC1B,6BAAW,wCAAgB;AAC/B,QAAM,EAAE,qBAAqB,6BAAW,kEAA+B;AACvE,MAAI;AAAkB,WAAO,mDAAC;AAAA,MAAiB,YAAU;AAAA,KAAC;AAC1D,SAAO,mCACL,mDAAC;AAAA,IACC,KAAK;AAAA,IACL,OAAO,iCAAK,OAAO,SAAZ,EAAoB,YAAY,SAAS,QAAQ,IAAI;AAAA,KACxD,WAAW,SAHhB;AAAA,IAIC,eAAa,6EAAmC,gBAAgB;AAAA,MAEhE,mDAAC;AAAA,IAAiB,YAAU;AAAA,GAAC,GAC7B,mDAAC;AAAA,IAAI,KAAK;AAAA,IAA8D,OAAO,OAAO;AAAA,GAAO,CAC/F,GACA,SAAS,IACX;AACF;",
6
6
  "names": []
7
7
  }
@@ -19,6 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import * as React from "react";
21
21
  import React2, { useContext } from "react";
22
+ import { createPortal } from "react-dom";
22
23
  import { ControlledDateTimePickerDatatestid } from "../../../ControlledDateTimePickerDatatestid";
23
24
  import { ControlledDateTimePickerContext } from "../../../ControlledDateTimePickerCTX";
24
25
  import { CalendarContent } from "./CalendarContent";
@@ -32,7 +33,7 @@ const CalendarWrapper = () => {
32
33
  } = useContext(CalendarContext);
33
34
  if (isControllerOnly)
34
35
  return /* @__PURE__ */ React2.createElement(CalendarContent, null);
35
- return /* @__PURE__ */ React2.createElement("div", __spreadProps(__spreadValues({
36
+ return createPortal(/* @__PURE__ */ React2.createElement("div", __spreadProps(__spreadValues({
36
37
  ref: setPopperElement,
37
38
  style: __spreadProps(__spreadValues({}, styles.popper), { background: "white", zIndex: 110 })
38
39
  }, attributes.popper), {
@@ -40,7 +41,7 @@ const CalendarWrapper = () => {
40
41
  }), /* @__PURE__ */ React2.createElement(CalendarContent, null), /* @__PURE__ */ React2.createElement("div", {
41
42
  ref: setArrowElement,
42
43
  style: styles.arrow
43
- }));
44
+ })), document.body);
44
45
  };
45
46
  export {
46
47
  CalendarWrapper
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/parts/Pickers/Calendar/CalendarWrapper.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useContext } from 'react';\nimport { ControlledDateTimePickerDatatestid } from '../../../ControlledDateTimePickerDatatestid';\nimport { ControlledDateTimePickerContext } from '../../../ControlledDateTimePickerCTX';\nimport { CalendarContent } from './CalendarContent';\nimport { CalendarContext } from './CalendarContext';\n\nexport const CalendarWrapper = (): JSX.Element => {\n const { isControllerOnly } = useContext(ControlledDateTimePickerContext);\n const {\n setPopperElement,\n usePopperHelpers: { styles, attributes },\n setArrowElement,\n } = useContext(CalendarContext);\n if (isControllerOnly) return <CalendarContent />;\n return (\n <div\n ref={setPopperElement}\n style={{ ...styles.popper, background: 'white', zIndex: 110 }}\n {...attributes.popper}\n data-testid={ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR}\n >\n <CalendarContent />\n <div ref={setArrowElement} style={styles.arrow} />\n </div>\n );\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AACA;AACA;AACA;AAEO,MAAM,kBAAkB,MAAmB;AAChD,QAAM,EAAE,qBAAqB,WAAW,+BAA+B;AACvE,QAAM;AAAA,IACJ;AAAA,IACA,kBAAkB,EAAE,QAAQ;AAAA,IAC5B;AAAA,MACE,WAAW,eAAe;AAC9B,MAAI;AAAkB,WAAO,qCAAC,qBAAgB;AAC9C,SACE,qCAAC;AAAA,IACC,KAAK;AAAA,IACL,OAAO,iCAAK,OAAO,SAAZ,EAAoB,YAAY,SAAS,QAAQ,IAAI;AAAA,KACxD,WAAW,SAHhB;AAAA,IAIC,eAAa,mCAAmC,gBAAgB;AAAA,MAEhE,qCAAC,qBAAgB,GACjB,qCAAC;AAAA,IAAI,KAAK;AAAA,IAAiB,OAAO,OAAO;AAAA,GAAO,CAClD;AAEJ;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useContext } from 'react';\nimport { createPortal } from 'react-dom';\nimport { ControlledDateTimePickerDatatestid } from '../../../ControlledDateTimePickerDatatestid';\nimport { ControlledDateTimePickerContext } from '../../../ControlledDateTimePickerCTX';\nimport { CalendarContent } from './CalendarContent';\nimport { CalendarContext } from './CalendarContext';\n\nexport const CalendarWrapper = (): JSX.Element => {\n const { isControllerOnly } = useContext(ControlledDateTimePickerContext);\n const {\n setPopperElement,\n usePopperHelpers: { styles, attributes },\n setArrowElement,\n } = useContext(CalendarContext);\n if (isControllerOnly) return <CalendarContent />;\n return createPortal(\n <div\n ref={setPopperElement}\n style={{ ...styles.popper, background: 'white', zIndex: 110 }}\n {...attributes.popper}\n data-testid={ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR}\n >\n <CalendarContent />\n <div ref={setArrowElement} style={styles.arrow} />\n </div>,\n document.body,\n );\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AAEO,MAAM,kBAAkB,MAAmB;AAChD,QAAM,EAAE,qBAAqB,WAAW,+BAA+B;AACvE,QAAM;AAAA,IACJ;AAAA,IACA,kBAAkB,EAAE,QAAQ;AAAA,IAC5B;AAAA,MACE,WAAW,eAAe;AAC9B,MAAI;AAAkB,WAAO,qCAAC,qBAAgB;AAC9C,SAAO,aACL,qCAAC;AAAA,IACC,KAAK;AAAA,IACL,OAAO,iCAAK,OAAO,SAAZ,EAAoB,YAAY,SAAS,QAAQ,IAAI;AAAA,KACxD,WAAW,SAHhB;AAAA,IAIC,eAAa,mCAAmC,gBAAgB;AAAA,MAEhE,qCAAC,qBAAgB,GACjB,qCAAC;AAAA,IAAI,KAAK;AAAA,IAAiB,OAAO,OAAO;AAAA,GAAO,CAClD,GACA,SAAS,IACX;AACF;",
6
6
  "names": []
7
7
  }
@@ -19,6 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import * as React from "react";
21
21
  import React2, { useContext } from "react";
22
+ import { createPortal } from "react-dom";
22
23
  import { ControlledDateTimePickerDatatestid } from "../../../ControlledDateTimePickerDatatestid";
23
24
  import { CalendarWithTimeWheelContent } from "./CalendarWithTimeWheelContent";
24
25
  import { CalendarWithTimeWheelContext } from "./CalendarWithTimeWheelContext";
@@ -31,7 +32,7 @@ const CalendarWithTimeWheelWrapper = () => {
31
32
  } = useContext(CalendarWithTimeWheelContext);
32
33
  if (isControllerOnly)
33
34
  return /* @__PURE__ */ React2.createElement(CalendarWithTimeWheelContent, null);
34
- return /* @__PURE__ */ React2.createElement("div", __spreadProps(__spreadValues({
35
+ return createPortal(/* @__PURE__ */ React2.createElement("div", __spreadProps(__spreadValues({
35
36
  ref: setPopperElement,
36
37
  style: __spreadProps(__spreadValues({}, styles.popper), { background: "white", zIndex: 110 })
37
38
  }, attributes.popper), {
@@ -39,7 +40,7 @@ const CalendarWithTimeWheelWrapper = () => {
39
40
  }), /* @__PURE__ */ React2.createElement(CalendarWithTimeWheelContent, null), /* @__PURE__ */ React2.createElement("div", {
40
41
  ref: setArrowElement,
41
42
  style: styles.arrow
42
- }));
43
+ })), document.body);
43
44
  };
44
45
  export {
45
46
  CalendarWithTimeWheelWrapper
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useContext } from 'react';\nimport { ControlledDateTimePickerDatatestid } from '../../../ControlledDateTimePickerDatatestid';\nimport { CalendarWithTimeWheelContent } from './CalendarWithTimeWheelContent';\nimport { CalendarWithTimeWheelContext } from './CalendarWithTimeWheelContext';\n\nexport const CalendarWithTimeWheelWrapper = (): JSX.Element => {\n const {\n setPopperElement,\n setArrowElement,\n usePopperHelpers: { attributes, styles },\n isControllerOnly,\n } = useContext(CalendarWithTimeWheelContext);\n if (isControllerOnly) return <CalendarWithTimeWheelContent />;\n return (\n <div\n ref={setPopperElement}\n style={{ ...styles.popper, background: 'white', zIndex: 110 }}\n {...attributes.popper}\n data-testid={ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR_TIMEWHEEL}\n >\n <CalendarWithTimeWheelContent />\n <div ref={setArrowElement} style={styles.arrow} />\n </div>\n );\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AACA;AACA;AAEO,MAAM,+BAA+B,MAAmB;AAC7D,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,kBAAkB,EAAE,YAAY;AAAA,IAChC;AAAA,MACE,WAAW,4BAA4B;AAC3C,MAAI;AAAkB,WAAO,qCAAC,kCAA6B;AAC3D,SACE,qCAAC;AAAA,IACC,KAAK;AAAA,IACL,OAAO,iCAAK,OAAO,SAAZ,EAAoB,YAAY,SAAS,QAAQ,IAAI;AAAA,KACxD,WAAW,SAHhB;AAAA,IAIC,eAAa,mCAAmC,gBAAgB;AAAA,MAEhE,qCAAC,kCAA6B,GAC9B,qCAAC;AAAA,IAAI,KAAK;AAAA,IAAiB,OAAO,OAAO;AAAA,GAAO,CAClD;AAEJ;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useContext } from 'react';\nimport { createPortal } from 'react-dom';\nimport { ControlledDateTimePickerDatatestid } from '../../../ControlledDateTimePickerDatatestid';\nimport { CalendarWithTimeWheelContent } from './CalendarWithTimeWheelContent';\nimport { CalendarWithTimeWheelContext } from './CalendarWithTimeWheelContext';\n\nexport const CalendarWithTimeWheelWrapper = (): JSX.Element => {\n const {\n setPopperElement,\n setArrowElement,\n usePopperHelpers: { attributes, styles },\n isControllerOnly,\n } = useContext(CalendarWithTimeWheelContext);\n if (isControllerOnly) return <CalendarWithTimeWheelContent />;\n return createPortal(\n <div\n ref={setPopperElement}\n style={{ ...styles.popper, background: 'white', zIndex: 110 }}\n {...attributes.popper}\n data-testid={ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR_TIMEWHEEL}\n >\n <CalendarWithTimeWheelContent />\n <div ref={setArrowElement} style={styles.arrow} />\n </div>,\n document.body,\n );\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AACA;AACA;AACA;AAEO,MAAM,+BAA+B,MAAmB;AAC7D,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,kBAAkB,EAAE,YAAY;AAAA,IAChC;AAAA,MACE,WAAW,4BAA4B;AAC3C,MAAI;AAAkB,WAAO,qCAAC,kCAA6B;AAC3D,SAAO,aACL,qCAAC;AAAA,IACC,KAAK;AAAA,IACL,OAAO,iCAAK,OAAO,SAAZ,EAAoB,YAAY,SAAS,QAAQ,IAAI;AAAA,KACxD,WAAW,SAHhB;AAAA,IAIC,eAAa,mCAAmC,gBAAgB;AAAA,MAEhE,qCAAC,kCAA6B,GAC9B,qCAAC;AAAA,IAAI,KAAK;AAAA,IAAiB,OAAO,OAAO;AAAA,GAAO,CAClD,GACA,SAAS,IACX;AACF;",
6
6
  "names": []
7
7
  }
@@ -19,6 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import * as React from "react";
21
21
  import React2, { useContext } from "react";
22
+ import { createPortal } from "react-dom";
22
23
  import { ControlledDateTimePickerDatatestid } from "../../../ControlledDateTimePickerDatatestid";
23
24
  import { ControlledDateTimePickerContext } from "../../../ControlledDateTimePickerCTX";
24
25
  import { TimeWheelContent } from "./TimeWheelContent";
@@ -34,7 +35,7 @@ const TimeWheelWrapper = () => {
34
35
  return /* @__PURE__ */ React2.createElement(TimeWheelContent, {
35
36
  showShadow: true
36
37
  });
37
- return /* @__PURE__ */ React2.createElement("div", __spreadProps(__spreadValues({
38
+ return createPortal(/* @__PURE__ */ React2.createElement("div", __spreadProps(__spreadValues({
38
39
  ref: setPopperElement,
39
40
  style: __spreadProps(__spreadValues({}, styles.popper), { background: "white", zIndex: 110 })
40
41
  }, attributes.popper), {
@@ -44,7 +45,7 @@ const TimeWheelWrapper = () => {
44
45
  }), /* @__PURE__ */ React2.createElement("div", {
45
46
  ref: setArrowElement,
46
47
  style: styles.arrow
47
- }));
48
+ })), document.body);
48
49
  };
49
50
  export {
50
51
  TimeWheelWrapper
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/parts/Pickers/TimeWheel/TimeWheelWrapper.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useContext } from 'react';\nimport { ControlledDateTimePickerDatatestid } from '../../../ControlledDateTimePickerDatatestid';\nimport { ControlledDateTimePickerContext } from '../../../ControlledDateTimePickerCTX';\nimport { TimeWheelContent } from './TimeWheelContent';\nimport { TimeWheelContext } from './TimeWheelContext';\n\nexport const TimeWheelWrapper = (): JSX.Element => {\n const {\n setArrowElement,\n setPopperElement,\n usePopperHelpers: { styles, attributes },\n } = useContext(TimeWheelContext);\n const { isControllerOnly } = useContext(ControlledDateTimePickerContext);\n if (isControllerOnly) return <TimeWheelContent showShadow />;\n return (\n <div\n ref={setPopperElement as (instance: HTMLDivElement | null) => void}\n style={{ ...styles.popper, background: 'white', zIndex: 110 }}\n {...attributes.popper}\n data-testid={ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.TIMEWHEEL}\n >\n <TimeWheelContent showShadow />\n <div ref={setArrowElement as (instance: HTMLDivElement | null) => void} style={styles.arrow} />\n </div>\n );\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AACA;AACA;AACA;AAEO,MAAM,mBAAmB,MAAmB;AACjD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,kBAAkB,EAAE,QAAQ;AAAA,MAC1B,WAAW,gBAAgB;AAC/B,QAAM,EAAE,qBAAqB,WAAW,+BAA+B;AACvE,MAAI;AAAkB,WAAO,qCAAC;AAAA,MAAiB,YAAU;AAAA,KAAC;AAC1D,SACE,qCAAC;AAAA,IACC,KAAK;AAAA,IACL,OAAO,iCAAK,OAAO,SAAZ,EAAoB,YAAY,SAAS,QAAQ,IAAI;AAAA,KACxD,WAAW,SAHhB;AAAA,IAIC,eAAa,mCAAmC,gBAAgB;AAAA,MAEhE,qCAAC;AAAA,IAAiB,YAAU;AAAA,GAAC,GAC7B,qCAAC;AAAA,IAAI,KAAK;AAAA,IAA8D,OAAO,OAAO;AAAA,GAAO,CAC/F;AAEJ;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useContext } from 'react';\nimport { createPortal } from 'react-dom';\nimport { ControlledDateTimePickerDatatestid } from '../../../ControlledDateTimePickerDatatestid';\nimport { ControlledDateTimePickerContext } from '../../../ControlledDateTimePickerCTX';\nimport { TimeWheelContent } from './TimeWheelContent';\nimport { TimeWheelContext } from './TimeWheelContext';\n\nexport const TimeWheelWrapper = (): JSX.Element => {\n const {\n setArrowElement,\n setPopperElement,\n usePopperHelpers: { styles, attributes },\n } = useContext(TimeWheelContext);\n const { isControllerOnly } = useContext(ControlledDateTimePickerContext);\n if (isControllerOnly) return <TimeWheelContent showShadow />;\n return createPortal(\n <div\n ref={setPopperElement as (instance: HTMLDivElement | null) => void}\n style={{ ...styles.popper, background: 'white', zIndex: 110 }}\n {...attributes.popper}\n data-testid={ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.TIMEWHEEL}\n >\n <TimeWheelContent showShadow />\n <div ref={setArrowElement as (instance: HTMLDivElement | null) => void} style={styles.arrow} />\n </div>,\n document.body,\n );\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AAEO,MAAM,mBAAmB,MAAmB;AACjD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,kBAAkB,EAAE,QAAQ;AAAA,MAC1B,WAAW,gBAAgB;AAC/B,QAAM,EAAE,qBAAqB,WAAW,+BAA+B;AACvE,MAAI;AAAkB,WAAO,qCAAC;AAAA,MAAiB,YAAU;AAAA,KAAC;AAC1D,SAAO,aACL,qCAAC;AAAA,IACC,KAAK;AAAA,IACL,OAAO,iCAAK,OAAO,SAAZ,EAAoB,YAAY,SAAS,QAAQ,IAAI;AAAA,KACxD,WAAW,SAHhB;AAAA,IAIC,eAAa,mCAAmC,gBAAgB;AAAA,MAEhE,qCAAC;AAAA,IAAiB,YAAU;AAAA,GAAC,GAC7B,qCAAC;AAAA,IAAI,KAAK;AAAA,IAA8D,OAAO,OAAO;AAAA,GAAO,CAC/F,GACA,SAAS,IACX;AACF;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-form-date-time-picker",
3
- "version": "3.0.0-next.76",
3
+ "version": "3.0.0-next.79",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Controlled Form Date Time Picker",
6
6
  "files": [