@shoplflow/base 0.24.30 → 0.24.32
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 +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1726,7 +1726,10 @@ exports.PopperPortal = React2.forwardRef(
|
|
|
1726
1726
|
const { floatingStyles, setFloating, isOpen } = usePopper();
|
|
1727
1727
|
const animation = initialAnimation != null ? initialAnimation : fadeInOut;
|
|
1728
1728
|
const refs = useMergeRefs(ref, setFloating);
|
|
1729
|
-
|
|
1729
|
+
if (!isOpen) {
|
|
1730
|
+
return null;
|
|
1731
|
+
}
|
|
1732
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.FloatingPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1730
1733
|
framerMotion.motion.div,
|
|
1731
1734
|
{
|
|
1732
1735
|
initial: animation.initial,
|
|
@@ -2626,6 +2629,7 @@ var StyledInput = styled5__default.default.input`
|
|
|
2626
2629
|
background-color: transparent;
|
|
2627
2630
|
display: flex;
|
|
2628
2631
|
min-width: 64px;
|
|
2632
|
+
width: 100%;
|
|
2629
2633
|
border: none;
|
|
2630
2634
|
box-sizing: border-box;
|
|
2631
2635
|
&::placeholder {
|
|
@@ -2733,7 +2737,7 @@ var Input = React2.forwardRef(
|
|
|
2733
2737
|
]);
|
|
2734
2738
|
const [text, setText] = React2.useState("");
|
|
2735
2739
|
const [isFocused, setIsFocused] = React2.useState(false);
|
|
2736
|
-
const [type, setType] = React2.useState(
|
|
2740
|
+
const [type, setType] = React2.useState(initialType);
|
|
2737
2741
|
const [isHovered, setIsHovered] = React2.useState(false);
|
|
2738
2742
|
const uniqueId = React2.useId();
|
|
2739
2743
|
const inputRef = React2__namespace.default.useRef(null);
|