flowbite-svelte 1.10.5 → 1.10.7

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 (395) hide show
  1. package/dist/accordion/Accordion.svelte +5 -5
  2. package/dist/accordion/Accordion.svelte.d.ts +1 -1
  3. package/dist/accordion/AccordionItem.svelte +16 -10
  4. package/dist/accordion/AccordionItem.svelte.d.ts +2 -1
  5. package/dist/accordion/theme.d.ts +7 -2
  6. package/dist/alert/Alert.svelte +11 -13
  7. package/dist/alert/Alert.svelte.d.ts +1 -1
  8. package/dist/alert/theme.d.ts +2 -1
  9. package/dist/avatar/Avatar.svelte +10 -12
  10. package/dist/avatar/Avatar.svelte.d.ts +1 -1
  11. package/dist/avatar/theme.d.ts +4 -1
  12. package/dist/badge/Badge.svelte +13 -7
  13. package/dist/badge/Badge.svelte.d.ts +2 -1
  14. package/dist/badge/theme.d.ts +4 -2
  15. package/dist/banner/Banner.svelte +12 -7
  16. package/dist/banner/Banner.svelte.d.ts +2 -1
  17. package/dist/banner/theme.d.ts +4 -2
  18. package/dist/bottom-navigation/BottomNav.svelte +17 -11
  19. package/dist/bottom-navigation/BottomNav.svelte.d.ts +3 -1
  20. package/dist/bottom-navigation/BottomNavHeader.svelte +13 -7
  21. package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +3 -1
  22. package/dist/bottom-navigation/BottomNavHeaderItem.svelte +5 -4
  23. package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +1 -1
  24. package/dist/bottom-navigation/BottomNavItem.svelte +25 -26
  25. package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +3 -3
  26. package/dist/bottom-navigation/theme.d.ts +59 -52
  27. package/dist/bottom-navigation/theme.js +16 -16
  28. package/dist/breadcrumb/Breadcrumb.svelte +5 -4
  29. package/dist/breadcrumb/Breadcrumb.svelte.d.ts +1 -1
  30. package/dist/breadcrumb/BreadcrumbItem.svelte +8 -7
  31. package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +1 -1
  32. package/dist/breadcrumb/theme.d.ts +3 -2
  33. package/dist/button-group/ButtonGroup.svelte +4 -3
  34. package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
  35. package/dist/button-group/theme.d.ts +2 -1
  36. package/dist/buttons/Button.svelte +4 -3
  37. package/dist/buttons/Button.svelte.d.ts +1 -1
  38. package/dist/buttons/GradientButton.svelte +6 -5
  39. package/dist/buttons/GradientButton.svelte.d.ts +1 -1
  40. package/dist/buttons/theme.d.ts +3 -2
  41. package/dist/card/Card.svelte +5 -5
  42. package/dist/card/Card.svelte.d.ts +1 -1
  43. package/dist/card/theme.d.ts +2 -1
  44. package/dist/carousel/Carousel.svelte +6 -5
  45. package/dist/carousel/Carousel.svelte.d.ts +1 -1
  46. package/dist/carousel/CarouselIndicators.svelte +5 -4
  47. package/dist/carousel/CarouselIndicators.svelte.d.ts +1 -1
  48. package/dist/carousel/ControlButton.svelte +8 -5
  49. package/dist/carousel/ControlButton.svelte.d.ts +1 -1
  50. package/dist/carousel/Controls.svelte +5 -4
  51. package/dist/carousel/Controls.svelte.d.ts +1 -1
  52. package/dist/carousel/Slide.svelte +4 -3
  53. package/dist/carousel/Slide.svelte.d.ts +1 -1
  54. package/dist/carousel/Thumbnail.svelte +3 -3
  55. package/dist/carousel/Thumbnail.svelte.d.ts +1 -1
  56. package/dist/carousel/Thumbnails.svelte +4 -4
  57. package/dist/carousel/Thumbnails.svelte.d.ts +1 -1
  58. package/dist/carousel/theme.d.ts +20 -9
  59. package/dist/carousel/theme.js +4 -1
  60. package/dist/clipboard/Clipboard.svelte +3 -3
  61. package/dist/clipboard/Clipboard.svelte.d.ts +1 -1
  62. package/dist/clipboard/theme.d.ts +2 -1
  63. package/dist/darkmode/DarkMode.svelte +4 -3
  64. package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
  65. package/dist/darkmode/theme.d.ts +2 -1
  66. package/dist/datepicker/Datepicker.svelte +28 -24
  67. package/dist/datepicker/Datepicker.svelte.d.ts +1 -1
  68. package/dist/datepicker/theme.d.ts +1 -1
  69. package/dist/device-mockups/Android.svelte +1 -1
  70. package/dist/device-mockups/Android.svelte.d.ts +1 -1
  71. package/dist/device-mockups/DefaultMockup.svelte +1 -1
  72. package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
  73. package/dist/device-mockups/Desktop.svelte +1 -1
  74. package/dist/device-mockups/Desktop.svelte.d.ts +1 -1
  75. package/dist/device-mockups/DeviceMockup.svelte +1 -1
  76. package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
  77. package/dist/device-mockups/Ios.svelte +1 -1
  78. package/dist/device-mockups/Ios.svelte.d.ts +1 -1
  79. package/dist/device-mockups/Laptop.svelte +1 -1
  80. package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
  81. package/dist/device-mockups/Smartwatch.svelte +1 -1
  82. package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
  83. package/dist/device-mockups/Tablet.svelte +1 -1
  84. package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
  85. package/dist/drawer/Drawer.svelte +5 -4
  86. package/dist/drawer/Drawer.svelte.d.ts +1 -1
  87. package/dist/drawer/Drawerhead.svelte +6 -5
  88. package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
  89. package/dist/drawer/theme.d.ts +3 -2
  90. package/dist/dropdown/Dropdown.svelte +4 -3
  91. package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
  92. package/dist/dropdown/DropdownDivider.svelte +4 -3
  93. package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
  94. package/dist/dropdown/DropdownGroup.svelte +4 -3
  95. package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
  96. package/dist/dropdown/DropdownHeader.svelte +4 -3
  97. package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
  98. package/dist/dropdown/DropdownItem.svelte +5 -4
  99. package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
  100. package/dist/dropdown/theme.d.ts +6 -5
  101. package/dist/footer/Footer.svelte +5 -4
  102. package/dist/footer/Footer.svelte.d.ts +1 -1
  103. package/dist/footer/FooterBrand.svelte +7 -6
  104. package/dist/footer/FooterBrand.svelte.d.ts +1 -1
  105. package/dist/footer/FooterCopyright.svelte +6 -5
  106. package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
  107. package/dist/footer/FooterIcon.svelte +4 -3
  108. package/dist/footer/FooterIcon.svelte.d.ts +1 -1
  109. package/dist/footer/FooterLink.svelte +5 -4
  110. package/dist/footer/FooterLink.svelte.d.ts +1 -1
  111. package/dist/footer/FooterLinkGroup.svelte +4 -3
  112. package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
  113. package/dist/footer/theme.d.ts +7 -6
  114. package/dist/forms/button-toggle/ButtonToggle.svelte +8 -7
  115. package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +1 -1
  116. package/dist/forms/button-toggle/ButtonToggleGroup.svelte +6 -5
  117. package/dist/forms/button-toggle/CheckIcon.svelte +4 -3
  118. package/dist/forms/button-toggle/CheckIcon.svelte.d.ts +1 -1
  119. package/dist/forms/button-toggle/theme.d.ts +5 -4
  120. package/dist/forms/checkbox/Checkbox.svelte +6 -5
  121. package/dist/forms/checkbox/CheckboxButton.svelte +4 -3
  122. package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
  123. package/dist/forms/checkbox/theme.d.ts +3 -2
  124. package/dist/forms/dropzone/Dropzone.svelte +23 -31
  125. package/dist/forms/dropzone/Dropzone.svelte.d.ts +4 -1
  126. package/dist/forms/dropzone/theme.d.ts +2 -1
  127. package/dist/forms/fileupload/Fileupload.svelte +6 -5
  128. package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
  129. package/dist/forms/fileupload/theme.d.ts +2 -1
  130. package/dist/forms/floating-label/FloatingLabelInput.svelte +8 -7
  131. package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
  132. package/dist/forms/floating-label/theme.d.ts +2 -1
  133. package/dist/forms/helper/Helper.svelte +4 -3
  134. package/dist/forms/helper/Helper.svelte.d.ts +1 -1
  135. package/dist/forms/helper/theme.d.ts +2 -1
  136. package/dist/forms/input-addon/InputAddon.svelte +4 -3
  137. package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
  138. package/dist/forms/input-field/Input.svelte +11 -10
  139. package/dist/forms/input-field/theme.d.ts +2 -1
  140. package/dist/forms/label/Label.svelte +4 -3
  141. package/dist/forms/label/Label.svelte.d.ts +1 -1
  142. package/dist/forms/label/theme.d.ts +2 -1
  143. package/dist/forms/phoneinput/PhoneInput.svelte +7 -7
  144. package/dist/forms/phoneinput/theme.d.ts +1 -1
  145. package/dist/forms/radio/Radio.svelte +4 -3
  146. package/dist/forms/radio/RadioButton.svelte +3 -2
  147. package/dist/forms/radio/theme.d.ts +3 -2
  148. package/dist/forms/range/Range.svelte +4 -3
  149. package/dist/forms/range/Range.svelte.d.ts +1 -1
  150. package/dist/forms/range/theme.d.ts +2 -1
  151. package/dist/forms/search/Search.svelte +9 -8
  152. package/dist/forms/search/Search.svelte.d.ts +1 -1
  153. package/dist/forms/search/theme.d.ts +2 -1
  154. package/dist/forms/select/MultiSelect.svelte +7 -6
  155. package/dist/forms/select/Select.svelte +5 -4
  156. package/dist/forms/select/theme.d.ts +3 -2
  157. package/dist/forms/tags/Tags.svelte +8 -7
  158. package/dist/forms/tags/Tags.svelte.d.ts +1 -1
  159. package/dist/forms/tags/theme.d.ts +2 -1
  160. package/dist/forms/textarea/Textarea.svelte +12 -11
  161. package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
  162. package/dist/forms/textarea/theme.d.ts +2 -1
  163. package/dist/forms/timepicker/Timepicker.svelte +39 -38
  164. package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
  165. package/dist/forms/timepicker/theme.d.ts +2 -1
  166. package/dist/forms/toggle/Toggle.svelte +6 -5
  167. package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
  168. package/dist/forms/toggle/theme.d.ts +2 -1
  169. package/dist/gallery/Gallery.svelte +5 -4
  170. package/dist/gallery/Gallery.svelte.d.ts +1 -1
  171. package/dist/gallery/theme.d.ts +2 -1
  172. package/dist/indicator/Indicator.svelte +6 -4
  173. package/dist/indicator/Indicator.svelte.d.ts +1 -1
  174. package/dist/indicator/theme.d.ts +2 -1
  175. package/dist/kbd/Kbd.svelte +4 -3
  176. package/dist/kbd/Kbd.svelte.d.ts +1 -1
  177. package/dist/kbd/theme.d.ts +2 -1
  178. package/dist/list-group/Listgroup.svelte +7 -6
  179. package/dist/list-group/Listgroup.svelte.d.ts +1 -1
  180. package/dist/list-group/ListgroupItem.svelte +8 -7
  181. package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
  182. package/dist/list-group/theme.d.ts +3 -2
  183. package/dist/mega-menu/MegaMenu.svelte +7 -6
  184. package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
  185. package/dist/mega-menu/theme.d.ts +2 -1
  186. package/dist/modal/Modal.svelte +8 -8
  187. package/dist/modal/Modal.svelte.d.ts +1 -1
  188. package/dist/modal/theme.d.ts +2 -1
  189. package/dist/navbar/Menu.svelte +2 -3
  190. package/dist/navbar/Menu.svelte.d.ts +1 -1
  191. package/dist/navbar/NavBrand.svelte +2 -3
  192. package/dist/navbar/NavBrand.svelte.d.ts +1 -1
  193. package/dist/navbar/NavContainer.svelte +2 -3
  194. package/dist/navbar/NavContainer.svelte.d.ts +1 -1
  195. package/dist/navbar/NavHamburger.svelte +3 -4
  196. package/dist/navbar/NavHamburger.svelte.d.ts +2 -3
  197. package/dist/navbar/NavLi.svelte +2 -3
  198. package/dist/navbar/NavLi.svelte.d.ts +1 -1
  199. package/dist/navbar/NavUl.svelte +5 -6
  200. package/dist/navbar/NavUl.svelte.d.ts +1 -1
  201. package/dist/navbar/Navbar.svelte +3 -3
  202. package/dist/navbar/Navbar.svelte.d.ts +1 -1
  203. package/dist/navbar/theme.d.ts +6 -5
  204. package/dist/pagination/Pagination.svelte +3 -3
  205. package/dist/pagination/Pagination.svelte.d.ts +1 -1
  206. package/dist/pagination/PaginationButton.svelte +11 -14
  207. package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
  208. package/dist/pagination/PaginationItem.svelte +2 -3
  209. package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
  210. package/dist/pagination/PaginationNav.svelte +8 -8
  211. package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
  212. package/dist/pagination/theme.d.ts +5 -4
  213. package/dist/popover/Popover.svelte +5 -6
  214. package/dist/popover/Popover.svelte.d.ts +1 -1
  215. package/dist/popover/theme.d.ts +2 -1
  216. package/dist/progress/Progressbar.svelte +7 -8
  217. package/dist/progress/Progressbar.svelte.d.ts +1 -1
  218. package/dist/progress/Progressradial.svelte +8 -9
  219. package/dist/progress/Progressradial.svelte.d.ts +1 -1
  220. package/dist/progress/theme.d.ts +2 -2
  221. package/dist/rating/AdvancedRating.svelte +6 -7
  222. package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
  223. package/dist/rating/CustomIcon.svelte +1 -1
  224. package/dist/rating/CustomIcon.svelte.d.ts +1 -1
  225. package/dist/rating/Heart.svelte +1 -1
  226. package/dist/rating/Heart.svelte.d.ts +1 -1
  227. package/dist/rating/Rating.svelte +3 -4
  228. package/dist/rating/Rating.svelte.d.ts +1 -1
  229. package/dist/rating/RatingComment.svelte +1 -1
  230. package/dist/rating/RatingComment.svelte.d.ts +1 -1
  231. package/dist/rating/Review.svelte +8 -9
  232. package/dist/rating/Review.svelte.d.ts +1 -1
  233. package/dist/rating/ScoreRating.svelte +9 -9
  234. package/dist/rating/ScoreRating.svelte.d.ts +1 -1
  235. package/dist/rating/Star.svelte +1 -1
  236. package/dist/rating/Star.svelte.d.ts +1 -1
  237. package/dist/rating/Thumbup.svelte +1 -1
  238. package/dist/rating/Thumbup.svelte.d.ts +1 -1
  239. package/dist/rating/theme.d.ts +5 -4
  240. package/dist/sidebar/Sidebar.svelte +9 -10
  241. package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
  242. package/dist/sidebar/SidebarBrand.svelte +4 -5
  243. package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
  244. package/dist/sidebar/SidebarButton.svelte +2 -3
  245. package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
  246. package/dist/sidebar/SidebarCta.svelte +4 -5
  247. package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
  248. package/dist/sidebar/SidebarDropdownWrapper.svelte +7 -8
  249. package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
  250. package/dist/sidebar/SidebarGroup.svelte +1 -1
  251. package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
  252. package/dist/sidebar/SidebarItem.svelte +6 -5
  253. package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
  254. package/dist/sidebar/theme.d.ts +9 -8
  255. package/dist/skeleton/CardPlaceholder.svelte +12 -13
  256. package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
  257. package/dist/skeleton/ImagePlaceholder.svelte +40 -13
  258. package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
  259. package/dist/skeleton/ListPlaceholder.svelte +27 -9
  260. package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
  261. package/dist/skeleton/Skeleton.svelte +25 -10
  262. package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
  263. package/dist/skeleton/TestimonialPlaceholder.svelte +28 -9
  264. package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
  265. package/dist/skeleton/TextPlaceholder.svelte +50 -27
  266. package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
  267. package/dist/skeleton/VideoPlaceholder.svelte +3 -4
  268. package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
  269. package/dist/skeleton/WidgetPlaceholder.svelte +2 -3
  270. package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
  271. package/dist/skeleton/theme.d.ts +9 -8
  272. package/dist/speed-dial/SpeedDial.svelte +4 -4
  273. package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
  274. package/dist/speed-dial/SpeedDialButton.svelte +4 -4
  275. package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
  276. package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
  277. package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
  278. package/dist/speed-dial/theme.d.ts +3 -2
  279. package/dist/spinner/Spinner.svelte +3 -4
  280. package/dist/spinner/Spinner.svelte.d.ts +1 -1
  281. package/dist/spinner/theme.d.ts +2 -1
  282. package/dist/stepindicator/StepIndicator.svelte +11 -10
  283. package/dist/stepindicator/StepIndicator.svelte.d.ts +1 -1
  284. package/dist/stepindicator/theme.d.ts +2 -1
  285. package/dist/stepper/BreadcrumbStepper.svelte +10 -11
  286. package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
  287. package/dist/stepper/DetailedStepper.svelte +5 -5
  288. package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
  289. package/dist/stepper/ProgressStepper.svelte +9 -12
  290. package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
  291. package/dist/stepper/Stepper.svelte +13 -19
  292. package/dist/stepper/Stepper.svelte.d.ts +1 -1
  293. package/dist/stepper/TimelineStepper.svelte +5 -5
  294. package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
  295. package/dist/stepper/VerticalStepper.svelte +5 -5
  296. package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
  297. package/dist/table/Table.svelte +4 -4
  298. package/dist/table/Table.svelte.d.ts +1 -1
  299. package/dist/table/TableBody.svelte +2 -3
  300. package/dist/table/TableBody.svelte.d.ts +1 -1
  301. package/dist/table/TableBodyCell.svelte +2 -3
  302. package/dist/table/TableBodyCell.svelte.d.ts +1 -1
  303. package/dist/table/TableBodyRow.svelte +3 -4
  304. package/dist/table/TableBodyRow.svelte.d.ts +1 -1
  305. package/dist/table/TableHead.svelte +3 -4
  306. package/dist/table/TableHead.svelte.d.ts +1 -1
  307. package/dist/table/TableHeadCell.svelte +2 -3
  308. package/dist/table/TableHeadCell.svelte.d.ts +1 -1
  309. package/dist/table/TableSearch.svelte +10 -10
  310. package/dist/table/TableSearch.svelte.d.ts +1 -1
  311. package/dist/table/theme.d.ts +6 -6
  312. package/dist/tabs/TabItem.svelte +6 -5
  313. package/dist/tabs/TabItem.svelte.d.ts +1 -1
  314. package/dist/tabs/Tabs.svelte +4 -5
  315. package/dist/tabs/Tabs.svelte.d.ts +1 -1
  316. package/dist/tabs/theme.d.ts +3 -2
  317. package/dist/theme/themeUtils.d.ts +13 -0
  318. package/dist/theme/themeUtils.js +9 -1
  319. package/dist/timeline/Activity.svelte +2 -3
  320. package/dist/timeline/Activity.svelte.d.ts +1 -1
  321. package/dist/timeline/ActivityItem.svelte +10 -10
  322. package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
  323. package/dist/timeline/Group.svelte +5 -5
  324. package/dist/timeline/Group.svelte.d.ts +1 -1
  325. package/dist/timeline/GroupItem.svelte +7 -7
  326. package/dist/timeline/GroupItem.svelte.d.ts +1 -1
  327. package/dist/timeline/Timeline.svelte +3 -4
  328. package/dist/timeline/Timeline.svelte.d.ts +1 -1
  329. package/dist/timeline/TimelineItem.svelte +8 -8
  330. package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
  331. package/dist/timeline/theme.d.ts +19 -18
  332. package/dist/toast/Toast.svelte +6 -6
  333. package/dist/toast/Toast.svelte.d.ts +1 -1
  334. package/dist/toast/theme.d.ts +2 -1
  335. package/dist/toolbar/Toolbar.svelte +3 -4
  336. package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
  337. package/dist/toolbar/ToolbarButton.svelte +5 -6
  338. package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
  339. package/dist/toolbar/ToolbarGroup.svelte +3 -4
  340. package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
  341. package/dist/toolbar/theme.d.ts +4 -3
  342. package/dist/tooltip/Tooltip.svelte +2 -3
  343. package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
  344. package/dist/tooltip/theme.d.ts +2 -1
  345. package/dist/types.d.ts +19 -44
  346. package/dist/types.js +0 -1
  347. package/dist/typography/anchor/A.svelte +4 -5
  348. package/dist/typography/anchor/A.svelte.d.ts +1 -1
  349. package/dist/typography/anchor/theme.d.ts +2 -1
  350. package/dist/typography/blockquote/Blockquote.svelte +4 -5
  351. package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
  352. package/dist/typography/blockquote/theme.d.ts +2 -1
  353. package/dist/typography/descriptionlist/DescriptionList.svelte +3 -4
  354. package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
  355. package/dist/typography/descriptionlist/theme.d.ts +2 -1
  356. package/dist/typography/heading/Heading.svelte +3 -4
  357. package/dist/typography/heading/Heading.svelte.d.ts +1 -1
  358. package/dist/typography/heading/theme.d.ts +2 -1
  359. package/dist/typography/hr/Hr.svelte +5 -6
  360. package/dist/typography/hr/Hr.svelte.d.ts +1 -1
  361. package/dist/typography/hr/theme.d.ts +2 -1
  362. package/dist/typography/img/EnhancedImg.svelte +5 -6
  363. package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
  364. package/dist/typography/img/Img.svelte +5 -6
  365. package/dist/typography/img/Img.svelte.d.ts +1 -1
  366. package/dist/typography/img/theme.d.ts +2 -1
  367. package/dist/typography/layout/Layout.svelte +3 -4
  368. package/dist/typography/layout/Layout.svelte.d.ts +1 -1
  369. package/dist/typography/layout/theme.d.ts +2 -1
  370. package/dist/typography/list/Li.svelte +2 -3
  371. package/dist/typography/list/Li.svelte.d.ts +1 -1
  372. package/dist/typography/list/List.svelte +3 -4
  373. package/dist/typography/list/List.svelte.d.ts +1 -1
  374. package/dist/typography/list/theme.d.ts +2 -1
  375. package/dist/typography/mark/Mark.svelte +2 -2
  376. package/dist/typography/mark/Mark.svelte.d.ts +1 -1
  377. package/dist/typography/mark/theme.d.ts +2 -1
  378. package/dist/typography/paragraph/P.svelte +3 -4
  379. package/dist/typography/paragraph/P.svelte.d.ts +1 -1
  380. package/dist/typography/paragraph/theme.d.ts +2 -1
  381. package/dist/typography/secondary/Secondary.svelte +2 -3
  382. package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
  383. package/dist/typography/secondary/theme.d.ts +2 -1
  384. package/dist/typography/span/Span.svelte +3 -4
  385. package/dist/typography/span/Span.svelte.d.ts +1 -1
  386. package/dist/typography/span/theme.d.ts +2 -1
  387. package/dist/utils/Arrow.svelte +1 -1
  388. package/dist/utils/Arrow.svelte.d.ts +1 -1
  389. package/dist/utils/CloseButton.svelte +1 -1
  390. package/dist/utils/CloseButton.svelte.d.ts +1 -1
  391. package/dist/utils/Popper.svelte +1 -1
  392. package/dist/utils/Popper.svelte.d.ts +1 -1
  393. package/dist/video/Video.svelte +3 -3
  394. package/dist/video/Video.svelte.d.ts +1 -1
  395. package/package.json +1 -1
@@ -3,7 +3,6 @@
3
3
  import { tableBodyRow } from ".";
4
4
  import type { TableBodyRowProps, TableCtxType } from "../types";
5
5
  import clsx from "clsx";
6
- import { cn } from "..";
7
6
  import { getTheme } from "../theme/themeUtils";
8
7
 
9
8
  let { children, class: className, color, striped, hoverable, border, ...restProps }: TableBodyRowProps = $props();
@@ -17,10 +16,10 @@
17
16
  let compoStriped = $derived(striped || tableCtx.striped || false);
18
17
  let compoBorder = $derived(border || tableCtx.border || false);
19
18
 
20
- const base = $derived(tableBodyRow({ color: compoColor, hoverable: compoHoverable, striped: compoStriped, border: compoBorder }));
19
+ const base = $derived(tableBodyRow({ color: compoColor, hoverable: compoHoverable, striped: compoStriped, border: compoBorder, class: clsx(theme, className) }));
21
20
  </script>
22
21
 
23
- <tr {...restProps} class={cn(base, clsx(className), theme)}>
22
+ <tr {...restProps} class={base}>
24
23
  {#if children}
25
24
  {@render children()}
26
25
  {/if}
@@ -30,7 +29,7 @@
30
29
  @component
31
30
  [Go to docs](https://flowbite-svelte.com/)
32
31
  ## Type
33
- [TableBodyRowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1657)
32
+ [TableBodyRowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1643)
34
33
  ## Props
35
34
  @prop children
36
35
  @prop class: className
@@ -2,7 +2,7 @@ import type { TableBodyRowProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TableBodyRowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1657)
5
+ * [TableBodyRowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1643)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -3,7 +3,6 @@
3
3
  import { TableHeadCell, tableHead } from ".";
4
4
  import type { TableHeadProps, TableCtxType, HeadItemType } from "../types";
5
5
  import clsx from "clsx";
6
- import { cn } from "..";
7
6
  import { getTheme } from "../theme/themeUtils";
8
7
 
9
8
  let { children, headerSlot, color, striped, border, class: className, headItems, defaultRow = true, ...restProps }: TableHeadProps = $props();
@@ -16,7 +15,7 @@
16
15
  let compoStriped = $derived(striped ? striped : tableCtx.striped || false);
17
16
  let compoBorder = $derived(border ? border : tableCtx.border || false);
18
17
 
19
- const base = $derived(tableHead({ color: compoColor, border: compoBorder, striped: compoStriped }));
18
+ const base = $derived(tableHead({ color: compoColor, border: compoBorder, striped: compoStriped, class: clsx(theme, className) }));
20
19
 
21
20
  function getItemText(item: HeadItemType): string {
22
21
  if (typeof item === "object" && "text" in item) {
@@ -26,7 +25,7 @@
26
25
  }
27
26
  </script>
28
27
 
29
- <thead {...restProps} class={cn(base, clsx(className), theme)}>
28
+ <thead {...restProps} class={base}>
30
29
  {#if headItems}
31
30
  {#if headerSlot}
32
31
  {@render headerSlot()}
@@ -53,7 +52,7 @@
53
52
  @component
54
53
  [Go to docs](https://flowbite-svelte.com/)
55
54
  ## Type
56
- [TableHeadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1632)
55
+ [TableHeadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1618)
57
56
  ## Props
58
57
  @prop children
59
58
  @prop headerSlot
@@ -2,7 +2,7 @@ import type { TableHeadProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TableHeadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1632)
5
+ * [TableHeadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1618)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop headerSlot
@@ -2,7 +2,6 @@
2
2
  import clsx from "clsx";
3
3
  import { tableHeadCell } from ".";
4
4
  import type { TableHeadCellProps } from "../types";
5
- import { cn } from "..";
6
5
  import { getTheme } from "../theme/themeUtils";
7
6
 
8
7
  let { children, class: className, ...restProps }: TableHeadCellProps = $props();
@@ -10,7 +9,7 @@
10
9
  const theme = getTheme("tableHeadCell");
11
10
  </script>
12
11
 
13
- <th {...restProps} class={cn(tableHeadCell(), clsx(className), theme)}>
12
+ <th {...restProps} class={tableHeadCell({ class: clsx(theme, className) })}>
14
13
  {#if children}
15
14
  {@render children()}
16
15
  {/if}
@@ -20,7 +19,7 @@
20
19
  @component
21
20
  [Go to docs](https://flowbite-svelte.com/)
22
21
  ## Type
23
- [TableHeadCellProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1681)
22
+ [TableHeadCellProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1667)
24
23
  ## Props
25
24
  @prop children
26
25
  @prop class: className
@@ -2,7 +2,7 @@ import type { TableHeadCellProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TableHeadCellProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1681)
5
+ * [TableHeadCellProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1667)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { setContext } from "svelte";
3
3
  import type { TableSearchProps, TableSearchType } from "../types";
4
- import { cn } from "..";
4
+ import clsx from "clsx";
5
5
  import { tableSearch, type TableSearchTheme } from ".";
6
6
  import { getTheme } from "../theme/themeUtils";
7
7
 
@@ -15,16 +15,16 @@
15
15
  const styles = tableSearch({ color: themeColor, striped, hoverable });
16
16
 
17
17
  // Apply custom classes or use theme defaults
18
- const rootClass = cn(styles.root(), divClass, (theme as TableSearchTheme)?.root);
19
- const innerDivCls = cn(styles.innerDiv(), innerDivClass, (theme as TableSearchTheme)?.innerDiv);
20
- const searchContainerCls = cn(styles.searchContainer(), searchClass, (theme as TableSearchTheme)?.searchContainer);
21
- const svgContainerCls = cn(styles.svgContainer(), svgDivClass, (theme as TableSearchTheme)?.svgContainer);
22
- const svgCls = cn(styles.svg(), svgClass, (theme as TableSearchTheme)?.svg);
23
- const inputCls = cn(styles.input(), inputClass, (theme as TableSearchTheme)?.input);
24
- const tableCls = cn(styles.table(), tableClass, className, (theme as TableSearchTheme)?.table);
18
+ const rootClass = styles.root({ class: clsx((theme as TableSearchTheme)?.root, divClass) });
19
+ const innerDivCls = styles.innerDiv({ class: clsx((theme as TableSearchTheme)?.innerDiv, innerDivClass) });
20
+ const searchContainerCls = styles.searchContainer({ class: clsx((theme as TableSearchTheme)?.searchContainer, searchClass) });
21
+ const svgContainerCls = styles.svgContainer({ class: clsx((theme as TableSearchTheme)?.svgContainer, svgDivClass) });
22
+ const svgCls = styles.svg({ class: clsx((theme as TableSearchTheme)?.svg, svgClass) });
23
+ const inputCls = styles.input({ class: clsx((theme as TableSearchTheme)?.input, inputClass) });
24
+ const tableCls = styles.table({ class: clsx(tableClass, (theme as TableSearchTheme)?.table, className) });
25
25
 
26
26
  // Handle custom color
27
- const finalTableClass = color === "custom" && customColor ? cn(tableCls, customColor) : tableCls;
27
+ const finalTableClass = color === "custom" && customColor ? clsx(tableCls, customColor) : tableCls;
28
28
 
29
29
  const tableSearchCtx: TableSearchType = {
30
30
  striped,
@@ -64,7 +64,7 @@
64
64
  @component
65
65
  [Go to docs](https://flowbite-svelte.com/)
66
66
  ## Type
67
- [TableSearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1696)
67
+ [TableSearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1682)
68
68
  ## Props
69
69
  @prop children
70
70
  @prop header
@@ -2,7 +2,7 @@ import type { TableSearchProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TableSearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1696)
5
+ * [TableSearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1682)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop header
@@ -225,7 +225,7 @@ export declare const table: import("tailwind-variants").TVReturnType<{
225
225
  table: string;
226
226
  }, undefined, unknown, unknown, undefined>>;
227
227
  export type TableSlots = keyof typeof table.slots;
228
- export type TableTheme = Partial<Record<TableSlots, string>>;
228
+ export type TableTheme = Partial<Record<TableSlots, ClassValue>>;
229
229
  export declare const tableBodyRow: import("tailwind-variants").TVReturnType<{
230
230
  color: {
231
231
  default: string;
@@ -326,7 +326,7 @@ export declare const tableBodyRow: import("tailwind-variants").TVReturnType<{
326
326
  true: string;
327
327
  };
328
328
  }, undefined, "", unknown, unknown, undefined>>;
329
- export type TableBodyRowTheme = string;
329
+ export type TableBodyRowTheme = ClassValue;
330
330
  export declare const tableHead: import("tailwind-variants").TVReturnType<{
331
331
  color: {
332
332
  default: string;
@@ -424,11 +424,11 @@ export declare const tableHead: import("tailwind-variants").TVReturnType<{
424
424
  false: string;
425
425
  };
426
426
  }, undefined, "text-xs uppercase", unknown, unknown, undefined>>;
427
- export type TableHeadTheme = string;
427
+ export type TableHeadTheme = ClassValue;
428
428
  export declare const tableBodyCell: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "px-6 py-4 whitespace-nowrap font-medium", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "px-6 py-4 whitespace-nowrap font-medium", unknown, unknown, undefined>>;
429
- export type TableBodyCellTheme = string;
429
+ export type TableBodyCellTheme = ClassValue;
430
430
  export declare const tableHeadCell: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "px-6 py-3", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "px-6 py-3", unknown, unknown, undefined>>;
431
- export type TableHeadCellTheme = string;
431
+ export type TableHeadCellTheme = ClassValue;
432
432
  export type TableSearchClasses = Partial<{
433
433
  root: ClassValue;
434
434
  innerDiv: ClassValue;
@@ -609,4 +609,4 @@ export declare const tableSearch: import("tailwind-variants").TVReturnType<{
609
609
  }, undefined, unknown, unknown, undefined>>;
610
610
  export type TableSearchColor = "default" | "blue" | "green" | "red" | "yellow" | "purple" | "indigo" | "pink" | "custom";
611
611
  export type TableSearchSlots = keyof typeof tableSearch.slots;
612
- export type TableSearchTheme = Partial<Record<TableSearchSlots, string>>;
612
+ export type TableSearchTheme = Partial<Record<TableSearchSlots, ClassValue>>;
@@ -2,7 +2,8 @@
2
2
  import { getContext } from "svelte";
3
3
  import { writable } from "svelte/store";
4
4
  import { tabItem, tabs, type TabItemTheme } from ".";
5
- import { type TabitemProps, type TabCtxType, cn } from "..";
5
+ import clsx from "clsx";
6
+ import { type TabitemProps, type TabCtxType } from "..";
6
7
  import { getTheme } from "../theme/themeUtils";
7
8
 
8
9
  let { children, titleSlot, open = false, title = "Tab title", activeClass, inactiveClass, class: className, disabled, tabStyle, ...restProps }: TabitemProps = $props();
@@ -32,8 +33,8 @@
32
33
  const { base, button, content } = $derived(tabItem({ open, disabled }));
33
34
  </script>
34
35
 
35
- <li {...restProps} class={cn(base(), className, (theme as TabItemTheme)?.base)} role="presentation">
36
- <button type="button" onclick={() => (open = true)} role="tab" id={tabId} aria-controls={ctx.panelId} aria-selected={open} {disabled} class={cn(button(), open ? (activeClass ?? active()) : (inactiveClass ?? inactive()), (theme as TabItemTheme)?.button)}>
36
+ <li {...restProps} class={base({ class: clsx((theme as TabItemTheme)?.base, className) })} role="presentation">
37
+ <button type="button" onclick={() => (open = true)} role="tab" id={tabId} aria-controls={ctx.panelId} aria-selected={open} {disabled} class={button({ class: clsx(open ? (activeClass ?? active()) : (inactiveClass ?? inactive()), (theme as TabItemTheme)?.button) })}>
37
38
  {#if titleSlot}
38
39
  {@render titleSlot()}
39
40
  {:else}
@@ -42,7 +43,7 @@
42
43
  </button>
43
44
 
44
45
  {#if open && children}
45
- <div class={cn(content(), (theme as TabItemTheme)?.content)}>
46
+ <div class={content({ class: clsx((theme as TabItemTheme)?.content) })}>
46
47
  <div use:init>
47
48
  {@render children()}
48
49
  </div>
@@ -54,7 +55,7 @@
54
55
  @component
55
56
  [Go to docs](https://flowbite-svelte.com/)
56
57
  ## Type
57
- [TabitemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1724)
58
+ [TabitemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1710)
58
59
  ## Props
59
60
  @prop children
60
61
  @prop titleSlot
@@ -2,7 +2,7 @@ import { type TabitemProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TabitemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1724)
5
+ * [TabitemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1710)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop titleSlot
@@ -4,7 +4,6 @@
4
4
  import { setContext } from "svelte";
5
5
  import { tabs, type TabsTheme } from ".";
6
6
  import type { TabsProps, TabCtxType } from "../types";
7
- import { cn } from "..";
8
7
  import { getTheme } from "../theme/themeUtils";
9
8
 
10
9
  let { children, tabStyle = "none", ulClass, contentClass, divider = true, ...restProps }: TabsProps = $props();
@@ -36,19 +35,19 @@
36
35
  }
37
36
  </script>
38
37
 
39
- <ul role="tablist" {...restProps} class={cn(base(), clsx(ulClass), (theme as TabsTheme)?.base)}>
38
+ <ul role="tablist" {...restProps} class={base({ class: clsx((theme as TabsTheme)?.base, ulClass) })}>
40
39
  {@render children()}
41
40
  </ul>
42
41
  {#if dividerBool}
43
- <div class={cn(dividerClass(), (theme as TabsTheme)?.divider)}></div>
42
+ <div class={dividerClass({ class: clsx((theme as TabsTheme)?.divider) })}></div>
44
43
  {/if}
45
- <div id={panelId} class={cn(content(), clsx(contentClass), (theme as TabsTheme)?.content)} role="tabpanel" aria-labelledby={panelId} use:init></div>
44
+ <div id={panelId} class={content({ class: clsx((theme as TabsTheme)?.content, contentClass) })} role="tabpanel" aria-labelledby={panelId} use:init></div>
46
45
 
47
46
  <!--
48
47
  @component
49
48
  [Go to docs](https://flowbite-svelte.com/)
50
49
  ## Type
51
- [TabsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1716)
50
+ [TabsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1702)
52
51
  ## Props
53
52
  @prop children
54
53
  @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#L1716)
5
+ * [TabsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1702)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop tabStyle = "none"
@@ -1,4 +1,5 @@
1
1
  import { type VariantProps } from "tailwind-variants";
2
+ import type { ClassValue } from "svelte/elements";
2
3
  export type TabsVaraints = VariantProps<typeof tabs>;
3
4
  export declare const tabs: import("tailwind-variants").TVReturnType<{
4
5
  tabStyle: {
@@ -89,7 +90,7 @@ export declare const tabs: import("tailwind-variants").TVReturnType<{
89
90
  inactive: string;
90
91
  }, undefined, unknown, unknown, undefined>>;
91
92
  export type TabsSlots = keyof typeof tabs.slots;
92
- export type TabsTheme = Partial<Record<TabsSlots, string>>;
93
+ export type TabsTheme = Partial<Record<TabsSlots, ClassValue>>;
93
94
  export declare const tabItem: import("tailwind-variants").TVReturnType<{
94
95
  open: {
95
96
  true: {
@@ -137,4 +138,4 @@ export declare const tabItem: import("tailwind-variants").TVReturnType<{
137
138
  content: string;
138
139
  }, undefined, unknown, unknown, undefined>>;
139
140
  export type TabItemSlots = keyof typeof tabItem.slots;
140
- export type TabItemTheme = Partial<Record<TabItemSlots, string>>;
141
+ export type TabItemTheme = Partial<Record<TabItemSlots, ClassValue>>;
@@ -1,2 +1,15 @@
1
1
  import { type ThemeConfig } from "..";
2
+ import type { ClassValue } from "clsx";
2
3
  export declare function getTheme<K extends keyof ThemeConfig>(componentKey: K): ThemeConfig[K];
4
+ type Slots<T extends {
5
+ slots: Record<string, unknown>;
6
+ }> = Omit<T["slots"], "base">;
7
+ export type Classes<T extends {
8
+ slots: Record<string, unknown>;
9
+ }> = {
10
+ classes?: Partial<{
11
+ [K in keyof Slots<T>]: ClassValue;
12
+ }>;
13
+ };
14
+ export declare function themeDeprecated(component: string, names: Record<string, unknown>): void;
15
+ export {};
@@ -1,6 +1,14 @@
1
- import { getContext } from "svelte";
2
1
  import {} from "..";
2
+ import { getContext } from "svelte";
3
3
  export function getTheme(componentKey) {
4
4
  const theme = getContext("theme");
5
5
  return theme?.[componentKey];
6
6
  }
7
+ export function themeDeprecated(component, names) {
8
+ const nonEmptyNames = Object.keys(names)
9
+ .filter((name) => names[name])
10
+ .map((name) => `"${name}"`);
11
+ if (nonEmptyNames.length === 0)
12
+ return;
13
+ console.warn(`The following "${component}" props are deprecated: ${nonEmptyNames.join(", ")}.\nPlease update your code to use the new "classes" property.`);
14
+ }
@@ -2,7 +2,6 @@
2
2
  import clsx from "clsx";
3
3
  import { activity } from ".";
4
4
  import type { ActivityProps } from "../types";
5
- import { cn } from "..";
6
5
  import { getTheme } from "../theme/themeUtils";
7
6
 
8
7
  let { children, class: className, ...restProps }: ActivityProps = $props();
@@ -10,7 +9,7 @@
10
9
  const theme = getTheme("activity");
11
10
  </script>
12
11
 
13
- <ol {...restProps} class={cn(activity({ class: clsx(className) }), theme)}>
12
+ <ol {...restProps} class={activity({ class: clsx(theme, className) })}>
14
13
  {@render children()}
15
14
  </ol>
16
15
 
@@ -18,7 +17,7 @@
18
17
  @component
19
18
  [Go to docs](https://flowbite-svelte.com/)
20
19
  ## Type
21
- [ActivityProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1768)
20
+ [ActivityProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1754)
22
21
  ## Props
23
22
  @prop children
24
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#L1768)
5
+ * [ActivityProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1754)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { activityItem, type ActivityItemTheme } from "./index";
3
3
  import type { ActivityItemProps } from "../types";
4
- import { cn } from "..";
4
+ import clsx from "clsx";
5
5
  import { getTheme } from "../theme/themeUtils";
6
6
 
7
7
  let { activities, liClass, spanClass, imgClass, outerDivClass, innerDivClass, timeClass, titleClass, textClass, ...restProps }: ActivityItemProps = $props();
@@ -12,19 +12,19 @@
12
12
  </script>
13
13
 
14
14
  {#each activities as { title: name, date, src, alt, text: activity }}
15
- <li {...restProps} class={cn(li({ class: liClass }), (theme as ActivityItemTheme)?.li)}>
16
- <span class={cn(span({ class: spanClass }), (theme as ActivityItemTheme)?.span)}>
17
- <img class={cn(img({ class: imgClass }), (theme as ActivityItemTheme)?.img)} {src} {alt} />
15
+ <li {...restProps} class={li({ class: clsx((theme as ActivityItemTheme)?.li, liClass) })}>
16
+ <span class={span({ class: clsx((theme as ActivityItemTheme)?.span, spanClass) })}>
17
+ <img class={img({ class: clsx((theme as ActivityItemTheme)?.img, imgClass) })} {src} {alt} />
18
18
  </span>
19
- <div class={cn(outerDiv({ class: outerDivClass }), (theme as ActivityItemTheme)?.outerDiv)}>
20
- <div class={cn(innerDiv({ class: innerDivClass }), (theme as ActivityItemTheme)?.innerDiv)}>
21
- <time class={cn(time({ class: timeClass }), (theme as ActivityItemTheme)?.time)}>{date}</time>
22
- <div class={cn(title({ class: titleClass }), (theme as ActivityItemTheme)?.title)}>
19
+ <div class={outerDiv({ class: clsx((theme as ActivityItemTheme)?.outerDiv, outerDivClass) })}>
20
+ <div class={innerDiv({ class: clsx((theme as ActivityItemTheme)?.innerDiv, innerDivClass) })}>
21
+ <time class={time({ class: clsx((theme as ActivityItemTheme)?.time, timeClass) })}>{date}</time>
22
+ <div class={title({ class: clsx((theme as ActivityItemTheme)?.title, titleClass) })}>
23
23
  {@html name}
24
24
  </div>
25
25
  </div>
26
26
  {#if activity}
27
- <div class={cn(text({ class: textClass }), (theme as ActivityItemTheme)?.text)}>
27
+ <div class={text({ class: clsx((theme as ActivityItemTheme)?.text, textClass) })}>
28
28
  {@html activity}
29
29
  </div>
30
30
  {/if}
@@ -36,7 +36,7 @@
36
36
  @component
37
37
  [Go to docs](https://flowbite-svelte.com/)
38
38
  ## Type
39
- [ActivityItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1772)
39
+ [ActivityItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1758)
40
40
  ## Props
41
41
  @prop activities
42
42
  @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#L1772)
5
+ * [ActivityItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1758)
6
6
  * ## Props
7
7
  * @prop activities
8
8
  * @prop liClass
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { group, type GroupTheme } from ".";
3
3
  import type { GroupProps } from "../types";
4
- import { cn } from "..";
4
+ import clsx from "clsx";
5
5
  import { getTheme } from "../theme/themeUtils";
6
6
 
7
7
  let { children, divClass, timeClass, date, olClass, ...restProps }: GroupProps = $props();
@@ -11,9 +11,9 @@
11
11
  const { div, time, ol } = $derived(group());
12
12
  </script>
13
13
 
14
- <div class={cn(div({ class: divClass }), (theme as GroupTheme)?.div)}>
15
- <time class={cn(time({ class: timeClass }), (theme as GroupTheme)?.time)}>{date}</time>
16
- <ol {...restProps} class={cn(ol({ class: olClass }), (theme as GroupTheme)?.ol)}>
14
+ <div class={div({ class: clsx((theme as GroupTheme)?.div, divClass) })}>
15
+ <time class={time({ class: clsx((theme as GroupTheme)?.time, timeClass) })}>{date}</time>
16
+ <ol {...restProps} class={ol({ class: clsx((theme as GroupTheme)?.ol, olClass) })}>
17
17
  {@render children()}
18
18
  </ol>
19
19
  </div>
@@ -22,7 +22,7 @@
22
22
  @component
23
23
  [Go to docs](https://flowbite-svelte.com/)
24
24
  ## Type
25
- [GroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1784)
25
+ [GroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1770)
26
26
  ## Props
27
27
  @prop children
28
28
  @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#L1784)
5
+ * [GroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1770)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop divClass
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { groupItem, type GroupItemTheme } from ".";
3
3
  import type { GroupItemProps } from "../types";
4
- import { cn } from "..";
4
+ import clsx from "clsx";
5
5
  import { getTheme } from "../theme/themeUtils";
6
6
 
7
7
  let { timelines, aClass, imgClass, divClass, titleClass, spanClass, ...restProps }: GroupItemProps = $props();
@@ -13,17 +13,17 @@
13
13
 
14
14
  {#each timelines as { name, src, alt, isPrivate, href, comment }}
15
15
  <li {...restProps}>
16
- <a {href} class={cn(a({ class: aClass }), (theme as GroupItemTheme)?.a)}>
17
- <img class={cn(img({ class: imgClass }), (theme as GroupItemTheme)?.img)} {src} {alt} />
18
- <div class={cn(div({ class: divClass }), (theme as GroupItemTheme)?.div)}>
19
- <div class={cn(title({ class: titleClass }), (theme as GroupItemTheme)?.title)}>
16
+ <a {href} class={a({ class: clsx((theme as GroupItemTheme)?.a, aClass) })}>
17
+ <img class={img({ class: clsx((theme as GroupItemTheme)?.img, imgClass) })} {src} {alt} />
18
+ <div class={div({ class: clsx((theme as GroupItemTheme)?.div, divClass) })}>
19
+ <div class={title({ class: clsx((theme as GroupItemTheme)?.title, titleClass) })}>
20
20
  {@html name}
21
21
  </div>
22
22
  {#if comment}
23
23
  <div class="text-sm font-normal">{comment}</div>
24
24
  {/if}
25
25
 
26
- <span class={cn(span({ class: spanClass }), (theme as GroupItemTheme)?.span)}>
26
+ <span class={span({ class: clsx((theme as GroupItemTheme)?.span, spanClass) })}>
27
27
  {#if isPrivate}
28
28
  <svg class="me-1 h-3 w-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
29
29
  <path fill-rule="evenodd" d="M3.707 2.293a1 1 0 00-1.414 1.414l14 14a1 1 0 001.414-1.414l-1.473-1.473A10.014 10.014 0 0019.542 10C18.268 5.943 14.478 3 10 3a9.958 9.958 0 00-4.512 1.074l-1.78-1.781zm4.261 4.26l1.514 1.515a2.003 2.003 0 012.45 2.45l1.514 1.514a4 4 0 00-5.478-5.478z" clip-rule="evenodd" />
@@ -46,7 +46,7 @@
46
46
  @component
47
47
  [Go to docs](https://flowbite-svelte.com/)
48
48
  ## Type
49
- [GroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1792)
49
+ [GroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1778)
50
50
  ## Props
51
51
  @prop timelines
52
52
  @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#L1792)
5
+ * [GroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1778)
6
6
  * ## Props
7
7
  * @prop timelines
8
8
  * @prop aClass
@@ -3,7 +3,6 @@
3
3
  import { timeline } from ".";
4
4
  import clsx from "clsx";
5
5
  import type { TimelineProps, TimelineVariants } from "../types";
6
- import { cn } from "..";
7
6
  import { getTheme } from "../theme/themeUtils";
8
7
 
9
8
  let { children, order = "default", class: className, ...restProps }: TimelineProps = $props();
@@ -11,10 +10,10 @@
11
10
  const theme = getTheme("timeline");
12
11
 
13
12
  setContext<TimelineVariants["order"]>("order", order);
14
- const olCls = $derived(timeline({ order, class: clsx(className) }));
13
+ const olCls = $derived(timeline({ order, class: clsx(theme, className) }));
15
14
  </script>
16
15
 
17
- <ol {...restProps} class={cn(olCls, theme)}>
16
+ <ol {...restProps} class={olCls}>
18
17
  {@render children()}
19
18
  </ol>
20
19
 
@@ -22,7 +21,7 @@
22
21
  @component
23
22
  [Go to docs](https://flowbite-svelte.com/)
24
23
  ## Type
25
- [TimelineProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1803)
24
+ [TimelineProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1789)
26
25
  ## Props
27
26
  @prop children
28
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#L1803)
5
+ * [TimelineProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1789)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop order = "default"