flowbite-svelte 0.9.0 → 0.9.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/accordions/AccordionDefault.svelte +20 -21
- package/accordions/AccordionDefault.svelte.d.ts +6 -19
- package/alerts/Alert.svelte +1 -2
- package/alerts/Alert.svelte.d.ts +2 -1
- package/alerts/BorderAlert.svelte +1 -2
- package/alerts/BorderAlert.svelte.d.ts +2 -1
- package/alerts/InfoAlert.svelte +1 -2
- package/alerts/InfoAlert.svelte.d.ts +2 -1
- package/badges/Badge.svelte +22 -16
- package/badges/Badge.svelte.d.ts +8 -16
- package/badges/BadgeIcon.svelte +24 -18
- package/badges/BadgeIcon.svelte.d.ts +8 -18
- package/badges/BadgeLink.svelte +23 -17
- package/badges/BadgeLink.svelte.d.ts +9 -18
- package/buttongroups/ButtonGroup.svelte +49 -59
- package/buttongroups/ButtonGroup.svelte.d.ts +7 -23
- package/buttongroups/ButtonGroupOutline.svelte +49 -61
- package/buttongroups/ButtonGroupOutline.svelte.d.ts +7 -23
- package/buttons/Button.svelte +48 -35
- package/buttons/Button.svelte.d.ts +9 -20
- package/buttons/ColorShadowButton.svelte +22 -16
- package/buttons/ColorShadowButton.svelte.d.ts +8 -18
- package/buttons/GradientDuotoneButton.svelte +20 -15
- package/buttons/GradientDuotoneButton.svelte.d.ts +8 -18
- package/buttons/GradientMonochromeButton.svelte +22 -16
- package/buttons/GradientMonochromeButton.svelte.d.ts +8 -18
- package/buttons/GradientOutlineButton.svelte +30 -25
- package/buttons/GradientOutlineButton.svelte.d.ts +8 -18
- package/cards/Card.svelte +73 -71
- package/cards/Card.svelte.d.ts +12 -26
- package/cards/CtaCard.svelte +56 -55
- package/cards/CtaCard.svelte.d.ts +8 -32
- package/cards/EcommerceCard.svelte +77 -77
- package/cards/EcommerceCard.svelte.d.ts +10 -28
- package/dropdowns/DropdownDefault.svelte.d.ts +4 -4
- package/modals/ExtraLargeModal.svelte.d.ts +2 -2
- package/modals/LargeModal.svelte.d.ts +2 -2
- package/modals/MediumModal.svelte.d.ts +2 -2
- package/modals/SmallModal.svelte.d.ts +2 -2
- package/package.json +9 -2
- package/types.d.ts +23 -0
- package/types.js +1 -0
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
let linkClass;
|
|
15
|
-
if (btnColor === "blue") {
|
|
1
|
+
<script >export let img = {
|
|
2
|
+
src: '/images/product-1.png',
|
|
3
|
+
alt: 'product image'
|
|
4
|
+
};
|
|
5
|
+
export let link = '/#';
|
|
6
|
+
export let btnColor = 'blue';
|
|
7
|
+
export let rel;
|
|
8
|
+
export let title = 'Apple Watch Series 7 GPS, Aluminium Case, Starlight Sport';
|
|
9
|
+
export let stars = 5;
|
|
10
|
+
export let price = '$555';
|
|
11
|
+
let spanClass;
|
|
12
|
+
let linkClass;
|
|
13
|
+
if (btnColor === 'blue') {
|
|
16
14
|
spanClass =
|
|
17
|
-
|
|
15
|
+
'bg-blue-100 text-blue-800 text-xs font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-blue-200 dark:text-blue-800 ml-3';
|
|
18
16
|
linkClass =
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
'text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800';
|
|
18
|
+
}
|
|
19
|
+
else if (btnColor === 'gray') {
|
|
21
20
|
spanClass =
|
|
22
|
-
|
|
21
|
+
'bg-gray-100 text-gray-800 text-xs font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-gray-200 dark:text-gray-800 ml-3';
|
|
23
22
|
linkClass =
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
'text-white bg-gray-700 hover:bg-gray-800 focus:ring-4 focus:ring-gray-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-gray-600 dark:hover:bg-gray-700 dark:focus:ring-gray-800';
|
|
24
|
+
}
|
|
25
|
+
else if (btnColor === 'red') {
|
|
26
26
|
spanClass =
|
|
27
|
-
|
|
27
|
+
'bg-red-100 text-red-800 text-xs font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-red-200 dark:text-red-800 ml-3';
|
|
28
28
|
linkClass =
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
'text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-800';
|
|
30
|
+
}
|
|
31
|
+
else if (btnColor === 'yellow') {
|
|
31
32
|
spanClass =
|
|
32
|
-
|
|
33
|
+
'bg-yellow-100 text-yellow-800 text-xs font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-yellow-200 dark:text-yellow-800 ml-3';
|
|
33
34
|
linkClass =
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
'text-white bg-yellow-700 hover:bg-yellow-800 focus:ring-4 focus:ring-yellow-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-yellow-600 dark:hover:bg-yellow-700 dark:focus:ring-yellow-800';
|
|
36
|
+
}
|
|
37
|
+
else if (btnColor === 'green') {
|
|
36
38
|
spanClass =
|
|
37
|
-
|
|
39
|
+
'bg-green-100 text-green-800 text-xs font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-green-200 dark:text-green-800 ml-3';
|
|
38
40
|
linkClass =
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
'text-white bg-green-700 hover:bg-green-800 focus:ring-4 focus:ring-green-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800';
|
|
42
|
+
}
|
|
43
|
+
else if (btnColor === 'indigo') {
|
|
41
44
|
spanClass =
|
|
42
|
-
|
|
45
|
+
'bg-indigo-100 text-indigo-800 text-xs font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-200 dark:text-indigo-800 ml-3';
|
|
43
46
|
linkClass =
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
'text-white bg-indigo-700 hover:bg-indigo-800 focus:ring-4 focus:ring-indigo-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-indigo-600 dark:hover:bg-indigo-700 dark:focus:ring-indigo-800';
|
|
48
|
+
}
|
|
49
|
+
else if (btnColor === 'purple') {
|
|
46
50
|
spanClass =
|
|
47
|
-
|
|
51
|
+
'bg-purple-100 text-purple-800 text-xs font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-purple-200 dark:text-purple-800 ml-3';
|
|
48
52
|
linkClass =
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
'text-white bg-purple-700 hover:bg-purple-800 focus:ring-4 focus:ring-purple-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-purple-600 dark:hover:bg-purple-700 dark:focus:ring-purple-800';
|
|
54
|
+
}
|
|
55
|
+
else if (btnColor === 'pink') {
|
|
51
56
|
spanClass =
|
|
52
|
-
|
|
57
|
+
'bg-pink-100 text-pink-800 text-xs font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-pink-200 dark:text-pink-800 ml-3';
|
|
53
58
|
linkClass =
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
'text-white bg-pink-700 hover:bg-pink-800 focus:ring-4 focus:ring-pink-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-pink-600 dark:hover:bg-pink-700 dark:focus:ring-pink-800';
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
56
62
|
spanClass =
|
|
57
|
-
|
|
63
|
+
'bg-blue-100 text-blue-800 text-xs font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-blue-200 dark:text-blue-800 ml-3';
|
|
58
64
|
linkClass =
|
|
59
|
-
|
|
60
|
-
|
|
65
|
+
'text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800';
|
|
66
|
+
}
|
|
61
67
|
</script>
|
|
62
68
|
|
|
63
|
-
<div
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
<span class="text-3xl font-bold text-gray-900 dark:text-white"
|
|
93
|
-
>{price}</span
|
|
94
|
-
>
|
|
95
|
-
<a href={link} {rel} class={linkClass}>Add to cart</a>
|
|
96
|
-
</div>
|
|
97
|
-
</div>
|
|
69
|
+
<div class="max-w-sm bg-white rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700">
|
|
70
|
+
<a href={link} {rel}>
|
|
71
|
+
<img class="p-8 rounded-t-lg" src={img.src} alt={img.alt} />
|
|
72
|
+
</a>
|
|
73
|
+
<div class="px-5 pb-5">
|
|
74
|
+
<a href={link} {rel}>
|
|
75
|
+
<h3 class="text-xl font-semibold tracking-tight text-gray-900 dark:text-white">
|
|
76
|
+
{title}
|
|
77
|
+
</h3>
|
|
78
|
+
</a>
|
|
79
|
+
<div class="flex items-center mt-2.5 mb-5">
|
|
80
|
+
{#each { length: stars } as _, i}
|
|
81
|
+
<svg
|
|
82
|
+
class="w-5 h-5 text-yellow-300"
|
|
83
|
+
fill="currentColor"
|
|
84
|
+
viewBox="0 0 20 20"
|
|
85
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
86
|
+
><path
|
|
87
|
+
d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"
|
|
88
|
+
/></svg
|
|
89
|
+
>
|
|
90
|
+
{/each}
|
|
91
|
+
<span class={spanClass}>{stars}</span>
|
|
92
|
+
</div>
|
|
93
|
+
<div class="flex justify-between items-center">
|
|
94
|
+
<span class="text-3xl font-bold text-gray-900 dark:text-white">{price}</span>
|
|
95
|
+
<a href={link} {rel} class={linkClass}>Add to cart</a>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
98
|
</div>
|
|
@@ -1,36 +1,13 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} EcommerceCardProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} EcommerceCardEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} EcommerceCardSlots */
|
|
4
|
-
export default class EcommerceCard extends SvelteComponentTyped<{
|
|
5
|
-
rel: any;
|
|
6
|
-
link?: string;
|
|
7
|
-
btnColor?: string;
|
|
8
|
-
img?: {
|
|
9
|
-
src: string;
|
|
10
|
-
alt: string;
|
|
11
|
-
};
|
|
12
|
-
title?: string;
|
|
13
|
-
stars?: string;
|
|
14
|
-
price?: string;
|
|
15
|
-
}, {
|
|
16
|
-
[evt: string]: CustomEvent<any>;
|
|
17
|
-
}, {}> {
|
|
18
|
-
}
|
|
19
|
-
export type EcommerceCardProps = typeof __propDef.props;
|
|
20
|
-
export type EcommerceCardEvents = typeof __propDef.events;
|
|
21
|
-
export type EcommerceCardSlots = typeof __propDef.slots;
|
|
22
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { CardImg, Colors } from '../types';
|
|
23
3
|
declare const __propDef: {
|
|
24
4
|
props: {
|
|
25
|
-
|
|
5
|
+
img?: CardImg;
|
|
26
6
|
link?: string;
|
|
27
|
-
btnColor?:
|
|
28
|
-
|
|
29
|
-
src: string;
|
|
30
|
-
alt: string;
|
|
31
|
-
};
|
|
7
|
+
btnColor?: Colors;
|
|
8
|
+
rel: string;
|
|
32
9
|
title?: string;
|
|
33
|
-
stars?:
|
|
10
|
+
stars?: number;
|
|
34
11
|
price?: string;
|
|
35
12
|
};
|
|
36
13
|
events: {
|
|
@@ -38,4 +15,9 @@ declare const __propDef: {
|
|
|
38
15
|
};
|
|
39
16
|
slots: {};
|
|
40
17
|
};
|
|
18
|
+
export declare type EcommerceCardProps = typeof __propDef.props;
|
|
19
|
+
export declare type EcommerceCardEvents = typeof __propDef.events;
|
|
20
|
+
export declare type EcommerceCardSlots = typeof __propDef.slots;
|
|
21
|
+
export default class EcommerceCard extends SvelteComponentTyped<EcommerceCardProps, EcommerceCardEvents, EcommerceCardSlots> {
|
|
22
|
+
}
|
|
41
23
|
export {};
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} DropdownDefaultEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} DropdownDefaultSlots */
|
|
4
4
|
export default class DropdownDefault extends SvelteComponentTyped<{
|
|
5
|
+
label?: string;
|
|
6
|
+
rounded?: boolean;
|
|
5
7
|
textSize?: string;
|
|
6
8
|
color?: string;
|
|
7
|
-
rounded?: boolean;
|
|
8
|
-
label?: string;
|
|
9
9
|
items?: ({
|
|
10
10
|
link: string;
|
|
11
11
|
label: string;
|
|
@@ -27,10 +27,10 @@ export type DropdownDefaultSlots = typeof __propDef.slots;
|
|
|
27
27
|
import { SvelteComponentTyped } from "svelte";
|
|
28
28
|
declare const __propDef: {
|
|
29
29
|
props: {
|
|
30
|
+
label?: string;
|
|
31
|
+
rounded?: boolean;
|
|
30
32
|
textSize?: string;
|
|
31
33
|
color?: string;
|
|
32
|
-
rounded?: boolean;
|
|
33
|
-
label?: string;
|
|
34
34
|
items?: ({
|
|
35
35
|
link: string;
|
|
36
36
|
label: string;
|
|
@@ -6,8 +6,8 @@ export default class ExtraLargeModal extends SvelteComponentTyped<{
|
|
|
6
6
|
btn2: any;
|
|
7
7
|
showModalId: any;
|
|
8
8
|
id?: string;
|
|
9
|
-
btnColor?: string;
|
|
10
9
|
title?: string;
|
|
10
|
+
btnColor?: string;
|
|
11
11
|
textColor?: string;
|
|
12
12
|
}, {
|
|
13
13
|
handlebtn1: CustomEvent<any>;
|
|
@@ -28,8 +28,8 @@ declare const __propDef: {
|
|
|
28
28
|
btn2: any;
|
|
29
29
|
showModalId: any;
|
|
30
30
|
id?: string;
|
|
31
|
-
btnColor?: string;
|
|
32
31
|
title?: string;
|
|
32
|
+
btnColor?: string;
|
|
33
33
|
textColor?: string;
|
|
34
34
|
};
|
|
35
35
|
events: {
|
|
@@ -6,8 +6,8 @@ export default class LargeModal extends SvelteComponentTyped<{
|
|
|
6
6
|
btn2: any;
|
|
7
7
|
showModalId: any;
|
|
8
8
|
id?: string;
|
|
9
|
-
btnColor?: string;
|
|
10
9
|
title?: string;
|
|
10
|
+
btnColor?: string;
|
|
11
11
|
textColor?: string;
|
|
12
12
|
}, {
|
|
13
13
|
handlebtn1: CustomEvent<any>;
|
|
@@ -28,8 +28,8 @@ declare const __propDef: {
|
|
|
28
28
|
btn2: any;
|
|
29
29
|
showModalId: any;
|
|
30
30
|
id?: string;
|
|
31
|
-
btnColor?: string;
|
|
32
31
|
title?: string;
|
|
32
|
+
btnColor?: string;
|
|
33
33
|
textColor?: string;
|
|
34
34
|
};
|
|
35
35
|
events: {
|
|
@@ -6,8 +6,8 @@ export default class MediumModal extends SvelteComponentTyped<{
|
|
|
6
6
|
btn2: any;
|
|
7
7
|
showModalId: any;
|
|
8
8
|
id?: string;
|
|
9
|
-
btnColor?: string;
|
|
10
9
|
title?: string;
|
|
10
|
+
btnColor?: string;
|
|
11
11
|
textColor?: string;
|
|
12
12
|
}, {
|
|
13
13
|
handlebtn1: CustomEvent<any>;
|
|
@@ -28,8 +28,8 @@ declare const __propDef: {
|
|
|
28
28
|
btn2: any;
|
|
29
29
|
showModalId: any;
|
|
30
30
|
id?: string;
|
|
31
|
-
btnColor?: string;
|
|
32
31
|
title?: string;
|
|
32
|
+
btnColor?: string;
|
|
33
33
|
textColor?: string;
|
|
34
34
|
};
|
|
35
35
|
events: {
|
|
@@ -6,8 +6,8 @@ export default class SmallModal extends SvelteComponentTyped<{
|
|
|
6
6
|
btn2: any;
|
|
7
7
|
showModalId: any;
|
|
8
8
|
id?: string;
|
|
9
|
-
btnColor?: string;
|
|
10
9
|
title?: string;
|
|
10
|
+
btnColor?: string;
|
|
11
11
|
textColor?: string;
|
|
12
12
|
}, {
|
|
13
13
|
handlebtn1: CustomEvent<any>;
|
|
@@ -28,8 +28,8 @@ declare const __propDef: {
|
|
|
28
28
|
btn2: any;
|
|
29
29
|
showModalId: any;
|
|
30
30
|
id?: string;
|
|
31
|
-
btnColor?: string;
|
|
32
31
|
title?: string;
|
|
32
|
+
btnColor?: string;
|
|
33
33
|
textColor?: string;
|
|
34
34
|
};
|
|
35
35
|
events: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Shinichi Okada",
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
"homepage": "https://github.com/shinokada/flowbite-svelte",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"devDependencies": {
|
|
14
|
+
"@codewithshin/svelte-sidebar": "^0.2.3",
|
|
14
15
|
"@codewithshin/svelte-simpleicons": "^0.2.2",
|
|
16
|
+
"@codewithshin/svelte-utterances": "^0.1.2",
|
|
15
17
|
"@playwright/test": "^1.19.1",
|
|
16
18
|
"@sveltejs/adapter-auto": "next",
|
|
17
19
|
"@sveltejs/kit": "next",
|
|
@@ -21,10 +23,14 @@
|
|
|
21
23
|
"eslint": "^7.32.0",
|
|
22
24
|
"eslint-config-prettier": "^8.3.0",
|
|
23
25
|
"eslint-plugin-svelte3": "^3.2.1",
|
|
26
|
+
"flowbite-svelte": "^0.9.0",
|
|
27
|
+
"mdsvex": "^0.10.5",
|
|
24
28
|
"postcss": "^8.4.5",
|
|
25
29
|
"postcss-load-config": "^3.1.1",
|
|
26
30
|
"prettier": "^2.5.1",
|
|
27
31
|
"prettier-plugin-svelte": "^2.5.0",
|
|
32
|
+
"prism-themes": "^1.9.0",
|
|
33
|
+
"prismjs": "^1.27.0",
|
|
28
34
|
"svelte": "^3.44.0",
|
|
29
35
|
"svelte-check": "^2.2.6",
|
|
30
36
|
"svelte-preprocess": "^4.10.1",
|
|
@@ -110,7 +116,8 @@
|
|
|
110
116
|
"./tabs/InteractiveTabs.svelte": "./tabs/InteractiveTabs.svelte",
|
|
111
117
|
"./tabs/PillTabs.svelte": "./tabs/PillTabs.svelte",
|
|
112
118
|
"./tooltips/LightTooltip.svelte": "./tooltips/LightTooltip.svelte",
|
|
113
|
-
"./tooltips/Tooltip.svelte": "./tooltips/Tooltip.svelte"
|
|
119
|
+
"./tooltips/Tooltip.svelte": "./tooltips/Tooltip.svelte",
|
|
120
|
+
"./types": "./types.js"
|
|
114
121
|
},
|
|
115
122
|
"svelte": "./index.js"
|
|
116
123
|
}
|
package/types.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare type Colors = 'blue' | 'gray' | 'red' | 'yellow' | 'purple' | 'green' | 'indigo' | 'pink';
|
|
2
|
+
export declare type Buttontypes = 'blue' | 'blue-outline' | 'dark' | 'dark-outline' | 'light' | 'green' | 'green-outline' | 'red' | 'red-outline' | 'yellow' | 'yellow-outline' | 'purple' | 'purple-outline';
|
|
3
|
+
export declare type Buttonshadows = 'blue' | 'green' | 'cyan' | 'teal' | 'lime' | 'red' | 'pink' | 'purple';
|
|
4
|
+
export declare type Gradientduotones = 'purple2blue' | 'cyan2blue' | 'green2blue' | 'purple2pink' | 'pink2orange' | 'teal2lime' | 'red2yellow';
|
|
5
|
+
export declare type Textsize = 'text-xs' | 'text-sm' | 'text-base' | 'text-lg' | 'text-xl' | 'text-2xl' | 'text-3xl' | 'text-4xl';
|
|
6
|
+
export interface ButtonGroupType {
|
|
7
|
+
name?: string;
|
|
8
|
+
link?: string;
|
|
9
|
+
rel?: string;
|
|
10
|
+
icon?: any;
|
|
11
|
+
}
|
|
12
|
+
export declare type CardButton = {
|
|
13
|
+
textSize?: Textsize;
|
|
14
|
+
name?: string;
|
|
15
|
+
type?: Buttontypes;
|
|
16
|
+
link?: string;
|
|
17
|
+
rel?: string;
|
|
18
|
+
rounded?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare type CardImg = {
|
|
21
|
+
src: string;
|
|
22
|
+
alt?: string;
|
|
23
|
+
};
|
package/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|