@shoplflow/base 0.25.4 → 0.26.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.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%;
@@ -696,12 +792,12 @@ var BodyContainer = styled5__default.default.div`
696
792
  flex-direction: column;
697
793
  background: ${exports.colorTokens.neutral0};
698
794
  box-sizing: border-box;
699
- min-height: ${({ minHeight }) => minHeight};
795
+ min-height: ${({ minHeight }) => minHeight}px;
700
796
  max-height: ${({ maxHeight }) => maxHeight}px;
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,8 +945,11 @@ 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 = () => {
950
+ if (sizeVar === "FULL") {
951
+ return windowHeight - topBottomMargin - headerFooterHeight;
952
+ }
853
953
  if (modalContainerHeight) {
854
954
  if (modalContainerHeight <= 1200) {
855
955
  if (windowHeight < modalContainerHeight) {
@@ -863,6 +963,9 @@ var ModalBody = ({
863
963
  }
864
964
  };
865
965
  const setAutoHeightMax = () => {
966
+ if (sizeVar === "FULL") {
967
+ return windowHeight;
968
+ }
866
969
  if (modalContainerHeight) {
867
970
  if (modalContainerHeight > 1200) {
868
971
  return 1200 - topBottomMargin - headerFooterHeight;
@@ -914,28 +1017,28 @@ var ModalHeader = ({ children }) => {
914
1017
  };
915
1018
  ModalHeader[exports.MODAL_HEADER_KEY] = true;
916
1019
  var ModalHeader_default = ModalHeader;
917
- exports.ModalHandlerContext = React2.createContext({
1020
+ exports.ModalHandlerContext = React3.createContext({
918
1021
  addModal: utils.noop,
919
1022
  removeModal: utils.noop
920
1023
  });
921
- exports.ModalContext = React2.createContext([]);
1024
+ exports.ModalContext = React3.createContext([]);
922
1025
 
923
1026
  // src/components/Modal/hooks/useModalValue.ts
924
1027
  exports.useModalValue = () => {
925
- const modal = React2.useContext(exports.ModalContext);
1028
+ const modal = React3.useContext(exports.ModalContext);
926
1029
  return {
927
1030
  modal
928
1031
  };
929
1032
  };
930
1033
  exports.useHandleModal = () => {
931
- const { addModal, removeModal } = React2.useContext(exports.ModalHandlerContext);
1034
+ const { addModal, removeModal } = React3.useContext(exports.ModalHandlerContext);
932
1035
  return {
933
1036
  addModal,
934
1037
  removeModal
935
1038
  };
936
1039
  };
937
1040
  var ModalProvider = ({ children }) => {
938
- const [openedModals, setOpenedModals] = React2.useState([]);
1041
+ const [openedModals, setOpenedModals] = React3.useState([]);
939
1042
  const addModal = (component, id) => {
940
1043
  setOpenedModals((modals) => {
941
1044
  if (modals) {
@@ -981,8 +1084,8 @@ var ModalProvider = ({ children }) => {
981
1084
  return;
982
1085
  }
983
1086
  };
984
- const dispatch = React2.useMemo(() => ({ addModal, removeModal }), []);
985
- React2.useEffect(() => {
1087
+ const dispatch = React3.useMemo(() => ({ addModal, removeModal }), []);
1088
+ React3.useEffect(() => {
986
1089
  if (openedModals.length !== 1) {
987
1090
  return;
988
1091
  }
@@ -991,7 +1094,7 @@ var ModalProvider = ({ children }) => {
991
1094
  document.body.style.cssText = "overflow:unset";
992
1095
  };
993
1096
  }, [openedModals.length]);
994
- React2.useEffect(() => {
1097
+ React3.useEffect(() => {
995
1098
  const closeAllModals = () => {
996
1099
  setOpenedModals([]);
997
1100
  };
@@ -1011,7 +1114,7 @@ exports.Modal = {
1011
1114
  Body: ModalBody_default,
1012
1115
  Footer: ModalFooter_default
1013
1116
  };
1014
- var SwitchContainer = styled5__default.default.div`
1117
+ var SwitchContainer = styled6__default.default.div`
1015
1118
  width: 32px;
1016
1119
  height: 32px;
1017
1120
  border-radius: 6px;
@@ -1024,7 +1127,7 @@ var SwitchContainer = styled5__default.default.div`
1024
1127
  background: ${({ isDisabled }) => !isDisabled && exports.colorTokens.neutral400_5};
1025
1128
  }
1026
1129
  `;
1027
- var StyledSwitch = styled5__default.default.input`
1130
+ var StyledSwitch = styled6__default.default.input`
1028
1131
  appearance: none;
1029
1132
  border: none;
1030
1133
  border-radius: 12px;
@@ -1065,17 +1168,17 @@ var StyledSwitch = styled5__default.default.input`
1065
1168
  }
1066
1169
  `;
1067
1170
  var useOnToggle = (selected, defaultSelected) => {
1068
- const [isToggle, setIsToggle] = React2.useState(false);
1171
+ const [isToggle, setIsToggle] = React3.useState(false);
1069
1172
  const isControlled = selected !== void 0;
1070
1173
  const handleToggle = () => {
1071
1174
  !isControlled && setIsToggle((prev) => !prev);
1072
1175
  };
1073
- React2.useEffect(() => {
1176
+ React3.useEffect(() => {
1074
1177
  if (isControlled) {
1075
1178
  setIsToggle(selected);
1076
1179
  }
1077
1180
  }, [isControlled, selected]);
1078
- React2.useEffect(() => {
1181
+ React3.useEffect(() => {
1079
1182
  if (!isControlled && defaultSelected !== void 0) {
1080
1183
  setIsToggle(defaultSelected);
1081
1184
  }
@@ -1174,7 +1277,7 @@ var solidStyle = ({
1174
1277
  }
1175
1278
  `};
1176
1279
  `;
1177
- var StyledChip = styled5__default.default.button`
1280
+ var StyledChip = styled6__default.default.button`
1178
1281
  display: flex;
1179
1282
  align-items: center;
1180
1283
  justify-content: center;
@@ -1304,7 +1407,7 @@ var getStyleBySizeVar = (sizeVar) => {
1304
1407
  `;
1305
1408
  }
1306
1409
  };
1307
- var StyledChipButton = styled5__default.default.button`
1410
+ var StyledChipButton = styled6__default.default.button`
1308
1411
  display: flex;
1309
1412
  align-items: center;
1310
1413
  justify-content: center;
@@ -1423,7 +1526,7 @@ var getStyleBySizeVar2 = (sizeVar) => {
1423
1526
  `;
1424
1527
  }
1425
1528
  };
1426
- var StyledButton = styled5__default.default.button`
1529
+ var StyledButton = styled6__default.default.button`
1427
1530
  display: flex;
1428
1531
  align-items: center;
1429
1532
  justify-content: center;
@@ -1437,7 +1540,7 @@ var StyledButton = styled5__default.default.button`
1437
1540
  ${({ sizeVar }) => getStyleBySizeVar2(sizeVar)};
1438
1541
  ${({ disabled }) => getDisabledStyle(disabled)};
1439
1542
  `;
1440
- var Button = React2.forwardRef(
1543
+ var Button = React3.forwardRef(
1441
1544
  (_a, ref) => {
1442
1545
  var _b = _a, {
1443
1546
  styleVar = "PRIMARY",
@@ -1576,7 +1679,7 @@ var getStyleByStyleVar2 = (styleVar, color, isHovered) => {
1576
1679
  `;
1577
1680
  }
1578
1681
  };
1579
- var StyledIconButton = styled5__default.default.button`
1682
+ var StyledIconButton = styled6__default.default.button`
1580
1683
  display: flex;
1581
1684
  flex-shrink: 0;
1582
1685
  border-radius: ${exports.borderRadiusTokens.borderRadius06};
@@ -1592,10 +1695,10 @@ var StyledIconButton = styled5__default.default.button`
1592
1695
  height: 20px;
1593
1696
  }
1594
1697
  `;
1595
- var IconButton = React2.forwardRef(
1698
+ var IconButton = React3.forwardRef(
1596
1699
  (_a, ref) => {
1597
1700
  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);
1701
+ const [isHovered, setIsHovered] = React3.useState(false);
1599
1702
  const handleOnMouseEnter = (e) => {
1600
1703
  setIsHovered(true);
1601
1704
  onMouseEnter && onMouseEnter(e);
@@ -1654,7 +1757,7 @@ var alertStyle = react$1.css`
1654
1757
  fill: ${exports.colorTokens.red300};
1655
1758
  }
1656
1759
  `;
1657
- var StyledCallout = styled5__default.default.div`
1760
+ var StyledCallout = styled6__default.default.div`
1658
1761
  display: flex;
1659
1762
  justify-content: flex-start;
1660
1763
  align-items: start;
@@ -1664,14 +1767,14 @@ var StyledCallout = styled5__default.default.div`
1664
1767
  ${({ styleVar }) => styleVar === "INFORMATION" && informationStyle}
1665
1768
  ${({ styleVar }) => styleVar === "ALERT" && alertStyle}
1666
1769
  `;
1667
- var StyledCalloutIcon = styled5__default.default.svg`
1770
+ var StyledCalloutIcon = styled6__default.default.svg`
1668
1771
  display: flex;
1669
1772
  height: 20px;
1670
1773
  min-height: 20px;
1671
1774
  width: 20px;
1672
1775
  min-width: 20px;
1673
1776
  `;
1674
- styled5__default.default.div`
1777
+ styled6__default.default.div`
1675
1778
  padding: 2px 0;
1676
1779
  `;
1677
1780
  var Callout = (_a) => {
@@ -1694,13 +1797,13 @@ exports.CalloutTypes = {
1694
1797
  INFORMATION: "INFORMATION",
1695
1798
  ALERT: "ALERT"
1696
1799
  };
1697
- var StyledPopper = styled5__default.default.div`
1800
+ var StyledPopper = styled6__default.default.div`
1698
1801
  width: ${({ width }) => width != null ? width : "fit-content"};
1699
1802
  height: ${({ height }) => height && height};
1700
1803
  `;
1701
- var PopperContext = React2.createContext(null);
1804
+ var PopperContext = React3.createContext(null);
1702
1805
  var usePopper = () => {
1703
- const context = React2__namespace.useContext(PopperContext);
1806
+ const context = React3__namespace.useContext(PopperContext);
1704
1807
  if (context === null) {
1705
1808
  throw new Error("usePopper must be used within a PopperProvider");
1706
1809
  }
@@ -1728,7 +1831,7 @@ function mergeRefs(...refs) {
1728
1831
  };
1729
1832
  }
1730
1833
  function useMergeRefs2(...refs) {
1731
- return React2.useMemo(() => mergeRefs(...refs), refs);
1834
+ return React3.useMemo(() => mergeRefs(...refs), refs);
1732
1835
  }
1733
1836
  var Popper = ({
1734
1837
  placement,
@@ -1738,7 +1841,7 @@ var Popper = ({
1738
1841
  middlewares,
1739
1842
  children
1740
1843
  }) => {
1741
- const [isOpen, setIsOpen] = React2.useState(false);
1844
+ const [isOpen, setIsOpen] = React3.useState(false);
1742
1845
  const _a = reactDom.useFloating({
1743
1846
  strategy,
1744
1847
  placement,
@@ -1759,18 +1862,18 @@ var Popper = ({
1759
1862
  }
1760
1863
  );
1761
1864
  };
1762
- exports.PopperTrigger = React2.forwardRef(
1865
+ exports.PopperTrigger = React3.forwardRef(
1763
1866
  (_a, ref) => {
1764
1867
  var _b = _a, { children, isOpen = false } = _b, rest = __objRest(_b, ["children", "isOpen"]);
1765
1868
  const { setReference, setIsOpen } = usePopper();
1766
1869
  const refs = useMergeRefs2(ref, setReference);
1767
- React2.useEffect(() => {
1870
+ React3.useEffect(() => {
1768
1871
  setIsOpen(isOpen);
1769
1872
  }, [isOpen, setIsOpen]);
1770
1873
  return /* @__PURE__ */ jsxRuntime.jsx(StyledPopper, __spreadProps(__spreadValues({ ref: refs, "data-shoplflow": "Popper" }, rest), { children }));
1771
1874
  }
1772
1875
  );
1773
- exports.PopperPortal = React2.forwardRef(
1876
+ exports.PopperPortal = React3.forwardRef(
1774
1877
  ({ children, animation: initialAnimation }, ref) => {
1775
1878
  const { floatingStyles, setFloating, isOpen } = usePopper();
1776
1879
  const animation = initialAnimation != null ? initialAnimation : fadeInOut;
@@ -1856,10 +1959,10 @@ var getDropdownIconSizeBySizeVar = (size2) => {
1856
1959
  `;
1857
1960
  }
1858
1961
  };
1859
- var StyledDropdown = styled5__default.default.div`
1962
+ var StyledDropdown = styled6__default.default.div`
1860
1963
  width: ${({ width }) => width};
1861
1964
  `;
1862
- var StyledDropdownContent = styled5__default.default.div`
1965
+ var StyledDropdownContent = styled6__default.default.div`
1863
1966
  display: flex;
1864
1967
  flex-direction: column;
1865
1968
  background: ${exports.colorTokens.neutral0};
@@ -1868,7 +1971,7 @@ var StyledDropdownContent = styled5__default.default.div`
1868
1971
  border-radius: 6px;
1869
1972
  box-shadow: ${exports.boxShadowTokens.dropShadow};
1870
1973
  `;
1871
- var StyledDropdownButton = styled5__default.default.button`
1974
+ var StyledDropdownButton = styled6__default.default.button`
1872
1975
  display: flex;
1873
1976
  flex-direction: row;
1874
1977
  align-items: center;
@@ -1883,16 +1986,16 @@ var StyledDropdownButton = styled5__default.default.button`
1883
1986
  cursor: not-allowed;
1884
1987
  `}
1885
1988
  `;
1886
- var DropdownButtonIcon = styled5__default.default(framerMotion.motion.div)`
1989
+ var DropdownButtonIcon = styled6__default.default(framerMotion.motion.div)`
1887
1990
  display: flex;
1888
1991
  align-items: center;
1889
1992
  justify-content: center;
1890
1993
 
1891
1994
  ${({ sizeVar }) => sizeVar && getDropdownIconSizeBySizeVar(sizeVar)};
1892
1995
  `;
1893
- var DropdownContext = React2.createContext(null);
1996
+ var DropdownContext = React3.createContext(null);
1894
1997
  var useDropdown = () => {
1895
- const context = React2.useContext(DropdownContext);
1998
+ const context = React3.useContext(DropdownContext);
1896
1999
  if (context === null) {
1897
2000
  throw new Error("useDropdown must be used within a DropdownProvider");
1898
2001
  }
@@ -1936,7 +2039,7 @@ var getStyleByType = ({
1936
2039
  max-height: ${maxHeight != null ? maxHeight : "initial"};
1937
2040
  `;
1938
2041
  };
1939
- var InputWrapper = styled5__default.default.label`
2042
+ var InputWrapper = styled6__default.default.label`
1940
2043
  position: relative;
1941
2044
  display: flex;
1942
2045
  align-items: center;
@@ -1980,7 +2083,7 @@ var getIconSize = (size2) => {
1980
2083
  return "fit-content";
1981
2084
  }
1982
2085
  };
1983
- exports.StyledIcon = styled5__default.default.svg`
2086
+ exports.StyledIcon = styled6__default.default.svg`
1984
2087
  width: ${({ sizeVar }) => sizeVar && getIconSize(sizeVar)};
1985
2088
  min-width: ${({ sizeVar }) => sizeVar && getIconSize(sizeVar)};
1986
2089
  height: ${({ sizeVar }) => sizeVar && getIconSize(sizeVar)};
@@ -1989,16 +2092,16 @@ exports.StyledIcon = styled5__default.default.svg`
1989
2092
  fill: ${({ color }) => color && exports.colorTokens[color]};
1990
2093
  }
1991
2094
  `;
1992
- var Icon = React2.forwardRef((_a, ref) => {
2095
+ var Icon = React3.forwardRef((_a, ref) => {
1993
2096
  var _b = _a, { iconSource } = _b, rest = __objRest(_b, ["iconSource"]);
1994
2097
  return /* @__PURE__ */ jsxRuntime.jsx(exports.StyledIcon, __spreadProps(__spreadValues({ as: iconSource, ref }, rest), { "data-shoplflow": "Icon" }));
1995
2098
  });
1996
2099
  exports.Icon = Icon;
1997
- var DropdownButton = React2.forwardRef(
2100
+ var DropdownButton = React3.forwardRef(
1998
2101
  (_a, ref) => {
1999
2102
  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
2103
  const { isOpen, setIsOpen } = useDropdown();
2001
- const [isHovered, setIsHovered] = React2.useState(false);
2104
+ const [isHovered, setIsHovered] = React3.useState(false);
2002
2105
  const handleOnClick = (e) => {
2003
2106
  if (!disabled) {
2004
2107
  onClick && onClick(e);
@@ -2081,10 +2184,10 @@ var Dropdown = ({
2081
2184
  option = "CLICK",
2082
2185
  width = "100%"
2083
2186
  }) => {
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(() => {
2187
+ const [triggerRef, setTriggerRef] = React3.useState(null);
2188
+ const [size2, setSize] = React3.useState({ width: 0, height: 0 });
2189
+ const [isOpen, setIsOpen] = React3.useState(false);
2190
+ React3.useEffect(() => {
2088
2191
  if (triggerRef) {
2089
2192
  setSize({
2090
2193
  width: triggerRef.offsetWidth,
@@ -2092,7 +2195,7 @@ var Dropdown = ({
2092
2195
  });
2093
2196
  }
2094
2197
  }, [triggerRef]);
2095
- React2.useEffect(() => {
2198
+ React3.useEffect(() => {
2096
2199
  if (initialIsOpen === void 0) {
2097
2200
  return;
2098
2201
  }
@@ -2115,7 +2218,7 @@ var Dropdown = ({
2115
2218
  Dropdown.Button = DropdownButton;
2116
2219
  Dropdown.Content = DropdownContent;
2117
2220
  exports.Dropdown = Dropdown;
2118
- var Container2 = styled5__default.default.div`
2221
+ var Container2 = styled6__default.default.div`
2119
2222
  display: flex;
2120
2223
  align-items: center;
2121
2224
  justify-content: center;
@@ -2123,7 +2226,7 @@ var Container2 = styled5__default.default.div`
2123
2226
  height: 24px;
2124
2227
  padding: 4px;
2125
2228
  `;
2126
- var IconButton2 = styled5__default.default.button`
2229
+ var IconButton2 = styled6__default.default.button`
2127
2230
  display: flex;
2128
2231
  width: 16px;
2129
2232
  height: 16px;
@@ -2143,7 +2246,7 @@ var IconButton2 = styled5__default.default.button`
2143
2246
  }
2144
2247
  `;
2145
2248
  var MUNUS_BUTTON_SYMBOL_KEY = Symbol("SHOPLFLOW_MUNUS_BUTTON");
2146
- var MinusButton = React2.forwardRef((_a, ref) => {
2249
+ var MinusButton = React3.forwardRef((_a, ref) => {
2147
2250
  var _b = _a, { onClick, color = "neutral300" } = _b, rest = __objRest(_b, ["onClick", "color"]);
2148
2251
  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
2252
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -2230,7 +2333,7 @@ var getStylesByStyleVariant = (styleVariant, isSelected, isHovered) => {
2230
2333
  return "";
2231
2334
  }
2232
2335
  };
2233
- var StyledCheckbox = styled5__default.default.button`
2336
+ var StyledCheckbox = styled6__default.default.button`
2234
2337
  display: flex;
2235
2338
  align-items: center;
2236
2339
  justify-content: center;
@@ -2245,7 +2348,7 @@ var StyledCheckbox = styled5__default.default.button`
2245
2348
  ${({ styleVar, isSelected, isHovered }) => getStylesByStyleVariant(styleVar, isSelected, isHovered)};
2246
2349
  ${({ disabled }) => getDisabledStyle(disabled)}
2247
2350
  `;
2248
- var Container3 = styled5__default.default.button`
2351
+ var Container3 = styled6__default.default.button`
2249
2352
  display: flex;
2250
2353
  align-items: center;
2251
2354
  justify-content: center;
@@ -2274,7 +2377,7 @@ var Checkbox = (_a) => {
2274
2377
  "styleVar"
2275
2378
  ]);
2276
2379
  const [selected, toggleSelected] = useOnToggle(isSelected, defaultSelected);
2277
- const [isHovered, toggleHovered] = React2.useState(false);
2380
+ const [isHovered, toggleHovered] = React3.useState(false);
2278
2381
  const handleMouseLeave = (e) => {
2279
2382
  toggleHovered(false);
2280
2383
  onMouseLeave && onMouseLeave(e);
@@ -2331,7 +2434,7 @@ var getSelectedStyle = (isHovered) => {
2331
2434
  `}
2332
2435
  `;
2333
2436
  };
2334
- var StyledRadio = styled5__default.default.div`
2437
+ var StyledRadio = styled6__default.default.div`
2335
2438
  display: flex;
2336
2439
  align-items: center;
2337
2440
  justify-content: center;
@@ -2353,7 +2456,7 @@ var StyledRadio = styled5__default.default.div`
2353
2456
  ${({ isSelected, isHovered }) => isSelected && getSelectedStyle(isHovered)}
2354
2457
  ${({ disabled }) => getDisabledStyle(disabled)}
2355
2458
  `;
2356
- var Container4 = styled5__default.default.button`
2459
+ var Container4 = styled6__default.default.button`
2357
2460
  display: flex;
2358
2461
  align-items: center;
2359
2462
  justify-content: center;
@@ -2366,7 +2469,7 @@ exports.RADIO_SYMBOL_KEY = Symbol("SHOPLFLOW_RADIO");
2366
2469
  var Radio = (_a) => {
2367
2470
  var _b = _a, { isSelected, defaultSelected, disabled, onClick, onMouseEnter, onMouseLeave } = _b, rest = __objRest(_b, ["isSelected", "defaultSelected", "disabled", "onClick", "onMouseEnter", "onMouseLeave"]);
2368
2471
  const [selected, toggleSelected] = useOnToggle(isSelected, defaultSelected);
2369
- const [isHovered, toggleHovered] = React2.useState(false);
2472
+ const [isHovered, toggleHovered] = React3.useState(false);
2370
2473
  const handleMouseLeave = (e) => {
2371
2474
  toggleHovered(false);
2372
2475
  onMouseLeave && onMouseLeave(e);
@@ -2430,7 +2533,7 @@ var getFontStylesBySizeVar = (sizeVar) => {
2430
2533
  return "body1_400";
2431
2534
  }
2432
2535
  };
2433
- var StyledMenu = styled5__default.default.li`
2536
+ var StyledMenu = styled6__default.default.li`
2434
2537
  display: flex;
2435
2538
  width: 100%;
2436
2539
  flex-direction: row;
@@ -2473,7 +2576,7 @@ var Menu = (_a) => {
2473
2576
  "disabled"
2474
2577
  ]);
2475
2578
  const [selected, handleToggle] = useOnToggle(isSelected, defaultSelected);
2476
- const LeftSourceClone = leftSource ? React2__namespace.default.cloneElement(leftSource, __spreadProps(__spreadValues({}, rest), {
2579
+ const LeftSourceClone = leftSource ? React3__namespace.default.cloneElement(leftSource, __spreadProps(__spreadValues({}, rest), {
2477
2580
  isSelected
2478
2581
  })) : leftSource;
2479
2582
  const handleOnClick = (e) => {
@@ -2505,7 +2608,7 @@ exports.MenuSizeVariants = {
2505
2608
  S: "S",
2506
2609
  M: "M"
2507
2610
  };
2508
- var StyledList = styled5__default.default.li`
2611
+ var StyledList = styled6__default.default.li`
2509
2612
  display: flex;
2510
2613
  flex-direction: row;
2511
2614
  width: 100%;
@@ -2520,7 +2623,7 @@ var StyledList = styled5__default.default.li`
2520
2623
  background: ${exports.colorTokens.neutral100};
2521
2624
  }
2522
2625
  `;
2523
- var StyledText2Rows = styled5__default.default.div`
2626
+ var StyledText2Rows = styled6__default.default.div`
2524
2627
  display: flex;
2525
2628
  flex-direction: column;
2526
2629
  justify-content: center;
@@ -2528,7 +2631,7 @@ var StyledText2Rows = styled5__default.default.div`
2528
2631
  `;
2529
2632
  var List = (_a) => {
2530
2633
  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;
2634
+ const LeftSourceClone = leftSource ? React3__namespace.default.cloneElement(leftSource, __spreadValues({}, rest)) : leftSource;
2532
2635
  if (!children && rightSource) {
2533
2636
  throw new Error("RightSource\uB294 children\uC774 \uD544\uC218\uB85C \uD3EC\uD568\uB418\uC5B4\uC57C\uD569\uB2C8\uB2E4.");
2534
2637
  }
@@ -2630,7 +2733,7 @@ var getColorsByStyleVariant = (styleVariant, color = "neutral700") => {
2630
2733
  `;
2631
2734
  }
2632
2735
  };
2633
- var StyledTag = styled5__default.default.div`
2736
+ var StyledTag = styled6__default.default.div`
2634
2737
  display: flex;
2635
2738
  align-items: center;
2636
2739
  flex-direction: row;
@@ -2673,7 +2776,7 @@ exports.TagSizeVariants = {
2673
2776
  S: "S",
2674
2777
  M: "M"
2675
2778
  };
2676
- var StyledInput = styled5__default.default.input`
2779
+ var StyledInput = styled6__default.default.input`
2677
2780
  padding: 4px 0 4px 12px;
2678
2781
  background-color: transparent;
2679
2782
  display: flex;
@@ -2706,13 +2809,13 @@ var StyledInput = styled5__default.default.input`
2706
2809
  box-sizing: inherit;
2707
2810
  }
2708
2811
  `;
2709
- var RightElementWrapper = styled5__default.default.div`
2812
+ var RightElementWrapper = styled6__default.default.div`
2710
2813
  display: flex;
2711
2814
  flex-direction: row;
2712
2815
  align-items: center;
2713
2816
  padding: 0 8px 0 0;
2714
2817
  `;
2715
- var Wrapper = styled5__default.default.div`
2818
+ var Wrapper = styled6__default.default.div`
2716
2819
  display: flex;
2717
2820
  width: 100%;
2718
2821
  justify-content: flex-end;
@@ -2727,7 +2830,7 @@ var TextCounter = ({ currentLength, maxLength }) => {
2727
2830
  ] });
2728
2831
  };
2729
2832
  var TextCounter_default = TextCounter;
2730
- React2.createContext({
2833
+ React3.createContext({
2731
2834
  domain: "SHOPL",
2732
2835
  handleToggleTheme: () => {
2733
2836
  }
@@ -2751,7 +2854,7 @@ var getNumberLimitRange = (value, min, max) => {
2751
2854
  }
2752
2855
  return String(value);
2753
2856
  };
2754
- var Input = React2.forwardRef(
2857
+ var Input = React3.forwardRef(
2755
2858
  (_a, ref) => {
2756
2859
  var _b = _a, {
2757
2860
  onFocus,
@@ -2784,20 +2887,20 @@ var Input = React2.forwardRef(
2784
2887
  "className",
2785
2888
  "width"
2786
2889
  ]);
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);
2890
+ const [text, setText] = React3.useState("");
2891
+ const [isFocused, setIsFocused] = React3.useState(false);
2892
+ const [type, setType] = React3.useState(initialType);
2893
+ const [isHovered, setIsHovered] = React3.useState(false);
2894
+ const uniqueId = React3.useId();
2895
+ const inputRef = React3__namespace.default.useRef(null);
2793
2896
  const refs = useMergeRefs2(ref, inputRef);
2794
- const convertToString = React2.useCallback((value2) => {
2897
+ const convertToString = React3.useCallback((value2) => {
2795
2898
  if (typeof value2 !== "number") {
2796
2899
  return typeof value2 === "string" ? value2 : value2.join("");
2797
2900
  }
2798
2901
  return String(value2);
2799
2902
  }, []);
2800
- const sliceText = React2.useCallback(
2903
+ const sliceText = React3.useCallback(
2801
2904
  (value2) => {
2802
2905
  if (maxLength && value2.length > maxLength) {
2803
2906
  return value2.slice(0, maxLength);
@@ -2847,14 +2950,14 @@ var Input = React2.forwardRef(
2847
2950
  setType("password");
2848
2951
  }
2849
2952
  };
2850
- React2.useEffect(() => {
2953
+ React3.useEffect(() => {
2851
2954
  if (defaultValue !== void 0) {
2852
2955
  const convertString = convertToString(defaultValue);
2853
2956
  const slicedText = sliceText(convertString);
2854
2957
  setText(slicedText);
2855
2958
  }
2856
2959
  }, [convertToString, defaultValue, maxLength, sliceText]);
2857
- React2.useEffect(() => {
2960
+ React3.useEffect(() => {
2858
2961
  var _a2;
2859
2962
  if (value !== void 0) {
2860
2963
  const convertString = convertToString(value);
@@ -2863,7 +2966,7 @@ var Input = React2.forwardRef(
2863
2966
  setText(slicedText);
2864
2967
  }
2865
2968
  }, [convertToString, maxLength, sliceText, value]);
2866
- React2.useEffect(() => {
2969
+ React3.useEffect(() => {
2867
2970
  setType(initialType);
2868
2971
  }, [initialType]);
2869
2972
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -2914,7 +3017,7 @@ var Input = React2.forwardRef(
2914
3017
  }
2915
3018
  );
2916
3019
  exports.Input = Input;
2917
- var StyledInputButton = styled5__default.default.div`
3020
+ var StyledInputButton = styled6__default.default.div`
2918
3021
  display: flex;
2919
3022
  flex-direction: row;
2920
3023
  align-items: center;
@@ -2929,7 +3032,7 @@ var StyledInputButton = styled5__default.default.div`
2929
3032
  cursor: not-allowed;
2930
3033
  `}
2931
3034
  `;
2932
- var StyledInputButtonContent = styled5__default.default.input`
3035
+ var StyledInputButtonContent = styled6__default.default.input`
2933
3036
  display: flex;
2934
3037
  width: 100%;
2935
3038
  border: none;
@@ -2939,7 +3042,7 @@ var StyledInputButtonContent = styled5__default.default.input`
2939
3042
  color: ${exports.colorTokens.neutral350};
2940
3043
  }
2941
3044
  `;
2942
- var InputButton = React2.forwardRef(
3045
+ var InputButton = React3.forwardRef(
2943
3046
  (_a, ref) => {
2944
3047
  var _b = _a, {
2945
3048
  value,
@@ -2963,10 +3066,10 @@ var InputButton = React2.forwardRef(
2963
3066
  "width"
2964
3067
  ]);
2965
3068
  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) => {
3069
+ const [text, setText] = React3.useState((_a2 = value != null ? value : defaultValue) != null ? _a2 : "");
3070
+ const [isHovered, setIsHovered] = React3.useState(false);
3071
+ const prevValue = React3.useRef((_b2 = value != null ? value : defaultValue) != null ? _b2 : "");
3072
+ const convertToString = React3.useCallback((value2) => {
2970
3073
  if (typeof value2 !== "number") {
2971
3074
  return typeof value2 === "string" ? value2 : value2.join("");
2972
3075
  }
@@ -2991,7 +3094,7 @@ var InputButton = React2.forwardRef(
2991
3094
  const handleOnMouseLeave = () => {
2992
3095
  setIsHovered(false);
2993
3096
  };
2994
- React2.useEffect(() => {
3097
+ React3.useEffect(() => {
2995
3098
  if (prevValue.current === value) {
2996
3099
  return;
2997
3100
  }
@@ -3001,7 +3104,7 @@ var InputButton = React2.forwardRef(
3001
3104
  prevValue.current = convertString;
3002
3105
  }
3003
3106
  }, [convertToString, value]);
3004
- React2.useEffect(() => {
3107
+ React3.useEffect(() => {
3005
3108
  if (prevValue.current === value) {
3006
3109
  return;
3007
3110
  }
@@ -3031,7 +3134,7 @@ var InputButton = React2.forwardRef(
3031
3134
  }
3032
3135
  );
3033
3136
  exports.InputButton = InputButton;
3034
- var BottomElementWrapper = styled5__default.default.div`
3137
+ var BottomElementWrapper = styled6__default.default.div`
3035
3138
  display: flex;
3036
3139
  width: 100%;
3037
3140
  flex-direction: row;
@@ -3039,7 +3142,7 @@ var BottomElementWrapper = styled5__default.default.div`
3039
3142
  gap: 8px;
3040
3143
  background-color: ${exports.colorTokens.neutral0};
3041
3144
  `;
3042
- var StyledTextarea = styled5__default.default.textarea`
3145
+ var StyledTextarea = styled6__default.default.textarea`
3043
3146
  padding: 8px 12px 0 12px;
3044
3147
  background-color: transparent;
3045
3148
  resize: none;
@@ -3052,7 +3155,7 @@ var StyledTextarea = styled5__default.default.textarea`
3052
3155
  color: ${exports.colorTokens.neutral350};
3053
3156
  }
3054
3157
  `;
3055
- var TextArea = React2.forwardRef(
3158
+ var TextArea = React3.forwardRef(
3056
3159
  (_a, ref) => {
3057
3160
  var _b = _a, {
3058
3161
  name,
@@ -3085,9 +3188,9 @@ var TextArea = React2.forwardRef(
3085
3188
  "height",
3086
3189
  "className"
3087
3190
  ]);
3088
- const [text, setText] = React2.useState("");
3089
- const [isFocused, setIsFocused] = React2.useState(false);
3090
- const [isHovered, setIsHovered] = React2.useState(false);
3191
+ const [text, setText] = React3.useState("");
3192
+ const [isFocused, setIsFocused] = React3.useState(false);
3193
+ const [isHovered, setIsHovered] = React3.useState(false);
3091
3194
  const handleOnMouseEnter = () => {
3092
3195
  setIsHovered(true);
3093
3196
  };
@@ -3112,7 +3215,7 @@ var TextArea = React2.forwardRef(
3112
3215
  }
3113
3216
  return String(value2);
3114
3217
  };
3115
- React2.useEffect(() => {
3218
+ React3.useEffect(() => {
3116
3219
  if (defaultValue) {
3117
3220
  const convertString = convertToString(defaultValue);
3118
3221
  if (maxLength && convertString.length > maxLength) {
@@ -3121,7 +3224,7 @@ var TextArea = React2.forwardRef(
3121
3224
  setText(convertString);
3122
3225
  }
3123
3226
  }, [defaultValue, maxLength]);
3124
- React2.useEffect(() => {
3227
+ React3.useEffect(() => {
3125
3228
  if (value) {
3126
3229
  const convertString = convertToString(value);
3127
3230
  if (maxLength && convertString.length > maxLength) {
@@ -3130,7 +3233,7 @@ var TextArea = React2.forwardRef(
3130
3233
  setText(convertToString(value));
3131
3234
  }
3132
3235
  }, [maxLength, value]);
3133
- const uniqueId = React2.useId();
3236
+ const uniqueId = React3.useId();
3134
3237
  return /* @__PURE__ */ jsxRuntime.jsxs(
3135
3238
  InputWrapper,
3136
3239
  {
@@ -3170,7 +3273,7 @@ var TextArea = React2.forwardRef(
3170
3273
  }
3171
3274
  );
3172
3275
  exports.TextArea = TextArea;
3173
- var StyledSelectInputButton = styled5__default.default.div`
3276
+ var StyledSelectInputButton = styled6__default.default.div`
3174
3277
  display: flex;
3175
3278
  flex-direction: row;
3176
3279
  align-items: center;
@@ -3211,7 +3314,7 @@ var SelectInputButton = (_a) => {
3211
3314
  "width",
3212
3315
  "rightSource"
3213
3316
  ]);
3214
- const [isHovered, setIsHovered] = React2.useState(false);
3317
+ const [isHovered, setIsHovered] = React3.useState(false);
3215
3318
  const handleOnClick = (e) => {
3216
3319
  e.preventDefault();
3217
3320
  e.stopPropagation();
@@ -3264,7 +3367,7 @@ var SelectInputButton = (_a) => {
3264
3367
  );
3265
3368
  };
3266
3369
  exports.SelectInputButton = SelectInputButton;
3267
- var StyledTooltipContent = styled5__default.default.div`
3370
+ var StyledTooltipContent = styled6__default.default.div`
3268
3371
  background-color: ${exports.colorTokens.neutral700};
3269
3372
  padding: 4px 8px;
3270
3373
  max-width: 240px;
@@ -3290,11 +3393,11 @@ var Tooltip = (_a) => {
3290
3393
  "triggerRef",
3291
3394
  "portalRef"
3292
3395
  ]);
3293
- const [isOpen, setIsOpen] = React2.useState(false);
3294
- const showHandler = React2.useCallback(() => {
3396
+ const [isOpen, setIsOpen] = React3.useState(false);
3397
+ const showHandler = React3.useCallback(() => {
3295
3398
  setIsOpen(true);
3296
3399
  }, []);
3297
- const hideHandler = React2.useCallback(() => {
3400
+ const hideHandler = React3.useCallback(() => {
3298
3401
  setIsOpen(false);
3299
3402
  }, []);
3300
3403
  return /* @__PURE__ */ jsxRuntime.jsxs(exports.Popper, __spreadProps(__spreadValues({ offset: offset3, placement, middlewares: [core.flip(), core.shift({ padding: 5 })] }, popperProps), { children: [
@@ -3315,19 +3418,19 @@ var Tooltip = (_a) => {
3315
3418
  };
3316
3419
  Tooltip.Content = TooltipContent;
3317
3420
  exports.Tooltip = Tooltip;
3318
- var SpaceMarginWrapper = styled5__default.default(framerMotion.motion.div)`
3421
+ var SpaceMarginWrapper = styled6__default.default(framerMotion.motion.div)`
3319
3422
  position: relative;
3320
3423
  display: flex;
3321
3424
  align-items: center;
3322
3425
  justify-content: center;
3323
3426
  flex-grow: 1;
3324
3427
  z-index: 101;
3325
- padding: 32px 20px;
3428
+ //padding: 32px 20px;
3326
3429
  width: 100%;
3327
3430
  height: 100%;
3328
3431
  `;
3329
3432
  var ModalPortal = () => {
3330
- const modal = React2.useContext(exports.ModalContext);
3433
+ const modal = React3.useContext(exports.ModalContext);
3331
3434
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: reactDom$1.createPortal(
3332
3435
  /* @__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
3436
  document.body