@juspay/svelte-ui-components 1.23.0 → 1.24.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.
@@ -55,6 +55,7 @@ function onInput(event) {
55
55
  }
56
56
  properties.value = currentValue;
57
57
  properties = properties;
58
+ dispatch("valueChange", { value: currentValue });
58
59
  dispatch("input", event);
59
60
  }
60
61
  function onPaste(event) {
@@ -10,6 +10,7 @@ declare const __propDef: {
10
10
  keyup: KeyboardEvent;
11
11
  keypress: KeyboardEvent;
12
12
  focus: FocusEvent;
13
+ valueChange: CustomEvent<any>;
13
14
  input: CustomEvent<any>;
14
15
  paste: CustomEvent<any>;
15
16
  focusout: CustomEvent<any>;
@@ -71,6 +71,7 @@ export function focus() {
71
71
  on:stateChange={handleState}
72
72
  on:input={(event) => dispatch('input', event)}
73
73
  on:focusout={onFocusOut}
74
+ on:valueChange
74
75
  on:focus
75
76
  on:click={onInputClick}
76
77
  --input-width="auto"
@@ -6,6 +6,7 @@ declare const __propDef: {
6
6
  focus?: (() => void) | undefined;
7
7
  };
8
8
  events: {
9
+ valueChange: CustomEvent<any>;
9
10
  focus: FocusEvent;
10
11
  input: CustomEvent<any>;
11
12
  rightButtonClick: CustomEvent<any>;
@@ -128,6 +128,7 @@ onDestroy(() => {
128
128
  <div class="icon-container">
129
129
  <Img {...properties.leftIcon} />
130
130
  </div>
131
+ <slot name="leftContent" />
131
132
  {/if}
132
133
  <div class="selected-content">
133
134
  {#if properties.selectMultipleItems && Array.isArray(properties.selectedItemLabel) && Array.isArray(properties.selectedItem)}
@@ -13,6 +13,7 @@ declare const __propDef: {
13
13
  [evt: string]: CustomEvent<any>;
14
14
  };
15
15
  slots: {
16
+ leftContent: {};
16
17
  bottomContent: {};
17
18
  };
18
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "1.23.0",
3
+ "version": "1.24.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run package",