@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
|
*/
|
|
@@ -1199,7 +1199,7 @@ var init_NumberInput = __esm({
|
|
|
1199
1199
|
if (controlledValue === void 0) {
|
|
1200
1200
|
setInternalValue(clampedValue);
|
|
1201
1201
|
}
|
|
1202
|
-
onChange?.(clampedValue);
|
|
1202
|
+
onChange?.(clampedValue, newValue);
|
|
1203
1203
|
},
|
|
1204
1204
|
[clampValue, controlledValue, onChange]
|
|
1205
1205
|
);
|
|
@@ -2207,6 +2207,8 @@ var Input = forwardRef(
|
|
|
2207
2207
|
clearIcon,
|
|
2208
2208
|
className,
|
|
2209
2209
|
style,
|
|
2210
|
+
inputClassName,
|
|
2211
|
+
inputStyle,
|
|
2210
2212
|
onFocus,
|
|
2211
2213
|
onBlur,
|
|
2212
2214
|
value,
|
|
@@ -2288,6 +2290,8 @@ var Input = forwardRef(
|
|
|
2288
2290
|
onChange: handleChange,
|
|
2289
2291
|
onFocus: handleFocus,
|
|
2290
2292
|
onBlur: handleBlur,
|
|
2293
|
+
className: inputClassName,
|
|
2294
|
+
style: inputStyle,
|
|
2291
2295
|
...rest
|
|
2292
2296
|
}
|
|
2293
2297
|
), clearButtonNode),
|