@juspay/svelte-ui-components 1.34.0 → 1.34.1

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.
@@ -5,7 +5,7 @@ declare const __propDef: {
5
5
  properties?: BannerProperties | null;
6
6
  };
7
7
  events: {
8
- click: MouseEvent;
8
+ click: PointerEvent;
9
9
  keydown: KeyboardEvent;
10
10
  } & {
11
11
  [evt: string]: CustomEvent<any>;
@@ -33,26 +33,26 @@ export let properties = defaultBrandLoaderProperties;
33
33
  width: var(--loader-width, 100vw);
34
34
  border-radius: var(--loader-background-border-radius, 0px);
35
35
  display: flex;
36
- justify-content: center;
37
- align-items: center;
38
- flex-direction: column;
36
+ justify-content: var(--loader-justify-content, center);
37
+ align-items: var(--loader-align-items, center);
38
+ flex-direction: var(--loader-flex-direction, column);
39
39
  }
40
40
 
41
41
  .loader img {
42
- height: 40px;
43
- width: 71px;
42
+ height: var(--loader-img-height, 40px);
43
+ width: var(--loader-img-width, 71px);
44
44
  }
45
45
 
46
46
  .text {
47
- font-size: 22px;
48
- padding: 16px 0px;
47
+ font-size: var(--loader-text-font-size, 22px);
48
+ padding: var(--loader-text-padding, 16px 0px);
49
49
  color: var(--loader-text-color, white);
50
50
  font-family: var(--loader-text-font, Euclid Circular A);
51
51
  }
52
52
 
53
53
  .sub-text {
54
- font-size: 12px;
55
- margin-bottom: 16px;
54
+ font-size: var(--loader-sub-text-font-size, 12px);
55
+ margin: var(--loader-sub-text-margin, 16px);
56
56
  }
57
57
 
58
58
  @supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
@@ -63,26 +63,26 @@ export let properties = defaultBrandLoaderProperties;
63
63
 
64
64
  .loader {
65
65
  background-color: var(--loader-background-color, #ffffff33);
66
- -webkit-backdrop-filter: blur(50px);
67
- backdrop-filter: blur(50px);
66
+ -webkit-backdrop-filter: blur(var(--loader-webkit-backdrop-filter, 50px));
67
+ backdrop-filter: blur(var(--loader-backdrop-blur, 50px));
68
68
  }
69
69
  }
70
70
 
71
71
  .lds-ellipsis {
72
- display: inline-block;
73
- position: relative;
74
- width: 80px;
75
- height: 80px;
72
+ display: var(--loader-ellipsis-display, inline-block);
73
+ position: var(--loader-ellipsis-position, relative);
74
+ width: var(--loader-ellipsis-width, 80px);
75
+ height: var(--loader-ellipsis-height, 80px);
76
76
  }
77
77
  .lds-ellipsis div {
78
- display: inherit;
79
- position: absolute;
80
- top: 5px;
81
- width: 13px;
82
- height: 13px;
83
- border-radius: 50%;
78
+ display: var(--loader-ellipsis-div-display, inherit);
79
+ position: var(--loader-ellipsis-div-position, absolute);
80
+ top: var(--loader-ellipsis-div-top, 5px);
81
+ width: var(--loader-ellipsis-div-width, 13px);
82
+ height: var(--loader-ellipsis-div-height, 13px);
83
+ border-radius: var(--loader-ellipsis-div-border-radius, 50%);
84
84
  background: var(--loader-dot-color, #3a4550);
85
- animation-timing-function: cubic-bezier(0, 1, 1, 0);
85
+ animation-timing-function: var(--loader-ellipsis-animation-timing, cubic-bezier(0, 1, 1, 0));
86
86
  }
87
87
  .lds-ellipsis div:nth-child(1) {
88
88
  left: 8px;
@@ -15,7 +15,7 @@ function handleCheckboxClick(e) {
15
15
  {#if $$slots.checkboxLabel}
16
16
  <slot name="checkboxLabel" />
17
17
  {:else}
18
- <span class="text" class:checked={checked}>
18
+ <span class="text" class:checked>
19
19
  <!-- eslint-disable-next-line -->
20
20
  {@html text}
21
21
  </span>
@@ -5,7 +5,7 @@ declare const __propDef: {
5
5
  properties?: IconProperties;
6
6
  };
7
7
  events: {
8
- click: MouseEvent;
8
+ click: PointerEvent;
9
9
  keydown: KeyboardEvent;
10
10
  } & {
11
11
  [evt: string]: CustomEvent<any>;
@@ -1,4 +1,4 @@
1
1
  export type IconStackProperties = {
2
- type: "image" | "text";
2
+ type: 'image' | 'text';
3
3
  content: string;
4
4
  };
@@ -98,7 +98,13 @@ onDestroy(() => {
98
98
  </div>
99
99
  {/if}
100
100
  {#if properties.header.rightImage}
101
- <div role="button" tabindex="0" on:click={handleRightImageClick} on:keydown data-pw={properties.header.buttonTestId}>
101
+ <div
102
+ role="button"
103
+ tabindex="0"
104
+ on:click={handleRightImageClick}
105
+ on:keydown
106
+ data-pw={properties.header.buttonTestId}
107
+ >
102
108
  <img class="header-right-img" src={properties.header.rightImage} alt="" />
103
109
  </div>
104
110
  {/if}
@@ -89,7 +89,14 @@ onDestroy(() => {
89
89
  </div>
90
90
 
91
91
  {#if properties.rightIcon}
92
- <div class="close-button" tabindex="0" role="button" on:click={hideToast} on:keypress data-pw={properties.closeIconTestId}>
92
+ <div
93
+ class="close-button"
94
+ tabindex="0"
95
+ role="button"
96
+ on:click={hideToast}
97
+ on:keypress
98
+ data-pw={properties.closeIconTestId}
99
+ >
93
100
  <img class="toast-icon" src={properties.rightIcon} alt="close-icon" />
94
101
  </div>
95
102
  {/if}
@@ -13,7 +13,7 @@ function handleCheckboxClick(e) {
13
13
  <div class="container">
14
14
  <div class="text" hidden={text.length === 0}>{text}</div>
15
15
  <label class="switch">
16
- <input class="input-checkbox" type="checkbox" bind:checked={checked} on:click={handleCheckboxClick} />
16
+ <input class="input-checkbox" type="checkbox" bind:checked on:click={handleCheckboxClick} />
17
17
  <span class="slider round" />
18
18
  </label>
19
19
  </div>
package/dist/utils.d.ts CHANGED
@@ -14,4 +14,4 @@ export declare function validateInput(inputValue: string, dataType: InputDataTyp
14
14
  * @param delay The delay period in milliseconds before invoking the callback.
15
15
  * @returns A debouncer function that accepts a callback and delays its invocation based on the specified delay.
16
16
  */
17
- export declare function createDebouncer(delay: number): (callback: Function, ...args: any[]) => void;
17
+ export declare function createDebouncer(delay: number): <T extends unknown[]>(callback: (...args: T) => void, ...args: T) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "1.34.0",
3
+ "version": "1.34.1",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run package",
@@ -36,8 +36,9 @@
36
36
  "@digitalroute/cz-conventional-changelog-for-jira": "^8.0.1",
37
37
  "@playwright/test": "^1.39.0",
38
38
  "@sveltejs/adapter-auto": "^2.1.1",
39
- "@sveltejs/kit": "^2.20.6",
39
+ "@sveltejs/kit": "^1.30.4",
40
40
  "@sveltejs/package": "^2.2.2",
41
+ "@sveltejs/vite-plugin-svelte": "^2.5.0",
41
42
  "@typescript-eslint/eslint-plugin": "^6.11.0",
42
43
  "@typescript-eslint/parser": "^6.11.0",
43
44
  "commitizen": "^4.3.0",
@@ -54,7 +55,7 @@
54
55
  "svelte-check": "^3.6.0",
55
56
  "tslib": "^2.6.2",
56
57
  "typescript": "^5.2.2",
57
- "vite": "^4.5.13",
58
+ "vite": "^4.5.14",
58
59
  "vitest": "^0.34.6",
59
60
  "type-decoder": "^1.2.0"
60
61
  },