flowbite-svelte 0.9.5 → 0.9.6
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/CtaCard.svelte +2 -3
- package/cards/CtaCard.svelte.d.ts +1 -0
- package/cards/EcommerceCard.svelte +2 -1
- package/cards/EcommerceCard.svelte.d.ts +1 -0
- package/cards/HorizontalCard.svelte +11 -14
- package/cards/HorizontalCard.svelte.d.ts +5 -0
- package/cards/InteractiveCard.svelte +2 -3
- package/cards/InteractiveCard.svelte.d.ts +1 -0
- package/cards/ListCard.svelte +2 -3
- package/cards/ListCard.svelte.d.ts +1 -0
- package/package.json +1 -1
package/cards/CtaCard.svelte
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export let title = 'Work fast from anywhere';
|
|
3
3
|
export let headColor = 'gray';
|
|
4
4
|
export let btns;
|
|
5
|
+
export let divClass = 'p-4 w-full text-center bg-white rounded-lg border shadow-md sm:p-8 dark:bg-gray-800 dark:border-gray-700';
|
|
5
6
|
let headClass;
|
|
6
7
|
if (headColor === 'blue') {
|
|
7
8
|
headClass = 'mb-2 text-3xl font-bold text-blue-900 dark:text-white';
|
|
@@ -32,9 +33,7 @@ else {
|
|
|
32
33
|
}
|
|
33
34
|
</script>
|
|
34
35
|
|
|
35
|
-
<div
|
|
36
|
-
class="p-4 w-full text-center bg-white rounded-lg border shadow-md sm:p-8 dark:bg-gray-800 dark:border-gray-700"
|
|
37
|
-
>
|
|
36
|
+
<div class={divClass}>
|
|
38
37
|
<h3 class={headClass}>
|
|
39
38
|
{title}
|
|
40
39
|
</h3>
|
|
@@ -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 divClass = 'max-w-sm bg-white rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700';
|
|
11
12
|
let spanClass;
|
|
12
13
|
let linkClass;
|
|
13
14
|
if (btnColor === 'blue') {
|
|
@@ -66,7 +67,7 @@ else {
|
|
|
66
67
|
}
|
|
67
68
|
</script>
|
|
68
69
|
|
|
69
|
-
<div class=
|
|
70
|
+
<div class={divClass}>
|
|
70
71
|
<a href={link} {rel}>
|
|
71
72
|
<img class="p-8 rounded-t-lg" src={img.src} alt={img.alt} />
|
|
72
73
|
</a>
|
|
@@ -3,23 +3,20 @@ export let rel = '';
|
|
|
3
3
|
export let img = '/images/image-4.jpeg';
|
|
4
4
|
export let alt = '';
|
|
5
5
|
export let header = 'Lorem ipsum dolor sit ametit.';
|
|
6
|
+
export let linkClass = 'flex flex-col items-center bg-white rounded-lg border shadow-md md:flex-row md:max-w-xl hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700';
|
|
7
|
+
export let imgClass = 'object-cover w-full h-96 rounded-t-lg md:h-auto md:w-48 md:rounded-none md:rounded-l-lg';
|
|
8
|
+
export let textClass = 'flex flex-col justify-between p-4 leading-normal';
|
|
9
|
+
export let h3Class = 'mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white';
|
|
10
|
+
export let pClass = 'mb-3 font-normal text-gray-700 dark:text-gray-400';
|
|
6
11
|
</script>
|
|
7
12
|
|
|
8
|
-
<a
|
|
9
|
-
|
|
10
|
-
{
|
|
11
|
-
|
|
12
|
-
>
|
|
13
|
-
<img
|
|
14
|
-
class="object-cover w-full h-96 rounded-t-lg md:h-auto md:w-48 md:rounded-none md:rounded-l-lg"
|
|
15
|
-
src={img}
|
|
16
|
-
{alt}
|
|
17
|
-
/>
|
|
18
|
-
<div class="flex flex-col justify-between p-4 leading-normal">
|
|
19
|
-
<h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">
|
|
13
|
+
<a href={link} {rel} class={linkClass}>
|
|
14
|
+
<img class={imgClass} src={img} {alt} />
|
|
15
|
+
<div class={textClass}>
|
|
16
|
+
<h3 class={h3Class}>
|
|
20
17
|
{header}
|
|
21
|
-
</
|
|
22
|
-
<p class=
|
|
18
|
+
</h3>
|
|
19
|
+
<p class={pClass}>
|
|
23
20
|
<slot />
|
|
24
21
|
</p>
|
|
25
22
|
</div>
|
|
@@ -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 divClass = 'max-w-sm bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700';
|
|
12
13
|
let linkClass;
|
|
13
14
|
if (buttonColor === 'blue') {
|
|
14
15
|
linkClass =
|
|
@@ -48,9 +49,7 @@ else {
|
|
|
48
49
|
}
|
|
49
50
|
</script>
|
|
50
51
|
|
|
51
|
-
<div
|
|
52
|
-
class="max-w-sm bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700"
|
|
53
|
-
>
|
|
52
|
+
<div class={divClass}>
|
|
54
53
|
<div class="flex justify-end px-4 pt-4">
|
|
55
54
|
<button
|
|
56
55
|
id="dropdownButton"
|
package/cards/ListCard.svelte
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<script >export let lists;
|
|
2
2
|
export let title = 'Latest Customers';
|
|
3
3
|
export let action;
|
|
4
|
+
export let divClass = 'p-4 max-w-md bg-white rounded-lg border shadow-md sm:p-8 dark:bg-gray-800 dark:border-gray-700';
|
|
4
5
|
</script>
|
|
5
6
|
|
|
6
|
-
<div
|
|
7
|
-
class="p-4 max-w-md bg-white rounded-lg border shadow-md sm:p-8 dark:bg-gray-800 dark:border-gray-700"
|
|
8
|
-
>
|
|
7
|
+
<div class={divClass}>
|
|
9
8
|
<div class="flex justify-between items-center mb-4">
|
|
10
9
|
<h3 class="text-xl font-bold leading-none text-gray-900 dark:text-white">
|
|
11
10
|
{title}
|