flowbite-svelte 1.2.7 → 1.3.0
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/dist/pagination/Pagination.svelte +1 -1
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +60 -0
- package/dist/pagination/PaginationButton.svelte.d.ts +18 -0
- package/dist/pagination/PaginationItem.svelte +1 -1
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +99 -0
- package/dist/pagination/PaginationNav.svelte.d.ts +26 -0
- package/dist/pagination/index.d.ts +5 -4
- package/dist/pagination/index.js +5 -4
- package/dist/pagination/theme.d.ts +141 -1
- package/dist/pagination/theme.js +62 -0
- package/dist/popover/Popover.svelte +1 -1
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/progress/Progressbar.svelte +1 -1
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +1 -1
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/rating/AdvancedRating.svelte +1 -1
- package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
- package/dist/rating/CustomIcon.svelte +1 -1
- package/dist/rating/CustomIcon.svelte.d.ts +1 -1
- package/dist/rating/Heart.svelte +1 -1
- package/dist/rating/Heart.svelte.d.ts +1 -1
- package/dist/rating/Rating.svelte +1 -1
- package/dist/rating/Rating.svelte.d.ts +1 -1
- package/dist/rating/RatingComment.svelte +1 -1
- package/dist/rating/RatingComment.svelte.d.ts +1 -1
- package/dist/rating/Review.svelte +1 -1
- package/dist/rating/Review.svelte.d.ts +1 -1
- package/dist/rating/ScoreRating.svelte +1 -1
- package/dist/rating/ScoreRating.svelte.d.ts +1 -1
- package/dist/rating/Star.svelte +1 -1
- package/dist/rating/Star.svelte.d.ts +1 -1
- package/dist/rating/Thumbup.svelte +1 -1
- package/dist/rating/Thumbup.svelte.d.ts +1 -1
- package/dist/sidebar/Sidebar.svelte +1 -1
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +1 -1
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarButton.svelte +1 -1
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +1 -1
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarGroup.svelte +1 -1
- package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarItem.svelte +1 -1
- package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
- package/dist/skeleton/CardPlaceholder.svelte +1 -1
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +1 -1
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +1 -1
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +1 -1
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDial.svelte +1 -1
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
- package/dist/spinner/Spinner.svelte +1 -1
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/stepindicator/StepIndicator.svelte +1 -1
- package/dist/stepindicator/StepIndicator.svelte.d.ts +1 -1
- package/dist/table/Table.svelte +1 -1
- package/dist/table/Table.svelte.d.ts +1 -1
- package/dist/table/TableBody.svelte +1 -1
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +1 -1
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +1 -1
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +1 -1
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +1 -1
- package/dist/table/TableHeadCell.svelte.d.ts +1 -1
- package/dist/table/TableSearch.svelte +1 -1
- package/dist/table/TableSearch.svelte.d.ts +1 -1
- package/dist/tabs/TabItem.svelte +1 -1
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +1 -1
- package/dist/tabs/Tabs.svelte.d.ts +1 -1
- package/dist/theme/Theme.svelte +2 -2
- package/dist/theme/Theme.svelte.d.ts +2 -2
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +1 -1
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/timeline/Group.svelte +1 -1
- package/dist/timeline/Group.svelte.d.ts +1 -1
- package/dist/timeline/GroupItem.svelte +1 -1
- package/dist/timeline/GroupItem.svelte.d.ts +1 -1
- package/dist/timeline/Timeline.svelte +1 -1
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +1 -1
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
- package/dist/toast/Toast.svelte +1 -1
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/tooltip/Tooltip.svelte +1 -1
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/types.d.ts +23 -0
- package/dist/typography/anchor/A.svelte +1 -1
- package/dist/typography/anchor/A.svelte.d.ts +1 -1
- package/dist/typography/blockquote/Blockquote.svelte +1 -1
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/heading/Heading.svelte +1 -1
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/hr/Hr.svelte +1 -1
- package/dist/typography/hr/Hr.svelte.d.ts +1 -1
- package/dist/typography/img/EnhancedImg.svelte +1 -1
- package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
- package/dist/typography/img/Img.svelte +1 -1
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- package/dist/typography/layout/Layout.svelte +1 -1
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/list/Li.svelte +1 -1
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +1 -1
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/mark/Mark.svelte +1 -1
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/paragraph/P.svelte +1 -1
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/secondary/Secondary.svelte +1 -1
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/span/Span.svelte +1 -1
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/utils/Arrow.svelte +1 -1
- package/dist/utils/Arrow.svelte.d.ts +1 -1
- package/dist/utils/Popper.svelte +1 -1
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/video/Video.svelte +1 -1
- package/dist/video/Video.svelte.d.ts +1 -1
- package/package.json +10 -2
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
@component
|
|
51
51
|
[Go to docs](https://flowbite-svelte.com/)
|
|
52
52
|
## Type
|
|
53
|
-
[PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
53
|
+
[PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1124)
|
|
54
54
|
## Props
|
|
55
55
|
@prop pages = []
|
|
56
56
|
@prop previous
|
|
@@ -2,7 +2,7 @@ import type { PaginationProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1124)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop pages = []
|
|
8
8
|
* @prop previous
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { paginationbutton } from ".";
|
|
4
|
+
import type { PaginationButtonProps } from "../types";
|
|
5
|
+
import { getContext } from "svelte";
|
|
6
|
+
|
|
7
|
+
let { children, size, onclick, disabled = false, class: className, href, active = false, ...restProps }: PaginationButtonProps = $props();
|
|
8
|
+
|
|
9
|
+
const group = getContext<boolean>("group");
|
|
10
|
+
const table = getContext<boolean>("table");
|
|
11
|
+
|
|
12
|
+
const paginationClass = $derived(
|
|
13
|
+
paginationbutton({
|
|
14
|
+
size: getContext("size") ?? size,
|
|
15
|
+
active,
|
|
16
|
+
group,
|
|
17
|
+
table,
|
|
18
|
+
disabled,
|
|
19
|
+
class: clsx(className)
|
|
20
|
+
})
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
function handleClick(e: MouseEvent) {
|
|
24
|
+
if (disabled) {
|
|
25
|
+
e.preventDefault();
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (onclick) onclick();
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
{#if href}
|
|
33
|
+
<a {href} {...restProps} class={paginationClass} onclick={handleClick}>
|
|
34
|
+
{#if children}
|
|
35
|
+
{@render children()}
|
|
36
|
+
{/if}
|
|
37
|
+
</a>
|
|
38
|
+
{:else}
|
|
39
|
+
<button {...restProps} {disabled} class={paginationClass} onclick={handleClick}>
|
|
40
|
+
{#if children}
|
|
41
|
+
{@render children()}
|
|
42
|
+
{/if}
|
|
43
|
+
</button>
|
|
44
|
+
{/if}
|
|
45
|
+
|
|
46
|
+
<!--
|
|
47
|
+
@component
|
|
48
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
49
|
+
## Type
|
|
50
|
+
[PaginationButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1095)
|
|
51
|
+
## Props
|
|
52
|
+
@prop children
|
|
53
|
+
@prop size
|
|
54
|
+
@prop onclick
|
|
55
|
+
@prop disabled = false
|
|
56
|
+
@prop class: className
|
|
57
|
+
@prop href
|
|
58
|
+
@prop active = false
|
|
59
|
+
@prop ...restProps
|
|
60
|
+
-->
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PaginationButtonProps } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
|
+
* ## Type
|
|
5
|
+
* [PaginationButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1095)
|
|
6
|
+
* ## Props
|
|
7
|
+
* @prop children
|
|
8
|
+
* @prop size
|
|
9
|
+
* @prop onclick
|
|
10
|
+
* @prop disabled = false
|
|
11
|
+
* @prop class: className
|
|
12
|
+
* @prop href
|
|
13
|
+
* @prop active = false
|
|
14
|
+
* @prop ...restProps
|
|
15
|
+
*/
|
|
16
|
+
declare const PaginationButton: import("svelte").Component<PaginationButtonProps, {}, "">;
|
|
17
|
+
type PaginationButton = ReturnType<typeof PaginationButton>;
|
|
18
|
+
export default PaginationButton;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
@component
|
|
30
30
|
[Go to docs](https://flowbite-svelte.com/)
|
|
31
31
|
## Type
|
|
32
|
-
[PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
32
|
+
[PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1120)
|
|
33
33
|
## Props
|
|
34
34
|
@prop children
|
|
35
35
|
@prop size
|
|
@@ -2,7 +2,7 @@ import type { PaginationItemProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1120)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop size
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { setContext } from "svelte";
|
|
3
|
+
import { paginationnav } from "./theme";
|
|
4
|
+
import { type PaginationNavProps, PaginationButton } from "..";
|
|
5
|
+
|
|
6
|
+
function paginationRange(start: number, end: number): number[] {
|
|
7
|
+
return Array.from({ length: end - start + 1 }, (_, i) => start + i);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
let { currentPage = 1, totalPages = 1, onPageChange, prevContent, nextContent, prevClass, nextClass, layout = "pagination", nextLabel = "Next", previousLabel = "Previous", ariaLabel = "Page navigation", size = "default", class: className, spanClass, tableDivClass, ...restProps }: PaginationNavProps = $props();
|
|
11
|
+
|
|
12
|
+
// Set context values for child components
|
|
13
|
+
setContext("group", true);
|
|
14
|
+
setContext("size", size);
|
|
15
|
+
setContext("table", layout === "table");
|
|
16
|
+
|
|
17
|
+
// Calculate visible pages range
|
|
18
|
+
const lastPage = $derived(Math.min(Math.max(layout === "pagination" ? currentPage + 2 : currentPage + 4, 5), totalPages));
|
|
19
|
+
const firstPage = $derived(Math.max(1, lastPage - 4));
|
|
20
|
+
|
|
21
|
+
// Generate array of page numbers to display
|
|
22
|
+
const pageNumbers = $derived(paginationRange(firstPage, lastPage));
|
|
23
|
+
|
|
24
|
+
// Navigation helper functions
|
|
25
|
+
function goToNextPage() {
|
|
26
|
+
onPageChange(Math.min(currentPage + 1, totalPages));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function goToPreviousPage() {
|
|
30
|
+
onPageChange(Math.max(currentPage - 1, 1));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const { base, tableDiv, tableSpan, prevItem, nextItem } = $derived(paginationnav({ layout }));
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<nav aria-label={ariaLabel} {...restProps}>
|
|
37
|
+
{#if layout === "table"}
|
|
38
|
+
<div class={tableDiv({ class: tableDivClass })}>
|
|
39
|
+
Showing <span class={tableSpan({ class: spanClass })}>{currentPage}</span>
|
|
40
|
+
of
|
|
41
|
+
<span class={tableSpan({ class: spanClass })}>{totalPages}</span>
|
|
42
|
+
Entries
|
|
43
|
+
</div>
|
|
44
|
+
{/if}
|
|
45
|
+
|
|
46
|
+
<ul class={base({ class: className })}>
|
|
47
|
+
<li {...restProps}>
|
|
48
|
+
<PaginationButton onclick={goToPreviousPage} disabled={currentPage === 1} class={prevItem({ class: prevClass })}>
|
|
49
|
+
{#if prevContent}
|
|
50
|
+
{@render prevContent()}
|
|
51
|
+
{:else}
|
|
52
|
+
{previousLabel}
|
|
53
|
+
{/if}
|
|
54
|
+
</PaginationButton>
|
|
55
|
+
</li>
|
|
56
|
+
{#if layout === "pagination" && pageNumbers.length > 0}
|
|
57
|
+
{#each pageNumbers as page}
|
|
58
|
+
<li aria-current={page === currentPage ? "page" : undefined}>
|
|
59
|
+
<PaginationButton active={page === currentPage} onclick={() => onPageChange(page)}>
|
|
60
|
+
{page}
|
|
61
|
+
</PaginationButton>
|
|
62
|
+
</li>
|
|
63
|
+
{/each}
|
|
64
|
+
{/if}
|
|
65
|
+
<li {...restProps}>
|
|
66
|
+
<PaginationButton onclick={goToNextPage} disabled={currentPage === totalPages} class={nextItem({ class: nextClass })}>
|
|
67
|
+
{#if nextContent}
|
|
68
|
+
{@render nextContent()}
|
|
69
|
+
{:else}
|
|
70
|
+
{nextLabel}
|
|
71
|
+
{/if}
|
|
72
|
+
</PaginationButton>
|
|
73
|
+
</li>
|
|
74
|
+
</ul>
|
|
75
|
+
</nav>
|
|
76
|
+
|
|
77
|
+
<!--
|
|
78
|
+
@component
|
|
79
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
80
|
+
## Type
|
|
81
|
+
[PaginationNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1101)
|
|
82
|
+
## Props
|
|
83
|
+
@prop currentPage = 1
|
|
84
|
+
@prop totalPages = 1
|
|
85
|
+
@prop onPageChange
|
|
86
|
+
@prop prevContent
|
|
87
|
+
@prop nextContent
|
|
88
|
+
@prop prevClass
|
|
89
|
+
@prop nextClass
|
|
90
|
+
@prop layout = "pagination"
|
|
91
|
+
@prop nextLabel = "Next"
|
|
92
|
+
@prop previousLabel = "Previous"
|
|
93
|
+
@prop ariaLabel = "Page navigation"
|
|
94
|
+
@prop size = "default"
|
|
95
|
+
@prop class: className
|
|
96
|
+
@prop spanClass
|
|
97
|
+
@prop tableDivClass
|
|
98
|
+
@prop ...restProps
|
|
99
|
+
-->
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type PaginationNavProps } from "..";
|
|
2
|
+
/**
|
|
3
|
+
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
|
+
* ## Type
|
|
5
|
+
* [PaginationNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1101)
|
|
6
|
+
* ## Props
|
|
7
|
+
* @prop currentPage = 1
|
|
8
|
+
* @prop totalPages = 1
|
|
9
|
+
* @prop onPageChange
|
|
10
|
+
* @prop prevContent
|
|
11
|
+
* @prop nextContent
|
|
12
|
+
* @prop prevClass
|
|
13
|
+
* @prop nextClass
|
|
14
|
+
* @prop layout = "pagination"
|
|
15
|
+
* @prop nextLabel = "Next"
|
|
16
|
+
* @prop previousLabel = "Previous"
|
|
17
|
+
* @prop ariaLabel = "Page navigation"
|
|
18
|
+
* @prop size = "default"
|
|
19
|
+
* @prop class: className
|
|
20
|
+
* @prop spanClass
|
|
21
|
+
* @prop tableDivClass
|
|
22
|
+
* @prop ...restProps
|
|
23
|
+
*/
|
|
24
|
+
declare const PaginationNav: import("svelte").Component<PaginationNavProps, {}, "">;
|
|
25
|
+
type PaginationNav = ReturnType<typeof PaginationNav>;
|
|
26
|
+
export default PaginationNav;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { Pagination
|
|
1
|
+
export { paginationItem, pagination, paginationbutton, paginationnav } from "./theme";
|
|
2
|
+
export { default as PaginationNav } from "./PaginationNav.svelte";
|
|
3
|
+
export { default as PaginationButton } from "./PaginationButton.svelte";
|
|
4
|
+
export { default as Pagination } from "./Pagination.svelte";
|
|
5
|
+
export { default as PaginationItem } from "./PaginationItem.svelte";
|
package/dist/pagination/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { Pagination
|
|
1
|
+
export { paginationItem, pagination, paginationbutton, paginationnav } from "./theme";
|
|
2
|
+
export { default as PaginationNav } from "./PaginationNav.svelte";
|
|
3
|
+
export { default as PaginationButton } from "./PaginationButton.svelte";
|
|
4
|
+
export { default as Pagination } from "./Pagination.svelte";
|
|
5
|
+
export { default as PaginationItem } from "./PaginationItem.svelte";
|
|
@@ -1,5 +1,146 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
export type PaginationVariants = VariantProps<typeof pagination>;
|
|
3
|
+
export declare const paginationnav: import("tailwind-variants").TVReturnType<{
|
|
4
|
+
size: {
|
|
5
|
+
default: string;
|
|
6
|
+
large: string;
|
|
7
|
+
};
|
|
8
|
+
layout: {
|
|
9
|
+
table: {
|
|
10
|
+
prevItem: string;
|
|
11
|
+
nextItem: string;
|
|
12
|
+
};
|
|
13
|
+
navigation: {
|
|
14
|
+
prevItem: string;
|
|
15
|
+
nextItem: string;
|
|
16
|
+
};
|
|
17
|
+
pagination: {
|
|
18
|
+
prevItem: string;
|
|
19
|
+
nextItem: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
base: string;
|
|
24
|
+
tableDiv: string;
|
|
25
|
+
tableSpan: string;
|
|
26
|
+
prevItem: string;
|
|
27
|
+
nextItem: string;
|
|
28
|
+
}, undefined, {
|
|
29
|
+
size: {
|
|
30
|
+
default: string;
|
|
31
|
+
large: string;
|
|
32
|
+
};
|
|
33
|
+
layout: {
|
|
34
|
+
table: {
|
|
35
|
+
prevItem: string;
|
|
36
|
+
nextItem: string;
|
|
37
|
+
};
|
|
38
|
+
navigation: {
|
|
39
|
+
prevItem: string;
|
|
40
|
+
nextItem: string;
|
|
41
|
+
};
|
|
42
|
+
pagination: {
|
|
43
|
+
prevItem: string;
|
|
44
|
+
nextItem: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
base: string;
|
|
49
|
+
tableDiv: string;
|
|
50
|
+
tableSpan: string;
|
|
51
|
+
prevItem: string;
|
|
52
|
+
nextItem: string;
|
|
53
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
54
|
+
size: {
|
|
55
|
+
default: string;
|
|
56
|
+
large: string;
|
|
57
|
+
};
|
|
58
|
+
layout: {
|
|
59
|
+
table: {
|
|
60
|
+
prevItem: string;
|
|
61
|
+
nextItem: string;
|
|
62
|
+
};
|
|
63
|
+
navigation: {
|
|
64
|
+
prevItem: string;
|
|
65
|
+
nextItem: string;
|
|
66
|
+
};
|
|
67
|
+
pagination: {
|
|
68
|
+
prevItem: string;
|
|
69
|
+
nextItem: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
}, {
|
|
73
|
+
base: string;
|
|
74
|
+
tableDiv: string;
|
|
75
|
+
tableSpan: string;
|
|
76
|
+
prevItem: string;
|
|
77
|
+
nextItem: string;
|
|
78
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
2
79
|
export type PaginationItemVariants = VariantProps<typeof paginationItem>;
|
|
80
|
+
export declare const paginationbutton: import("tailwind-variants").TVReturnType<{
|
|
81
|
+
size: {
|
|
82
|
+
default: string;
|
|
83
|
+
large: string;
|
|
84
|
+
};
|
|
85
|
+
active: {
|
|
86
|
+
true: string;
|
|
87
|
+
false: string;
|
|
88
|
+
};
|
|
89
|
+
group: {
|
|
90
|
+
true: string;
|
|
91
|
+
false: string;
|
|
92
|
+
};
|
|
93
|
+
table: {
|
|
94
|
+
true: string;
|
|
95
|
+
false: string;
|
|
96
|
+
};
|
|
97
|
+
disabled: {
|
|
98
|
+
true: string;
|
|
99
|
+
false: string;
|
|
100
|
+
};
|
|
101
|
+
}, undefined, "flex items-center font-medium", {
|
|
102
|
+
size: {
|
|
103
|
+
default: string;
|
|
104
|
+
large: string;
|
|
105
|
+
};
|
|
106
|
+
active: {
|
|
107
|
+
true: string;
|
|
108
|
+
false: string;
|
|
109
|
+
};
|
|
110
|
+
group: {
|
|
111
|
+
true: string;
|
|
112
|
+
false: string;
|
|
113
|
+
};
|
|
114
|
+
table: {
|
|
115
|
+
true: string;
|
|
116
|
+
false: string;
|
|
117
|
+
};
|
|
118
|
+
disabled: {
|
|
119
|
+
true: string;
|
|
120
|
+
false: string;
|
|
121
|
+
};
|
|
122
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
123
|
+
size: {
|
|
124
|
+
default: string;
|
|
125
|
+
large: string;
|
|
126
|
+
};
|
|
127
|
+
active: {
|
|
128
|
+
true: string;
|
|
129
|
+
false: string;
|
|
130
|
+
};
|
|
131
|
+
group: {
|
|
132
|
+
true: string;
|
|
133
|
+
false: string;
|
|
134
|
+
};
|
|
135
|
+
table: {
|
|
136
|
+
true: string;
|
|
137
|
+
false: string;
|
|
138
|
+
};
|
|
139
|
+
disabled: {
|
|
140
|
+
true: string;
|
|
141
|
+
false: string;
|
|
142
|
+
};
|
|
143
|
+
}, undefined, "flex items-center font-medium", unknown, unknown, undefined>>;
|
|
3
144
|
export declare const paginationItem: import("tailwind-variants").TVReturnType<{
|
|
4
145
|
size: {
|
|
5
146
|
default: string;
|
|
@@ -52,7 +193,6 @@ export declare const paginationItem: import("tailwind-variants").TVReturnType<{
|
|
|
52
193
|
false: string;
|
|
53
194
|
};
|
|
54
195
|
}, undefined, "flex items-center font-medium", unknown, unknown, undefined>>;
|
|
55
|
-
export type PaginationVariants = VariantProps<typeof pagination>;
|
|
56
196
|
export declare const pagination: import("tailwind-variants").TVReturnType<{
|
|
57
197
|
table: {
|
|
58
198
|
true: string;
|
package/dist/pagination/theme.js
CHANGED
|
@@ -1,4 +1,66 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
|
+
export const paginationnav = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
base: "inline-flex -space-x-px rtl:space-x-reverse items-center",
|
|
5
|
+
tableDiv: "flex items-center text-sm mb-4",
|
|
6
|
+
tableSpan: "font-semibold mx-1",
|
|
7
|
+
prevItem: "rounded-none",
|
|
8
|
+
nextItem: "rounded-none"
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
size: {
|
|
12
|
+
default: "",
|
|
13
|
+
large: ""
|
|
14
|
+
},
|
|
15
|
+
layout: {
|
|
16
|
+
table: { prevItem: "rounded-s bg-gray-800 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 text-white hover:text-gray-200", nextItem: "text-white bg-gray-800 border-0 border-s border-gray-700 rounded-e hover:bg-gray-900 hover:text-gray-200 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white" },
|
|
17
|
+
navigation: { prevItem: "rounded-s-lg", nextItem: "rounded-e-lg" },
|
|
18
|
+
pagination: { prevItem: "rounded-s-lg", nextItem: "rounded-e-lg" }
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: {
|
|
22
|
+
table: false,
|
|
23
|
+
size: "default"
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export const paginationbutton = tv({
|
|
27
|
+
base: "flex items-center font-medium",
|
|
28
|
+
variants: {
|
|
29
|
+
size: {
|
|
30
|
+
default: "h-8 px-3 text-sm",
|
|
31
|
+
large: "h-10 px-4 text-base"
|
|
32
|
+
},
|
|
33
|
+
active: {
|
|
34
|
+
true: "text-blue-600 border border-gray-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white",
|
|
35
|
+
false: "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"
|
|
36
|
+
},
|
|
37
|
+
group: {
|
|
38
|
+
true: "",
|
|
39
|
+
false: "rounded-lg"
|
|
40
|
+
},
|
|
41
|
+
table: {
|
|
42
|
+
true: "rounded-sm",
|
|
43
|
+
false: "border"
|
|
44
|
+
},
|
|
45
|
+
disabled: {
|
|
46
|
+
true: "cursor-not-allowed opacity-50",
|
|
47
|
+
false: ""
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
compoundVariants: [
|
|
51
|
+
{
|
|
52
|
+
group: false,
|
|
53
|
+
table: false,
|
|
54
|
+
class: "rounded-lg"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
defaultVariants: {
|
|
58
|
+
size: "default",
|
|
59
|
+
active: false,
|
|
60
|
+
group: false,
|
|
61
|
+
table: false
|
|
62
|
+
}
|
|
63
|
+
});
|
|
2
64
|
export const paginationItem = tv({
|
|
3
65
|
base: "flex items-center font-medium",
|
|
4
66
|
variants: {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@component
|
|
27
27
|
[Go to docs](https://flowbite-svelte.com/)
|
|
28
28
|
## Type
|
|
29
|
-
[PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
29
|
+
[PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1134)
|
|
30
30
|
## Props
|
|
31
31
|
@prop title: titleSlot
|
|
32
32
|
@prop color = "default"
|
|
@@ -2,7 +2,7 @@ import type { PopoverProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1134)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop title: titleSlot
|
|
8
8
|
* @prop color = "default"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
@component
|
|
44
44
|
[Go to docs](https://flowbite-svelte.com/)
|
|
45
45
|
## Type
|
|
46
|
-
[ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
46
|
+
[ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1144)
|
|
47
47
|
## Props
|
|
48
48
|
@prop progress = "45"
|
|
49
49
|
@prop precision = 0
|
|
@@ -2,7 +2,7 @@ import type { ProgressbarProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1144)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop progress = "45"
|
|
8
8
|
* @prop precision = 0
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
@component
|
|
63
63
|
[Go to docs](https://flowbite-svelte.com/)
|
|
64
64
|
## Type
|
|
65
|
-
[ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
65
|
+
[ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1161)
|
|
66
66
|
## Props
|
|
67
67
|
@prop progress = 45
|
|
68
68
|
@prop radius = 42
|
|
@@ -2,7 +2,7 @@ import type { ProgressradialProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1161)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop progress = 45
|
|
8
8
|
* @prop radius = 42
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
@component
|
|
28
28
|
[Go to docs](https://flowbite-svelte.com/)
|
|
29
29
|
## Type
|
|
30
|
-
[AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
30
|
+
[AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1185)
|
|
31
31
|
## Props
|
|
32
32
|
@prop rating
|
|
33
33
|
@prop globalText
|
|
@@ -2,7 +2,7 @@ import type { AdvancedRatingProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1185)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop rating
|
|
8
8
|
* @prop globalText
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
@component
|
|
29
29
|
[Go to docs](https://flowbite-svelte.com/)
|
|
30
30
|
## Type
|
|
31
|
-
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
31
|
+
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1271)
|
|
32
32
|
## Props
|
|
33
33
|
@prop fillPercent = 100
|
|
34
34
|
@prop fillColor = "#00ff00"
|
|
@@ -2,7 +2,7 @@ import type { RatingIconProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1271)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop fillPercent = 100
|
|
8
8
|
* @prop fillColor = "#00ff00"
|
package/dist/rating/Heart.svelte
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
@component
|
|
28
28
|
[Go to docs](https://flowbite-svelte.com/)
|
|
29
29
|
## Type
|
|
30
|
-
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
30
|
+
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1271)
|
|
31
31
|
## Props
|
|
32
32
|
@prop fillPercent = 100
|
|
33
33
|
@prop fillColor = "#ff0000"
|
|
@@ -2,7 +2,7 @@ import type { RatingIconProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1271)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop fillPercent = 100
|
|
8
8
|
* @prop fillColor = "#ff0000"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
@component
|
|
42
42
|
[Go to docs](https://flowbite-svelte.com/)
|
|
43
43
|
## Type
|
|
44
|
-
[RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
44
|
+
[RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1197)
|
|
45
45
|
## Props
|
|
46
46
|
@prop children
|
|
47
47
|
@prop text
|
|
@@ -2,7 +2,7 @@ import type { RatingProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1197)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop text
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
@component
|
|
64
64
|
[Go to docs](https://flowbite-svelte.com/)
|
|
65
65
|
## Type
|
|
66
|
-
[RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
66
|
+
[RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1208)
|
|
67
67
|
## Props
|
|
68
68
|
@prop children
|
|
69
69
|
@prop evaluation
|
|
@@ -2,7 +2,7 @@ import type { RatingCommentProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1208)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop evaluation
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
@component
|
|
79
79
|
[Go to docs](https://flowbite-svelte.com/)
|
|
80
80
|
## Type
|
|
81
|
-
[ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
81
|
+
[ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1244)
|
|
82
82
|
## Props
|
|
83
83
|
@prop children
|
|
84
84
|
@prop address
|