@officesdk/design 0.1.12 → 0.1.13
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.
|
@@ -552,8 +552,10 @@ interface NumberInputProps {
|
|
|
552
552
|
unit?: string;
|
|
553
553
|
/**
|
|
554
554
|
* Callback when value changes
|
|
555
|
+
* @param fixedValue - The clamped value within min/max range
|
|
556
|
+
* @param rawValue - The original input value before clamping
|
|
555
557
|
*/
|
|
556
|
-
onChange?: (
|
|
558
|
+
onChange?: (fixedValue: number, rawValue: number) => void;
|
|
557
559
|
/**
|
|
558
560
|
* Custom className
|
|
559
561
|
*/
|
|
@@ -1211,7 +1211,7 @@ var init_NumberInput = __esm({
|
|
|
1211
1211
|
if (controlledValue === void 0) {
|
|
1212
1212
|
setInternalValue(clampedValue);
|
|
1213
1213
|
}
|
|
1214
|
-
onChange?.(clampedValue);
|
|
1214
|
+
onChange?.(clampedValue, newValue);
|
|
1215
1215
|
},
|
|
1216
1216
|
[clampValue, controlledValue, onChange]
|
|
1217
1217
|
);
|