flowbite-svelte 2.0.0-next.0 → 2.0.0-next.2
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/theme.js +1 -1
- package/dist/command-palette/CommandPalette.svelte +1 -1
- package/dist/command-palette/CommandPalette.svelte.d.ts +1 -1
- package/dist/context.d.ts +3 -1
- package/dist/context.js +3 -0
- package/dist/datepicker/Datepicker.svelte +6 -2
- package/dist/datepicker/theme.js +5 -5
- package/dist/footer/theme.js +1 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte +6 -3
- package/dist/forms/input-addon/InputAddon.svelte +1 -1
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/input-field/Input.svelte +14 -33
- package/dist/forms/label/Label.svelte +1 -1
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/radio/Radio.svelte +4 -15
- package/dist/forms/range/Range.svelte +1 -1
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/search/Search.svelte +8 -21
- package/dist/forms/search/Search.svelte.d.ts +1 -4
- package/dist/forms/select/MultiSelect.svelte +4 -11
- package/dist/forms/select/Select.svelte +4 -14
- package/dist/forms/tags/Tags.svelte +13 -32
- package/dist/forms/tags/Tags.svelte.d.ts +2 -4
- package/dist/forms/textarea/Textarea.svelte +12 -46
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -9
- package/dist/forms/timepicker/Timepicker.svelte +4 -4
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/toggle/Toggle.svelte +6 -15
- package/dist/forms/toggle/Toggle.svelte.d.ts +1 -3
- package/dist/gallery/Gallery.svelte +5 -13
- package/dist/gallery/Gallery.svelte.d.ts +1 -2
- package/dist/gallery/theme.js +1 -1
- package/dist/indicator/Indicator.svelte +1 -1
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/kanban/KanbanCard.svelte +1 -1
- package/dist/kanban/KanbanCard.svelte.d.ts +1 -1
- package/dist/kbd/Kbd.svelte +1 -1
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/list-group/Listgroup.svelte +20 -8
- package/dist/list-group/Listgroup.svelte.d.ts +2 -3
- package/dist/list-group/ListgroupItem.svelte +14 -10
- package/dist/list-group/ListgroupItem.svelte.d.ts +4 -2
- package/dist/list-group/theme.d.ts +87 -29
- package/dist/list-group/theme.js +17 -18
- package/dist/mega-menu/MegaMenu.svelte +7 -16
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -3
- package/dist/modal/Modal.svelte +7 -22
- package/dist/modal/Modal.svelte.d.ts +1 -5
- package/dist/modal/theme.d.ts +1 -0
- package/dist/modal/theme.js +2 -1
- package/dist/navbar/Menu.svelte +3 -4
- package/dist/navbar/Menu.svelte.d.ts +1 -2
- package/dist/navbar/NavBrand.svelte +1 -1
- package/dist/navbar/NavBrand.svelte.d.ts +1 -1
- package/dist/navbar/NavContainer.svelte +1 -1
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +10 -16
- package/dist/navbar/NavHamburger.svelte.d.ts +1 -3
- package/dist/navbar/NavLi.svelte +8 -4
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +14 -31
- package/dist/navbar/NavUl.svelte.d.ts +1 -4
- package/dist/navbar/Navbar.svelte +9 -5
- package/dist/navbar/Navbar.svelte.d.ts +2 -2
- package/dist/navbar/index.d.ts +1 -0
- package/dist/navbar/index.js +1 -0
- package/dist/navbar/theme.d.ts +32 -1
- package/dist/navbar/theme.js +4 -1
- package/dist/pagination/Pagination.svelte +1 -1
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +1 -1
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +1 -1
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +10 -25
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -5
- package/dist/popover/Popover.svelte +6 -15
- package/dist/popover/Popover.svelte.d.ts +1 -2
- package/dist/progress/Progressbar.svelte +1 -1
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +1 -1
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/rating/AdvancedRating.svelte +8 -27
- package/dist/rating/AdvancedRating.svelte.d.ts +1 -6
- package/dist/rating/CustomIcon.svelte +4 -4
- package/dist/rating/CustomIcon.svelte.d.ts +2 -2
- package/dist/rating/Heart.svelte +4 -4
- package/dist/rating/Heart.svelte.d.ts +2 -2
- package/dist/rating/Rating.svelte +5 -13
- package/dist/rating/Rating.svelte.d.ts +1 -2
- package/dist/rating/RatingComment.svelte +1 -1
- package/dist/rating/RatingComment.svelte.d.ts +1 -1
- package/dist/rating/Review.svelte +13 -37
- package/dist/rating/Review.svelte.d.ts +1 -8
- package/dist/rating/ScoreRating.svelte +9 -8
- package/dist/rating/ScoreRating.svelte.d.ts +1 -1
- package/dist/rating/Star.svelte +4 -4
- package/dist/rating/Star.svelte.d.ts +2 -2
- package/dist/rating/Thumbup.svelte +4 -4
- package/dist/rating/Thumbup.svelte.d.ts +2 -2
- package/dist/scroll-spy/ScrollSpy.svelte +1 -1
- package/dist/scroll-spy/ScrollSpy.svelte.d.ts +1 -1
- package/dist/sidebar/Sidebar.svelte +9 -31
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -5
- package/dist/sidebar/SidebarBrand.svelte +6 -20
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -3
- package/dist/sidebar/SidebarButton.svelte +3 -2
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +6 -20
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -3
- package/dist/sidebar/SidebarDropdownWrapper.svelte +9 -44
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -5
- package/dist/sidebar/SidebarGroup.svelte +3 -4
- package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -2
- package/dist/sidebar/SidebarItem.svelte +12 -10
- package/dist/sidebar/SidebarItem.svelte.d.ts +2 -5
- package/dist/sidebar/index.d.ts +1 -1
- package/dist/sidebar/index.js +1 -1
- package/dist/sidebar/theme.d.ts +41 -0
- package/dist/sidebar/theme.js +23 -3
- package/dist/skeleton/CardPlaceholder.svelte +1 -1
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +1 -1
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +1 -1
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +1 -1
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDial.svelte +7 -19
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -2
- package/dist/speed-dial/SpeedDialButton.svelte +12 -24
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +3 -4
- package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
- package/dist/spinner/Spinner.svelte +1 -1
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/split-pane/Divider.svelte +1 -1
- package/dist/split-pane/Divider.svelte.d.ts +1 -1
- package/dist/split-pane/Pane.svelte +1 -1
- package/dist/split-pane/Pane.svelte.d.ts +1 -1
- package/dist/split-pane/SplitPane.svelte +1 -1
- package/dist/split-pane/SplitPane.svelte.d.ts +1 -1
- package/dist/step-indicator/StepIndicator.svelte +1 -1
- package/dist/step-indicator/StepIndicator.svelte.d.ts +1 -1
- package/dist/stepper/BreadcrumbStepper.svelte +1 -1
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/DetailedStepper.svelte +1 -1
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +1 -1
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +1 -1
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +1 -1
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +1 -1
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/table/Table.svelte +6 -17
- package/dist/table/Table.svelte.d.ts +1 -2
- package/dist/table/TableBody.svelte +1 -1
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +1 -1
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +1 -1
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +1 -1
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +1 -1
- package/dist/table/TableHeadCell.svelte.d.ts +1 -1
- package/dist/table/TableSearch.svelte +10 -41
- package/dist/table/TableSearch.svelte.d.ts +1 -8
- package/dist/tabs/TabItem.svelte +1 -1
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +8 -15
- package/dist/tabs/Tabs.svelte.d.ts +1 -3
- package/dist/theme/themeUtils.d.ts +0 -10
- package/dist/theme/themeUtils.js +0 -67
- package/dist/theme/themes.d.ts +1 -1
- package/dist/theme/themes.js +1 -1
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +12 -46
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -9
- package/dist/timeline/Group.svelte +7 -24
- package/dist/timeline/Group.svelte.d.ts +1 -4
- package/dist/timeline/GroupItem.svelte +11 -36
- package/dist/timeline/GroupItem.svelte.d.ts +1 -6
- package/dist/timeline/Timeline.svelte +1 -1
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +13 -60
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -8
- package/dist/toast/Toast.svelte +6 -25
- package/dist/toast/Toast.svelte.d.ts +1 -3
- package/dist/toast/ToastContainer.svelte +1 -1
- package/dist/toast/ToastContainer.svelte.d.ts +1 -1
- package/dist/toolbar/Toolbar.svelte +1 -1
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +5 -4
- package/dist/toolbar/ToolbarButton.svelte.d.ts +2 -1
- package/dist/toolbar/ToolbarGroup.svelte +1 -1
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/toolbar/theme.js +1 -1
- package/dist/tooltip/Tooltip.svelte +1 -1
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/types.d.ts +9 -144
- package/dist/typography/a/A.svelte +1 -1
- package/dist/typography/a/A.svelte.d.ts +1 -1
- package/dist/typography/blockquote/Blockquote.svelte +1 -1
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/heading/Heading.svelte +1 -1
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/hr/Hr.svelte +11 -29
- package/dist/typography/hr/Hr.svelte.d.ts +2 -3
- package/dist/typography/img/Img.svelte +6 -21
- package/dist/typography/img/Img.svelte.d.ts +1 -3
- 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 +33 -4
- 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 +9 -7
|
@@ -2,23 +2,11 @@
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { sidebarBrand } from "./theme";
|
|
4
4
|
import type { SidebarBrandProps } from "../types";
|
|
5
|
-
import { getTheme
|
|
6
|
-
import { untrack } from "svelte";
|
|
5
|
+
import { getTheme } from "../theme/themeUtils";
|
|
7
6
|
|
|
8
|
-
let { children, site,
|
|
7
|
+
let { children, site, class: className, classes, ...restProps }: SidebarBrandProps = $props();
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
"SidebarBrand",
|
|
12
|
-
untrack(() => ({ imgClass, spanClass })),
|
|
13
|
-
{ imgClass: "img", spanClass: "span" }
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
const styling = $derived(
|
|
17
|
-
classes ?? {
|
|
18
|
-
img: imgClass,
|
|
19
|
-
span: spanClass
|
|
20
|
-
}
|
|
21
|
-
);
|
|
9
|
+
const styling = $derived(classes);
|
|
22
10
|
|
|
23
11
|
const theme = $derived(getTheme("sidebarBrand"));
|
|
24
12
|
|
|
@@ -27,8 +15,8 @@
|
|
|
27
15
|
|
|
28
16
|
<a {...restProps} href={site?.href ? site.href : "/"} class={base({ class: clsx(theme?.base, className) })}>
|
|
29
17
|
{#if site}
|
|
30
|
-
<img src={site.img} class={img({ class: clsx(theme?.img, styling
|
|
31
|
-
<span class={span({ class: clsx(theme?.span, styling
|
|
18
|
+
<img src={site.img} class={img({ class: clsx(theme?.img, styling?.img) })} alt={site.name} />
|
|
19
|
+
<span class={span({ class: clsx(theme?.span, styling?.span) })}>{site.name}</span>
|
|
32
20
|
{:else if children}
|
|
33
21
|
{@render children()}
|
|
34
22
|
{/if}
|
|
@@ -38,12 +26,10 @@
|
|
|
38
26
|
@component
|
|
39
27
|
[Go to docs](https://flowbite-svelte.com/)
|
|
40
28
|
## Type
|
|
41
|
-
[SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
29
|
+
[SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1350)
|
|
42
30
|
## Props
|
|
43
31
|
@prop children
|
|
44
32
|
@prop site
|
|
45
|
-
@prop imgClass
|
|
46
|
-
@prop spanClass
|
|
47
33
|
@prop class: className
|
|
48
34
|
@prop classes
|
|
49
35
|
@prop ...restProps
|
|
@@ -2,12 +2,10 @@ import type { SidebarBrandProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1350)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop site
|
|
9
|
-
* @prop imgClass
|
|
10
|
-
* @prop spanClass
|
|
11
9
|
* @prop class: className
|
|
12
10
|
* @prop classes
|
|
13
11
|
* @prop ...restProps
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { breakpoint = "md", class: className, classes, ...restProps }: SidebarButtonProps = $props();
|
|
8
8
|
|
|
9
|
+
const styling = $derived(classes);
|
|
9
10
|
const theme = $derived(getTheme("sidebarButton"));
|
|
10
11
|
|
|
11
12
|
const { base, svg } = $derived(sidebarButton({ breakpoint }));
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
|
|
14
15
|
<button {...restProps} type="button" class={base({ class: clsx(theme?.base, className) })}>
|
|
15
16
|
<span class="sr-only">Open sidebar</span>
|
|
16
|
-
<svg class={svg({ class: clsx(theme?.svg,
|
|
17
|
+
<svg class={svg({ class: clsx(theme?.svg, styling?.svg) })} aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
17
18
|
<path
|
|
18
19
|
clip-rule="evenodd"
|
|
19
20
|
fill-rule="evenodd"
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
@component
|
|
27
28
|
[Go to docs](https://flowbite-svelte.com/)
|
|
28
29
|
## Type
|
|
29
|
-
[SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
30
|
+
[SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1335)
|
|
30
31
|
## Props
|
|
31
32
|
@prop breakpoint = "md"
|
|
32
33
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { SidebarButtonProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1335)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop breakpoint = "md"
|
|
8
8
|
* @prop class: className
|
|
@@ -2,23 +2,11 @@
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { sidebarCta } from "./theme";
|
|
4
4
|
import type { SidebarCtaProps } from "../types";
|
|
5
|
-
import { getTheme
|
|
6
|
-
import { untrack } from "svelte";
|
|
5
|
+
import { getTheme } from "../theme/themeUtils";
|
|
7
6
|
|
|
8
|
-
let { children, icon,
|
|
7
|
+
let { children, icon, label, class: className, classes, ...restProps }: SidebarCtaProps = $props();
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
"SidebarCta",
|
|
12
|
-
untrack(() => ({ divClass, spanClass })),
|
|
13
|
-
{ divClass: "div", spanClass: "span" }
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
const styling = $derived(
|
|
17
|
-
classes ?? {
|
|
18
|
-
div: divClass,
|
|
19
|
-
span: spanClass
|
|
20
|
-
}
|
|
21
|
-
);
|
|
9
|
+
const styling = $derived(classes);
|
|
22
10
|
|
|
23
11
|
const theme = $derived(getTheme("sidebarCta"));
|
|
24
12
|
|
|
@@ -26,8 +14,8 @@
|
|
|
26
14
|
</script>
|
|
27
15
|
|
|
28
16
|
<div {...restProps} id="dropdown-cta" class={base({ class: clsx(theme?.base, className) })} role="alert">
|
|
29
|
-
<div class={div({ class: clsx(theme?.div, styling
|
|
30
|
-
<span class={span({ class: clsx(theme?.span, styling
|
|
17
|
+
<div class={div({ class: clsx(theme?.div, styling?.div) })}>
|
|
18
|
+
<span class={span({ class: clsx(theme?.span, styling?.span) })}>{label}</span>
|
|
31
19
|
{#if icon}
|
|
32
20
|
{@render icon()}
|
|
33
21
|
{/if}
|
|
@@ -39,12 +27,10 @@
|
|
|
39
27
|
@component
|
|
40
28
|
[Go to docs](https://flowbite-svelte.com/)
|
|
41
29
|
## Type
|
|
42
|
-
[SidebarCtaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
30
|
+
[SidebarCtaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1339)
|
|
43
31
|
## Props
|
|
44
32
|
@prop children
|
|
45
33
|
@prop icon
|
|
46
|
-
@prop divClass
|
|
47
|
-
@prop spanClass
|
|
48
34
|
@prop label
|
|
49
35
|
@prop class: className
|
|
50
36
|
@prop classes
|
|
@@ -2,12 +2,10 @@ import type { SidebarCtaProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarCtaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarCtaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1339)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
|
9
|
-
* @prop divClass
|
|
10
|
-
* @prop spanClass
|
|
11
9
|
* @prop label
|
|
12
10
|
* @prop class: className
|
|
13
11
|
* @prop classes
|
|
@@ -1,46 +1,15 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { getTheme
|
|
2
|
+
import { getTheme } from "../theme/themeUtils";
|
|
3
3
|
import type { ParamsType, SidebarDropdownWrapperProps } from "../types";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { getSidebarContext } from "../context";
|
|
6
6
|
import { writable } from "svelte/store";
|
|
7
7
|
import { slide } from "svelte/transition";
|
|
8
8
|
import { sidebarDropdownWrapper } from "./theme";
|
|
9
|
-
import { untrack } from "svelte";
|
|
10
9
|
|
|
11
|
-
let {
|
|
12
|
-
children,
|
|
13
|
-
arrowup,
|
|
14
|
-
arrowdown,
|
|
15
|
-
icon,
|
|
16
|
-
isOpen = $bindable(),
|
|
17
|
-
btnClass,
|
|
18
|
-
label,
|
|
19
|
-
spanClass,
|
|
20
|
-
ulClass,
|
|
21
|
-
transition = slide,
|
|
22
|
-
params,
|
|
23
|
-
svgClass,
|
|
24
|
-
class: className,
|
|
25
|
-
classes,
|
|
26
|
-
onclick,
|
|
27
|
-
...restProps
|
|
28
|
-
}: SidebarDropdownWrapperProps = $props();
|
|
10
|
+
let { children, arrowup, arrowdown, icon, isOpen = $bindable(), label, transition = slide, params, class: className, classes, onclick, ...restProps }: SidebarDropdownWrapperProps = $props();
|
|
29
11
|
|
|
30
|
-
|
|
31
|
-
"SidebarDropdownWrapper",
|
|
32
|
-
untrack(() => ({ btnClass, spanClass, ulClass, svgClass })),
|
|
33
|
-
{ btnClass: "btn", spanClass: "span", ulClass: "ul", svgClass: "svg" }
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
const styling = $derived(
|
|
37
|
-
classes ?? {
|
|
38
|
-
btn: btnClass,
|
|
39
|
-
span: spanClass,
|
|
40
|
-
ul: ulClass,
|
|
41
|
-
svg: svgClass
|
|
42
|
-
}
|
|
43
|
-
);
|
|
12
|
+
const styling = $derived(classes);
|
|
44
13
|
|
|
45
14
|
const theme = $derived(getTheme("sidebarDropdownWrapper"));
|
|
46
15
|
const { base, btn, span, svg, ul } = sidebarDropdownWrapper();
|
|
@@ -73,29 +42,29 @@
|
|
|
73
42
|
</script>
|
|
74
43
|
|
|
75
44
|
<li class={base({ class: clsx(theme?.base, className) })}>
|
|
76
|
-
<button {...restProps} onclick={handleDropdown} type="button" class={btn({ class: clsx(theme?.btn, styling
|
|
45
|
+
<button {...restProps} onclick={handleDropdown} type="button" class={btn({ class: clsx(theme?.btn, styling?.btn) })} aria-controls="sidebar-dropdown">
|
|
77
46
|
{#if icon}
|
|
78
47
|
{@render icon()}
|
|
79
48
|
{/if}
|
|
80
|
-
<span class={span({ class: clsx(theme?.span, styling
|
|
49
|
+
<span class={span({ class: clsx(theme?.span, styling?.span) })}>{label}</span>
|
|
81
50
|
{#if openState}
|
|
82
51
|
{#if arrowup}
|
|
83
52
|
{@render arrowup()}
|
|
84
53
|
{:else}
|
|
85
|
-
<svg class={svg({ class: clsx(theme?.svg, styling
|
|
54
|
+
<svg class={svg({ class: clsx(theme?.svg, styling?.svg) })} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
|
|
86
55
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5 5 1 1 5" />
|
|
87
56
|
</svg>
|
|
88
57
|
{/if}
|
|
89
58
|
{:else if arrowdown}
|
|
90
59
|
{@render arrowdown()}
|
|
91
60
|
{:else}
|
|
92
|
-
<svg class={svg({ class: clsx(theme?.svg, styling
|
|
61
|
+
<svg class={svg({ class: clsx(theme?.svg, styling?.svg) })} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
|
|
93
62
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 4 4 4-4" />
|
|
94
63
|
</svg>
|
|
95
64
|
{/if}
|
|
96
65
|
</button>
|
|
97
66
|
{#if openState}
|
|
98
|
-
<ul class={ul({ class: clsx(theme?.ul, styling
|
|
67
|
+
<ul class={ul({ class: clsx(theme?.ul, styling?.ul) })} transition:transition={params as ParamsType}>
|
|
99
68
|
{@render children()}
|
|
100
69
|
</ul>
|
|
101
70
|
{/if}
|
|
@@ -105,20 +74,16 @@
|
|
|
105
74
|
@component
|
|
106
75
|
[Go to docs](https://flowbite-svelte.com/)
|
|
107
76
|
## Type
|
|
108
|
-
[SidebarDropdownWrapperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
77
|
+
[SidebarDropdownWrapperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1359)
|
|
109
78
|
## Props
|
|
110
79
|
@prop children
|
|
111
80
|
@prop arrowup
|
|
112
81
|
@prop arrowdown
|
|
113
82
|
@prop icon
|
|
114
83
|
@prop isOpen = $bindable()
|
|
115
|
-
@prop btnClass
|
|
116
84
|
@prop label
|
|
117
|
-
@prop spanClass
|
|
118
|
-
@prop ulClass
|
|
119
85
|
@prop transition = slide
|
|
120
86
|
@prop params
|
|
121
|
-
@prop svgClass
|
|
122
87
|
@prop class: className
|
|
123
88
|
@prop classes
|
|
124
89
|
@prop onclick
|
|
@@ -2,20 +2,16 @@ import type { SidebarDropdownWrapperProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarDropdownWrapperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarDropdownWrapperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1359)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop arrowup
|
|
9
9
|
* @prop arrowdown
|
|
10
10
|
* @prop icon
|
|
11
11
|
* @prop isOpen = $bindable()
|
|
12
|
-
* @prop btnClass
|
|
13
12
|
* @prop label
|
|
14
|
-
* @prop spanClass
|
|
15
|
-
* @prop ulClass
|
|
16
13
|
* @prop transition = slide
|
|
17
14
|
* @prop params
|
|
18
|
-
* @prop svgClass
|
|
19
15
|
* @prop class: className
|
|
20
16
|
* @prop classes
|
|
21
17
|
* @prop onclick
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import type { SidebarGroupProps } from "../types";
|
|
4
4
|
|
|
5
|
-
let { children, class: className = "space-y-2",
|
|
5
|
+
let { children, class: className = "space-y-2", border = false, ...restProps }: SidebarGroupProps = $props();
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
|
-
<ul {...restProps} class={border ? clsx(
|
|
8
|
+
<ul {...restProps} class={border ? clsx("mt-4 border-t border-gray-200 pt-4 dark:border-gray-700", className) : clsx(className)}>
|
|
9
9
|
{@render children()}
|
|
10
10
|
</ul>
|
|
11
11
|
|
|
@@ -13,11 +13,10 @@
|
|
|
13
13
|
@component
|
|
14
14
|
[Go to docs](https://flowbite-svelte.com/)
|
|
15
15
|
## Type
|
|
16
|
-
[SidebarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
16
|
+
[SidebarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1372)
|
|
17
17
|
## Props
|
|
18
18
|
@prop children
|
|
19
19
|
@prop class: className = "space-y-2"
|
|
20
|
-
@prop borderClass = "pt-4 mt-4 border-t border-gray-200 dark:border-gray-700"
|
|
21
20
|
@prop border = false
|
|
22
21
|
@prop ...restProps
|
|
23
22
|
-->
|
|
@@ -2,11 +2,10 @@ import type { SidebarGroupProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1372)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className = "space-y-2"
|
|
9
|
-
* @prop borderClass = "pt-4 mt-4 border-t border-gray-200 dark:border-gray-700"
|
|
10
9
|
* @prop border = false
|
|
11
10
|
* @prop ...restProps
|
|
12
11
|
*/
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getSidebarContext, getActiveUrlContext } from "../context";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
+
import { getTheme } from "../theme/themeUtils";
|
|
5
|
+
import { sidebarItem } from "./theme";
|
|
4
6
|
import type { SidebarItemProps } from "../types";
|
|
5
7
|
|
|
6
|
-
let { icon, subtext, href, label,
|
|
8
|
+
let { icon, subtext, href, label, active, class: className, classes, ...restProps }: SidebarItemProps = $props();
|
|
9
|
+
|
|
10
|
+
const styling = $derived(classes);
|
|
11
|
+
const theme = $derived(getTheme("sidebarItem"));
|
|
7
12
|
|
|
8
13
|
const context = getSidebarContext() ?? { closeSidebar: undefined, activeClass: undefined, nonActiveClass: undefined };
|
|
9
14
|
|
|
@@ -11,15 +16,15 @@
|
|
|
11
16
|
|
|
12
17
|
let activeItem = $derived(active !== undefined ? active : activeUrl?.value ? href === activeUrl.value : false);
|
|
13
18
|
|
|
14
|
-
|
|
19
|
+
const { base, link, span } = $derived(sidebarItem({ active: activeItem }));
|
|
15
20
|
</script>
|
|
16
21
|
|
|
17
|
-
<li class={clsx(className)}>
|
|
18
|
-
<a onclick={context.closeSidebar ?? undefined} {...restProps} {href} aria-current={activeItem ? "page" : undefined} class={clsx(
|
|
22
|
+
<li class={base({ class: clsx(theme?.base, className) })}>
|
|
23
|
+
<a onclick={context.closeSidebar ?? undefined} {...restProps} {href} aria-current={activeItem ? "page" : undefined} class={link({ class: clsx(theme?.link, styling?.link) })}>
|
|
19
24
|
{#if icon}
|
|
20
25
|
{@render icon()}
|
|
21
26
|
{/if}
|
|
22
|
-
<span class={clsx(
|
|
27
|
+
<span class={span({ class: clsx(theme?.span, styling?.span) })}>{label}</span>
|
|
23
28
|
{#if subtext}
|
|
24
29
|
{@render subtext()}
|
|
25
30
|
{/if}
|
|
@@ -30,17 +35,14 @@
|
|
|
30
35
|
@component
|
|
31
36
|
[Go to docs](https://flowbite-svelte.com/)
|
|
32
37
|
## Type
|
|
33
|
-
[SidebarItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
38
|
+
[SidebarItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1377)
|
|
34
39
|
## Props
|
|
35
40
|
@prop icon
|
|
36
41
|
@prop subtext
|
|
37
42
|
@prop href
|
|
38
43
|
@prop label
|
|
39
|
-
@prop spanClass = "ms-3"
|
|
40
|
-
@prop activeClass
|
|
41
|
-
@prop nonActiveClass
|
|
42
|
-
@prop aClass
|
|
43
44
|
@prop active
|
|
44
45
|
@prop class: className
|
|
46
|
+
@prop classes
|
|
45
47
|
@prop ...restProps
|
|
46
48
|
-->
|
|
@@ -2,18 +2,15 @@ import type { SidebarItemProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1377)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop icon
|
|
8
8
|
* @prop subtext
|
|
9
9
|
* @prop href
|
|
10
10
|
* @prop label
|
|
11
|
-
* @prop spanClass = "ms-3"
|
|
12
|
-
* @prop activeClass
|
|
13
|
-
* @prop nonActiveClass
|
|
14
|
-
* @prop aClass
|
|
15
11
|
* @prop active
|
|
16
12
|
* @prop class: className
|
|
13
|
+
* @prop classes
|
|
17
14
|
* @prop ...restProps
|
|
18
15
|
*/
|
|
19
16
|
declare const SidebarItem: import("svelte").Component<SidebarItemProps, {}, "">;
|
package/dist/sidebar/index.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export { default as SidebarDropdownItem } from "./SidebarItem.svelte";
|
|
|
7
7
|
export { default as SidebarButton } from "./SidebarButton.svelte";
|
|
8
8
|
export { default as SidebarCta } from "./SidebarCta.svelte";
|
|
9
9
|
export { default as SidebarBrand } from "./SidebarBrand.svelte";
|
|
10
|
-
export { sidebar, sidebarButton, sidebarCta, sidebarBrand, sidebarDropdownWrapper } from "./theme";
|
|
10
|
+
export { sidebar, sidebarButton, sidebarCta, sidebarBrand, sidebarItem, sidebarDropdownWrapper } from "./theme";
|
package/dist/sidebar/index.js
CHANGED
|
@@ -7,4 +7,4 @@ export { default as SidebarDropdownItem } from "./SidebarItem.svelte";
|
|
|
7
7
|
export { default as SidebarButton } from "./SidebarButton.svelte";
|
|
8
8
|
export { default as SidebarCta } from "./SidebarCta.svelte";
|
|
9
9
|
export { default as SidebarBrand } from "./SidebarBrand.svelte";
|
|
10
|
-
export { sidebar, sidebarButton, sidebarCta, sidebarBrand, sidebarDropdownWrapper } from "./theme";
|
|
10
|
+
export { sidebar, sidebarButton, sidebarCta, sidebarBrand, sidebarItem, sidebarDropdownWrapper } from "./theme";
|
package/dist/sidebar/theme.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type SidebarCtaVariants = VariantProps<typeof sidebarCta> & Classes<typeo
|
|
|
5
5
|
export type SidebarBrandVariants = VariantProps<typeof sidebarBrand> & Classes<typeof sidebarBrand>;
|
|
6
6
|
export type SidebarDropdownWrapperVariants = VariantProps<typeof sidebarDropdownWrapper> & Classes<typeof sidebarDropdownWrapper>;
|
|
7
7
|
export type SidebarButtonVariants = VariantProps<typeof sidebarButton> & Classes<typeof sidebarButton>;
|
|
8
|
+
export type SidebarItemVariants = VariantProps<typeof sidebarItem> & Classes<typeof sidebarItem>;
|
|
8
9
|
export declare const sidebar: import("tailwind-variants").TVReturnType<{
|
|
9
10
|
position: {
|
|
10
11
|
fixed: {
|
|
@@ -310,3 +311,43 @@ export declare const sidebarDropdownWrapper: import("tailwind-variants").TVRetur
|
|
|
310
311
|
svg: string;
|
|
311
312
|
ul: string;
|
|
312
313
|
}, undefined, unknown, unknown, undefined>>;
|
|
314
|
+
export declare const sidebarItem: import("tailwind-variants").TVReturnType<{
|
|
315
|
+
active: {
|
|
316
|
+
true: {
|
|
317
|
+
link: string;
|
|
318
|
+
};
|
|
319
|
+
false: {
|
|
320
|
+
link: string;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
}, {
|
|
324
|
+
base: string;
|
|
325
|
+
link: string;
|
|
326
|
+
span: string;
|
|
327
|
+
}, undefined, {
|
|
328
|
+
active: {
|
|
329
|
+
true: {
|
|
330
|
+
link: string;
|
|
331
|
+
};
|
|
332
|
+
false: {
|
|
333
|
+
link: string;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
}, {
|
|
337
|
+
base: string;
|
|
338
|
+
link: string;
|
|
339
|
+
span: string;
|
|
340
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
341
|
+
active: {
|
|
342
|
+
true: {
|
|
343
|
+
link: string;
|
|
344
|
+
};
|
|
345
|
+
false: {
|
|
346
|
+
link: string;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
}, {
|
|
350
|
+
base: string;
|
|
351
|
+
link: string;
|
|
352
|
+
span: string;
|
|
353
|
+
}, undefined, unknown, unknown, undefined>>;
|
package/dist/sidebar/theme.js
CHANGED
|
@@ -2,8 +2,8 @@ import { tv } from "tailwind-variants";
|
|
|
2
2
|
export const sidebar = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
base: "top-0 left-0 z-50 w-64 transition-transform bg-gray-50 dark:bg-gray-800",
|
|
5
|
-
active: "flex items-center group-has-[ul]:ms-6
|
|
6
|
-
nonactive: "flex items-center group-has-[ul]:ms-6
|
|
5
|
+
active: "flex items-center group-has-[ul]:ms-6 px-2 py-1.5 m-1 text-base font-normal text-gray-900 bg-gray-200 dark:bg-gray-700 rounded-sm dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700",
|
|
6
|
+
nonactive: "flex items-center group-has-[ul]:ms-6 px-2 py-1.5 m-1 text-base font-normal text-gray-900 rounded-sm dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700",
|
|
7
7
|
div: "overflow-y-auto px-3 py-4 bg-gray-50 dark:bg-gray-800",
|
|
8
8
|
backdrop: "fixed top-0 start-0 z-40 w-full h-full"
|
|
9
9
|
},
|
|
@@ -43,7 +43,7 @@ export const sidebar = tv({
|
|
|
43
43
|
});
|
|
44
44
|
export const sidebarButton = tv({
|
|
45
45
|
slots: {
|
|
46
|
-
base: "inline-flex items-center text-sm text-gray-500 rounded-
|
|
46
|
+
base: "inline-flex items-center text-sm text-gray-500 rounded-base hover:bg-gray-100 focus:outline-hidden focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
|
|
47
47
|
svg: "h-6 w-6 m-2"
|
|
48
48
|
},
|
|
49
49
|
variants: {
|
|
@@ -79,3 +79,23 @@ export const sidebarDropdownWrapper = tv({
|
|
|
79
79
|
ul: "py-2 space-y-0"
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
+
export const sidebarItem = tv({
|
|
83
|
+
slots: {
|
|
84
|
+
base: "",
|
|
85
|
+
link: "flex items-center group-has-[ul]:ms-6 px-2 py-1.5 m-1 text-base font-normal rounded-sm",
|
|
86
|
+
span: "ms-3"
|
|
87
|
+
},
|
|
88
|
+
variants: {
|
|
89
|
+
active: {
|
|
90
|
+
true: {
|
|
91
|
+
link: "text-gray-900 bg-gray-200 dark:bg-gray-700 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700"
|
|
92
|
+
},
|
|
93
|
+
false: {
|
|
94
|
+
link: "text-gray-900 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
defaultVariants: {
|
|
99
|
+
active: false
|
|
100
|
+
}
|
|
101
|
+
});
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
@component
|
|
42
42
|
[Go to docs](https://flowbite-svelte.com/)
|
|
43
43
|
## Type
|
|
44
|
-
[CardPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
44
|
+
[CardPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1385)
|
|
45
45
|
## Props
|
|
46
46
|
@prop size = "sm"
|
|
47
47
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { CardPlaceholderProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [CardPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [CardPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1385)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop size = "sm"
|
|
8
8
|
* @prop class: className
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
@component
|
|
71
71
|
[Go to docs](https://flowbite-svelte.com/)
|
|
72
72
|
## Type
|
|
73
|
-
[ImagePlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
73
|
+
[ImagePlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1389)
|
|
74
74
|
## Props
|
|
75
75
|
@prop size = "md"
|
|
76
76
|
@prop rounded
|
|
@@ -2,7 +2,7 @@ import type { ImagePlaceholderProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ImagePlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ImagePlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1389)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop size = "md"
|
|
8
8
|
* @prop rounded
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
@component
|
|
51
51
|
[Go to docs](https://flowbite-svelte.com/)
|
|
52
52
|
## Type
|
|
53
|
-
[ListPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
53
|
+
[ListPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1395)
|
|
54
54
|
## Props
|
|
55
55
|
@prop itemNumber = 5
|
|
56
56
|
@prop size = "md"
|
|
@@ -2,7 +2,7 @@ import type { ListPlaceholderProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ListPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ListPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1395)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop itemNumber = 5
|
|
8
8
|
* @prop size = "md"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
@component
|
|
43
43
|
[Go to docs](https://flowbite-svelte.com/)
|
|
44
44
|
## Type
|
|
45
|
-
[SkeletonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
45
|
+
[SkeletonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1401)
|
|
46
46
|
## Props
|
|
47
47
|
@prop size = "sm"
|
|
48
48
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { SkeletonProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SkeletonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SkeletonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1401)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop size = "sm"
|
|
8
8
|
* @prop class: className
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
@component
|
|
53
53
|
[Go to docs](https://flowbite-svelte.com/)
|
|
54
54
|
## Type
|
|
55
|
-
[TestimonialPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
55
|
+
[TestimonialPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1405)
|
|
56
56
|
## Props
|
|
57
57
|
@prop class: className
|
|
58
58
|
@prop classes
|
|
@@ -2,7 +2,7 @@ import type { TestimonialPlaceholderProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TestimonialPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TestimonialPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1405)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop class: className
|
|
8
8
|
* @prop classes
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
@component
|
|
78
78
|
[Go to docs](https://flowbite-svelte.com/)
|
|
79
79
|
## Type
|
|
80
|
-
[TextPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
80
|
+
[TextPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1407)
|
|
81
81
|
## Props
|
|
82
82
|
@prop size = "sm"
|
|
83
83
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { TextPlaceholderProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TextPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TextPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1407)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop size = "sm"
|
|
8
8
|
* @prop class: className
|