@pisell/materials 1.10.38 → 1.10.39

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.
@@ -1091,7 +1091,7 @@ function PisellFloorMapLayoutInner(props, ref) {
1091
1091
  overflow: "auto",
1092
1092
  height: "100%"
1093
1093
  } },
1094
- getContainer: typeof document !== "undefined" ? () => document.body : void 0
1094
+ getContainer: typeof document !== "undefined" ? () => document.getElementById("pisell-app-content-overlay") || document.body : void 0
1095
1095
  }, /* @__PURE__ */ React.createElement("div", { className: classNames(`pisell-floor-map-layout-edit-panel-wrap`, `pisell-floor-map-layout-edit-panel-wrap--phone-drawer`) }, edgeEdit.selectedEdge ? /* @__PURE__ */ React.createElement(FloorMapEdgeEditPanel, {
1096
1096
  edge: edgeEdit.selectedEdge,
1097
1097
  config,
@@ -527,7 +527,7 @@ function FloorMapToolbar(props) {
527
527
  flexDirection: "column",
528
528
  height: "100%"
529
529
  } },
530
- getContainer: typeof document !== "undefined" ? () => document.body : void 0
530
+ getContainer: typeof document !== "undefined" ? () => document.getElementById("pisell-app-content-overlay") || document.body : void 0
531
531
  }, /* @__PURE__ */ React.createElement("div", { className: `${FLOOR_MAP_LAYOUT_CLASS_PREFIX}-toolbar-phone-drawer-inner` }, toolbarInner, collapseBtn)), collapsed ? /* @__PURE__ */ React.createElement("button", {
532
532
  type: "button",
533
533
  className: `${FLOOR_MAP_LAYOUT_CLASS_PREFIX}-toolbar-phone-peek-trigger`,
@@ -173,7 +173,7 @@ const ResourceWallControlPanel = ({ open, onClose, isDark, layoutPresets, layout
173
173
  draftTones,
174
174
  setDraftTones
175
175
  }))));
176
- return typeof document !== "undefined" ? createPortal(modal, document.body) : null;
176
+ return typeof document !== "undefined" ? createPortal(modal, document.getElementById("pisell-app-content-overlay") || document.body) : null;
177
177
  };
178
178
  //#endregion
179
179
  export { ResourceWallControlPanel };
@@ -41,7 +41,7 @@
41
41
  &-detail-modal-wrap {
42
42
  position: fixed;
43
43
  width: 100vw;
44
- height: 100vh;
44
+ height: var(--app-content-height, 100vh);
45
45
  top: 0;
46
46
  left: 0;
47
47
  background-color: #fff;
@@ -1094,7 +1094,7 @@ function PisellFloorMapLayoutInner(props, ref) {
1094
1094
  overflow: "auto",
1095
1095
  height: "100%"
1096
1096
  } },
1097
- getContainer: typeof document !== "undefined" ? () => document.body : void 0
1097
+ getContainer: typeof document !== "undefined" ? () => document.getElementById("pisell-app-content-overlay") || document.body : void 0
1098
1098
  }, /* @__PURE__ */ react.default.createElement("div", { className: (0, classnames.default)(`pisell-floor-map-layout-edit-panel-wrap`, `pisell-floor-map-layout-edit-panel-wrap--phone-drawer`) }, edgeEdit.selectedEdge ? /* @__PURE__ */ react.default.createElement(require_FloorMapEdgeEditPanel.FloorMapEdgeEditPanel, {
1099
1099
  edge: edgeEdit.selectedEdge,
1100
1100
  config,
@@ -530,7 +530,7 @@ function FloorMapToolbar(props) {
530
530
  flexDirection: "column",
531
531
  height: "100%"
532
532
  } },
533
- getContainer: typeof document !== "undefined" ? () => document.body : void 0
533
+ getContainer: typeof document !== "undefined" ? () => document.getElementById("pisell-app-content-overlay") || document.body : void 0
534
534
  }, /* @__PURE__ */ react.default.createElement("div", { className: `${require_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-toolbar-phone-drawer-inner` }, toolbarInner, collapseBtn)), collapsed ? /* @__PURE__ */ react.default.createElement("button", {
535
535
  type: "button",
536
536
  className: `${require_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-toolbar-phone-peek-trigger`,
@@ -175,7 +175,7 @@ const ResourceWallControlPanel = ({ open, onClose, isDark, layoutPresets, layout
175
175
  draftTones,
176
176
  setDraftTones
177
177
  }))));
178
- return typeof document !== "undefined" ? (0, react_dom.createPortal)(modal, document.body) : null;
178
+ return typeof document !== "undefined" ? (0, react_dom.createPortal)(modal, document.getElementById("pisell-app-content-overlay") || document.body) : null;
179
179
  };
180
180
  //#endregion
181
181
  exports.ResourceWallControlPanel = ResourceWallControlPanel;
@@ -41,7 +41,7 @@
41
41
  &-detail-modal-wrap {
42
42
  position: fixed;
43
43
  width: 100vw;
44
- height: 100vh;
44
+ height: var(--app-content-height, 100vh);
45
45
  top: 0;
46
46
  left: 0;
47
47
  background-color: #fff;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.10.38",
3
+ "version": "1.10.39",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -96,8 +96,8 @@
96
96
  "antd-mobile": "^5.38.1",
97
97
  "vod-js-sdk-v6": "1.7.4",
98
98
  "@pisell/date-picker": "3.0.10",
99
- "@pisell/utils": "3.0.4",
100
- "@pisell/icon": "0.0.11"
99
+ "@pisell/icon": "0.0.11",
100
+ "@pisell/utils": "3.0.4"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "react": "^18.0.0",