Skip to content

Commit 8fd977f

Browse files
committed
v1.4.1
1 parent 12a1ca6 commit 8fd977f

File tree

321 files changed

+493
-426
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

321 files changed

+493
-426
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flowbite-svelte",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "Flowbite components for Svelte",
55
"main": "dist/index.js",
66
"author": {

src/lib/card/Card.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
@component
5656
[Go to docs](https://flowbite-svelte.com/)
5757
## Type
58-
[CardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L406)
58+
[CardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L416)
5959
## Props
6060
@prop children
6161
@prop href

src/lib/carousel/Carousel.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
@component
187187
[Go to docs](https://flowbite-svelte.com/)
188188
## Type
189-
[CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L418)
189+
[CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L428)
190190
## Props
191191
@prop children
192192
@prop slide

src/lib/carousel/ControlButton.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
@component
3232
[Go to docs](https://flowbite-svelte.com/)
3333
## Type
34-
[ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L439)
34+
[ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L449)
3535
## Props
3636
@prop children
3737
@prop forward

src/lib/carousel/Controls.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
@component
5252
[Go to docs](https://flowbite-svelte.com/)
5353
## Type
54-
[ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L444)
54+
[ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L454)
5555
## Props
5656
@prop children
5757
@prop class: className

src/lib/carousel/Indicators.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
@component
4242
[Go to docs](https://flowbite-svelte.com/)
4343
## Type
44-
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L432)
44+
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L442)
4545
## Props
4646
@prop children
4747
@prop activeClass

src/lib/carousel/Slide.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
@component
4444
[Go to docs](https://flowbite-svelte.com/)
4545
## Type
46-
[SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L462)
46+
[SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L472)
4747
## Props
4848
@prop image
4949
@prop transition

src/lib/carousel/Thumbnail.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@component
1313
[Go to docs](https://flowbite-svelte.com/)
1414
## Type
15-
[ThumbnailProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L449)
15+
[ThumbnailProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L459)
1616
## Props
1717
@prop selected
1818
@prop class: className

src/lib/carousel/Thumbnails.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
@component
6666
[Go to docs](https://flowbite-svelte.com/)
6767
## Type
68-
[ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L453)
68+
[ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L463)
6969
## Props
7070
@prop children
7171
@prop images = []

src/lib/chart/Chart.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
@component
3939
[Go to docs](https://flowbite-svelte.com/)
4040
## Type
41-
[ChartProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L468)
41+
[ChartProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L478)
4242
## Props
4343
@prop options
4444
@prop class: classname

src/lib/darkmode/DarkMode.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
@component
6262
[Go to docs](https://flowbite-svelte.com/)
6363
## Type
64-
[DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L474)
64+
[DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L484)
6565
## Props
6666
@prop class: className
6767
@prop lightIcon

src/lib/datepicker/Datepicker.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
@component
231231
[Go to docs](https://flowbite-svelte.com/)
232232
## Type
233-
[DatepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L485)
233+
[DatepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L495)
234234
## Props
235235
@prop value = $bindable()
236236
@prop defaultDate = null

src/lib/device-mockups/Android.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
@component
2525
[Go to docs](https://flowbite-svelte.com/)
2626
## Type
27-
[AndroidProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L522)
27+
[AndroidProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L532)
2828
## Props
2929
@prop children
3030
@prop divClass

src/lib/device-mockups/DefaultMockup.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
@component
2424
[Go to docs](https://flowbite-svelte.com/)
2525
## Type
26-
[DefaultMockupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L533)
26+
[DefaultMockupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L543)
2727
## Props
2828
@prop children
2929
@prop divClass

src/lib/device-mockups/Desktop.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@component
2222
[Go to docs](https://flowbite-svelte.com/)
2323
## Type
24-
[MockupBaseProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L514)
24+
[MockupBaseProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L524)
2525
## Props
2626
@prop children
2727
@prop divClass

src/lib/device-mockups/DeviceMockup.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
@component
3333
[Go to docs](https://flowbite-svelte.com/)
3434
## Type
35-
[DeviceMockupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L509)
35+
[DeviceMockupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L519)
3636
## Props
3737
@prop children
3838
@prop device = "default"

src/lib/device-mockups/Ios.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
@component
2424
[Go to docs](https://flowbite-svelte.com/)
2525
## Type
26-
[IosProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L543)
26+
[IosProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L553)
2727
## Props
2828
@prop children
2929
@prop divClass

src/lib/device-mockups/Laptop.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
@component
2525
[Go to docs](https://flowbite-svelte.com/)
2626
## Type
27-
[MockupBaseProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L514)
27+
[MockupBaseProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L524)
2828
## Props
2929
@prop children
3030
@prop divClass

src/lib/device-mockups/Smartwatch.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
@component
2626
[Go to docs](https://flowbite-svelte.com/)
2727
## Type
28-
[SmartwatchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L553)
28+
[SmartwatchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L563)
2929
## Props
3030
@prop children
3131
@prop divClass

src/lib/device-mockups/Tablet.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
@component
2424
[Go to docs](https://flowbite-svelte.com/)
2525
## Type
26-
[TabletProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L563)
26+
[TabletProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L573)
2727
## Props
2828
@prop children
2929
@prop divClass

src/lib/drawer/Drawer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
@component
3939
[Go to docs](https://flowbite-svelte.com/)
4040
## Type
41-
[DrawerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L574)
41+
[DrawerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L584)
4242
## Props
4343
@prop children
4444
@prop hidden = $bindable()

src/lib/drawer/Drawerhead.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@component
2929
[Go to docs](https://flowbite-svelte.com/)
3030
## Type
31-
[DrawerheadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L584)
31+
[DrawerheadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L594)
3232
## Props
3333
@prop closeIcon
3434
@prop children

src/lib/dropdown/Dropdown.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
@component
3535
[Go to docs](https://flowbite-svelte.com/)
3636
## Type
37-
[DropdownProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L591)
37+
[DropdownProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L601)
3838
## Props
3939
@prop children
4040
@prop simple = false

src/lib/dropdown/DropdownDivider.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@component
1414
[Go to docs](https://flowbite-svelte.com/)
1515
## Type
16-
[DropdownDividerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L602)
16+
[DropdownDividerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L612)
1717
## Props
1818
@prop class: divClass
1919
@prop ...restProps

src/lib/dropdown/DropdownGroup.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
@component
1717
[Go to docs](https://flowbite-svelte.com/)
1818
## Type
19-
[DropdownGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L619)
19+
[DropdownGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L629)
2020
## Props
2121
@prop children
2222
@prop class: className

src/lib/dropdown/DropdownHeader.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@component
1616
[Go to docs](https://flowbite-svelte.com/)
1717
## Type
18-
[DropdownHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L604)
18+
[DropdownHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L614)
1919
## Props
2020
@prop children
2121
@prop class: className

src/lib/dropdown/DropdownItem.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
@component
4242
[Go to docs](https://flowbite-svelte.com/)
4343
## Type
44-
[DropdownItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L610)
44+
[DropdownItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L620)
4545
## Props
4646
@prop aClass
4747
@prop children

src/lib/footer/Footer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@component
1616
[Go to docs](https://flowbite-svelte.com/)
1717
## Type
18-
[FooterProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L626)
18+
[FooterProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L636)
1919
## Props
2020
@prop children
2121
@prop footerType = "default"

src/lib/footer/FooterBrand.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@component
2828
[Go to docs](https://flowbite-svelte.com/)
2929
## Type
30-
[FooterBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L632)
30+
[FooterBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L642)
3131
## Props
3232
@prop children
3333
@prop aClass

src/lib/footer/FooterCopyright.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
@component
2626
[Go to docs](https://flowbite-svelte.com/)
2727
## Type
28-
[FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L643)
28+
[FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L653)
2929
## Props
3030
@prop spanClass
3131
@prop aClass

src/lib/footer/FooterIcon.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
@component
2020
[Go to docs](https://flowbite-svelte.com/)
2121
## Type
22-
[FooterIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L652)
22+
[FooterIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L662)
2323
## Props
2424
@prop children
2525
@prop href

src/lib/footer/FooterLink.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
@component
1717
[Go to docs](https://flowbite-svelte.com/)
1818
## Type
19-
[FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L664)
19+
[FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L674)
2020
## Props
2121
@prop children
2222
@prop liClass

src/lib/footer/FooterLinkGroup.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@component
1515
[Go to docs](https://flowbite-svelte.com/)
1616
## Type
17-
[FooterLinkGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L659)
17+
[FooterLinkGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L669)
1818
## Props
1919
@prop class: ulClass
2020
@prop children

src/lib/forms/button-toggle/ButtonToggle.svelte

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import type { ButtonToggleVariants } from "./theme";
77
import { type ButtonToggleProps, type ButtonToggleContext } from "$lib";
88
9-
let { value, selected = false, children, iconSlot, color, class:className, iconClass, txtClass, ...restProps }: ButtonToggleProps = $props();
9+
let { value, selected = false, children, iconSlot, color, class: className, iconClass, txtClass, ...restProps }: ButtonToggleProps = $props();
1010
1111
const { toggleSelected, isSelected } = getContext<ButtonToggleContext>("button-toggle-group");
1212
const multiSelect = getContext<boolean>("multiSelect");
@@ -32,7 +32,7 @@
3232
{#if iconSlot}
3333
{@render iconSlot()}
3434
{:else}
35-
<CheckIcon class={twMerge("absolute left-0 flex-shrink-0 text-green-600", actualIconClass)}/>
35+
<CheckIcon class={twMerge("absolute left-0 flex-shrink-0 text-green-600", actualIconClass)} />
3636
{/if}
3737
{/if}
3838
<span class={buttonToggleText({ selected, class: txtClass })}>
@@ -45,10 +45,15 @@
4545
@component
4646
[Go to docs](https://flowbite-svelte.com/)
4747
## Type
48-
[ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L372)
48+
[ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L374)
4949
## Props
5050
@prop value
5151
@prop selected = false
5252
@prop children
53+
@prop iconSlot
5354
@prop color
55+
@prop class:className
56+
@prop iconClass
57+
@prop txtClass
58+
@prop ...restProps
5459
-->

src/lib/forms/button-toggle/CheckIcon.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
let { class:className, ...restProps } = $props();
2+
let { class: className, ...restProps } = $props();
33
</script>
44

55
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class={className} {...restProps}>

src/lib/forms/checkbox/CheckboxButton.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
@component
5656
[Go to docs](https://flowbite-svelte.com/)
5757
## Type
58-
[CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L705)
58+
[CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L715)
5959
## Props
6060
@prop children
6161
@prop class: className

src/lib/forms/dropzone/Dropzone.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
@component
6363
[Go to docs](https://flowbite-svelte.com/)
6464
## Type
65-
[DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L718)
65+
[DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L728)
6666
## Props
6767
@prop children
6868
@prop files = $bindable<FileList | null>()

src/lib/forms/fileupload/Fileupload.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@component
2828
[Go to docs](https://flowbite-svelte.com/)
2929
## Type
30-
[FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L724)
30+
[FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L734)
3131
## Props
3232
@prop files = $bindable()
3333
@prop size = "md"

src/lib/forms/floating-label/FloatingLabelInput.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
@component
149149
[Go to docs](https://flowbite-svelte.com/)
150150
## Type
151-
[FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L737)
151+
[FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L747)
152152
## Props
153153
@prop children
154154
@prop id = idGenerator()

src/lib/forms/helper/Helper.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
@component
1717
[Go to docs](https://flowbite-svelte.com/)
1818
## Type
19-
[HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L759)
19+
[HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L769)
2020
## Props
2121
@prop children
2222
@prop class: className

0 commit comments

Comments
 (0)