flowbite-svelte 0.10.4 → 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 +11 -9
- package/cards/Card.svelte.d.ts +2 -1
- package/cards/EcommerceCard.svelte +2 -1
- package/cards/EcommerceCard.svelte.d.ts +1 -0
- package/cards/InteractiveCard.svelte +2 -1
- package/cards/InteractiveCard.svelte.d.ts +1 -0
- package/forms/FloatingLabelInput.svelte.d.ts +1 -1
- package/forms/Iconinput.svelte.d.ts +1 -1
- package/forms/Input.svelte +1 -1
- package/forms/Input.svelte.d.ts +1 -1
- package/forms/Select.svelte +3 -3
- package/package.json +1 -1
package/cards/Card.svelte
CHANGED
|
@@ -4,6 +4,7 @@ export let alt = '';
|
|
|
4
4
|
export let img = '';
|
|
5
5
|
export let btnLabel = 'Read more';
|
|
6
6
|
export let btnColor = 'blue';
|
|
7
|
+
export let headerClass = 'mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white';
|
|
7
8
|
export let header = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';
|
|
8
9
|
export let divClass = 'max-w-sm bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700';
|
|
9
10
|
let buttonClass;
|
|
@@ -45,7 +46,7 @@ else {
|
|
|
45
46
|
}
|
|
46
47
|
</script>
|
|
47
48
|
|
|
48
|
-
<div class={divClass}>
|
|
49
|
+
<div class={divClass} class:has-paragraph={$$slots.paragraph}>
|
|
49
50
|
{#if img}
|
|
50
51
|
<a href={link} {rel}>
|
|
51
52
|
<img class="rounded-t-lg" src={img} {alt} />
|
|
@@ -54,19 +55,20 @@ else {
|
|
|
54
55
|
<div class="p-5">
|
|
55
56
|
{#if link}
|
|
56
57
|
<a href={link} {rel}>
|
|
57
|
-
<
|
|
58
|
+
<h3 class={headerClass}>
|
|
58
59
|
{header}
|
|
59
|
-
</
|
|
60
|
+
</h3>
|
|
60
61
|
</a>
|
|
61
62
|
{:else}
|
|
62
|
-
<
|
|
63
|
+
<h3 class={headerClass}>
|
|
63
64
|
{header}
|
|
64
|
-
</
|
|
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>
|
|
65
71
|
{/if}
|
|
66
|
-
|
|
67
|
-
<p class="mb-3 font-normal text-gray-700 dark:text-gray-400">
|
|
68
|
-
<slot />
|
|
69
|
-
</p>
|
|
70
72
|
{#if link}
|
|
71
73
|
<a href={link} {rel} class={buttonClass}>
|
|
72
74
|
{btnLabel}
|
package/cards/Card.svelte.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare const __propDef: {
|
|
|
8
8
|
img?: string;
|
|
9
9
|
btnLabel?: string;
|
|
10
10
|
btnColor?: Colors;
|
|
11
|
+
headerClass?: string;
|
|
11
12
|
header?: string;
|
|
12
13
|
divClass?: string;
|
|
13
14
|
};
|
|
@@ -15,7 +16,7 @@ declare const __propDef: {
|
|
|
15
16
|
[evt: string]: CustomEvent<any>;
|
|
16
17
|
};
|
|
17
18
|
slots: {
|
|
18
|
-
|
|
19
|
+
paragraph: {};
|
|
19
20
|
};
|
|
20
21
|
};
|
|
21
22
|
export declare type CardProps = typeof __propDef.props;
|
|
@@ -8,6 +8,7 @@ export let rel = '';
|
|
|
8
8
|
export let title = 'Apple Watch Series 7 GPS, Aluminium Case, Starlight Sport';
|
|
9
9
|
export let stars = 5;
|
|
10
10
|
export let price = '$555';
|
|
11
|
+
export let headerClass = 'text-xl font-semibold tracking-tight text-gray-900 dark:text-white';
|
|
11
12
|
export let divClass = 'max-w-sm bg-white rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700';
|
|
12
13
|
let spanClass;
|
|
13
14
|
let linkClass;
|
|
@@ -73,7 +74,7 @@ else {
|
|
|
73
74
|
</a>
|
|
74
75
|
<div class="px-5 pb-5">
|
|
75
76
|
<a href={link} {rel}>
|
|
76
|
-
<h3 class=
|
|
77
|
+
<h3 class={headerClass}>
|
|
77
78
|
{title}
|
|
78
79
|
</h3>
|
|
79
80
|
</a>
|
|
@@ -9,6 +9,7 @@ export let content = 'Proin efficitur purus felis.';
|
|
|
9
9
|
export let buttonColor = 'blue';
|
|
10
10
|
export let link1;
|
|
11
11
|
export let link2;
|
|
12
|
+
export let headerClass = 'mb-1 text-xl font-medium text-gray-900 dark:text-white';
|
|
12
13
|
export let divClass = 'max-w-sm bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700';
|
|
13
14
|
let linkClass;
|
|
14
15
|
if (buttonColor === 'blue') {
|
|
@@ -91,7 +92,7 @@ else {
|
|
|
91
92
|
|
|
92
93
|
<div class="flex flex-col items-center pb-10">
|
|
93
94
|
<img class="mb-3 w-24 h-24 rounded-full shadow-lg" src={img.src} alt={img.alt} />
|
|
94
|
-
<h3 class=
|
|
95
|
+
<h3 class={headerClass}>
|
|
95
96
|
{header}
|
|
96
97
|
</h3>
|
|
97
98
|
<span class="text-sm text-gray-500 dark:text-gray-400">{content}</span>
|
|
@@ -2,7 +2,7 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
id: string;
|
|
5
|
-
type:
|
|
5
|
+
type: "number" | "search" | "button" | "submit" | "reset" | "text" | "email" | "password" | "hidden" | "checkbox" | "color" | "date" | "datetime-local" | "file" | "image" | "month" | "radio" | "range" | "tel" | "time" | "url" | "week";
|
|
6
6
|
value?: string;
|
|
7
7
|
name?: string;
|
|
8
8
|
label?: string;
|
|
@@ -5,7 +5,7 @@ declare const __propDef: {
|
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
label: string;
|
|
7
7
|
id: string;
|
|
8
|
-
type:
|
|
8
|
+
type: "number" | "search" | "button" | "submit" | "reset" | "text" | "email" | "password" | "hidden" | "checkbox" | "color" | "date" | "datetime-local" | "file" | "image" | "month" | "radio" | "range" | "tel" | "time" | "url" | "week";
|
|
9
9
|
value?: string;
|
|
10
10
|
icon: typeof SvelteComponent;
|
|
11
11
|
helper?: string;
|
package/forms/Input.svelte
CHANGED
package/forms/Input.svelte.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
|
-
type
|
|
5
|
+
type?: "number" | "search" | "button" | "submit" | "reset" | "text" | "email" | "password" | "hidden" | "checkbox" | "color" | "date" | "datetime-local" | "file" | "image" | "month" | "radio" | "range" | "tel" | "time" | "url" | "week";
|
|
6
6
|
value?: string;
|
|
7
7
|
name?: string;
|
|
8
8
|
id?: string;
|
package/forms/Select.svelte
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script >export let value;
|
|
2
|
-
export let id = '
|
|
3
|
-
export let name = '
|
|
4
|
-
export let label = '
|
|
2
|
+
export let id = '';
|
|
3
|
+
export let name = '';
|
|
4
|
+
export let label = '';
|
|
5
5
|
export let labelClass = 'block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400';
|
|
6
6
|
export let selectClass = 'bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500';
|
|
7
7
|
</script>
|