flowbite-svelte 1.2.7 → 1.3.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.
Files changed (144) hide show
  1. package/dist/pagination/Pagination.svelte +1 -1
  2. package/dist/pagination/Pagination.svelte.d.ts +1 -1
  3. package/dist/pagination/PaginationButton.svelte +60 -0
  4. package/dist/pagination/PaginationButton.svelte.d.ts +18 -0
  5. package/dist/pagination/PaginationItem.svelte +1 -1
  6. package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
  7. package/dist/pagination/PaginationNav.svelte +119 -0
  8. package/dist/pagination/PaginationNav.svelte.d.ts +27 -0
  9. package/dist/pagination/index.d.ts +5 -4
  10. package/dist/pagination/index.js +5 -4
  11. package/dist/pagination/theme.d.ts +141 -1
  12. package/dist/pagination/theme.js +62 -0
  13. package/dist/popover/Popover.svelte +1 -1
  14. package/dist/popover/Popover.svelte.d.ts +1 -1
  15. package/dist/progress/Progressbar.svelte +1 -1
  16. package/dist/progress/Progressbar.svelte.d.ts +1 -1
  17. package/dist/progress/Progressradial.svelte +1 -1
  18. package/dist/progress/Progressradial.svelte.d.ts +1 -1
  19. package/dist/rating/AdvancedRating.svelte +1 -1
  20. package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
  21. package/dist/rating/CustomIcon.svelte +1 -1
  22. package/dist/rating/CustomIcon.svelte.d.ts +1 -1
  23. package/dist/rating/Heart.svelte +1 -1
  24. package/dist/rating/Heart.svelte.d.ts +1 -1
  25. package/dist/rating/Rating.svelte +1 -1
  26. package/dist/rating/Rating.svelte.d.ts +1 -1
  27. package/dist/rating/RatingComment.svelte +1 -1
  28. package/dist/rating/RatingComment.svelte.d.ts +1 -1
  29. package/dist/rating/Review.svelte +1 -1
  30. package/dist/rating/Review.svelte.d.ts +1 -1
  31. package/dist/rating/ScoreRating.svelte +1 -1
  32. package/dist/rating/ScoreRating.svelte.d.ts +1 -1
  33. package/dist/rating/Star.svelte +1 -1
  34. package/dist/rating/Star.svelte.d.ts +1 -1
  35. package/dist/rating/Thumbup.svelte +1 -1
  36. package/dist/rating/Thumbup.svelte.d.ts +1 -1
  37. package/dist/sidebar/Sidebar.svelte +1 -1
  38. package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
  39. package/dist/sidebar/SidebarBrand.svelte +1 -1
  40. package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
  41. package/dist/sidebar/SidebarButton.svelte +1 -1
  42. package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
  43. package/dist/sidebar/SidebarCta.svelte +1 -1
  44. package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
  45. package/dist/sidebar/SidebarDropdownWrapper.svelte +1 -1
  46. package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
  47. package/dist/sidebar/SidebarGroup.svelte +1 -1
  48. package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
  49. package/dist/sidebar/SidebarItem.svelte +1 -1
  50. package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
  51. package/dist/skeleton/CardPlaceholder.svelte +1 -1
  52. package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
  53. package/dist/skeleton/ImagePlaceholder.svelte +1 -1
  54. package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
  55. package/dist/skeleton/ListPlaceholder.svelte +1 -1
  56. package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
  57. package/dist/skeleton/Skeleton.svelte +1 -1
  58. package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
  59. package/dist/skeleton/TextPlaceholder.svelte +1 -1
  60. package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
  61. package/dist/skeleton/VideoPlaceholder.svelte +1 -1
  62. package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
  63. package/dist/speed-dial/SpeedDial.svelte +1 -1
  64. package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
  65. package/dist/speed-dial/SpeedDialButton.svelte +1 -1
  66. package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
  67. package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
  68. package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
  69. package/dist/spinner/Spinner.svelte +1 -1
  70. package/dist/spinner/Spinner.svelte.d.ts +1 -1
  71. package/dist/stepindicator/StepIndicator.svelte +1 -1
  72. package/dist/stepindicator/StepIndicator.svelte.d.ts +1 -1
  73. package/dist/table/Table.svelte +1 -1
  74. package/dist/table/Table.svelte.d.ts +1 -1
  75. package/dist/table/TableBody.svelte +1 -1
  76. package/dist/table/TableBody.svelte.d.ts +1 -1
  77. package/dist/table/TableBodyCell.svelte +1 -1
  78. package/dist/table/TableBodyCell.svelte.d.ts +1 -1
  79. package/dist/table/TableBodyRow.svelte +1 -1
  80. package/dist/table/TableBodyRow.svelte.d.ts +1 -1
  81. package/dist/table/TableHead.svelte +1 -1
  82. package/dist/table/TableHead.svelte.d.ts +1 -1
  83. package/dist/table/TableHeadCell.svelte +1 -1
  84. package/dist/table/TableHeadCell.svelte.d.ts +1 -1
  85. package/dist/table/TableSearch.svelte +1 -1
  86. package/dist/table/TableSearch.svelte.d.ts +1 -1
  87. package/dist/tabs/TabItem.svelte +1 -1
  88. package/dist/tabs/TabItem.svelte.d.ts +1 -1
  89. package/dist/tabs/Tabs.svelte +1 -1
  90. package/dist/tabs/Tabs.svelte.d.ts +1 -1
  91. package/dist/theme/Theme.svelte +2 -2
  92. package/dist/theme/Theme.svelte.d.ts +2 -2
  93. package/dist/timeline/Activity.svelte +1 -1
  94. package/dist/timeline/Activity.svelte.d.ts +1 -1
  95. package/dist/timeline/ActivityItem.svelte +1 -1
  96. package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
  97. package/dist/timeline/Group.svelte +1 -1
  98. package/dist/timeline/Group.svelte.d.ts +1 -1
  99. package/dist/timeline/GroupItem.svelte +1 -1
  100. package/dist/timeline/GroupItem.svelte.d.ts +1 -1
  101. package/dist/timeline/Timeline.svelte +1 -1
  102. package/dist/timeline/Timeline.svelte.d.ts +1 -1
  103. package/dist/timeline/TimelineItem.svelte +1 -1
  104. package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
  105. package/dist/toast/Toast.svelte +1 -1
  106. package/dist/toast/Toast.svelte.d.ts +1 -1
  107. package/dist/tooltip/Tooltip.svelte +1 -1
  108. package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
  109. package/dist/types.d.ts +24 -0
  110. package/dist/typography/anchor/A.svelte +1 -1
  111. package/dist/typography/anchor/A.svelte.d.ts +1 -1
  112. package/dist/typography/blockquote/Blockquote.svelte +1 -1
  113. package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
  114. package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
  115. package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
  116. package/dist/typography/heading/Heading.svelte +1 -1
  117. package/dist/typography/heading/Heading.svelte.d.ts +1 -1
  118. package/dist/typography/hr/Hr.svelte +1 -1
  119. package/dist/typography/hr/Hr.svelte.d.ts +1 -1
  120. package/dist/typography/img/EnhancedImg.svelte +1 -1
  121. package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
  122. package/dist/typography/img/Img.svelte +1 -1
  123. package/dist/typography/img/Img.svelte.d.ts +1 -1
  124. package/dist/typography/layout/Layout.svelte +1 -1
  125. package/dist/typography/layout/Layout.svelte.d.ts +1 -1
  126. package/dist/typography/list/Li.svelte +1 -1
  127. package/dist/typography/list/Li.svelte.d.ts +1 -1
  128. package/dist/typography/list/List.svelte +1 -1
  129. package/dist/typography/list/List.svelte.d.ts +1 -1
  130. package/dist/typography/mark/Mark.svelte +1 -1
  131. package/dist/typography/mark/Mark.svelte.d.ts +1 -1
  132. package/dist/typography/paragraph/P.svelte +1 -1
  133. package/dist/typography/paragraph/P.svelte.d.ts +1 -1
  134. package/dist/typography/secondary/Secondary.svelte +1 -1
  135. package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
  136. package/dist/typography/span/Span.svelte +1 -1
  137. package/dist/typography/span/Span.svelte.d.ts +1 -1
  138. package/dist/utils/Arrow.svelte +1 -1
  139. package/dist/utils/Arrow.svelte.d.ts +1 -1
  140. package/dist/utils/Popper.svelte +1 -1
  141. package/dist/utils/Popper.svelte.d.ts +1 -1
  142. package/dist/video/Video.svelte +1 -1
  143. package/dist/video/Video.svelte.d.ts +1 -1
  144. 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#L1099)
53
+ [PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1125)
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#L1099)
5
+ * [PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1125)
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#L1095)
32
+ [PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1121)
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#L1095)
5
+ * [PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1121)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop size
@@ -0,0 +1,119 @@
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 {
11
+ currentPage = 1,
12
+ totalPages = 1,
13
+ visiblePages = 5, // New prop to control visible pages
14
+ onPageChange,
15
+ prevContent,
16
+ nextContent,
17
+ prevClass,
18
+ nextClass,
19
+ layout = "pagination",
20
+ nextLabel = "Next",
21
+ previousLabel = "Previous",
22
+ ariaLabel = "Page navigation",
23
+ size = "default",
24
+ class: className,
25
+ spanClass,
26
+ tableDivClass,
27
+ ...restProps
28
+ }: PaginationNavProps = $props();
29
+
30
+ // Set context values for child components
31
+ setContext("group", true);
32
+ setContext("size", size);
33
+ setContext("table", layout === "table");
34
+
35
+ // Calculate visible pages range using Svelte 5 derived values
36
+ const halfVisiblePages = $derived(Math.floor(visiblePages / 2));
37
+ const lastPage = $derived(Math.min(Math.max(layout === "pagination" ? currentPage + halfVisiblePages : currentPage + halfVisiblePages * 2, visiblePages), totalPages));
38
+ const firstPage = $derived(Math.max(1, lastPage - visiblePages + 1));
39
+
40
+ // Generate array of page numbers to display
41
+ const pageNumbers = $derived(paginationRange(firstPage, lastPage));
42
+
43
+ // Navigation helper functions
44
+ function goToNextPage() {
45
+ onPageChange(Math.min(currentPage + 1, totalPages));
46
+ }
47
+
48
+ function goToPreviousPage() {
49
+ onPageChange(Math.max(currentPage - 1, 1));
50
+ }
51
+
52
+ const { base, tableDiv, tableSpan, prevItem, nextItem } = $derived(paginationnav({ layout }));
53
+ </script>
54
+
55
+ <nav aria-label={ariaLabel} {...restProps}>
56
+ {#if layout === "table"}
57
+ <div class={tableDiv({ class: tableDivClass })}>
58
+ Showing <span class={tableSpan({ class: spanClass })}>{currentPage}</span>
59
+ of
60
+ <span class={tableSpan({ class: spanClass })}>{totalPages}</span>
61
+ Entries
62
+ </div>
63
+ {/if}
64
+
65
+ <ul class={base({ class: className })}>
66
+ <li {...restProps}>
67
+ <PaginationButton onclick={goToPreviousPage} disabled={currentPage === 1} class={prevItem({ class: prevClass })}>
68
+ {#if prevContent}
69
+ {@render prevContent()}
70
+ {:else}
71
+ {previousLabel}
72
+ {/if}
73
+ </PaginationButton>
74
+ </li>
75
+ {#if layout === "pagination" && pageNumbers.length > 0}
76
+ {#each pageNumbers as page}
77
+ <li aria-current={page === currentPage ? "page" : undefined}>
78
+ <PaginationButton active={page === currentPage} onclick={() => onPageChange(page)}>
79
+ {page}
80
+ </PaginationButton>
81
+ </li>
82
+ {/each}
83
+ {/if}
84
+ <li {...restProps}>
85
+ <PaginationButton onclick={goToNextPage} disabled={currentPage === totalPages} class={nextItem({ class: nextClass })}>
86
+ {#if nextContent}
87
+ {@render nextContent()}
88
+ {:else}
89
+ {nextLabel}
90
+ {/if}
91
+ </PaginationButton>
92
+ </li>
93
+ </ul>
94
+ </nav>
95
+
96
+ <!--
97
+ @component
98
+ [Go to docs](https://flowbite-svelte.com/)
99
+ ## Type
100
+ [PaginationNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1101)
101
+ ## Props
102
+ @prop currentPage = 1
103
+ @prop totalPages = 1
104
+ @prop visiblePages = 5
105
+ @prop onPageChange
106
+ @prop prevContent
107
+ @prop nextContent
108
+ @prop prevClass
109
+ @prop nextClass
110
+ @prop layout = "pagination"
111
+ @prop nextLabel = "Next"
112
+ @prop previousLabel = "Previous"
113
+ @prop ariaLabel = "Page navigation"
114
+ @prop size = "default"
115
+ @prop class: className
116
+ @prop spanClass
117
+ @prop tableDivClass
118
+ @prop ...restProps
119
+ -->
@@ -0,0 +1,27 @@
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 visiblePages = 5
10
+ * @prop onPageChange
11
+ * @prop prevContent
12
+ * @prop nextContent
13
+ * @prop prevClass
14
+ * @prop nextClass
15
+ * @prop layout = "pagination"
16
+ * @prop nextLabel = "Next"
17
+ * @prop previousLabel = "Previous"
18
+ * @prop ariaLabel = "Page navigation"
19
+ * @prop size = "default"
20
+ * @prop class: className
21
+ * @prop spanClass
22
+ * @prop tableDivClass
23
+ * @prop ...restProps
24
+ */
25
+ declare const PaginationNav: import("svelte").Component<PaginationNavProps, {}, "">;
26
+ type PaginationNav = ReturnType<typeof PaginationNav>;
27
+ export default PaginationNav;
@@ -1,4 +1,5 @@
1
- import { paginationItem, pagination } from "./theme";
2
- import Pagination from "./Pagination.svelte";
3
- import PaginationItem from "./PaginationItem.svelte";
4
- export { Pagination, PaginationItem, paginationItem, 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,4 +1,5 @@
1
- import { paginationItem, pagination } from "./theme";
2
- import Pagination from "./Pagination.svelte";
3
- import PaginationItem from "./PaginationItem.svelte";
4
- export { Pagination, PaginationItem, paginationItem, 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;
@@ -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#L1109)
29
+ [PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1135)
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#L1109)
5
+ * [PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1135)
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#L1119)
46
+ [ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1145)
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#L1119)
5
+ * [ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1145)
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#L1136)
65
+ [ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1162)
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#L1136)
5
+ * [ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1162)
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#L1160)
30
+ [AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1186)
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#L1160)
5
+ * [AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1186)
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#L1246)
31
+ [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1272)
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#L1246)
5
+ * [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1272)
6
6
  * ## Props
7
7
  * @prop fillPercent = 100
8
8
  * @prop fillColor = "#00ff00"
@@ -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#L1246)
30
+ [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1272)
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#L1246)
5
+ * [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1272)
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#L1172)
44
+ [RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1198)
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#L1172)
5
+ * [RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1198)
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#L1183)
66
+ [RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1209)
67
67
  ## Props
68
68
  @prop children
69
69
  @prop evaluation