flowbite-svelte 1.13.8 → 1.13.10

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 (158) hide show
  1. package/dist/forms/input-field/Input.svelte +13 -25
  2. package/dist/forms/input-field/theme.d.ts +0 -3
  3. package/dist/forms/input-field/theme.js +1 -2
  4. package/dist/forms/tags/theme.js +2 -2
  5. package/dist/pagination/Pagination.svelte +1 -1
  6. package/dist/pagination/Pagination.svelte.d.ts +1 -1
  7. package/dist/pagination/PaginationButton.svelte +18 -5
  8. package/dist/pagination/PaginationItem.svelte +1 -1
  9. package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
  10. package/dist/pagination/PaginationNav.svelte +3 -0
  11. package/dist/pagination/theme.d.ts +3 -0
  12. package/dist/pagination/theme.js +4 -3
  13. package/dist/popover/Popover.svelte +1 -1
  14. package/dist/popover/Popover.svelte.d.ts +1 -1
  15. package/dist/progress/Progressbar.svelte +1 -1
  16. package/dist/progress/Progressbar.svelte.d.ts +1 -1
  17. package/dist/progress/Progressradial.svelte +1 -1
  18. package/dist/progress/Progressradial.svelte.d.ts +1 -1
  19. package/dist/rating/AdvancedRating.svelte +1 -1
  20. package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
  21. package/dist/rating/CustomIcon.svelte +1 -1
  22. package/dist/rating/CustomIcon.svelte.d.ts +1 -1
  23. package/dist/rating/Heart.svelte +1 -1
  24. package/dist/rating/Heart.svelte.d.ts +1 -1
  25. package/dist/rating/Rating.svelte +1 -1
  26. package/dist/rating/Rating.svelte.d.ts +1 -1
  27. package/dist/rating/RatingComment.svelte +1 -1
  28. package/dist/rating/RatingComment.svelte.d.ts +1 -1
  29. package/dist/rating/Review.svelte +1 -1
  30. package/dist/rating/Review.svelte.d.ts +1 -1
  31. package/dist/rating/ScoreRating.svelte +1 -1
  32. package/dist/rating/ScoreRating.svelte.d.ts +1 -1
  33. package/dist/rating/Star.svelte +1 -1
  34. package/dist/rating/Star.svelte.d.ts +1 -1
  35. package/dist/rating/Thumbup.svelte +1 -1
  36. package/dist/rating/Thumbup.svelte.d.ts +1 -1
  37. package/dist/sidebar/Sidebar.svelte +1 -1
  38. package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
  39. package/dist/sidebar/SidebarBrand.svelte +1 -1
  40. package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
  41. package/dist/sidebar/SidebarButton.svelte +1 -1
  42. package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
  43. package/dist/sidebar/SidebarCta.svelte +1 -1
  44. package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
  45. package/dist/sidebar/SidebarDropdownWrapper.svelte +1 -1
  46. package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
  47. package/dist/sidebar/SidebarGroup.svelte +1 -1
  48. package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
  49. package/dist/sidebar/SidebarItem.svelte +1 -1
  50. package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
  51. package/dist/skeleton/CardPlaceholder.svelte +1 -1
  52. package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
  53. package/dist/skeleton/ImagePlaceholder.svelte +1 -1
  54. package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
  55. package/dist/skeleton/ListPlaceholder.svelte +1 -1
  56. package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
  57. package/dist/skeleton/Skeleton.svelte +1 -1
  58. package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
  59. package/dist/skeleton/TestimonialPlaceholder.svelte +1 -1
  60. package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
  61. package/dist/skeleton/TextPlaceholder.svelte +1 -1
  62. package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
  63. package/dist/skeleton/VideoPlaceholder.svelte +1 -1
  64. package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
  65. package/dist/skeleton/WidgetPlaceholder.svelte +1 -1
  66. package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
  67. package/dist/speed-dial/SpeedDial.svelte +1 -1
  68. package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
  69. package/dist/speed-dial/SpeedDialButton.svelte +1 -1
  70. package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
  71. package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
  72. package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
  73. package/dist/spinner/Spinner.svelte +1 -1
  74. package/dist/spinner/Spinner.svelte.d.ts +1 -1
  75. package/dist/step-indicator/StepIndicator.svelte +1 -1
  76. package/dist/step-indicator/StepIndicator.svelte.d.ts +1 -1
  77. package/dist/stepper/BreadcrumbStepper.svelte +1 -1
  78. package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
  79. package/dist/stepper/DetailedStepper.svelte +1 -1
  80. package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
  81. package/dist/stepper/ProgressStepper.svelte +1 -1
  82. package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
  83. package/dist/stepper/Stepper.svelte +1 -1
  84. package/dist/stepper/Stepper.svelte.d.ts +1 -1
  85. package/dist/stepper/TimelineStepper.svelte +1 -1
  86. package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
  87. package/dist/stepper/VerticalStepper.svelte +1 -1
  88. package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
  89. package/dist/table/Table.svelte +1 -1
  90. package/dist/table/Table.svelte.d.ts +1 -1
  91. package/dist/table/TableBody.svelte +1 -1
  92. package/dist/table/TableBody.svelte.d.ts +1 -1
  93. package/dist/table/TableBodyCell.svelte +1 -1
  94. package/dist/table/TableBodyCell.svelte.d.ts +1 -1
  95. package/dist/table/TableBodyRow.svelte +1 -1
  96. package/dist/table/TableBodyRow.svelte.d.ts +1 -1
  97. package/dist/table/TableHead.svelte +1 -1
  98. package/dist/table/TableHead.svelte.d.ts +1 -1
  99. package/dist/table/TableHeadCell.svelte +1 -1
  100. package/dist/table/TableHeadCell.svelte.d.ts +1 -1
  101. package/dist/table/TableSearch.svelte +1 -1
  102. package/dist/table/TableSearch.svelte.d.ts +1 -1
  103. package/dist/tabs/TabItem.svelte +3 -2
  104. package/dist/tabs/TabItem.svelte.d.ts +1 -1
  105. package/dist/tabs/Tabs.svelte +5 -1
  106. package/dist/tabs/Tabs.svelte.d.ts +1 -1
  107. package/dist/timeline/Activity.svelte +1 -1
  108. package/dist/timeline/Activity.svelte.d.ts +1 -1
  109. package/dist/timeline/ActivityItem.svelte +1 -1
  110. package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
  111. package/dist/timeline/Group.svelte +1 -1
  112. package/dist/timeline/Group.svelte.d.ts +1 -1
  113. package/dist/timeline/GroupItem.svelte +1 -1
  114. package/dist/timeline/GroupItem.svelte.d.ts +1 -1
  115. package/dist/timeline/Timeline.svelte +1 -1
  116. package/dist/timeline/Timeline.svelte.d.ts +1 -1
  117. package/dist/timeline/TimelineItem.svelte +1 -1
  118. package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
  119. package/dist/toast/Toast.svelte +1 -1
  120. package/dist/toast/Toast.svelte.d.ts +1 -1
  121. package/dist/tooltip/Tooltip.svelte +1 -1
  122. package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
  123. package/dist/types.d.ts +7 -0
  124. package/dist/typography/a/A.svelte +1 -1
  125. package/dist/typography/a/A.svelte.d.ts +1 -1
  126. package/dist/typography/blockquote/Blockquote.svelte +1 -1
  127. package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
  128. package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
  129. package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
  130. package/dist/typography/heading/Heading.svelte +1 -1
  131. package/dist/typography/heading/Heading.svelte.d.ts +1 -1
  132. package/dist/typography/img/EnhancedImg.svelte +1 -1
  133. package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
  134. package/dist/typography/img/Img.svelte +1 -1
  135. package/dist/typography/img/Img.svelte.d.ts +1 -1
  136. package/dist/typography/layout/Layout.svelte +1 -1
  137. package/dist/typography/layout/Layout.svelte.d.ts +1 -1
  138. package/dist/typography/list/Li.svelte +1 -1
  139. package/dist/typography/list/Li.svelte.d.ts +1 -1
  140. package/dist/typography/list/List.svelte +1 -1
  141. package/dist/typography/list/List.svelte.d.ts +1 -1
  142. package/dist/typography/mark/Mark.svelte +1 -1
  143. package/dist/typography/mark/Mark.svelte.d.ts +1 -1
  144. package/dist/typography/paragraph/P.svelte +1 -1
  145. package/dist/typography/paragraph/P.svelte.d.ts +1 -1
  146. package/dist/typography/secondary/Secondary.svelte +1 -1
  147. package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
  148. package/dist/typography/span/Span.svelte +1 -1
  149. package/dist/typography/span/Span.svelte.d.ts +1 -1
  150. package/dist/utils/Arrow.svelte +1 -1
  151. package/dist/utils/Arrow.svelte.d.ts +1 -1
  152. package/dist/utils/Popper.svelte +1 -1
  153. package/dist/utils/Popper.svelte.d.ts +1 -1
  154. package/dist/utils/singleselection.svelte.d.ts +1 -1
  155. package/dist/utils/singleselection.svelte.js +6 -13
  156. package/dist/video/Video.svelte +1 -1
  157. package/dist/video/Video.svelte.d.ts +1 -1
  158. package/package.json +21 -22
@@ -8,6 +8,10 @@
8
8
 
9
9
  let { children, tabStyle = "none", ulClass, contentClass, divider = true, class: className, classes, ...restProps }: TabsProps = $props();
10
10
 
11
+ if (classes?.active) {
12
+ setContext("activeClasses", classes.active);
13
+ }
14
+
11
15
  // base, content, divider, active, inactive
12
16
  warnThemeDeprecation("Tabs", { ulClass, contentClass }, { ulClass: "class", contentClass: "content" });
13
17
  const styling = $derived(classes ?? { content: contentClass });
@@ -46,7 +50,7 @@
46
50
  @component
47
51
  [Go to docs](https://flowbite-svelte.com/)
48
52
  ## Type
49
- [TabsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1713)
53
+ [TabsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1720)
50
54
  ## Props
51
55
  @prop children
52
56
  @prop tabStyle = "none"
@@ -2,7 +2,7 @@ import type { TabsProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TabsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1713)
5
+ * [TabsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1720)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop tabStyle = "none"
@@ -17,7 +17,7 @@
17
17
  @component
18
18
  [Go to docs](https://flowbite-svelte.com/)
19
19
  ## Type
20
- [ActivityProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1757)
20
+ [ActivityProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1764)
21
21
  ## Props
22
22
  @prop children
23
23
  @prop class: className
@@ -2,7 +2,7 @@ import type { ActivityProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ActivityProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1757)
5
+ * [ActivityProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1764)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -62,7 +62,7 @@
62
62
  @component
63
63
  [Go to docs](https://flowbite-svelte.com/)
64
64
  ## Type
65
- [ActivityItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1761)
65
+ [ActivityItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1768)
66
66
  ## Props
67
67
  @prop activities
68
68
  @prop liClass
@@ -2,7 +2,7 @@ import type { ActivityItemProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ActivityItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1761)
5
+ * [ActivityItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1768)
6
6
  * ## Props
7
7
  * @prop activities
8
8
  * @prop liClass
@@ -36,7 +36,7 @@
36
36
  @component
37
37
  [Go to docs](https://flowbite-svelte.com/)
38
38
  ## Type
39
- [GroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1773)
39
+ [GroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1780)
40
40
  ## Props
41
41
  @prop children
42
42
  @prop divClass
@@ -2,7 +2,7 @@ import type { GroupProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [GroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1773)
5
+ * [GroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1780)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop divClass
@@ -66,7 +66,7 @@
66
66
  @component
67
67
  [Go to docs](https://flowbite-svelte.com/)
68
68
  ## Type
69
- [GroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1781)
69
+ [GroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1788)
70
70
  ## Props
71
71
  @prop timelines
72
72
  @prop aClass
@@ -2,7 +2,7 @@ import type { GroupItemProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [GroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1781)
5
+ * [GroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1788)
6
6
  * ## Props
7
7
  * @prop timelines
8
8
  * @prop aClass
@@ -21,7 +21,7 @@
21
21
  @component
22
22
  [Go to docs](https://flowbite-svelte.com/)
23
23
  ## Type
24
- [TimelineProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1801)
24
+ [TimelineProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1808)
25
25
  ## Props
26
26
  @prop children
27
27
  @prop order = "default"
@@ -2,7 +2,7 @@ import type { TimelineProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TimelineProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1801)
5
+ * [TimelineProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1808)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop order = "default"
@@ -97,7 +97,7 @@
97
97
  @component
98
98
  [Go to docs](https://flowbite-svelte.com/)
99
99
  ## Type
100
- [TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1806)
100
+ [TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1813)
101
101
  ## Props
102
102
  @prop children
103
103
  @prop orientationSlot
@@ -2,7 +2,7 @@ import type { TimelineItemProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1806)
5
+ * [TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1813)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop orientationSlot
@@ -62,7 +62,7 @@
62
62
  @component
63
63
  [Go to docs](https://flowbite-svelte.com/)
64
64
  ## Type
65
- [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1820)
65
+ [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1827)
66
66
  ## Props
67
67
  @prop children
68
68
  @prop icon
@@ -2,7 +2,7 @@ import type { ToastProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1820)
5
+ * [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1827)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop icon
@@ -28,7 +28,7 @@
28
28
  @component
29
29
  [Go to docs](https://flowbite-svelte.com/)
30
30
  ## Type
31
- [TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1836)
31
+ [TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1843)
32
32
  ## Props
33
33
  @prop type = "dark"
34
34
  @prop color = undefined
@@ -2,7 +2,7 @@ import type { TooltipProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1836)
5
+ * [TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1843)
6
6
  * ## Props
7
7
  * @prop type = "dark"
8
8
  * @prop color = undefined
package/dist/types.d.ts CHANGED
@@ -1018,6 +1018,13 @@ export interface PaginationNavProps extends PaginationNavVariants, HTMLAttribute
1018
1018
  size?: "default" | "large";
1019
1019
  spanClass?: ClassValue;
1020
1020
  tableDivClass?: ClassValue;
1021
+ classes?: {
1022
+ prev?: ClassValue;
1023
+ next?: ClassValue;
1024
+ span?: ClassValue;
1025
+ tableDiv?: ClassValue;
1026
+ active?: ClassValue;
1027
+ };
1021
1028
  }
1022
1029
  export interface PaginationItemProps extends PaginationItemVariants, PaginationHTMLButtonOrAnchorAttributes {
1023
1030
  children?: Snippet;
@@ -43,7 +43,7 @@
43
43
  @component
44
44
  [Go to docs](https://flowbite-svelte.com/)
45
45
  ## Type
46
- [AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1844)
46
+ [AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1851)
47
47
  ## Props
48
48
  @prop children
49
49
  @prop color = "primary"
@@ -2,7 +2,7 @@ import type { AnchorProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1844)
5
+ * [AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1851)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop color = "primary"
@@ -28,7 +28,7 @@
28
28
  @component
29
29
  [Go to docs](https://flowbite-svelte.com/)
30
30
  ## Type
31
- [BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1873)
31
+ [BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1880)
32
32
  ## Props
33
33
  @prop children
34
34
  @prop class: className
@@ -2,7 +2,7 @@ import type { BlockquoteProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1873)
5
+ * [BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1880)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -24,7 +24,7 @@
24
24
  @component
25
25
  [Go to docs](https://flowbite-svelte.com/)
26
26
  ## Type
27
- [DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1883)
27
+ [DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1890)
28
28
  ## Props
29
29
  @prop children
30
30
  @prop tag
@@ -2,7 +2,7 @@ import type { DescriptionListProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1883)
5
+ * [DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1890)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop tag
@@ -19,7 +19,7 @@
19
19
  @component
20
20
  [Go to docs](https://flowbite-svelte.com/)
21
21
  ## Type
22
- [HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1889)
22
+ [HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1896)
23
23
  ## Props
24
24
  @prop children
25
25
  @prop tag = "h1"
@@ -2,7 +2,7 @@ import type { HeadingProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1889)
5
+ * [HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1896)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop tag = "h1"
@@ -49,7 +49,7 @@
49
49
  @component
50
50
  [Go to docs](https://flowbite-svelte.com/)
51
51
  ## Type
52
- [EnhandedImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1929)
52
+ [EnhandedImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1936)
53
53
  ## Props
54
54
  @prop src
55
55
  @prop href
@@ -2,7 +2,7 @@ import type { EnhandedImgProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [EnhandedImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1929)
5
+ * [EnhandedImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1936)
6
6
  * ## Props
7
7
  * @prop src
8
8
  * @prop href
@@ -49,7 +49,7 @@
49
49
  @component
50
50
  [Go to docs](https://flowbite-svelte.com/)
51
51
  ## Type
52
- [ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1920)
52
+ [ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1927)
53
53
  ## Props
54
54
  @prop size = "none"
55
55
  @prop effect = "none"
@@ -2,7 +2,7 @@ import type { ImgProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1920)
5
+ * [ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1927)
6
6
  * ## Props
7
7
  * @prop size = "none"
8
8
  * @prop effect = "none"
@@ -19,7 +19,7 @@
19
19
  @component
20
20
  [Go to docs](https://flowbite-svelte.com/)
21
21
  ## Type
22
- [LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1942)
22
+ [LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1949)
23
23
  ## Props
24
24
  @prop children
25
25
  @prop class: className
@@ -2,7 +2,7 @@ import type { LayoutProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1942)
5
+ * [LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1949)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -18,7 +18,7 @@
18
18
  @component
19
19
  [Go to docs](https://flowbite-svelte.com/)
20
20
  ## Type
21
- [LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1955)
21
+ [LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1962)
22
22
  ## Props
23
23
  @prop children
24
24
  @prop icon
@@ -2,7 +2,7 @@ import type { LiProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1955)
5
+ * [LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1962)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop icon
@@ -28,7 +28,7 @@
28
28
  @component
29
29
  [Go to docs](https://flowbite-svelte.com/)
30
30
  ## Type
31
- [ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1947)
31
+ [ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1954)
32
32
  ## Props
33
33
  @prop children
34
34
  @prop tag = "ul"
@@ -2,7 +2,7 @@ import type { ListProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1947)
5
+ * [ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1954)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop tag = "ul"
@@ -17,7 +17,7 @@
17
17
  @component
18
18
  [Go to docs](https://flowbite-svelte.com/)
19
19
  ## Type
20
- [MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1961)
20
+ [MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1968)
21
21
  ## Props
22
22
  @prop children
23
23
  @prop class: className
@@ -2,7 +2,7 @@ import type { MarkProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1961)
5
+ * [MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1968)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -19,7 +19,7 @@
19
19
  @component
20
20
  [Go to docs](https://flowbite-svelte.com/)
21
21
  ## Type
22
- [ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1966)
22
+ [ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1973)
23
23
  ## Props
24
24
  @prop children
25
25
  @prop class: className = "text-gray-900 dark:text-white"
@@ -2,7 +2,7 @@ import type { ParagraphProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1966)
5
+ * [ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1973)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className = "text-gray-900 dark:text-white"
@@ -17,7 +17,7 @@
17
17
  @component
18
18
  [Go to docs](https://flowbite-svelte.com/)
19
19
  ## Type
20
- [SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1974)
20
+ [SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1981)
21
21
  ## Props
22
22
  @prop children
23
23
  @prop class: className
@@ -2,7 +2,7 @@ import type { SecondaryProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1974)
5
+ * [SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1981)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -34,7 +34,7 @@
34
34
  @component
35
35
  [Go to docs](https://flowbite-svelte.com/)
36
36
  ## Type
37
- [SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1979)
37
+ [SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1986)
38
38
  ## Props
39
39
  @prop children
40
40
  @prop class: className
@@ -2,7 +2,7 @@ import type { SpanProps } from "../../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1979)
5
+ * [SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1986)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -50,7 +50,7 @@
50
50
  @component
51
51
  [Go to docs](https://flowbite-svelte.com/)
52
52
  ## Type
53
- [ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2021)
53
+ [ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2028)
54
54
  ## Props
55
55
  @prop placement = "top"
56
56
  @prop cords
@@ -2,7 +2,7 @@ import { type ArrowProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2021)
5
+ * [ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2028)
6
6
  * ## Props
7
7
  * @prop placement = "top"
8
8
  * @prop cords
@@ -213,7 +213,7 @@
213
213
  @component
214
214
  [Go to docs](https://flowbite-svelte.com/)
215
215
  ## Type
216
- [PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2001)
216
+ [PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2008)
217
217
  ## Props
218
218
  @prop triggeredBy
219
219
  @prop triggerDelay = 200
@@ -2,7 +2,7 @@ import type { PopperProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2001)
5
+ * [PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2008)
6
6
  * ## Props
7
7
  * @prop triggeredBy
8
8
  * @prop triggerDelay = 200
@@ -11,5 +11,5 @@ export function createSingleSelectionContext<T>(nonReactive?: boolean): SingleSe
11
11
  */
12
12
  export function useSingleSelection<T>(callback: (value: T | null) => void): (open: boolean, v?: T) => SingleSelectionContext<T>;
13
13
  export type SingleSelectionContext<T> = {
14
- value: T | null;
14
+ value?: (T | null) | undefined;
15
15
  };
@@ -3,7 +3,7 @@ import { getContext, setContext, untrack } from "svelte";
3
3
  /**
4
4
  * @template T
5
5
  * @typedef {Object} SingleSelectionContext
6
- * @property {T|null} value
6
+ * @property {T|null=} value
7
7
  */
8
8
 
9
9
  /** @type {symbol} */
@@ -15,13 +15,9 @@ const SINGLE_SELECTION_KEY = Symbol("singleton");
15
15
  * @returns {SingleSelectionContext<T>}
16
16
  */
17
17
  export function createSingleSelectionContext(nonReactive = false) {
18
- if (nonReactive) {
19
- const context = { value: null };
20
- return setContext(SINGLE_SELECTION_KEY, context);
21
- } else {
22
- const context = $state({ value: null });
23
- return setContext(SINGLE_SELECTION_KEY, context);
24
- }
18
+ if (nonReactive) return setContext(SINGLE_SELECTION_KEY, {});
19
+ const context = $state({ value: null });
20
+ return setContext(SINGLE_SELECTION_KEY, context);
25
21
  }
26
22
 
27
23
  /**
@@ -45,13 +41,10 @@ function setSelected(context, open, value) {
45
41
  */
46
42
  export function useSingleSelection(callback) {
47
43
  const context = getContext(SINGLE_SELECTION_KEY) ?? createSingleSelectionContext(false);
44
+ if (!Object.prototype.hasOwnProperty.call(context, "value")) return () => context; // non-reactive context, do nothing
48
45
 
49
- let initialized = $state(false);
50
46
  $effect(() => {
51
- if (initialized)
52
- // if (context.value !== null)
53
- callback(context.value);
54
- initialized = true;
47
+ if (context.value !== null) callback(context.value);
55
48
  });
56
49
 
57
50
  return (open, v) => untrack(() => setSelected(context, open, v));
@@ -21,7 +21,7 @@
21
21
  @component
22
22
  [Go to docs](https://flowbite-svelte.com/)
23
23
  ## Type
24
- [VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1988)
24
+ [VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1995)
25
25
  ## Props
26
26
  @prop children
27
27
  @prop type = "video/mp4"
@@ -2,7 +2,7 @@ import type { VideoProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1988)
5
+ * [VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1995)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop type = "video/mp4"