@shoplflow/base 0.27.3 → 0.27.5

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
@@ -920,13 +920,12 @@ var ScrollArea = React3.forwardRef((_a, ref) => {
920
920
  }, [onResize]);
921
921
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: Boolean(windowWidth) && Boolean(windowHeight) && /* @__PURE__ */ jsxRuntime.jsx(
922
922
  Scrollbars__default.default,
923
- __spreadProps(__spreadValues(__spreadProps(__spreadValues({
924
- ref: mergeRef
925
- }, rest), {
923
+ __spreadProps(__spreadValues({
924
+ ref: mergeRef,
926
925
  autoHide: true,
927
926
  autoHideTimeout: 1e3,
928
927
  autoHideDuration: 200
929
- }), rest), {
928
+ }, rest), {
930
929
  "data-shoplflow": "ScrollArea",
931
930
  children
932
931
  })
@@ -957,7 +956,7 @@ var ModalBody = ({
957
956
  const headerFooterHeight = React3.useMemo(() => getHeaderFooterHeight(), [getHeaderFooterHeight]);
958
957
  const setAutoHeightMin = () => {
959
958
  if (sizeVar === "FULL") {
960
- return windowHeight - topBottomMargin - headerFooterHeight;
959
+ return windowHeight - headerFooterHeight;
961
960
  }
962
961
  if (modalContainerHeight) {
963
962
  if (modalContainerHeight <= 1200) {
@@ -1019,10 +1018,7 @@ var ModalBody = ({
1019
1018
  autoHeight: !modalContainerHeight,
1020
1019
  autoHeightMin: setAutoHeightMin(),
1021
1020
  autoHeightMax: setContentHeightMax(),
1022
- style: {
1023
- height: "100%",
1024
- overflow: "hidden"
1025
- },
1021
+ style: {},
1026
1022
  children: /* @__PURE__ */ jsxRuntime.jsx(ModalBodyContainerInner, { children: /* @__PURE__ */ jsxRuntime.jsx(ModalBodyContent, { isIncludeHeader, sizeVar, children }) })
1027
1023
  }
1028
1024
  )