flowbite-svelte 0.10.6 → 0.10.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.
package/cards/Card.svelte CHANGED
@@ -46,7 +46,7 @@ else {
46
46
  }
47
47
  </script>
48
48
 
49
- <div class={divClass}>
49
+ <div class={divClass} class:has-paragraph={$$slots.paragraph}>
50
50
  {#if img}
51
51
  <a href={link} {rel}>
52
52
  <img class="rounded-t-lg" src={img} {alt} />
@@ -60,14 +60,15 @@ else {
60
60
  </h3>
61
61
  </a>
62
62
  {:else}
63
- <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">
63
+ <h3 class={headerClass}>
64
64
  {header}
65
- </h5>
65
+ </h3>
66
+ {/if}
67
+ {#if $$slots.paragraph}
68
+ <p class="mb-3 font-normal text-gray-700 dark:text-gray-400">
69
+ <slot name="paragraph" />
70
+ </p>
66
71
  {/if}
67
-
68
- <p class="mb-3 font-normal text-gray-700 dark:text-gray-400">
69
- <slot />
70
- </p>
71
72
  {#if link}
72
73
  <a href={link} {rel} class={buttonClass}>
73
74
  {btnLabel}
@@ -16,7 +16,7 @@ declare const __propDef: {
16
16
  [evt: string]: CustomEvent<any>;
17
17
  };
18
18
  slots: {
19
- default: {};
19
+ paragraph: {};
20
20
  };
21
21
  };
22
22
  export declare type CardProps = typeof __propDef.props;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.10.6",
3
+ "version": "0.10.7",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "author": {
6
6
  "name": "Shinichi Okada",