@juspay/svelte-ui-components 2.8.0 → 2.9.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
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
onInput = () => {},
|
|
30
30
|
onPaste = () => {},
|
|
31
31
|
onStateChange = () => {},
|
|
32
|
-
onClick = () => {}
|
|
32
|
+
onClick = () => {},
|
|
33
|
+
onKeyDown = () => {}
|
|
33
34
|
}: InputProperties = $props();
|
|
34
35
|
|
|
35
36
|
export function focus() {
|
|
@@ -187,6 +188,7 @@
|
|
|
187
188
|
oninput={handleOnInput}
|
|
188
189
|
onpaste={handleOnPaste}
|
|
189
190
|
onclick={onClick}
|
|
191
|
+
onkeydown={onKeyDown}
|
|
190
192
|
class:action-input={actionInput}
|
|
191
193
|
style="--focus-border: {addFocusColor ? 1 : 0}px;"
|
|
192
194
|
disabled={disable}
|
|
@@ -206,6 +208,7 @@
|
|
|
206
208
|
oninput={handleOnInput}
|
|
207
209
|
onpaste={handleOnPaste}
|
|
208
210
|
onclick={onClick}
|
|
211
|
+
onkeydown={onKeyDown}
|
|
209
212
|
data-pw={testId}
|
|
210
213
|
class:action-input={actionInput}
|
|
211
214
|
disabled={disable}
|
|
@@ -278,6 +281,7 @@
|
|
|
278
281
|
flex-direction: column;
|
|
279
282
|
margin: var(--input-container-margin);
|
|
280
283
|
padding: var(--input-container-padding);
|
|
284
|
+
width: var(--input-container-width);
|
|
281
285
|
}
|
|
282
286
|
|
|
283
287
|
.label {
|