flowbite-svelte 0.12.5 → 0.13.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/CHANGELOG.md +5 -0
- package/accordions/AccordionItem.svelte +1 -7
- package/alerts/BorderAlert.svelte +11 -36
- package/avatar/Avatar.svelte +2 -20
- package/avatar/Avatar.svelte.d.ts +1 -1
- package/badges/BadgeLink.svelte +2 -2
- package/badges/BadgeLink.svelte.d.ts +1 -1
- package/buttons/Button.svelte +1 -2
- package/buttons/GradientOutlineButton.svelte +8 -16
- package/cards/Card.svelte +10 -29
- package/cards/EcommerceCard.svelte +24 -53
- package/cards/EcommerceCard.svelte.d.ts +2 -2
- package/cards/InteractiveCard.svelte +14 -51
- package/cards/InteractiveCard.svelte.d.ts +2 -2
- package/cards/ListCard.svelte +2 -8
- package/cards/SignInCard.svelte +18 -65
- package/cards/SignInCard.svelte.d.ts +2 -2
- package/darkmode/DarkMode.svelte +4 -28
- package/dropdowns/DropdownDefault.svelte +5 -24
- package/dropdowns/DropdownDefault.svelte.d.ts +2 -2
- package/footer/SitemapFooter.svelte +1 -3
- package/forms/Checkbox.svelte +2 -16
- package/forms/Checkbox.svelte.d.ts +2 -7
- package/forms/FloatingLabelInput.svelte +2 -1
- package/forms/FloatingLabelInput.svelte.d.ts +3 -2
- package/forms/Iconinput.svelte +3 -2
- package/forms/Iconinput.svelte.d.ts +3 -2
- package/forms/Input.svelte +4 -13
- package/forms/Input.svelte.d.ts +2 -1
- package/forms/Radio.svelte +2 -30
- package/forms/Radio.svelte.d.ts +2 -7
- package/forms/Select.svelte +4 -3
- package/forms/SingleCheckbox.svelte +4 -11
- package/forms/SingleCheckbox.svelte.d.ts +1 -1
- package/forms/Textarea.svelte +3 -2
- package/forms/Toggle.svelte +5 -4
- package/index.d.ts +2 -0
- package/index.js +4 -0
- package/list-group/List.svelte +1 -3
- package/modals/ExtraLargeModal.svelte +42 -99
- package/modals/LargeModal.svelte +42 -99
- package/modals/MediumModal.svelte +39 -93
- package/modals/ModalButton.svelte +10 -19
- package/modals/ModalButton.svelte.d.ts +1 -0
- package/modals/SignInModal.svelte +22 -94
- package/modals/SmallModal.svelte +42 -99
- package/navbar/DropdownNavbar.svelte +5 -43
- package/navbar/Navbar.svelte +4 -31
- package/package.json +4 -2
- package/paginations/Next.svelte +1 -11
- package/paginations/Pagination.svelte +2 -22
- package/paginations/Previous.svelte +1 -11
- package/progressbars/Progressbar.svelte +8 -11
- package/progressbars/Progressbar.svelte.d.ts +2 -1
- package/spinners/Spinner.svelte +4 -22
- package/tables/Table.svelte +21 -3
- package/tables/Table.svelte.d.ts +12 -16
- package/tables/TableDefaultRow.svelte +57 -0
- package/tables/TableDefaultRow.svelte.d.ts +17 -0
- package/tabs/IconTabs.svelte +2 -10
- package/tabs/InteractiveTabHead.svelte +2 -17
- package/tabs/InteractiveTabs.svelte +2 -15
- package/tabs/UnderlineTabs.svelte +1 -8
- package/toasts/Toast.svelte +9 -27
- package/toasts/Toast.svelte.d.ts +2 -2
- package/tooltips/Tooltip.svelte +1 -9
- package/types.d.ts +22 -0
- package/utils/generateId.d.ts +1 -0
- package/utils/generateId.js +5 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<script >export let items;
|
|
2
|
+
export let rowState = undefined;
|
|
3
|
+
let trClass;
|
|
4
|
+
let trLastClass;
|
|
5
|
+
if (rowState === 'striped') {
|
|
6
|
+
trClass =
|
|
7
|
+
'border-b dark:bg-gray-800 dark:border-gray-700 odd:bg-white even:bg-gray-50 odd:dark:bg-gray-800 even:dark:bg-gray-700';
|
|
8
|
+
trLastClass = 'odd:bg-white even:bg-gray-50 odd:dark:bg-gray-800 even:dark:bg-gray-700';
|
|
9
|
+
}
|
|
10
|
+
else if (rowState === 'hover') {
|
|
11
|
+
trClass =
|
|
12
|
+
'bg-white border-b dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600';
|
|
13
|
+
trLastClass = 'bg-white dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-600';
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
trClass = 'bg-white border-b dark:bg-gray-800 dark:border-gray-700';
|
|
17
|
+
trLastClass = 'bg-white dark:bg-gray-800';
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
{#each items as item, i}
|
|
22
|
+
{#if i === items.length - 1}
|
|
23
|
+
<tr class={trLastClass}>
|
|
24
|
+
{#each item as cell, j}
|
|
25
|
+
{#if j === 0}
|
|
26
|
+
<th
|
|
27
|
+
scope="row"
|
|
28
|
+
class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap"
|
|
29
|
+
>
|
|
30
|
+
{@html cell}
|
|
31
|
+
</th>
|
|
32
|
+
{:else}
|
|
33
|
+
<td class="px-6 py-4">
|
|
34
|
+
{@html cell}
|
|
35
|
+
</td>
|
|
36
|
+
{/if}
|
|
37
|
+
{/each}
|
|
38
|
+
</tr>
|
|
39
|
+
{:else}
|
|
40
|
+
<tr class={trClass}>
|
|
41
|
+
{#each item as cell, j}
|
|
42
|
+
{#if j === 0}
|
|
43
|
+
<th
|
|
44
|
+
scope="row"
|
|
45
|
+
class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap"
|
|
46
|
+
>
|
|
47
|
+
{@html cell}
|
|
48
|
+
</th>
|
|
49
|
+
{:else}
|
|
50
|
+
<td class="px-6 py-4">
|
|
51
|
+
{@html cell}
|
|
52
|
+
</td>
|
|
53
|
+
{/if}
|
|
54
|
+
{/each}
|
|
55
|
+
</tr>
|
|
56
|
+
{/if}
|
|
57
|
+
{/each}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
items: Array<Array<string>>;
|
|
5
|
+
rowState?: 'striped' | 'hover' | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type TableDefaultRowProps = typeof __propDef.props;
|
|
13
|
+
export declare type TableDefaultRowEvents = typeof __propDef.events;
|
|
14
|
+
export declare type TableDefaultRowSlots = typeof __propDef.slots;
|
|
15
|
+
export default class TableDefaultRow extends SvelteComponentTyped<TableDefaultRowProps, TableDefaultRowEvents, TableDefaultRowSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
package/tabs/IconTabs.svelte
CHANGED
|
@@ -3,18 +3,10 @@ export let iconClass = 'mr-2 w-5 h-5 text-gray-400 group-hover:text-gray-500 dar
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<div class="border-b border-gray-200 dark:border-gray-700">
|
|
6
|
-
<ul
|
|
7
|
-
class="flex flex-wrap -mb-px text-sm font-medium text-center text-gray-500 dark:text-gray-400"
|
|
8
|
-
>
|
|
6
|
+
<ul class="flex flex-wrap -mb-px text-sm font-medium text-center text-gray-500 dark:text-gray-400">
|
|
9
7
|
{#each tabs as { name, active, href, rel, icon }}
|
|
10
8
|
<li class="mr-2">
|
|
11
|
-
<a
|
|
12
|
-
{href}
|
|
13
|
-
{rel}
|
|
14
|
-
class={active
|
|
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
|
-
: ' 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
|
-
>
|
|
9
|
+
<a {href} {rel} class={active ? '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' : ' 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 '}>
|
|
18
10
|
<svelte:component this={icon} className={iconClass} />
|
|
19
11
|
{name}
|
|
20
12
|
</a>
|
|
@@ -26,25 +26,10 @@ Header part of Interactive tab component. Use with TabContent.
|
|
|
26
26
|
```
|
|
27
27
|
-->
|
|
28
28
|
<div class="mb-4 border-b border-gray-200">
|
|
29
|
-
<ul
|
|
30
|
-
class="flex flex-wrap -mb-px text-sm font-medium text-center"
|
|
31
|
-
id={tabId}
|
|
32
|
-
data-tabs-toggle="#myTabContent"
|
|
33
|
-
role="tablist"
|
|
34
|
-
>
|
|
29
|
+
<ul class="flex flex-wrap -mb-px text-sm font-medium text-center" id={tabId} data-tabs-toggle="#myTabContent" role="tablist">
|
|
35
30
|
{#each tabs as { name, id }}
|
|
36
31
|
<li class="mr-2" role="presentation">
|
|
37
|
-
<button
|
|
38
|
-
on:click={handleClick(id)}
|
|
39
|
-
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"
|
|
40
|
-
id="{name}-tab"
|
|
41
|
-
data-tabs-target="#{name}"
|
|
42
|
-
type="button"
|
|
43
|
-
role="tab"
|
|
44
|
-
class:active={activeTabValue === id}
|
|
45
|
-
aria-controls={name}
|
|
46
|
-
aria-selected="false">{name}</button
|
|
47
|
-
>
|
|
32
|
+
<button on:click={handleClick(id)} 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" id="{name}-tab" data-tabs-target="#{name}" type="button" role="tab" class:active={activeTabValue === id} aria-controls={name} aria-selected="false">{name}</button>
|
|
48
33
|
</li>
|
|
49
34
|
{/each}
|
|
50
35
|
</ul>
|
|
@@ -8,15 +8,7 @@ export let tabs;
|
|
|
8
8
|
<ul class="flex flex-wrap -mb-px" id={tabId} role="tablist">
|
|
9
9
|
{#each tabs as { name, id }}
|
|
10
10
|
<li class="mr-2" role="presentation">
|
|
11
|
-
<button
|
|
12
|
-
on:click={handleClick(id)}
|
|
13
|
-
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"
|
|
14
|
-
id="{name}-tab"
|
|
15
|
-
type="button"
|
|
16
|
-
role="tab"
|
|
17
|
-
class:active={activeTabValue === id}
|
|
18
|
-
aria-controls={name}>{name}</button
|
|
19
|
-
>
|
|
11
|
+
<button on:click={handleClick(id)} 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" id="{name}-tab" type="button" role="tab" class:active={activeTabValue === id} aria-controls={name}>{name}</button>
|
|
20
12
|
</li>
|
|
21
13
|
{/each}
|
|
22
14
|
</ul>
|
|
@@ -24,12 +16,7 @@ export let tabs;
|
|
|
24
16
|
<div id="{tabId}Content">
|
|
25
17
|
{#each tabs as { name, content, id }}
|
|
26
18
|
{#if activeTabValue === id}
|
|
27
|
-
<div
|
|
28
|
-
class="p-4 bg-gray-50 rounded-lg dark:bg-gray-800"
|
|
29
|
-
id={name}
|
|
30
|
-
role="tabpanel"
|
|
31
|
-
aria-labelledby="{name}-tab"
|
|
32
|
-
>
|
|
19
|
+
<div class="p-4 bg-gray-50 rounded-lg dark:bg-gray-800" id={name} role="tabpanel" aria-labelledby="{name}-tab">
|
|
33
20
|
{#if typeof content === 'string'}
|
|
34
21
|
<p class="text-sm text-gray-500 dark:text-gray-400">
|
|
35
22
|
{@html content}
|
|
@@ -6,14 +6,7 @@ export let tabs;
|
|
|
6
6
|
<ul class="flex flex-wrap -mb-px">
|
|
7
7
|
{#each tabs as { name, active, href, rel }}
|
|
8
8
|
<li class="mr-2">
|
|
9
|
-
<a
|
|
10
|
-
{href}
|
|
11
|
-
{rel}
|
|
12
|
-
class={active
|
|
13
|
-
? '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'
|
|
14
|
-
: ' 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 '}
|
|
15
|
-
>{name}</a
|
|
16
|
-
>
|
|
9
|
+
<a {href} {rel} class={active ? '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' : ' 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 '}>{name}</a>
|
|
17
10
|
</li>
|
|
18
11
|
{/each}
|
|
19
12
|
</ul>
|
package/toasts/Toast.svelte
CHANGED
|
@@ -13,36 +13,28 @@ export let divClass = 'flex items-center w-full max-w-xs p-4 text-gray-500 bg-wh
|
|
|
13
13
|
export let textClass = 'ml-3 text-sm font-normal';
|
|
14
14
|
export let btnClass = 'ml-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700';
|
|
15
15
|
if (iconColor === 'blue') {
|
|
16
|
-
iconDivClass =
|
|
17
|
-
'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200';
|
|
16
|
+
iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200';
|
|
18
17
|
}
|
|
19
18
|
else if (iconColor === 'green') {
|
|
20
|
-
iconDivClass =
|
|
21
|
-
'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200';
|
|
19
|
+
iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200';
|
|
22
20
|
}
|
|
23
21
|
else if (iconColor === 'red') {
|
|
24
|
-
iconDivClass =
|
|
25
|
-
'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200';
|
|
22
|
+
iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200';
|
|
26
23
|
}
|
|
27
24
|
else if (iconColor === 'gray') {
|
|
28
|
-
iconDivClass =
|
|
29
|
-
'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-gray-500 bg-gray-100 rounded-lg dark:bg-gray-800 dark:text-gray-200';
|
|
25
|
+
iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-gray-500 bg-gray-100 rounded-lg dark:bg-gray-800 dark:text-gray-200';
|
|
30
26
|
}
|
|
31
27
|
else if (iconColor === 'purple') {
|
|
32
|
-
iconDivClass =
|
|
33
|
-
'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-purple-500 bg-purple-100 rounded-lg dark:bg-purple-800 dark:text-purple-200';
|
|
28
|
+
iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-purple-500 bg-purple-100 rounded-lg dark:bg-purple-800 dark:text-purple-200';
|
|
34
29
|
}
|
|
35
30
|
else if (iconColor === 'indigo') {
|
|
36
|
-
iconDivClass =
|
|
37
|
-
'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-indigo-500 bg-indigo-100 rounded-lg dark:bg-indigo-800 dark:text-indigo-200';
|
|
31
|
+
iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-indigo-500 bg-indigo-100 rounded-lg dark:bg-indigo-800 dark:text-indigo-200';
|
|
38
32
|
}
|
|
39
33
|
else if (iconColor === 'yellow') {
|
|
40
|
-
iconDivClass =
|
|
41
|
-
'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-yellow-500 bg-yellow-100 rounded-lg dark:bg-yellow-800 dark:text-yellow-200';
|
|
34
|
+
iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-yellow-500 bg-yellow-100 rounded-lg dark:bg-yellow-800 dark:text-yellow-200';
|
|
42
35
|
}
|
|
43
36
|
else {
|
|
44
|
-
iconDivClass =
|
|
45
|
-
'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200';
|
|
37
|
+
iconDivClass = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200';
|
|
46
38
|
}
|
|
47
39
|
// have a custom transition function that returns the desired transition
|
|
48
40
|
function multiple(node, params) {
|
|
@@ -67,17 +59,7 @@ function multiple(node, params) {
|
|
|
67
59
|
<div class={textClass}><slot name="text" /></div>
|
|
68
60
|
<button type="button" class={btnClass} on:click={handleHide} aria-label="Close">
|
|
69
61
|
<span class="sr-only">Close</span>
|
|
70
|
-
<svg
|
|
71
|
-
class="w-5 h-5"
|
|
72
|
-
fill="currentColor"
|
|
73
|
-
viewBox="0 0 20 20"
|
|
74
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
75
|
-
><path
|
|
76
|
-
fill-rule="evenodd"
|
|
77
|
-
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
|
|
78
|
-
clip-rule="evenodd"
|
|
79
|
-
/></svg
|
|
80
|
-
>
|
|
62
|
+
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd" /></svg>
|
|
81
63
|
</button>
|
|
82
64
|
</div>
|
|
83
65
|
{/if}
|
package/toasts/Toast.svelte.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { Colors, TransitionTypes } from '../types';
|
|
2
|
+
import type { Colors, TransitionTypes, TransitionParamTypes } from '../types';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
iconColor?: Colors;
|
|
6
6
|
transitionType?: TransitionTypes;
|
|
7
|
-
transitionParams?:
|
|
7
|
+
transitionParams?: TransitionParamTypes;
|
|
8
8
|
divClass?: string;
|
|
9
9
|
textClass?: string;
|
|
10
10
|
btnClass?: string;
|
package/tooltips/Tooltip.svelte
CHANGED
|
@@ -4,21 +4,13 @@ export let right = false;
|
|
|
4
4
|
export let bottom = false;
|
|
5
5
|
export let left = false;
|
|
6
6
|
export let active = false;
|
|
7
|
-
// export let bgColor = "";
|
|
8
7
|
</script>
|
|
9
8
|
|
|
10
9
|
<div class="tooltip-wrapper">
|
|
11
10
|
<span class="tooltip-slot">
|
|
12
11
|
<slot />
|
|
13
12
|
</span>
|
|
14
|
-
<div
|
|
15
|
-
class="inline-block absolute invisible z-10 py-2 px-3 bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700"
|
|
16
|
-
class:active
|
|
17
|
-
class:left
|
|
18
|
-
class:right
|
|
19
|
-
class:bottom
|
|
20
|
-
class:top
|
|
21
|
-
>
|
|
13
|
+
<div class="inline-block absolute invisible z-10 py-2 px-3 bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700" class:active class:left class:right class:bottom class:top>
|
|
22
14
|
{#if tip}
|
|
23
15
|
<div class="text-sm font-medium text-white ">{tip}</div>
|
|
24
16
|
{:else}
|
package/types.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare type Buttontypes = 'blue' | 'blue-outline' | 'dark' | 'dark-outli
|
|
|
4
4
|
export declare type Buttonshadows = 'blue' | 'green' | 'cyan' | 'teal' | 'lime' | 'red' | 'pink' | 'purple';
|
|
5
5
|
export declare type Gradientduotones = 'purple2blue' | 'cyan2blue' | 'green2blue' | 'purple2pink' | 'pink2orange' | 'teal2lime' | 'red2yellow';
|
|
6
6
|
export declare type Textsize = 'text-xs' | 'text-sm' | 'text-base' | 'text-lg' | 'text-xl' | 'text-2xl' | 'text-3xl' | 'text-4xl';
|
|
7
|
+
export declare type InputType = 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week';
|
|
7
8
|
export interface ButtonGroupType {
|
|
8
9
|
name: string;
|
|
9
10
|
href?: string;
|
|
@@ -161,3 +162,24 @@ export interface PageType {
|
|
|
161
162
|
pageNum: number;
|
|
162
163
|
href: string;
|
|
163
164
|
}
|
|
165
|
+
export interface TransitionParamTypes {
|
|
166
|
+
delay?: number;
|
|
167
|
+
duration?: number;
|
|
168
|
+
easing?: (t: number) => number;
|
|
169
|
+
css?: (t: number, u: number) => string;
|
|
170
|
+
tick?: (t: number, u: number) => void;
|
|
171
|
+
}
|
|
172
|
+
export interface CheckboxType {
|
|
173
|
+
id: string;
|
|
174
|
+
label: string;
|
|
175
|
+
checked?: boolean;
|
|
176
|
+
disabled?: boolean;
|
|
177
|
+
helper?: string;
|
|
178
|
+
}
|
|
179
|
+
export interface RadioType {
|
|
180
|
+
id: string;
|
|
181
|
+
label: string;
|
|
182
|
+
value: string;
|
|
183
|
+
checked?: boolean;
|
|
184
|
+
disabled?: boolean;
|
|
185
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function _default(): string;
|