x-ui-design 1.0.27 → 1.0.28
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.esm.js +10 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/lib/components/Input/Input.tsx +10 -8
- package/package.json +1 -1
- package/src/app/page.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -3888,15 +3888,17 @@ const InputComponent = ({
|
|
|
3888
3888
|
const [iconRenderVisible, setIconRenderVisible] = React.useState(false);
|
|
3889
3889
|
const animationRef = React.useRef(null);
|
|
3890
3890
|
React.useImperativeHandle(ref, () => ({
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
inputRef.current
|
|
3891
|
+
retry: () => ({
|
|
3892
|
+
focus: () => inputRef.current?.focus(),
|
|
3893
|
+
blur: () => inputRef.current?.blur(),
|
|
3894
|
+
input: inputRef.current,
|
|
3895
|
+
nativeElement: inputRef.current,
|
|
3896
|
+
setSelectionRange: (start, end) => {
|
|
3897
|
+
if (inputRef.current) {
|
|
3898
|
+
inputRef.current.setSelectionRange(start, end);
|
|
3899
|
+
}
|
|
3898
3900
|
}
|
|
3899
|
-
}
|
|
3901
|
+
})
|
|
3900
3902
|
}));
|
|
3901
3903
|
React.useEffect(() => {
|
|
3902
3904
|
setMaskValue(mask ? applyMask(stripMask(`${value ?? ''}`, mask, maskChar), mask, maskChar).masked : value ?? '');
|