@juspay/svelte-ui-components 2.7.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.
@@ -45,7 +45,7 @@
45
45
  <div class="button-icon">{@render icon()}</div>
46
46
  {/if}
47
47
  {#if text}
48
- <div class="button-text">{text}</div>
48
+ <div class="button-text">{@html text}</div>
49
49
  {/if}
50
50
  </button>
51
51
  </div>
@@ -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 {
@@ -31,4 +31,5 @@ export type InputEventProperties = {
31
31
  onPaste?: (event: ClipboardEvent) => void;
32
32
  onClick?: (event: MouseEvent) => void;
33
33
  onStateChange?: (state: ValidationState) => void;
34
+ onKeyDown?: (event: KeyboardEvent) => void;
34
35
  };
@@ -112,6 +112,7 @@
112
112
  .container {
113
113
  display: flex;
114
114
  flex-direction: column;
115
+ margin: var(--input-button-container-margin);
115
116
  }
116
117
 
117
118
  .input-button-container {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "2.7.0",
3
+ "version": "2.9.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run package",