@shoplflow/base 0.24.18 → 0.24.20
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/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -2707,10 +2707,10 @@ var Input = React2.forwardRef(
|
|
|
2707
2707
|
);
|
|
2708
2708
|
const limitRange = React2.useCallback(
|
|
2709
2709
|
(value2) => {
|
|
2710
|
-
if (min && Number(value2) < min) {
|
|
2710
|
+
if (min && Number(value2) < Number(min)) {
|
|
2711
2711
|
return String(min);
|
|
2712
2712
|
}
|
|
2713
|
-
if (max && Number(value2) > max) {
|
|
2713
|
+
if (max && Number(value2) > Number(max)) {
|
|
2714
2714
|
return String(max);
|
|
2715
2715
|
}
|
|
2716
2716
|
return value2;
|
|
@@ -2811,7 +2811,7 @@ var Input = React2.forwardRef(
|
|
|
2811
2811
|
),
|
|
2812
2812
|
!(type === "number") && /* @__PURE__ */ jsxRuntime.jsxs(RightElementWrapper, { children: [
|
|
2813
2813
|
maxLength && isFocused && /* @__PURE__ */ jsxRuntime.jsx(TextCounter_default, { currentLength: String(text).length, maxLength }),
|
|
2814
|
-
isFocused && Boolean(String(text).length > 0) && /* @__PURE__ */ jsxRuntime.jsx(exports.IconButton, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", children: /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { iconSource: assetFunction("DeleteIcon"), color: "
|
|
2814
|
+
isFocused && Boolean(String(text).length > 0) && /* @__PURE__ */ jsxRuntime.jsx(exports.IconButton, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", children: /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { iconSource: assetFunction("DeleteIcon"), color: "neutral350" }) }),
|
|
2815
2815
|
initialType === "password" && /* @__PURE__ */ jsxRuntime.jsx(exports.IconButton, { sizeVar: "S", onClick: handleTogglePasswordType, styleVar: "GHOST", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2816
2816
|
exports.Icon,
|
|
2817
2817
|
{
|