@sustaina/shared-ui 1.54.0 → 1.54.1

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.js CHANGED
@@ -5227,6 +5227,7 @@ function DatePicker({
5227
5227
  "h-9 w-full p-0 text-sm font-normal rounded-md transition-all duration-150",
5228
5228
  "border border-transparent",
5229
5229
  !inCurrentMonth && "opacity-50 pointer-events-none",
5230
+ disabled && inCurrentMonth && "opacity-50 pointer-events-none cursor-event-none",
5230
5231
  selected || isRangeStart || isRangeEnd ? "bg-[#379a2a] text-white" : "bg-white text-black hover:border-[#379a2a] hover:bg-green-50 active:bg-green-100",
5231
5232
  isInRange && !isRangeStart && !isRangeEnd && "bg-green-50 border-green-200"
5232
5233
  ),
@@ -15935,7 +15936,7 @@ function useAutoFormatDecimal({
15935
15936
  if (blurScale !== void 0 && !isUserEditingRef.current) {
15936
15937
  setFormattedValue(truncateToFixed(parsed, blurScale));
15937
15938
  }
15938
- } else if (value === void 0 || value === null || value === "") {
15939
+ } else if (value === null || value === "") {
15939
15940
  setFormattedValue(void 0);
15940
15941
  }
15941
15942
  }, [value, enabled, blurScale]);
@@ -16080,7 +16081,7 @@ var InputNumber = ({
16080
16081
  onStepChange?.(clamped);
16081
16082
  }
16082
16083
  if (autoFormatDecimal && autoFormat.blurScale !== void 0) {
16083
- const rawStr = wasClamped ? String(clamped) : rawValueRef.current || "0";
16084
+ const rawStr = wasClamped ? String(clamped) : rawValueRef.current || String(clamped);
16084
16085
  autoFormat.onBlur(truncateStringToFixed(rawStr, autoFormat.blurScale));
16085
16086
  } else {
16086
16087
  autoFormat.resetEditing();