@iroco/ui 0.52.2 → 0.53.1

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/Alert.svelte CHANGED
@@ -1,10 +1,9 @@
1
1
  <script>export let type = "success";
2
- export let content;
3
2
  export let callback;
4
3
  </script>
5
4
 
6
5
  <div class={`alert alert--${type}`} on:click={callback}>
7
- {content}
6
+ <slot />
8
7
  </div>
9
8
 
10
9
  <style>.font-color-blue {
@@ -52,6 +51,7 @@ export let callback;
52
51
  }
53
52
 
54
53
  .alert {
54
+ flex-direction: column;
55
55
  min-height: 2em;
56
56
  display: inline-flex;
57
57
  align-items: center;
package/Alert.svelte.d.ts CHANGED
@@ -2,13 +2,14 @@ import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  type?: "success" | "danger" | undefined;
5
- content: string;
6
5
  callback: (e: Event) => void;
7
6
  };
8
7
  events: {
9
8
  [evt: string]: CustomEvent<any>;
10
9
  };
11
- slots: {};
10
+ slots: {
11
+ default: {};
12
+ };
12
13
  };
13
14
  export type AlertProps = typeof __propDef.props;
14
15
  export type AlertEvents = typeof __propDef.events;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iroco/ui",
3
- "version": "0.52.2",
3
+ "version": "0.53.1",
4
4
  "description": "Iroco design system based on Svelte",
5
5
  "main": "lib/index.ts",
6
6
  "svelte": "index.js",