@shoplflow/base 0.32.44 → 0.32.45

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 CHANGED
@@ -966,12 +966,11 @@ var ScrollArea = React3.forwardRef((_a, ref) => {
966
966
  }, [onResize]);
967
967
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: Boolean(windowWidth) && Boolean(windowHeight) && /* @__PURE__ */ jsxRuntime.jsx(
968
968
  Scrollbars__default.default,
969
- __spreadProps(__spreadValues({
969
+ __spreadProps(__spreadValues({}, rest), {
970
970
  ref: mergeRef,
971
971
  autoHide: true,
972
972
  autoHideTimeout: 1e3,
973
- autoHideDuration: 200
974
- }, rest), {
973
+ autoHideDuration: 200,
975
974
  "data-shoplflow": "ScrollArea",
976
975
  children
977
976
  })
@@ -1062,7 +1061,7 @@ var ModalBody = ({
1062
1061
  universal: true,
1063
1062
  autoHeight: !modalContainerHeight,
1064
1063
  autoHeightMin: _autoHeightMin,
1065
- autoHeightMax: "100%",
1064
+ autoHeightMax: setAutoHeightMax() - heightToDeduct,
1066
1065
  style: {},
1067
1066
  children: /* @__PURE__ */ jsxRuntime.jsx(ModalBodyContainerInner, { children: /* @__PURE__ */ jsxRuntime.jsx(ModalBodyContent, { isIncludeHeader, sizeVar, children }) })
1068
1067
  }
package/dist/index.js CHANGED
@@ -939,12 +939,11 @@ var ScrollArea = forwardRef((_a, ref) => {
939
939
  }, [onResize]);
940
940
  return /* @__PURE__ */ jsx(Fragment, { children: Boolean(windowWidth) && Boolean(windowHeight) && /* @__PURE__ */ jsx(
941
941
  Scrollbars,
942
- __spreadProps(__spreadValues({
942
+ __spreadProps(__spreadValues({}, rest), {
943
943
  ref: mergeRef,
944
944
  autoHide: true,
945
945
  autoHideTimeout: 1e3,
946
- autoHideDuration: 200
947
- }, rest), {
946
+ autoHideDuration: 200,
948
947
  "data-shoplflow": "ScrollArea",
949
948
  children
950
949
  })
@@ -1035,7 +1034,7 @@ var ModalBody = ({
1035
1034
  universal: true,
1036
1035
  autoHeight: !modalContainerHeight,
1037
1036
  autoHeightMin: _autoHeightMin,
1038
- autoHeightMax: "100%",
1037
+ autoHeightMax: setAutoHeightMax() - heightToDeduct,
1039
1038
  style: {},
1040
1039
  children: /* @__PURE__ */ jsx(ModalBodyContainerInner, { children: /* @__PURE__ */ jsx(ModalBodyContent, { isIncludeHeader, sizeVar, children }) })
1041
1040
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoplflow/base",
3
- "version": "0.32.44",
3
+ "version": "0.32.45",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",