flowbite-svelte 1.30.0 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/Accordion.svelte +5 -4
- package/dist/accordion/AccordionItem.svelte +4 -4
- package/dist/alert/Alert.svelte +1 -1
- package/dist/avatar/Avatar.svelte +1 -1
- package/dist/badge/Badge.svelte +7 -3
- package/dist/banner/Banner.svelte +7 -3
- package/dist/bottom-navigation/BottomNav.svelte +7 -3
- package/dist/bottom-navigation/BottomNavHeader.svelte +7 -3
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte +1 -1
- package/dist/bottom-navigation/BottomNavItem.svelte +7 -3
- package/dist/breadcrumb/Breadcrumb.svelte +7 -3
- package/dist/breadcrumb/BreadcrumbItem.svelte +1 -1
- package/dist/button-group/ButtonGroup.svelte +1 -1
- package/dist/buttons/Button.svelte +1 -1
- package/dist/buttons/GradientButton.svelte +1 -1
- package/dist/card/Card.svelte +7 -3
- package/dist/carousel/Carousel.svelte +7 -3
- package/dist/carousel/CarouselIndicators.svelte +1 -1
- package/dist/carousel/ControlButton.svelte +1 -1
- package/dist/carousel/Controls.svelte +1 -1
- package/dist/carousel/Slide.svelte +1 -1
- package/dist/carousel/Thumbnail.svelte +1 -1
- package/dist/carousel/Thumbnails.svelte +1 -1
- package/dist/clipboard/Clipboard.svelte +1 -1
- package/dist/clipboard-manager/ClipboardManager.svelte +1 -1
- package/dist/command-palette/CommandPalette.svelte +2 -2
- package/dist/command-palette/CommandPalette.svelte.d.ts +1 -1
- package/dist/context.d.ts +4 -1
- package/dist/context.js +0 -1
- package/dist/darkmode/DarkMode.svelte +1 -1
- package/dist/datepicker/Datepicker.svelte +1 -1
- package/dist/device-mockups/Android.svelte +2 -2
- package/dist/device-mockups/DefaultMockup.svelte +2 -2
- package/dist/device-mockups/Desktop.svelte +6 -2
- package/dist/device-mockups/Ios.svelte +2 -2
- package/dist/device-mockups/Laptop.svelte +2 -2
- package/dist/device-mockups/Smartwatch.svelte +2 -2
- package/dist/device-mockups/Tablet.svelte +2 -2
- package/dist/drawer/Drawer.svelte +1 -1
- package/dist/drawer/DrawerHandle.svelte +1 -1
- package/dist/drawer/Drawerhead.svelte +7 -3
- package/dist/dropdown/Dropdown.svelte +1 -1
- package/dist/dropdown/DropdownDivider.svelte +1 -1
- package/dist/dropdown/DropdownGroup.svelte +1 -1
- package/dist/dropdown/DropdownHeader.svelte +1 -1
- package/dist/dropdown/DropdownItem.svelte +7 -3
- package/dist/footer/Footer.svelte +1 -1
- package/dist/footer/FooterBrand.svelte +1 -1
- package/dist/footer/FooterCopyright.svelte +7 -3
- package/dist/footer/FooterIcon.svelte +1 -1
- package/dist/footer/FooterLink.svelte +7 -3
- package/dist/footer/FooterLinkGroup.svelte +1 -1
- package/dist/forms/button-toggle/ButtonToggle.svelte +7 -3
- package/dist/forms/button-toggle/ButtonToggleGroup.svelte +1 -1
- package/dist/forms/checkbox/Checkbox.svelte +7 -3
- package/dist/forms/checkbox/CheckboxButton.svelte +1 -1
- package/dist/forms/dropzone/Dropzone.svelte +1 -1
- package/dist/forms/fileupload/Fileupload.svelte +7 -3
- package/dist/forms/floating-label/FloatingLabelInput.svelte +3 -3
- package/dist/forms/helper/Helper.svelte +1 -1
- package/dist/forms/input-field/Input.svelte +3 -4
- package/dist/forms/label/Label.svelte +1 -1
- package/dist/forms/phoneinput/PhoneInput.svelte +1 -1
- package/dist/forms/radio/Radio.svelte +7 -3
- package/dist/forms/radio/RadioButton.svelte +1 -1
- package/dist/forms/range/Range.svelte +1 -1
- package/dist/forms/search/Search.svelte +7 -3
- package/dist/forms/select/MultiSelect.svelte +13 -6
- package/dist/forms/select/Select.svelte +7 -3
- package/dist/forms/tags/Tags.svelte +7 -4
- package/dist/forms/textarea/Textarea.svelte +3 -3
- package/dist/forms/timepicker/Timepicker.svelte +1 -1
- package/dist/forms/toggle/Toggle.svelte +7 -3
- package/dist/gallery/Gallery.svelte +7 -3
- package/dist/indicator/Indicator.svelte +1 -1
- package/dist/kanban/KanbanBoard.svelte +1 -1
- package/dist/kanban/KanbanCard.svelte +2 -2
- package/dist/kanban/KanbanCard.svelte.d.ts +1 -1
- package/dist/kbd/Kbd.svelte +1 -1
- package/dist/list-group/Listgroup.svelte +1 -1
- package/dist/list-group/ListgroupItem.svelte +1 -1
- package/dist/mega-menu/MegaMenu.svelte +7 -3
- package/dist/modal/Modal.svelte +7 -3
- package/dist/navbar/NavBrand.svelte +1 -1
- package/dist/navbar/NavContainer.svelte +1 -1
- package/dist/navbar/NavHamburger.svelte +7 -3
- package/dist/navbar/NavLi.svelte +1 -1
- package/dist/navbar/NavUl.svelte +7 -3
- package/dist/navbar/Navbar.svelte +1 -1
- package/dist/pagination/Pagination.svelte +1 -1
- package/dist/pagination/PaginationButton.svelte +1 -1
- package/dist/pagination/PaginationItem.svelte +1 -1
- package/dist/pagination/PaginationNav.svelte +7 -3
- package/dist/popover/Popover.svelte +7 -3
- package/dist/progress/Progressbar.svelte +1 -1
- package/dist/progress/Progressradial.svelte +1 -1
- package/dist/rating/AdvancedRating.svelte +3 -3
- package/dist/rating/Rating.svelte +7 -3
- package/dist/rating/Review.svelte +3 -3
- package/dist/rating/ScoreRating.svelte +1 -1
- package/dist/scroll-spy/ScrollSpy.svelte +2 -2
- package/dist/scroll-spy/ScrollSpy.svelte.d.ts +1 -1
- package/dist/sidebar/Sidebar.svelte +7 -3
- package/dist/sidebar/SidebarBrand.svelte +7 -3
- package/dist/sidebar/SidebarButton.svelte +1 -1
- package/dist/sidebar/SidebarCta.svelte +7 -3
- package/dist/sidebar/SidebarDropdownWrapper.svelte +7 -3
- package/dist/skeleton/CardPlaceholder.svelte +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +1 -1
- package/dist/skeleton/Skeleton.svelte +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +1 -1
- package/dist/speed-dial/SpeedDial.svelte +7 -4
- package/dist/speed-dial/SpeedDialButton.svelte +7 -4
- package/dist/spinner/Spinner.svelte +1 -1
- package/dist/split-pane/Divider.svelte +4 -4
- package/dist/split-pane/Divider.svelte.d.ts +1 -1
- package/dist/split-pane/Pane.svelte +2 -2
- package/dist/split-pane/Pane.svelte.d.ts +1 -1
- package/dist/split-pane/SplitPane.svelte +2 -2
- package/dist/split-pane/SplitPane.svelte.d.ts +1 -1
- package/dist/step-indicator/StepIndicator.svelte +1 -1
- package/dist/stepper/BreadcrumbStepper.svelte +1 -1
- package/dist/stepper/DetailedStepper.svelte +1 -1
- package/dist/stepper/ProgressStepper.svelte +1 -1
- package/dist/stepper/Stepper.svelte +1 -1
- package/dist/stepper/TimelineStepper.svelte +1 -1
- package/dist/stepper/VerticalStepper.svelte +1 -1
- package/dist/table/Table.svelte +7 -3
- package/dist/table/TableBodyCell.svelte +1 -1
- package/dist/table/TableBodyRow.svelte +1 -1
- package/dist/table/TableHead.svelte +1 -1
- package/dist/table/TableHeadCell.svelte +1 -1
- package/dist/table/TableSearch.svelte +3 -3
- package/dist/tabs/TabItem.svelte +1 -1
- package/dist/tabs/Tabs.svelte +7 -3
- package/dist/theme/ThemeProvider.svelte +11 -6
- package/dist/theme/themeUtils.js +4 -2
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/ActivityItem.svelte +3 -3
- package/dist/timeline/Group.svelte +3 -3
- package/dist/timeline/GroupItem.svelte +3 -3
- package/dist/timeline/Timeline.svelte +3 -5
- package/dist/timeline/TimelineItem.svelte +9 -5
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -0
- package/dist/timeline/theme.d.ts +3 -0
- package/dist/timeline/theme.js +2 -1
- package/dist/toast/Toast.svelte +4 -4
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/toast/ToastContainer.svelte +2 -2
- package/dist/toast/ToastContainer.svelte.d.ts +1 -1
- package/dist/toolbar/Toolbar.svelte +1 -1
- package/dist/toolbar/ToolbarButton.svelte +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +1 -1
- package/dist/tooltip/Tooltip.svelte +1 -1
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/tour/Tour.svelte +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/typography/a/A.svelte +2 -2
- package/dist/typography/a/A.svelte.d.ts +1 -1
- package/dist/typography/blockquote/Blockquote.svelte +2 -2
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte +2 -2
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/heading/Heading.svelte +2 -2
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/hr/Hr.svelte +3 -3
- package/dist/typography/img/Img.svelte +4 -4
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- package/dist/typography/layout/Layout.svelte +2 -2
- 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 +2 -2
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/mark/Mark.svelte +2 -2
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/paragraph/P.svelte +2 -2
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/secondary/Secondary.svelte +2 -2
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/span/Span.svelte +2 -2
- 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 +2 -2
- package/dist/video/Video.svelte.d.ts +1 -1
- package/dist/virtual-masonry/VirtualMasonry.svelte +1 -1
- package/dist/virtuallist/VirtualList.svelte +1 -1
- package/package.json +22 -22
package/dist/timeline/theme.js
CHANGED
|
@@ -28,7 +28,7 @@ export const groupItem = tv({
|
|
|
28
28
|
img: "me-3 mb-3 w-12 h-12 rounded-full sm:mb-0",
|
|
29
29
|
div: "text-gray-600 dark:text-gray-400",
|
|
30
30
|
title: "text-base font-normal",
|
|
31
|
-
span: "inline-flex items-center text-xs font-
|
|
31
|
+
span: "inline-flex items-center bg-gray-100 border border-gray-200 text-xs font-medium px-1.5 py-0.5 rounded",
|
|
32
32
|
svg: "me-1 h-3 w-3"
|
|
33
33
|
}
|
|
34
34
|
});
|
|
@@ -94,6 +94,7 @@ export const timelineItem = tv({
|
|
|
94
94
|
slots: {
|
|
95
95
|
base: "relative",
|
|
96
96
|
div: "",
|
|
97
|
+
defaultDiv: "absolute w-2 h-2 bg-gray-200 rounded-full mt-1.5 -start-5 border border-buffer",
|
|
97
98
|
time: "",
|
|
98
99
|
h3: "",
|
|
99
100
|
svg: "w-4 h-4",
|
package/dist/toast/Toast.svelte
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
8
8
|
import { createDismissableContext } from "../utils/dismissable";
|
|
9
|
+
import { untrack } from "svelte";
|
|
9
10
|
|
|
10
11
|
let {
|
|
11
12
|
children,
|
|
@@ -24,10 +25,9 @@
|
|
|
24
25
|
...restProps
|
|
25
26
|
}: ToastProps = $props();
|
|
26
27
|
|
|
27
|
-
// svelte-ignore state_referenced_locally
|
|
28
28
|
warnThemeDeprecation(
|
|
29
29
|
"Toast",
|
|
30
|
-
{ iconClass, contentClass },
|
|
30
|
+
untrack(() => ({ iconClass, contentClass })),
|
|
31
31
|
{
|
|
32
32
|
iconClass: "icon",
|
|
33
33
|
contentClass: "content"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
|
|
44
|
-
const theme = getTheme("toast");
|
|
44
|
+
const theme = $derived(getTheme("toast"));
|
|
45
45
|
|
|
46
46
|
const { base, icon: iconVariants, content, close } = $derived(toast({ color, position, align }));
|
|
47
47
|
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
@component
|
|
79
79
|
[Go to docs](https://flowbite-svelte.com/)
|
|
80
80
|
## Type
|
|
81
|
-
[ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
81
|
+
[ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1979)
|
|
82
82
|
## Props
|
|
83
83
|
@prop children
|
|
84
84
|
@prop icon
|
|
@@ -2,7 +2,7 @@ import type { ToastProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1979)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { children, position = "top-right", class: className, ...restProps }: ToastContainerProps = $props();
|
|
8
8
|
|
|
9
|
-
const theme = getTheme("toastContainer");
|
|
9
|
+
const theme = $derived(getTheme("toastContainer"));
|
|
10
10
|
|
|
11
11
|
const positionClasses = {
|
|
12
12
|
"top-left": "top-4 left-4",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@component
|
|
27
27
|
[Go to docs](https://flowbite-svelte.com/)
|
|
28
28
|
## Type
|
|
29
|
-
[ToastContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
29
|
+
[ToastContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1994)
|
|
30
30
|
## Props
|
|
31
31
|
@prop children
|
|
32
32
|
@prop position = "top-right"
|
|
@@ -2,7 +2,7 @@ import type { ToastContainerProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ToastContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ToastContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1994)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop position = "top-right"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { children, color, name, "aria-label": ariaLabel, size, class: className, ...restProps }: ToolbarButtonProps = $props();
|
|
8
8
|
|
|
9
|
-
const theme = getTheme("toolbarButton");
|
|
9
|
+
const theme = $derived(getTheme("toolbarButton"));
|
|
10
10
|
|
|
11
11
|
const buttonCls = $derived(
|
|
12
12
|
toolbarButton({
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
let { children, spacing, padding, position = "middle", class: className, ...restProps }: ToolbarGroupProps = $props();
|
|
9
9
|
|
|
10
|
-
const theme = getTheme("toolbarGroup");
|
|
10
|
+
const theme = $derived(getTheme("toolbarGroup"));
|
|
11
11
|
|
|
12
12
|
const groupCls = $derived(toolbarGroup({ spacing, padding, position, class: clsx(theme, className) }));
|
|
13
13
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
@component
|
|
37
37
|
[Go to docs](https://flowbite-svelte.com/)
|
|
38
38
|
## Type
|
|
39
|
-
[TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
39
|
+
[TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2001)
|
|
40
40
|
## Props
|
|
41
41
|
@prop type = "dark"
|
|
42
42
|
@prop color = undefined
|
|
@@ -2,7 +2,7 @@ import type { TooltipProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2001)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop type = "dark"
|
|
8
8
|
* @prop color = undefined
|
package/dist/tour/Tour.svelte
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -1685,6 +1685,7 @@ export interface TimelineItemProps extends TimelineItemVariants, HTMLLiAttribute
|
|
|
1685
1685
|
date: string;
|
|
1686
1686
|
svgClass?: string;
|
|
1687
1687
|
liClass?: string;
|
|
1688
|
+
defaultDivClass?: string;
|
|
1688
1689
|
divClass?: string;
|
|
1689
1690
|
timeClass?: string;
|
|
1690
1691
|
h3Class?: string;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { children, color = "primary", asButton = false, onclick, href = "#", class: className, ...restProps }: AnchorProps = $props();
|
|
8
8
|
|
|
9
|
-
const theme = getTheme("anchor");
|
|
9
|
+
const theme = $derived(getTheme("anchor"));
|
|
10
10
|
|
|
11
11
|
let linkCls = $derived(anchor({ color, class: clsx(theme, className) }));
|
|
12
12
|
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
@component
|
|
44
44
|
[Go to docs](https://flowbite-svelte.com/)
|
|
45
45
|
## Type
|
|
46
|
-
[AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
46
|
+
[AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2005)
|
|
47
47
|
## Props
|
|
48
48
|
@prop children
|
|
49
49
|
@prop color = "primary"
|
|
@@ -2,7 +2,7 @@ import type { AnchorProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2005)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop color = "primary"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { children, class: className, border, italic = true, bg, alignment = "left", size = "lg", ...restProps }: BlockquoteProps = $props();
|
|
8
8
|
|
|
9
|
-
const theme = getTheme("blockquote");
|
|
9
|
+
const theme = $derived(getTheme("blockquote"));
|
|
10
10
|
|
|
11
11
|
let blockquoteCls = $derived(
|
|
12
12
|
blockquote({
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
@component
|
|
29
29
|
[Go to docs](https://flowbite-svelte.com/)
|
|
30
30
|
## Type
|
|
31
|
-
[BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
31
|
+
[BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2034)
|
|
32
32
|
## Props
|
|
33
33
|
@prop children
|
|
34
34
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { BlockquoteProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2034)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { children, tag, class: className, ...restProps }: DescriptionListProps = $props();
|
|
8
8
|
|
|
9
|
-
const theme = getTheme("descriptionList");
|
|
9
|
+
const theme = $derived(getTheme("descriptionList"));
|
|
10
10
|
|
|
11
11
|
let descCls = $derived(
|
|
12
12
|
descriptionList({
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
@component
|
|
25
25
|
[Go to docs](https://flowbite-svelte.com/)
|
|
26
26
|
## Type
|
|
27
|
-
[DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
27
|
+
[DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2044)
|
|
28
28
|
## Props
|
|
29
29
|
@prop children
|
|
30
30
|
@prop tag
|
|
@@ -2,7 +2,7 @@ import type { DescriptionListProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2044)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop tag
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { children, tag = "h1", class: className, ...restProps }: HeadingProps = $props();
|
|
8
8
|
|
|
9
|
-
const theme = getTheme("heading");
|
|
9
|
+
const theme = $derived(getTheme("heading"));
|
|
10
10
|
|
|
11
11
|
let headingCls = $derived(heading({ tag, class: clsx(theme, className) }));
|
|
12
12
|
</script>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@component
|
|
20
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
21
21
|
## Type
|
|
22
|
-
[HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2050)
|
|
23
23
|
## Props
|
|
24
24
|
@prop children
|
|
25
25
|
@prop tag = "h1"
|
|
@@ -2,7 +2,7 @@ import type { HeadingProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2050)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop tag = "h1"
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { hr } from "./theme";
|
|
4
4
|
import type { HrProps } from "../../types";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
|
|
6
|
+
import { untrack } from "svelte";
|
|
6
7
|
|
|
7
8
|
let { children, divClass, innerDivClass, class: className, classes, divProps = {}, hrProps = {}, ...restProps }: HrProps = $props();
|
|
8
9
|
|
|
9
|
-
// svelte-ignore state_referenced_locally
|
|
10
10
|
warnThemeDeprecation(
|
|
11
11
|
"Hr",
|
|
12
|
-
{ divClass, innerDivClass },
|
|
12
|
+
untrack(() => ({ divClass, innerDivClass })),
|
|
13
13
|
{
|
|
14
14
|
divClass: "div",
|
|
15
15
|
innerDivClass: "content"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
25
|
|
|
26
|
-
const theme = getTheme("hr");
|
|
26
|
+
const theme = $derived(getTheme("hr"));
|
|
27
27
|
const bg = $derived(classes?.bg ?? "bg-gray-200 dark:bg-gray-700");
|
|
28
28
|
|
|
29
29
|
// for backward compatibility and ...restPorps will be removed and use only ..divProps and ...hrProps in future
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { img } from "./theme";
|
|
4
4
|
import type { ImgProps } from "../../types";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
|
|
6
|
+
import { untrack } from "svelte";
|
|
6
7
|
|
|
7
8
|
let { children, size, effect: imgEffect, align, caption, class: className, classes, figClass, captionClass, href, ...restProps }: ImgProps = $props();
|
|
8
9
|
|
|
9
|
-
// svelte-ignore state_referenced_locally
|
|
10
10
|
warnThemeDeprecation(
|
|
11
11
|
"Img",
|
|
12
|
-
{ figClass, captionClass },
|
|
12
|
+
untrack(() => ({ figClass, captionClass })),
|
|
13
13
|
{
|
|
14
14
|
figClass: "figure",
|
|
15
15
|
captionClass: "caption"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
caption: captionClass || classes?.caption
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
-
const theme = getTheme("img");
|
|
24
|
+
const theme = $derived(getTheme("img"));
|
|
25
25
|
|
|
26
26
|
let { base, figure, caption: figureCaption } = $derived(img({ size, effect: imgEffect, align }));
|
|
27
27
|
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
@component
|
|
63
63
|
[Go to docs](https://flowbite-svelte.com/)
|
|
64
64
|
## Type
|
|
65
|
-
[ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
65
|
+
[ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2081)
|
|
66
66
|
## Props
|
|
67
67
|
@prop children
|
|
68
68
|
@prop size
|
|
@@ -2,7 +2,7 @@ import type { ImgProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2081)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop size
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { children, class: className, ...restProps }: LayoutProps = $props();
|
|
8
8
|
|
|
9
|
-
const theme = getTheme("layout");
|
|
9
|
+
const theme = $derived(getTheme("layout"));
|
|
10
10
|
|
|
11
11
|
let divCls = $derived(layout({ class: clsx(theme, className) }));
|
|
12
12
|
</script>
|
|
@@ -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#L2105)
|
|
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#L2105)
|
|
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#L2118)
|
|
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#L2118)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
let { children, tag = "ul", isContenteditable = false, position = "inside", ctxClass, class: className, ...restProps }: ListProps = $props();
|
|
9
9
|
|
|
10
|
-
const theme = getTheme("list");
|
|
10
|
+
const theme = $derived(getTheme("list"));
|
|
11
11
|
|
|
12
12
|
let contextClass = $derived(ctxClass || "");
|
|
13
13
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
@component
|
|
37
37
|
[Go to docs](https://flowbite-svelte.com/)
|
|
38
38
|
## Type
|
|
39
|
-
[ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
39
|
+
[ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2110)
|
|
40
40
|
## Props
|
|
41
41
|
@prop children
|
|
42
42
|
@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#L2110)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop tag = "ul"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { children, class: className, ...restProps }: MarkProps = $props();
|
|
8
8
|
|
|
9
|
-
const theme = getTheme("mark");
|
|
9
|
+
const theme = $derived(getTheme("mark"));
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<mark {...restProps} class={mark({ class: clsx(theme, className) })}>
|
|
@@ -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#L2124)
|
|
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#L2124)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
...restProps
|
|
20
20
|
}: ParagraphProps = $props();
|
|
21
21
|
|
|
22
|
-
const theme = getTheme("paragraph");
|
|
22
|
+
const theme = $derived(getTheme("paragraph"));
|
|
23
23
|
|
|
24
24
|
let classP = $derived(paragraph({ height, size, weight, space, align, justify, italic, firstUpper, whitespace, class: clsx(theme, className) }));
|
|
25
25
|
</script>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@component
|
|
33
33
|
[Go to docs](https://flowbite-svelte.com/)
|
|
34
34
|
## Type
|
|
35
|
-
[ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
35
|
+
[ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2129)
|
|
36
36
|
## Props
|
|
37
37
|
@prop children
|
|
38
38
|
@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#L2129)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className = "text-gray-900 dark:text-white"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { children, class: className, ...restProps }: SecondaryProps = $props();
|
|
8
8
|
|
|
9
|
-
const theme = getTheme("secondary");
|
|
9
|
+
const theme = $derived(getTheme("secondary"));
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<small {...restProps} class={secondary({ class: clsx(theme, className) })}>
|
|
@@ -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#L2137)
|
|
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#L2137)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { children, class: className, italic, underline, linethrough, uppercase, gradient, highlight, decoration, decorationColor, decorationThickness, ...restProps }: SpanProps = $props();
|
|
8
8
|
|
|
9
|
-
const theme = getTheme("span");
|
|
9
|
+
const theme = $derived(getTheme("span"));
|
|
10
10
|
|
|
11
11
|
let classSpan = $derived(
|
|
12
12
|
span({
|
|
@@ -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#L2142)
|
|
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#L2142)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
package/dist/utils/Arrow.svelte
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
@component
|
|
50
50
|
[Go to docs](https://flowbite-svelte.com/)
|
|
51
51
|
## Type
|
|
52
|
-
[ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
52
|
+
[ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2186)
|
|
53
53
|
## Props
|
|
54
54
|
@prop placement = "top"
|
|
55
55
|
@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#L2186)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop placement = "top"
|
|
8
8
|
* @prop cords
|
package/dist/utils/Popper.svelte
CHANGED
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
@component
|
|
264
264
|
[Go to docs](https://flowbite-svelte.com/)
|
|
265
265
|
## Type
|
|
266
|
-
[PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
266
|
+
[PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2164)
|
|
267
267
|
## Props
|
|
268
268
|
@prop triggeredBy
|
|
269
269
|
@prop triggerDelay = DEFAULT_TRIGGER_DELAY
|
|
@@ -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#L2164)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop triggeredBy
|
|
8
8
|
* @prop triggerDelay = DEFAULT_TRIGGER_DELAY
|
package/dist/video/Video.svelte
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
let { children, type = "video/mp4", trackSrc, src, srclang = "en", label = "english_captions", class: classname, ...restProps }: VideoProps = $props();
|
|
7
7
|
|
|
8
|
-
const theme = getTheme("span");
|
|
8
|
+
const theme = $derived(getTheme("span"));
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<video {...restProps} class={clsx(theme, classname)}>
|
|
@@ -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#L2151)
|
|
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#L2151)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop type = "video/mp4"
|