flowbite-svelte 0.27.10 → 0.27.12
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 +23 -0
- package/buttons/Button.svelte +1 -0
- package/buttons/Button.svelte.d.ts +1 -1
- package/index.d.ts +1 -3
- package/index.js +1 -3
- package/list-group/Listgroup.svelte +1 -1
- package/modals/Modal.svelte +1 -1
- package/navbar/NavUl.svelte +10 -10
- package/navbar/Navbar.svelte +3 -3
- package/navbar/Navbar.svelte.d.ts +1 -1
- package/package.json +2 -4
- package/paginations/Pagination.svelte +24 -119
- package/paginations/Pagination.svelte.d.ts +8 -18
- package/paginations/PaginationItem.svelte +24 -0
- package/paginations/{Next.svelte.d.ts → PaginationItem.svelte.d.ts} +9 -8
- package/toasts/Toast.svelte.d.ts +1 -2
- package/typography/P.svelte +2 -2
- package/typography/P.svelte.d.ts +2 -2
- package/utils/Frame.svelte +3 -0
- package/paginations/Next.svelte +0 -41
- package/paginations/Previous.svelte +0 -41
- package/paginations/Previous.svelte.d.ts +0 -28
- package/paginations/TableData.svelte +0 -56
- package/paginations/TableData.svelte.d.ts +0 -31
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.27.12](https://github.com/themesberg/flowbite-svelte/compare/v0.27.11...v0.27.12) (2022-10-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* meta tag by adding type, url, and appId ([#399](https://github.com/themesberg/flowbite-svelte/issues/399)) ([6f9f423](https://github.com/themesberg/flowbite-svelte/commit/6f9f423b294bbc54bdae152f659e029e5e8a1f76))
|
|
11
|
+
* update meta images width and height ([#400](https://github.com/themesberg/flowbite-svelte/issues/400)) ([f97c01a](https://github.com/themesberg/flowbite-svelte/commit/f97c01a361714daca951c16fa7a2293988abd983))
|
|
12
|
+
|
|
13
|
+
### [0.27.11](https://github.com/themesberg/flowbite-svelte/compare/v0.27.10...v0.27.11) (2022-10-26)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* pagination ([#395](https://github.com/themesberg/flowbite-svelte/issues/395)) ([4792988](https://github.com/themesberg/flowbite-svelte/commit/479298855936bdc0e917788bbe1e00d8f62cbbe2))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* add default value to opacity and space of paragraph element ([16f0729](https://github.com/themesberg/flowbite-svelte/commit/16f07295a2d23a3860ace75fab345c0d3452181b))
|
|
24
|
+
* merge conflict ([fa3c5d8](https://github.com/themesberg/flowbite-svelte/commit/fa3c5d8d205bc7211334f19c0ec6ec7c57fdd754))
|
|
25
|
+
* props update ([4c109c8](https://github.com/themesberg/flowbite-svelte/commit/4c109c84913bfe09ac8d4d6a7dd2265a0243eefa))
|
|
26
|
+
* set the default values of space and color of paragraph element to undefined ([0d54908](https://github.com/themesberg/flowbite-svelte/commit/0d549081235b1691017c0d3ae802fe71b48c4016))
|
|
27
|
+
|
|
5
28
|
### [0.27.10](https://github.com/themesberg/flowbite-svelte/compare/v0.27.9...v0.27.10) (2022-10-21)
|
|
6
29
|
|
|
7
30
|
|
package/buttons/Button.svelte
CHANGED
|
@@ -18,6 +18,7 @@ const colorClasses = {
|
|
|
18
18
|
green: 'text-white 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',
|
|
19
19
|
red: 'text-white bg-red-700 hover:bg-red-800 focus:ring-red-300 dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900',
|
|
20
20
|
yellow: 'text-white bg-yellow-400 hover:bg-yellow-500 focus:ring-yellow-300 dark:focus:ring-yellow-900',
|
|
21
|
+
primary: 'text-white bg-primary-700 hover:bg-primary-800 focus:ring-primary-300 dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800',
|
|
21
22
|
purple: 'text-white bg-purple-700 hover:bg-purple-800 focus:ring-purple-300 dark:bg-purple-600 dark:hover:bg-purple-700 dark:focus:ring-purple-900'
|
|
22
23
|
};
|
|
23
24
|
const gradientClasses = {
|
|
@@ -10,7 +10,7 @@ declare const __propDef: {
|
|
|
10
10
|
href?: string | undefined;
|
|
11
11
|
btnClass?: string | undefined;
|
|
12
12
|
type?: ButtonType | undefined;
|
|
13
|
-
color?: "red" | "yellow" | "green" | "purple" | "pink" | "blue" | "light" | "dark" | "cyan" | "teal" | "lime" | "alternative" | "purpleToBlue" | "cyanToBlue" | "greenToBlue" | "purpleToPink" | "pinkToOrange" | "tealToLime" | "redToYellow" | undefined;
|
|
13
|
+
color?: "red" | "yellow" | "green" | "purple" | "pink" | "blue" | "light" | "dark" | "cyan" | "teal" | "lime" | "alternative" | "primary" | "purpleToBlue" | "cyanToBlue" | "greenToBlue" | "purpleToPink" | "pinkToOrange" | "tealToLime" | "redToYellow" | undefined;
|
|
14
14
|
shadow?: "red" | "green" | "purple" | "pink" | "blue" | "cyan" | "teal" | "lime" | null | undefined;
|
|
15
15
|
};
|
|
16
16
|
events: {
|
package/index.d.ts
CHANGED
|
@@ -57,9 +57,7 @@ export { default as NavHamburger } from './navbar/NavHamburger.svelte';
|
|
|
57
57
|
export { default as NavLi } from './navbar/NavLi.svelte';
|
|
58
58
|
export { default as NavUl } from './navbar/NavUl.svelte';
|
|
59
59
|
export { default as Pagination } from './paginations/Pagination.svelte';
|
|
60
|
-
export { default as
|
|
61
|
-
export { default as Next } from './paginations/Next.svelte';
|
|
62
|
-
export { default as TableData } from './paginations/TableData.svelte';
|
|
60
|
+
export { default as PaginationItem } from './paginations/PaginationItem.svelte';
|
|
63
61
|
export { default as Popover } from './popover/Popover.svelte';
|
|
64
62
|
export { default as Progressbar } from './progressbars/Progressbar.svelte';
|
|
65
63
|
export { default as Rating } from './ratings/Rating.svelte';
|
package/index.js
CHANGED
|
@@ -78,9 +78,7 @@ export { default as NavLi } from './navbar/NavLi.svelte';
|
|
|
78
78
|
export { default as NavUl } from './navbar/NavUl.svelte';
|
|
79
79
|
// Pagination
|
|
80
80
|
export { default as Pagination } from './paginations/Pagination.svelte';
|
|
81
|
-
export { default as
|
|
82
|
-
export { default as Next } from './paginations/Next.svelte';
|
|
83
|
-
export { default as TableData } from './paginations/TableData.svelte';
|
|
81
|
+
export { default as PaginationItem } from './paginations/PaginationItem.svelte';
|
|
84
82
|
// Popover
|
|
85
83
|
export { default as Popover } from './popover/Popover.svelte';
|
|
86
84
|
// Progressbar
|
|
@@ -9,7 +9,7 @@ let groupClass;
|
|
|
9
9
|
$: groupClass = classNames('divide-y divide-gray-200 dark:divide-gray-600', $$props.class);
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
|
-
<Frame tag={active ? 'div' : 'ul'} rounded border class={groupClass}>
|
|
12
|
+
<Frame tag={active ? 'div' : 'ul'} {...$$restProps} rounded border class={groupClass}>
|
|
13
13
|
{#each items as item, index}
|
|
14
14
|
<ListgroupItem {active} {...item} {index} on:click><slot {item} {index} /></ListgroupItem>
|
|
15
15
|
{:else}
|
package/modals/Modal.svelte
CHANGED
|
@@ -97,7 +97,7 @@ function handleKeys(e) {
|
|
|
97
97
|
on:click={autoclose ? onAutoClose : null}>
|
|
98
98
|
<div class="flex p-4 w-full {sizes[size]} h-full md:h-auto max-h-screen">
|
|
99
99
|
<!-- Modal content -->
|
|
100
|
-
<Frame rounded shadow class="relative flex flex-col w-full h-full md:h-auto">
|
|
100
|
+
<Frame {...$$restProps} rounded shadow class="relative flex flex-col w-full h-full md:h-auto">
|
|
101
101
|
<!-- Modal header -->
|
|
102
102
|
{#if $$slots.header || title}
|
|
103
103
|
<div class="flex justify-between items-center p-4 rounded-t border-b dark:border-gray-600">
|
package/navbar/NavUl.svelte
CHANGED
|
@@ -14,15 +14,15 @@ $$props.class);
|
|
|
14
14
|
</script>
|
|
15
15
|
|
|
16
16
|
{#if !hidden}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
<div {...$$restProps} class={_divClass} transition:slide={{ delay: 250, duration: 500, easing: quintOut }}>
|
|
18
|
+
<Frame tag="ul" border rounded color="navbarUl" class={_ulClass}>
|
|
19
|
+
<slot />
|
|
20
|
+
</Frame>
|
|
21
|
+
</div>
|
|
22
22
|
{:else}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
<div {...$$restProps} class={_divClass} {hidden}>
|
|
24
|
+
<ul class={_ulClass}>
|
|
25
|
+
<slot />
|
|
26
|
+
</ul>
|
|
27
|
+
</div>
|
|
28
28
|
{/if}
|
package/navbar/Navbar.svelte
CHANGED
|
@@ -11,7 +11,7 @@ let toggle = () => {
|
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<Frame tag="nav" {color} {...$$restProps} class={classNames(navClass, $$props.class)}>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
<div class={classNames(navDivClass, fluid && 'container')}>
|
|
15
|
+
<slot {hidden} {toggle} />
|
|
16
|
+
</div>
|
|
17
17
|
</Frame>
|
|
@@ -5,7 +5,7 @@ declare const __propDef: {
|
|
|
5
5
|
navClass?: string | undefined;
|
|
6
6
|
navDivClass?: string | undefined;
|
|
7
7
|
fluid?: boolean | undefined;
|
|
8
|
-
color?:
|
|
8
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "default" | "purple" | "pink" | "blue" | "light" | "dark" | "dropdown" | "navbar" | "navbarUl" | "form" | "none" | undefined;
|
|
9
9
|
};
|
|
10
10
|
events: {
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.12",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": {
|
|
@@ -170,10 +170,8 @@
|
|
|
170
170
|
"./navbar/NavLi.svelte": "./navbar/NavLi.svelte",
|
|
171
171
|
"./navbar/NavUl.svelte": "./navbar/NavUl.svelte",
|
|
172
172
|
"./navbar/Navbar.svelte": "./navbar/Navbar.svelte",
|
|
173
|
-
"./paginations/Next.svelte": "./paginations/Next.svelte",
|
|
174
173
|
"./paginations/Pagination.svelte": "./paginations/Pagination.svelte",
|
|
175
|
-
"./paginations/
|
|
176
|
-
"./paginations/TableData.svelte": "./paginations/TableData.svelte",
|
|
174
|
+
"./paginations/PaginationItem.svelte": "./paginations/PaginationItem.svelte",
|
|
177
175
|
"./popover/Popover.svelte": "./popover/Popover.svelte",
|
|
178
176
|
"./progressbars/Progressbar.svelte": "./progressbars/Progressbar.svelte",
|
|
179
177
|
"./ratings/AdvancedRating.svelte": "./ratings/AdvancedRating.svelte",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
<script>import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<script>import classNames from 'classnames';
|
|
2
|
+
import { createEventDispatcher, setContext } from 'svelte';
|
|
3
|
+
import PaginationItem from './PaginationItem.svelte';
|
|
4
|
+
export let pages = [];
|
|
4
5
|
export let ulClass = 'inline-flex -space-x-px items-center';
|
|
5
|
-
export let
|
|
6
|
-
export let previousClass = 'py-2 px-3 ml-0 leading-tight text-gray-500 bg-white rounded-l-lg border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white';
|
|
7
|
-
export let nextClass = 'py-2 px-3 leading-tight text-gray-500 bg-white rounded-r-lg border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white';
|
|
8
|
-
export let iconPreviousClass = 'block py-2 px-3 ml-0 leading-tight text-gray-500 bg-white rounded-l-lg border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white';
|
|
9
|
-
export let iconNextClass = 'block py-2 px-3 leading-tight text-gray-500 bg-white rounded-r-lg border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white';
|
|
6
|
+
export let table = false;
|
|
10
7
|
const dispatch = createEventDispatcher();
|
|
8
|
+
setContext('group', true);
|
|
9
|
+
setContext('table', table);
|
|
11
10
|
const previous = () => {
|
|
12
11
|
dispatch('previous');
|
|
13
12
|
};
|
|
@@ -17,115 +16,21 @@ const next = () => {
|
|
|
17
16
|
</script>
|
|
18
17
|
|
|
19
18
|
<nav aria-label="Page navigation">
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<span class="sr-only">Previous</span>
|
|
38
|
-
<svg
|
|
39
|
-
class="w-5 h-5"
|
|
40
|
-
fill="currentColor"
|
|
41
|
-
viewBox="0 0 20 20"
|
|
42
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
43
|
-
><path
|
|
44
|
-
fill-rule="evenodd"
|
|
45
|
-
d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z"
|
|
46
|
-
clip-rule="evenodd"
|
|
47
|
-
/></svg
|
|
48
|
-
>
|
|
49
|
-
</a>
|
|
50
|
-
{:else}
|
|
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
|
-
>
|
|
65
|
-
{/if}
|
|
66
|
-
</li>
|
|
67
|
-
{#each pages as { pageNum, href }}
|
|
68
|
-
<li>
|
|
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
|
-
>
|
|
82
|
-
</li>
|
|
83
|
-
{/each}
|
|
84
|
-
<li>
|
|
85
|
-
{#if icon}
|
|
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
|
-
>
|
|
100
|
-
<span class="sr-only">Next</span>
|
|
101
|
-
<svg
|
|
102
|
-
class="w-5 h-5"
|
|
103
|
-
fill="currentColor"
|
|
104
|
-
viewBox="0 0 20 20"
|
|
105
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
106
|
-
><path
|
|
107
|
-
fill-rule="evenodd"
|
|
108
|
-
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
|
|
109
|
-
clip-rule="evenodd"
|
|
110
|
-
/></svg
|
|
111
|
-
>
|
|
112
|
-
</a>
|
|
113
|
-
{:else}
|
|
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
|
-
>
|
|
128
|
-
{/if}
|
|
129
|
-
</li>
|
|
130
|
-
</ul>
|
|
19
|
+
<ul class={classNames(ulClass, table && 'divide-x divide-gray-700', $$props.class)}>
|
|
20
|
+
<li>
|
|
21
|
+
<PaginationItem on:click={previous} class={table ? 'rounded-l' : 'rounded-l-lg'}>
|
|
22
|
+
<slot name="prev">Previous</slot>
|
|
23
|
+
</PaginationItem>
|
|
24
|
+
</li>
|
|
25
|
+
{#each pages as { name, href }}
|
|
26
|
+
<li>
|
|
27
|
+
<PaginationItem {href}>{name}</PaginationItem>
|
|
28
|
+
</li>
|
|
29
|
+
{/each}
|
|
30
|
+
<li>
|
|
31
|
+
<PaginationItem on:click={next} class={table ? 'rounded-r' : 'rounded-r-lg'}>
|
|
32
|
+
<slot name="next">Next</slot>
|
|
33
|
+
</PaginationItem>
|
|
34
|
+
</li>
|
|
35
|
+
</ul>
|
|
131
36
|
</nav>
|
|
@@ -1,32 +1,22 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type {
|
|
2
|
+
import type { LinkType } from '../types';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
|
|
6
|
-
pages
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
pages?: LinkType[] | undefined;
|
|
7
7
|
ulClass?: string | undefined;
|
|
8
|
-
|
|
9
|
-
previousClass?: string | undefined;
|
|
10
|
-
nextClass?: string | undefined;
|
|
11
|
-
iconPreviousClass?: string | undefined;
|
|
12
|
-
iconNextClass?: string | undefined;
|
|
8
|
+
table?: boolean | undefined;
|
|
13
9
|
};
|
|
14
10
|
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;
|
|
24
11
|
previous: CustomEvent<any>;
|
|
25
12
|
next: CustomEvent<any>;
|
|
26
13
|
} & {
|
|
27
14
|
[evt: string]: CustomEvent<any>;
|
|
28
15
|
};
|
|
29
|
-
slots: {
|
|
16
|
+
slots: {
|
|
17
|
+
prev: {};
|
|
18
|
+
next: {};
|
|
19
|
+
};
|
|
30
20
|
};
|
|
31
21
|
export declare type PaginationProps = typeof __propDef.props;
|
|
32
22
|
export declare type PaginationEvents = typeof __propDef.events;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script>import classNames from 'classnames';
|
|
2
|
+
import { getContext } from 'svelte';
|
|
3
|
+
export let href = undefined;
|
|
4
|
+
const group = getContext('group');
|
|
5
|
+
const table = getContext('table');
|
|
6
|
+
let defaultClass;
|
|
7
|
+
$: defaultClass = classNames('block py-2', group ? 'px-3' : 'px-4', 'text-sm font-medium', table || 'border border-gray-300', group || (table ? 'rounded' : 'rounded-lg'), 'text-gray-500 bg-white hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white', $$props.class);
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<svelte:element
|
|
11
|
+
this={href ? 'a' : 'button'}
|
|
12
|
+
{href}
|
|
13
|
+
class={defaultClass}
|
|
14
|
+
on:blur
|
|
15
|
+
on:click
|
|
16
|
+
on:focus
|
|
17
|
+
on:keydown
|
|
18
|
+
on:keypress
|
|
19
|
+
on:keyup
|
|
20
|
+
on:mouseenter
|
|
21
|
+
on:mouseleave
|
|
22
|
+
on:mouseover>
|
|
23
|
+
<slot />
|
|
24
|
+
</svelte:element>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
href?: string | undefined;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
blur: FocusEvent;
|
|
@@ -14,15 +14,16 @@ declare const __propDef: {
|
|
|
14
14
|
mouseenter: MouseEvent;
|
|
15
15
|
mouseleave: MouseEvent;
|
|
16
16
|
mouseover: MouseEvent;
|
|
17
|
-
next: CustomEvent<any>;
|
|
18
17
|
} & {
|
|
19
18
|
[evt: string]: CustomEvent<any>;
|
|
20
19
|
};
|
|
21
|
-
slots: {
|
|
20
|
+
slots: {
|
|
21
|
+
default: {};
|
|
22
|
+
};
|
|
22
23
|
};
|
|
23
|
-
export declare type
|
|
24
|
-
export declare type
|
|
25
|
-
export declare type
|
|
26
|
-
export default class
|
|
24
|
+
export declare type PaginationItemProps = typeof __propDef.props;
|
|
25
|
+
export declare type PaginationItemEvents = typeof __propDef.events;
|
|
26
|
+
export declare type PaginationItemSlots = typeof __propDef.slots;
|
|
27
|
+
export default class PaginationItem extends SvelteComponentTyped<PaginationItemProps, PaginationItemEvents, PaginationItemSlots> {
|
|
27
28
|
}
|
|
28
29
|
export {};
|
package/toasts/Toast.svelte.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { Colors } from '../types';
|
|
3
2
|
declare const __propDef: {
|
|
4
3
|
props: {
|
|
5
4
|
[x: string]: any;
|
|
6
|
-
color?:
|
|
5
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "default" | "purple" | "pink" | "blue" | "light" | "dark" | "dropdown" | "navbar" | "navbarUl" | "form" | "none" | undefined;
|
|
7
6
|
simple?: boolean | undefined;
|
|
8
7
|
position?: "none" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
9
8
|
open?: boolean | undefined;
|
package/typography/P.svelte
CHANGED
|
@@ -6,10 +6,10 @@ export let justify = false;
|
|
|
6
6
|
export let italic = false;
|
|
7
7
|
export let firstupper = false;
|
|
8
8
|
export let upperClass = 'first-line:uppercase first-line:tracking-widest first-letter:text-7xl first-letter:font-bold first-letter:text-gray-900 dark:first-letter:text-gray-100 first-letter:mr-3 first-letter:float-left';
|
|
9
|
-
export let opacity;
|
|
9
|
+
export let opacity = undefined;
|
|
10
10
|
export let whitespace = 'normal';
|
|
11
11
|
export let size = 'base';
|
|
12
|
-
export let space;
|
|
12
|
+
export let space = undefined;
|
|
13
13
|
export let weight = 'normal';
|
|
14
14
|
const sizes = {
|
|
15
15
|
xs: 'text-xs',
|
package/typography/P.svelte.d.ts
CHANGED
|
@@ -9,10 +9,10 @@ declare const __propDef: {
|
|
|
9
9
|
italic?: boolean | undefined;
|
|
10
10
|
firstupper?: boolean | undefined;
|
|
11
11
|
upperClass?: string | undefined;
|
|
12
|
-
opacity
|
|
12
|
+
opacity?: number | undefined;
|
|
13
13
|
whitespace?: "pre" | "normal" | "nowrap" | "preline" | "prewrap" | undefined;
|
|
14
14
|
size?: "xs" | "sm" | "lg" | "xl" | "base" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | undefined;
|
|
15
|
-
space
|
|
15
|
+
space?: 'tighter' | 'tight' | 'normal' | 'wide' | 'wider' | 'widest' | undefined;
|
|
16
16
|
weight?: "light" | "bold" | "normal" | "thin" | "extralight" | "medium" | "semibold" | "extrabold" | "black" | undefined;
|
|
17
17
|
};
|
|
18
18
|
events: {
|
package/utils/Frame.svelte
CHANGED
|
@@ -33,6 +33,7 @@ const bgColors = {
|
|
|
33
33
|
navbar: 'bg-white dark:bg-gray-900',
|
|
34
34
|
navbarUl: 'bg-gray-50 dark:bg-gray-800',
|
|
35
35
|
form: 'bg-gray-50 dark:bg-gray-700',
|
|
36
|
+
primary: 'bg-primary-100 dark:bg-primary-200 ',
|
|
36
37
|
none: ''
|
|
37
38
|
};
|
|
38
39
|
const textColors = {
|
|
@@ -51,6 +52,7 @@ const textColors = {
|
|
|
51
52
|
navbar: 'text-gray-700 dark:text-gray-200',
|
|
52
53
|
navbarUl: 'text-gray-700 dark:text-gray-400',
|
|
53
54
|
form: 'text-gray-900 dark:text-white',
|
|
55
|
+
primary: 'text-primary-700 dark:text-primary-800',
|
|
54
56
|
none: ''
|
|
55
57
|
};
|
|
56
58
|
const borderColors = {
|
|
@@ -69,6 +71,7 @@ const borderColors = {
|
|
|
69
71
|
navbar: 'border-gray-100 dark:border-gray-700',
|
|
70
72
|
navbarUl: 'border-gray-100 dark:border-gray-700',
|
|
71
73
|
form: 'border-gray-300 dark:border-gray-700',
|
|
74
|
+
primary: 'border-primary-500 dark:bg-primary-200 ',
|
|
72
75
|
none: ''
|
|
73
76
|
};
|
|
74
77
|
let divClass;
|
package/paginations/Next.svelte
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<script>import { createEventDispatcher } from 'svelte';
|
|
2
|
-
export let icon = false;
|
|
3
|
-
export let nextClass = 'inline-flex items-center py-2 px-4 text-sm font-medium text-gray-500 bg-white rounded-lg border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white';
|
|
4
|
-
const dispatch = createEventDispatcher();
|
|
5
|
-
const next = () => {
|
|
6
|
-
dispatch('next');
|
|
7
|
-
};
|
|
8
|
-
if (!icon) {
|
|
9
|
-
nextClass += ' ml-3';
|
|
10
|
-
}
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<a
|
|
14
|
-
href="/"
|
|
15
|
-
on:click|preventDefault={next}
|
|
16
|
-
class={nextClass}
|
|
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
|
-
>
|
|
27
|
-
Next
|
|
28
|
-
{#if icon}
|
|
29
|
-
<svg
|
|
30
|
-
class="ml-2 w-5 h-5"
|
|
31
|
-
fill="currentColor"
|
|
32
|
-
viewBox="0 0 20 20"
|
|
33
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
34
|
-
><path
|
|
35
|
-
fill-rule="evenodd"
|
|
36
|
-
d="M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z"
|
|
37
|
-
clip-rule="evenodd"
|
|
38
|
-
/></svg
|
|
39
|
-
>
|
|
40
|
-
{/if}
|
|
41
|
-
</a>
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<script>import { createEventDispatcher } from 'svelte';
|
|
2
|
-
export let icon = false;
|
|
3
|
-
export let previousClass = 'inline-flex items-center py-2 px-4 text-sm font-medium text-gray-500 bg-white rounded-lg border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white';
|
|
4
|
-
const dispatch = createEventDispatcher();
|
|
5
|
-
const previous = () => {
|
|
6
|
-
dispatch('previous');
|
|
7
|
-
};
|
|
8
|
-
if (icon) {
|
|
9
|
-
previousClass += ' mr-3';
|
|
10
|
-
}
|
|
11
|
-
</script>
|
|
12
|
-
|
|
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
|
-
>
|
|
27
|
-
{#if icon}
|
|
28
|
-
<svg
|
|
29
|
-
class="mr-2 w-5 h-5"
|
|
30
|
-
fill="currentColor"
|
|
31
|
-
viewBox="0 0 20 20"
|
|
32
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
33
|
-
><path
|
|
34
|
-
fill-rule="evenodd"
|
|
35
|
-
d="M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z"
|
|
36
|
-
clip-rule="evenodd"
|
|
37
|
-
/></svg
|
|
38
|
-
>
|
|
39
|
-
{/if}
|
|
40
|
-
Previous
|
|
41
|
-
</a>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
icon?: boolean | undefined;
|
|
5
|
-
previousClass?: string | undefined;
|
|
6
|
-
};
|
|
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;
|
|
17
|
-
previous: CustomEvent<any>;
|
|
18
|
-
} & {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
};
|
|
23
|
-
export declare type PreviousProps = typeof __propDef.props;
|
|
24
|
-
export declare type PreviousEvents = typeof __propDef.events;
|
|
25
|
-
export declare type PreviousSlots = typeof __propDef.slots;
|
|
26
|
-
export default class Previous extends SvelteComponentTyped<PreviousProps, PreviousEvents, PreviousSlots> {
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<script>import { createEventDispatcher } from 'svelte';
|
|
2
|
-
export let btnPreClass = 'py-2 px-4 text-sm font-medium text-white bg-gray-800 rounded-l hover:bg-gray-900 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white';
|
|
3
|
-
export let btnNextClass = 'py-2 px-4 text-sm font-medium text-white bg-gray-800 rounded-r border-0 border-l border-gray-700 hover:bg-gray-900 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white';
|
|
4
|
-
export let helper = undefined;
|
|
5
|
-
const dispatch = createEventDispatcher();
|
|
6
|
-
const previous = () => {
|
|
7
|
-
dispatch('previous');
|
|
8
|
-
};
|
|
9
|
-
const next = () => {
|
|
10
|
-
dispatch('next');
|
|
11
|
-
};
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<div class="flex flex-col items-center">
|
|
15
|
-
{#if helper}
|
|
16
|
-
<!-- Help text -->
|
|
17
|
-
<span class="text-sm text-gray-700 dark:text-gray-400">
|
|
18
|
-
Showing <span class="font-semibold text-gray-900 dark:text-white">{helper.start}</span> to
|
|
19
|
-
<span class="font-semibold text-gray-900 dark:text-white">{helper.end}</span>
|
|
20
|
-
of <span class="font-semibold text-gray-900 dark:text-white">{helper.total}</span> Entries
|
|
21
|
-
</span>
|
|
22
|
-
{/if}
|
|
23
|
-
<!-- Buttons -->
|
|
24
|
-
<div class="inline-flex mt-2">
|
|
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>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { TableDataHelperType } from '../types';
|
|
3
|
-
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
-
btnPreClass?: string | undefined;
|
|
6
|
-
btnNextClass?: string | undefined;
|
|
7
|
-
helper?: TableDataHelperType | undefined;
|
|
8
|
-
};
|
|
9
|
-
events: {
|
|
10
|
-
blur: FocusEvent;
|
|
11
|
-
click: MouseEvent;
|
|
12
|
-
focus: FocusEvent;
|
|
13
|
-
keydown: KeyboardEvent;
|
|
14
|
-
keypress: KeyboardEvent;
|
|
15
|
-
keyup: KeyboardEvent;
|
|
16
|
-
mouseenter: MouseEvent;
|
|
17
|
-
mouseleave: MouseEvent;
|
|
18
|
-
mouseover: MouseEvent;
|
|
19
|
-
previous: CustomEvent<any>;
|
|
20
|
-
next: CustomEvent<any>;
|
|
21
|
-
} & {
|
|
22
|
-
[evt: string]: CustomEvent<any>;
|
|
23
|
-
};
|
|
24
|
-
slots: {};
|
|
25
|
-
};
|
|
26
|
-
export declare type TableDataProps = typeof __propDef.props;
|
|
27
|
-
export declare type TableDataEvents = typeof __propDef.events;
|
|
28
|
-
export declare type TableDataSlots = typeof __propDef.slots;
|
|
29
|
-
export default class TableData extends SvelteComponentTyped<TableDataProps, TableDataEvents, TableDataSlots> {
|
|
30
|
-
}
|
|
31
|
-
export {};
|