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 +8 -7
- package/cards/Card.svelte.d.ts +1 -1
- package/package.json +1 -1
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
|
-
<
|
|
63
|
+
<h3 class={headerClass}>
|
|
64
64
|
{header}
|
|
65
|
-
</
|
|
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}
|
package/cards/Card.svelte.d.ts
CHANGED