@juspay/svelte-ui-components 2.43.0 → 2.44.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.
@@ -12,7 +12,8 @@
12
12
  checkedIcon,
13
13
  indeterminateIcon,
14
14
  onclick,
15
- classes
15
+ classes,
16
+ ariaControls
16
17
  }: CheckboxProperties = $props();
17
18
 
18
19
  function handleClick(): void {
@@ -54,6 +55,7 @@
54
55
  tabindex={disabled ? -1 : 0}
55
56
  aria-checked={indeterminate ? 'mixed' : checked}
56
57
  aria-disabled={disabled}
58
+ aria-controls={ariaControls ?? null}
57
59
  onkeydown={handleKeyDown}
58
60
  >
59
61
  {#if checked && !indeterminate}
@@ -11,6 +11,7 @@ export type OptionalCheckboxProperties = {
11
11
  checkedIcon?: Snippet;
12
12
  indeterminateIcon?: Snippet;
13
13
  classes?: string;
14
+ ariaControls?: string;
14
15
  };
15
16
  export type CheckboxEventProperties = {
16
17
  onclick?: (checked: boolean) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "2.43.0",
3
+ "version": "2.44.0",
4
4
  "description": "A themeable Svelte 5 UI component library with CSS custom property driven styling",
5
5
  "keywords": [
6
6
  "svelte",