ui-svelte 0.2.16 → 0.2.17

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.
@@ -20,6 +20,7 @@
20
20
  | 'surface'
21
21
  | 'background';
22
22
  variant?: 'solid' | 'soft' | 'ghost';
23
+ id?: string;
23
24
  isBoxed?: boolean;
24
25
  };
25
26
 
@@ -32,6 +33,7 @@
32
33
  color = 'background',
33
34
  variant = 'solid',
34
35
  children,
36
+ id,
35
37
  isBoxed
36
38
  }: Props = $props();
37
39
 
@@ -54,7 +56,7 @@
54
56
  };
55
57
  </script>
56
58
 
57
- <section class={cn('section', variants[variant], colors[color], rootClass)}>
59
+ <section {id} class={cn('section', variants[variant], colors[color], rootClass)}>
58
60
  {#if cover}
59
61
  <img src={cover} alt="cover" class={cn('section-cover', coverClass)} />
60
62
  <div class={cn('section-overlay', overlayClass)}></div>
@@ -8,6 +8,7 @@ type Props = {
8
8
  cover?: string;
9
9
  color?: 'primary' | 'secondary' | 'muted' | 'success' | 'info' | 'warning' | 'danger' | 'surface' | 'background';
10
10
  variant?: 'solid' | 'soft' | 'ghost';
11
+ id?: string;
11
12
  isBoxed?: boolean;
12
13
  };
13
14
  declare const Section: import("svelte").Component<Props, {}, "">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-svelte",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "author": {
5
5
  "name": "SappsDev",
6
6
  "email": "info@sappsdev.com"