@iroco/ui 1.6.13 → 1.6.14

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.
package/dist/Alert.svelte CHANGED
@@ -1,28 +1,20 @@
1
1
  <script lang="ts">
2
2
  import IconClose from './IconClose.svelte';
3
- import { type MouseEventHandler } from 'svelte/elements';
3
+ import type { MouseEventHandler } from 'svelte/elements';
4
4
 
5
5
  interface Props {
6
6
  type?: 'success' | 'danger' | 'flash';
7
7
  showClose?: boolean;
8
- /** @deprecated use onclose instead */
9
- callback?: MouseEventHandler<HTMLButtonElement>;
10
8
  onclose?: MouseEventHandler<HTMLButtonElement>;
11
9
  children?: import('svelte').Snippet;
12
10
  }
13
11
 
14
- let { type = 'success', showClose = true, onclose, callback, children }: Props = $props();
12
+ let { type = 'success', showClose = true, onclose, children }: Props = $props();
15
13
  </script>
16
14
 
17
15
  <div class={`alert alert--${type}`}>
18
16
  {#if showClose}
19
- <button
20
- onclick={() => {
21
- callback();
22
- onclose();
23
- }}
24
- class="alert__close"
25
- >
17
+ <button onclick={onclose} class="alert__close">
26
18
  <IconClose width="2em" height="2em" />
27
19
  </button>
28
20
  {/if}
@@ -1,9 +1,7 @@
1
- import { type MouseEventHandler } from 'svelte/elements';
1
+ import type { MouseEventHandler } from 'svelte/elements';
2
2
  interface Props {
3
3
  type?: 'success' | 'danger' | 'flash';
4
4
  showClose?: boolean;
5
- /** @deprecated use onclose instead */
6
- callback?: MouseEventHandler<HTMLButtonElement>;
7
5
  onclose?: MouseEventHandler<HTMLButtonElement>;
8
6
  children?: import('svelte').Snippet;
9
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iroco/ui",
3
- "version": "1.6.13",
3
+ "version": "1.6.14",
4
4
  "description": "Iroco design system based on Svelte",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {