flowbite-svelte 1.29.1 → 1.30.1

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 (354) hide show
  1. package/dist/accordion/Accordion.svelte +26 -13
  2. package/dist/accordion/Accordion.svelte.d.ts +2 -2
  3. package/dist/accordion/AccordionItem.svelte +12 -10
  4. package/dist/accordion/AccordionItem.svelte.d.ts +1 -1
  5. package/dist/alert/Alert.svelte +1 -1
  6. package/dist/alert/Alert.svelte.d.ts +1 -1
  7. package/dist/avatar/Avatar.svelte +4 -4
  8. package/dist/avatar/Avatar.svelte.d.ts +1 -1
  9. package/dist/badge/Badge.svelte +7 -2
  10. package/dist/badge/Badge.svelte.d.ts +1 -1
  11. package/dist/banner/Banner.svelte +7 -2
  12. package/dist/banner/Banner.svelte.d.ts +1 -1
  13. package/dist/bottom-navigation/BottomNav.svelte +25 -13
  14. package/dist/bottom-navigation/BottomNav.svelte.d.ts +2 -2
  15. package/dist/bottom-navigation/BottomNavHeader.svelte +7 -2
  16. package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +1 -1
  17. package/dist/bottom-navigation/BottomNavHeaderItem.svelte +1 -1
  18. package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +1 -1
  19. package/dist/bottom-navigation/BottomNavItem.svelte +15 -9
  20. package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +1 -1
  21. package/dist/breadcrumb/Breadcrumb.svelte +9 -3
  22. package/dist/breadcrumb/Breadcrumb.svelte.d.ts +1 -1
  23. package/dist/breadcrumb/BreadcrumbItem.svelte +1 -1
  24. package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +1 -1
  25. package/dist/button-group/ButtonGroup.svelte +15 -4
  26. package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
  27. package/dist/buttons/Button.svelte +5 -4
  28. package/dist/buttons/GradientButton.svelte +4 -4
  29. package/dist/buttons/GradientButton.svelte.d.ts +1 -1
  30. package/dist/card/Card.svelte +7 -2
  31. package/dist/card/Card.svelte.d.ts +1 -1
  32. package/dist/carousel/Carousel.svelte +17 -14
  33. package/dist/carousel/Carousel.svelte.d.ts +1 -1
  34. package/dist/carousel/CarouselIndicators.svelte +19 -17
  35. package/dist/carousel/CarouselIndicators.svelte.d.ts +1 -1
  36. package/dist/carousel/ControlButton.svelte +2 -2
  37. package/dist/carousel/ControlButton.svelte.d.ts +1 -1
  38. package/dist/carousel/Controls.svelte +5 -4
  39. package/dist/carousel/Controls.svelte.d.ts +1 -1
  40. package/dist/carousel/Slide.svelte +8 -8
  41. package/dist/carousel/Slide.svelte.d.ts +1 -1
  42. package/dist/carousel/Thumbnail.svelte +1 -1
  43. package/dist/carousel/Thumbnail.svelte.d.ts +1 -1
  44. package/dist/carousel/Thumbnails.svelte +1 -1
  45. package/dist/carousel/Thumbnails.svelte.d.ts +1 -1
  46. package/dist/clipboard/Clipboard.svelte +1 -1
  47. package/dist/clipboard/Clipboard.svelte.d.ts +1 -1
  48. package/dist/clipboard-manager/ClipboardManager.svelte +7 -2
  49. package/dist/command-palette/CommandPalette.svelte +1 -1
  50. package/dist/command-palette/CommandPalette.svelte.d.ts +1 -1
  51. package/dist/context.d.ts +47 -0
  52. package/dist/context.js +72 -0
  53. package/dist/darkmode/DarkMode.svelte +1 -1
  54. package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
  55. package/dist/datepicker/Datepicker.svelte +17 -11
  56. package/dist/device-mockups/Android.svelte +3 -2
  57. package/dist/device-mockups/Android.svelte.d.ts +1 -1
  58. package/dist/device-mockups/DefaultMockup.svelte +4 -2
  59. package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
  60. package/dist/device-mockups/Desktop.svelte +8 -2
  61. package/dist/device-mockups/Desktop.svelte.d.ts +1 -1
  62. package/dist/device-mockups/DeviceMockup.svelte +1 -1
  63. package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
  64. package/dist/device-mockups/Ios.svelte +4 -2
  65. package/dist/device-mockups/Ios.svelte.d.ts +1 -1
  66. package/dist/device-mockups/Laptop.svelte +4 -2
  67. package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
  68. package/dist/device-mockups/Smartwatch.svelte +4 -2
  69. package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
  70. package/dist/device-mockups/Tablet.svelte +4 -2
  71. package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
  72. package/dist/device-mockups/theme.d.ts +12 -12
  73. package/dist/dialog/Dialog.svelte +1 -1
  74. package/dist/dialog/Dialog.svelte.d.ts +1 -1
  75. package/dist/drawer/Drawer.svelte +18 -9
  76. package/dist/drawer/Drawer.svelte.d.ts +2 -2
  77. package/dist/drawer/DrawerHandle.svelte +3 -3
  78. package/dist/drawer/DrawerHandle.svelte.d.ts +1 -1
  79. package/dist/drawer/Drawerhead.svelte +8 -2
  80. package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
  81. package/dist/drawer/theme.d.ts +3 -3
  82. package/dist/drawer/theme.js +2 -2
  83. package/dist/dropdown/Dropdown.svelte +10 -7
  84. package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
  85. package/dist/dropdown/DropdownDivider.svelte +1 -1
  86. package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
  87. package/dist/dropdown/DropdownGroup.svelte +1 -1
  88. package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
  89. package/dist/dropdown/DropdownHeader.svelte +1 -1
  90. package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
  91. package/dist/dropdown/DropdownItem.svelte +11 -5
  92. package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
  93. package/dist/dropdown/theme.d.ts +3 -3
  94. package/dist/footer/Footer.svelte +1 -1
  95. package/dist/footer/Footer.svelte.d.ts +1 -1
  96. package/dist/footer/FooterBrand.svelte +1 -1
  97. package/dist/footer/FooterBrand.svelte.d.ts +1 -1
  98. package/dist/footer/FooterCopyright.svelte +11 -4
  99. package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
  100. package/dist/footer/FooterIcon.svelte +1 -1
  101. package/dist/footer/FooterIcon.svelte.d.ts +1 -1
  102. package/dist/footer/FooterLink.svelte +8 -2
  103. package/dist/footer/FooterLink.svelte.d.ts +1 -1
  104. package/dist/footer/FooterLinkGroup.svelte +1 -1
  105. package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
  106. package/dist/footer/theme.d.ts +3 -3
  107. package/dist/forms/button-toggle/ButtonToggle.svelte +34 -14
  108. package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +1 -1
  109. package/dist/forms/button-toggle/ButtonToggleGroup.svelte +32 -20
  110. package/dist/forms/button-toggle/CheckIcon.svelte +1 -1
  111. package/dist/forms/button-toggle/CheckIcon.svelte.d.ts +1 -1
  112. package/dist/forms/checkbox/Checkbox.svelte +7 -1
  113. package/dist/forms/checkbox/CheckboxButton.svelte +1 -1
  114. package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
  115. package/dist/forms/dropzone/Dropzone.svelte +1 -1
  116. package/dist/forms/dropzone/Dropzone.svelte.d.ts +1 -1
  117. package/dist/forms/fileupload/Fileupload.svelte +8 -2
  118. package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
  119. package/dist/forms/floating-label/FloatingLabelInput.svelte +4 -2
  120. package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
  121. package/dist/forms/helper/Helper.svelte +1 -1
  122. package/dist/forms/helper/Helper.svelte.d.ts +1 -1
  123. package/dist/forms/input-addon/InputAddon.svelte +18 -16
  124. package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
  125. package/dist/forms/input-field/Input.svelte +7 -7
  126. package/dist/forms/input-field/index.d.ts +1 -1
  127. package/dist/forms/input-field/theme.js +2 -2
  128. package/dist/forms/label/Label.svelte +1 -1
  129. package/dist/forms/label/Label.svelte.d.ts +1 -1
  130. package/dist/forms/radio/Radio.svelte +7 -1
  131. package/dist/forms/radio/Radio.svelte.d.ts +2 -2
  132. package/dist/forms/radio/RadioButton.svelte.d.ts +2 -2
  133. package/dist/forms/range/Range.svelte +1 -1
  134. package/dist/forms/range/Range.svelte.d.ts +1 -1
  135. package/dist/forms/search/Search.svelte +8 -2
  136. package/dist/forms/search/Search.svelte.d.ts +1 -1
  137. package/dist/forms/select/MultiSelect.svelte +18 -7
  138. package/dist/forms/select/Select.svelte +10 -6
  139. package/dist/forms/tags/Tags.svelte +7 -2
  140. package/dist/forms/tags/theme.d.ts +3 -3
  141. package/dist/forms/textarea/Textarea.svelte +4 -2
  142. package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
  143. package/dist/forms/timepicker/Timepicker.svelte +2 -2
  144. package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
  145. package/dist/forms/toggle/Toggle.svelte +8 -2
  146. package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
  147. package/dist/gallery/Gallery.svelte +8 -2
  148. package/dist/gallery/Gallery.svelte.d.ts +1 -1
  149. package/dist/gallery/theme.d.ts +3 -3
  150. package/dist/indicator/Indicator.svelte +2 -2
  151. package/dist/indicator/Indicator.svelte.d.ts +1 -1
  152. package/dist/kanban/KanbanCard.svelte +1 -1
  153. package/dist/kanban/KanbanCard.svelte.d.ts +1 -1
  154. package/dist/kbd/Kbd.svelte +2 -2
  155. package/dist/kbd/Kbd.svelte.d.ts +1 -1
  156. package/dist/list-group/Listgroup.svelte +15 -5
  157. package/dist/list-group/Listgroup.svelte.d.ts +1 -1
  158. package/dist/list-group/ListgroupItem.svelte +6 -5
  159. package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
  160. package/dist/mega-menu/MegaMenu.svelte +8 -3
  161. package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
  162. package/dist/modal/Modal.svelte +9 -3
  163. package/dist/modal/Modal.svelte.d.ts +1 -1
  164. package/dist/navbar/Menu.svelte +5 -3
  165. package/dist/navbar/Menu.svelte.d.ts +1 -1
  166. package/dist/navbar/NavBrand.svelte +1 -1
  167. package/dist/navbar/NavBrand.svelte.d.ts +1 -1
  168. package/dist/navbar/NavContainer.svelte +1 -1
  169. package/dist/navbar/NavContainer.svelte.d.ts +1 -1
  170. package/dist/navbar/NavHamburger.svelte +14 -7
  171. package/dist/navbar/NavHamburger.svelte.d.ts +1 -1
  172. package/dist/navbar/NavLi.svelte +12 -8
  173. package/dist/navbar/NavLi.svelte.d.ts +1 -1
  174. package/dist/navbar/NavUl.svelte +15 -8
  175. package/dist/navbar/NavUl.svelte.d.ts +1 -1
  176. package/dist/navbar/Navbar.svelte +8 -5
  177. package/dist/navbar/Navbar.svelte.d.ts +1 -1
  178. package/dist/pagination/Pagination.svelte +18 -6
  179. package/dist/pagination/Pagination.svelte.d.ts +1 -1
  180. package/dist/pagination/PaginationButton.svelte +12 -13
  181. package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
  182. package/dist/pagination/PaginationItem.svelte +14 -5
  183. package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
  184. package/dist/pagination/PaginationNav.svelte +28 -11
  185. package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
  186. package/dist/popover/Popover.svelte +8 -3
  187. package/dist/popover/Popover.svelte.d.ts +1 -1
  188. package/dist/progress/Progressbar.svelte +7 -5
  189. package/dist/progress/Progressbar.svelte.d.ts +1 -1
  190. package/dist/progress/Progressradial.svelte +8 -6
  191. package/dist/progress/Progressradial.svelte.d.ts +1 -1
  192. package/dist/rating/AdvancedRating.svelte +4 -2
  193. package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
  194. package/dist/rating/CustomIcon.svelte +2 -2
  195. package/dist/rating/CustomIcon.svelte.d.ts +1 -1
  196. package/dist/rating/Heart.svelte +2 -2
  197. package/dist/rating/Heart.svelte.d.ts +1 -1
  198. package/dist/rating/Rating.svelte +13 -6
  199. package/dist/rating/Rating.svelte.d.ts +1 -1
  200. package/dist/rating/RatingComment.svelte +1 -1
  201. package/dist/rating/RatingComment.svelte.d.ts +1 -1
  202. package/dist/rating/Review.svelte +4 -2
  203. package/dist/rating/Review.svelte.d.ts +1 -1
  204. package/dist/rating/ScoreRating.svelte +1 -1
  205. package/dist/rating/ScoreRating.svelte.d.ts +1 -1
  206. package/dist/rating/Star.svelte +2 -2
  207. package/dist/rating/Star.svelte.d.ts +1 -1
  208. package/dist/rating/Thumbup.svelte +2 -2
  209. package/dist/rating/Thumbup.svelte.d.ts +1 -1
  210. package/dist/rating/theme.d.ts +6 -6
  211. package/dist/scroll-spy/ScrollSpy.svelte +5 -2
  212. package/dist/scroll-spy/ScrollSpy.svelte.d.ts +1 -1
  213. package/dist/sidebar/Sidebar.svelte +29 -14
  214. package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
  215. package/dist/sidebar/SidebarBrand.svelte +8 -2
  216. package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
  217. package/dist/sidebar/SidebarButton.svelte +1 -1
  218. package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
  219. package/dist/sidebar/SidebarCta.svelte +8 -2
  220. package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
  221. package/dist/sidebar/SidebarDropdownWrapper.svelte +11 -10
  222. package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
  223. package/dist/sidebar/SidebarGroup.svelte +1 -1
  224. package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
  225. package/dist/sidebar/SidebarItem.svelte +8 -8
  226. package/dist/sidebar/SidebarItem.svelte.d.ts +2 -2
  227. package/dist/sidebar/theme.d.ts +6 -6
  228. package/dist/skeleton/CardPlaceholder.svelte +1 -1
  229. package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
  230. package/dist/skeleton/ImagePlaceholder.svelte +1 -1
  231. package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
  232. package/dist/skeleton/ListPlaceholder.svelte +1 -1
  233. package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
  234. package/dist/skeleton/Skeleton.svelte +1 -1
  235. package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
  236. package/dist/skeleton/TestimonialPlaceholder.svelte +1 -1
  237. package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
  238. package/dist/skeleton/TextPlaceholder.svelte +1 -1
  239. package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
  240. package/dist/skeleton/VideoPlaceholder.svelte +1 -1
  241. package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
  242. package/dist/skeleton/WidgetPlaceholder.svelte +1 -1
  243. package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
  244. package/dist/speed-dial/SpeedDial.svelte +11 -4
  245. package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
  246. package/dist/speed-dial/SpeedDialButton.svelte +9 -4
  247. package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
  248. package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
  249. package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
  250. package/dist/spinner/Spinner.svelte +1 -1
  251. package/dist/spinner/Spinner.svelte.d.ts +1 -1
  252. package/dist/split-pane/Divider.svelte +1 -1
  253. package/dist/split-pane/Divider.svelte.d.ts +1 -1
  254. package/dist/split-pane/Pane.svelte +2 -2
  255. package/dist/split-pane/Pane.svelte.d.ts +1 -1
  256. package/dist/split-pane/SplitPane.svelte +12 -37
  257. package/dist/split-pane/SplitPane.svelte.d.ts +1 -14
  258. package/dist/step-indicator/StepIndicator.svelte +61 -9
  259. package/dist/step-indicator/StepIndicator.svelte.d.ts +7 -5
  260. package/dist/stepper/BreadcrumbStepper.svelte +1 -4
  261. package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
  262. package/dist/stepper/CheckmarkIcon.svelte +2 -2
  263. package/dist/stepper/DetailedStepper.svelte +1 -4
  264. package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
  265. package/dist/stepper/ProgressStepper.svelte +1 -4
  266. package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
  267. package/dist/stepper/Stepper.svelte +1 -4
  268. package/dist/stepper/Stepper.svelte.d.ts +1 -1
  269. package/dist/stepper/TimelineStepper.svelte +1 -4
  270. package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
  271. package/dist/stepper/VerticalStepper.svelte +1 -4
  272. package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
  273. package/dist/table/Table.svelte +12 -6
  274. package/dist/table/Table.svelte.d.ts +1 -1
  275. package/dist/table/TableBody.svelte +1 -1
  276. package/dist/table/TableBody.svelte.d.ts +1 -1
  277. package/dist/table/TableBodyCell.svelte +1 -1
  278. package/dist/table/TableBodyCell.svelte.d.ts +1 -1
  279. package/dist/table/TableBodyRow.svelte +8 -8
  280. package/dist/table/TableBodyRow.svelte.d.ts +1 -1
  281. package/dist/table/TableHead.svelte +7 -7
  282. package/dist/table/TableHead.svelte.d.ts +1 -1
  283. package/dist/table/TableHeadCell.svelte +1 -1
  284. package/dist/table/TableHeadCell.svelte.d.ts +1 -1
  285. package/dist/table/TableSearch.svelte +13 -10
  286. package/dist/table/TableSearch.svelte.d.ts +1 -1
  287. package/dist/tabs/TabItem.svelte +14 -8
  288. package/dist/tabs/TabItem.svelte.d.ts +1 -1
  289. package/dist/tabs/Tabs.svelte +26 -11
  290. package/dist/tabs/Tabs.svelte.d.ts +1 -1
  291. package/dist/theme/ThemeProvider.svelte +8 -6
  292. package/dist/theme/themeUtils.d.ts +1 -1
  293. package/dist/theme/themeUtils.js +2 -2
  294. package/dist/timeline/Activity.svelte +1 -1
  295. package/dist/timeline/Activity.svelte.d.ts +1 -1
  296. package/dist/timeline/ActivityItem.svelte +4 -2
  297. package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
  298. package/dist/timeline/Group.svelte +4 -2
  299. package/dist/timeline/Group.svelte.d.ts +1 -1
  300. package/dist/timeline/GroupItem.svelte +4 -2
  301. package/dist/timeline/GroupItem.svelte.d.ts +1 -1
  302. package/dist/timeline/Timeline.svelte +4 -2
  303. package/dist/timeline/Timeline.svelte.d.ts +1 -1
  304. package/dist/timeline/TimelineItem.svelte +3 -3
  305. package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
  306. package/dist/timeline/theme.d.ts +30 -30
  307. package/dist/toast/Toast.svelte +4 -2
  308. package/dist/toast/Toast.svelte.d.ts +1 -1
  309. package/dist/toast/ToastContainer.svelte +2 -2
  310. package/dist/toast/ToastContainer.svelte.d.ts +1 -1
  311. package/dist/toolbar/Toolbar.svelte +15 -3
  312. package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
  313. package/dist/toolbar/ToolbarButton.svelte +2 -4
  314. package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
  315. package/dist/toolbar/ToolbarGroup.svelte +4 -4
  316. package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
  317. package/dist/tooltip/Tooltip.svelte +1 -1
  318. package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
  319. package/dist/tour/theme.js +1 -1
  320. package/dist/types.d.ts +84 -23
  321. package/dist/typography/a/A.svelte +1 -1
  322. package/dist/typography/a/A.svelte.d.ts +1 -1
  323. package/dist/typography/blockquote/Blockquote.svelte +1 -1
  324. package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
  325. package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
  326. package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
  327. package/dist/typography/heading/Heading.svelte +1 -1
  328. package/dist/typography/heading/Heading.svelte.d.ts +1 -1
  329. package/dist/typography/hr/Hr.svelte +6 -5
  330. package/dist/typography/img/Img.svelte +6 -5
  331. package/dist/typography/img/Img.svelte.d.ts +2 -2
  332. package/dist/typography/layout/Layout.svelte +1 -1
  333. package/dist/typography/layout/Layout.svelte.d.ts +1 -1
  334. package/dist/typography/list/Li.svelte +4 -4
  335. package/dist/typography/list/Li.svelte.d.ts +1 -1
  336. package/dist/typography/list/List.svelte +12 -4
  337. package/dist/typography/list/List.svelte.d.ts +1 -1
  338. package/dist/typography/mark/Mark.svelte +1 -1
  339. package/dist/typography/mark/Mark.svelte.d.ts +1 -1
  340. package/dist/typography/paragraph/P.svelte +1 -1
  341. package/dist/typography/paragraph/P.svelte.d.ts +1 -1
  342. package/dist/typography/secondary/Secondary.svelte +1 -1
  343. package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
  344. package/dist/typography/span/Span.svelte +1 -1
  345. package/dist/typography/span/Span.svelte.d.ts +1 -1
  346. package/dist/utils/Arrow.svelte +1 -1
  347. package/dist/utils/Arrow.svelte.d.ts +1 -1
  348. package/dist/utils/Popper.svelte +7 -4
  349. package/dist/utils/Popper.svelte.d.ts +1 -1
  350. package/dist/video/Video.svelte +1 -1
  351. package/dist/video/Video.svelte.d.ts +1 -1
  352. package/dist/virtual-masonry/VirtualMasonry.svelte +1 -1
  353. package/dist/virtuallist/VirtualList.svelte +1 -1
  354. package/package.json +22 -22
@@ -1,25 +1,38 @@
1
1
  <script lang="ts">
2
- import type { AccordionCtxType, AccordionProps } from "..";
2
+ import type { AccordionContextType, AccordionProps } from "../types";
3
3
  import { getTheme } from "../theme/themeUtils";
4
4
  import clsx from "clsx";
5
- import { setContext } from "svelte";
5
+ import { setAccordionContext } from "../context";
6
6
  import { accordion } from "./theme";
7
7
  import { createSingleSelectionContext } from "../utils/singleselection.svelte";
8
+ import { untrack } from "svelte";
8
9
 
9
10
  let { children, flush, activeClass, inactiveClass, multiple = false, class: className, transitionType, ...restProps }: AccordionProps = $props();
10
11
 
11
12
  const theme = getTheme("accordion");
12
13
 
13
- const ctx: AccordionCtxType = $state({
14
- flush,
15
- activeClass,
16
- inactiveClass,
17
- transitionType
18
- });
19
-
20
- setContext<AccordionCtxType>("ctx", ctx);
21
-
22
- createSingleSelectionContext(multiple);
14
+ // Simple reactive state object
15
+ const reactiveCtx: AccordionContextType = {
16
+ get flush() {
17
+ return flush;
18
+ },
19
+ get activeClass() {
20
+ return activeClass;
21
+ },
22
+ get inactiveClass() {
23
+ return inactiveClass;
24
+ },
25
+ get transitionType() {
26
+ return transitionType;
27
+ }
28
+ };
29
+
30
+ // Set context during initialization
31
+ setAccordionContext(reactiveCtx);
32
+
33
+ // Create selection context synchronously for proper nesting
34
+ // Use untrack to explicitly capture only the initial value
35
+ createSingleSelectionContext(untrack(() => multiple));
23
36
 
24
37
  const base = $derived(accordion({ flush, class: clsx(theme, className) }));
25
38
  </script>
@@ -32,7 +45,7 @@
32
45
  @component
33
46
  [Go to docs](https://flowbite-svelte.com/)
34
47
  ## Type
35
- [AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L206)
48
+ [AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L199)
36
49
  ## Props
37
50
  @prop children
38
51
  @prop flush
@@ -1,8 +1,8 @@
1
- import type { AccordionProps } from "..";
1
+ import type { AccordionProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L206)
5
+ * [AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L199)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop flush
@@ -1,11 +1,12 @@
1
1
  <script lang="ts">
2
- import type { AccordionCtxType, AccordionItemProps, ParamsType } from "..";
2
+ import type { AccordionItemProps, ParamsType } from "..";
3
3
  import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
4
4
  import { useSingleSelection } from "../utils/singleselection.svelte";
5
5
  import clsx from "clsx";
6
- import { getContext } from "svelte";
6
+ import { getAccordionContext } from "../context";
7
7
  import { slide } from "svelte/transition";
8
8
  import { accordionItem } from "./theme";
9
+ import { untrack } from "svelte";
9
10
 
10
11
  let {
11
12
  children,
@@ -25,12 +26,12 @@
25
26
 
26
27
  warnThemeDeprecation(
27
28
  "AccordionItem",
28
- {
29
+ untrack(() => ({
29
30
  headerClass,
30
31
  contentClass,
31
32
  activeClass,
32
33
  inactiveClass
33
- },
34
+ })),
34
35
  {
35
36
  headerClass: "button",
36
37
  contentClass: "content",
@@ -41,11 +42,12 @@
41
42
 
42
43
  let styling: typeof classes = $derived(classes ?? { button: headerClass, content: contentClass, active: activeClass, inactive: inactiveClass });
43
44
 
44
- const ctx: AccordionCtxType = getContext("ctx") ?? {};
45
+ // Get context - it will be undefined if used outside Accordion
46
+ const ctx = getAccordionContext();
45
47
 
46
- const ctxTransitionType = ctx.transitionType ?? transitionType;
48
+ const ctxTransitionType = $derived(ctx?.transitionType ?? transitionType);
47
49
  // Check if transitionType is explicitly set to undefined in props
48
- const useTransition = transitionType === "none" ? false : ctxTransitionType === "none" ? false : true;
50
+ const useTransition = $derived(transitionType === "none" ? false : ctxTransitionType === "none" ? false : true);
49
51
 
50
52
  // Theme context
51
53
  const theme = getTheme("accordionItem");
@@ -63,9 +65,9 @@
63
65
  open = !open;
64
66
  };
65
67
 
66
- const { base, button, content, active, inactive } = $derived(accordionItem({ flush: ctx.flush, open }));
68
+ const { base, button, content, active, inactive } = $derived(accordionItem({ flush: ctx?.flush, open }));
67
69
 
68
- let buttonClass = $derived(clsx(open && !ctx.flush && (styling.active || ctx.activeClass || active()), !open && !ctx.flush && (styling.inactive || ctx.inactiveClass || inactive())));
70
+ let buttonClass = $derived(clsx(open && !ctx?.flush && (styling.active || ctx?.activeClass || active()), !open && !ctx?.flush && (styling.inactive || ctx?.inactiveClass || inactive())));
69
71
  </script>
70
72
 
71
73
  <h2 class={base({ class: clsx(theme?.base, className) })}>
@@ -111,7 +113,7 @@
111
113
  @component
112
114
  [Go to docs](https://flowbite-svelte.com/)
113
115
  ## Type
114
- [AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L214)
116
+ [AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L207)
115
117
  ## Props
116
118
  @prop children
117
119
  @prop header
@@ -2,7 +2,7 @@ import type { AccordionItemProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L214)
5
+ * [AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L207)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop header
@@ -77,7 +77,7 @@
77
77
  @component
78
78
  [Go to docs](https://flowbite-svelte.com/)
79
79
  ## Type
80
- [AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L228)
80
+ [AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L221)
81
81
  ## Props
82
82
  @prop children
83
83
  @prop icon
@@ -2,7 +2,7 @@ import { type AlertProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L228)
5
+ * [AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L221)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop icon
@@ -10,7 +10,7 @@
10
10
  // Theme context
11
11
  const theme = getTheme("avatar");
12
12
 
13
- dot = dot && { placement: "top-right", color: "gray", size: "lg", ...dot };
13
+ let dotProps = $derived(dot ? { placement: "top-right" as const, color: "gray" as const, size: "lg" as const, ...dot } : undefined);
14
14
 
15
15
  let avatarClass = $derived(
16
16
  avatar({
@@ -34,8 +34,8 @@
34
34
  <path fill-rule="evenodd" d="M8 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z" clip-rule="evenodd"></path>
35
35
  </svg>
36
36
  {/if}
37
- {#if dot}
38
- <Indicator border offset={cornerStyle === "circular" ? true : false} {...dot} />
37
+ {#if dotProps}
38
+ <Indicator border offset={cornerStyle === "circular" ? true : false} {...dotProps} />
39
39
  {/if}
40
40
  {#if indicator}
41
41
  {@render indicator()}
@@ -49,7 +49,7 @@
49
49
  @component
50
50
  [Go to docs](https://flowbite-svelte.com/)
51
51
  ## Type
52
- [AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L239)
52
+ [AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L232)
53
53
  ## Props
54
54
  @prop children
55
55
  @prop indicator
@@ -2,7 +2,7 @@ import { type AvatarProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L239)
5
+ * [AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L232)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop indicator
@@ -6,6 +6,7 @@
6
6
  import { fade } from "svelte/transition";
7
7
  import { badge } from "./theme";
8
8
  import { createDismissableContext } from "../utils/dismissable";
9
+ import { untrack } from "svelte";
9
10
 
10
11
  let {
11
12
  children,
@@ -26,7 +27,11 @@
26
27
  ...restProps
27
28
  }: BadgeProps = $props();
28
29
 
29
- warnThemeDeprecation("Badge", { aClass }, { aClass: "linkClass" });
30
+ warnThemeDeprecation(
31
+ "Badge",
32
+ untrack(() => ({ aClass })),
33
+ { aClass: "linkClass" }
34
+ );
30
35
 
31
36
  const styling = $derived(classes ?? { linkClass: aClass });
32
37
 
@@ -72,7 +77,7 @@
72
77
  @component
73
78
  [Go to docs](https://flowbite-svelte.com/)
74
79
  ## Type
75
- [BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L251)
80
+ [BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L244)
76
81
  ## Props
77
82
  @prop children
78
83
  @prop icon
@@ -2,7 +2,7 @@ import { type BadgeProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L251)
5
+ * [BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L244)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop icon
@@ -6,6 +6,7 @@
6
6
  import CloseButton from "../utils/CloseButton.svelte";
7
7
  import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
8
8
  import { createDismissableContext } from "../utils/dismissable";
9
+ import { untrack } from "svelte";
9
10
 
10
11
  let {
11
12
  children,
@@ -24,7 +25,11 @@
24
25
  ...restProps
25
26
  }: BannerProps = $props();
26
27
 
27
- warnThemeDeprecation("Banner", { innerClass, closeClass }, { innerClass: "insideDiv", closeClass: "dismissable" });
28
+ warnThemeDeprecation(
29
+ "Banner",
30
+ untrack(() => ({ innerClass, closeClass })),
31
+ { innerClass: "insideDiv", closeClass: "dismissable" }
32
+ );
28
33
 
29
34
  const styling = $derived(classes ?? { insideDiv: innerClass, dismissable: closeClass });
30
35
 
@@ -61,7 +66,7 @@
61
66
  @component
62
67
  [Go to docs](https://flowbite-svelte.com/)
63
68
  ## Type
64
- [BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L265)
69
+ [BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L258)
65
70
  ## Props
66
71
  @prop children
67
72
  @prop header
@@ -2,7 +2,7 @@ import { type BannerProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L265)
5
+ * [BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L258)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop header
@@ -1,31 +1,43 @@
1
1
  <script lang="ts">
2
- import { type BottomNavContextType, type BottomNavProps } from "..";
2
+ import type { BottomNavContextType, BottomNavProps } from "../types";
3
3
  import { cn } from "../utils";
4
4
  import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
5
5
  import clsx from "clsx";
6
- import { setContext } from "svelte";
6
+ import { setBottomNavContext } from "../context";
7
7
  import { bottomNav } from "./theme";
8
+ import { untrack } from "svelte";
8
9
 
9
10
  let { children, header, position = "fixed", navType = "default", class: className, classes, outerClass, innerClass, activeClass, activeUrl = "", ...restProps }: BottomNavProps = $props();
10
11
 
11
- warnThemeDeprecation("BottomNav", { innerClass, outerClass }, { innerClass: "inner", outerClass: "class" });
12
+ warnThemeDeprecation(
13
+ "BottomNav",
14
+ untrack(() => ({ innerClass, outerClass })),
15
+ { innerClass: "inner", outerClass: "class" }
16
+ );
17
+
12
18
  const styling = $derived(classes ?? { inner: innerClass });
13
19
 
14
20
  // Theme context
15
21
  const theme = getTheme("bottomNav");
16
22
 
17
- const activeCls = cn("text-primary-700 dark:text-primary-700 hover:text-primary-900 dark:hover:text-primary-900", activeClass);
23
+ const activeCls = $derived(cn("text-primary-700 dark:text-primary-700 hover:text-primary-900 dark:hover:text-primary-900", activeClass));
18
24
 
19
- let context: BottomNavContextType = $state({ activeClass: activeCls, activeUrl, navType });
20
- setContext<BottomNavContextType>("bottomNavType", context);
25
+ // Create reactive context using getters
26
+ const reactiveCtx: BottomNavContextType = {
27
+ get activeClass() {
28
+ return activeCls;
29
+ },
30
+ get activeUrl() {
31
+ return activeUrl;
32
+ },
33
+ get navType() {
34
+ return navType;
35
+ }
36
+ };
21
37
 
22
- const { base, inner } = $derived(bottomNav({ position, navType }));
38
+ setBottomNavContext(reactiveCtx);
23
39
 
24
- $effect(() => {
25
- context.activeUrl = activeUrl;
26
- context.navType = navType;
27
- context.activeClass = activeCls;
28
- });
40
+ const { base, inner } = $derived(bottomNav({ position, navType }));
29
41
  </script>
30
42
 
31
43
  <div {...restProps} class={base({ class: clsx(theme?.base, className ?? outerClass) })}>
@@ -42,7 +54,7 @@
42
54
  @component
43
55
  [Go to docs](https://flowbite-svelte.com/)
44
56
  ## Type
45
- [BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L284)
57
+ [BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L271)
46
58
  ## Props
47
59
  @prop children
48
60
  @prop header
@@ -1,8 +1,8 @@
1
- import { type BottomNavProps } from "..";
1
+ import type { BottomNavProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L284)
5
+ * [BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L271)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop header
@@ -3,10 +3,15 @@
3
3
  import clsx from "clsx";
4
4
  import type { BottomNavHeaderProps } from "..";
5
5
  import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
6
+ import { untrack } from "svelte";
6
7
 
7
8
  let { children, class: className, classes, outerClass, innerClass, ...restProps }: BottomNavHeaderProps = $props();
8
9
 
9
- warnThemeDeprecation("BottomNavHeader", { innerClass, outerClass }, { innerClass: "inner", outerClass: "class" });
10
+ warnThemeDeprecation(
11
+ "BottomNavHeader",
12
+ untrack(() => ({ innerClass, outerClass })),
13
+ { innerClass: "inner", outerClass: "class" }
14
+ );
10
15
 
11
16
  const styling = $derived(classes ?? { innerDiv: innerClass });
12
17
 
@@ -26,7 +31,7 @@
26
31
  @component
27
32
  [Go to docs](https://flowbite-svelte.com/)
28
33
  ## Type
29
- [BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L303)
34
+ [BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L290)
30
35
  ## Props
31
36
  @prop children
32
37
  @prop class: className
@@ -2,7 +2,7 @@ import type { BottomNavHeaderProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L303)
5
+ * [BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L290)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -20,7 +20,7 @@
20
20
  @component
21
21
  [Go to docs](https://flowbite-svelte.com/)
22
22
  ## Type
23
- [BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L309)
23
+ [BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L296)
24
24
  ## Props
25
25
  @prop itemName
26
26
  @prop active
@@ -2,7 +2,7 @@ import type { BottomNavHeaderItemProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L309)
5
+ * [BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L296)
6
6
  * ## Props
7
7
  * @prop itemName
8
8
  * @prop active
@@ -1,24 +1,30 @@
1
1
  <script lang="ts">
2
- import type { BottomNavContextType, BottomNavItemProps } from "..";
2
+ import type { BottomNavItemProps } from "..";
3
3
  import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
4
4
  import clsx from "clsx";
5
- import { getContext } from "svelte";
5
+ import { getBottomNavContext } from "../context";
6
6
  import type { HTMLAnchorAttributes, HTMLButtonAttributes } from "svelte/elements";
7
7
  import { bottomNavItem } from "./theme";
8
+ import { untrack } from "svelte";
8
9
 
9
10
  let { children, btnName, appBtnPosition = "middle", activeClass, class: className, classes, btnClass, spanClass, active: manualActive, ...restProps }: BottomNavItemProps = $props();
10
11
 
11
- warnThemeDeprecation("BottomNavItem", { spanClass, btnClass }, { spanClass: "span", btnClass: "class" });
12
+ warnThemeDeprecation(
13
+ "BottomNavItem",
14
+ untrack(() => ({ spanClass, btnClass })),
15
+ { spanClass: "span", btnClass: "class" }
16
+ );
17
+
12
18
  const styling = $derived(classes ?? { span: spanClass });
13
19
 
14
20
  // Theme context
15
21
  const theme = getTheme("bottomNavItem");
16
22
 
17
- const context = getContext<BottomNavContextType>("bottomNavType") ?? {};
23
+ const context = getBottomNavContext();
18
24
 
19
- let navUrl = $derived(context.activeUrl || "");
25
+ let navUrl = $derived(context?.activeUrl || "");
20
26
 
21
- const { base, span } = $derived(bottomNavItem({ navType: context.navType, appBtnPosition }));
27
+ const { base, span } = $derived(bottomNavItem({ navType: context?.navType, appBtnPosition }));
22
28
 
23
29
  // Determine active state based on manual prop or URL matching
24
30
  let isActive = $derived.by(() => {
@@ -33,11 +39,11 @@
33
39
  });
34
40
 
35
41
  function getCommonClass() {
36
- return base({ class: clsx(isActive && (activeClass ?? context.activeClass), theme?.base, className ?? btnClass) });
42
+ return base({ class: clsx(isActive && (activeClass ?? context?.activeClass), theme?.base, className ?? btnClass) });
37
43
  }
38
44
 
39
45
  function getSpanClass() {
40
- return span({ class: clsx(isActive && (activeClass ?? context.activeClass), theme?.span, styling.span) });
46
+ return span({ class: clsx(isActive && (activeClass ?? context?.activeClass), theme?.span, styling.span) });
41
47
  }
42
48
 
43
49
  /* eslint-disable @typescript-eslint/no-explicit-any */
@@ -73,7 +79,7 @@
73
79
  @component
74
80
  [Go to docs](https://flowbite-svelte.com/)
75
81
  ## Type
76
- [BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L293)
82
+ [BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L280)
77
83
  ## Props
78
84
  @prop children
79
85
  @prop btnName
@@ -2,7 +2,7 @@ import type { BottomNavItemProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L293)
5
+ * [BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L280)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop btnName
@@ -3,15 +3,21 @@
3
3
  import clsx from "clsx";
4
4
  import type { BreadcrumbProps } from "..";
5
5
  import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
6
+ import { untrack } from "svelte";
6
7
 
7
8
  let { children, solid = false, class: className, classes, olClass, ariaLabel = "Breadcrumb", ...restProps }: BreadcrumbProps = $props();
8
9
 
9
- warnThemeDeprecation("Breadcrumb", { olClass }, { olClass: "list" });
10
+ warnThemeDeprecation(
11
+ "Breadcrumb",
12
+ untrack(() => ({ olClass })),
13
+ { olClass: "list" }
14
+ );
15
+
10
16
  const styling = $derived(classes ?? { list: olClass });
11
17
 
12
18
  const theme = getTheme("breadcrumb");
13
19
 
14
- const { base, list } = breadcrumb({ solid });
20
+ const { base, list } = $derived(breadcrumb({ solid }));
15
21
  let classNav = $derived(base({ class: clsx(theme?.base, className) }));
16
22
  let classList = $derived(list({ class: clsx(theme?.list, styling.list) }));
17
23
  </script>
@@ -26,7 +32,7 @@
26
32
  @component
27
33
  [Go to docs](https://flowbite-svelte.com/)
28
34
  ## Type
29
- [BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L315)
35
+ [BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L302)
30
36
  ## Props
31
37
  @prop children
32
38
  @prop solid = false
@@ -2,7 +2,7 @@ import type { BreadcrumbProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L315)
5
+ * [BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L302)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop solid = false
@@ -58,7 +58,7 @@
58
58
  @component
59
59
  [Go to docs](https://flowbite-svelte.com/)
60
60
  ## Type
61
- [BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L322)
61
+ [BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L309)
62
62
  ## Props
63
63
  @prop children
64
64
  @prop icon
@@ -2,7 +2,7 @@ import type { BreadcrumbItemProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L322)
5
+ * [BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L309)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop icon
@@ -1,17 +1,28 @@
1
1
  <script lang="ts">
2
- import { setContext } from "svelte";
3
2
  import { buttonGroup } from "./theme";
4
3
  import clsx from "clsx";
5
4
  import type { ButtonGroupProps } from "..";
6
5
  import { getTheme } from "../theme/themeUtils";
6
+ import { setButtonGroupContext } from "../context";
7
7
 
8
8
  let { children, size = "md", disabled, class: className, ...restProps }: ButtonGroupProps = $props();
9
9
 
10
10
  const theme = getTheme("buttonGroup");
11
11
 
12
12
  let groupClass = $derived(buttonGroup({ size, class: clsx(theme, className) }));
13
- setContext("group", size);
14
- setContext("disabled", disabled);
13
+
14
+ // Create a reactive context object
15
+ // The object itself stays the same, but its properties are reactive
16
+ const reactiveCtx = {
17
+ get size() {
18
+ return size;
19
+ },
20
+ get disabled() {
21
+ return disabled;
22
+ }
23
+ };
24
+
25
+ setButtonGroupContext(reactiveCtx);
15
26
  </script>
16
27
 
17
28
  <div {...restProps} class={groupClass} role="group">
@@ -22,7 +33,7 @@
22
33
  @component
23
34
  [Go to docs](https://flowbite-svelte.com/)
24
35
  ## Type
25
- [ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L333)
36
+ [ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L320)
26
37
  ## Props
27
38
  @prop children
28
39
  @prop size = "md"
@@ -2,7 +2,7 @@ import type { ButtonGroupProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L333)
5
+ * [ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L320)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop size = "md"
@@ -1,13 +1,14 @@
1
1
  <script lang="ts">
2
- import { getContext } from "svelte";
3
2
  import clsx from "clsx";
4
3
  import { Spinner } from "..";
5
- import type { SizeType, ButtonProps } from "..";
4
+ import type { ButtonProps } from "..";
6
5
  import { getTheme } from "../theme/themeUtils";
7
6
  import { button } from "./theme";
7
+ import { getButtonGroupContext } from "../context";
8
8
 
9
- const group: SizeType = getContext("group");
10
- const ctxDisabled: boolean | undefined = getContext("disabled");
9
+ const groupCtx = getButtonGroupContext();
10
+ const group = groupCtx?.size;
11
+ const ctxDisabled = groupCtx?.disabled;
11
12
 
12
13
  let {
13
14
  children,