@juspay/svelte-ui-components 1.33.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.
- package/dist/Banner/Banner.svelte.d.ts +1 -1
- package/dist/BrandLoader/BrandLoader.svelte +22 -22
- package/dist/CheckListItem/CheckListItem.svelte +1 -1
- package/dist/Icon/Icon.svelte.d.ts +1 -1
- package/dist/IconStack/properties.d.ts +1 -1
- package/dist/Modal/Modal.svelte +11 -1
- package/dist/Toast/Toast.svelte +8 -1
- package/dist/Toggle/Toggle.svelte +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +4 -3
|
@@ -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
|
|
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;
|
package/dist/Modal/Modal.svelte
CHANGED
|
@@ -98,7 +98,13 @@ onDestroy(() => {
|
|
|
98
98
|
</div>
|
|
99
99
|
{/if}
|
|
100
100
|
{#if properties.header.rightImage}
|
|
101
|
-
<div
|
|
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}
|
|
@@ -172,6 +178,7 @@ onDestroy(() => {
|
|
|
172
178
|
flex-direction: column;
|
|
173
179
|
border-radius: var(--modal-border-radius, 0px);
|
|
174
180
|
overflow: var(--modal-content-overflow, auto);
|
|
181
|
+
border-top: var(--modal-content-border-top);
|
|
175
182
|
}
|
|
176
183
|
|
|
177
184
|
.slot-content {
|
|
@@ -300,6 +307,9 @@ onDestroy(() => {
|
|
|
300
307
|
align-items: center;
|
|
301
308
|
flex: 1;
|
|
302
309
|
font-size: var(--header-text-size, 16px);
|
|
310
|
+
font-weight: var(--modal-header-text-weight);
|
|
311
|
+
line-height: var(--modal-header-text-line-height);
|
|
312
|
+
letter-spacing: var(--modal-header-text-letter-spacing);
|
|
303
313
|
}
|
|
304
314
|
|
|
305
315
|
.header-left-img,
|
package/dist/Toast/Toast.svelte
CHANGED
|
@@ -89,7 +89,14 @@ onDestroy(() => {
|
|
|
89
89
|
</div>
|
|
90
90
|
|
|
91
91
|
{#if properties.rightIcon}
|
|
92
|
-
<div
|
|
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
|
|
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:
|
|
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.
|
|
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": "^
|
|
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.
|
|
58
|
+
"vite": "^4.5.14",
|
|
58
59
|
"vitest": "^0.34.6",
|
|
59
60
|
"type-decoder": "^1.2.0"
|
|
60
61
|
},
|