@juspay/svelte-ui-components 2.13.1 → 2.14.0
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/Input/Input.svelte
CHANGED
|
@@ -43,6 +43,14 @@
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
export function blur() {
|
|
47
|
+
try {
|
|
48
|
+
inputElement?.blur();
|
|
49
|
+
} catch (error) {
|
|
50
|
+
console.error('Error blurring inputElement:', error);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
46
54
|
let inputElement: HTMLInputElement | HTMLTextAreaElement | null = $state(null);
|
|
47
55
|
|
|
48
56
|
let validationState = $derived.by(() => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { InputButtonProperties } from './properties';
|
|
2
2
|
declare const InputButton: import("svelte").Component<InputButtonProperties, {
|
|
3
3
|
focus: () => void;
|
|
4
|
+
blur: () => void;
|
|
4
5
|
}, "value">;
|
|
5
6
|
type InputButton = ReturnType<typeof InputButton>;
|
|
6
7
|
export default InputButton;
|