@shoplflow/base 0.25.4 → 0.26.0

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
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var React2 = require('react');
4
- var styled5 = require('@emotion/styled');
3
+ var React3 = require('react');
4
+ var styled6 = require('@emotion/styled');
5
5
  var framerMotion = require('framer-motion');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var reactDom$1 = require('react-dom');
@@ -34,8 +34,8 @@ function _interopNamespace(e) {
34
34
  return Object.freeze(n);
35
35
  }
36
36
 
37
- var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
38
- var styled5__default = /*#__PURE__*/_interopDefault(styled5);
37
+ var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
38
+ var styled6__default = /*#__PURE__*/_interopDefault(styled6);
39
39
  var Scrollbars__default = /*#__PURE__*/_interopDefault(Scrollbars);
40
40
  var ShoplAssets__namespace = /*#__PURE__*/_interopNamespace(ShoplAssets);
41
41
  var HadaAssets__namespace = /*#__PURE__*/_interopNamespace(HadaAssets);
@@ -144,13 +144,13 @@ var require_classnames = __commonJS({
144
144
  }
145
145
  });
146
146
  exports.useDomain = (domain = "SHOPL") => {
147
- const [domainType, setDomainType] = React2.useState(void 0);
148
- React2.useEffect(() => {
147
+ const [domainType, setDomainType] = React3.useState(void 0);
148
+ React3.useEffect(() => {
149
149
  if (domain) {
150
150
  setDomainType(domain);
151
151
  }
152
152
  }, [domain]);
153
- React2.useEffect(() => {
153
+ React3.useEffect(() => {
154
154
  if (!domainType) {
155
155
  return;
156
156
  }
@@ -180,7 +180,7 @@ var fadeInOut = {
180
180
  }
181
181
  }
182
182
  };
183
- var BackDropStyled = styled5__default.default(framerMotion.motion.div)`
183
+ var BackDropStyled = styled6__default.default(framerMotion.motion.div)`
184
184
  display: flex;
185
185
  align-items: center;
186
186
  justify-content: center;
@@ -222,7 +222,7 @@ var getSizeBySizeVariant = (size2) => {
222
222
  return "32px";
223
223
  }
224
224
  };
225
- var StyledAvatar = styled5__default.default.picture`
225
+ var StyledAvatar = styled6__default.default.picture`
226
226
  display: flex;
227
227
  align-items: center;
228
228
  justify-content: center;
@@ -232,7 +232,7 @@ var StyledAvatar = styled5__default.default.picture`
232
232
  overflow: hidden;
233
233
  border-radius: 50%;
234
234
  `;
235
- var StyledAvatarContainer = styled5__default.default.div`
235
+ var StyledAvatarContainer = styled6__default.default.div`
236
236
  display: flex;
237
237
  align-items: center;
238
238
  justify-content: center;
@@ -240,11 +240,11 @@ var StyledAvatarContainer = styled5__default.default.div`
240
240
  height: fit-content;
241
241
  position: relative;
242
242
  `;
243
- var StyledAvatarImage = styled5__default.default.img`
243
+ var StyledAvatarImage = styled6__default.default.img`
244
244
  width: 100%;
245
245
  height: 100%;
246
246
  `;
247
- var StyledAvatarBadge = styled5__default.default.div`
247
+ var StyledAvatarBadge = styled6__default.default.div`
248
248
  position: absolute;
249
249
  display: flex;
250
250
  align-items: center;
@@ -474,7 +474,7 @@ exports.typographyTokens = {
474
474
  };
475
475
 
476
476
  // src/components/Stack/Stack.styled.ts
477
- exports.StyledStack = styled5__default.default.div`
477
+ exports.StyledStack = styled6__default.default.div`
478
478
  display: flex;
479
479
  width: ${({ width }) => width};
480
480
  max-width: ${({ maxWidth }) => maxWidth};
@@ -492,7 +492,7 @@ exports.StyledStack = styled5__default.default.div`
492
492
  border-radius: ${({ radius }) => radius && exports.borderRadiusTokens[radius]};
493
493
  animation: 0.2s all ease-in-out;
494
494
  `;
495
- var createStackComponent = (stackOption) => React2.forwardRef(function Stack2(_h, ref) {
495
+ var createStackComponent = (stackOption) => React3.forwardRef(function Stack2(_h, ref) {
496
496
  var _i = _h, {
497
497
  as = "div",
498
498
  spacing = stackOption == null ? void 0 : stackOption.spacing,
@@ -546,6 +546,86 @@ exports.MotionStack = framerMotion.motion(Stack);
546
546
  exports.MotionStack.Vertical = framerMotion.motion(Stack.Vertical);
547
547
  exports.MotionStack.Horizontal = framerMotion.motion(Stack.Horizontal);
548
548
  exports.Stack = Stack;
549
+ exports.StyledStackContainer = styled6__default.default.div`
550
+ display: flex;
551
+ width: ${({ width }) => width};
552
+ max-width: ${({ maxWidth }) => maxWidth};
553
+ min-width: ${({ minWidth }) => minWidth};
554
+ height: ${({ height }) => height};
555
+ max-height: ${({ maxHeight }) => maxHeight};
556
+ min-height: ${({ minHeight }) => minHeight};
557
+ flex-direction: ${({ direction }) => direction};
558
+ align-items: ${({ align }) => align};
559
+ justify-content: ${({ justify }) => justify};
560
+ gap: ${({ spacing }) => spacing && exports.spacingTokens[spacing]};
561
+ flex-wrap: ${({ flexWrap }) => flexWrap};
562
+ flex: ${({ flex }) => flex};
563
+ padding: ${({ padding }) => padding};
564
+ margin: ${({ margin }) => margin};
565
+ background: ${({ background: background2 }) => background2 ? exports.colorTokens[background2] : "transparent"};
566
+ border-radius: ${({ radius }) => radius && exports.borderRadiusTokens[radius]};
567
+ animation: 0.2s all ease-in-out;
568
+ `;
569
+ var createStackComponent2 = (stackOption) => React3.forwardRef(function Stack2(_j, ref) {
570
+ var _k = _j, {
571
+ as = "div",
572
+ spacing = stackOption == null ? void 0 : stackOption.spacing,
573
+ direction = ((_a) => (_a = stackOption == null ? void 0 : stackOption.direction) != null ? _a : "column")(),
574
+ align = ((_b) => (_b = stackOption == null ? void 0 : stackOption.align) != null ? _b : "flex-start")(),
575
+ justify = ((_c) => (_c = stackOption == null ? void 0 : stackOption.justify) != null ? _c : "flex-start")(),
576
+ width = ((_d) => (_d = stackOption == null ? void 0 : stackOption.width) != null ? _d : "initial")(),
577
+ height = ((_e) => (_e = stackOption == null ? void 0 : stackOption.height) != null ? _e : "initial")(),
578
+ flexWrap = ((_f) => (_f = stackOption == null ? void 0 : stackOption.flexWrap) != null ? _f : "initial")(),
579
+ flex = ((_g) => (_g = stackOption == null ? void 0 : stackOption.flex) != null ? _g : "initial")(),
580
+ radius = stackOption == null ? void 0 : stackOption.radius,
581
+ margin = ((_h) => (_h = stackOption == null ? void 0 : stackOption.margin) != null ? _h : "initial")(),
582
+ padding = ((_i) => (_i = stackOption == null ? void 0 : stackOption.padding) != null ? _i : "initial")(),
583
+ background: background2 = stackOption == null ? void 0 : stackOption.background
584
+ } = _k, rest = __objRest(_k, [
585
+ "as",
586
+ "spacing",
587
+ "direction",
588
+ "align",
589
+ "justify",
590
+ "width",
591
+ "height",
592
+ "flexWrap",
593
+ "flex",
594
+ "radius",
595
+ "margin",
596
+ "padding",
597
+ "background"
598
+ ]);
599
+ return /* @__PURE__ */ jsxRuntime.jsx(
600
+ exports.StyledStackContainer,
601
+ __spreadProps(__spreadValues({
602
+ as,
603
+ spacing,
604
+ ref,
605
+ direction,
606
+ align,
607
+ justify,
608
+ width,
609
+ height,
610
+ flexWrap,
611
+ flex,
612
+ background: background2,
613
+ radius,
614
+ margin,
615
+ padding
616
+ }, rest), {
617
+ "data-shoplflow": "Stack",
618
+ children: rest.children
619
+ })
620
+ );
621
+ });
622
+ var StackContainer = createStackComponent2();
623
+ StackContainer.Vertical = createStackComponent2({ direction: "column" });
624
+ StackContainer.Horizontal = createStackComponent2({ direction: "row" });
625
+ exports.MotionStackContainer = framerMotion.motion(StackContainer);
626
+ exports.MotionStackContainer.Vertical = framerMotion.motion(StackContainer.Vertical);
627
+ exports.MotionStackContainer.Horizontal = framerMotion.motion(StackContainer.Horizontal);
628
+ exports.StackContainer = StackContainer;
549
629
  var setEllipsis = (maxLines) => {
550
630
  return react$1.css`
551
631
  display: -webkit-box;
@@ -557,7 +637,7 @@ var setEllipsis = (maxLines) => {
557
637
  text-overflow: ellipsis;
558
638
  `;
559
639
  };
560
- var StyledText = styled5__default.default.span`
640
+ var StyledText = styled6__default.default.span`
561
641
  display: ${({ display }) => display && display};
562
642
  align-items: center;
563
643
  color: ${({ color }) => color && exports.colorTokens[color]};
@@ -574,7 +654,7 @@ var StyledText = styled5__default.default.span`
574
654
  word-break: ${wordBreak};
575
655
  `};
576
656
  `;
577
- var Text = React2.forwardRef(
657
+ var Text = React3.forwardRef(
578
658
  (_a, ref) => {
579
659
  var _b = _a, {
580
660
  children,
@@ -655,6 +735,16 @@ var getModalBodyTopBottomPadding = (isIncludeHeader) => {
655
735
  padding-bottom: 24px;
656
736
  `;
657
737
  };
738
+ var getFullScreenModal = () => {
739
+ return react$1.css`
740
+ min-height: 100vh;
741
+ max-height: 100vh;
742
+ width: 100vw;
743
+ max-width: 100vw;
744
+ border-radius: 0;
745
+ box-shadow: none;
746
+ `;
747
+ };
658
748
  var checkMaxHeight = (height, viewport) => {
659
749
  const topBottomMargin = 64;
660
750
  if (height > 1200) {
@@ -665,7 +755,7 @@ var checkMaxHeight = (height, viewport) => {
665
755
  }
666
756
  return height - topBottomMargin;
667
757
  };
668
- var Container = styled5__default.default.div`
758
+ var Container = styled6__default.default.div`
669
759
  display: flex;
670
760
  flex-direction: column;
671
761
  border-radius: ${exports.borderRadiusTokens.borderRadius08};
@@ -676,10 +766,16 @@ var Container = styled5__default.default.div`
676
766
  height: ${({ height, viewport }) => height ? `${checkMaxHeight(height, viewport)}px` : "initial"};
677
767
  min-height: 180px;
678
768
  max-height: 1200px;
769
+
679
770
  width: ${({ sizeVar }) => getModalWidthFromSize(sizeVar)}px;
680
771
  max-width: ${({ sizeVar }) => getModalWidthFromSize(sizeVar)}px;
772
+ ${({ sizeVar }) => sizeVar && window.innerWidth <= getModalWidthFromSize(sizeVar) + 40 && react$1.css`
773
+ width: ${window.innerWidth - 40}px;
774
+ max-width: ${window.innerWidth - 40}px;
775
+ `};
776
+ ${({ sizeVar }) => sizeVar === "FULL" && getFullScreenModal()};
681
777
  `;
682
- var HeaderContainer = styled5__default.default.div`
778
+ var HeaderContainer = styled6__default.default.div`
683
779
  display: flex;
684
780
  width: 100%;
685
781
  min-height: 64px;
@@ -688,7 +784,7 @@ var HeaderContainer = styled5__default.default.div`
688
784
  padding: 12px 16px 12px 24px;
689
785
  gap: 10px;
690
786
  `;
691
- var BodyContainer = styled5__default.default.div`
787
+ var BodyContainer = styled6__default.default.div`
692
788
  display: flex;
693
789
  width: 100%;
694
790
  height: 100%;
@@ -701,7 +797,7 @@ var BodyContainer = styled5__default.default.div`
701
797
  flex: 1;
702
798
  ${({ isIncludeHeader }) => getModalBodyTopBottomPadding(isIncludeHeader)}
703
799
  `;
704
- var ModalBodyContainerInner = styled5__default.default.div`
800
+ var ModalBodyContainerInner = styled6__default.default.div`
705
801
  display: grid;
706
802
  align-self: stretch;
707
803
  flex-direction: column;
@@ -710,7 +806,7 @@ var ModalBodyContainerInner = styled5__default.default.div`
710
806
  height: 100%;
711
807
  box-sizing: border-box;
712
808
  `;
713
- var ModalBodyContent = styled5__default.default.div`
809
+ var ModalBodyContent = styled6__default.default.div`
714
810
  display: flex;
715
811
  flex-direction: column;
716
812
  height: 100%;
@@ -718,7 +814,7 @@ var ModalBodyContent = styled5__default.default.div`
718
814
  padding: 0 24px;
719
815
  background: ${exports.colorTokens.neutral0};
720
816
  `;
721
- var FooterContainer = styled5__default.default.div`
817
+ var FooterContainer = styled6__default.default.div`
722
818
  display: flex;
723
819
  width: 100%;
724
820
  flex-direction: row;
@@ -739,13 +835,14 @@ exports.ModalSize = {
739
835
  L: "L",
740
836
  XL: "XL",
741
837
  XXL: "XXL",
742
- XXXL: "XXXL"
838
+ XXXL: "XXXL",
839
+ FULL: "FULL"
743
840
  };
744
841
  exports.MODAL_HEADER_KEY = Symbol("MODAL_HEADER");
745
842
  exports.MODAL_FOOTER_KEY = Symbol("MODAL_FOOTER");
746
843
  var useViewportSizeObserver = () => {
747
- const [size2, setSize] = React2.useState({ width: window.innerWidth, height: window.innerHeight });
748
- React2.useEffect(() => {
844
+ const [size2, setSize] = React3.useState({ width: window.innerWidth, height: window.innerHeight });
845
+ React3.useEffect(() => {
749
846
  const handleResize = () => {
750
847
  setSize({ width: window.innerWidth, height: window.innerHeight });
751
848
  };
@@ -760,9 +857,9 @@ var ModalContainer = (_a) => {
760
857
  const { height: windowHeight } = useViewportSizeObserver();
761
858
  const topBottomMargin = 64;
762
859
  const heightWidthMargin = height ? height + topBottomMargin : void 0;
763
- const childrenArray = React2__namespace.default.Children.toArray(children);
860
+ const childrenArray = React3__namespace.default.Children.toArray(children);
764
861
  const findHeader = childrenArray.find((child) => {
765
- if (!React2__namespace.default.isValidElement(child)) {
862
+ if (!React3__namespace.default.isValidElement(child)) {
766
863
  return child;
767
864
  }
768
865
  if (child.type[exports.MODAL_HEADER_KEY]) {
@@ -770,18 +867,18 @@ var ModalContainer = (_a) => {
770
867
  }
771
868
  });
772
869
  const findFooter = childrenArray.find((child) => {
773
- if (!React2__namespace.default.isValidElement(child)) {
870
+ if (!React3__namespace.default.isValidElement(child)) {
774
871
  return child;
775
872
  }
776
873
  if (child.type[exports.MODAL_FOOTER_KEY]) {
777
874
  return child;
778
875
  }
779
876
  });
780
- const addPropInChildren = React2__namespace.default.Children.map(childrenArray, (child) => {
781
- if (!React2__namespace.default.isValidElement(child)) {
877
+ const addPropInChildren = React3__namespace.default.Children.map(childrenArray, (child) => {
878
+ if (!React3__namespace.default.isValidElement(child)) {
782
879
  return child;
783
880
  }
784
- return React2__namespace.default.cloneElement(child, {
881
+ return React3__namespace.default.cloneElement(child, {
785
882
  isIncludeHeader: Boolean(findHeader),
786
883
  isIncludeFooter: Boolean(findFooter),
787
884
  sizeVar: rest.sizeVar,
@@ -796,17 +893,17 @@ var ModalFooter = ({ children }) => {
796
893
  };
797
894
  ModalFooter[exports.MODAL_FOOTER_KEY] = true;
798
895
  var ModalFooter_default = ModalFooter;
799
- var ScrollArea = React2.forwardRef((_a, ref) => {
896
+ var ScrollArea = React3.forwardRef((_a, ref) => {
800
897
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
801
- const scrollRef = React2.useRef(null);
898
+ const scrollRef = React3.useRef(null);
802
899
  const mergeRef = utils.useMergeRefs(scrollRef, ref);
803
- const [windowWidth, setWindowWidth] = React2.useState(window.innerWidth);
804
- const [windowHeight, setWindowHeight] = React2.useState(window.innerHeight);
805
- const onResize = React2.useCallback(() => {
900
+ const [windowWidth, setWindowWidth] = React3.useState(window.innerWidth);
901
+ const [windowHeight, setWindowHeight] = React3.useState(window.innerHeight);
902
+ const onResize = React3.useCallback(() => {
806
903
  setWindowWidth(window.innerWidth);
807
904
  setWindowHeight(window.innerHeight);
808
905
  }, []);
809
- React2.useEffect(() => {
906
+ React3.useEffect(() => {
810
907
  window.addEventListener("resize", onResize);
811
908
  return () => {
812
909
  window.removeEventListener("resize", onResize);
@@ -838,7 +935,7 @@ var ModalBody = ({
838
935
  const headerHeight = 64;
839
936
  const footerHeight = 64;
840
937
  const topBottomMargin = 64;
841
- const getHeaderFooterHeight = React2.useCallback(() => {
938
+ const getHeaderFooterHeight = React3.useCallback(() => {
842
939
  let result = 0;
843
940
  if (isIncludeHeader) {
844
941
  result += headerHeight;
@@ -848,7 +945,7 @@ var ModalBody = ({
848
945
  }
849
946
  return result;
850
947
  }, [isIncludeFooter, isIncludeHeader]);
851
- const headerFooterHeight = React2.useMemo(() => getHeaderFooterHeight(), [getHeaderFooterHeight]);
948
+ const headerFooterHeight = React3.useMemo(() => getHeaderFooterHeight(), [getHeaderFooterHeight]);
852
949
  const setAutoHeightMin = () => {
853
950
  if (modalContainerHeight) {
854
951
  if (modalContainerHeight <= 1200) {
@@ -864,6 +961,9 @@ var ModalBody = ({
864
961
  };
865
962
  const setAutoHeightMax = () => {
866
963
  if (modalContainerHeight) {
964
+ if (sizeVar === "FULL") {
965
+ return windowHeight;
966
+ }
867
967
  if (modalContainerHeight > 1200) {
868
968
  return 1200 - topBottomMargin - headerFooterHeight;
869
969
  }
@@ -914,28 +1014,28 @@ var ModalHeader = ({ children }) => {
914
1014
  };
915
1015
  ModalHeader[exports.MODAL_HEADER_KEY] = true;
916
1016
  var ModalHeader_default = ModalHeader;
917
- exports.ModalHandlerContext = React2.createContext({
1017
+ exports.ModalHandlerContext = React3.createContext({
918
1018
  addModal: utils.noop,
919
1019
  removeModal: utils.noop
920
1020
  });
921
- exports.ModalContext = React2.createContext([]);
1021
+ exports.ModalContext = React3.createContext([]);
922
1022
 
923
1023
  // src/components/Modal/hooks/useModalValue.ts
924
1024
  exports.useModalValue = () => {
925
- const modal = React2.useContext(exports.ModalContext);
1025
+ const modal = React3.useContext(exports.ModalContext);
926
1026
  return {
927
1027
  modal
928
1028
  };
929
1029
  };
930
1030
  exports.useHandleModal = () => {
931
- const { addModal, removeModal } = React2.useContext(exports.ModalHandlerContext);
1031
+ const { addModal, removeModal } = React3.useContext(exports.ModalHandlerContext);
932
1032
  return {
933
1033
  addModal,
934
1034
  removeModal
935
1035
  };
936
1036
  };
937
1037
  var ModalProvider = ({ children }) => {
938
- const [openedModals, setOpenedModals] = React2.useState([]);
1038
+ const [openedModals, setOpenedModals] = React3.useState([]);
939
1039
  const addModal = (component, id) => {
940
1040
  setOpenedModals((modals) => {
941
1041
  if (modals) {
@@ -981,8 +1081,8 @@ var ModalProvider = ({ children }) => {
981
1081
  return;
982
1082
  }
983
1083
  };
984
- const dispatch = React2.useMemo(() => ({ addModal, removeModal }), []);
985
- React2.useEffect(() => {
1084
+ const dispatch = React3.useMemo(() => ({ addModal, removeModal }), []);
1085
+ React3.useEffect(() => {
986
1086
  if (openedModals.length !== 1) {
987
1087
  return;
988
1088
  }
@@ -991,7 +1091,7 @@ var ModalProvider = ({ children }) => {
991
1091
  document.body.style.cssText = "overflow:unset";
992
1092
  };
993
1093
  }, [openedModals.length]);
994
- React2.useEffect(() => {
1094
+ React3.useEffect(() => {
995
1095
  const closeAllModals = () => {
996
1096
  setOpenedModals([]);
997
1097
  };
@@ -1011,7 +1111,7 @@ exports.Modal = {
1011
1111
  Body: ModalBody_default,
1012
1112
  Footer: ModalFooter_default
1013
1113
  };
1014
- var SwitchContainer = styled5__default.default.div`
1114
+ var SwitchContainer = styled6__default.default.div`
1015
1115
  width: 32px;
1016
1116
  height: 32px;
1017
1117
  border-radius: 6px;
@@ -1024,7 +1124,7 @@ var SwitchContainer = styled5__default.default.div`
1024
1124
  background: ${({ isDisabled }) => !isDisabled && exports.colorTokens.neutral400_5};
1025
1125
  }
1026
1126
  `;
1027
- var StyledSwitch = styled5__default.default.input`
1127
+ var StyledSwitch = styled6__default.default.input`
1028
1128
  appearance: none;
1029
1129
  border: none;
1030
1130
  border-radius: 12px;
@@ -1065,17 +1165,17 @@ var StyledSwitch = styled5__default.default.input`
1065
1165
  }
1066
1166
  `;
1067
1167
  var useOnToggle = (selected, defaultSelected) => {
1068
- const [isToggle, setIsToggle] = React2.useState(false);
1168
+ const [isToggle, setIsToggle] = React3.useState(false);
1069
1169
  const isControlled = selected !== void 0;
1070
1170
  const handleToggle = () => {
1071
1171
  !isControlled && setIsToggle((prev) => !prev);
1072
1172
  };
1073
- React2.useEffect(() => {
1173
+ React3.useEffect(() => {
1074
1174
  if (isControlled) {
1075
1175
  setIsToggle(selected);
1076
1176
  }
1077
1177
  }, [isControlled, selected]);
1078
- React2.useEffect(() => {
1178
+ React3.useEffect(() => {
1079
1179
  if (!isControlled && defaultSelected !== void 0) {
1080
1180
  setIsToggle(defaultSelected);
1081
1181
  }
@@ -1174,7 +1274,7 @@ var solidStyle = ({
1174
1274
  }
1175
1275
  `};
1176
1276
  `;
1177
- var StyledChip = styled5__default.default.button`
1277
+ var StyledChip = styled6__default.default.button`
1178
1278
  display: flex;
1179
1279
  align-items: center;
1180
1280
  justify-content: center;
@@ -1304,7 +1404,7 @@ var getStyleBySizeVar = (sizeVar) => {
1304
1404
  `;
1305
1405
  }
1306
1406
  };
1307
- var StyledChipButton = styled5__default.default.button`
1407
+ var StyledChipButton = styled6__default.default.button`
1308
1408
  display: flex;
1309
1409
  align-items: center;
1310
1410
  justify-content: center;
@@ -1423,7 +1523,7 @@ var getStyleBySizeVar2 = (sizeVar) => {
1423
1523
  `;
1424
1524
  }
1425
1525
  };
1426
- var StyledButton = styled5__default.default.button`
1526
+ var StyledButton = styled6__default.default.button`
1427
1527
  display: flex;
1428
1528
  align-items: center;
1429
1529
  justify-content: center;
@@ -1437,7 +1537,7 @@ var StyledButton = styled5__default.default.button`
1437
1537
  ${({ sizeVar }) => getStyleBySizeVar2(sizeVar)};
1438
1538
  ${({ disabled }) => getDisabledStyle(disabled)};
1439
1539
  `;
1440
- var Button = React2.forwardRef(
1540
+ var Button = React3.forwardRef(
1441
1541
  (_a, ref) => {
1442
1542
  var _b = _a, {
1443
1543
  styleVar = "PRIMARY",
@@ -1576,7 +1676,7 @@ var getStyleByStyleVar2 = (styleVar, color, isHovered) => {
1576
1676
  `;
1577
1677
  }
1578
1678
  };
1579
- var StyledIconButton = styled5__default.default.button`
1679
+ var StyledIconButton = styled6__default.default.button`
1580
1680
  display: flex;
1581
1681
  flex-shrink: 0;
1582
1682
  border-radius: ${exports.borderRadiusTokens.borderRadius06};
@@ -1592,10 +1692,10 @@ var StyledIconButton = styled5__default.default.button`
1592
1692
  height: 20px;
1593
1693
  }
1594
1694
  `;
1595
- var IconButton = React2.forwardRef(
1695
+ var IconButton = React3.forwardRef(
1596
1696
  (_a, ref) => {
1597
1697
  var _b = _a, { styleVar, sizeVar, disabled, children, color, onMouseEnter, onMouseLeave } = _b, rest = __objRest(_b, ["styleVar", "sizeVar", "disabled", "children", "color", "onMouseEnter", "onMouseLeave"]);
1598
- const [isHovered, setIsHovered] = React2.useState(false);
1698
+ const [isHovered, setIsHovered] = React3.useState(false);
1599
1699
  const handleOnMouseEnter = (e) => {
1600
1700
  setIsHovered(true);
1601
1701
  onMouseEnter && onMouseEnter(e);
@@ -1654,7 +1754,7 @@ var alertStyle = react$1.css`
1654
1754
  fill: ${exports.colorTokens.red300};
1655
1755
  }
1656
1756
  `;
1657
- var StyledCallout = styled5__default.default.div`
1757
+ var StyledCallout = styled6__default.default.div`
1658
1758
  display: flex;
1659
1759
  justify-content: flex-start;
1660
1760
  align-items: start;
@@ -1664,14 +1764,14 @@ var StyledCallout = styled5__default.default.div`
1664
1764
  ${({ styleVar }) => styleVar === "INFORMATION" && informationStyle}
1665
1765
  ${({ styleVar }) => styleVar === "ALERT" && alertStyle}
1666
1766
  `;
1667
- var StyledCalloutIcon = styled5__default.default.svg`
1767
+ var StyledCalloutIcon = styled6__default.default.svg`
1668
1768
  display: flex;
1669
1769
  height: 20px;
1670
1770
  min-height: 20px;
1671
1771
  width: 20px;
1672
1772
  min-width: 20px;
1673
1773
  `;
1674
- styled5__default.default.div`
1774
+ styled6__default.default.div`
1675
1775
  padding: 2px 0;
1676
1776
  `;
1677
1777
  var Callout = (_a) => {
@@ -1694,13 +1794,13 @@ exports.CalloutTypes = {
1694
1794
  INFORMATION: "INFORMATION",
1695
1795
  ALERT: "ALERT"
1696
1796
  };
1697
- var StyledPopper = styled5__default.default.div`
1797
+ var StyledPopper = styled6__default.default.div`
1698
1798
  width: ${({ width }) => width != null ? width : "fit-content"};
1699
1799
  height: ${({ height }) => height && height};
1700
1800
  `;
1701
- var PopperContext = React2.createContext(null);
1801
+ var PopperContext = React3.createContext(null);
1702
1802
  var usePopper = () => {
1703
- const context = React2__namespace.useContext(PopperContext);
1803
+ const context = React3__namespace.useContext(PopperContext);
1704
1804
  if (context === null) {
1705
1805
  throw new Error("usePopper must be used within a PopperProvider");
1706
1806
  }
@@ -1728,7 +1828,7 @@ function mergeRefs(...refs) {
1728
1828
  };
1729
1829
  }
1730
1830
  function useMergeRefs2(...refs) {
1731
- return React2.useMemo(() => mergeRefs(...refs), refs);
1831
+ return React3.useMemo(() => mergeRefs(...refs), refs);
1732
1832
  }
1733
1833
  var Popper = ({
1734
1834
  placement,
@@ -1738,7 +1838,7 @@ var Popper = ({
1738
1838
  middlewares,
1739
1839
  children
1740
1840
  }) => {
1741
- const [isOpen, setIsOpen] = React2.useState(false);
1841
+ const [isOpen, setIsOpen] = React3.useState(false);
1742
1842
  const _a = reactDom.useFloating({
1743
1843
  strategy,
1744
1844
  placement,
@@ -1759,18 +1859,18 @@ var Popper = ({
1759
1859
  }
1760
1860
  );
1761
1861
  };
1762
- exports.PopperTrigger = React2.forwardRef(
1862
+ exports.PopperTrigger = React3.forwardRef(
1763
1863
  (_a, ref) => {
1764
1864
  var _b = _a, { children, isOpen = false } = _b, rest = __objRest(_b, ["children", "isOpen"]);
1765
1865
  const { setReference, setIsOpen } = usePopper();
1766
1866
  const refs = useMergeRefs2(ref, setReference);
1767
- React2.useEffect(() => {
1867
+ React3.useEffect(() => {
1768
1868
  setIsOpen(isOpen);
1769
1869
  }, [isOpen, setIsOpen]);
1770
1870
  return /* @__PURE__ */ jsxRuntime.jsx(StyledPopper, __spreadProps(__spreadValues({ ref: refs, "data-shoplflow": "Popper" }, rest), { children }));
1771
1871
  }
1772
1872
  );
1773
- exports.PopperPortal = React2.forwardRef(
1873
+ exports.PopperPortal = React3.forwardRef(
1774
1874
  ({ children, animation: initialAnimation }, ref) => {
1775
1875
  const { floatingStyles, setFloating, isOpen } = usePopper();
1776
1876
  const animation = initialAnimation != null ? initialAnimation : fadeInOut;
@@ -1856,10 +1956,10 @@ var getDropdownIconSizeBySizeVar = (size2) => {
1856
1956
  `;
1857
1957
  }
1858
1958
  };
1859
- var StyledDropdown = styled5__default.default.div`
1959
+ var StyledDropdown = styled6__default.default.div`
1860
1960
  width: ${({ width }) => width};
1861
1961
  `;
1862
- var StyledDropdownContent = styled5__default.default.div`
1962
+ var StyledDropdownContent = styled6__default.default.div`
1863
1963
  display: flex;
1864
1964
  flex-direction: column;
1865
1965
  background: ${exports.colorTokens.neutral0};
@@ -1868,7 +1968,7 @@ var StyledDropdownContent = styled5__default.default.div`
1868
1968
  border-radius: 6px;
1869
1969
  box-shadow: ${exports.boxShadowTokens.dropShadow};
1870
1970
  `;
1871
- var StyledDropdownButton = styled5__default.default.button`
1971
+ var StyledDropdownButton = styled6__default.default.button`
1872
1972
  display: flex;
1873
1973
  flex-direction: row;
1874
1974
  align-items: center;
@@ -1883,16 +1983,16 @@ var StyledDropdownButton = styled5__default.default.button`
1883
1983
  cursor: not-allowed;
1884
1984
  `}
1885
1985
  `;
1886
- var DropdownButtonIcon = styled5__default.default(framerMotion.motion.div)`
1986
+ var DropdownButtonIcon = styled6__default.default(framerMotion.motion.div)`
1887
1987
  display: flex;
1888
1988
  align-items: center;
1889
1989
  justify-content: center;
1890
1990
 
1891
1991
  ${({ sizeVar }) => sizeVar && getDropdownIconSizeBySizeVar(sizeVar)};
1892
1992
  `;
1893
- var DropdownContext = React2.createContext(null);
1993
+ var DropdownContext = React3.createContext(null);
1894
1994
  var useDropdown = () => {
1895
- const context = React2.useContext(DropdownContext);
1995
+ const context = React3.useContext(DropdownContext);
1896
1996
  if (context === null) {
1897
1997
  throw new Error("useDropdown must be used within a DropdownProvider");
1898
1998
  }
@@ -1936,7 +2036,7 @@ var getStyleByType = ({
1936
2036
  max-height: ${maxHeight != null ? maxHeight : "initial"};
1937
2037
  `;
1938
2038
  };
1939
- var InputWrapper = styled5__default.default.label`
2039
+ var InputWrapper = styled6__default.default.label`
1940
2040
  position: relative;
1941
2041
  display: flex;
1942
2042
  align-items: center;
@@ -1980,7 +2080,7 @@ var getIconSize = (size2) => {
1980
2080
  return "fit-content";
1981
2081
  }
1982
2082
  };
1983
- exports.StyledIcon = styled5__default.default.svg`
2083
+ exports.StyledIcon = styled6__default.default.svg`
1984
2084
  width: ${({ sizeVar }) => sizeVar && getIconSize(sizeVar)};
1985
2085
  min-width: ${({ sizeVar }) => sizeVar && getIconSize(sizeVar)};
1986
2086
  height: ${({ sizeVar }) => sizeVar && getIconSize(sizeVar)};
@@ -1989,16 +2089,16 @@ exports.StyledIcon = styled5__default.default.svg`
1989
2089
  fill: ${({ color }) => color && exports.colorTokens[color]};
1990
2090
  }
1991
2091
  `;
1992
- var Icon = React2.forwardRef((_a, ref) => {
2092
+ var Icon = React3.forwardRef((_a, ref) => {
1993
2093
  var _b = _a, { iconSource } = _b, rest = __objRest(_b, ["iconSource"]);
1994
2094
  return /* @__PURE__ */ jsxRuntime.jsx(exports.StyledIcon, __spreadProps(__spreadValues({ as: iconSource, ref }, rest), { "data-shoplflow": "Icon" }));
1995
2095
  });
1996
2096
  exports.Icon = Icon;
1997
- var DropdownButton = React2.forwardRef(
2097
+ var DropdownButton = React3.forwardRef(
1998
2098
  (_a, ref) => {
1999
2099
  var _b = _a, { width = "100%", onClick, sizeVar = "M", isError, placeholder, value, disabled, leftSource } = _b, rest = __objRest(_b, ["width", "onClick", "sizeVar", "isError", "placeholder", "value", "disabled", "leftSource"]);
2000
2100
  const { isOpen, setIsOpen } = useDropdown();
2001
- const [isHovered, setIsHovered] = React2.useState(false);
2101
+ const [isHovered, setIsHovered] = React3.useState(false);
2002
2102
  const handleOnClick = (e) => {
2003
2103
  if (!disabled) {
2004
2104
  onClick && onClick(e);
@@ -2081,10 +2181,10 @@ var Dropdown = ({
2081
2181
  option = "CLICK",
2082
2182
  width = "100%"
2083
2183
  }) => {
2084
- const [triggerRef, setTriggerRef] = React2.useState(null);
2085
- const [size2, setSize] = React2.useState({ width: 0, height: 0 });
2086
- const [isOpen, setIsOpen] = React2.useState(false);
2087
- React2.useEffect(() => {
2184
+ const [triggerRef, setTriggerRef] = React3.useState(null);
2185
+ const [size2, setSize] = React3.useState({ width: 0, height: 0 });
2186
+ const [isOpen, setIsOpen] = React3.useState(false);
2187
+ React3.useEffect(() => {
2088
2188
  if (triggerRef) {
2089
2189
  setSize({
2090
2190
  width: triggerRef.offsetWidth,
@@ -2092,7 +2192,7 @@ var Dropdown = ({
2092
2192
  });
2093
2193
  }
2094
2194
  }, [triggerRef]);
2095
- React2.useEffect(() => {
2195
+ React3.useEffect(() => {
2096
2196
  if (initialIsOpen === void 0) {
2097
2197
  return;
2098
2198
  }
@@ -2115,7 +2215,7 @@ var Dropdown = ({
2115
2215
  Dropdown.Button = DropdownButton;
2116
2216
  Dropdown.Content = DropdownContent;
2117
2217
  exports.Dropdown = Dropdown;
2118
- var Container2 = styled5__default.default.div`
2218
+ var Container2 = styled6__default.default.div`
2119
2219
  display: flex;
2120
2220
  align-items: center;
2121
2221
  justify-content: center;
@@ -2123,7 +2223,7 @@ var Container2 = styled5__default.default.div`
2123
2223
  height: 24px;
2124
2224
  padding: 4px;
2125
2225
  `;
2126
- var IconButton2 = styled5__default.default.button`
2226
+ var IconButton2 = styled6__default.default.button`
2127
2227
  display: flex;
2128
2228
  width: 16px;
2129
2229
  height: 16px;
@@ -2143,7 +2243,7 @@ var IconButton2 = styled5__default.default.button`
2143
2243
  }
2144
2244
  `;
2145
2245
  var MUNUS_BUTTON_SYMBOL_KEY = Symbol("SHOPLFLOW_MUNUS_BUTTON");
2146
- var MinusButton = React2.forwardRef((_a, ref) => {
2246
+ var MinusButton = React3.forwardRef((_a, ref) => {
2147
2247
  var _b = _a, { onClick, color = "neutral300" } = _b, rest = __objRest(_b, ["onClick", "color"]);
2148
2248
  return /* @__PURE__ */ jsxRuntime.jsx(Container2, { "data-shoplflow": "minusButton", children: /* @__PURE__ */ jsxRuntime.jsx(IconButton2, __spreadProps(__spreadValues({ color, onClick, ref }, rest), { children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
2149
2249
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -2230,7 +2330,7 @@ var getStylesByStyleVariant = (styleVariant, isSelected, isHovered) => {
2230
2330
  return "";
2231
2331
  }
2232
2332
  };
2233
- var StyledCheckbox = styled5__default.default.button`
2333
+ var StyledCheckbox = styled6__default.default.button`
2234
2334
  display: flex;
2235
2335
  align-items: center;
2236
2336
  justify-content: center;
@@ -2245,7 +2345,7 @@ var StyledCheckbox = styled5__default.default.button`
2245
2345
  ${({ styleVar, isSelected, isHovered }) => getStylesByStyleVariant(styleVar, isSelected, isHovered)};
2246
2346
  ${({ disabled }) => getDisabledStyle(disabled)}
2247
2347
  `;
2248
- var Container3 = styled5__default.default.button`
2348
+ var Container3 = styled6__default.default.button`
2249
2349
  display: flex;
2250
2350
  align-items: center;
2251
2351
  justify-content: center;
@@ -2274,7 +2374,7 @@ var Checkbox = (_a) => {
2274
2374
  "styleVar"
2275
2375
  ]);
2276
2376
  const [selected, toggleSelected] = useOnToggle(isSelected, defaultSelected);
2277
- const [isHovered, toggleHovered] = React2.useState(false);
2377
+ const [isHovered, toggleHovered] = React3.useState(false);
2278
2378
  const handleMouseLeave = (e) => {
2279
2379
  toggleHovered(false);
2280
2380
  onMouseLeave && onMouseLeave(e);
@@ -2331,7 +2431,7 @@ var getSelectedStyle = (isHovered) => {
2331
2431
  `}
2332
2432
  `;
2333
2433
  };
2334
- var StyledRadio = styled5__default.default.div`
2434
+ var StyledRadio = styled6__default.default.div`
2335
2435
  display: flex;
2336
2436
  align-items: center;
2337
2437
  justify-content: center;
@@ -2353,7 +2453,7 @@ var StyledRadio = styled5__default.default.div`
2353
2453
  ${({ isSelected, isHovered }) => isSelected && getSelectedStyle(isHovered)}
2354
2454
  ${({ disabled }) => getDisabledStyle(disabled)}
2355
2455
  `;
2356
- var Container4 = styled5__default.default.button`
2456
+ var Container4 = styled6__default.default.button`
2357
2457
  display: flex;
2358
2458
  align-items: center;
2359
2459
  justify-content: center;
@@ -2366,7 +2466,7 @@ exports.RADIO_SYMBOL_KEY = Symbol("SHOPLFLOW_RADIO");
2366
2466
  var Radio = (_a) => {
2367
2467
  var _b = _a, { isSelected, defaultSelected, disabled, onClick, onMouseEnter, onMouseLeave } = _b, rest = __objRest(_b, ["isSelected", "defaultSelected", "disabled", "onClick", "onMouseEnter", "onMouseLeave"]);
2368
2468
  const [selected, toggleSelected] = useOnToggle(isSelected, defaultSelected);
2369
- const [isHovered, toggleHovered] = React2.useState(false);
2469
+ const [isHovered, toggleHovered] = React3.useState(false);
2370
2470
  const handleMouseLeave = (e) => {
2371
2471
  toggleHovered(false);
2372
2472
  onMouseLeave && onMouseLeave(e);
@@ -2430,7 +2530,7 @@ var getFontStylesBySizeVar = (sizeVar) => {
2430
2530
  return "body1_400";
2431
2531
  }
2432
2532
  };
2433
- var StyledMenu = styled5__default.default.li`
2533
+ var StyledMenu = styled6__default.default.li`
2434
2534
  display: flex;
2435
2535
  width: 100%;
2436
2536
  flex-direction: row;
@@ -2473,7 +2573,7 @@ var Menu = (_a) => {
2473
2573
  "disabled"
2474
2574
  ]);
2475
2575
  const [selected, handleToggle] = useOnToggle(isSelected, defaultSelected);
2476
- const LeftSourceClone = leftSource ? React2__namespace.default.cloneElement(leftSource, __spreadProps(__spreadValues({}, rest), {
2576
+ const LeftSourceClone = leftSource ? React3__namespace.default.cloneElement(leftSource, __spreadProps(__spreadValues({}, rest), {
2477
2577
  isSelected
2478
2578
  })) : leftSource;
2479
2579
  const handleOnClick = (e) => {
@@ -2505,7 +2605,7 @@ exports.MenuSizeVariants = {
2505
2605
  S: "S",
2506
2606
  M: "M"
2507
2607
  };
2508
- var StyledList = styled5__default.default.li`
2608
+ var StyledList = styled6__default.default.li`
2509
2609
  display: flex;
2510
2610
  flex-direction: row;
2511
2611
  width: 100%;
@@ -2520,7 +2620,7 @@ var StyledList = styled5__default.default.li`
2520
2620
  background: ${exports.colorTokens.neutral100};
2521
2621
  }
2522
2622
  `;
2523
- var StyledText2Rows = styled5__default.default.div`
2623
+ var StyledText2Rows = styled6__default.default.div`
2524
2624
  display: flex;
2525
2625
  flex-direction: column;
2526
2626
  justify-content: center;
@@ -2528,7 +2628,7 @@ var StyledText2Rows = styled5__default.default.div`
2528
2628
  `;
2529
2629
  var List = (_a) => {
2530
2630
  var _b = _a, { children, leftSource, rightSource } = _b, rest = __objRest(_b, ["children", "leftSource", "rightSource"]);
2531
- const LeftSourceClone = leftSource ? React2__namespace.default.cloneElement(leftSource, __spreadValues({}, rest)) : leftSource;
2631
+ const LeftSourceClone = leftSource ? React3__namespace.default.cloneElement(leftSource, __spreadValues({}, rest)) : leftSource;
2532
2632
  if (!children && rightSource) {
2533
2633
  throw new Error("RightSource\uB294 children\uC774 \uD544\uC218\uB85C \uD3EC\uD568\uB418\uC5B4\uC57C\uD569\uB2C8\uB2E4.");
2534
2634
  }
@@ -2630,7 +2730,7 @@ var getColorsByStyleVariant = (styleVariant, color = "neutral700") => {
2630
2730
  `;
2631
2731
  }
2632
2732
  };
2633
- var StyledTag = styled5__default.default.div`
2733
+ var StyledTag = styled6__default.default.div`
2634
2734
  display: flex;
2635
2735
  align-items: center;
2636
2736
  flex-direction: row;
@@ -2673,7 +2773,7 @@ exports.TagSizeVariants = {
2673
2773
  S: "S",
2674
2774
  M: "M"
2675
2775
  };
2676
- var StyledInput = styled5__default.default.input`
2776
+ var StyledInput = styled6__default.default.input`
2677
2777
  padding: 4px 0 4px 12px;
2678
2778
  background-color: transparent;
2679
2779
  display: flex;
@@ -2706,13 +2806,13 @@ var StyledInput = styled5__default.default.input`
2706
2806
  box-sizing: inherit;
2707
2807
  }
2708
2808
  `;
2709
- var RightElementWrapper = styled5__default.default.div`
2809
+ var RightElementWrapper = styled6__default.default.div`
2710
2810
  display: flex;
2711
2811
  flex-direction: row;
2712
2812
  align-items: center;
2713
2813
  padding: 0 8px 0 0;
2714
2814
  `;
2715
- var Wrapper = styled5__default.default.div`
2815
+ var Wrapper = styled6__default.default.div`
2716
2816
  display: flex;
2717
2817
  width: 100%;
2718
2818
  justify-content: flex-end;
@@ -2727,7 +2827,7 @@ var TextCounter = ({ currentLength, maxLength }) => {
2727
2827
  ] });
2728
2828
  };
2729
2829
  var TextCounter_default = TextCounter;
2730
- React2.createContext({
2830
+ React3.createContext({
2731
2831
  domain: "SHOPL",
2732
2832
  handleToggleTheme: () => {
2733
2833
  }
@@ -2751,7 +2851,7 @@ var getNumberLimitRange = (value, min, max) => {
2751
2851
  }
2752
2852
  return String(value);
2753
2853
  };
2754
- var Input = React2.forwardRef(
2854
+ var Input = React3.forwardRef(
2755
2855
  (_a, ref) => {
2756
2856
  var _b = _a, {
2757
2857
  onFocus,
@@ -2784,20 +2884,20 @@ var Input = React2.forwardRef(
2784
2884
  "className",
2785
2885
  "width"
2786
2886
  ]);
2787
- const [text, setText] = React2.useState("");
2788
- const [isFocused, setIsFocused] = React2.useState(false);
2789
- const [type, setType] = React2.useState(initialType);
2790
- const [isHovered, setIsHovered] = React2.useState(false);
2791
- const uniqueId = React2.useId();
2792
- const inputRef = React2__namespace.default.useRef(null);
2887
+ const [text, setText] = React3.useState("");
2888
+ const [isFocused, setIsFocused] = React3.useState(false);
2889
+ const [type, setType] = React3.useState(initialType);
2890
+ const [isHovered, setIsHovered] = React3.useState(false);
2891
+ const uniqueId = React3.useId();
2892
+ const inputRef = React3__namespace.default.useRef(null);
2793
2893
  const refs = useMergeRefs2(ref, inputRef);
2794
- const convertToString = React2.useCallback((value2) => {
2894
+ const convertToString = React3.useCallback((value2) => {
2795
2895
  if (typeof value2 !== "number") {
2796
2896
  return typeof value2 === "string" ? value2 : value2.join("");
2797
2897
  }
2798
2898
  return String(value2);
2799
2899
  }, []);
2800
- const sliceText = React2.useCallback(
2900
+ const sliceText = React3.useCallback(
2801
2901
  (value2) => {
2802
2902
  if (maxLength && value2.length > maxLength) {
2803
2903
  return value2.slice(0, maxLength);
@@ -2847,14 +2947,14 @@ var Input = React2.forwardRef(
2847
2947
  setType("password");
2848
2948
  }
2849
2949
  };
2850
- React2.useEffect(() => {
2950
+ React3.useEffect(() => {
2851
2951
  if (defaultValue !== void 0) {
2852
2952
  const convertString = convertToString(defaultValue);
2853
2953
  const slicedText = sliceText(convertString);
2854
2954
  setText(slicedText);
2855
2955
  }
2856
2956
  }, [convertToString, defaultValue, maxLength, sliceText]);
2857
- React2.useEffect(() => {
2957
+ React3.useEffect(() => {
2858
2958
  var _a2;
2859
2959
  if (value !== void 0) {
2860
2960
  const convertString = convertToString(value);
@@ -2863,7 +2963,7 @@ var Input = React2.forwardRef(
2863
2963
  setText(slicedText);
2864
2964
  }
2865
2965
  }, [convertToString, maxLength, sliceText, value]);
2866
- React2.useEffect(() => {
2966
+ React3.useEffect(() => {
2867
2967
  setType(initialType);
2868
2968
  }, [initialType]);
2869
2969
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -2914,7 +3014,7 @@ var Input = React2.forwardRef(
2914
3014
  }
2915
3015
  );
2916
3016
  exports.Input = Input;
2917
- var StyledInputButton = styled5__default.default.div`
3017
+ var StyledInputButton = styled6__default.default.div`
2918
3018
  display: flex;
2919
3019
  flex-direction: row;
2920
3020
  align-items: center;
@@ -2929,7 +3029,7 @@ var StyledInputButton = styled5__default.default.div`
2929
3029
  cursor: not-allowed;
2930
3030
  `}
2931
3031
  `;
2932
- var StyledInputButtonContent = styled5__default.default.input`
3032
+ var StyledInputButtonContent = styled6__default.default.input`
2933
3033
  display: flex;
2934
3034
  width: 100%;
2935
3035
  border: none;
@@ -2939,7 +3039,7 @@ var StyledInputButtonContent = styled5__default.default.input`
2939
3039
  color: ${exports.colorTokens.neutral350};
2940
3040
  }
2941
3041
  `;
2942
- var InputButton = React2.forwardRef(
3042
+ var InputButton = React3.forwardRef(
2943
3043
  (_a, ref) => {
2944
3044
  var _b = _a, {
2945
3045
  value,
@@ -2963,10 +3063,10 @@ var InputButton = React2.forwardRef(
2963
3063
  "width"
2964
3064
  ]);
2965
3065
  var _a2, _b2;
2966
- const [text, setText] = React2.useState((_a2 = value != null ? value : defaultValue) != null ? _a2 : "");
2967
- const [isHovered, setIsHovered] = React2.useState(false);
2968
- const prevValue = React2.useRef((_b2 = value != null ? value : defaultValue) != null ? _b2 : "");
2969
- const convertToString = React2.useCallback((value2) => {
3066
+ const [text, setText] = React3.useState((_a2 = value != null ? value : defaultValue) != null ? _a2 : "");
3067
+ const [isHovered, setIsHovered] = React3.useState(false);
3068
+ const prevValue = React3.useRef((_b2 = value != null ? value : defaultValue) != null ? _b2 : "");
3069
+ const convertToString = React3.useCallback((value2) => {
2970
3070
  if (typeof value2 !== "number") {
2971
3071
  return typeof value2 === "string" ? value2 : value2.join("");
2972
3072
  }
@@ -2991,7 +3091,7 @@ var InputButton = React2.forwardRef(
2991
3091
  const handleOnMouseLeave = () => {
2992
3092
  setIsHovered(false);
2993
3093
  };
2994
- React2.useEffect(() => {
3094
+ React3.useEffect(() => {
2995
3095
  if (prevValue.current === value) {
2996
3096
  return;
2997
3097
  }
@@ -3001,7 +3101,7 @@ var InputButton = React2.forwardRef(
3001
3101
  prevValue.current = convertString;
3002
3102
  }
3003
3103
  }, [convertToString, value]);
3004
- React2.useEffect(() => {
3104
+ React3.useEffect(() => {
3005
3105
  if (prevValue.current === value) {
3006
3106
  return;
3007
3107
  }
@@ -3031,7 +3131,7 @@ var InputButton = React2.forwardRef(
3031
3131
  }
3032
3132
  );
3033
3133
  exports.InputButton = InputButton;
3034
- var BottomElementWrapper = styled5__default.default.div`
3134
+ var BottomElementWrapper = styled6__default.default.div`
3035
3135
  display: flex;
3036
3136
  width: 100%;
3037
3137
  flex-direction: row;
@@ -3039,7 +3139,7 @@ var BottomElementWrapper = styled5__default.default.div`
3039
3139
  gap: 8px;
3040
3140
  background-color: ${exports.colorTokens.neutral0};
3041
3141
  `;
3042
- var StyledTextarea = styled5__default.default.textarea`
3142
+ var StyledTextarea = styled6__default.default.textarea`
3043
3143
  padding: 8px 12px 0 12px;
3044
3144
  background-color: transparent;
3045
3145
  resize: none;
@@ -3052,7 +3152,7 @@ var StyledTextarea = styled5__default.default.textarea`
3052
3152
  color: ${exports.colorTokens.neutral350};
3053
3153
  }
3054
3154
  `;
3055
- var TextArea = React2.forwardRef(
3155
+ var TextArea = React3.forwardRef(
3056
3156
  (_a, ref) => {
3057
3157
  var _b = _a, {
3058
3158
  name,
@@ -3085,9 +3185,9 @@ var TextArea = React2.forwardRef(
3085
3185
  "height",
3086
3186
  "className"
3087
3187
  ]);
3088
- const [text, setText] = React2.useState("");
3089
- const [isFocused, setIsFocused] = React2.useState(false);
3090
- const [isHovered, setIsHovered] = React2.useState(false);
3188
+ const [text, setText] = React3.useState("");
3189
+ const [isFocused, setIsFocused] = React3.useState(false);
3190
+ const [isHovered, setIsHovered] = React3.useState(false);
3091
3191
  const handleOnMouseEnter = () => {
3092
3192
  setIsHovered(true);
3093
3193
  };
@@ -3112,7 +3212,7 @@ var TextArea = React2.forwardRef(
3112
3212
  }
3113
3213
  return String(value2);
3114
3214
  };
3115
- React2.useEffect(() => {
3215
+ React3.useEffect(() => {
3116
3216
  if (defaultValue) {
3117
3217
  const convertString = convertToString(defaultValue);
3118
3218
  if (maxLength && convertString.length > maxLength) {
@@ -3121,7 +3221,7 @@ var TextArea = React2.forwardRef(
3121
3221
  setText(convertString);
3122
3222
  }
3123
3223
  }, [defaultValue, maxLength]);
3124
- React2.useEffect(() => {
3224
+ React3.useEffect(() => {
3125
3225
  if (value) {
3126
3226
  const convertString = convertToString(value);
3127
3227
  if (maxLength && convertString.length > maxLength) {
@@ -3130,7 +3230,7 @@ var TextArea = React2.forwardRef(
3130
3230
  setText(convertToString(value));
3131
3231
  }
3132
3232
  }, [maxLength, value]);
3133
- const uniqueId = React2.useId();
3233
+ const uniqueId = React3.useId();
3134
3234
  return /* @__PURE__ */ jsxRuntime.jsxs(
3135
3235
  InputWrapper,
3136
3236
  {
@@ -3170,7 +3270,7 @@ var TextArea = React2.forwardRef(
3170
3270
  }
3171
3271
  );
3172
3272
  exports.TextArea = TextArea;
3173
- var StyledSelectInputButton = styled5__default.default.div`
3273
+ var StyledSelectInputButton = styled6__default.default.div`
3174
3274
  display: flex;
3175
3275
  flex-direction: row;
3176
3276
  align-items: center;
@@ -3211,7 +3311,7 @@ var SelectInputButton = (_a) => {
3211
3311
  "width",
3212
3312
  "rightSource"
3213
3313
  ]);
3214
- const [isHovered, setIsHovered] = React2.useState(false);
3314
+ const [isHovered, setIsHovered] = React3.useState(false);
3215
3315
  const handleOnClick = (e) => {
3216
3316
  e.preventDefault();
3217
3317
  e.stopPropagation();
@@ -3264,7 +3364,7 @@ var SelectInputButton = (_a) => {
3264
3364
  );
3265
3365
  };
3266
3366
  exports.SelectInputButton = SelectInputButton;
3267
- var StyledTooltipContent = styled5__default.default.div`
3367
+ var StyledTooltipContent = styled6__default.default.div`
3268
3368
  background-color: ${exports.colorTokens.neutral700};
3269
3369
  padding: 4px 8px;
3270
3370
  max-width: 240px;
@@ -3290,11 +3390,11 @@ var Tooltip = (_a) => {
3290
3390
  "triggerRef",
3291
3391
  "portalRef"
3292
3392
  ]);
3293
- const [isOpen, setIsOpen] = React2.useState(false);
3294
- const showHandler = React2.useCallback(() => {
3393
+ const [isOpen, setIsOpen] = React3.useState(false);
3394
+ const showHandler = React3.useCallback(() => {
3295
3395
  setIsOpen(true);
3296
3396
  }, []);
3297
- const hideHandler = React2.useCallback(() => {
3397
+ const hideHandler = React3.useCallback(() => {
3298
3398
  setIsOpen(false);
3299
3399
  }, []);
3300
3400
  return /* @__PURE__ */ jsxRuntime.jsxs(exports.Popper, __spreadProps(__spreadValues({ offset: offset3, placement, middlewares: [core.flip(), core.shift({ padding: 5 })] }, popperProps), { children: [
@@ -3315,19 +3415,19 @@ var Tooltip = (_a) => {
3315
3415
  };
3316
3416
  Tooltip.Content = TooltipContent;
3317
3417
  exports.Tooltip = Tooltip;
3318
- var SpaceMarginWrapper = styled5__default.default(framerMotion.motion.div)`
3418
+ var SpaceMarginWrapper = styled6__default.default(framerMotion.motion.div)`
3319
3419
  position: relative;
3320
3420
  display: flex;
3321
3421
  align-items: center;
3322
3422
  justify-content: center;
3323
3423
  flex-grow: 1;
3324
3424
  z-index: 101;
3325
- padding: 32px 20px;
3425
+ //padding: 32px 20px;
3326
3426
  width: 100%;
3327
3427
  height: 100%;
3328
3428
  `;
3329
3429
  var ModalPortal = () => {
3330
- const modal = React2.useContext(exports.ModalContext);
3430
+ const modal = React3.useContext(exports.ModalContext);
3331
3431
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: reactDom$1.createPortal(
3332
3432
  /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children: modal.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(BackDrop_default, { children: /* @__PURE__ */ jsxRuntime.jsx(SpaceMarginWrapper, { children: item.component }) }, index)) }),
3333
3433
  document.body