@hyvor/design 1.0.6 → 1.0.7

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.
@@ -102,7 +102,7 @@
102
102
  </div>
103
103
 
104
104
  <div class="close-wrap">
105
- <IconButton variant="invisible" on:click={handleCancel}>
105
+ <IconButton variant="invisible" on:click={handleCancel} aria-label="Close modal">
106
106
  <IconX size={25} />
107
107
  </IconButton>
108
108
  </div>
@@ -10,12 +10,27 @@
10
10
  flex?: number[];
11
11
  children?: Snippet;
12
12
  nested?: Snippet;
13
+ [key: string]: any;
13
14
  }
14
15
 
15
- const { label, caption, column = false, flex = [1, 2], children, nested }: Props = $props();
16
+ const {
17
+ label,
18
+ caption,
19
+ column = false,
20
+ flex = [1, 2],
21
+ children,
22
+ nested,
23
+ ...rest
24
+ }: Props = $props();
16
25
  </script>
17
26
 
18
- <div class="split-control" class:has-nested={!!nested} class:column>
27
+ <div
28
+ class="split-control"
29
+ class:has-nested={!!nested}
30
+ class:column
31
+ aria-label={typeof label === 'string' ? label : undefined}
32
+ {...rest}
33
+ >
19
34
  <div class="left" style:flex={flex[0]}>
20
35
  <div class="label-wrap">
21
36
  {#if typeof label === 'string'}
@@ -6,6 +6,7 @@ interface Props {
6
6
  flex?: number[];
7
7
  children?: Snippet;
8
8
  nested?: Snippet;
9
+ [key: string]: any;
9
10
  }
10
11
  declare const SplitControl: import("svelte").Component<Props, {}, "">;
11
12
  type SplitControl = ReturnType<typeof SplitControl>;
package/package.json CHANGED
@@ -57,5 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "version": "1.0.6"
60
+ "version": "1.0.7"
61
61
  }