@juspay/svelte-ui-components 2.26.0 → 2.27.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.
@@ -11,11 +11,13 @@
11
11
  additionalContent,
12
12
  classes,
13
13
  onbackClick,
14
- onkeydown
14
+ onkeydown,
15
+ testId,
16
+ headingTestId
15
17
  }: ToolbarProperties = $props();
16
18
  </script>
17
19
 
18
- <div class="toolbar {classes ?? ''}">
20
+ <div class="toolbar {classes ?? ''}" data-pw={testId}>
19
21
  <div class="content">
20
22
  {#if typeof leftContent === 'function'}
21
23
  {@render leftContent()}
@@ -29,7 +31,7 @@
29
31
  {@render centerContent()}
30
32
  </div>
31
33
  {:else if typeof text === 'string' && text.length > 0}
32
- <div class="text">
34
+ <div class="text" data-pw={headingTestId}>
33
35
  {text}
34
36
  </div>
35
37
  {/if}
@@ -8,6 +8,8 @@ export type ToolbarProperties = ToolbarEventProperties & {
8
8
  rightContent?: Snippet;
9
9
  additionalContent?: Snippet;
10
10
  classes?: string;
11
+ testId?: string;
12
+ headingTestId?: string;
11
13
  };
12
14
  export type ToolbarEventProperties = {
13
15
  onbackClick?: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "2.26.0",
3
+ "version": "2.27.0",
4
4
  "description": "A themeable Svelte 5 UI component library with CSS custom property driven styling",
5
5
  "keywords": [
6
6
  "svelte",