flowbite-svelte 1.17.1 → 1.17.3
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/select/MultiSelect.svelte +5 -4
- package/dist/forms/select/Select.svelte +4 -2
- package/dist/forms/select/theme.d.ts +60 -0
- package/dist/forms/select/theme.js +19 -5
- package/dist/types.d.ts +6 -1
- package/dist/typography/img/EnhancedImg.svelte +2 -1
- package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
- package/dist/typography/img/Img.svelte +24 -10
- package/dist/typography/img/Img.svelte.d.ts +4 -2
- package/dist/typography/img/theme.d.ts +36 -15
- package/dist/typography/img/theme.js +6 -5
- 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 +19 -20
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script lang="ts" generics="T">
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import type { MultiSelectProps, SelectOptionType } from "../..";
|
|
3
|
+
import type { MultiSelectProps, SelectOptionType, SizeType } from "../..";
|
|
4
4
|
import Badge from "../../badge/Badge.svelte";
|
|
5
5
|
import CloseButton from "../../utils/CloseButton.svelte";
|
|
6
6
|
import { multiSelect } from "./theme";
|
|
7
7
|
import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
|
|
8
|
-
import { onMount } from "svelte";
|
|
8
|
+
import { getContext, onMount } from "svelte";
|
|
9
9
|
import { createDismissableContext } from "../../utils/dismissable";
|
|
10
10
|
|
|
11
11
|
// Consider reusing that component - https://svelecte.vercel.app/
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
let selectItems = $derived(items.filter((x) => value.includes(x.value)));
|
|
39
39
|
let show: boolean = $state(false);
|
|
40
|
+
let group: { size: SizeType } = getContext("group");
|
|
40
41
|
|
|
41
42
|
// Active item
|
|
42
43
|
let activeIndex: number | null = $state(null);
|
|
@@ -193,7 +194,7 @@
|
|
|
193
194
|
};
|
|
194
195
|
});
|
|
195
196
|
|
|
196
|
-
const { base, dropdown, item: dropdownItem, close, select, placeholder: placeholderSpan, svg } = multiSelect({ disabled });
|
|
197
|
+
const { base, dropdown, item: dropdownItem, close, select, placeholder: placeholderSpan, svg } = multiSelect({ disabled, grouped: !!group });
|
|
197
198
|
</script>
|
|
198
199
|
|
|
199
200
|
<select {name} {form} {required} {autocomplete} {value} hidden multiple {onchange}>
|
|
@@ -212,7 +213,7 @@
|
|
|
212
213
|
{#if children}
|
|
213
214
|
{@render children({ item, clear: () => clearThisOption(item) })}
|
|
214
215
|
{:else}
|
|
215
|
-
<Badge color="gray" large={size === "lg"} dismissable params={{ duration: 100 }} onclose={() => clearThisOption(item)} class={[disabled && "pointer-events-none"]}>
|
|
216
|
+
<Badge color="gray" large={size === "lg"} dismissable params={{ duration: 100 }} onclose={() => clearThisOption(item)} class={["mx-0.5 px-2 py-0", disabled && "pointer-events-none"]}>
|
|
216
217
|
{item.name}
|
|
217
218
|
</Badge>
|
|
218
219
|
{/if}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<script lang="ts" generics="T">
|
|
2
2
|
import { select as selectCls } from "./theme";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import type { SelectProps } from "../..";
|
|
4
|
+
import type { SelectProps, SizeType } from "../..";
|
|
5
5
|
import CloseButton from "../../utils/CloseButton.svelte";
|
|
6
6
|
import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
|
|
7
7
|
import { createDismissableContext } from "../../utils/dismissable";
|
|
8
|
+
import { getContext } from "svelte";
|
|
8
9
|
|
|
9
10
|
let { children, items, value = $bindable(), elementRef = $bindable(), underline, size = "md", disabled, placeholder = "Choose option ...", clearable, clearableColor = "none", clearableOnClick, onClear, clearableSvgClass, clearableClass, selectClass, class: className, classes, ...restProps }: SelectProps<T> = $props();
|
|
10
11
|
|
|
@@ -14,7 +15,8 @@
|
|
|
14
15
|
|
|
15
16
|
const theme = getTheme("select");
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
let group: { size: SizeType } = getContext("group");
|
|
19
|
+
const { base, select, close } = $derived(selectCls({ underline, size, disabled, grouped: !!group }));
|
|
18
20
|
|
|
19
21
|
const clearAll = () => {
|
|
20
22
|
if (elementRef) {
|
|
@@ -28,6 +28,16 @@ export declare const select: import("tailwind-variants").TVReturnType<{
|
|
|
28
28
|
};
|
|
29
29
|
false: {};
|
|
30
30
|
};
|
|
31
|
+
grouped: {
|
|
32
|
+
false: {
|
|
33
|
+
base: string;
|
|
34
|
+
select: string;
|
|
35
|
+
};
|
|
36
|
+
true: {
|
|
37
|
+
base: string;
|
|
38
|
+
select: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
31
41
|
}, {
|
|
32
42
|
base: string;
|
|
33
43
|
select: string;
|
|
@@ -59,6 +69,16 @@ export declare const select: import("tailwind-variants").TVReturnType<{
|
|
|
59
69
|
};
|
|
60
70
|
false: {};
|
|
61
71
|
};
|
|
72
|
+
grouped: {
|
|
73
|
+
false: {
|
|
74
|
+
base: string;
|
|
75
|
+
select: string;
|
|
76
|
+
};
|
|
77
|
+
true: {
|
|
78
|
+
base: string;
|
|
79
|
+
select: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
62
82
|
}, {
|
|
63
83
|
base: string;
|
|
64
84
|
select: string;
|
|
@@ -90,6 +110,16 @@ export declare const select: import("tailwind-variants").TVReturnType<{
|
|
|
90
110
|
};
|
|
91
111
|
false: {};
|
|
92
112
|
};
|
|
113
|
+
grouped: {
|
|
114
|
+
false: {
|
|
115
|
+
base: string;
|
|
116
|
+
select: string;
|
|
117
|
+
};
|
|
118
|
+
true: {
|
|
119
|
+
base: string;
|
|
120
|
+
select: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
93
123
|
}, {
|
|
94
124
|
base: string;
|
|
95
125
|
select: string;
|
|
@@ -122,6 +152,16 @@ export declare const multiSelect: import("tailwind-variants").TVReturnType<{
|
|
|
122
152
|
item: string;
|
|
123
153
|
};
|
|
124
154
|
};
|
|
155
|
+
grouped: {
|
|
156
|
+
false: {
|
|
157
|
+
base: string;
|
|
158
|
+
select: string;
|
|
159
|
+
};
|
|
160
|
+
true: {
|
|
161
|
+
base: string;
|
|
162
|
+
select: string;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
125
165
|
}, {
|
|
126
166
|
base: string;
|
|
127
167
|
select: string;
|
|
@@ -157,6 +197,16 @@ export declare const multiSelect: import("tailwind-variants").TVReturnType<{
|
|
|
157
197
|
item: string;
|
|
158
198
|
};
|
|
159
199
|
};
|
|
200
|
+
grouped: {
|
|
201
|
+
false: {
|
|
202
|
+
base: string;
|
|
203
|
+
select: string;
|
|
204
|
+
};
|
|
205
|
+
true: {
|
|
206
|
+
base: string;
|
|
207
|
+
select: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
160
210
|
}, {
|
|
161
211
|
base: string;
|
|
162
212
|
select: string;
|
|
@@ -192,6 +242,16 @@ export declare const multiSelect: import("tailwind-variants").TVReturnType<{
|
|
|
192
242
|
item: string;
|
|
193
243
|
};
|
|
194
244
|
};
|
|
245
|
+
grouped: {
|
|
246
|
+
false: {
|
|
247
|
+
base: string;
|
|
248
|
+
select: string;
|
|
249
|
+
};
|
|
250
|
+
true: {
|
|
251
|
+
base: string;
|
|
252
|
+
select: string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
195
255
|
}, {
|
|
196
256
|
base: string;
|
|
197
257
|
select: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const select = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: "relative",
|
|
4
|
+
base: "relative w-full",
|
|
5
5
|
select: "block w-full rtl:text-right",
|
|
6
6
|
close: "absolute right-8 top-1/2 -translate-y-1/2 text-gray-400 hover:text-black",
|
|
7
7
|
svg: ""
|
|
@@ -9,10 +9,10 @@ export const select = tv({
|
|
|
9
9
|
variants: {
|
|
10
10
|
underline: {
|
|
11
11
|
true: {
|
|
12
|
-
select: "text-gray-500 bg-transparent border-0 border-b-2 border-gray-200 appearance-none dark:text-gray-400 dark:border-gray-700 focus:outline-hidden focus:ring-0 focus:border-gray-200 peer px-0!"
|
|
12
|
+
select: "text-gray-500 bg-transparent rounded-none! border-0 border-b-2 border-gray-200 appearance-none dark:text-gray-400 dark:border-gray-700 focus:outline-hidden focus:ring-0 focus:border-gray-200 peer px-0!"
|
|
13
13
|
},
|
|
14
14
|
false: {
|
|
15
|
-
select: "text-gray-900 bg-gray-50 border border-gray-300
|
|
15
|
+
select: "text-gray-900 bg-gray-50 border border-gray-300 focus:outline-hidden focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
size: {
|
|
@@ -25,6 +25,13 @@ export const select = tv({
|
|
|
25
25
|
select: "cursor-not-allowed opacity-50"
|
|
26
26
|
},
|
|
27
27
|
false: {}
|
|
28
|
+
},
|
|
29
|
+
grouped: {
|
|
30
|
+
false: { base: "rounded-lg", select: "rounded-lg" },
|
|
31
|
+
true: {
|
|
32
|
+
base: "first:rounded-s-lg last:rounded-e-lg not-first:-ms-px group",
|
|
33
|
+
select: "group-first:rounded-s-lg group-last:rounded-e-lg group-not-first:-ms-px h-full"
|
|
34
|
+
}
|
|
28
35
|
}
|
|
29
36
|
},
|
|
30
37
|
defaultVariants: {
|
|
@@ -34,8 +41,8 @@ export const select = tv({
|
|
|
34
41
|
});
|
|
35
42
|
export const multiSelect = tv({
|
|
36
43
|
slots: {
|
|
37
|
-
base: "relative border border-gray-300 flex items-center
|
|
38
|
-
select: "
|
|
44
|
+
base: "relative border border-gray-300 w-full flex items-center gap-2 dark:border-gray-600 ring-primary-500 dark:ring-primary-500 focus-visible:outline-hidden",
|
|
45
|
+
select: "",
|
|
39
46
|
dropdown: "absolute z-50 p-3 flex flex-col gap-1 max-h-64 bg-white border border-gray-300 dark:bg-gray-700 dark:border-gray-600 start-0 top-[calc(100%+1rem)] rounded-lg cursor-pointer overflow-y-scroll w-full",
|
|
40
47
|
item: "py-2 px-3 rounded-lg text-gray-600 hover:text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:text-gray-300 dark:hover:bg-gray-600",
|
|
41
48
|
close: "p-0 focus:ring-gray-400 dark:text-white",
|
|
@@ -66,6 +73,13 @@ export const multiSelect = tv({
|
|
|
66
73
|
true: {
|
|
67
74
|
item: "bg-gray-100 text-black font-semibold hover:text-black dark:text-white dark:bg-gray-600 dark:hover:text-white"
|
|
68
75
|
}
|
|
76
|
+
},
|
|
77
|
+
grouped: {
|
|
78
|
+
false: { base: "rounded-lg", select: "rounded-lg" },
|
|
79
|
+
true: {
|
|
80
|
+
base: "first:rounded-s-lg last:rounded-e-lg not-first:-ms-px group",
|
|
81
|
+
select: "group-first:rounded-s-lg group-last:rounded-e-lg group-not-first:-ms-px h-full"
|
|
82
|
+
}
|
|
69
83
|
}
|
|
70
84
|
},
|
|
71
85
|
// Add compoundVariants here
|
package/dist/types.d.ts
CHANGED
|
@@ -1660,13 +1660,18 @@ export interface Picture {
|
|
|
1660
1660
|
h: number;
|
|
1661
1661
|
};
|
|
1662
1662
|
}
|
|
1663
|
-
export interface ImgProps extends ImgVariants, HTMLImgAttributes {
|
|
1663
|
+
export interface ImgProps extends ImgVariants, Omit<HTMLImgAttributes, "children"> {
|
|
1664
|
+
children?: Snippet<[{
|
|
1665
|
+
class: string;
|
|
1666
|
+
restProps: any;
|
|
1667
|
+
}]>;
|
|
1664
1668
|
size?: ImgVariants["size"];
|
|
1665
1669
|
effect?: ImgVariants["effect"];
|
|
1666
1670
|
caption?: string;
|
|
1667
1671
|
figClass?: string;
|
|
1668
1672
|
captionClass?: string;
|
|
1669
1673
|
href?: HTMLAnchorElement["href"];
|
|
1674
|
+
align?: ImgVariants["align"];
|
|
1670
1675
|
}
|
|
1671
1676
|
export interface EnhandedImgProps extends ImgVariants, Omit<HTMLImgAttributes, "src"> {
|
|
1672
1677
|
src: string | Picture;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
const theme = getTheme("img");
|
|
23
23
|
|
|
24
24
|
let { base, figure, caption: figureCaption } = $derived(img({ size }));
|
|
25
|
+
console.warn("EnhancedImg is deprecated. Please use Img instead.");
|
|
25
26
|
</script>
|
|
26
27
|
|
|
27
28
|
{#snippet imageSlot()}
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
@component
|
|
50
51
|
[Go to docs](https://flowbite-svelte.com/)
|
|
51
52
|
## Type
|
|
52
|
-
[EnhandedImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
53
|
+
[EnhandedImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1948)
|
|
53
54
|
## Props
|
|
54
55
|
@prop src
|
|
55
56
|
@prop href
|
|
@@ -2,7 +2,7 @@ import type { EnhandedImgProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [EnhandedImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [EnhandedImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1948)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop src
|
|
8
8
|
* @prop href
|
|
@@ -4,36 +4,48 @@
|
|
|
4
4
|
import type { ImgProps } from "../../types";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
|
|
6
6
|
|
|
7
|
-
let { size
|
|
7
|
+
let { children, size, effect, align, caption, class: className, classes, figClass, captionClass, href, ...restProps }: ImgProps = $props();
|
|
8
8
|
|
|
9
9
|
warnThemeDeprecation(
|
|
10
10
|
"Img",
|
|
11
11
|
{ figClass, captionClass },
|
|
12
12
|
{
|
|
13
|
-
figClass: "
|
|
13
|
+
figClass: "figure",
|
|
14
14
|
captionClass: "caption"
|
|
15
15
|
}
|
|
16
16
|
);
|
|
17
|
+
|
|
17
18
|
const styling = $derived({
|
|
18
|
-
|
|
19
|
-
caption: captionClass
|
|
19
|
+
figure: figClass || classes?.figure,
|
|
20
|
+
caption: captionClass || classes?.caption
|
|
20
21
|
});
|
|
21
22
|
|
|
22
23
|
const theme = getTheme("img");
|
|
23
24
|
|
|
24
|
-
let { base, figure, caption: figureCaption } = $derived(img({ size, effect }));
|
|
25
|
+
let { base, figure, caption: figureCaption } = $derived(img({ size, effect, align }));
|
|
26
|
+
|
|
27
|
+
// Determine if using slot or traditional props
|
|
28
|
+
const useSlot = $derived(!!children);
|
|
29
|
+
// Compute the final class string to pass to children
|
|
30
|
+
const imgClass = $derived(base({ class: clsx(theme?.base, className) }));
|
|
25
31
|
</script>
|
|
26
32
|
|
|
27
33
|
{#snippet imageSlot()}
|
|
28
34
|
{#if caption}
|
|
29
|
-
<figure class={figure({ class: clsx(theme?.figure, styling.
|
|
30
|
-
|
|
35
|
+
<figure class={figure({ class: clsx(theme?.figure, styling.figure) })}>
|
|
36
|
+
{#if useSlot}
|
|
37
|
+
{@render children?.({ class: imgClass, restProps })}
|
|
38
|
+
{:else}
|
|
39
|
+
<img {...restProps} class={imgClass} />
|
|
40
|
+
{/if}
|
|
31
41
|
<figcaption class={figureCaption({ class: clsx(theme?.caption, styling.caption) })}>
|
|
32
42
|
{@html caption}
|
|
33
43
|
</figcaption>
|
|
34
44
|
</figure>
|
|
45
|
+
{:else if useSlot}
|
|
46
|
+
{@render children?.({ class: imgClass, restProps })}
|
|
35
47
|
{:else}
|
|
36
|
-
<img {...restProps} class={
|
|
48
|
+
<img {...restProps} class={imgClass} />
|
|
37
49
|
{/if}
|
|
38
50
|
{/snippet}
|
|
39
51
|
|
|
@@ -51,8 +63,10 @@
|
|
|
51
63
|
## Type
|
|
52
64
|
[ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1937)
|
|
53
65
|
## Props
|
|
54
|
-
@prop
|
|
55
|
-
@prop
|
|
66
|
+
@prop children
|
|
67
|
+
@prop size
|
|
68
|
+
@prop effect
|
|
69
|
+
@prop align
|
|
56
70
|
@prop caption
|
|
57
71
|
@prop class: className
|
|
58
72
|
@prop classes
|
|
@@ -4,8 +4,10 @@ import type { ImgProps } from "../../types";
|
|
|
4
4
|
* ## Type
|
|
5
5
|
* [ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1937)
|
|
6
6
|
* ## Props
|
|
7
|
-
* @prop
|
|
8
|
-
* @prop
|
|
7
|
+
* @prop children
|
|
8
|
+
* @prop size
|
|
9
|
+
* @prop effect
|
|
10
|
+
* @prop align
|
|
9
11
|
* @prop caption
|
|
10
12
|
* @prop class: className
|
|
11
13
|
* @prop classes
|
|
@@ -31,10 +31,6 @@ export declare const img: import("tailwind-variants").TVReturnType<{
|
|
|
31
31
|
base: string;
|
|
32
32
|
figure: string;
|
|
33
33
|
};
|
|
34
|
-
none: {
|
|
35
|
-
base: string;
|
|
36
|
-
figure: string;
|
|
37
|
-
};
|
|
38
34
|
};
|
|
39
35
|
effect: {
|
|
40
36
|
grayscale: {
|
|
@@ -55,8 +51,19 @@ export declare const img: import("tailwind-variants").TVReturnType<{
|
|
|
55
51
|
"hue-rotate": {
|
|
56
52
|
base: string;
|
|
57
53
|
};
|
|
58
|
-
|
|
54
|
+
};
|
|
55
|
+
align: {
|
|
56
|
+
left: {
|
|
59
57
|
base: string;
|
|
58
|
+
figure: string;
|
|
59
|
+
};
|
|
60
|
+
center: {
|
|
61
|
+
base: string;
|
|
62
|
+
figure: string;
|
|
63
|
+
};
|
|
64
|
+
right: {
|
|
65
|
+
base: string;
|
|
66
|
+
figure: string;
|
|
60
67
|
};
|
|
61
68
|
};
|
|
62
69
|
}, {
|
|
@@ -93,10 +100,6 @@ export declare const img: import("tailwind-variants").TVReturnType<{
|
|
|
93
100
|
base: string;
|
|
94
101
|
figure: string;
|
|
95
102
|
};
|
|
96
|
-
none: {
|
|
97
|
-
base: string;
|
|
98
|
-
figure: string;
|
|
99
|
-
};
|
|
100
103
|
};
|
|
101
104
|
effect: {
|
|
102
105
|
grayscale: {
|
|
@@ -117,8 +120,19 @@ export declare const img: import("tailwind-variants").TVReturnType<{
|
|
|
117
120
|
"hue-rotate": {
|
|
118
121
|
base: string;
|
|
119
122
|
};
|
|
120
|
-
|
|
123
|
+
};
|
|
124
|
+
align: {
|
|
125
|
+
left: {
|
|
121
126
|
base: string;
|
|
127
|
+
figure: string;
|
|
128
|
+
};
|
|
129
|
+
center: {
|
|
130
|
+
base: string;
|
|
131
|
+
figure: string;
|
|
132
|
+
};
|
|
133
|
+
right: {
|
|
134
|
+
base: string;
|
|
135
|
+
figure: string;
|
|
122
136
|
};
|
|
123
137
|
};
|
|
124
138
|
}, {
|
|
@@ -155,10 +169,6 @@ export declare const img: import("tailwind-variants").TVReturnType<{
|
|
|
155
169
|
base: string;
|
|
156
170
|
figure: string;
|
|
157
171
|
};
|
|
158
|
-
none: {
|
|
159
|
-
base: string;
|
|
160
|
-
figure: string;
|
|
161
|
-
};
|
|
162
172
|
};
|
|
163
173
|
effect: {
|
|
164
174
|
grayscale: {
|
|
@@ -179,8 +189,19 @@ export declare const img: import("tailwind-variants").TVReturnType<{
|
|
|
179
189
|
"hue-rotate": {
|
|
180
190
|
base: string;
|
|
181
191
|
};
|
|
182
|
-
|
|
192
|
+
};
|
|
193
|
+
align: {
|
|
194
|
+
left: {
|
|
195
|
+
base: string;
|
|
196
|
+
figure: string;
|
|
197
|
+
};
|
|
198
|
+
center: {
|
|
183
199
|
base: string;
|
|
200
|
+
figure: string;
|
|
201
|
+
};
|
|
202
|
+
right: {
|
|
203
|
+
base: string;
|
|
204
|
+
figure: string;
|
|
184
205
|
};
|
|
185
206
|
};
|
|
186
207
|
}, {
|
|
@@ -13,8 +13,7 @@ export const img = tv({
|
|
|
13
13
|
lg: { base: "max-w-lg", figure: "max-w-lg" },
|
|
14
14
|
xl: { base: "max-w-xl", figure: "max-w-xl" },
|
|
15
15
|
"2xl": { base: "max-w-2xl", figure: "max-w-2xl" },
|
|
16
|
-
full: { base: "max-w-full", figure: "max-w-full" }
|
|
17
|
-
none: { base: "", figure: "" }
|
|
16
|
+
full: { base: "max-w-full", figure: "max-w-full" }
|
|
18
17
|
},
|
|
19
18
|
effect: {
|
|
20
19
|
grayscale: {
|
|
@@ -32,10 +31,12 @@ export const img = tv({
|
|
|
32
31
|
},
|
|
33
32
|
"hue-rotate": {
|
|
34
33
|
base: "hue-rotate-60 filter transition-all duration-300 hover:hue-rotate-0"
|
|
35
|
-
},
|
|
36
|
-
none: {
|
|
37
|
-
base: "transition-all duration-300"
|
|
38
34
|
}
|
|
35
|
+
},
|
|
36
|
+
align: {
|
|
37
|
+
left: { base: "mx-0", figure: "mx-0" },
|
|
38
|
+
center: { base: "mx-auto", figure: "mx-auto" },
|
|
39
|
+
right: { base: "ml-auto mr-0", figure: "ml-auto mr-0" }
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
});
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@component
|
|
20
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
21
21
|
## Type
|
|
22
|
-
[LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1961)
|
|
23
23
|
## Props
|
|
24
24
|
@prop children
|
|
25
25
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { LayoutProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1961)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
@component
|
|
19
19
|
[Go to docs](https://flowbite-svelte.com/)
|
|
20
20
|
## Type
|
|
21
|
-
[LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
21
|
+
[LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1974)
|
|
22
22
|
## Props
|
|
23
23
|
@prop children
|
|
24
24
|
@prop icon
|
|
@@ -2,7 +2,7 @@ import type { LiProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1974)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
@component
|
|
29
29
|
[Go to docs](https://flowbite-svelte.com/)
|
|
30
30
|
## Type
|
|
31
|
-
[ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
31
|
+
[ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1966)
|
|
32
32
|
## Props
|
|
33
33
|
@prop children
|
|
34
34
|
@prop tag = "ul"
|
|
@@ -2,7 +2,7 @@ import type { ListProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1966)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop tag = "ul"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@component
|
|
18
18
|
[Go to docs](https://flowbite-svelte.com/)
|
|
19
19
|
## Type
|
|
20
|
-
[MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
20
|
+
[MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1980)
|
|
21
21
|
## Props
|
|
22
22
|
@prop children
|
|
23
23
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { MarkProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1980)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@component
|
|
20
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
21
21
|
## Type
|
|
22
|
-
[ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1985)
|
|
23
23
|
## Props
|
|
24
24
|
@prop children
|
|
25
25
|
@prop class: className = "text-gray-900 dark:text-white"
|
|
@@ -2,7 +2,7 @@ import type { ParagraphProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1985)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className = "text-gray-900 dark:text-white"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@component
|
|
18
18
|
[Go to docs](https://flowbite-svelte.com/)
|
|
19
19
|
## Type
|
|
20
|
-
[SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
20
|
+
[SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1993)
|
|
21
21
|
## Props
|
|
22
22
|
@prop children
|
|
23
23
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { SecondaryProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1993)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
@component
|
|
35
35
|
[Go to docs](https://flowbite-svelte.com/)
|
|
36
36
|
## Type
|
|
37
|
-
[SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
37
|
+
[SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1998)
|
|
38
38
|
## Props
|
|
39
39
|
@prop children
|
|
40
40
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { SpanProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1998)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
package/dist/utils/Arrow.svelte
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
@component
|
|
51
51
|
[Go to docs](https://flowbite-svelte.com/)
|
|
52
52
|
## Type
|
|
53
|
-
[ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
53
|
+
[ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2040)
|
|
54
54
|
## Props
|
|
55
55
|
@prop placement = "top"
|
|
56
56
|
@prop cords
|
|
@@ -2,7 +2,7 @@ import type { ArrowProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2040)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop placement = "top"
|
|
8
8
|
* @prop cords
|
package/dist/utils/Popper.svelte
CHANGED
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
@component
|
|
214
214
|
[Go to docs](https://flowbite-svelte.com/)
|
|
215
215
|
## Type
|
|
216
|
-
[PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
216
|
+
[PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2020)
|
|
217
217
|
## Props
|
|
218
218
|
@prop triggeredBy
|
|
219
219
|
@prop triggerDelay = 200
|
|
@@ -2,7 +2,7 @@ import type { PopperProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2020)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop triggeredBy
|
|
8
8
|
* @prop triggerDelay = 200
|
package/dist/video/Video.svelte
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
@component
|
|
22
22
|
[Go to docs](https://flowbite-svelte.com/)
|
|
23
23
|
## Type
|
|
24
|
-
[VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
24
|
+
[VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2007)
|
|
25
25
|
## Props
|
|
26
26
|
@prop children
|
|
27
27
|
@prop type = "video/mp4"
|
|
@@ -2,7 +2,7 @@ import type { VideoProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2007)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop type = "video/mp4"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.3",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": {
|
|
@@ -16,27 +16,27 @@
|
|
|
16
16
|
"@docsearch/css": "^4.1.0",
|
|
17
17
|
"@docsearch/js": "^4.1.0",
|
|
18
18
|
"@eslint/compat": "^1.4.0",
|
|
19
|
-
"@eslint/js": "^9.
|
|
19
|
+
"@eslint/js": "^9.37.0",
|
|
20
20
|
"@flowbite-svelte-plugins/chart": "^0.2.4",
|
|
21
|
-
"@flowbite-svelte-plugins/datatable": "^0.4.
|
|
21
|
+
"@flowbite-svelte-plugins/datatable": "^0.4.1",
|
|
22
22
|
"@flowbite-svelte-plugins/texteditor": "^0.25.5",
|
|
23
23
|
"@playwright/test": "^1.55.1",
|
|
24
24
|
"@resvg/resvg-js": "^2.6.2",
|
|
25
|
-
"@sveltejs/adapter-auto": "^6.1.
|
|
26
|
-
"@sveltejs/adapter-vercel": "^5.10.
|
|
27
|
-
"@sveltejs/enhanced-img": "0.
|
|
28
|
-
"@sveltejs/kit": "^2.
|
|
25
|
+
"@sveltejs/adapter-auto": "^6.1.1",
|
|
26
|
+
"@sveltejs/adapter-vercel": "^5.10.3",
|
|
27
|
+
"@sveltejs/enhanced-img": "0.8.3",
|
|
28
|
+
"@sveltejs/kit": "^2.44.0",
|
|
29
29
|
"@sveltejs/package": "^2.5.4",
|
|
30
|
-
"@sveltejs/vite-plugin-svelte": "^6.2.
|
|
30
|
+
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
31
31
|
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
|
|
32
|
-
"@tailwindcss/vite": "^4.1.
|
|
33
|
-
"@testing-library/jest-dom": "^6.
|
|
32
|
+
"@tailwindcss/vite": "^4.1.14",
|
|
33
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
34
34
|
"@testing-library/svelte": "^5.2.8",
|
|
35
35
|
"@testing-library/user-event": "^14.6.1",
|
|
36
36
|
"@tiptap/core": "3.4.4",
|
|
37
37
|
"dayjs": "^1.11.18",
|
|
38
38
|
"deepmerge": "^4.3.1",
|
|
39
|
-
"eslint": "^9.
|
|
39
|
+
"eslint": "^9.37.0",
|
|
40
40
|
"eslint-config-prettier": "^10.1.8",
|
|
41
41
|
"eslint-plugin-svelte": "^3.12.4",
|
|
42
42
|
"flowbite-svelte-admin-dashboard": "^2.0.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"globals": "^16.4.0",
|
|
48
48
|
"highlight.js": "^11.11.1",
|
|
49
49
|
"jsdom": "^27.0.0",
|
|
50
|
-
"katex": "^0.16.
|
|
50
|
+
"katex": "^0.16.23",
|
|
51
51
|
"lowlight": "^3.3.0",
|
|
52
52
|
"mdsvex": "^0.12.6",
|
|
53
53
|
"mdsvexamples": "^0.5.0",
|
|
@@ -55,24 +55,23 @@
|
|
|
55
55
|
"prettier-plugin-svelte": "^3.4.0",
|
|
56
56
|
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
57
57
|
"prism-themes": "^1.9.0",
|
|
58
|
-
"publint": "^0.3.
|
|
58
|
+
"publint": "^0.3.14",
|
|
59
59
|
"runatics": "^0.1.4",
|
|
60
60
|
"runes-meta-tags": "^0.4.5",
|
|
61
61
|
"satori": "^0.18.3",
|
|
62
62
|
"satori-html": "^0.3.2",
|
|
63
|
-
"simple-datatables": "^10.0.0",
|
|
64
63
|
"super-sitemap": "^1.0.5",
|
|
65
|
-
"svelte": "^5.39.
|
|
64
|
+
"svelte": "^5.39.9",
|
|
66
65
|
"svelte-check": "^4.3.2",
|
|
67
66
|
"svelte-doc-llm": "^0.4.1",
|
|
68
67
|
"svelte-lib-helpers": "^0.4.31",
|
|
69
68
|
"svelte-meta-tags": "^4.4.1",
|
|
70
69
|
"svelte-rune-highlight": "^0.7.1",
|
|
71
|
-
"tailwindcss": "^4.1.
|
|
72
|
-
"tsx": "^4.20.
|
|
73
|
-
"typescript": "^5.9.
|
|
74
|
-
"typescript-eslint": "^8.
|
|
75
|
-
"vite": "^7.1.
|
|
70
|
+
"tailwindcss": "^4.1.14",
|
|
71
|
+
"tsx": "^4.20.6",
|
|
72
|
+
"typescript": "^5.9.3",
|
|
73
|
+
"typescript-eslint": "^8.45.0",
|
|
74
|
+
"vite": "^7.1.9",
|
|
76
75
|
"vite-plugin-devtools-json": "^1.0.0",
|
|
77
76
|
"vitest": "^3.2.4"
|
|
78
77
|
},
|