@officesdk/design 0.1.12 → 0.1.14
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.
|
@@ -357,7 +357,7 @@ interface SliderProps {
|
|
|
357
357
|
declare const Slider: React.FC<SliderProps>;
|
|
358
358
|
|
|
359
359
|
type InputSize = 'mini' | 'small' | 'medium' | 'large';
|
|
360
|
-
type LineType = 'outlined' | 'underlined';
|
|
360
|
+
type LineType = 'outlined' | 'underlined' | 'borderless';
|
|
361
361
|
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix'> {
|
|
362
362
|
/**
|
|
363
363
|
* Input line type
|
|
@@ -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
|
*/
|
|
@@ -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
|
);
|
|
@@ -2014,7 +2014,17 @@ var InputWrapper2 = styled.div`
|
|
|
2014
2014
|
boxShadow = sizeConfig?.boxShadowActive || "none";
|
|
2015
2015
|
}
|
|
2016
2016
|
}
|
|
2017
|
-
if ($lineType === "
|
|
2017
|
+
if ($lineType === "borderless") {
|
|
2018
|
+
return `
|
|
2019
|
+
border: none;
|
|
2020
|
+
background: transparent;
|
|
2021
|
+
box-shadow: none;
|
|
2022
|
+
|
|
2023
|
+
&:hover:not(:disabled) {
|
|
2024
|
+
background: transparent;
|
|
2025
|
+
}
|
|
2026
|
+
`;
|
|
2027
|
+
} else if ($lineType === "outlined") {
|
|
2018
2028
|
return `
|
|
2019
2029
|
border: 1px solid ${borderColor};
|
|
2020
2030
|
background: ${background};
|