@shoplflow/base 0.32.45 → 0.32.47
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/index.cjs +12 -1
- package/dist/index.js +12 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1045,6 +1045,17 @@ var ModalBody = ({
|
|
|
1045
1045
|
}
|
|
1046
1046
|
return 0;
|
|
1047
1047
|
};
|
|
1048
|
+
const setContentHeightMax = () => {
|
|
1049
|
+
let autoHeightMax = setAutoHeightMax();
|
|
1050
|
+
autoHeightMax = autoHeightMax - 24;
|
|
1051
|
+
if (isIncludeHeader) {
|
|
1052
|
+
autoHeightMax = autoHeightMax - 24;
|
|
1053
|
+
}
|
|
1054
|
+
if (!isIncludeHeader) {
|
|
1055
|
+
autoHeightMax = autoHeightMax - 16;
|
|
1056
|
+
}
|
|
1057
|
+
return autoHeightMax;
|
|
1058
|
+
};
|
|
1048
1059
|
const autoHeightMin = setAutoHeightMin();
|
|
1049
1060
|
const _autoHeightMin = typeof autoHeightMin === "string" ? autoHeightMin : autoHeightMin - heightToDeduct;
|
|
1050
1061
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1061,7 +1072,7 @@ var ModalBody = ({
|
|
|
1061
1072
|
universal: true,
|
|
1062
1073
|
autoHeight: !modalContainerHeight,
|
|
1063
1074
|
autoHeightMin: _autoHeightMin,
|
|
1064
|
-
autoHeightMax:
|
|
1075
|
+
autoHeightMax: setContentHeightMax() - heightToDeduct,
|
|
1065
1076
|
style: {},
|
|
1066
1077
|
children: /* @__PURE__ */ jsxRuntime.jsx(ModalBodyContainerInner, { children: /* @__PURE__ */ jsxRuntime.jsx(ModalBodyContent, { isIncludeHeader, sizeVar, children }) })
|
|
1067
1078
|
}
|
package/dist/index.js
CHANGED
|
@@ -1018,6 +1018,17 @@ var ModalBody = ({
|
|
|
1018
1018
|
}
|
|
1019
1019
|
return 0;
|
|
1020
1020
|
};
|
|
1021
|
+
const setContentHeightMax = () => {
|
|
1022
|
+
let autoHeightMax = setAutoHeightMax();
|
|
1023
|
+
autoHeightMax = autoHeightMax - 24;
|
|
1024
|
+
if (isIncludeHeader) {
|
|
1025
|
+
autoHeightMax = autoHeightMax - 24;
|
|
1026
|
+
}
|
|
1027
|
+
if (!isIncludeHeader) {
|
|
1028
|
+
autoHeightMax = autoHeightMax - 16;
|
|
1029
|
+
}
|
|
1030
|
+
return autoHeightMax;
|
|
1031
|
+
};
|
|
1021
1032
|
const autoHeightMin = setAutoHeightMin();
|
|
1022
1033
|
const _autoHeightMin = typeof autoHeightMin === "string" ? autoHeightMin : autoHeightMin - heightToDeduct;
|
|
1023
1034
|
return /* @__PURE__ */ jsx(
|
|
@@ -1034,7 +1045,7 @@ var ModalBody = ({
|
|
|
1034
1045
|
universal: true,
|
|
1035
1046
|
autoHeight: !modalContainerHeight,
|
|
1036
1047
|
autoHeightMin: _autoHeightMin,
|
|
1037
|
-
autoHeightMax:
|
|
1048
|
+
autoHeightMax: setContentHeightMax() - heightToDeduct,
|
|
1038
1049
|
style: {},
|
|
1039
1050
|
children: /* @__PURE__ */ jsx(ModalBodyContainerInner, { children: /* @__PURE__ */ jsx(ModalBodyContent, { isIncludeHeader, sizeVar, children }) })
|
|
1040
1051
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoplflow/base",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.47",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"react-dom": "^18.2.0",
|
|
92
92
|
"simplebar-react": "^3.2.6",
|
|
93
93
|
"@shoplflow/hada-assets": "^0.1.3",
|
|
94
|
-
"@shoplflow/shopl-assets": "^0.
|
|
94
|
+
"@shoplflow/shopl-assets": "^0.12.0",
|
|
95
95
|
"@shoplflow/utils": "^0.6.5"
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|