@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 CHANGED
@@ -66955,6 +66955,7 @@ var InputCounter = ({
66955
66955
  containerClassName,
66956
66956
  onClickPlus,
66957
66957
  onClickMinus,
66958
+ disabled,
66958
66959
  ...rest
66959
66960
  }) => {
66960
66961
  return /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
@@ -66990,7 +66991,7 @@ var InputCounter = ({
66990
66991
  setValue((prev) => prev - step);
66991
66992
  if (onClickMinus) onClickMinus();
66992
66993
  },
66993
- disabled: value === min
66994
+ disabled: value === min || disabled
66994
66995
  }
66995
66996
  ),
66996
66997
  noInput ? /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
@@ -67008,8 +67009,9 @@ var InputCounter = ({
67008
67009
  id,
67009
67010
  value,
67010
67011
  onChange: (e) => setValue(Number(e.target.value)),
67011
- 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",
67012
+ 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",
67012
67013
  size: value.toString().length + 1,
67014
+ disabled,
67013
67015
  ...rest
67014
67016
  }
67015
67017
  ),
@@ -67027,7 +67029,7 @@ var InputCounter = ({
67027
67029
  setValue((prev) => prev + step);
67028
67030
  if (onClickPlus) onClickPlus();
67029
67031
  },
67030
- disabled: value === max
67032
+ disabled: value === max || disabled
67031
67033
  }
67032
67034
  )
67033
67035
  ]