flowbite-svelte 0.46.20 → 0.46.21
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/bottom-navigation/BottomNav.svelte.d.ts +2 -0
- package/dist/bottom-navigation/BottomNavItem.svelte +6 -6
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +14 -5
- package/dist/buttons/Button.svelte +3 -3
- package/dist/buttons/Button.svelte.d.ts +23 -16
- package/dist/buttons/GradientButton.svelte +1 -0
- package/dist/buttons/GradientButton.svelte.d.ts +2 -15
- package/dist/forms/Checkbox.svelte +2 -3
- package/dist/forms/Checkbox.svelte.d.ts +2 -2
- package/dist/forms/CheckboxButton.svelte +1 -1
- package/dist/forms/CheckboxButton.svelte.d.ts +16 -9
- package/dist/forms/RadioButton.svelte +1 -1
- package/dist/forms/Select.svelte.d.ts +1 -1
- package/dist/forms/Toggle.svelte.d.ts +1 -2
- package/dist/modal/Modal.svelte +19 -19
- package/dist/modal/Modal.svelte.d.ts +19 -19
- package/dist/navbar/Menu.svelte +4 -4
- package/dist/navbar/Menu.svelte.d.ts +10 -10
- package/dist/navbar/NavBrand.svelte +1 -1
- package/dist/navbar/NavBrand.svelte.d.ts +4 -4
- package/dist/navbar/NavContainer.svelte +1 -1
- package/dist/navbar/NavHamburger.svelte +2 -2
- package/dist/navbar/NavHamburger.svelte.d.ts +16 -5
- package/dist/navbar/NavLi.svelte +3 -3
- package/dist/navbar/NavLi.svelte.d.ts +8 -8
- package/dist/navbar/NavUl.svelte +8 -8
- package/dist/navbar/NavUl.svelte.d.ts +15 -15
- package/dist/navbar/Navbar.svelte +1 -1
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/pagination/Pagination.svelte +8 -8
- package/dist/pagination/Pagination.svelte.d.ts +16 -16
- package/dist/pagination/PaginationItem.svelte +5 -5
- package/dist/pagination/PaginationItem.svelte.d.ts +12 -12
- package/dist/progress/Progressbar.svelte +13 -13
- package/dist/progress/Progressbar.svelte.d.ts +26 -26
- package/dist/rating/Heart.svelte +7 -7
- package/dist/rating/Heart.svelte.d.ts +16 -16
- package/dist/rating/Rating.svelte +4 -4
- package/dist/rating/Rating.svelte.d.ts +2 -2
- package/dist/rating/RatingComment.svelte +4 -8
- package/dist/rating/RatingComment.svelte.d.ts +4 -6
- package/dist/rating/Review.svelte +6 -6
- package/dist/rating/Review.svelte.d.ts +11 -12
- package/dist/rating/ScoreRating.svelte +9 -10
- package/dist/rating/ScoreRating.svelte.d.ts +15 -16
- package/dist/rating/Star.svelte +7 -7
- package/dist/rating/Star.svelte.d.ts +16 -16
- package/dist/rating/Thumbup.svelte +7 -7
- package/dist/rating/Thumbup.svelte.d.ts +16 -16
- package/dist/sidebar/Sidebar.svelte +6 -6
- package/dist/sidebar/Sidebar.svelte.d.ts +12 -12
- package/dist/sidebar/SidebarBrand.svelte +4 -4
- package/dist/sidebar/SidebarBrand.svelte.d.ts +9 -9
- package/dist/sidebar/SidebarCta.svelte +4 -4
- package/dist/sidebar/SidebarCta.svelte.d.ts +10 -10
- package/dist/sidebar/SidebarDropdownItem.svelte +5 -5
- package/dist/sidebar/SidebarDropdownItem.svelte.d.ts +12 -12
- package/dist/sidebar/SidebarDropdownWrapper.svelte +8 -8
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +16 -16
- package/dist/sidebar/SidebarGroup.svelte +3 -3
- package/dist/sidebar/SidebarGroup.svelte.d.ts +8 -8
- package/dist/sidebar/SidebarItem.svelte +7 -8
- package/dist/sidebar/SidebarItem.svelte.d.ts +15 -16
- package/dist/sidebar/SidebarWrapper.svelte +1 -1
- package/dist/sidebar/SidebarWrapper.svelte.d.ts +4 -4
- package/dist/skeleton/CardPlaceholder.svelte +2 -2
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +4 -5
- package/dist/skeleton/ImagePlaceholder.svelte +3 -3
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +6 -7
- package/dist/skeleton/ListPlaceholder.svelte +1 -1
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +2 -3
- package/dist/skeleton/Skeleton.svelte +2 -2
- package/dist/skeleton/Skeleton.svelte.d.ts +4 -5
- package/dist/skeleton/TestimonialPlaceholder.svelte +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +2 -3
- package/dist/skeleton/TextPlaceholder.svelte +2 -2
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +4 -5
- package/dist/skeleton/VideoPlaceholder.svelte +2 -2
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +4 -5
- package/dist/skeleton/WidgetPlaceholder.svelte +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +2 -3
- package/dist/speed-dial/SpeedDial.svelte +12 -11
- package/dist/speed-dial/SpeedDial.svelte.d.ts +44 -24
- package/dist/speed-dial/SpeedDialButton.svelte +7 -7
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +36 -16
- package/dist/spinner/Spinner.svelte +6 -6
- package/dist/spinner/Spinner.svelte.d.ts +14 -14
- package/dist/steps/StepIndicator.svelte +8 -8
- package/dist/steps/StepIndicator.svelte.d.ts +18 -18
- package/dist/table/Table.svelte +18 -16
- package/dist/table/Table.svelte.d.ts +30 -30
- package/dist/table/TableBody.svelte +2 -2
- package/dist/table/TableBody.svelte.d.ts +4 -3
- package/dist/table/TableBodyCell.svelte +2 -2
- package/dist/table/TableBodyCell.svelte.d.ts +4 -4
- package/dist/table/TableBodyRow.svelte +1 -1
- package/dist/table/TableBodyRow.svelte.d.ts +4 -4
- package/dist/table/TableHead.svelte +2 -2
- package/dist/table/TableHead.svelte.d.ts +6 -6
- package/dist/table/TableHeadCell.svelte +5 -5
- package/dist/table/TableHeadCell.svelte.d.ts +11 -11
- package/dist/table/TableSearch.svelte +12 -12
- package/dist/table/TableSearch.svelte.d.ts +26 -26
- package/dist/tabs/TabItem.svelte +6 -6
- package/dist/tabs/TabItem.svelte.d.ts +14 -14
- package/dist/tabs/Tabs.svelte +7 -7
- package/dist/tabs/Tabs.svelte.d.ts +15 -15
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/Activity.svelte.d.ts +4 -4
- package/dist/timeline/ActivityItem.svelte +10 -10
- package/dist/timeline/ActivityItem.svelte.d.ts +17 -18
- package/dist/timeline/Group.svelte +6 -6
- package/dist/timeline/Group.svelte.d.ts +10 -10
- package/dist/timeline/GroupItem.svelte +7 -7
- package/dist/timeline/GroupItem.svelte.d.ts +13 -14
- package/dist/timeline/Timeline.svelte +2 -2
- package/dist/timeline/Timeline.svelte.d.ts +4 -4
- package/dist/timeline/TimelineItem.svelte +3 -3
- package/dist/timeline/TimelineItem.svelte.d.ts +6 -7
- package/dist/toast/Toast.svelte +10 -12
- package/dist/toast/Toast.svelte.d.ts +22 -24
- package/dist/toolbar/ToolbarButton.svelte +5 -5
- package/dist/toolbar/ToolbarButton.svelte.d.ts +18 -13
- package/dist/typography/A.svelte +5 -5
- package/dist/typography/A.svelte.d.ts +11 -11
- package/dist/typography/Blockquote.svelte +8 -8
- package/dist/typography/Blockquote.svelte.d.ts +18 -18
- package/dist/typography/DescriptionList.svelte +4 -4
- package/dist/typography/DescriptionList.svelte.d.ts +8 -8
- package/dist/typography/Heading.svelte +3 -3
- package/dist/typography/Heading.svelte.d.ts +8 -8
- package/dist/typography/Hr.svelte +6 -6
- package/dist/typography/Hr.svelte.d.ts +14 -14
- package/dist/typography/Img.svelte +11 -11
- package/dist/typography/Img.svelte.d.ts +22 -22
- package/dist/typography/Layout.svelte +4 -4
- package/dist/typography/Layout.svelte.d.ts +8 -8
- package/dist/typography/Li.svelte +2 -2
- package/dist/typography/Li.svelte.d.ts +6 -6
- package/dist/typography/List.svelte +3 -3
- package/dist/typography/List.svelte.d.ts +19 -11
- package/dist/typography/Mark.svelte +3 -3
- package/dist/typography/Mark.svelte.d.ts +8 -8
- package/dist/typography/P.svelte +12 -12
- package/dist/typography/P.svelte.d.ts +26 -26
- package/dist/typography/Secondary.svelte +2 -2
- package/dist/typography/Secondary.svelte.d.ts +6 -6
- package/dist/typography/Span.svelte +9 -9
- package/dist/typography/Span.svelte.d.ts +20 -20
- package/package.json +19 -18
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
3
|
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
innerDivClass?: string | undefined;
|
|
4
|
+
props: HTMLAttributes<HTMLElement> & {
|
|
5
|
+
icon?: boolean;
|
|
6
|
+
divClass?: string;
|
|
7
|
+
hrClass?: string;
|
|
8
|
+
iconDivClass?: string;
|
|
9
|
+
textSpanClass?: string;
|
|
10
|
+
innerDivClass?: string;
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
@@ -22,12 +22,12 @@ export type HrSlots = typeof __propDef.slots;
|
|
|
22
22
|
/**
|
|
23
23
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
24
24
|
* ## Props
|
|
25
|
-
* @prop export let icon:
|
|
26
|
-
* @prop export let divClass:
|
|
27
|
-
* @prop export let hrClass:
|
|
28
|
-
* @prop export let iconDivClass:
|
|
29
|
-
* @prop export let textSpanClass:
|
|
30
|
-
* @prop export let innerDivClass:
|
|
25
|
+
* @prop export let icon: $$Props['icon'] = false;
|
|
26
|
+
* @prop export let divClass: $$Props['divClass'] = 'inline-flex items-center justify-center w-full';
|
|
27
|
+
* @prop export let hrClass: $$Props['hrClass'] = 'h-px my-8 bg-gray-200 border-0 dark:bg-gray-700';
|
|
28
|
+
* @prop export let iconDivClass: $$Props['iconDivClass'] = 'absolute start-1/2 px-4 bg-white -translate-x-1/2 rtl:translate-x-1/2 ';
|
|
29
|
+
* @prop export let textSpanClass: $$Props['textSpanClass'] = 'absolute px-3 font-medium text-gray-900 -translate-x-1/2 rtl:translate-x-1/2 bg-white start-1/2 dark:text-white dark:bg-gray-900 ';
|
|
30
|
+
* @prop export let innerDivClass: $$Props['innerDivClass'] = 'absolute px-4 -translate-x-1/2 rtl:translate-x-1/2 bg-white start-1/2 dark:bg-gray-900';
|
|
31
31
|
*/
|
|
32
32
|
export default class Hr extends SvelteComponentTyped<HrProps, HrEvents, HrSlots> {
|
|
33
33
|
}
|
|
@@ -13,7 +13,7 @@ export let captionClass = "mt-2 text-sm text-center text-gray-500 dark:text-gray
|
|
|
13
13
|
|
|
14
14
|
{#if caption}
|
|
15
15
|
<figure class={figClass}>
|
|
16
|
-
<img class={twMerge(imgClass, size, alignment, effect, $$props.class)} {src} {srcset} {alt} />
|
|
16
|
+
<img class={twMerge(imgClass, size, alignment, effect, $$props.class)} {src} {srcset} {alt} {...$$restProps}/>
|
|
17
17
|
<figcaption class={captionClass}>{@html caption}</figcaption>
|
|
18
18
|
</figure>
|
|
19
19
|
{:else}
|
|
@@ -24,14 +24,14 @@ export let captionClass = "mt-2 text-sm text-center text-gray-500 dark:text-gray
|
|
|
24
24
|
@component
|
|
25
25
|
[Go to docs](https://flowbite-svelte.com/)
|
|
26
26
|
## Props
|
|
27
|
-
@prop export let caption:
|
|
28
|
-
@prop export let src:
|
|
29
|
-
@prop export let srcset:
|
|
30
|
-
@prop export let size:
|
|
31
|
-
@prop export let alignment:
|
|
32
|
-
@prop export let imgClass:
|
|
33
|
-
@prop export let figClass:
|
|
34
|
-
@prop export let alt:
|
|
35
|
-
@prop export let effect:
|
|
36
|
-
@prop export let captionClass:
|
|
27
|
+
@prop export let caption: $$Props['caption'] = undefined;
|
|
28
|
+
@prop export let src: $$Props['src'] = undefined;
|
|
29
|
+
@prop export let srcset: $$Props['srcset'] = undefined;
|
|
30
|
+
@prop export let size: $$Props['size'] = 'max-w-full';
|
|
31
|
+
@prop export let alignment: $$Props['alignment'] = '';
|
|
32
|
+
@prop export let imgClass: $$Props['imgClass'] = 'h-auto';
|
|
33
|
+
@prop export let figClass: $$Props['figClass'] = 'max-w-lg';
|
|
34
|
+
@prop export let alt: $$Props['alt'] = '';
|
|
35
|
+
@prop export let effect: $$Props['effect'] = '';
|
|
36
|
+
@prop export let captionClass: $$Props['captionClass'] = 'mt-2 text-sm text-center text-gray-500 dark:text-gray-400';
|
|
37
37
|
-->
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { HTMLImgAttributes } from 'svelte/elements';
|
|
2
3
|
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
captionClass?: string | undefined;
|
|
4
|
+
props: HTMLImgAttributes & {
|
|
5
|
+
caption?: string;
|
|
6
|
+
src?: string;
|
|
7
|
+
srcset?: string;
|
|
8
|
+
size?: string;
|
|
9
|
+
alignment?: string;
|
|
10
|
+
imgClass?: string;
|
|
11
|
+
figClass?: string;
|
|
12
|
+
alt?: string;
|
|
13
|
+
effect?: string;
|
|
14
|
+
captionClass?: string;
|
|
15
15
|
};
|
|
16
16
|
events: {
|
|
17
17
|
[evt: string]: CustomEvent<any>;
|
|
@@ -24,16 +24,16 @@ export type ImgSlots = typeof __propDef.slots;
|
|
|
24
24
|
/**
|
|
25
25
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
26
26
|
* ## Props
|
|
27
|
-
* @prop export let caption:
|
|
28
|
-
* @prop export let src:
|
|
29
|
-
* @prop export let srcset:
|
|
30
|
-
* @prop export let size:
|
|
31
|
-
* @prop export let alignment:
|
|
32
|
-
* @prop export let imgClass:
|
|
33
|
-
* @prop export let figClass:
|
|
34
|
-
* @prop export let alt:
|
|
35
|
-
* @prop export let effect:
|
|
36
|
-
* @prop export let captionClass:
|
|
27
|
+
* @prop export let caption: $$Props['caption'] = undefined;
|
|
28
|
+
* @prop export let src: $$Props['src'] = undefined;
|
|
29
|
+
* @prop export let srcset: $$Props['srcset'] = undefined;
|
|
30
|
+
* @prop export let size: $$Props['size'] = 'max-w-full';
|
|
31
|
+
* @prop export let alignment: $$Props['alignment'] = '';
|
|
32
|
+
* @prop export let imgClass: $$Props['imgClass'] = 'h-auto';
|
|
33
|
+
* @prop export let figClass: $$Props['figClass'] = 'max-w-lg';
|
|
34
|
+
* @prop export let alt: $$Props['alt'] = '';
|
|
35
|
+
* @prop export let effect: $$Props['effect'] = '';
|
|
36
|
+
* @prop export let captionClass: $$Props['captionClass'] = 'mt-2 text-sm text-center text-gray-500 dark:text-gray-400';
|
|
37
37
|
*/
|
|
38
38
|
export default class Img extends SvelteComponentTyped<ImgProps, ImgEvents, ImgSlots> {
|
|
39
39
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>import { twMerge } from "tailwind-merge";
|
|
2
2
|
export let divClass = "grid";
|
|
3
3
|
export let cols = "grid-cols-1 sm:grid-cols-2";
|
|
4
|
-
export let gap;
|
|
4
|
+
export let gap = 6;
|
|
5
5
|
let classDiv = twMerge(divClass, "gap-" + String(gap), cols);
|
|
6
6
|
</script>
|
|
7
7
|
|
|
@@ -13,7 +13,7 @@ let classDiv = twMerge(divClass, "gap-" + String(gap), cols);
|
|
|
13
13
|
@component
|
|
14
14
|
[Go to docs](https://flowbite-svelte.com/)
|
|
15
15
|
## Props
|
|
16
|
-
@prop export let divClass:
|
|
17
|
-
@prop export let cols:
|
|
18
|
-
@prop export let gap:
|
|
16
|
+
@prop export let divClass: $$Props['divClass'] = 'grid';
|
|
17
|
+
@prop export let cols: $$Props['cols'] = 'grid-cols-1 sm:grid-cols-2';
|
|
18
|
+
@prop export let gap: $$Props['gap'] = 6;
|
|
19
19
|
-->
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
3
|
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
gap: number;
|
|
4
|
+
props: HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
divClass?: string;
|
|
6
|
+
cols?: string;
|
|
7
|
+
gap?: number;
|
|
8
8
|
};
|
|
9
9
|
events: {
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
@@ -19,9 +19,9 @@ export type LayoutSlots = typeof __propDef.slots;
|
|
|
19
19
|
/**
|
|
20
20
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
21
21
|
* ## Props
|
|
22
|
-
* @prop export let divClass:
|
|
23
|
-
* @prop export let cols:
|
|
24
|
-
* @prop export let gap:
|
|
22
|
+
* @prop export let divClass: $$Props['divClass'] = 'grid';
|
|
23
|
+
* @prop export let cols: $$Props['cols'] = 'grid-cols-1 sm:grid-cols-2';
|
|
24
|
+
* @prop export let gap: $$Props['gap'] = 6;
|
|
25
25
|
*/
|
|
26
26
|
export default class Layout extends SvelteComponentTyped<LayoutProps, LayoutEvents, LayoutSlots> {
|
|
27
27
|
}
|
|
@@ -12,6 +12,6 @@ let classLi = twMerge(liClass, icon && "flex items-center", $$props.class);
|
|
|
12
12
|
@component
|
|
13
13
|
[Go to docs](https://flowbite-svelte.com/)
|
|
14
14
|
## Props
|
|
15
|
-
@prop export let icon:
|
|
16
|
-
@prop export let liClass:
|
|
15
|
+
@prop export let icon: $$Props['icon'] = false;
|
|
16
|
+
@prop export let liClass: $$Props['liClass'] = '';
|
|
17
17
|
-->
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { HTMLLiAttributes } from 'svelte/elements';
|
|
2
3
|
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
liClass?: string | undefined;
|
|
4
|
+
props: HTMLLiAttributes & {
|
|
5
|
+
icon?: boolean;
|
|
6
|
+
liClass?: string;
|
|
7
7
|
};
|
|
8
8
|
events: {
|
|
9
9
|
[evt: string]: CustomEvent<any>;
|
|
@@ -18,8 +18,8 @@ export type LiSlots = typeof __propDef.slots;
|
|
|
18
18
|
/**
|
|
19
19
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
20
20
|
* ## Props
|
|
21
|
-
* @prop export let icon:
|
|
22
|
-
* @prop export let liClass:
|
|
21
|
+
* @prop export let icon: $$Props['icon'] = false;
|
|
22
|
+
* @prop export let liClass: $$Props['liClass'] = '';
|
|
23
23
|
*/
|
|
24
24
|
export default class Li extends SvelteComponentTyped<LiProps, LiEvents, LiSlots> {
|
|
25
25
|
}
|
|
@@ -22,7 +22,7 @@ let classList = twMerge(lists[list ?? (tag === "ul" ? "disc" : tag === "ol" ? "d
|
|
|
22
22
|
@component
|
|
23
23
|
[Go to docs](https://flowbite-svelte.com/)
|
|
24
24
|
## Props
|
|
25
|
-
@prop export let tag: '
|
|
26
|
-
@prop export let list: '
|
|
27
|
-
@prop export let position: '
|
|
25
|
+
@prop export let tag: $$Props['tag'] = 'ul';
|
|
26
|
+
@prop export let list: $$Props['list'] = undefined;
|
|
27
|
+
@prop export let position: NonNullable<$$Props['position']> = 'inside';
|
|
28
28
|
-->
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { HTMLAttributes, HTMLOlAttributes } from 'svelte/elements';
|
|
2
3
|
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
|
|
5
|
-
tag?: ("ul" | "ol" | "dl") | undefined;
|
|
4
|
+
props: (HTMLAttributes<HTMLUListElement> & {
|
|
5
|
+
tag?: "ul" | "ol" | "dl";
|
|
6
6
|
list?: "disc" | "none" | "decimal" | undefined;
|
|
7
|
-
position?:
|
|
8
|
-
}
|
|
7
|
+
position?: "inside" | "outside";
|
|
8
|
+
}) | (HTMLOlAttributes & {
|
|
9
|
+
tag?: "ul" | "ol" | "dl";
|
|
10
|
+
list?: "disc" | "none" | "decimal" | undefined;
|
|
11
|
+
position?: "inside" | "outside";
|
|
12
|
+
}) | (HTMLAttributes<HTMLDListElement> & {
|
|
13
|
+
tag?: "ul" | "ol" | "dl";
|
|
14
|
+
list?: "disc" | "none" | "decimal" | undefined;
|
|
15
|
+
position?: "inside" | "outside";
|
|
16
|
+
});
|
|
9
17
|
events: {
|
|
10
18
|
[evt: string]: CustomEvent<any>;
|
|
11
19
|
};
|
|
@@ -13,16 +21,16 @@ declare const __propDef: {
|
|
|
13
21
|
default: {};
|
|
14
22
|
};
|
|
15
23
|
};
|
|
16
|
-
|
|
24
|
+
type ListProps_ = typeof __propDef.props;
|
|
25
|
+
export { ListProps_ as ListProps };
|
|
17
26
|
export type ListEvents = typeof __propDef.events;
|
|
18
27
|
export type ListSlots = typeof __propDef.slots;
|
|
19
28
|
/**
|
|
20
29
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
21
30
|
* ## Props
|
|
22
|
-
* @prop export let tag: '
|
|
23
|
-
* @prop export let list: '
|
|
24
|
-
* @prop export let position: '
|
|
31
|
+
* @prop export let tag: $$Props['tag'] = 'ul';
|
|
32
|
+
* @prop export let list: $$Props['list'] = undefined;
|
|
33
|
+
* @prop export let position: NonNullable<$$Props['position']> = 'inside';
|
|
25
34
|
*/
|
|
26
|
-
export default class List extends SvelteComponentTyped<
|
|
35
|
+
export default class List extends SvelteComponentTyped<ListProps_, ListEvents, ListSlots> {
|
|
27
36
|
}
|
|
28
|
-
export {};
|
|
@@ -12,7 +12,7 @@ export let markClass = "px-2 rounded";
|
|
|
12
12
|
@component
|
|
13
13
|
[Go to docs](https://flowbite-svelte.com/)
|
|
14
14
|
## Props
|
|
15
|
-
@prop export let color:
|
|
16
|
-
@prop export let bgColor:
|
|
17
|
-
@prop export let markClass:
|
|
15
|
+
@prop export let color: $$Props['color'] = 'text-white dark:bg-blue-500';
|
|
16
|
+
@prop export let bgColor: $$Props['bgColor'] = 'bg-blue-600';
|
|
17
|
+
@prop export let markClass: $$Props['markClass'] = 'px-2 rounded';
|
|
18
18
|
-->
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
3
|
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
markClass?: string | undefined;
|
|
4
|
+
props: HTMLAttributes<HTMLElement> & {
|
|
5
|
+
color?: string;
|
|
6
|
+
bgColor?: string;
|
|
7
|
+
markClass?: string;
|
|
8
8
|
};
|
|
9
9
|
events: {
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
@@ -19,9 +19,9 @@ export type MarkSlots = typeof __propDef.slots;
|
|
|
19
19
|
/**
|
|
20
20
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
21
21
|
* ## Props
|
|
22
|
-
* @prop export let color:
|
|
23
|
-
* @prop export let bgColor:
|
|
24
|
-
* @prop export let markClass:
|
|
22
|
+
* @prop export let color: $$Props['color'] = 'text-white dark:bg-blue-500';
|
|
23
|
+
* @prop export let bgColor: $$Props['bgColor'] = 'bg-blue-600';
|
|
24
|
+
* @prop export let markClass: $$Props['markClass'] = 'px-2 rounded';
|
|
25
25
|
*/
|
|
26
26
|
export default class Mark extends SvelteComponentTyped<MarkProps, MarkEvents, MarkSlots> {
|
|
27
27
|
}
|
package/dist/typography/P.svelte
CHANGED
|
@@ -74,16 +74,16 @@ $: classP = twMerge(size && sizes[size], opacity && colorAndopacity || color &&
|
|
|
74
74
|
@component
|
|
75
75
|
[Go to docs](https://flowbite-svelte.com/)
|
|
76
76
|
## Props
|
|
77
|
-
@prop export let color:
|
|
78
|
-
@prop export let height: '
|
|
79
|
-
@prop export let align: '
|
|
80
|
-
@prop export let justify:
|
|
81
|
-
@prop export let italic:
|
|
82
|
-
@prop export let firstupper:
|
|
83
|
-
@prop export let upperClass:
|
|
84
|
-
@prop export let opacity:
|
|
85
|
-
@prop export let whitespace: '
|
|
86
|
-
@prop export let size:
|
|
87
|
-
@prop export let space: '
|
|
88
|
-
@prop export let weight:
|
|
77
|
+
@prop export let color: NonNullable<$$Props['color']> = 'text-gray-900 dark:text-white';
|
|
78
|
+
@prop export let height: $$Props['height'] = 'normal';
|
|
79
|
+
@prop export let align: $$Props['align'] = 'left';
|
|
80
|
+
@prop export let justify: $$Props['justify'] = false;
|
|
81
|
+
@prop export let italic: $$Props['italic'] = false;
|
|
82
|
+
@prop export let firstupper: $$Props['firstupper'] = false;
|
|
83
|
+
@prop export let upperClass: $$Props['upperClass'] = 'first-line:uppercase first-line:tracking-widest first-letter:text-7xl first-letter:font-bold first-letter:text-gray-900 dark:first-letter:text-gray-100 first-letter:me-3 first-letter:float-left';
|
|
84
|
+
@prop export let opacity: $$Props['opacity'] = undefined;
|
|
85
|
+
@prop export let whitespace: $$Props['whitespace'] = 'normal';
|
|
86
|
+
@prop export let size: $$Props['size'] = 'base';
|
|
87
|
+
@prop export let space: $$Props['space'] = undefined;
|
|
88
|
+
@prop export let weight: $$Props['weight'] = 'normal';
|
|
89
89
|
-->
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
3
|
import type { PsizeType, PweightType } from '../types';
|
|
3
4
|
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
weight?: PweightType | undefined;
|
|
5
|
+
props: HTMLAttributes<HTMLParagraphElement> & {
|
|
6
|
+
color?: string;
|
|
7
|
+
height?: "normal" | "relaxed" | "loose";
|
|
8
|
+
align?: "left" | "center" | "right";
|
|
9
|
+
justify?: boolean;
|
|
10
|
+
italic?: boolean;
|
|
11
|
+
firstupper?: boolean;
|
|
12
|
+
upperClass?: string;
|
|
13
|
+
opacity?: number;
|
|
14
|
+
whitespace?: "normal" | "nowrap" | "pre" | "preline" | "prewrap";
|
|
15
|
+
size?: PsizeType;
|
|
16
|
+
space?: "tighter" | "tight" | "normal" | "wide" | "wider" | "widest";
|
|
17
|
+
weight?: PweightType;
|
|
18
18
|
};
|
|
19
19
|
events: {
|
|
20
20
|
[evt: string]: CustomEvent<any>;
|
|
@@ -29,18 +29,18 @@ export type PSlots = typeof __propDef.slots;
|
|
|
29
29
|
/**
|
|
30
30
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
31
31
|
* ## Props
|
|
32
|
-
* @prop export let color:
|
|
33
|
-
* @prop export let height: '
|
|
34
|
-
* @prop export let align: '
|
|
35
|
-
* @prop export let justify:
|
|
36
|
-
* @prop export let italic:
|
|
37
|
-
* @prop export let firstupper:
|
|
38
|
-
* @prop export let upperClass:
|
|
39
|
-
* @prop export let opacity:
|
|
40
|
-
* @prop export let whitespace: '
|
|
41
|
-
* @prop export let size:
|
|
42
|
-
* @prop export let space: '
|
|
43
|
-
* @prop export let weight:
|
|
32
|
+
* @prop export let color: NonNullable<$$Props['color']> = 'text-gray-900 dark:text-white';
|
|
33
|
+
* @prop export let height: $$Props['height'] = 'normal';
|
|
34
|
+
* @prop export let align: $$Props['align'] = 'left';
|
|
35
|
+
* @prop export let justify: $$Props['justify'] = false;
|
|
36
|
+
* @prop export let italic: $$Props['italic'] = false;
|
|
37
|
+
* @prop export let firstupper: $$Props['firstupper'] = false;
|
|
38
|
+
* @prop export let upperClass: $$Props['upperClass'] = 'first-line:uppercase first-line:tracking-widest first-letter:text-7xl first-letter:font-bold first-letter:text-gray-900 dark:first-letter:text-gray-100 first-letter:me-3 first-letter:float-left';
|
|
39
|
+
* @prop export let opacity: $$Props['opacity'] = undefined;
|
|
40
|
+
* @prop export let whitespace: $$Props['whitespace'] = 'normal';
|
|
41
|
+
* @prop export let size: $$Props['size'] = 'base';
|
|
42
|
+
* @prop export let space: $$Props['space'] = undefined;
|
|
43
|
+
* @prop export let weight: $$Props['weight'] = 'normal';
|
|
44
44
|
*/
|
|
45
45
|
export default class P extends SvelteComponentTyped<PProps, PEvents, PSlots> {
|
|
46
46
|
}
|
|
@@ -11,6 +11,6 @@ export let secondaryClass = "font-semibold";
|
|
|
11
11
|
@component
|
|
12
12
|
[Go to docs](https://flowbite-svelte.com/)
|
|
13
13
|
## Props
|
|
14
|
-
@prop export let color:
|
|
15
|
-
@prop export let secondaryClass:
|
|
14
|
+
@prop export let color: $$Props['color'] = 'text-gray-500 dark:text-gray-400';
|
|
15
|
+
@prop export let secondaryClass: $$Props['secondaryClass'] = 'font-semibold';
|
|
16
16
|
-->
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
3
|
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
secondaryClass?: string | undefined;
|
|
4
|
+
props: HTMLAttributes<HTMLElement> & {
|
|
5
|
+
color?: string;
|
|
6
|
+
secondaryClass?: string;
|
|
7
7
|
};
|
|
8
8
|
events: {
|
|
9
9
|
[evt: string]: CustomEvent<any>;
|
|
@@ -18,8 +18,8 @@ export type SecondarySlots = typeof __propDef.slots;
|
|
|
18
18
|
/**
|
|
19
19
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
20
20
|
* ## Props
|
|
21
|
-
* @prop export let color:
|
|
22
|
-
* @prop export let secondaryClass:
|
|
21
|
+
* @prop export let color: $$Props['color'] = 'text-gray-500 dark:text-gray-400';
|
|
22
|
+
* @prop export let secondaryClass: $$Props['secondaryClass'] = 'font-semibold';
|
|
23
23
|
*/
|
|
24
24
|
export default class Secondary extends SvelteComponentTyped<SecondaryProps, SecondaryEvents, SecondarySlots> {
|
|
25
25
|
}
|
|
@@ -20,13 +20,13 @@ let classSpan = twMerge(italic && "italic", underline && underlineClass, linethr
|
|
|
20
20
|
@component
|
|
21
21
|
[Go to docs](https://flowbite-svelte.com/)
|
|
22
22
|
## Props
|
|
23
|
-
@prop export let italic:
|
|
24
|
-
@prop export let underline:
|
|
25
|
-
@prop export let linethrough:
|
|
26
|
-
@prop export let uppercase:
|
|
27
|
-
@prop export let gradient:
|
|
28
|
-
@prop export let highlight:
|
|
29
|
-
@prop export let highlightClass:
|
|
30
|
-
@prop export let decorationClass:
|
|
31
|
-
@prop export let gradientClass:
|
|
23
|
+
@prop export let italic: $$Props['italic'] = false;
|
|
24
|
+
@prop export let underline: $$Props['underline'] = false;
|
|
25
|
+
@prop export let linethrough: $$Props['linethrough'] = false;
|
|
26
|
+
@prop export let uppercase: $$Props['uppercase'] = false;
|
|
27
|
+
@prop export let gradient: $$Props['gradient'] = false;
|
|
28
|
+
@prop export let highlight: $$Props['highlight'] = false;
|
|
29
|
+
@prop export let highlightClass: $$Props['highlightClass'] = 'text-blue-600 dark:text-blue-500';
|
|
30
|
+
@prop export let decorationClass: $$Props['decorationClass'] = 'decoration-2 decoration-blue-400 dark:decoration-blue-600';
|
|
31
|
+
@prop export let gradientClass: $$Props['gradientClass'] = 'text-transparent bg-clip-text bg-gradient-to-r to-emerald-600 from-sky-400';
|
|
32
32
|
-->
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
3
|
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
gradientClass?: string | undefined;
|
|
4
|
+
props: HTMLAttributes<HTMLSpanElement> & {
|
|
5
|
+
italic?: boolean;
|
|
6
|
+
underline?: boolean;
|
|
7
|
+
linethrough?: boolean;
|
|
8
|
+
uppercase?: boolean;
|
|
9
|
+
gradient?: boolean;
|
|
10
|
+
highlight?: boolean;
|
|
11
|
+
highlightClass?: string;
|
|
12
|
+
decorationClass?: string;
|
|
13
|
+
gradientClass?: string;
|
|
14
14
|
};
|
|
15
15
|
events: {
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
@@ -25,15 +25,15 @@ export type SpanSlots = typeof __propDef.slots;
|
|
|
25
25
|
/**
|
|
26
26
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
27
27
|
* ## Props
|
|
28
|
-
* @prop export let italic:
|
|
29
|
-
* @prop export let underline:
|
|
30
|
-
* @prop export let linethrough:
|
|
31
|
-
* @prop export let uppercase:
|
|
32
|
-
* @prop export let gradient:
|
|
33
|
-
* @prop export let highlight:
|
|
34
|
-
* @prop export let highlightClass:
|
|
35
|
-
* @prop export let decorationClass:
|
|
36
|
-
* @prop export let gradientClass:
|
|
28
|
+
* @prop export let italic: $$Props['italic'] = false;
|
|
29
|
+
* @prop export let underline: $$Props['underline'] = false;
|
|
30
|
+
* @prop export let linethrough: $$Props['linethrough'] = false;
|
|
31
|
+
* @prop export let uppercase: $$Props['uppercase'] = false;
|
|
32
|
+
* @prop export let gradient: $$Props['gradient'] = false;
|
|
33
|
+
* @prop export let highlight: $$Props['highlight'] = false;
|
|
34
|
+
* @prop export let highlightClass: $$Props['highlightClass'] = 'text-blue-600 dark:text-blue-500';
|
|
35
|
+
* @prop export let decorationClass: $$Props['decorationClass'] = 'decoration-2 decoration-blue-400 dark:decoration-blue-600';
|
|
36
|
+
* @prop export let gradientClass: $$Props['gradientClass'] = 'text-transparent bg-clip-text bg-gradient-to-r to-emerald-600 from-sky-400';
|
|
37
37
|
*/
|
|
38
38
|
export default class Span extends SvelteComponentTyped<SpanProps, SpanEvents, SpanSlots> {
|
|
39
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.21",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": {
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@changesets/cli": "^2.27.8",
|
|
16
|
-
"@docsearch/css": "^3.6.
|
|
17
|
-
"@docsearch/js": "^3.6.
|
|
16
|
+
"@docsearch/css": "^3.6.2",
|
|
17
|
+
"@docsearch/js": "^3.6.2",
|
|
18
18
|
"@playwright/test": "^1.47.2",
|
|
19
19
|
"@sveltejs/adapter-vercel": "^5.4.4",
|
|
20
|
-
"@sveltejs/kit": "^2.
|
|
20
|
+
"@sveltejs/kit": "^2.6.1",
|
|
21
21
|
"@sveltejs/package": "2.3.2",
|
|
22
22
|
"@sveltejs/vite-plugin-svelte": "^3.1.2",
|
|
23
23
|
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
|
|
@@ -25,31 +25,31 @@
|
|
|
25
25
|
"autoprefixer": "^10.4.20",
|
|
26
26
|
"dayjs": "^1.11.13",
|
|
27
27
|
"esbuild": "0.23.1",
|
|
28
|
-
"eslint": "^9.11.
|
|
28
|
+
"eslint": "^9.11.1",
|
|
29
29
|
"eslint-config-prettier": "^9.1.0",
|
|
30
|
-
"eslint-plugin-svelte": "^2.44.
|
|
31
|
-
"flowbite-svelte": "^0.46.
|
|
30
|
+
"eslint-plugin-svelte": "^2.44.1",
|
|
31
|
+
"flowbite-svelte": "^0.46.21",
|
|
32
32
|
"flowbite-svelte-blocks": "^1.1.3",
|
|
33
33
|
"flowbite-svelte-icons": "^1.6.1",
|
|
34
34
|
"mdsvex": "^0.12.3",
|
|
35
35
|
"mdsvexamples": "^0.4.1",
|
|
36
36
|
"postcss": "^8.4.47",
|
|
37
37
|
"prettier": "^3.3.3",
|
|
38
|
-
"prettier-plugin-svelte": "^3.2.
|
|
38
|
+
"prettier-plugin-svelte": "^3.2.7",
|
|
39
39
|
"prism-themes": "^1.9.0",
|
|
40
40
|
"publint": "^0.2.11",
|
|
41
41
|
"svelte": "^4.2.19",
|
|
42
|
-
"svelte-check": "^4.0.
|
|
43
|
-
"svelte-lib-helpers": "^0.4.
|
|
42
|
+
"svelte-check": "^4.0.4",
|
|
43
|
+
"svelte-lib-helpers": "^0.4.9",
|
|
44
44
|
"svelte-meta-tags": "^3.1.4",
|
|
45
|
-
"svelte-preprocess": "^6.0.
|
|
46
|
-
"svelte2tsx": "^0.7.
|
|
45
|
+
"svelte-preprocess": "^6.0.3",
|
|
46
|
+
"svelte2tsx": "^0.7.21",
|
|
47
47
|
"tailwind-merge": "^1.13.1",
|
|
48
|
-
"tailwindcss": "^3.4.
|
|
48
|
+
"tailwindcss": "^3.4.13",
|
|
49
49
|
"tslib": "^2.7.0",
|
|
50
50
|
"typescript": "^5.6.2",
|
|
51
51
|
"typescript-eslint": "8.4.0",
|
|
52
|
-
"vite": "^5.4.
|
|
52
|
+
"vite": "^5.4.8",
|
|
53
53
|
"vitest": "^1.6.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
102
|
"@floating-ui/dom": "^1.6.11",
|
|
103
|
-
"apexcharts": "^3.
|
|
104
|
-
"flowbite": "^2.5.
|
|
103
|
+
"apexcharts": "^3.54.0",
|
|
104
|
+
"flowbite": "^2.5.2",
|
|
105
105
|
"tailwind-merge": "^2.5.2"
|
|
106
106
|
},
|
|
107
107
|
"engines": {
|
|
@@ -753,9 +753,10 @@
|
|
|
753
753
|
"test:unit": "vitest",
|
|
754
754
|
"gen:exports": "svelte-lib-helpers exports",
|
|
755
755
|
"gen:docs": "svelte-lib-helpers docs",
|
|
756
|
-
"gen:compo-data": "svelte-lib-helpers
|
|
756
|
+
"gen:compo-data": "svelte-lib-helpers component-data",
|
|
757
|
+
"gen:componentData": "svelte-lib-helpers component-data",
|
|
757
758
|
"copy:package": "svelte-lib-helpers package",
|
|
758
|
-
"lib-helpers": "npm run gen:docs && npm run gen:
|
|
759
|
+
"lib-helpers": "npm run gen:docs && npm run gen:componentData && npm run package && npm run gen:exports && npm run copy:package && npm run format",
|
|
759
760
|
"package:publish": "standard-version && git push --follow-tags origin main && npm publish"
|
|
760
761
|
}
|
|
761
762
|
}
|