@julseb-lib/react 1.1.30 → 1.1.31
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 +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -63996,6 +63996,7 @@ var InputCounter = ({
|
|
|
63996
63996
|
containerClassName,
|
|
63997
63997
|
onClickPlus,
|
|
63998
63998
|
onClickMinus,
|
|
63999
|
+
disabled,
|
|
63999
64000
|
...rest
|
|
64000
64001
|
}) => {
|
|
64001
64002
|
return /* @__PURE__ */ jsx297(
|
|
@@ -64031,7 +64032,7 @@ var InputCounter = ({
|
|
|
64031
64032
|
setValue((prev) => prev - step);
|
|
64032
64033
|
if (onClickMinus) onClickMinus();
|
|
64033
64034
|
},
|
|
64034
|
-
disabled: value === min
|
|
64035
|
+
disabled: value === min || disabled
|
|
64035
64036
|
}
|
|
64036
64037
|
),
|
|
64037
64038
|
noInput ? /* @__PURE__ */ jsx297(
|
|
@@ -64049,8 +64050,9 @@ var InputCounter = ({
|
|
|
64049
64050
|
id,
|
|
64050
64051
|
value,
|
|
64051
64052
|
onChange: (e) => setValue(Number(e.target.value)),
|
|
64052
|
-
className: "px-2 border border-gray-200 focus:border-primary-500 rounded-md outline-none min-w-[calc(3ch+16px)] text-center input-counter-input",
|
|
64053
|
+
className: "disabled:bg-gray-100 px-2 border border-gray-200 focus:border-primary-500 rounded-md outline-none min-w-[calc(3ch+16px)] disabled:text-gray-500 text-center disabled:cursor-not-allowed input-counter-input",
|
|
64053
64054
|
size: value.toString().length + 1,
|
|
64055
|
+
disabled,
|
|
64054
64056
|
...rest
|
|
64055
64057
|
}
|
|
64056
64058
|
),
|
|
@@ -64068,7 +64070,7 @@ var InputCounter = ({
|
|
|
64068
64070
|
setValue((prev) => prev + step);
|
|
64069
64071
|
if (onClickPlus) onClickPlus();
|
|
64070
64072
|
},
|
|
64071
|
-
disabled: value === max
|
|
64073
|
+
disabled: value === max || disabled
|
|
64072
64074
|
}
|
|
64073
64075
|
)
|
|
64074
64076
|
]
|