@officesdk/design 0.1.11 → 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.
|
@@ -403,6 +403,14 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, '
|
|
|
403
403
|
* Custom inline styles
|
|
404
404
|
*/
|
|
405
405
|
style?: React.CSSProperties;
|
|
406
|
+
/**
|
|
407
|
+
* Custom input className
|
|
408
|
+
*/
|
|
409
|
+
inputClassName?: string;
|
|
410
|
+
/**
|
|
411
|
+
* Custom input styles
|
|
412
|
+
*/
|
|
413
|
+
inputStyle?: React.CSSProperties;
|
|
406
414
|
}
|
|
407
415
|
/**
|
|
408
416
|
* Input Component
|
|
@@ -544,8 +552,10 @@ interface NumberInputProps {
|
|
|
544
552
|
unit?: string;
|
|
545
553
|
/**
|
|
546
554
|
* Callback when value changes
|
|
555
|
+
* @param fixedValue - The clamped value within min/max range
|
|
556
|
+
* @param rawValue - The original input value before clamping
|
|
547
557
|
*/
|
|
548
|
-
onChange?: (
|
|
558
|
+
onChange?: (fixedValue: number, rawValue: number) => void;
|
|
549
559
|
/**
|
|
550
560
|
* Custom className
|
|
551
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
|
);
|
|
@@ -2219,6 +2219,8 @@ var Input = React3.forwardRef(
|
|
|
2219
2219
|
clearIcon,
|
|
2220
2220
|
className,
|
|
2221
2221
|
style,
|
|
2222
|
+
inputClassName,
|
|
2223
|
+
inputStyle,
|
|
2222
2224
|
onFocus,
|
|
2223
2225
|
onBlur,
|
|
2224
2226
|
value,
|
|
@@ -2300,6 +2302,8 @@ var Input = React3.forwardRef(
|
|
|
2300
2302
|
onChange: handleChange,
|
|
2301
2303
|
onFocus: handleFocus,
|
|
2302
2304
|
onBlur: handleBlur,
|
|
2305
|
+
className: inputClassName,
|
|
2306
|
+
style: inputStyle,
|
|
2303
2307
|
...rest
|
|
2304
2308
|
}
|
|
2305
2309
|
), clearButtonNode),
|