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
|
@@ -8,16 +8,14 @@ import type { TagsProps } from "../..";
|
|
|
8
8
|
* @prop placeholder = "Enter tags"
|
|
9
9
|
* @prop class: className
|
|
10
10
|
* @prop classes
|
|
11
|
-
* @prop itemClass
|
|
12
|
-
* @prop spanClass
|
|
13
|
-
* @prop closeClass
|
|
14
|
-
* @prop inputClass
|
|
15
11
|
* @prop closeBtnSize = "xs"
|
|
16
12
|
* @prop unique = false
|
|
17
13
|
* @prop availableTags = []
|
|
18
14
|
* @prop showHelper = false
|
|
19
15
|
* @prop showAvailableTags = false
|
|
20
16
|
* @prop allowNewTags = true
|
|
17
|
+
* @prop inputProps = {}
|
|
18
|
+
* @prop disabled
|
|
21
19
|
* @prop ...restProps
|
|
22
20
|
*/
|
|
23
21
|
declare const Tags: import("svelte").Component<TagsProps, {}, "value">;
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import type { TextareaProps } from "../..";
|
|
5
5
|
import CloseButton from "../../utils/CloseButton.svelte";
|
|
6
|
-
import { getTheme
|
|
6
|
+
import { getTheme } from "../../theme/themeUtils";
|
|
7
7
|
import { createDismissableContext } from "../../utils/dismissable";
|
|
8
|
-
import { untrack } from "svelte";
|
|
9
8
|
|
|
10
9
|
let {
|
|
11
10
|
header,
|
|
@@ -13,41 +12,16 @@
|
|
|
13
12
|
addon,
|
|
14
13
|
value = $bindable(),
|
|
15
14
|
elementRef = $bindable(),
|
|
16
|
-
divClass,
|
|
17
|
-
innerClass,
|
|
18
|
-
headerClass,
|
|
19
|
-
footerClass,
|
|
20
|
-
addonClass,
|
|
21
15
|
disabled,
|
|
22
16
|
class: className,
|
|
23
17
|
classes,
|
|
24
18
|
clearable,
|
|
25
|
-
clearableSvgClass,
|
|
26
19
|
clearableColor = "none",
|
|
27
|
-
clearableClass,
|
|
28
20
|
clearableOnClick,
|
|
29
|
-
textareaClass,
|
|
30
21
|
...restProps
|
|
31
22
|
}: TextareaProps = $props();
|
|
32
23
|
|
|
33
|
-
|
|
34
|
-
"Textarea",
|
|
35
|
-
untrack(() => ({ divClass, innerClass, headerClass, footerClass, addonClass, textareaClass, clearableClass, clearableSvgClass })),
|
|
36
|
-
{ divClass: "div", innerClass: "inner", headerClass: "header", footerClass: "footer", addonClass: "addon", textareaClass: "class", clearableClass: "close", clearableSvgClass: "svg" }
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
const styling = $derived(
|
|
40
|
-
classes ?? {
|
|
41
|
-
div: divClass,
|
|
42
|
-
inner: innerClass,
|
|
43
|
-
header: headerClass,
|
|
44
|
-
footer: footerClass,
|
|
45
|
-
addon: addonClass,
|
|
46
|
-
textarea: textareaClass,
|
|
47
|
-
close: clearableClass,
|
|
48
|
-
svg: clearableSvgClass
|
|
49
|
-
}
|
|
50
|
-
);
|
|
24
|
+
const styling = $derived(classes);
|
|
51
25
|
|
|
52
26
|
const theme = $derived(getTheme("textarea"));
|
|
53
27
|
|
|
@@ -69,33 +43,33 @@
|
|
|
69
43
|
createDismissableContext(clearAll);
|
|
70
44
|
</script>
|
|
71
45
|
|
|
72
|
-
<div class={div({ class: clsx(theme?.div,
|
|
46
|
+
<div class={div({ class: clsx(theme?.div, className) })}>
|
|
73
47
|
{#if !wrapped}
|
|
74
|
-
<textarea bind:value bind:this={elementRef} {disabled} {...restProps} class={wrapper({ class: clsx(
|
|
48
|
+
<textarea bind:value bind:this={elementRef} {disabled} {...restProps} class={wrapper({ class: clsx(theme?.wrapper, styling?.wrapper) })}></textarea>
|
|
75
49
|
{:else}
|
|
76
|
-
<div class={wrapper({ class: clsx(theme?.wrapper,
|
|
50
|
+
<div class={wrapper({ class: clsx(theme?.wrapper, styling?.wrapper) })}>
|
|
77
51
|
{#if header}
|
|
78
|
-
<div class={headerCls({ class: clsx(theme?.header, styling
|
|
52
|
+
<div class={headerCls({ class: clsx(theme?.header, styling?.header) })}>
|
|
79
53
|
{@render header()}
|
|
80
54
|
</div>
|
|
81
55
|
{/if}
|
|
82
|
-
<div class={inner({ class: clsx(theme?.inner, styling
|
|
56
|
+
<div class={inner({ class: clsx(theme?.inner, styling?.inner) })}>
|
|
83
57
|
{#if addon}
|
|
84
|
-
<div class={addonCls({ class: clsx(theme?.addon, styling
|
|
58
|
+
<div class={addonCls({ class: clsx(theme?.addon, styling?.addon) })}>
|
|
85
59
|
{@render addon()}
|
|
86
60
|
</div>
|
|
87
61
|
{/if}
|
|
88
|
-
<textarea bind:value bind:this={elementRef} {disabled} {...restProps} class={base({ class: clsx(theme?.base
|
|
62
|
+
<textarea bind:value bind:this={elementRef} {disabled} {...restProps} class={base({ class: clsx(theme?.base) })}></textarea>
|
|
89
63
|
</div>
|
|
90
64
|
{#if footer}
|
|
91
|
-
<div class={footerCls({ class: clsx(theme?.footer, styling
|
|
65
|
+
<div class={footerCls({ class: clsx(theme?.footer, styling?.footer) })}>
|
|
92
66
|
{@render footer()}
|
|
93
67
|
</div>
|
|
94
68
|
{/if}
|
|
95
69
|
</div>
|
|
96
70
|
{/if}
|
|
97
71
|
{#if value !== undefined && value !== "" && clearable}
|
|
98
|
-
<CloseButton class={close({ class: clsx(theme?.close, styling
|
|
72
|
+
<CloseButton class={close({ class: clsx(theme?.close, styling?.close) })} color={clearableColor} aria-label="Clear search value" svgClass={clsx(styling?.svg)} />
|
|
99
73
|
{/if}
|
|
100
74
|
</div>
|
|
101
75
|
|
|
@@ -103,26 +77,18 @@
|
|
|
103
77
|
@component
|
|
104
78
|
[Go to docs](https://flowbite-svelte.com/)
|
|
105
79
|
## Type
|
|
106
|
-
[TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
80
|
+
[TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L960)
|
|
107
81
|
## Props
|
|
108
82
|
@prop header
|
|
109
83
|
@prop footer
|
|
110
84
|
@prop addon
|
|
111
85
|
@prop value = $bindable()
|
|
112
86
|
@prop elementRef = $bindable()
|
|
113
|
-
@prop divClass
|
|
114
|
-
@prop innerClass
|
|
115
|
-
@prop headerClass
|
|
116
|
-
@prop footerClass
|
|
117
|
-
@prop addonClass
|
|
118
87
|
@prop disabled
|
|
119
88
|
@prop class: className
|
|
120
89
|
@prop classes
|
|
121
90
|
@prop clearable
|
|
122
|
-
@prop clearableSvgClass
|
|
123
91
|
@prop clearableColor = "none"
|
|
124
|
-
@prop clearableClass
|
|
125
92
|
@prop clearableOnClick
|
|
126
|
-
@prop textareaClass
|
|
127
93
|
@prop ...restProps
|
|
128
94
|
-->
|
|
@@ -2,27 +2,19 @@ import type { TextareaProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L960)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop header
|
|
8
8
|
* @prop footer
|
|
9
9
|
* @prop addon
|
|
10
10
|
* @prop value = $bindable()
|
|
11
11
|
* @prop elementRef = $bindable()
|
|
12
|
-
* @prop divClass
|
|
13
|
-
* @prop innerClass
|
|
14
|
-
* @prop headerClass
|
|
15
|
-
* @prop footerClass
|
|
16
|
-
* @prop addonClass
|
|
17
12
|
* @prop disabled
|
|
18
13
|
* @prop class: className
|
|
19
14
|
* @prop classes
|
|
20
15
|
* @prop clearable
|
|
21
|
-
* @prop clearableSvgClass
|
|
22
16
|
* @prop clearableColor = "none"
|
|
23
|
-
* @prop clearableClass
|
|
24
17
|
* @prop clearableOnClick
|
|
25
|
-
* @prop textareaClass
|
|
26
18
|
* @prop ...restProps
|
|
27
19
|
*/
|
|
28
20
|
declare const Textarea: import("svelte").Component<TextareaProps, {}, "value" | "elementRef">;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
|
|
45
45
|
// Generate theme classes
|
|
46
46
|
const styles = $derived(timepicker({ type, columns, disabled }));
|
|
47
|
-
|
|
47
|
+
let selectCls = $derived(styles.select({ class: clsx(theme?.select, selectClass) }));
|
|
48
48
|
// State
|
|
49
49
|
let selectedOption = $state("");
|
|
50
50
|
let showTimerange = $state(false);
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
oninput={(e) => handleTimeChange(e)}
|
|
224
224
|
onchange={(e) => handleTimeChange(e)}
|
|
225
225
|
/>
|
|
226
|
-
<Select
|
|
226
|
+
<Select classes={{ select: selectCls }} onchange={handleOptionSelect} items={options} value={selectedOption} />
|
|
227
227
|
{:else if type === "dropdown"}
|
|
228
228
|
<Input
|
|
229
229
|
{id}
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
{:else if type === "timerange-toggle"}
|
|
353
353
|
<div class={styles.toggleWrapper({ class: clsx(theme?.toggleWrapper) })}>
|
|
354
354
|
<div class={styles.toggleRow({ class: clsx(theme?.toggleRow) })}>
|
|
355
|
-
<Toggle id={`${id}-timerange-toggle`} checked={showTimerange} onchange={toggleTimerange}
|
|
355
|
+
<Toggle id={`${id}-timerange-toggle`} checked={showTimerange} onchange={toggleTimerange} classes={{ span: "me-0 rounded-base" }} />
|
|
356
356
|
</div>
|
|
357
357
|
{#if showTimerange}
|
|
358
358
|
<div class={styles.toggleTimeRow({ class: clsx(theme?.toggleTimeRow) })}>
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
@component
|
|
408
408
|
[Go to docs](https://flowbite-svelte.com/)
|
|
409
409
|
## Type
|
|
410
|
-
[TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
410
|
+
[TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L931)
|
|
411
411
|
## Props
|
|
412
412
|
@prop id = "time"
|
|
413
413
|
@prop endId = "end-time"
|
|
@@ -2,7 +2,7 @@ import type { TimepickerProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L931)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop id = "time"
|
|
8
8
|
* @prop endId = "end-time"
|
|
@@ -3,18 +3,11 @@
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import type { ToggleProps } from "../..";
|
|
5
5
|
import Label from "../label/Label.svelte";
|
|
6
|
-
import { getTheme
|
|
7
|
-
import { untrack } from "svelte";
|
|
6
|
+
import { getTheme } from "../../theme/themeUtils";
|
|
8
7
|
|
|
9
|
-
let { children, size = "default", value, checked = $bindable(), disabled, color = "primary", class: className, classes,
|
|
8
|
+
let { children, size = "default", value, checked = $bindable(), disabled, color = "primary", class: className, classes, offLabel, ...restProps }: ToggleProps = $props();
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
"Toggle",
|
|
13
|
-
untrack(() => ({ inputClass, spanClass })),
|
|
14
|
-
{ inputClass: "input", spanClass: "span" }
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
const styling = $derived(classes ?? { input: inputClass, span: spanClass });
|
|
10
|
+
const styling = $derived(classes);
|
|
18
11
|
|
|
19
12
|
const theme = $derived(getTheme("toggle"));
|
|
20
13
|
|
|
@@ -25,8 +18,8 @@
|
|
|
25
18
|
{#if offLabel}
|
|
26
19
|
{@render offLabel()}
|
|
27
20
|
{/if}
|
|
28
|
-
<input type="checkbox" bind:checked {value} {...restProps} {disabled} class={input({ class: clsx(theme?.input, styling
|
|
29
|
-
<span class={span({ class: clsx(theme?.span, styling
|
|
21
|
+
<input type="checkbox" bind:checked {value} {...restProps} {disabled} class={input({ class: clsx(theme?.input, styling?.input) })} />
|
|
22
|
+
<span class={span({ class: clsx(theme?.span, styling?.span) })}></span>
|
|
30
23
|
{#if children}
|
|
31
24
|
{@render children()}
|
|
32
25
|
{/if}
|
|
@@ -36,7 +29,7 @@
|
|
|
36
29
|
@component
|
|
37
30
|
[Go to docs](https://flowbite-svelte.com/)
|
|
38
31
|
## Type
|
|
39
|
-
[ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
32
|
+
[ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L973)
|
|
40
33
|
## Props
|
|
41
34
|
@prop children
|
|
42
35
|
@prop size = "default"
|
|
@@ -46,8 +39,6 @@
|
|
|
46
39
|
@prop color = "primary"
|
|
47
40
|
@prop class: className
|
|
48
41
|
@prop classes
|
|
49
|
-
@prop inputClass
|
|
50
|
-
@prop spanClass
|
|
51
42
|
@prop offLabel
|
|
52
43
|
@prop ...restProps
|
|
53
44
|
-->
|
|
@@ -2,7 +2,7 @@ import type { ToggleProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L973)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop size = "default"
|
|
@@ -12,8 +12,6 @@ import type { ToggleProps } from "../..";
|
|
|
12
12
|
* @prop color = "primary"
|
|
13
13
|
* @prop class: className
|
|
14
14
|
* @prop classes
|
|
15
|
-
* @prop inputClass
|
|
16
|
-
* @prop spanClass
|
|
17
15
|
* @prop offLabel
|
|
18
16
|
* @prop ...restProps
|
|
19
17
|
*/
|
|
@@ -2,18 +2,11 @@
|
|
|
2
2
|
import { gallery } from "./theme";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import type { GalleryProps, ImgType } from "..";
|
|
5
|
-
import { getTheme
|
|
6
|
-
import { untrack } from "svelte";
|
|
5
|
+
import { getTheme } from "../theme/themeUtils";
|
|
7
6
|
|
|
8
|
-
let { children, figure, items = [],
|
|
7
|
+
let { children, figure, items = [], class: className, classes, ...restProps }: GalleryProps = $props();
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
"Gallery",
|
|
12
|
-
untrack(() => ({ imgClass })),
|
|
13
|
-
{ imgClass: "image" }
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
const styling = $derived(classes ?? { image: imgClass });
|
|
9
|
+
const styling = $derived(classes);
|
|
17
10
|
|
|
18
11
|
const theme = $derived(getTheme("gallery"));
|
|
19
12
|
|
|
@@ -26,7 +19,7 @@
|
|
|
26
19
|
|
|
27
20
|
{#snippet _figure(item: ImgType)}
|
|
28
21
|
<div>
|
|
29
|
-
<img src={item.src} alt={item.alt} class={image({ class: clsx(theme?.image, styling
|
|
22
|
+
<img src={item.src} alt={item.alt} class={image({ class: clsx(theme?.image, styling?.image) })} {...restProps} />
|
|
30
23
|
</div>
|
|
31
24
|
{/snippet}
|
|
32
25
|
|
|
@@ -48,12 +41,11 @@
|
|
|
48
41
|
@component
|
|
49
42
|
[Go to docs](https://flowbite-svelte.com/)
|
|
50
43
|
## Type
|
|
51
|
-
[GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
44
|
+
[GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L988)
|
|
52
45
|
## Props
|
|
53
46
|
@prop children
|
|
54
47
|
@prop figure
|
|
55
48
|
@prop items = []
|
|
56
|
-
@prop imgClass
|
|
57
49
|
@prop class: className
|
|
58
50
|
@prop classes
|
|
59
51
|
@prop ...restProps
|
|
@@ -2,12 +2,11 @@ import type { GalleryProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L988)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop figure
|
|
9
9
|
* @prop items = []
|
|
10
|
-
* @prop imgClass
|
|
11
10
|
* @prop class: className
|
|
12
11
|
* @prop classes
|
|
13
12
|
* @prop ...restProps
|
package/dist/gallery/theme.js
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
@component
|
|
34
34
|
[Go to docs](https://flowbite-svelte.com/)
|
|
35
35
|
## Type
|
|
36
|
-
[IndicatorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
36
|
+
[IndicatorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L998)
|
|
37
37
|
## Props
|
|
38
38
|
@prop children
|
|
39
39
|
@prop color = "brand"
|
|
@@ -2,7 +2,7 @@ import type { IndicatorProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [IndicatorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [IndicatorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L998)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop color = "brand"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
@component
|
|
48
48
|
[Go to docs](https://flowbite-svelte.com/)
|
|
49
49
|
## Type
|
|
50
|
-
[KanbanCardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
50
|
+
[KanbanCardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2036)
|
|
51
51
|
## Props
|
|
52
52
|
@prop card
|
|
53
53
|
@prop isDragging = false
|
|
@@ -2,7 +2,7 @@ import type { KanbanCardProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [KanbanCardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [KanbanCardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2036)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop card
|
|
8
8
|
* @prop isDragging = false
|
package/dist/kbd/Kbd.svelte
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@component
|
|
20
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
21
21
|
## Type
|
|
22
|
-
[KbdProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[KbdProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1009)
|
|
23
23
|
## Props
|
|
24
24
|
@prop children
|
|
25
25
|
@prop class: className
|
package/dist/kbd/Kbd.svelte.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { KbdProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [KbdProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [KbdProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1009)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -6,14 +6,17 @@
|
|
|
6
6
|
import { getTheme } from "../theme/themeUtils";
|
|
7
7
|
import { setListGroupContext } from "../context";
|
|
8
8
|
|
|
9
|
-
let { children, items, active, onclick, horizontal, rounded, border, class: className,
|
|
9
|
+
let { children, items, active, onclick, horizontal, rounded, border, class: className, classes, ...restProps }: ListgroupProps = $props();
|
|
10
10
|
|
|
11
|
+
const styling = $derived(classes);
|
|
11
12
|
const theme = $derived(getTheme("listGroup"));
|
|
12
13
|
|
|
13
|
-
const base = $derived(listGroup({ rounded, border, horizontal
|
|
14
|
+
const { base, item: listItem, icon: listIcon } = $derived(listGroup({ rounded, border, horizontal }));
|
|
14
15
|
|
|
15
16
|
let tag = $derived(active ? "div" : "ul");
|
|
16
17
|
|
|
18
|
+
let listIconCls = $derived(listIcon({ class: clsx(theme?.icon, styling?.icon) }));
|
|
19
|
+
|
|
17
20
|
// Create reactive context using getters
|
|
18
21
|
const context = {
|
|
19
22
|
get active() {
|
|
@@ -35,15 +38,25 @@
|
|
|
35
38
|
}
|
|
36
39
|
</script>
|
|
37
40
|
|
|
38
|
-
<svelte:element this={tag} {...restProps} class={base}>
|
|
41
|
+
<svelte:element this={tag} {...restProps} class={base({ class: clsx(theme?.base, className) })}>
|
|
39
42
|
{#if items?.length}
|
|
40
43
|
{#each items as item, i (i)}
|
|
41
44
|
{#if children}
|
|
42
45
|
{@render children(item)}
|
|
43
46
|
{:else if typeof item === "string"}
|
|
44
|
-
<ListgroupItem href={undefined} class={clsx(
|
|
47
|
+
<ListgroupItem href={undefined} class={listItem({ class: clsx(theme?.item, styling?.item) })} classes={{ icon: listIconCls }} {active} {horizontal} onclick={createItemClickHandler()}>
|
|
48
|
+
{item}
|
|
49
|
+
</ListgroupItem>
|
|
45
50
|
{:else}
|
|
46
|
-
<ListgroupItem
|
|
51
|
+
<ListgroupItem
|
|
52
|
+
href={item.href}
|
|
53
|
+
class={listItem({ class: clsx(theme?.item, styling?.item) })}
|
|
54
|
+
classes={{ icon: listIconCls }}
|
|
55
|
+
{active}
|
|
56
|
+
{horizontal}
|
|
57
|
+
{...item}
|
|
58
|
+
onclick={item.onclick ?? createItemClickHandler()}
|
|
59
|
+
/>
|
|
47
60
|
{/if}
|
|
48
61
|
{/each}
|
|
49
62
|
{:else}
|
|
@@ -55,7 +68,7 @@
|
|
|
55
68
|
@component
|
|
56
69
|
[Go to docs](https://flowbite-svelte.com/)
|
|
57
70
|
## Type
|
|
58
|
-
[ListgroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
71
|
+
[ListgroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1028)
|
|
59
72
|
## Props
|
|
60
73
|
@prop children
|
|
61
74
|
@prop items
|
|
@@ -65,7 +78,6 @@
|
|
|
65
78
|
@prop rounded
|
|
66
79
|
@prop border
|
|
67
80
|
@prop class: className
|
|
68
|
-
@prop
|
|
69
|
-
@prop iconClass
|
|
81
|
+
@prop classes
|
|
70
82
|
@prop ...restProps
|
|
71
83
|
-->
|
|
@@ -2,7 +2,7 @@ import type { ListgroupProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ListgroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ListgroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1028)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop items
|
|
@@ -12,8 +12,7 @@ import type { ListgroupProps } from "..";
|
|
|
12
12
|
* @prop rounded
|
|
13
13
|
* @prop border
|
|
14
14
|
* @prop class: className
|
|
15
|
-
* @prop
|
|
16
|
-
* @prop iconClass
|
|
15
|
+
* @prop classes
|
|
17
16
|
* @prop ...restProps
|
|
18
17
|
*/
|
|
19
18
|
declare const Listgroup: import("svelte").Component<ListgroupProps, {}, "">;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import type { HTMLLiAttributes } from "svelte/elements";
|
|
2
3
|
import clsx from "clsx";
|
|
3
4
|
import type { ListgroupItemProps } from "..";
|
|
4
5
|
import { listGroupItem, type ListgroupItemVariants } from "./theme";
|
|
5
6
|
import { getTheme } from "../theme/themeUtils";
|
|
6
7
|
import { getListGroupContext } from "../context";
|
|
7
8
|
|
|
8
|
-
let { children, active, current, disabled, horizontal, name, Icon, class: className,
|
|
9
|
+
let { children, active, current, disabled, horizontal, name, Icon, class: className, classes, href, type, ...restProps }: ListgroupItemProps = $props();
|
|
9
10
|
|
|
11
|
+
const styling = $derived(classes);
|
|
10
12
|
const theme = $derived(getTheme("listGroupItem"));
|
|
11
13
|
|
|
12
14
|
const listGroupCtx = getListGroupContext();
|
|
@@ -14,12 +16,12 @@
|
|
|
14
16
|
const finalHorizontal = $derived(horizontal ?? listGroupCtx?.horizontal);
|
|
15
17
|
|
|
16
18
|
let state: ListgroupItemVariants["state"] = $derived(disabled ? "disabled" : current ? "current" : "normal");
|
|
17
|
-
|
|
19
|
+
const { base, icon } = $derived(listGroupItem({ state, active: finalActive, horizontal: finalHorizontal }));
|
|
18
20
|
</script>
|
|
19
21
|
|
|
20
22
|
{#snippet nameOrChildren()}
|
|
21
23
|
{#if Icon}
|
|
22
|
-
<Icon class={clsx(
|
|
24
|
+
<Icon class={icon({ class: clsx(theme?.icon, styling?.icon) })} />
|
|
23
25
|
{/if}
|
|
24
26
|
{#if children}
|
|
25
27
|
{@render children()}
|
|
@@ -28,16 +30,16 @@
|
|
|
28
30
|
{/if}
|
|
29
31
|
{/snippet}
|
|
30
32
|
|
|
31
|
-
{#if
|
|
32
|
-
<li class={
|
|
33
|
+
{#if href === undefined && !active}
|
|
34
|
+
<li {...restProps as HTMLLiAttributes} class={base({ class: clsx(theme?.base, className) })}>
|
|
33
35
|
{@render nameOrChildren()}
|
|
34
36
|
</li>
|
|
35
|
-
{:else if
|
|
36
|
-
<button type="button" {...restProps} class={
|
|
37
|
+
{:else if href === undefined}
|
|
38
|
+
<button type={type ?? "button"} {...restProps} class={base({ class: clsx(theme?.base, className) })} {disabled} aria-current={current}>
|
|
37
39
|
{@render nameOrChildren()}
|
|
38
40
|
</button>
|
|
39
41
|
{:else}
|
|
40
|
-
<a {...restProps} class={
|
|
42
|
+
<a {href} {...restProps} class={base({ class: clsx(theme?.base, className) })} aria-current={current}>
|
|
41
43
|
{@render nameOrChildren()}
|
|
42
44
|
</a>
|
|
43
45
|
{/if}
|
|
@@ -46,7 +48,7 @@
|
|
|
46
48
|
@component
|
|
47
49
|
[Go to docs](https://flowbite-svelte.com/)
|
|
48
50
|
## Type
|
|
49
|
-
[ListgroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
51
|
+
[ListgroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1038)
|
|
50
52
|
## Props
|
|
51
53
|
@prop children
|
|
52
54
|
@prop active
|
|
@@ -56,6 +58,8 @@
|
|
|
56
58
|
@prop name
|
|
57
59
|
@prop Icon
|
|
58
60
|
@prop class: className
|
|
59
|
-
@prop
|
|
61
|
+
@prop classes
|
|
62
|
+
@prop href
|
|
63
|
+
@prop type
|
|
60
64
|
@prop ...restProps
|
|
61
65
|
-->
|
|
@@ -2,7 +2,7 @@ import type { ListgroupItemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ListgroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ListgroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1038)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop active
|
|
@@ -12,7 +12,9 @@ import type { ListgroupItemProps } from "..";
|
|
|
12
12
|
* @prop name
|
|
13
13
|
* @prop Icon
|
|
14
14
|
* @prop class: className
|
|
15
|
-
* @prop
|
|
15
|
+
* @prop classes
|
|
16
|
+
* @prop href
|
|
17
|
+
* @prop type
|
|
16
18
|
* @prop ...restProps
|
|
17
19
|
*/
|
|
18
20
|
declare const ListgroupItem: import("svelte").Component<ListgroupItemProps, {}, "">;
|