@shoplflow/base 0.24.18 → 0.24.21
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/styles/global.css +1 -1
- package/dist/styles/global.css.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2682,10 +2682,10 @@ var Input = forwardRef(
|
|
|
2682
2682
|
);
|
|
2683
2683
|
const limitRange = useCallback(
|
|
2684
2684
|
(value2) => {
|
|
2685
|
-
if (min && Number(value2) < min) {
|
|
2685
|
+
if (min && Number(value2) < Number(min)) {
|
|
2686
2686
|
return String(min);
|
|
2687
2687
|
}
|
|
2688
|
-
if (max && Number(value2) > max) {
|
|
2688
|
+
if (max && Number(value2) > Number(max)) {
|
|
2689
2689
|
return String(max);
|
|
2690
2690
|
}
|
|
2691
2691
|
return value2;
|
|
@@ -2786,7 +2786,7 @@ var Input = forwardRef(
|
|
|
2786
2786
|
),
|
|
2787
2787
|
!(type === "number") && /* @__PURE__ */ jsxs(RightElementWrapper, { children: [
|
|
2788
2788
|
maxLength && isFocused && /* @__PURE__ */ jsx(TextCounter_default, { currentLength: String(text).length, maxLength }),
|
|
2789
|
-
isFocused && Boolean(String(text).length > 0) && /* @__PURE__ */ jsx(IconButton_default, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", children: /* @__PURE__ */ jsx(Icon_default, { iconSource: assetFunction("DeleteIcon"), color: "
|
|
2789
|
+
isFocused && Boolean(String(text).length > 0) && /* @__PURE__ */ jsx(IconButton_default, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", children: /* @__PURE__ */ jsx(Icon_default, { iconSource: assetFunction("DeleteIcon"), color: "neutral350" }) }),
|
|
2790
2790
|
initialType === "password" && /* @__PURE__ */ jsx(IconButton_default, { sizeVar: "S", onClick: handleTogglePasswordType, styleVar: "GHOST", children: /* @__PURE__ */ jsx(
|
|
2791
2791
|
Icon_default,
|
|
2792
2792
|
{
|