@juspay/svelte-ui-components 2.113.0 → 2.114.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.
@@ -21,6 +21,7 @@
21
21
  footer,
22
22
  debounceTime = 700,
23
23
  leftImageTestId,
24
+ leftImageAriaLabel,
24
25
  testId,
25
26
  content,
26
27
  footerSnippet,
@@ -162,6 +163,7 @@
162
163
  onkeydown={handleLeftImageKeyDown}
163
164
  role="button"
164
165
  tabindex="0"
166
+ aria-label={leftImageAriaLabel ?? null}
165
167
  data-pw={leftImageTestId}
166
168
  testID={leftImageTestId}
167
169
  >
@@ -187,6 +189,7 @@
187
189
  tabindex="0"
188
190
  onclick={handleRightImageClick}
189
191
  onkeydown={handleRightImageKeyDown}
192
+ aria-label={header.buttonAriaLabel ?? null}
190
193
  data-pw={header.buttonTestId}
191
194
  testID={header.buttonTestId}
192
195
  >
@@ -17,6 +17,8 @@ export type OptionalModalProperties = {
17
17
  text?: string;
18
18
  testId?: string;
19
19
  buttonTestId?: string;
20
+ /** Accessible name for the right header image's role="button" wrapper (e.g. a close control). Rendered as aria-label. */
21
+ buttonAriaLabel?: string;
20
22
  };
21
23
  footer?: {
22
24
  primaryButton?: ButtonProperties;
@@ -24,6 +26,8 @@ export type OptionalModalProperties = {
24
26
  };
25
27
  debounceTime?: number;
26
28
  leftImageTestId?: string;
29
+ /** Accessible name for the left header image's role="button" wrapper (e.g. a back control). Rendered as aria-label. */
30
+ leftImageAriaLabel?: string;
27
31
  testId?: string;
28
32
  content?: Snippet;
29
33
  footerSnippet?: Snippet;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "2.113.0",
3
+ "version": "2.114.0",
4
4
  "description": "A themeable Svelte 5 UI component library with CSS custom property driven styling",
5
5
  "keywords": [
6
6
  "svelte",