@shoplflow/base 0.26.1 → 0.26.3

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
@@ -614,7 +614,7 @@ var createStackComponent2 = (stackOption) => React3.forwardRef(function Stack2(_
614
614
  margin,
615
615
  padding
616
616
  }, rest), {
617
- "data-shoplflow": "Stack",
617
+ "data-shoplflow": "StackContainer",
618
618
  children: rest.children
619
619
  })
620
620
  );
@@ -723,13 +723,19 @@ var getModalWidthFromSize = (size2) => {
723
723
  return MODAL_SIZE_M;
724
724
  }
725
725
  };
726
- var getModalBodyTopBottomPadding = (isIncludeHeader) => {
726
+ var getModalBodyTopBottomPadding = (isIncludeHeader, sizeVar) => {
727
727
  if (isIncludeHeader) {
728
728
  return react$1.css`
729
729
  padding-top: 16px;
730
730
  padding-bottom: 24px;
731
731
  `;
732
732
  }
733
+ if (sizeVar === "FULL") {
734
+ return react$1.css`
735
+ padding-top: 0;
736
+ padding-bottom: 0;
737
+ `;
738
+ }
733
739
  return react$1.css`
734
740
  padding-top: 24px;
735
741
  padding-bottom: 24px;
@@ -795,7 +801,7 @@ var BodyContainer = styled6__default.default.div`
795
801
  min-height: ${({ minHeight }) => minHeight}px;
796
802
  max-height: ${({ maxHeight }) => maxHeight}px;
797
803
  flex: 1;
798
- ${({ isIncludeHeader }) => getModalBodyTopBottomPadding(isIncludeHeader)}
804
+ ${({ isIncludeHeader, sizeVar }) => getModalBodyTopBottomPadding(isIncludeHeader, sizeVar)}
799
805
  `;
800
806
  var ModalBodyContainerInner = styled6__default.default.div`
801
807
  display: grid;
@@ -812,6 +818,9 @@ var ModalBodyContent = styled6__default.default.div`
812
818
  height: 100%;
813
819
  box-sizing: border-box;
814
820
  padding: 0 24px;
821
+ ${({ sizeVar }) => sizeVar === "FULL" && react$1.css`
822
+ padding: 0;
823
+ `};
815
824
  background: ${exports.colorTokens.neutral0};
816
825
  `;
817
826
  var FooterContainer = styled6__default.default.div`
@@ -995,21 +1004,30 @@ var ModalBody = ({
995
1004
  }
996
1005
  return autoHeightMax;
997
1006
  };
998
- return /* @__PURE__ */ jsxRuntime.jsx(BodyContainer, { isIncludeHeader, minHeight: setAutoHeightMin(), maxHeight: setAutoHeightMax(), children: /* @__PURE__ */ jsxRuntime.jsx(
999
- exports.ScrollArea,
1007
+ return /* @__PURE__ */ jsxRuntime.jsx(
1008
+ BodyContainer,
1000
1009
  {
1001
- id: `scrollbar`,
1002
- universal: true,
1003
- autoHeight: !modalContainerHeight,
1004
- autoHeightMin: setAutoHeightMin(),
1005
- autoHeightMax: setContentHeightMax(),
1006
- style: {
1007
- height: "100%",
1008
- overflow: "hidden"
1009
- },
1010
- children: /* @__PURE__ */ jsxRuntime.jsx(ModalBodyContainerInner, { children: /* @__PURE__ */ jsxRuntime.jsx(ModalBodyContent, { isIncludeHeader, sizeVar, children }) })
1010
+ isIncludeHeader,
1011
+ sizeVar,
1012
+ minHeight: setAutoHeightMin(),
1013
+ maxHeight: setAutoHeightMax(),
1014
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1015
+ exports.ScrollArea,
1016
+ {
1017
+ id: `scrollbar`,
1018
+ universal: true,
1019
+ autoHeight: !modalContainerHeight,
1020
+ autoHeightMin: setAutoHeightMin(),
1021
+ autoHeightMax: setContentHeightMax(),
1022
+ style: {
1023
+ height: "100%",
1024
+ overflow: "hidden"
1025
+ },
1026
+ children: /* @__PURE__ */ jsxRuntime.jsx(ModalBodyContainerInner, { children: /* @__PURE__ */ jsxRuntime.jsx(ModalBodyContent, { isIncludeHeader, sizeVar, children }) })
1027
+ }
1028
+ )
1011
1029
  }
1012
- ) });
1030
+ );
1013
1031
  };
1014
1032
  var ModalBody_default = ModalBody;
1015
1033
  var ModalHeader = ({ children }) => {