@shoplflow/base 0.24.35 → 0.25.1

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.d.cts CHANGED
@@ -375,6 +375,7 @@ declare const ModalSize: {
375
375
  readonly L: "L";
376
376
  readonly XL: "XL";
377
377
  readonly XXL: "XXL";
378
+ readonly XXXL: "XXXL";
378
379
  };
379
380
  declare type ModalSizeType = $Values<typeof ModalSize>;
380
381
  interface ModalContainerProps extends ModalContainerOptionProps, SizeVariantProps<ModalSizeType> {
package/dist/index.d.ts CHANGED
@@ -375,6 +375,7 @@ declare const ModalSize: {
375
375
  readonly L: "L";
376
376
  readonly XL: "XL";
377
377
  readonly XXL: "XXL";
378
+ readonly XXXL: "XXXL";
378
379
  };
379
380
  declare type ModalSizeType = $Values<typeof ModalSize>;
380
381
  interface ModalContainerProps extends ModalContainerOptionProps, SizeVariantProps<ModalSizeType> {
package/dist/index.js CHANGED
@@ -589,6 +589,7 @@ var MODAL_SIZE_M = 640;
589
589
  var MODAL_SIZE_L = 768;
590
590
  var MODAL_SIZE_XL = 1040;
591
591
  var MODAL_SIZE_XXL = 1280;
592
+ var MODAL_SIZE_XXXL = 1600;
592
593
  var getModalWidthFromSize = (size2) => {
593
594
  switch (size2) {
594
595
  case "XXS":
@@ -605,6 +606,8 @@ var getModalWidthFromSize = (size2) => {
605
606
  return MODAL_SIZE_XL;
606
607
  case "XXL":
607
608
  return MODAL_SIZE_XXL;
609
+ case "XXXL":
610
+ return MODAL_SIZE_XXXL;
608
611
  default:
609
612
  return MODAL_SIZE_M;
610
613
  }
@@ -704,7 +707,8 @@ var ModalSize = {
704
707
  M: "M",
705
708
  L: "L",
706
709
  XL: "XL",
707
- XXL: "XXL"
710
+ XXL: "XXL",
711
+ XXXL: "XXXL"
708
712
  };
709
713
  var MODAL_HEADER_KEY = Symbol("MODAL_HEADER");
710
714
  var MODAL_FOOTER_KEY = Symbol("MODAL_FOOTER");
@@ -818,7 +822,18 @@ var ModalBody = ({
818
822
  const heightOverMaxHeight = 1200 - topBottomMargin - headerFooterHeight;
819
823
  return windowHeight > 1200 ? heightOverMaxHeight : heightUnderMaxHeight;
820
824
  }
821
- return "100%";
825
+ return 0;
826
+ };
827
+ const setContentHeightMax = () => {
828
+ let autoHeightMax = setAutoHeightMax();
829
+ autoHeightMax = autoHeightMax - 24;
830
+ if (isIncludeHeader) {
831
+ autoHeightMax = autoHeightMax - 24;
832
+ }
833
+ if (!isIncludeHeader) {
834
+ autoHeightMax = autoHeightMax - 16;
835
+ }
836
+ return autoHeightMax;
822
837
  };
823
838
  return /* @__PURE__ */ jsx(BodyContainer, { isIncludeHeader, minHeight: setAutoHeightMin(), maxHeight: setAutoHeightMax(), children: /* @__PURE__ */ jsx(
824
839
  ScrollArea_default,
@@ -827,7 +842,7 @@ var ModalBody = ({
827
842
  universal: true,
828
843
  autoHeight: !modalContainerHeight,
829
844
  autoHeightMin: setAutoHeightMin(),
830
- autoHeightMax: setAutoHeightMax(),
845
+ autoHeightMax: setContentHeightMax(),
831
846
  style: {
832
847
  height: "100%",
833
848
  overflow: "hidden"