flowbite-svelte 1.13.8 → 1.13.10
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/forms/input-field/Input.svelte +13 -25
- package/dist/forms/input-field/theme.d.ts +0 -3
- package/dist/forms/input-field/theme.js +1 -2
- package/dist/forms/tags/theme.js +2 -2
- package/dist/pagination/Pagination.svelte +1 -1
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +18 -5
- package/dist/pagination/PaginationItem.svelte +1 -1
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +3 -0
- package/dist/pagination/theme.d.ts +3 -0
- package/dist/pagination/theme.js +4 -3
- 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/TestimonialPlaceholder.svelte +1 -1
- package/dist/skeleton/TestimonialPlaceholder.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/skeleton/WidgetPlaceholder.svelte +1 -1
- package/dist/skeleton/WidgetPlaceholder.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/step-indicator/StepIndicator.svelte +1 -1
- package/dist/step-indicator/StepIndicator.svelte.d.ts +1 -1
- package/dist/stepper/BreadcrumbStepper.svelte +1 -1
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/DetailedStepper.svelte +1 -1
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +1 -1
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +1 -1
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +1 -1
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +1 -1
- package/dist/stepper/VerticalStepper.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 +3 -2
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +5 -1
- package/dist/tabs/Tabs.svelte.d.ts +1 -1
- 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 +7 -0
- package/dist/typography/a/A.svelte +1 -1
- package/dist/typography/a/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/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/utils/singleselection.svelte.d.ts +1 -1
- package/dist/utils/singleselection.svelte.js +6 -13
- package/dist/video/Video.svelte +1 -1
- package/dist/video/Video.svelte.d.ts +1 -1
- package/package.json +21 -22
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// input, left, right, close, combo, comboItem, div, svg
|
|
12
12
|
warnThemeDeprecation("Input", { wrapperClass, leftClass, rightClass, divClass, clearableSvgClass, clearableClass, comboClass }, { wrapperClass: "wrapper", leftClass: "left", rightClass: "right", divClass: "div", clearableSvgClass: "svg", clearableClass: "close", comboClass: "comboItem" });
|
|
13
13
|
|
|
14
|
-
const styling = $derived(classes ?? {
|
|
14
|
+
const styling = $derived(classes ?? { left: leftClass, right: rightClass, div: divClass, svg: clearableSvgClass, close: clearableClass, combo: comboClass, comboItem: comboItemClass });
|
|
15
15
|
|
|
16
16
|
const theme = getTheme("input");
|
|
17
17
|
|
|
@@ -216,19 +216,23 @@
|
|
|
216
216
|
<div tabindex="-1" bind:this={dummyFocusDiv} class="sr-only"></div>
|
|
217
217
|
{/if}
|
|
218
218
|
|
|
219
|
-
{#if isCombobox}
|
|
220
|
-
<div class={
|
|
221
|
-
{#if
|
|
222
|
-
<div class={
|
|
223
|
-
{@render
|
|
219
|
+
{#if isCombobox || right || left || clearable}
|
|
220
|
+
<div class={base({ class: clsx(theme?.base, styling.div) })}>
|
|
221
|
+
{#if left}
|
|
222
|
+
<div class={leftCls({ class: clsx(theme?.left, styling.left) })}>
|
|
223
|
+
{@render left()}
|
|
224
|
+
</div>
|
|
225
|
+
{/if}
|
|
226
|
+
{@render inputContent()}
|
|
227
|
+
{#if right}
|
|
228
|
+
<div class={rightCls({ class: clsx(theme?.right, styling.right) })}>
|
|
229
|
+
{@render right()}
|
|
224
230
|
</div>
|
|
225
|
-
{:else}
|
|
226
|
-
{@render inputContent()}
|
|
227
231
|
{/if}
|
|
228
232
|
|
|
229
233
|
{#if isCombobox && isFocused && filteredSuggestions.length > 0}
|
|
230
234
|
<div class={combo({ class: clsx(theme?.combo, styling.combo) })}>
|
|
231
|
-
{#each filteredSuggestions as item, i}
|
|
235
|
+
{#each filteredSuggestions as item, i (item)}
|
|
232
236
|
<button type="button" class="w-full px-3 py-2 text-left {i === selectedIndex ? 'bg-gray-100 dark:bg-gray-700' : 'hover:bg-gray-50 dark:hover:bg-gray-700'} focus:outline-none" onclick={() => selectItem(item)} onmouseenter={() => (selectedIndex = i)}>
|
|
233
237
|
<p class={comboItem({ class: clsx(theme?.comboItem, styling.comboItem) })}>{item}</p>
|
|
234
238
|
</button>
|
|
@@ -236,22 +240,11 @@
|
|
|
236
240
|
</div>
|
|
237
241
|
{/if}
|
|
238
242
|
</div>
|
|
239
|
-
{:else if group}
|
|
240
|
-
{@render inputContent()}
|
|
241
|
-
{:else if right || left || clearable}
|
|
242
|
-
<div class={base({ class: clsx(theme?.base, styling.div) })}>
|
|
243
|
-
{@render inputContent()}
|
|
244
|
-
</div>
|
|
245
243
|
{:else}
|
|
246
244
|
{@render inputContent()}
|
|
247
245
|
{/if}
|
|
248
246
|
|
|
249
247
|
{#snippet inputContent()}
|
|
250
|
-
{#if left}
|
|
251
|
-
<div class={leftCls({ class: clsx(theme?.left, styling.left) })}>
|
|
252
|
-
{@render left()}
|
|
253
|
-
</div>
|
|
254
|
-
{/if}
|
|
255
248
|
{#if children}
|
|
256
249
|
{@render children({ ...restProps, class: inputCls() })}
|
|
257
250
|
{:else}
|
|
@@ -260,9 +253,4 @@
|
|
|
260
253
|
<CloseButton class={close({ class: clsx(theme?.close, styling.close) })} color={clearableColor} aria-label="Clear search value" svgClass={clsx(styling.svg)} />
|
|
261
254
|
{/if}
|
|
262
255
|
{/if}
|
|
263
|
-
{#if right}
|
|
264
|
-
<div class={rightCls({ class: clsx(theme?.right, styling.right) })}>
|
|
265
|
-
{@render right()}
|
|
266
|
-
</div>
|
|
267
|
-
{/if}
|
|
268
256
|
{/snippet}
|
|
@@ -99,7 +99,6 @@ export declare const input: import("tailwind-variants").TVReturnType<{
|
|
|
99
99
|
comboItem: string;
|
|
100
100
|
div: string;
|
|
101
101
|
svg: string;
|
|
102
|
-
wrapper: string;
|
|
103
102
|
}, undefined, {
|
|
104
103
|
size: {
|
|
105
104
|
sm: {
|
|
@@ -198,7 +197,6 @@ export declare const input: import("tailwind-variants").TVReturnType<{
|
|
|
198
197
|
comboItem: string;
|
|
199
198
|
div: string;
|
|
200
199
|
svg: string;
|
|
201
|
-
wrapper: string;
|
|
202
200
|
}, import("tailwind-variants").TVReturnType<{
|
|
203
201
|
size: {
|
|
204
202
|
sm: {
|
|
@@ -297,5 +295,4 @@ export declare const input: import("tailwind-variants").TVReturnType<{
|
|
|
297
295
|
comboItem: string;
|
|
298
296
|
div: string;
|
|
299
297
|
svg: string;
|
|
300
|
-
wrapper: string;
|
|
301
298
|
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -9,8 +9,7 @@ export const input = tv({
|
|
|
9
9
|
combo: "absolute top-full right-0 left-0 z-20 mt-1 max-h-60 overflow-y-auto rounded-md border border-gray-200 bg-white shadow-lg dark:border-gray-700 dark:bg-gray-800",
|
|
10
10
|
comboItem: "text-gray-900 dark:text-gray-50",
|
|
11
11
|
div: "",
|
|
12
|
-
svg: ""
|
|
13
|
-
wrapper: ""
|
|
12
|
+
svg: ""
|
|
14
13
|
},
|
|
15
14
|
variants: {
|
|
16
15
|
size: {
|
package/dist/forms/tags/theme.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const tags = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: "border
|
|
4
|
+
base: "border border-gray-300 dark:border-gray-600 rounded-lg flex focus-within:ring-primary-500 focus-within:ring-1 focus-within:border-primary-500 scrollbar-hidden bg-gray-50 dark:bg-gray-700",
|
|
5
5
|
tag: "flex items-center rounded-lg bg-gray-100 text-gray-900 border border-gray-300 my-1 ml-1 px-2 text-sm max-w-full min-w-fit",
|
|
6
6
|
span: "items-center",
|
|
7
7
|
close: "my-auto ml-1",
|
|
8
|
-
input: "block text-sm m-2.5 p-0 bg-transparent border-none outline-none text-gray-900 h-min w-full min-w-fit focus:ring-0 placeholder-gray-400",
|
|
8
|
+
input: "block text-sm m-2.5 p-0 bg-transparent border-none outline-none text-gray-900 h-min w-full min-w-fit focus:ring-0 placeholder-gray-400 dark:text-white",
|
|
9
9
|
info: "mt-1 text-sm text-blue-500 dark:text-blue-400",
|
|
10
10
|
warning: "mt-1 text-sm text-yellow-400 dark:text-yellow-300",
|
|
11
11
|
error: "mt-1 text-sm text-red-500 dark:text-red-400"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
@component
|
|
55
55
|
[Go to docs](https://flowbite-svelte.com/)
|
|
56
56
|
## Type
|
|
57
|
-
[PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
57
|
+
[PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1192)
|
|
58
58
|
## Props
|
|
59
59
|
@prop pages = []
|
|
60
60
|
@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#L1192)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop pages = []
|
|
8
8
|
* @prop previous
|
|
@@ -11,17 +11,30 @@
|
|
|
11
11
|
|
|
12
12
|
const group = getContext<boolean>("group");
|
|
13
13
|
const table = getContext<boolean>("table");
|
|
14
|
+
const activeClasses = getContext<string>("activeClasses");
|
|
14
15
|
|
|
15
|
-
const paginationCls = $derived(
|
|
16
|
-
|
|
16
|
+
const paginationCls = $derived.by(() => {
|
|
17
|
+
if (active && activeClasses) {
|
|
18
|
+
return paginationButton({
|
|
19
|
+
size: getContext("size") ?? size,
|
|
20
|
+
active: false, // Set to false to avoid theme's active styles
|
|
21
|
+
group,
|
|
22
|
+
table,
|
|
23
|
+
disabled,
|
|
24
|
+
class: clsx(theme, activeClasses, className)
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Use default theme styles
|
|
29
|
+
return paginationButton({
|
|
17
30
|
size: getContext("size") ?? size,
|
|
18
|
-
active,
|
|
31
|
+
active: active,
|
|
19
32
|
group,
|
|
20
33
|
table,
|
|
21
34
|
disabled,
|
|
22
35
|
class: clsx(theme, className)
|
|
23
|
-
})
|
|
24
|
-
);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
25
38
|
|
|
26
39
|
function handleClick(e: MouseEvent) {
|
|
27
40
|
if (disabled) {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@component
|
|
33
33
|
[Go to docs](https://flowbite-svelte.com/)
|
|
34
34
|
## Type
|
|
35
|
-
[PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
35
|
+
[PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1188)
|
|
36
36
|
## Props
|
|
37
37
|
@prop children
|
|
38
38
|
@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#L1188)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop size
|
|
@@ -39,6 +39,9 @@
|
|
|
39
39
|
setContext("group", true);
|
|
40
40
|
setContext("size", size);
|
|
41
41
|
setContext("table", layout === "table");
|
|
42
|
+
if (classes?.active) {
|
|
43
|
+
setContext("activeClasses", classes.active);
|
|
44
|
+
}
|
|
42
45
|
|
|
43
46
|
// Calculate visible pages range using Svelte 5 derived values
|
|
44
47
|
const halfVisiblePages = $derived(Math.floor(visiblePages / 2));
|
|
@@ -28,6 +28,7 @@ export declare const paginationNav: import("tailwind-variants").TVReturnType<{
|
|
|
28
28
|
span: string;
|
|
29
29
|
prev: string;
|
|
30
30
|
next: string;
|
|
31
|
+
active: string;
|
|
31
32
|
}, undefined, {
|
|
32
33
|
size: {
|
|
33
34
|
default: string;
|
|
@@ -53,6 +54,7 @@ export declare const paginationNav: import("tailwind-variants").TVReturnType<{
|
|
|
53
54
|
span: string;
|
|
54
55
|
prev: string;
|
|
55
56
|
next: string;
|
|
57
|
+
active: string;
|
|
56
58
|
}, import("tailwind-variants").TVReturnType<{
|
|
57
59
|
size: {
|
|
58
60
|
default: string;
|
|
@@ -78,6 +80,7 @@ export declare const paginationNav: import("tailwind-variants").TVReturnType<{
|
|
|
78
80
|
span: string;
|
|
79
81
|
prev: string;
|
|
80
82
|
next: string;
|
|
83
|
+
active: string;
|
|
81
84
|
}, undefined, unknown, unknown, undefined>>;
|
|
82
85
|
export declare const paginationButton: import("tailwind-variants").TVReturnType<{
|
|
83
86
|
size: {
|
package/dist/pagination/theme.js
CHANGED
|
@@ -5,7 +5,8 @@ export const paginationNav = tv({
|
|
|
5
5
|
tableDiv: "flex items-center text-sm mb-4",
|
|
6
6
|
span: "font-semibold mx-1",
|
|
7
7
|
prev: "rounded-none",
|
|
8
|
-
next: "rounded-none"
|
|
8
|
+
next: "rounded-none",
|
|
9
|
+
active: ""
|
|
9
10
|
},
|
|
10
11
|
variants: {
|
|
11
12
|
size: {
|
|
@@ -31,7 +32,7 @@ export const paginationButton = tv({
|
|
|
31
32
|
large: "h-10 px-4 text-base"
|
|
32
33
|
},
|
|
33
34
|
active: {
|
|
34
|
-
true: "text-
|
|
35
|
+
true: "text-primary-600 border border-gray-300 bg-primary-50 hover:bg-primary-100 hover:text-primary-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white",
|
|
35
36
|
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
|
},
|
|
37
38
|
group: {
|
|
@@ -69,7 +70,7 @@ export const paginationItem = tv({
|
|
|
69
70
|
large: "h-10 px-4 text-base"
|
|
70
71
|
},
|
|
71
72
|
active: {
|
|
72
|
-
true: "text-
|
|
73
|
+
true: "text-primary-600 border border-gray-300 bg-primary-50 hover:bg-primary-100 hover:text-primary-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white",
|
|
73
74
|
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"
|
|
74
75
|
},
|
|
75
76
|
group: {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
@component
|
|
34
34
|
[Go to docs](https://flowbite-svelte.com/)
|
|
35
35
|
## Type
|
|
36
|
-
[PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
36
|
+
[PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1202)
|
|
37
37
|
## Props
|
|
38
38
|
@prop title: titleSlot
|
|
39
39
|
@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#L1202)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop title: titleSlot
|
|
8
8
|
* @prop color = "default"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
@component
|
|
54
54
|
[Go to docs](https://flowbite-svelte.com/)
|
|
55
55
|
## Type
|
|
56
|
-
[ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
56
|
+
[ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1212)
|
|
57
57
|
## Props
|
|
58
58
|
@prop progress = "45"
|
|
59
59
|
@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#L1212)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop progress = "45"
|
|
8
8
|
* @prop precision = 0
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
@component
|
|
66
66
|
[Go to docs](https://flowbite-svelte.com/)
|
|
67
67
|
## Type
|
|
68
|
-
[ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
68
|
+
[ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1223)
|
|
69
69
|
## Props
|
|
70
70
|
@prop progress = 45
|
|
71
71
|
@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#L1223)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop progress = 45
|
|
8
8
|
* @prop radius = 42
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
@component
|
|
42
42
|
[Go to docs](https://flowbite-svelte.com/)
|
|
43
43
|
## Type
|
|
44
|
-
[AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
44
|
+
[AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1240)
|
|
45
45
|
## Props
|
|
46
46
|
@prop rating
|
|
47
47
|
@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#L1240)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop rating
|
|
8
8
|
* @prop globalText
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
@component
|
|
30
30
|
[Go to docs](https://flowbite-svelte.com/)
|
|
31
31
|
## Type
|
|
32
|
-
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
32
|
+
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1326)
|
|
33
33
|
## Props
|
|
34
34
|
@prop fillPercent = 100
|
|
35
35
|
@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#L1326)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop fillPercent = 100
|
|
8
8
|
* @prop fillColor = "#00ff00"
|
package/dist/rating/Heart.svelte
CHANGED
|
@@ -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#L1326)
|
|
32
32
|
## Props
|
|
33
33
|
@prop fillPercent = 100
|
|
34
34
|
@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#L1326)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop fillPercent = 100
|
|
8
8
|
* @prop fillColor = "#ff0000"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
@component
|
|
48
48
|
[Go to docs](https://flowbite-svelte.com/)
|
|
49
49
|
## Type
|
|
50
|
-
[RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
50
|
+
[RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1252)
|
|
51
51
|
## Props
|
|
52
52
|
@prop children
|
|
53
53
|
@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#L1252)
|
|
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#L1263)
|
|
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#L1263)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop evaluation
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
@component
|
|
95
95
|
[Go to docs](https://flowbite-svelte.com/)
|
|
96
96
|
## Type
|
|
97
|
-
[ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
97
|
+
[ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1299)
|
|
98
98
|
## Props
|
|
99
99
|
@prop children
|
|
100
100
|
@prop address
|
|
@@ -2,7 +2,7 @@ import type { ReviewProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1299)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop address
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
@component
|
|
70
70
|
[Go to docs](https://flowbite-svelte.com/)
|
|
71
71
|
## Type
|
|
72
|
-
[ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
72
|
+
[ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1315)
|
|
73
73
|
## Props
|
|
74
74
|
@prop ratings
|
|
75
75
|
@prop ratings2
|
|
@@ -2,7 +2,7 @@ import type { ScoreRatingProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1315)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop ratings
|
|
8
8
|
* @prop ratings2
|
package/dist/rating/Star.svelte
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
@component
|
|
36
36
|
[Go to docs](https://flowbite-svelte.com/)
|
|
37
37
|
## Type
|
|
38
|
-
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
38
|
+
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1326)
|
|
39
39
|
## Props
|
|
40
40
|
@prop fillPercent = 100
|
|
41
41
|
@prop fillColor = "#F5CA14"
|
|
@@ -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#L1326)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop fillPercent = 100
|
|
8
8
|
* @prop fillColor = "#F5CA14"
|
|
@@ -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#L1326)
|
|
32
32
|
## Props
|
|
33
33
|
@prop fillPercent = 100
|
|
34
34
|
@prop fillColor = "#00b500"
|
|
@@ -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#L1326)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop fillPercent = 100
|
|
8
8
|
* @prop fillColor = "#00b500"
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
@component
|
|
99
99
|
[Go to docs](https://flowbite-svelte.com/)
|
|
100
100
|
## Type
|
|
101
|
-
[SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
101
|
+
[SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1349)
|
|
102
102
|
## Props
|
|
103
103
|
@prop children
|
|
104
104
|
@prop isOpen = false
|
|
@@ -2,7 +2,7 @@ import { type SidebarProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1349)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop isOpen = false
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@component
|
|
33
33
|
[Go to docs](https://flowbite-svelte.com/)
|
|
34
34
|
## Type
|
|
35
|
-
[SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
35
|
+
[SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1386)
|
|
36
36
|
## Props
|
|
37
37
|
@prop children
|
|
38
38
|
@prop site
|
|
@@ -2,7 +2,7 @@ import type { SidebarBrandProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1386)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop site
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
@component
|
|
23
23
|
[Go to docs](https://flowbite-svelte.com/)
|
|
24
24
|
## Type
|
|
25
|
-
[SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
25
|
+
[SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1368)
|
|
26
26
|
## Props
|
|
27
27
|
@prop breakpoint = "md"
|
|
28
28
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { SidebarButtonProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1368)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop breakpoint = "md"
|
|
8
8
|
* @prop class: className
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
@component
|
|
34
34
|
[Go to docs](https://flowbite-svelte.com/)
|
|
35
35
|
## Type
|
|
36
|
-
[SidebarCtaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
36
|
+
[SidebarCtaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1373)
|
|
37
37
|
## Props
|
|
38
38
|
@prop children
|
|
39
39
|
@prop icon
|
|
@@ -2,7 +2,7 @@ import type { SidebarCtaProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarCtaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarCtaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1373)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
@component
|
|
95
95
|
[Go to docs](https://flowbite-svelte.com/)
|
|
96
96
|
## Type
|
|
97
|
-
[SidebarDropdownWrapperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
97
|
+
[SidebarDropdownWrapperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1392)
|
|
98
98
|
## Props
|
|
99
99
|
@prop children
|
|
100
100
|
@prop arrowup
|
|
@@ -2,7 +2,7 @@ import type { SidebarDropdownWrapperProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarDropdownWrapperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarDropdownWrapperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1392)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop arrowup
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
@component
|
|
14
14
|
[Go to docs](https://flowbite-svelte.com/)
|
|
15
15
|
## Type
|
|
16
|
-
[SidebarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
16
|
+
[SidebarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1409)
|
|
17
17
|
## Props
|
|
18
18
|
@prop children
|
|
19
19
|
@prop class: className = "space-y-2"
|