@oicl/openbridge-webcomponents-svelte 2.0.0-next.48 → 2.0.0-next.49

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.
@@ -40,20 +40,20 @@ hasLabel?: boolean;
40
40
  showDivider?: boolean
41
41
  }
42
42
  export interface Events {
43
-
43
+ onClick?: (event: CustomEvent<unknown>) => void
44
44
  }
45
45
  export interface Slots {
46
46
  children?: Snippet;
47
47
  label?: Snippet
48
48
  }
49
- const { class: className, style, children, label, ...props} = $props<Props & Events & Slots>();
49
+ const {onClick, class: className, style, children, label, ...props} = $props<Props & Events & Slots>();
50
50
 
51
51
  </script>
52
52
  <obc-icon-button
53
53
  use:setProperties={props}
54
54
  class={className}
55
55
  style={style}
56
- >
56
+ onclick={onClick} >
57
57
 
58
58
  {#if children}
59
59
  {@render children()}
@@ -35,6 +35,7 @@ If undefined, no progress indicator is shown. */
35
35
  showDivider?: boolean;
36
36
  }
37
37
  export interface Events {
38
+ onClick?: (event: CustomEvent<unknown>) => void;
38
39
  }
39
40
  export interface Slots {
40
41
  children?: Snippet;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0-next.48",
3
+ "version": "2.0.0-next.49",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@oicl/openbridge-webcomponents": "^2.0.0-next.47"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.48"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"