flowbite-svelte 0.23.2 → 0.23.3
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/CHANGELOG.md +8 -0
- package/alerts/Alert.svelte +13 -1
- package/alerts/Alert.svelte.d.ts +8 -0
- package/buttongroups/ButtonGroupItem.svelte +1 -3
- package/buttons/Button.svelte +0 -1
- package/dropdowns/DropdownItem.svelte +1 -1
- package/forms/Dropzone.svelte +13 -1
- package/forms/Dropzone.svelte.d.ts +8 -0
- package/forms/FloatingLabelInput.svelte +5 -5
- package/forms/FloatingLabelInput.svelte.d.ts +5 -5
- package/forms/Input.svelte +4 -4
- package/forms/Input.svelte.d.ts +4 -4
- package/forms/Radio.svelte +5 -5
- package/forms/Radio.svelte.d.ts +5 -5
- package/forms/Range.svelte +2 -2
- package/forms/Range.svelte.d.ts +2 -2
- package/forms/Search.svelte +5 -5
- package/forms/Search.svelte.d.ts +5 -5
- package/forms/SimpleSearch.svelte +11 -0
- package/forms/SimpleSearch.svelte.d.ts +11 -0
- package/forms/Textarea.svelte +5 -5
- package/forms/Textarea.svelte.d.ts +5 -5
- package/index.d.ts +0 -2
- package/index.js +0 -2
- package/list-group/ListItem.svelte +20 -0
- package/list-group/ListItem.svelte.d.ts +9 -0
- package/navbar/NavDropdown.svelte +5 -4
- package/navbar/NavDropdown.svelte.d.ts +5 -3
- package/navbar/NavLi.svelte +5 -4
- package/navbar/NavLi.svelte.d.ts +5 -3
- package/package.json +1 -3
- package/paginations/Next.svelte +14 -1
- package/paginations/Next.svelte.d.ts +9 -0
- package/paginations/Pagination.svelte +69 -5
- package/paginations/Pagination.svelte.d.ts +9 -0
- package/paginations/Previous.svelte +14 -1
- package/paginations/Previous.svelte.d.ts +9 -0
- package/paginations/TableData.svelte +30 -2
- package/paginations/TableData.svelte.d.ts +9 -0
- package/sidebars/SidebarDropdownItem.svelte +4 -4
- package/sidebars/SidebarDropdownItem.svelte.d.ts +4 -3
- package/sidebars/SidebarItem.svelte +4 -4
- package/sidebars/SidebarItem.svelte.d.ts +4 -3
- package/tabs/DefaultTabs.svelte +4 -4
- package/tabs/DefaultTabs.svelte.d.ts +4 -3
- package/tabs/FullWidthTabs.svelte +4 -4
- package/tabs/FullWidthTabs.svelte.d.ts +4 -3
- package/tabs/IconTabs.svelte +4 -4
- package/tabs/IconTabs.svelte.d.ts +4 -3
- package/tabs/InteractiveTabHead.svelte +4 -4
- package/tabs/InteractiveTabHead.svelte.d.ts +4 -3
- package/tabs/InteractiveTabs.svelte +4 -4
- package/tabs/InteractiveTabs.svelte.d.ts +4 -3
- package/tabs/PillTabs.svelte +4 -4
- package/tabs/PillTabs.svelte.d.ts +4 -3
- package/tabs/UnderlineTabs.svelte +0 -1
- package/cards/EcommerceCard.svelte +0 -52
- package/cards/EcommerceCard.svelte.d.ts +0 -28
- package/cards/SignInCard.svelte +0 -63
- package/cards/SignInCard.svelte.d.ts +0 -22
|
@@ -20,7 +20,20 @@ const next = () => {
|
|
|
20
20
|
<ul class={ulClass}>
|
|
21
21
|
<li>
|
|
22
22
|
{#if icon}
|
|
23
|
-
<a
|
|
23
|
+
<a
|
|
24
|
+
href="/"
|
|
25
|
+
on:click|preventDefault={previous}
|
|
26
|
+
class={iconPreviousClass}
|
|
27
|
+
on:blur
|
|
28
|
+
on:click
|
|
29
|
+
on:focus
|
|
30
|
+
on:keydown
|
|
31
|
+
on:keypress
|
|
32
|
+
on:keyup
|
|
33
|
+
on:mouseenter
|
|
34
|
+
on:mouseleave
|
|
35
|
+
on:mouseover
|
|
36
|
+
>
|
|
24
37
|
<span class="sr-only">Previous</span>
|
|
25
38
|
<svg
|
|
26
39
|
class="w-5 h-5"
|
|
@@ -35,17 +48,55 @@ const next = () => {
|
|
|
35
48
|
>
|
|
36
49
|
</a>
|
|
37
50
|
{:else}
|
|
38
|
-
<a
|
|
51
|
+
<a
|
|
52
|
+
href="/"
|
|
53
|
+
on:click|preventDefault={previous}
|
|
54
|
+
class={previousClass}
|
|
55
|
+
on:blur
|
|
56
|
+
on:click
|
|
57
|
+
on:focus
|
|
58
|
+
on:keydown
|
|
59
|
+
on:keypress
|
|
60
|
+
on:keyup
|
|
61
|
+
on:mouseenter
|
|
62
|
+
on:mouseleave
|
|
63
|
+
on:mouseover>Previous</a
|
|
64
|
+
>
|
|
39
65
|
{/if}
|
|
40
66
|
</li>
|
|
41
67
|
{#each pages as { pageNum, href }}
|
|
42
68
|
<li>
|
|
43
|
-
<a
|
|
69
|
+
<a
|
|
70
|
+
{href}
|
|
71
|
+
class={pageClass}
|
|
72
|
+
on:blur
|
|
73
|
+
on:click
|
|
74
|
+
on:focus
|
|
75
|
+
on:keydown
|
|
76
|
+
on:keypress
|
|
77
|
+
on:keyup
|
|
78
|
+
on:mouseenter
|
|
79
|
+
on:mouseleave
|
|
80
|
+
on:mouseover>{pageNum}</a
|
|
81
|
+
>
|
|
44
82
|
</li>
|
|
45
83
|
{/each}
|
|
46
84
|
<li>
|
|
47
85
|
{#if icon}
|
|
48
|
-
<a
|
|
86
|
+
<a
|
|
87
|
+
href="/"
|
|
88
|
+
on:click|preventDefault={next}
|
|
89
|
+
class={iconNextClass}
|
|
90
|
+
on:blur
|
|
91
|
+
on:click
|
|
92
|
+
on:focus
|
|
93
|
+
on:keydown
|
|
94
|
+
on:keypress
|
|
95
|
+
on:keyup
|
|
96
|
+
on:mouseenter
|
|
97
|
+
on:mouseleave
|
|
98
|
+
on:mouseover
|
|
99
|
+
>
|
|
49
100
|
<span class="sr-only">Next</span>
|
|
50
101
|
<svg
|
|
51
102
|
class="w-5 h-5"
|
|
@@ -60,7 +111,20 @@ const next = () => {
|
|
|
60
111
|
>
|
|
61
112
|
</a>
|
|
62
113
|
{:else}
|
|
63
|
-
<a
|
|
114
|
+
<a
|
|
115
|
+
href="/"
|
|
116
|
+
on:click|preventDefault={next}
|
|
117
|
+
class={nextClass}
|
|
118
|
+
on:blur
|
|
119
|
+
on:click
|
|
120
|
+
on:focus
|
|
121
|
+
on:keydown
|
|
122
|
+
on:keypress
|
|
123
|
+
on:keyup
|
|
124
|
+
on:mouseenter
|
|
125
|
+
on:mouseleave
|
|
126
|
+
on:mouseover>Next</a
|
|
127
|
+
>
|
|
64
128
|
{/if}
|
|
65
129
|
</li>
|
|
66
130
|
</ul>
|
|
@@ -12,6 +12,15 @@ declare const __propDef: {
|
|
|
12
12
|
iconNextClass?: string;
|
|
13
13
|
};
|
|
14
14
|
events: {
|
|
15
|
+
blur: FocusEvent;
|
|
16
|
+
click: MouseEvent;
|
|
17
|
+
focus: FocusEvent;
|
|
18
|
+
keydown: KeyboardEvent;
|
|
19
|
+
keypress: KeyboardEvent;
|
|
20
|
+
keyup: KeyboardEvent;
|
|
21
|
+
mouseenter: MouseEvent;
|
|
22
|
+
mouseleave: MouseEvent;
|
|
23
|
+
mouseover: MouseEvent;
|
|
15
24
|
previous: CustomEvent<any>;
|
|
16
25
|
next: CustomEvent<any>;
|
|
17
26
|
} & {
|
|
@@ -10,7 +10,20 @@ if (icon) {
|
|
|
10
10
|
}
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
|
-
<a
|
|
13
|
+
<a
|
|
14
|
+
href="/"
|
|
15
|
+
on:click|preventDefault={previous}
|
|
16
|
+
class={previousClass}
|
|
17
|
+
on:blur
|
|
18
|
+
on:click
|
|
19
|
+
on:focus
|
|
20
|
+
on:keydown
|
|
21
|
+
on:keypress
|
|
22
|
+
on:keyup
|
|
23
|
+
on:mouseenter
|
|
24
|
+
on:mouseleave
|
|
25
|
+
on:mouseover
|
|
26
|
+
>
|
|
14
27
|
{#if icon}
|
|
15
28
|
<svg
|
|
16
29
|
class="mr-2 w-5 h-5"
|
|
@@ -5,6 +5,15 @@ declare const __propDef: {
|
|
|
5
5
|
previousClass?: string;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
|
+
blur: FocusEvent;
|
|
9
|
+
click: MouseEvent;
|
|
10
|
+
focus: FocusEvent;
|
|
11
|
+
keydown: KeyboardEvent;
|
|
12
|
+
keypress: KeyboardEvent;
|
|
13
|
+
keyup: KeyboardEvent;
|
|
14
|
+
mouseenter: MouseEvent;
|
|
15
|
+
mouseleave: MouseEvent;
|
|
16
|
+
mouseover: MouseEvent;
|
|
8
17
|
previous: CustomEvent<any>;
|
|
9
18
|
} & {
|
|
10
19
|
[evt: string]: CustomEvent<any>;
|
|
@@ -22,7 +22,35 @@ const next = () => {
|
|
|
22
22
|
{/if}
|
|
23
23
|
<!-- Buttons -->
|
|
24
24
|
<div class="inline-flex mt-2">
|
|
25
|
-
<button
|
|
26
|
-
|
|
25
|
+
<button
|
|
26
|
+
on:click={previous}
|
|
27
|
+
class={btnPreClass}
|
|
28
|
+
on:blur
|
|
29
|
+
on:click
|
|
30
|
+
on:focus
|
|
31
|
+
on:keydown
|
|
32
|
+
on:keypress
|
|
33
|
+
on:keyup
|
|
34
|
+
on:mouseenter
|
|
35
|
+
on:mouseleave
|
|
36
|
+
on:mouseover
|
|
37
|
+
>
|
|
38
|
+
Prev
|
|
39
|
+
</button>
|
|
40
|
+
<button
|
|
41
|
+
on:click={next}
|
|
42
|
+
class={btnNextClass}
|
|
43
|
+
on:blur
|
|
44
|
+
on:click
|
|
45
|
+
on:focus
|
|
46
|
+
on:keydown
|
|
47
|
+
on:keypress
|
|
48
|
+
on:keyup
|
|
49
|
+
on:mouseenter
|
|
50
|
+
on:mouseleave
|
|
51
|
+
on:mouseover
|
|
52
|
+
>
|
|
53
|
+
Next
|
|
54
|
+
</button>
|
|
27
55
|
</div>
|
|
28
56
|
</div>
|
|
@@ -10,6 +10,15 @@ declare const __propDef: {
|
|
|
10
10
|
btnNextClass?: string;
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
13
|
+
blur: FocusEvent;
|
|
14
|
+
click: MouseEvent;
|
|
15
|
+
focus: FocusEvent;
|
|
16
|
+
keydown: KeyboardEvent;
|
|
17
|
+
keypress: KeyboardEvent;
|
|
18
|
+
keyup: KeyboardEvent;
|
|
19
|
+
mouseenter: MouseEvent;
|
|
20
|
+
mouseleave: MouseEvent;
|
|
21
|
+
mouseover: MouseEvent;
|
|
13
22
|
previous: CustomEvent<any>;
|
|
14
23
|
next: CustomEvent<any>;
|
|
15
24
|
} & {
|
|
@@ -8,15 +8,15 @@ export let label = '';
|
|
|
8
8
|
<a
|
|
9
9
|
{...$$restProps}
|
|
10
10
|
{href}
|
|
11
|
+
on:blur
|
|
11
12
|
on:click
|
|
12
|
-
on:
|
|
13
|
+
on:focus
|
|
13
14
|
on:keydown
|
|
15
|
+
on:keypress
|
|
14
16
|
on:keyup
|
|
15
|
-
on:focus
|
|
16
|
-
on:blur
|
|
17
17
|
on:mouseenter
|
|
18
18
|
on:mouseleave
|
|
19
|
-
on:
|
|
19
|
+
on:mouseover
|
|
20
20
|
class={classNames(aClass, $$props.class)}>{label}</a
|
|
21
21
|
>
|
|
22
22
|
</li>
|
|
@@ -7,14 +7,15 @@ declare const __propDef: {
|
|
|
7
7
|
label?: string;
|
|
8
8
|
};
|
|
9
9
|
events: {
|
|
10
|
+
blur: FocusEvent;
|
|
10
11
|
click: MouseEvent;
|
|
11
|
-
|
|
12
|
+
focus: FocusEvent;
|
|
12
13
|
keydown: KeyboardEvent;
|
|
14
|
+
keypress: KeyboardEvent;
|
|
13
15
|
keyup: KeyboardEvent;
|
|
14
|
-
focus: FocusEvent;
|
|
15
|
-
blur: FocusEvent;
|
|
16
16
|
mouseenter: MouseEvent;
|
|
17
17
|
mouseleave: MouseEvent;
|
|
18
|
+
mouseover: MouseEvent;
|
|
18
19
|
} & {
|
|
19
20
|
[evt: string]: CustomEvent<any>;
|
|
20
21
|
};
|
|
@@ -10,15 +10,15 @@ export let icon;
|
|
|
10
10
|
<a
|
|
11
11
|
{...$$restProps}
|
|
12
12
|
{href}
|
|
13
|
+
on:blur
|
|
13
14
|
on:click
|
|
14
|
-
on:
|
|
15
|
+
on:focus
|
|
15
16
|
on:keydown
|
|
17
|
+
on:keypress
|
|
16
18
|
on:keyup
|
|
17
|
-
on:focus
|
|
18
|
-
on:blur
|
|
19
19
|
on:mouseenter
|
|
20
20
|
on:mouseleave
|
|
21
|
-
on:
|
|
21
|
+
on:mouseover
|
|
22
22
|
class={classNames(aClass, $$props.class)}
|
|
23
23
|
>
|
|
24
24
|
<svelte:component
|
|
@@ -10,14 +10,15 @@ declare const __propDef: {
|
|
|
10
10
|
icon: IconType;
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
13
|
+
blur: FocusEvent;
|
|
13
14
|
click: MouseEvent;
|
|
14
|
-
|
|
15
|
+
focus: FocusEvent;
|
|
15
16
|
keydown: KeyboardEvent;
|
|
17
|
+
keypress: KeyboardEvent;
|
|
16
18
|
keyup: KeyboardEvent;
|
|
17
|
-
focus: FocusEvent;
|
|
18
|
-
blur: FocusEvent;
|
|
19
19
|
mouseenter: MouseEvent;
|
|
20
20
|
mouseleave: MouseEvent;
|
|
21
|
+
mouseover: MouseEvent;
|
|
21
22
|
} & {
|
|
22
23
|
[evt: string]: CustomEvent<any>;
|
|
23
24
|
};
|
package/tabs/DefaultTabs.svelte
CHANGED
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
{href}
|
|
9
9
|
{rel}
|
|
10
10
|
aria-current="page"
|
|
11
|
+
on:blur
|
|
11
12
|
on:click
|
|
12
|
-
on:
|
|
13
|
+
on:focus
|
|
13
14
|
on:keydown
|
|
15
|
+
on:keypress
|
|
14
16
|
on:keyup
|
|
15
|
-
on:focus
|
|
16
|
-
on:blur
|
|
17
17
|
on:mouseenter
|
|
18
18
|
on:mouseleave
|
|
19
|
-
on:
|
|
19
|
+
on:mouseover
|
|
20
20
|
class={active
|
|
21
21
|
? 'inline-block py-4 px-4 text-sm font-medium text-center text-blue-600 bg-gray-100 rounded-t-lg active dark:bg-gray-800 dark:text-blue-500'
|
|
22
22
|
: ' inline-block py-4 px-4 text-sm font-medium text-center text-gray-500 rounded-t-lg hover:text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300 '}
|
|
@@ -5,14 +5,15 @@ declare const __propDef: {
|
|
|
5
5
|
tabs: TabType[];
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
|
+
blur: FocusEvent;
|
|
8
9
|
click: MouseEvent;
|
|
9
|
-
|
|
10
|
+
focus: FocusEvent;
|
|
10
11
|
keydown: KeyboardEvent;
|
|
12
|
+
keypress: KeyboardEvent;
|
|
11
13
|
keyup: KeyboardEvent;
|
|
12
|
-
focus: FocusEvent;
|
|
13
|
-
blur: FocusEvent;
|
|
14
14
|
mouseenter: MouseEvent;
|
|
15
15
|
mouseleave: MouseEvent;
|
|
16
|
+
mouseover: MouseEvent;
|
|
16
17
|
} & {
|
|
17
18
|
[evt: string]: CustomEvent<any>;
|
|
18
19
|
};
|
|
@@ -27,15 +27,15 @@ export let tabLabel;
|
|
|
27
27
|
? 'inline-block p-4 w-full text-gray-900 bg-gray-100 focus:ring-4 focus:ring-blue-300 active focus:outline-none dark:bg-gray-700 dark:text-white'
|
|
28
28
|
: 'inline-block p-4 w-full bg-white hover:text-gray-700 hover:bg-gray-50 focus:ring-4 focus:ring-blue-300 focus:outline-none dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700'}
|
|
29
29
|
aria-current="page"
|
|
30
|
+
on:blur
|
|
30
31
|
on:click
|
|
31
|
-
on:
|
|
32
|
+
on:focus
|
|
32
33
|
on:keydown
|
|
34
|
+
on:keypress
|
|
33
35
|
on:keyup
|
|
34
|
-
on:focus
|
|
35
|
-
on:blur
|
|
36
36
|
on:mouseenter
|
|
37
37
|
on:mouseleave
|
|
38
|
-
on:
|
|
38
|
+
on:mouseover>{name}</a
|
|
39
39
|
>
|
|
40
40
|
</li>
|
|
41
41
|
{/each}
|
|
@@ -6,14 +6,15 @@ declare const __propDef: {
|
|
|
6
6
|
tabLabel: string;
|
|
7
7
|
};
|
|
8
8
|
events: {
|
|
9
|
+
blur: FocusEvent;
|
|
9
10
|
click: MouseEvent;
|
|
10
|
-
|
|
11
|
+
focus: FocusEvent;
|
|
11
12
|
keydown: KeyboardEvent;
|
|
13
|
+
keypress: KeyboardEvent;
|
|
12
14
|
keyup: KeyboardEvent;
|
|
13
|
-
focus: FocusEvent;
|
|
14
|
-
blur: FocusEvent;
|
|
15
15
|
mouseenter: MouseEvent;
|
|
16
16
|
mouseleave: MouseEvent;
|
|
17
|
+
mouseover: MouseEvent;
|
|
17
18
|
} & {
|
|
18
19
|
[evt: string]: CustomEvent<any>;
|
|
19
20
|
};
|
package/tabs/IconTabs.svelte
CHANGED
|
@@ -14,15 +14,15 @@ export let iconClass = 'mr-2 w-5 h-5 text-gray-400 group-hover:text-gray-500 dar
|
|
|
14
14
|
class={active
|
|
15
15
|
? 'inline-flex p-4 text-blue-600 rounded-t-lg border-b-2 border-blue-600 active dark:text-blue-500 dark:border-blue-500 group'
|
|
16
16
|
: ' inline-flex p-4 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 group '}
|
|
17
|
+
on:blur
|
|
17
18
|
on:click
|
|
18
|
-
on:
|
|
19
|
+
on:focus
|
|
19
20
|
on:keydown
|
|
21
|
+
on:keypress
|
|
20
22
|
on:keyup
|
|
21
|
-
on:focus
|
|
22
|
-
on:blur
|
|
23
23
|
on:mouseenter
|
|
24
24
|
on:mouseleave
|
|
25
|
-
on:
|
|
25
|
+
on:mouseover
|
|
26
26
|
>
|
|
27
27
|
<svelte:component this={icon} size={iconSize} class={iconClass} />
|
|
28
28
|
{name}
|
|
@@ -6,14 +6,15 @@ declare const __propDef: {
|
|
|
6
6
|
iconClass?: string;
|
|
7
7
|
};
|
|
8
8
|
events: {
|
|
9
|
+
blur: FocusEvent;
|
|
9
10
|
click: MouseEvent;
|
|
10
|
-
|
|
11
|
+
focus: FocusEvent;
|
|
11
12
|
keydown: KeyboardEvent;
|
|
13
|
+
keypress: KeyboardEvent;
|
|
12
14
|
keyup: KeyboardEvent;
|
|
13
|
-
focus: FocusEvent;
|
|
14
|
-
blur: FocusEvent;
|
|
15
15
|
mouseenter: MouseEvent;
|
|
16
16
|
mouseleave: MouseEvent;
|
|
17
|
+
mouseover: MouseEvent;
|
|
17
18
|
} & {
|
|
18
19
|
[evt: string]: CustomEvent<any>;
|
|
19
20
|
};
|
|
@@ -44,15 +44,15 @@ Header part of Interactive tab component. Use with TabContent.
|
|
|
44
44
|
class:active={activeTabValue === id}
|
|
45
45
|
aria-controls={name}
|
|
46
46
|
aria-selected="false"
|
|
47
|
+
on:blur
|
|
47
48
|
on:click
|
|
48
|
-
on:
|
|
49
|
+
on:focus
|
|
49
50
|
on:keydown
|
|
51
|
+
on:keypress
|
|
50
52
|
on:keyup
|
|
51
|
-
on:focus
|
|
52
|
-
on:blur
|
|
53
53
|
on:mouseenter
|
|
54
54
|
on:mouseleave
|
|
55
|
-
on:
|
|
55
|
+
on:mouseover>{name}</button
|
|
56
56
|
>
|
|
57
57
|
</li>
|
|
58
58
|
{/each}
|
|
@@ -7,14 +7,15 @@ declare const __propDef: {
|
|
|
7
7
|
activeTabValue?: number;
|
|
8
8
|
};
|
|
9
9
|
events: {
|
|
10
|
+
blur: FocusEvent;
|
|
10
11
|
click: MouseEvent;
|
|
11
|
-
|
|
12
|
+
focus: FocusEvent;
|
|
12
13
|
keydown: KeyboardEvent;
|
|
14
|
+
keypress: KeyboardEvent;
|
|
13
15
|
keyup: KeyboardEvent;
|
|
14
|
-
focus: FocusEvent;
|
|
15
|
-
blur: FocusEvent;
|
|
16
16
|
mouseenter: MouseEvent;
|
|
17
17
|
mouseleave: MouseEvent;
|
|
18
|
+
mouseover: MouseEvent;
|
|
18
19
|
} & {
|
|
19
20
|
[evt: string]: CustomEvent<any>;
|
|
20
21
|
};
|
|
@@ -10,15 +10,15 @@ const handleClick = (tabValue) => () => (activeTabValue = tabValue);
|
|
|
10
10
|
<li class="mr-2" role="presentation">
|
|
11
11
|
<button
|
|
12
12
|
on:click={handleClick(id)}
|
|
13
|
+
on:blur
|
|
13
14
|
on:click
|
|
14
|
-
on:
|
|
15
|
+
on:focus
|
|
15
16
|
on:keydown
|
|
17
|
+
on:keypress
|
|
16
18
|
on:keyup
|
|
17
|
-
on:focus
|
|
18
|
-
on:blur
|
|
19
19
|
on:mouseenter
|
|
20
20
|
on:mouseleave
|
|
21
|
-
on:
|
|
21
|
+
on:mouseover
|
|
22
22
|
class="inline-block py-4 px-4 text-sm font-medium text-center text-gray-500 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"
|
|
23
23
|
id="{name}-tab"
|
|
24
24
|
type="button"
|
|
@@ -7,14 +7,15 @@ declare const __propDef: {
|
|
|
7
7
|
tabs: InteractiveTabType[];
|
|
8
8
|
};
|
|
9
9
|
events: {
|
|
10
|
+
blur: FocusEvent;
|
|
10
11
|
click: MouseEvent;
|
|
11
|
-
|
|
12
|
+
focus: FocusEvent;
|
|
12
13
|
keydown: KeyboardEvent;
|
|
14
|
+
keypress: KeyboardEvent;
|
|
13
15
|
keyup: KeyboardEvent;
|
|
14
|
-
focus: FocusEvent;
|
|
15
|
-
blur: FocusEvent;
|
|
16
16
|
mouseenter: MouseEvent;
|
|
17
17
|
mouseleave: MouseEvent;
|
|
18
|
+
mouseover: MouseEvent;
|
|
18
19
|
} & {
|
|
19
20
|
[evt: string]: CustomEvent<any>;
|
|
20
21
|
};
|
package/tabs/PillTabs.svelte
CHANGED
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
: 'inline-block py-3 px-4 text-sm font-medium text-center text-gray-500 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-white'} "
|
|
11
11
|
{href}
|
|
12
12
|
rel="external"
|
|
13
|
+
on:blur
|
|
13
14
|
on:click
|
|
14
|
-
on:
|
|
15
|
+
on:focus
|
|
15
16
|
on:keydown
|
|
17
|
+
on:keypress
|
|
16
18
|
on:keyup
|
|
17
|
-
on:focus
|
|
18
|
-
on:blur
|
|
19
19
|
on:mouseenter
|
|
20
20
|
on:mouseleave
|
|
21
|
-
on:
|
|
21
|
+
on:mouseover>{name}</a
|
|
22
22
|
>
|
|
23
23
|
</li>
|
|
24
24
|
{/each}
|
|
@@ -5,14 +5,15 @@ declare const __propDef: {
|
|
|
5
5
|
tabs: PillTabType[];
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
|
+
blur: FocusEvent;
|
|
8
9
|
click: MouseEvent;
|
|
9
|
-
|
|
10
|
+
focus: FocusEvent;
|
|
10
11
|
keydown: KeyboardEvent;
|
|
12
|
+
keypress: KeyboardEvent;
|
|
11
13
|
keyup: KeyboardEvent;
|
|
12
|
-
focus: FocusEvent;
|
|
13
|
-
blur: FocusEvent;
|
|
14
14
|
mouseenter: MouseEvent;
|
|
15
15
|
mouseleave: MouseEvent;
|
|
16
|
+
mouseover: MouseEvent;
|
|
16
17
|
} & {
|
|
17
18
|
[evt: string]: CustomEvent<any>;
|
|
18
19
|
};
|
|
@@ -17,7 +17,6 @@ export let tabs;
|
|
|
17
17
|
on:blur
|
|
18
18
|
on:mouseenter
|
|
19
19
|
on:mouseleave
|
|
20
|
-
on:mouseenter
|
|
21
20
|
class={active
|
|
22
21
|
? 'inline-block p-4 text-blue-600 rounded-t-lg border-b-2 border-blue-600 active dark:text-blue-500 dark:border-blue-500'
|
|
23
22
|
: ' inline-block p-4 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 '}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<script>import Badge from '../badges/Badge.svelte';
|
|
2
|
-
import Rating from '../ratings/Rating.svelte';
|
|
3
|
-
import Card from './Card.svelte';
|
|
4
|
-
export let img;
|
|
5
|
-
export let href = '/';
|
|
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 = 0;
|
|
10
|
-
export let price = '';
|
|
11
|
-
export let btnText = '';
|
|
12
|
-
export let headerClass = 'text-xl font-semibold tracking-tight text-gray-900 dark:text-white';
|
|
13
|
-
export let priceClass = 'text-3xl font-bold text-gray-900 dark:text-white';
|
|
14
|
-
let spanClass = 'flex items-center text-xs font-semibold mr-2 py-0.5 rounded';
|
|
15
|
-
let linkClass = 'text-white focus:ring-4 font-medium rounded-lg text-sm px-5 py-2.5 text-center ';
|
|
16
|
-
const linkColors = {
|
|
17
|
-
gray: 'bg-gray-700 hover:bg-gray-800 focus:ring-gray-300 dark:bg-gray-600 dark:hover:bg-gray-700 dark:focus:ring-gray-800',
|
|
18
|
-
red: 'bg-red-700 hover:bg-red-800 focus:ring-red-300 dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-800',
|
|
19
|
-
yellow: 'bg-yellow-700 hover:bg-yellow-800 focus:ring-yellow-300 dark:bg-yellow-600 dark:hover:bg-yellow-700 dark:focus:ring-yellow-800',
|
|
20
|
-
green: 'bg-green-700 hover:bg-green-800 focus:ring-green-300 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800',
|
|
21
|
-
indigo: 'bg-indigo-700 hover:bg-indigo-800 focus:ring-indigo-300 dark:bg-indigo-600 dark:hover:bg-indigo-700 dark:focus:ring-indigo-800',
|
|
22
|
-
purple: 'bg-purple-700 hover:bg-purple-800 focus:ring-purple-300 dark:bg-purple-600 dark:hover:bg-purple-700 dark:focus:ring-purple-800',
|
|
23
|
-
pink: 'bg-pink-700 hover:bg-pink-800 focus:ring-pink-300 dark:bg-pink-600 dark:hover:bg-pink-700 dark:focus:ring-pink-800',
|
|
24
|
-
blue: 'bg-blue-700 hover:bg-blue-800 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800'
|
|
25
|
-
};
|
|
26
|
-
</script>
|
|
27
|
-
|
|
28
|
-
<Card padding="sm">
|
|
29
|
-
<a {href} {rel}>
|
|
30
|
-
<img class="p-3 rounded-t-lg" src={img.src} alt={img.alt} />
|
|
31
|
-
</a>
|
|
32
|
-
|
|
33
|
-
<a {href} {rel}>
|
|
34
|
-
<h3 class={headerClass}>
|
|
35
|
-
{title}
|
|
36
|
-
</h3>
|
|
37
|
-
</a>
|
|
38
|
-
{#if stars}
|
|
39
|
-
<Rating rating={stars} divClass={spanClass}>
|
|
40
|
-
<Badge slot="text" color={btnColor}>{stars}</Badge>
|
|
41
|
-
</Rating>
|
|
42
|
-
{/if}
|
|
43
|
-
<slot />
|
|
44
|
-
<div class="flex justify-between items-center">
|
|
45
|
-
{#if price}
|
|
46
|
-
<span class={priceClass}>{price}</span>
|
|
47
|
-
{/if}
|
|
48
|
-
{#if btnText}
|
|
49
|
-
<a {href} {rel} class="{linkClass} {linkColors[btnColor]}">{btnText}</a>
|
|
50
|
-
{/if}
|
|
51
|
-
</div>
|
|
52
|
-
</Card>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { ImgType, Colors } from '../types';
|
|
3
|
-
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
-
img: ImgType;
|
|
6
|
-
href?: string;
|
|
7
|
-
btnColor?: Colors;
|
|
8
|
-
rel?: string;
|
|
9
|
-
title?: string;
|
|
10
|
-
stars?: number;
|
|
11
|
-
price?: string;
|
|
12
|
-
btnText?: string;
|
|
13
|
-
headerClass?: string;
|
|
14
|
-
priceClass?: string;
|
|
15
|
-
};
|
|
16
|
-
events: {
|
|
17
|
-
[evt: string]: CustomEvent<any>;
|
|
18
|
-
};
|
|
19
|
-
slots: {
|
|
20
|
-
default: {};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export declare type EcommerceCardProps = typeof __propDef.props;
|
|
24
|
-
export declare type EcommerceCardEvents = typeof __propDef.events;
|
|
25
|
-
export declare type EcommerceCardSlots = typeof __propDef.slots;
|
|
26
|
-
export default class EcommerceCard extends SvelteComponentTyped<EcommerceCardProps, EcommerceCardEvents, EcommerceCardSlots> {
|
|
27
|
-
}
|
|
28
|
-
export {};
|