flowbite-svelte 1.13.4 → 1.13.6

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.
Files changed (227) hide show
  1. package/dist/forms/checkbox/Checkbox.svelte +39 -25
  2. package/dist/forms/checkbox/CheckboxButton.svelte +9 -46
  3. package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +4 -5
  4. package/dist/forms/checkbox/theme.d.ts +5 -1
  5. package/dist/forms/checkbox/theme.js +2 -1
  6. package/dist/forms/dropzone/Dropzone.svelte +1 -1
  7. package/dist/forms/dropzone/Dropzone.svelte.d.ts +1 -1
  8. package/dist/forms/fileupload/Fileupload.svelte +1 -1
  9. package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
  10. package/dist/forms/floating-label/FloatingLabelInput.svelte +1 -1
  11. package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
  12. package/dist/forms/helper/Helper.svelte +1 -1
  13. package/dist/forms/helper/Helper.svelte.d.ts +1 -1
  14. package/dist/forms/input-addon/InputAddon.svelte +1 -1
  15. package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
  16. package/dist/forms/label/Label.svelte +1 -1
  17. package/dist/forms/label/Label.svelte.d.ts +1 -1
  18. package/dist/forms/range/Range.svelte +1 -1
  19. package/dist/forms/range/Range.svelte.d.ts +1 -1
  20. package/dist/forms/search/Search.svelte +1 -1
  21. package/dist/forms/search/Search.svelte.d.ts +1 -1
  22. package/dist/forms/tags/Tags.svelte +1 -1
  23. package/dist/forms/tags/Tags.svelte.d.ts +1 -1
  24. package/dist/forms/textarea/Textarea.svelte +1 -1
  25. package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
  26. package/dist/forms/timepicker/Timepicker.svelte +1 -1
  27. package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
  28. package/dist/forms/toggle/Toggle.svelte +1 -1
  29. package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
  30. package/dist/gallery/Gallery.svelte +1 -1
  31. package/dist/gallery/Gallery.svelte.d.ts +1 -1
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.js +1 -1
  34. package/dist/indicator/Indicator.svelte +1 -1
  35. package/dist/indicator/Indicator.svelte.d.ts +1 -1
  36. package/dist/kbd/Kbd.svelte +1 -1
  37. package/dist/kbd/Kbd.svelte.d.ts +1 -1
  38. package/dist/list-group/Listgroup.svelte +1 -1
  39. package/dist/list-group/Listgroup.svelte.d.ts +1 -1
  40. package/dist/list-group/ListgroupItem.svelte +1 -1
  41. package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
  42. package/dist/mega-menu/MegaMenu.svelte +1 -1
  43. package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
  44. package/dist/modal/Modal.svelte +1 -1
  45. package/dist/modal/Modal.svelte.d.ts +1 -1
  46. package/dist/navbar/Menu.svelte +1 -1
  47. package/dist/navbar/Menu.svelte.d.ts +1 -1
  48. package/dist/navbar/NavBrand.svelte +1 -1
  49. package/dist/navbar/NavBrand.svelte.d.ts +1 -1
  50. package/dist/navbar/NavContainer.svelte +1 -1
  51. package/dist/navbar/NavContainer.svelte.d.ts +1 -1
  52. package/dist/navbar/NavHamburger.svelte +1 -1
  53. package/dist/navbar/NavHamburger.svelte.d.ts +1 -1
  54. package/dist/navbar/NavLi.svelte +1 -1
  55. package/dist/navbar/NavLi.svelte.d.ts +1 -1
  56. package/dist/navbar/NavUl.svelte +1 -1
  57. package/dist/navbar/NavUl.svelte.d.ts +1 -1
  58. package/dist/navbar/Navbar.svelte +1 -1
  59. package/dist/navbar/Navbar.svelte.d.ts +1 -1
  60. package/dist/pagination/Pagination.svelte +1 -1
  61. package/dist/pagination/Pagination.svelte.d.ts +1 -1
  62. package/dist/pagination/PaginationButton.svelte +1 -1
  63. package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
  64. package/dist/pagination/PaginationItem.svelte +1 -1
  65. package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
  66. package/dist/pagination/PaginationNav.svelte +1 -1
  67. package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
  68. package/dist/popover/Popover.svelte +1 -1
  69. package/dist/popover/Popover.svelte.d.ts +1 -1
  70. package/dist/progress/Progressbar.svelte +1 -1
  71. package/dist/progress/Progressbar.svelte.d.ts +1 -1
  72. package/dist/progress/Progressradial.svelte +1 -1
  73. package/dist/progress/Progressradial.svelte.d.ts +1 -1
  74. package/dist/rating/AdvancedRating.svelte +1 -1
  75. package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
  76. package/dist/rating/CustomIcon.svelte +1 -1
  77. package/dist/rating/CustomIcon.svelte.d.ts +1 -1
  78. package/dist/rating/Heart.svelte +1 -1
  79. package/dist/rating/Heart.svelte.d.ts +1 -1
  80. package/dist/rating/Rating.svelte +1 -1
  81. package/dist/rating/Rating.svelte.d.ts +1 -1
  82. package/dist/rating/RatingComment.svelte +1 -1
  83. package/dist/rating/RatingComment.svelte.d.ts +1 -1
  84. package/dist/rating/Review.svelte +1 -1
  85. package/dist/rating/Review.svelte.d.ts +1 -1
  86. package/dist/rating/ScoreRating.svelte +1 -1
  87. package/dist/rating/ScoreRating.svelte.d.ts +1 -1
  88. package/dist/rating/Star.svelte +1 -1
  89. package/dist/rating/Star.svelte.d.ts +1 -1
  90. package/dist/rating/Thumbup.svelte +1 -1
  91. package/dist/rating/Thumbup.svelte.d.ts +1 -1
  92. package/dist/sidebar/Sidebar.svelte +1 -1
  93. package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
  94. package/dist/sidebar/SidebarBrand.svelte +1 -1
  95. package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
  96. package/dist/sidebar/SidebarButton.svelte +1 -1
  97. package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
  98. package/dist/sidebar/SidebarCta.svelte +1 -1
  99. package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
  100. package/dist/sidebar/SidebarDropdownWrapper.svelte +1 -1
  101. package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
  102. package/dist/sidebar/SidebarGroup.svelte +1 -1
  103. package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
  104. package/dist/sidebar/SidebarItem.svelte +1 -1
  105. package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
  106. package/dist/skeleton/CardPlaceholder.svelte +1 -1
  107. package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
  108. package/dist/skeleton/ImagePlaceholder.svelte +1 -1
  109. package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
  110. package/dist/skeleton/ListPlaceholder.svelte +1 -1
  111. package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
  112. package/dist/skeleton/Skeleton.svelte +1 -1
  113. package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
  114. package/dist/skeleton/TestimonialPlaceholder.svelte +1 -1
  115. package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
  116. package/dist/skeleton/TextPlaceholder.svelte +1 -1
  117. package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
  118. package/dist/skeleton/VideoPlaceholder.svelte +1 -1
  119. package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
  120. package/dist/skeleton/WidgetPlaceholder.svelte +1 -1
  121. package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
  122. package/dist/speed-dial/SpeedDial.svelte +1 -1
  123. package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
  124. package/dist/speed-dial/SpeedDialButton.svelte +1 -1
  125. package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
  126. package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
  127. package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
  128. package/dist/spinner/Spinner.svelte +1 -1
  129. package/dist/spinner/Spinner.svelte.d.ts +1 -1
  130. package/dist/{stepindicator → step-indicator}/StepIndicator.svelte +1 -1
  131. package/dist/{stepindicator → step-indicator}/StepIndicator.svelte.d.ts +1 -1
  132. package/dist/stepper/BreadcrumbStepper.svelte +1 -1
  133. package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
  134. package/dist/stepper/DetailedStepper.svelte +1 -1
  135. package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
  136. package/dist/stepper/ProgressStepper.svelte +1 -1
  137. package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
  138. package/dist/stepper/Stepper.svelte +1 -1
  139. package/dist/stepper/Stepper.svelte.d.ts +1 -1
  140. package/dist/stepper/TimelineStepper.svelte +1 -1
  141. package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
  142. package/dist/stepper/VerticalStepper.svelte +1 -1
  143. package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
  144. package/dist/table/Table.svelte +1 -1
  145. package/dist/table/Table.svelte.d.ts +1 -1
  146. package/dist/table/TableBody.svelte +1 -1
  147. package/dist/table/TableBody.svelte.d.ts +1 -1
  148. package/dist/table/TableBodyCell.svelte +1 -1
  149. package/dist/table/TableBodyCell.svelte.d.ts +1 -1
  150. package/dist/table/TableBodyRow.svelte +1 -1
  151. package/dist/table/TableBodyRow.svelte.d.ts +1 -1
  152. package/dist/table/TableHead.svelte +1 -1
  153. package/dist/table/TableHead.svelte.d.ts +1 -1
  154. package/dist/table/TableHeadCell.svelte +1 -1
  155. package/dist/table/TableHeadCell.svelte.d.ts +1 -1
  156. package/dist/table/TableSearch.svelte +1 -1
  157. package/dist/table/TableSearch.svelte.d.ts +1 -1
  158. package/dist/tabs/TabItem.svelte +1 -1
  159. package/dist/tabs/TabItem.svelte.d.ts +1 -1
  160. package/dist/tabs/Tabs.svelte +1 -1
  161. package/dist/tabs/Tabs.svelte.d.ts +1 -1
  162. package/dist/theme/themes.d.ts +1 -1
  163. package/dist/theme/themes.js +1 -1
  164. package/dist/timeline/Activity.svelte +1 -1
  165. package/dist/timeline/Activity.svelte.d.ts +1 -1
  166. package/dist/timeline/ActivityItem.svelte +1 -1
  167. package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
  168. package/dist/timeline/Group.svelte +1 -1
  169. package/dist/timeline/Group.svelte.d.ts +1 -1
  170. package/dist/timeline/GroupItem.svelte +1 -1
  171. package/dist/timeline/GroupItem.svelte.d.ts +1 -1
  172. package/dist/timeline/Timeline.svelte +1 -1
  173. package/dist/timeline/Timeline.svelte.d.ts +1 -1
  174. package/dist/timeline/TimelineItem.svelte +1 -1
  175. package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
  176. package/dist/toast/Toast.svelte +1 -1
  177. package/dist/toast/Toast.svelte.d.ts +1 -1
  178. package/dist/toolbar/Toolbar.svelte +1 -1
  179. package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
  180. package/dist/toolbar/ToolbarButton.svelte +1 -1
  181. package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
  182. package/dist/toolbar/ToolbarGroup.svelte +1 -1
  183. package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
  184. package/dist/tooltip/Tooltip.svelte +1 -1
  185. package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
  186. package/dist/types.d.ts +5 -10
  187. package/dist/typography/a/A.svelte +1 -1
  188. package/dist/typography/a/A.svelte.d.ts +1 -1
  189. package/dist/typography/blockquote/Blockquote.svelte +1 -1
  190. package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
  191. package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
  192. package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
  193. package/dist/typography/heading/Heading.svelte +1 -1
  194. package/dist/typography/heading/Heading.svelte.d.ts +1 -1
  195. package/dist/typography/hr/Hr.svelte +1 -1
  196. package/dist/typography/hr/Hr.svelte.d.ts +1 -1
  197. package/dist/typography/img/EnhancedImg.svelte +1 -1
  198. package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
  199. package/dist/typography/img/Img.svelte +1 -1
  200. package/dist/typography/img/Img.svelte.d.ts +1 -1
  201. package/dist/typography/layout/Layout.svelte +1 -1
  202. package/dist/typography/layout/Layout.svelte.d.ts +1 -1
  203. package/dist/typography/list/Li.svelte +1 -1
  204. package/dist/typography/list/Li.svelte.d.ts +1 -1
  205. package/dist/typography/list/List.svelte +1 -1
  206. package/dist/typography/list/List.svelte.d.ts +1 -1
  207. package/dist/typography/mark/Mark.svelte +1 -1
  208. package/dist/typography/mark/Mark.svelte.d.ts +1 -1
  209. package/dist/typography/paragraph/P.svelte +1 -1
  210. package/dist/typography/paragraph/P.svelte.d.ts +1 -1
  211. package/dist/typography/secondary/Secondary.svelte +1 -1
  212. package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
  213. package/dist/typography/span/Span.svelte +1 -1
  214. package/dist/typography/span/Span.svelte.d.ts +1 -1
  215. package/dist/utils/Arrow.svelte +1 -1
  216. package/dist/utils/Arrow.svelte.d.ts +1 -1
  217. package/dist/utils/Popper.svelte +1 -1
  218. package/dist/utils/Popper.svelte.d.ts +1 -1
  219. package/dist/utils/singleselection.svelte.d.ts +2 -2
  220. package/dist/utils/singleselection.svelte.js +4 -2
  221. package/dist/video/Video.svelte +1 -1
  222. package/dist/video/Video.svelte.d.ts +1 -1
  223. package/package.json +8 -8
  224. /package/dist/{stepindicator → step-indicator}/index.d.ts +0 -0
  225. /package/dist/{stepindicator → step-indicator}/index.js +0 -0
  226. /package/dist/{stepindicator → step-indicator}/theme.d.ts +0 -0
  227. /package/dist/{stepindicator → step-indicator}/theme.js +0 -0
@@ -1,46 +1,60 @@
1
1
  <script lang="ts">
2
2
  import { checkbox } from ".";
3
3
  import clsx from "clsx";
4
- import { type CheckboxProps, type CheckboxItem, Label } from "../..";
4
+ import { type CheckboxProps, Label } from "../..";
5
5
  import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
6
6
 
7
- let { children, color = "primary", custom, inline, tinted, rounded, group = $bindable([]), choices = [], checked = $bindable(false), indeterminate, classes, class: className, divClass, disabled = false, value, labelProps = {}, ...restProps }: CheckboxProps = $props();
7
+ let { children, color = "primary", custom, inline, tinted, rounded, group = $bindable([]), choices = [], checked = $bindable(false), classes, class: className, divClass, disabled, value, labelProps = {}, ...restProps }: CheckboxProps = $props();
8
8
 
9
9
  warnThemeDeprecation("Checkbox", { divClass }, { divClass: "div" });
10
10
  const styling = $derived(classes ?? { div: divClass });
11
11
 
12
12
  const theme = getTheme("checkbox");
13
13
 
14
- const disabledValue = $derived(disabled === null ? undefined : disabled);
15
- const { base, div: divStyle } = $derived(checkbox({ color, tinted, custom, rounded, inline, disabled: disabledValue }));
14
+ const { base, div: divStyle } = $derived(checkbox({ color, tinted, custom, rounded, inline, disabled: disabled ?? false }));
16
15
 
17
- // Separate label rendering logic
18
- function renderLabel(choice?: CheckboxItem) {
19
- if (!choice) return "";
16
+ $effect(() => {
17
+ if (value !== undefined && Array.isArray(group)) {
18
+ checked = group.includes(value);
19
+ }
20
+ });
21
+
22
+ $effect(() => {
23
+ if (value === undefined || !Array.isArray(group)) return;
24
+ // There's a bug in Svelte and bind:group is not working with wrapped checkbox
25
+ // This workaround is taken from:
26
+ // https://svelte.dev/repl/de117399559f4e7e9e14e2fc9ab243cc?version=3.12.1
27
+ const index = group.indexOf(value);
28
+ if (checked === undefined) checked = index >= 0;
20
29
 
21
- if (children) {
22
- return children(choice);
30
+ if (checked) {
31
+ if (index < 0) {
32
+ group.push(value);
33
+ }
34
+ } else {
35
+ if (index >= 0) {
36
+ group.splice(index, 1);
37
+ }
23
38
  }
24
- return choice.label || "";
25
- }
39
+ });
26
40
  </script>
27
41
 
28
42
  {#if choices.length > 0}
29
- {#each choices as choice, i}
30
- <div class={divStyle({ class: clsx(theme?.div, styling.div) })}>
31
- <Label show={true} {...labelProps}>
32
- <input type="checkbox" value={choice.value} checked={choice.checked ?? false} {disabled} bind:group {...restProps} class={base({ class: clsx(theme?.base, className) })} />
33
- {renderLabel(choice)}
34
- </Label>
35
- </div>
36
- {/each}
37
- {:else}
38
- <div class={divStyle({ class: clsx(theme?.div, styling.div) })}>
39
- <Label show={true} {...labelProps}>
40
- <input type="checkbox" {value} bind:checked {indeterminate} {disabled} {...restProps} class={base({ class: clsx(theme?.base, className) })} />
43
+ {#each choices as choice, i (choice.value ?? i)}
44
+ <Label show={!!children || !!choice.label} {...labelProps} class={divStyle({ class: clsx(theme?.div, styling.div) })}>
45
+ <input type="checkbox" value={choice.value} checked={choice.checked ?? false} {disabled} bind:group {...restProps} class={base({ class: clsx(theme?.base, className) })} />
41
46
  {#if children}
42
- {@render children({ value, checked, disabled })}
47
+ {@render children({ value: choice.value, checked: choice.checked, disabled })}
48
+ {:else}
49
+ {choice.label}
43
50
  {/if}
44
51
  </Label>
45
- </div>
52
+ {/each}
53
+ {:else}
54
+ <Label show={!!children} {...labelProps} class={divStyle({ class: clsx(theme?.div, styling.div) })}>
55
+ <input type="checkbox" {value} bind:checked {disabled} {...restProps} class={base({ class: clsx(theme?.base, className) })} />
56
+ {#if children}
57
+ {@render children({ value, checked, disabled })}
58
+ {/if}
59
+ </Label>
46
60
  {/if}
@@ -1,56 +1,20 @@
1
1
  <script lang="ts">
2
+ import { type CheckboxButtonProps } from "../..";
2
3
  import Button from "../../buttons/Button.svelte";
4
+ import { getTheme } from "../../theme/themeUtils";
3
5
  import clsx from "clsx";
4
- import { type CheckboxButtonProps } from "../..";
6
+ import Checkbox from "./Checkbox.svelte";
5
7
  import { checkboxButton } from "./theme";
6
- import { getTheme } from "../../theme/themeUtils";
7
8
 
8
- let { children, class: className, group = $bindable([]), value, checked, inline, pill, outline, size, color, shadow, ...restProps }: CheckboxButtonProps = $props();
9
+ let { children, class: className, group = $bindable(), checked = $bindable(false), inline, pill, outline, size, color, shadow, ...restProps }: CheckboxButtonProps = $props();
9
10
 
10
11
  const theme = getTheme("checkboxButton");
11
12
 
12
- // react on external group changes
13
- function init(_: HTMLElement, _group: (string | number)[]) {
14
- group = _group ?? [];
15
-
16
- if (checked === undefined && value !== undefined) checked = group.includes(value);
17
- onChange();
18
-
19
- $effect(() => {
20
- if (value !== undefined) {
21
- checked = group.includes(value);
22
- }
23
- });
24
- }
25
-
26
- function onChange() {
27
- if (!value) return;
28
-
29
- // There's a bug in Svelte and bind:group is not working with wrapped checkbox
30
- // This workaround is taken from:
31
- // https://svelte.dev/repl/de117399559f4e7e9e14e2fc9ab243cc?version=3.12.1
32
- const index = group.indexOf(value);
33
-
34
- if (checked === undefined) checked = index >= 0;
35
-
36
- if (checked) {
37
- if (index < 0) {
38
- group.push(value);
39
- group = group;
40
- }
41
- } else {
42
- if (index >= 0) {
43
- group.splice(index, 1);
44
- group = group;
45
- }
46
- }
47
- }
48
-
49
13
  let buttonClass: string = $derived(checkboxButton({ inline, checked, class: clsx(theme, className) }));
50
14
  </script>
51
15
 
52
- <Button tag="label" {checked} {pill} {outline} {size} {color} {shadow} class={buttonClass}>
53
- <input use:init={group} type="checkbox" bind:checked {value} {...restProps} class="sr-only" onchange={onChange} />
16
+ <Button tag="label" {pill} {outline} {size} {color} {shadow} class={buttonClass}>
17
+ <Checkbox bind:group bind:checked {...restProps} class="sr-only"></Checkbox>
54
18
  {@render children?.()}
55
19
  </Button>
56
20
 
@@ -58,13 +22,12 @@
58
22
  @component
59
23
  [Go to docs](https://flowbite-svelte.com/)
60
24
  ## Type
61
- [CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L691)
25
+ [CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L689)
62
26
  ## Props
63
27
  @prop children
64
28
  @prop class: className
65
- @prop group = $bindable([])
66
- @prop value
67
- @prop checked
29
+ @prop group = $bindable()
30
+ @prop checked = $bindable(false)
68
31
  @prop inline
69
32
  @prop pill
70
33
  @prop outline
@@ -2,13 +2,12 @@ import { type CheckboxButtonProps } from "../..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L691)
5
+ * [CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L689)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
9
- * @prop group = $bindable([])
10
- * @prop value
11
- * @prop checked
9
+ * @prop group = $bindable()
10
+ * @prop checked = $bindable(false)
12
11
  * @prop inline
13
12
  * @prop pill
14
13
  * @prop outline
@@ -17,6 +16,6 @@ import { type CheckboxButtonProps } from "../..";
17
16
  * @prop shadow
18
17
  * @prop ...restProps
19
18
  */
20
- declare const CheckboxButton: import("svelte").Component<CheckboxButtonProps, {}, "group">;
19
+ declare const CheckboxButton: import("svelte").Component<CheckboxButtonProps, {}, "group" | "checked">;
21
20
  type CheckboxButton = ReturnType<typeof CheckboxButton>;
22
21
  export default CheckboxButton;
@@ -1,6 +1,5 @@
1
1
  import { type VariantProps } from "tailwind-variants";
2
2
  import type { Classes } from "../../theme/themeUtils";
3
- export type CheckboxVariants = VariantProps<typeof checkbox> & Classes<typeof checkbox>;
4
3
  export declare const checkbox: import("tailwind-variants").TVReturnType<{
5
4
  color: {
6
5
  primary: {
@@ -93,6 +92,7 @@ export declare const checkbox: import("tailwind-variants").TVReturnType<{
93
92
  base: string;
94
93
  div: string;
95
94
  };
95
+ false: {};
96
96
  };
97
97
  }, {
98
98
  base: string;
@@ -189,6 +189,7 @@ export declare const checkbox: import("tailwind-variants").TVReturnType<{
189
189
  base: string;
190
190
  div: string;
191
191
  };
192
+ false: {};
192
193
  };
193
194
  }, {
194
195
  base: string;
@@ -285,11 +286,13 @@ export declare const checkbox: import("tailwind-variants").TVReturnType<{
285
286
  base: string;
286
287
  div: string;
287
288
  };
289
+ false: {};
288
290
  };
289
291
  }, {
290
292
  base: string;
291
293
  div: string;
292
294
  }, undefined, unknown, unknown, undefined>>;
295
+ export type CheckboxVariants = Omit<VariantProps<typeof checkbox> & Classes<typeof checkbox>, "disabled">;
293
296
  export declare const checkboxButton: import("tailwind-variants").TVReturnType<{
294
297
  inline: {
295
298
  true: string;
@@ -315,3 +318,4 @@ export declare const checkboxButton: import("tailwind-variants").TVReturnType<{
315
318
  true: string;
316
319
  };
317
320
  }, undefined, "", unknown, unknown, undefined>>;
321
+ export type CheckboxButtonVariants = VariantProps<typeof checkboxButton>;
@@ -88,7 +88,8 @@ export const checkbox = tv({
88
88
  true: {
89
89
  base: "cursor-not-allowed opacity-50 bg-gray-200 border-gray-300",
90
90
  div: "cursor-not-allowed opacity-70"
91
- }
91
+ },
92
+ false: {}
92
93
  }
93
94
  },
94
95
  defaultVariants: {
@@ -52,7 +52,7 @@
52
52
  @component
53
53
  [Go to docs](https://flowbite-svelte.com/)
54
54
  ## Type
55
- [DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L704)
55
+ [DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L699)
56
56
  ## Props
57
57
  @prop children
58
58
  @prop files = $bindable<FileList | null>()
@@ -2,7 +2,7 @@ import { type DropzoneProps } from "../..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L704)
5
+ * [DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L699)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop files = $bindable<FileList | null>()
@@ -36,7 +36,7 @@
36
36
  @component
37
37
  [Go to docs](https://flowbite-svelte.com/)
38
38
  ## Type
39
- [FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L713)
39
+ [FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L708)
40
40
  ## Props
41
41
  @prop files = $bindable()
42
42
  @prop size = "md"
@@ -2,7 +2,7 @@ import { type FileuploadProps } from "../..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L713)
5
+ * [FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L708)
6
6
  * ## Props
7
7
  * @prop files = $bindable()
8
8
  * @prop size = "md"
@@ -167,7 +167,7 @@
167
167
  @component
168
168
  [Go to docs](https://flowbite-svelte.com/)
169
169
  ## Type
170
- [FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L727)
170
+ [FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L722)
171
171
  ## Props
172
172
  @prop children
173
173
  @prop id = idGenerator()
@@ -2,7 +2,7 @@ import { type FloatingLabelInputProps } from "../..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L727)
5
+ * [FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L722)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop id = idGenerator()
@@ -19,7 +19,7 @@
19
19
  @component
20
20
  [Go to docs](https://flowbite-svelte.com/)
21
21
  ## Type
22
- [HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L750)
22
+ [HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L745)
23
23
  ## Props
24
24
  @prop children
25
25
  @prop class: className
@@ -2,7 +2,7 @@ import { type HelperProps } from "../..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L750)
5
+ * [HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L745)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -41,7 +41,7 @@
41
41
  @component
42
42
  [Go to docs](https://flowbite-svelte.com/)
43
43
  ## Type
44
- [InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L792)
44
+ [InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L787)
45
45
  ## Props
46
46
  @prop children
47
47
  @prop class: className
@@ -2,7 +2,7 @@ import { type InputAddonProps } from "../..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L792)
5
+ * [InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L787)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -23,7 +23,7 @@
23
23
  @component
24
24
  [Go to docs](https://flowbite-svelte.com/)
25
25
  ## Type
26
- [LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L807)
26
+ [LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L802)
27
27
  ## Props
28
28
  @prop children
29
29
  @prop color = "gray"
@@ -2,7 +2,7 @@ import { type LabelProps } from "../..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L807)
5
+ * [LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L802)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop color = "gray"
@@ -17,7 +17,7 @@
17
17
  @component
18
18
  [Go to docs](https://flowbite-svelte.com/)
19
19
  ## Type
20
- [RangeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L835)
20
+ [RangeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L830)
21
21
  ## Props
22
22
  @prop value = $bindable()
23
23
  @prop appearance = "none"
@@ -2,7 +2,7 @@ import { type RangeProps } from "../..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [RangeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L835)
5
+ * [RangeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L830)
6
6
  * ## Props
7
7
  * @prop value = $bindable()
8
8
  * @prop appearance = "none"
@@ -46,7 +46,7 @@
46
46
  @component
47
47
  [Go to docs](https://flowbite-svelte.com/)
48
48
  ## Type
49
- [SearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L841)
49
+ [SearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L836)
50
50
  ## Props
51
51
  @prop children
52
52
  @prop inputClass
@@ -2,7 +2,7 @@ import { type SearchProps } from "../..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [SearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L841)
5
+ * [SearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L836)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop inputClass
@@ -194,7 +194,7 @@
194
194
  @component
195
195
  [Go to docs](https://flowbite-svelte.com/)
196
196
  ## Type
197
- [TagsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L895)
197
+ [TagsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L890)
198
198
  ## Props
199
199
  @prop value = $bindable([])
200
200
  @prop placeholder = "Enter tags"
@@ -2,7 +2,7 @@ import { type TagsProps } from "../..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TagsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L895)
5
+ * [TagsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L890)
6
6
  * ## Props
7
7
  * @prop value = $bindable([])
8
8
  * @prop placeholder = "Enter tags"
@@ -75,7 +75,7 @@
75
75
  @component
76
76
  [Go to docs](https://flowbite-svelte.com/)
77
77
  ## Type
78
- [TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L948)
78
+ [TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L943)
79
79
  ## Props
80
80
  @prop header
81
81
  @prop footer
@@ -2,7 +2,7 @@ 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#L948)
5
+ * [TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L943)
6
6
  * ## Props
7
7
  * @prop header
8
8
  * @prop footer
@@ -269,7 +269,7 @@
269
269
  @component
270
270
  [Go to docs](https://flowbite-svelte.com/)
271
271
  ## Type
272
- [TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L919)
272
+ [TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L914)
273
273
  ## Props
274
274
  @prop id = "time"
275
275
  @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#L919)
5
+ * [TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L914)
6
6
  * ## Props
7
7
  * @prop id = "time"
8
8
  * @prop endId = "end-time"
@@ -29,7 +29,7 @@
29
29
  @component
30
30
  [Go to docs](https://flowbite-svelte.com/)
31
31
  ## Type
32
- [ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L970)
32
+ [ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L965)
33
33
  ## Props
34
34
  @prop children
35
35
  @prop size = "default"
@@ -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#L970)
5
+ * [ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L965)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop size = "default"
@@ -42,7 +42,7 @@
42
42
  @component
43
43
  [Go to docs](https://flowbite-svelte.com/)
44
44
  ## Type
45
- [GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L987)
45
+ [GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L982)
46
46
  ## Props
47
47
  @prop children
48
48
  @prop figure
@@ -2,7 +2,7 @@ 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#L987)
5
+ * [GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L982)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop figure
package/dist/index.d.ts CHANGED
@@ -35,7 +35,7 @@ export * from "./sidebar";
35
35
  export * from "./skeleton";
36
36
  export * from "./speed-dial";
37
37
  export * from "./spinner";
38
- export * from "./stepindicator";
38
+ export * from "./step-indicator";
39
39
  export * from "./stepper";
40
40
  export * from "./tabs";
41
41
  export * from "./table";
package/dist/index.js CHANGED
@@ -38,7 +38,7 @@ export * from "./sidebar";
38
38
  export * from "./skeleton";
39
39
  export * from "./speed-dial";
40
40
  export * from "./spinner";
41
- export * from "./stepindicator";
41
+ export * from "./step-indicator";
42
42
  export * from "./stepper";
43
43
  export * from "./tabs";
44
44
  export * from "./table";
@@ -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#L998)
36
+ [IndicatorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L993)
37
37
  ## Props
38
38
  @prop children
39
39
  @prop color = "primary"
@@ -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#L998)
5
+ * [IndicatorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L993)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop color = "primary"
@@ -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#L1009)
22
+ [KbdProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1004)
23
23
  ## Props
24
24
  @prop children
25
25
  @prop class: className
@@ -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#L1009)
5
+ * [KbdProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1004)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -46,7 +46,7 @@
46
46
  @component
47
47
  [Go to docs](https://flowbite-svelte.com/)
48
48
  ## Type
49
- [ListgroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1028)
49
+ [ListgroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1023)
50
50
  ## Props
51
51
  @prop children
52
52
  @prop items
@@ -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#L1028)
5
+ * [ListgroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1023)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop items
@@ -45,7 +45,7 @@
45
45
  @component
46
46
  [Go to docs](https://flowbite-svelte.com/)
47
47
  ## Type
48
- [ListgroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1039)
48
+ [ListgroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1034)
49
49
  ## Props
50
50
  @prop children
51
51
  @prop active
@@ -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#L1039)
5
+ * [ListgroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1034)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop active
@@ -39,7 +39,7 @@
39
39
  @component
40
40
  [Go to docs](https://flowbite-svelte.com/)
41
41
  ## Type
42
- [MegaMenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1050)
42
+ [MegaMenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1045)
43
43
  ## Props
44
44
  @prop children
45
45
  @prop extra
@@ -2,7 +2,7 @@ import { type MegaMenuProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [MegaMenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1050)
5
+ * [MegaMenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1045)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop extra