@shoplflow/base 0.12.6 → 0.13.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.d.mts CHANGED
@@ -7,6 +7,9 @@ import { IconSource as IconSource$1 } from '@shoplflow/hada-assets';
7
7
  import * as _emotion_styled from '@emotion/styled';
8
8
  import * as _emotion_react from '@emotion/react';
9
9
  import { $Values } from '@shoplflow/utils';
10
+ import { Middleware } from '@floating-ui/react-dom';
11
+ import { AutoPlacementOptions, Placement } from '@floating-ui/react';
12
+ import { OffsetOptions } from '@floating-ui/core';
10
13
 
11
14
  declare type DomainType = 'SHOPL' | 'HADA';
12
15
 
@@ -524,6 +527,70 @@ declare const Callout: {
524
527
  Icon: ({ iconSource }: IconSourceProps) => react_jsx_runtime.JSX.Element;
525
528
  };
526
529
 
530
+ interface PopperProps extends PopperOptionProps {
531
+ }
532
+ interface PopperOptionProps {
533
+ width?: string;
534
+ height?: string;
535
+ /**
536
+ * popper의 offset을 설정합니다.
537
+ *
538
+ * Ref: https://floating-ui.com/docs/offset#offset
539
+ */
540
+ offset?: OffsetOptions;
541
+ /**
542
+ * popper가 열려있는지 여부를 결정합니다.
543
+ */
544
+ isOpen?: boolean;
545
+ /**
546
+ * 화면 뷰에 따라 자동으로 위치를 조정할 수 있습니다.
547
+ * floating ui의 autoPlacement 미들웨어를 사용합니다.
548
+ *
549
+ * Ref: https://floating-ui.com/docs/autoplacement
550
+ */
551
+ autoPlacement?: AutoPlacementOptions;
552
+ /**
553
+ * popper의 위치를 지정할 수 있습니다.
554
+ *
555
+ * Ref: https://floating-ui.com/docs/arrow#placement
556
+ */
557
+ placement?: Placement;
558
+ /**
559
+ * popper의 속성을 결정할 수 있습니다.
560
+ */
561
+ strategy?: 'absolute' | 'fixed';
562
+ /**
563
+ * floating ui의 middleware를 넣을 수 있습니다.
564
+ *
565
+ * Ref: https://floating-ui.com/docs/useFloating#middleware
566
+ */
567
+ middlewares?: Array<Middleware | null | undefined | false>;
568
+ /**
569
+ * floating ui의 animation을 넣을 수 있습니다.
570
+ * framer-motion의 animation을 사용합니다.
571
+ */
572
+ animation?: {
573
+ initial: Record<string, unknown>;
574
+ animate: Record<string, unknown>;
575
+ exit: Record<string, unknown>;
576
+ };
577
+ /**
578
+ * trigger할 요소를 설정합니다.
579
+ */
580
+ trigger: ReactNode;
581
+ /**
582
+ * pop할 요소를 설정합니다.
583
+ */
584
+ popper: ReactNode;
585
+ }
586
+
587
+ declare const Popper: ({ trigger, popper, isOpen, placement, offset: initialOffset, autoPlacement: initialAutoPlacement, strategy, middlewares, animation: initialAnimation, ...rest }: PopperProps) => react_jsx_runtime.JSX.Element;
588
+
589
+ declare const StyledPopper: _emotion_styled.StyledComponent<{
590
+ theme?: _emotion_react.Theme | undefined;
591
+ as?: React$1.ElementType<any> | undefined;
592
+ } & Pick<PopperOptionProps, "height" | "width">, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
593
+
527
594
  declare const IconSizeVariants: {
528
595
  readonly X_SMALL: "X_SMALL";
529
596
  readonly SMALL: "SMALL";
@@ -577,4 +644,4 @@ interface MinusBoxOptionProps {
577
644
 
578
645
  declare const MinusButton: React__default.ForwardRefExoticComponent<MinusBoxProps & React__default.RefAttributes<HTMLButtonElement>>;
579
646
 
580
- export { BackDropOptionProps, BackDropProps, BorderRadiusTokens, BoxShadowTokens, Button, ButtonComponent, ButtonOptionProps, ButtonProps, ButtonSizeVar, ButtonStyleVar, Callout, CalloutOptionProps, CalloutProps, CalloutType, CalloutTypes, ChipButton, ChipButtonOptionProps, ChipButtonProps, ChipButtonSizeVariantType, ChipButtonSizeVariants, ChipButtonStyleVariantType, ChipButtonStyleVariants, ChipToggle, ChipToggleOptionProps, ChipToggleProps, ChipToggleSizeVariantType, ChipToggleSizeVariants, ChipToggleStyleVariantType, ChipToggleStyleVariants, ColorTokens, FontWeightTokens, Icon, IconButton, IconButtonComponent, IconButtonOptionProps, IconButtonProps, IconButtonSizeVar, IconButtonStyleVar, IconOptionProps, IconProps, IconSizeVariants, IconSizeVariantsType, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, MinusBoxOptionProps, MinusBoxProps, MinusButton, Modal, ModalBodyOptionProps, ModalBodyProps, ModalContainerOptionProps, ModalContainerProps, ModalFooterOptionProps, ModalFooterProps, ModalFooterType, ModalHeaderOptionProps, ModalHeaderProps, ModalHeaderType, ModalPortal as ModalProvider, ModalSize, ModalSizeType, MotionStack, MotionStackComponentType, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledIcon, StyledStack, Switch, SwitchOptionProps, SwitchProps, Text, TextArea, TextAreaOptionProps, TextAreaProps, TextOptionProps, TextProps, TypographyTokens, borderRadiusTokens, boxShadowTokens, buttonSizeVar, buttonStyleVar, colorTokens, fontWeightTokens, getDomain, iconButtonSizeVar, iconButtonStyleVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
647
+ export { BackDropOptionProps, BackDropProps, BorderRadiusTokens, BoxShadowTokens, Button, ButtonComponent, ButtonOptionProps, ButtonProps, ButtonSizeVar, ButtonStyleVar, Callout, CalloutOptionProps, CalloutProps, CalloutType, CalloutTypes, ChipButton, ChipButtonOptionProps, ChipButtonProps, ChipButtonSizeVariantType, ChipButtonSizeVariants, ChipButtonStyleVariantType, ChipButtonStyleVariants, ChipToggle, ChipToggleOptionProps, ChipToggleProps, ChipToggleSizeVariantType, ChipToggleSizeVariants, ChipToggleStyleVariantType, ChipToggleStyleVariants, ColorTokens, FontWeightTokens, Icon, IconButton, IconButtonComponent, IconButtonOptionProps, IconButtonProps, IconButtonSizeVar, IconButtonStyleVar, IconOptionProps, IconProps, IconSizeVariants, IconSizeVariantsType, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, MinusBoxOptionProps, MinusBoxProps, MinusButton, Modal, ModalBodyOptionProps, ModalBodyProps, ModalContainerOptionProps, ModalContainerProps, ModalFooterOptionProps, ModalFooterProps, ModalFooterType, ModalHeaderOptionProps, ModalHeaderProps, ModalHeaderType, ModalPortal as ModalProvider, ModalSize, ModalSizeType, MotionStack, MotionStackComponentType, Popper, PopperOptionProps, PopperProps, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledIcon, StyledPopper, StyledStack, Switch, SwitchOptionProps, SwitchProps, Text, TextArea, TextAreaOptionProps, TextAreaProps, TextOptionProps, TextProps, TypographyTokens, borderRadiusTokens, boxShadowTokens, buttonSizeVar, buttonStyleVar, colorTokens, fontWeightTokens, getDomain, iconButtonSizeVar, iconButtonStyleVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
package/dist/index.d.ts CHANGED
@@ -7,6 +7,9 @@ import { IconSource as IconSource$1 } from '@shoplflow/hada-assets';
7
7
  import * as _emotion_styled from '@emotion/styled';
8
8
  import * as _emotion_react from '@emotion/react';
9
9
  import { $Values } from '@shoplflow/utils';
10
+ import { Middleware } from '@floating-ui/react-dom';
11
+ import { AutoPlacementOptions, Placement } from '@floating-ui/react';
12
+ import { OffsetOptions } from '@floating-ui/core';
10
13
 
11
14
  declare type DomainType = 'SHOPL' | 'HADA';
12
15
 
@@ -524,6 +527,70 @@ declare const Callout: {
524
527
  Icon: ({ iconSource }: IconSourceProps) => react_jsx_runtime.JSX.Element;
525
528
  };
526
529
 
530
+ interface PopperProps extends PopperOptionProps {
531
+ }
532
+ interface PopperOptionProps {
533
+ width?: string;
534
+ height?: string;
535
+ /**
536
+ * popper의 offset을 설정합니다.
537
+ *
538
+ * Ref: https://floating-ui.com/docs/offset#offset
539
+ */
540
+ offset?: OffsetOptions;
541
+ /**
542
+ * popper가 열려있는지 여부를 결정합니다.
543
+ */
544
+ isOpen?: boolean;
545
+ /**
546
+ * 화면 뷰에 따라 자동으로 위치를 조정할 수 있습니다.
547
+ * floating ui의 autoPlacement 미들웨어를 사용합니다.
548
+ *
549
+ * Ref: https://floating-ui.com/docs/autoplacement
550
+ */
551
+ autoPlacement?: AutoPlacementOptions;
552
+ /**
553
+ * popper의 위치를 지정할 수 있습니다.
554
+ *
555
+ * Ref: https://floating-ui.com/docs/arrow#placement
556
+ */
557
+ placement?: Placement;
558
+ /**
559
+ * popper의 속성을 결정할 수 있습니다.
560
+ */
561
+ strategy?: 'absolute' | 'fixed';
562
+ /**
563
+ * floating ui의 middleware를 넣을 수 있습니다.
564
+ *
565
+ * Ref: https://floating-ui.com/docs/useFloating#middleware
566
+ */
567
+ middlewares?: Array<Middleware | null | undefined | false>;
568
+ /**
569
+ * floating ui의 animation을 넣을 수 있습니다.
570
+ * framer-motion의 animation을 사용합니다.
571
+ */
572
+ animation?: {
573
+ initial: Record<string, unknown>;
574
+ animate: Record<string, unknown>;
575
+ exit: Record<string, unknown>;
576
+ };
577
+ /**
578
+ * trigger할 요소를 설정합니다.
579
+ */
580
+ trigger: ReactNode;
581
+ /**
582
+ * pop할 요소를 설정합니다.
583
+ */
584
+ popper: ReactNode;
585
+ }
586
+
587
+ declare const Popper: ({ trigger, popper, isOpen, placement, offset: initialOffset, autoPlacement: initialAutoPlacement, strategy, middlewares, animation: initialAnimation, ...rest }: PopperProps) => react_jsx_runtime.JSX.Element;
588
+
589
+ declare const StyledPopper: _emotion_styled.StyledComponent<{
590
+ theme?: _emotion_react.Theme | undefined;
591
+ as?: React$1.ElementType<any> | undefined;
592
+ } & Pick<PopperOptionProps, "height" | "width">, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
593
+
527
594
  declare const IconSizeVariants: {
528
595
  readonly X_SMALL: "X_SMALL";
529
596
  readonly SMALL: "SMALL";
@@ -577,4 +644,4 @@ interface MinusBoxOptionProps {
577
644
 
578
645
  declare const MinusButton: React__default.ForwardRefExoticComponent<MinusBoxProps & React__default.RefAttributes<HTMLButtonElement>>;
579
646
 
580
- export { BackDropOptionProps, BackDropProps, BorderRadiusTokens, BoxShadowTokens, Button, ButtonComponent, ButtonOptionProps, ButtonProps, ButtonSizeVar, ButtonStyleVar, Callout, CalloutOptionProps, CalloutProps, CalloutType, CalloutTypes, ChipButton, ChipButtonOptionProps, ChipButtonProps, ChipButtonSizeVariantType, ChipButtonSizeVariants, ChipButtonStyleVariantType, ChipButtonStyleVariants, ChipToggle, ChipToggleOptionProps, ChipToggleProps, ChipToggleSizeVariantType, ChipToggleSizeVariants, ChipToggleStyleVariantType, ChipToggleStyleVariants, ColorTokens, FontWeightTokens, Icon, IconButton, IconButtonComponent, IconButtonOptionProps, IconButtonProps, IconButtonSizeVar, IconButtonStyleVar, IconOptionProps, IconProps, IconSizeVariants, IconSizeVariantsType, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, MinusBoxOptionProps, MinusBoxProps, MinusButton, Modal, ModalBodyOptionProps, ModalBodyProps, ModalContainerOptionProps, ModalContainerProps, ModalFooterOptionProps, ModalFooterProps, ModalFooterType, ModalHeaderOptionProps, ModalHeaderProps, ModalHeaderType, ModalPortal as ModalProvider, ModalSize, ModalSizeType, MotionStack, MotionStackComponentType, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledIcon, StyledStack, Switch, SwitchOptionProps, SwitchProps, Text, TextArea, TextAreaOptionProps, TextAreaProps, TextOptionProps, TextProps, TypographyTokens, borderRadiusTokens, boxShadowTokens, buttonSizeVar, buttonStyleVar, colorTokens, fontWeightTokens, getDomain, iconButtonSizeVar, iconButtonStyleVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
647
+ export { BackDropOptionProps, BackDropProps, BorderRadiusTokens, BoxShadowTokens, Button, ButtonComponent, ButtonOptionProps, ButtonProps, ButtonSizeVar, ButtonStyleVar, Callout, CalloutOptionProps, CalloutProps, CalloutType, CalloutTypes, ChipButton, ChipButtonOptionProps, ChipButtonProps, ChipButtonSizeVariantType, ChipButtonSizeVariants, ChipButtonStyleVariantType, ChipButtonStyleVariants, ChipToggle, ChipToggleOptionProps, ChipToggleProps, ChipToggleSizeVariantType, ChipToggleSizeVariants, ChipToggleStyleVariantType, ChipToggleStyleVariants, ColorTokens, FontWeightTokens, Icon, IconButton, IconButtonComponent, IconButtonOptionProps, IconButtonProps, IconButtonSizeVar, IconButtonStyleVar, IconOptionProps, IconProps, IconSizeVariants, IconSizeVariantsType, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, MinusBoxOptionProps, MinusBoxProps, MinusButton, Modal, ModalBodyOptionProps, ModalBodyProps, ModalContainerOptionProps, ModalContainerProps, ModalFooterOptionProps, ModalFooterProps, ModalFooterType, ModalHeaderOptionProps, ModalHeaderProps, ModalHeaderType, ModalPortal as ModalProvider, ModalSize, ModalSizeType, MotionStack, MotionStackComponentType, Popper, PopperOptionProps, PopperProps, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledIcon, StyledPopper, StyledStack, Switch, SwitchOptionProps, SwitchProps, Text, TextArea, TextAreaOptionProps, TextAreaProps, TextOptionProps, TextProps, TypographyTokens, borderRadiusTokens, boxShadowTokens, buttonSizeVar, buttonStyleVar, colorTokens, fontWeightTokens, getDomain, iconButtonSizeVar, iconButtonStyleVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
package/dist/index.js CHANGED
@@ -537,7 +537,7 @@ function _templateObject34() {
537
537
  }
538
538
  function _templateObject35() {
539
539
  var data = _tagged_template_literal([
540
- "\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n padding: 0 12px;\n border-radius: 6px;\n cursor: pointer;\n ",
540
+ "\n display: flex;\n align-items: center;\n justify-content: center;\n height: fit-content;\n gap: 4px;\n padding: 0 12px;\n border-radius: 6px;\n cursor: pointer;\n ",
541
541
  ";\n ",
542
542
  ";\n ",
543
543
  ";\n"
@@ -676,12 +676,9 @@ function _templateObject47() {
676
676
  }
677
677
  function _templateObject48() {
678
678
  var data = _tagged_template_literal([
679
- "\n width: ",
680
- ";\n min-width: ",
679
+ "\n display: flex;\n flex-direction: row;\n width: ",
681
680
  ";\n height: ",
682
- ";\n min-height: ",
683
- ";\n\n & > path {\n fill: ",
684
- ";\n }\n"
681
+ ";\n"
685
682
  ]);
686
683
  _templateObject48 = function _templateObject() {
687
684
  return data;
@@ -690,7 +687,11 @@ function _templateObject48() {
690
687
  }
691
688
  function _templateObject49() {
692
689
  var data = _tagged_template_literal([
693
- "\n padding: 4px 0 4px 12px;\n background-color: transparent;\n width: 100%;\n border: none;\n box-sizing: border-box;\n &::placeholder {\n color: ",
690
+ "\n width: ",
691
+ ";\n min-width: ",
692
+ ";\n height: ",
693
+ ";\n min-height: ",
694
+ ";\n\n & > path {\n fill: ",
694
695
  ";\n }\n"
695
696
  ]);
696
697
  _templateObject49 = function _templateObject() {
@@ -700,7 +701,8 @@ function _templateObject49() {
700
701
  }
701
702
  function _templateObject50() {
702
703
  var data = _tagged_template_literal([
703
- "\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 0 8px 0 0;\n"
704
+ "\n padding: 4px 0 4px 12px;\n background-color: transparent;\n width: 100%;\n border: none;\n box-sizing: border-box;\n &::placeholder {\n color: ",
705
+ ";\n }\n"
704
706
  ]);
705
707
  _templateObject50 = function _templateObject() {
706
708
  return data;
@@ -709,7 +711,7 @@ function _templateObject50() {
709
711
  }
710
712
  function _templateObject51() {
711
713
  var data = _tagged_template_literal([
712
- "\n display: flex;\n width: 100%;\n justify-content: flex-end;\n align-items: center;\n gap: 2px;\n"
714
+ "\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 0 8px 0 0;\n"
713
715
  ]);
714
716
  _templateObject51 = function _templateObject() {
715
717
  return data;
@@ -717,6 +719,15 @@ function _templateObject51() {
717
719
  return data;
718
720
  }
719
721
  function _templateObject52() {
722
+ var data = _tagged_template_literal([
723
+ "\n display: flex;\n width: 100%;\n justify-content: flex-end;\n align-items: center;\n gap: 2px;\n"
724
+ ]);
725
+ _templateObject52 = function _templateObject() {
726
+ return data;
727
+ };
728
+ return data;
729
+ }
730
+ function _templateObject53() {
720
731
  var data = _tagged_template_literal([
721
732
  "\n display: flex;\n align-items: center;\n width: 100%;\n flex-direction: ",
722
733
  ";\n justify-content: space-between;\n min-height: 40px;\n margin: 1px;\n gap: 8px;\n box-shadow: 0 0 0 1px ",
@@ -724,50 +735,50 @@ function _templateObject52() {
724
735
  ";\n overflow: hidden;\n ",
725
736
  ";\n"
726
737
  ]);
727
- _templateObject52 = function _templateObject() {
738
+ _templateObject53 = function _templateObject() {
728
739
  return data;
729
740
  };
730
741
  return data;
731
742
  }
732
- function _templateObject53() {
743
+ function _templateObject54() {
733
744
  var data = _tagged_template_literal([
734
745
  "\n display: flex;\n width: 100%;\n flex-direction: row;\n padding: 8px 12px;\n gap: 8px;\n background-color: ",
735
746
  ";\n"
736
747
  ]);
737
- _templateObject53 = function _templateObject() {
748
+ _templateObject54 = function _templateObject() {
738
749
  return data;
739
750
  };
740
751
  return data;
741
752
  }
742
- function _templateObject54() {
753
+ function _templateObject55() {
743
754
  var data = _tagged_template_literal([
744
755
  "\n padding: 8px 12px 0 12px;\n background-color: transparent;\n resize: none;\n width: 100%;\n height: ",
745
756
  ";\n flex: 1;\n word-break: break-all;\n ",
746
757
  ";\n &::placeholder {\n color: ",
747
758
  ";\n }\n"
748
759
  ]);
749
- _templateObject54 = function _templateObject() {
760
+ _templateObject55 = function _templateObject() {
750
761
  return data;
751
762
  };
752
763
  return data;
753
764
  }
754
- function _templateObject55() {
765
+ function _templateObject56() {
755
766
  var data = _tagged_template_literal([
756
767
  "\n width: 32px;\n height: 32px;\n padding: 7px;\n"
757
768
  ]);
758
- _templateObject55 = function _templateObject() {
769
+ _templateObject56 = function _templateObject() {
759
770
  return data;
760
771
  };
761
772
  return data;
762
773
  }
763
- function _templateObject56() {
774
+ function _templateObject57() {
764
775
  var data = _tagged_template_literal([
765
776
  "\n display: flex;\n width: 16px;\n height: 16px;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n border-radius: ",
766
777
  ";\n border: none;\n background: ",
767
778
  ";\n cursor: pointer;\n transition:\n transform 0.1s ease-out,\n background 0.1s ease;\n\n &:hover {\n background: ",
768
779
  ";\n }\n"
769
780
  ]);
770
- _templateObject56 = function _templateObject() {
781
+ _templateObject57 = function _templateObject() {
771
782
  return data;
772
783
  };
773
784
  return data;
@@ -780,6 +791,8 @@ var reactDom = require("react-dom");
780
791
  var utils = require("@shoplflow/utils");
781
792
  var react = require("@emotion/react");
782
793
  var Scrollbars = require("react-custom-scrollbars-2");
794
+ var reactDom$1 = require("@floating-ui/react-dom");
795
+ var react$1 = require("@floating-ui/react");
783
796
  var ShoplAssets = require("@shoplflow/shopl-assets");
784
797
  var HadaAssets = require("@shoplflow/hada-assets");
785
798
  function _interopDefault(e) {
@@ -1914,6 +1927,61 @@ exports.CalloutTypes = {
1914
1927
  INFORMATION: "INFORMATION",
1915
1928
  ALERT: "ALERT"
1916
1929
  };
1930
+ exports.StyledPopper = styled5__default.default.div(_templateObject48(), function(param) {
1931
+ var width = param.width;
1932
+ return width !== null && width !== void 0 ? width : "fit-content";
1933
+ }, function(param) {
1934
+ var height = param.height;
1935
+ return height !== null && height !== void 0 ? height : "fit-content";
1936
+ });
1937
+ var Popper = function(_param) {
1938
+ var trigger = _param.trigger, popper = _param.popper, _param_isOpen = _param.isOpen, isOpen = _param_isOpen === void 0 ? false : _param_isOpen, placement = _param.placement, tmp = _param.offset, initialOffset = tmp === void 0 ? 0 : tmp, initialAutoPlacement = _param.autoPlacement, _param_strategy = _param.strategy, strategy = _param_strategy === void 0 ? "absolute" : _param_strategy, middlewares = _param.middlewares, initialAnimation = _param.animation, rest = _object_without_properties(_param, [
1939
+ "trigger",
1940
+ "popper",
1941
+ "isOpen",
1942
+ "placement",
1943
+ "offset",
1944
+ "autoPlacement",
1945
+ "strategy",
1946
+ "middlewares",
1947
+ "animation"
1948
+ ]);
1949
+ var _reactDom$1_useFloating = reactDom$1.useFloating({
1950
+ strategy: strategy,
1951
+ placement: placement,
1952
+ whileElementsMounted: react$1.autoUpdate,
1953
+ middleware: [
1954
+ react$1.offset(initialOffset),
1955
+ react$1.autoPlacement(_object_spread({
1956
+ crossAxis: false
1957
+ }, initialAutoPlacement))
1958
+ ].concat(_to_consumable_array(middlewares !== null && middlewares !== void 0 ? middlewares : []))
1959
+ }), refs = _reactDom$1_useFloating.refs, floatingStyles = _reactDom$1_useFloating.floatingStyles;
1960
+ var animation = initialAnimation !== null && initialAnimation !== void 0 ? initialAnimation : fadeInOut;
1961
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
1962
+ children: [
1963
+ /* @__PURE__ */ jsxRuntime.jsx(exports.StyledPopper, _object_spread_props(_object_spread({
1964
+ ref: refs.setReference,
1965
+ "data-shoplflow": "Popper"
1966
+ }, rest), {
1967
+ children: trigger
1968
+ })),
1969
+ /* @__PURE__ */ jsxRuntime.jsx(react$1.FloatingPortal, {
1970
+ children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, {
1971
+ children: isOpen && /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.div, {
1972
+ initial: animation.initial,
1973
+ animate: animation.animate,
1974
+ exit: animation.exit,
1975
+ ref: refs.setFloating,
1976
+ style: floatingStyles,
1977
+ children: popper
1978
+ })
1979
+ })
1980
+ })
1981
+ ]
1982
+ });
1983
+ };
1984
+ exports.Popper = Popper;
1917
1985
  // src/components/Icon/Icon.types.ts
1918
1986
  exports.IconSizeVariants = {
1919
1987
  X_SMALL: "X_SMALL",
@@ -1939,7 +2007,7 @@ var getIconSize = function(size) {
1939
2007
  return "24px";
1940
2008
  }
1941
2009
  };
1942
- exports.StyledIcon = styled5__default.default.svg(_templateObject48(), function(param) {
2010
+ exports.StyledIcon = styled5__default.default.svg(_templateObject49(), function(param) {
1943
2011
  var sizeVar = param.sizeVar;
1944
2012
  return sizeVar && getIconSize(sizeVar);
1945
2013
  }, function(param) {
@@ -1967,9 +2035,9 @@ var Icon = React3.forwardRef(function(_param, ref) {
1967
2035
  }));
1968
2036
  });
1969
2037
  exports.Icon = Icon;
1970
- var StyledInput = styled5__default.default.input(_templateObject49(), exports.colorTokens.neutral350);
1971
- var RightElementWrapper = styled5__default.default.div(_templateObject50());
1972
- var Wrapper = styled5__default.default.div(_templateObject51());
2038
+ var StyledInput = styled5__default.default.input(_templateObject50(), exports.colorTokens.neutral350);
2039
+ var RightElementWrapper = styled5__default.default.div(_templateObject51());
2040
+ var Wrapper = styled5__default.default.div(_templateObject52());
1973
2041
  var TextCounter = function(param) {
1974
2042
  var currentLength = param.currentLength, maxLength = param.maxLength;
1975
2043
  return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper, {
@@ -2051,7 +2119,7 @@ var getBorderColorByStatus = function(param) {
2051
2119
  }
2052
2120
  return exports.colorTokens.neutral300;
2053
2121
  };
2054
- var InputWrapper = styled5__default.default.label(_templateObject52(), function(param) {
2122
+ var InputWrapper = styled5__default.default.label(_templateObject53(), function(param) {
2055
2123
  var direction = param.direction;
2056
2124
  return direction || "row";
2057
2125
  }, function(props) {
@@ -2208,8 +2276,8 @@ React3.forwardRef(function(_param, ref) {
2208
2276
  ]
2209
2277
  });
2210
2278
  });
2211
- var BottomElementWrapper = styled5__default.default.div(_templateObject53(), exports.colorTokens.neutral0);
2212
- var StyledTextarea = styled5__default.default.textarea(_templateObject54(), function(param) {
2279
+ var BottomElementWrapper = styled5__default.default.div(_templateObject54(), exports.colorTokens.neutral0);
2280
+ var StyledTextarea = styled5__default.default.textarea(_templateObject55(), function(param) {
2213
2281
  var minHeight = param.minHeight;
2214
2282
  return minHeight ? "".concat(minHeight, "px") : "300px";
2215
2283
  }, function(param) {
@@ -2318,8 +2386,8 @@ var TextArea = React3.forwardRef(function(_param, ref) {
2318
2386
  });
2319
2387
  });
2320
2388
  exports.TextArea = TextArea;
2321
- var Container2 = styled5__default.default.div(_templateObject55());
2322
- var IconButton2 = styled5__default.default.button(_templateObject56(), exports.borderRadiusTokens.borderRadius04, function(param) {
2389
+ var Container2 = styled5__default.default.div(_templateObject56());
2390
+ var IconButton2 = styled5__default.default.button(_templateObject57(), exports.borderRadiusTokens.borderRadius04, function(param) {
2323
2391
  var color = param.color;
2324
2392
  return exports.colorTokens[color];
2325
2393
  }, function(param) {