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
@@ -2,7 +2,6 @@
2
2
  import clsx from "clsx";
3
3
  import { imagePlaceholder, type ImagePlaceholderTheme } from ".";
4
4
  import type { ImagePlaceholderProps } from "../types";
5
- import { cn } from "..";
6
5
  import { getTheme } from "../theme/themeUtils";
7
6
 
8
7
  let { size = "md", rounded, imgOnly = false, class: className, ...restProps }: ImagePlaceholderProps = $props();
@@ -17,21 +16,49 @@
17
16
  );
18
17
  </script>
19
18
 
20
- <div role="status" {...restProps} class={cn(base(), clsx(className), (theme as ImagePlaceholderTheme)?.base)}>
21
- <div class={cn(image(), (theme as ImagePlaceholderTheme)?.image)}>
22
- <svg width="48" height="48" class={cn(svg(), (theme as ImagePlaceholderTheme)?.svg)} xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 640 512">
19
+ <div role="status" {...restProps} class={base({ class: clsx(className, (theme as ImagePlaceholderTheme)?.base) })}>
20
+ <div class={image({ class: clsx((theme as ImagePlaceholderTheme)?.image) })}>
21
+ <svg width="48" height="48" class={svg({ class: clsx((theme as ImagePlaceholderTheme)?.svg) })} xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 640 512">
23
22
  <path d="M480 80C480 35.82 515.8 0 560 0C604.2 0 640 35.82 640 80C640 124.2 604.2 160 560 160C515.8 160 480 124.2 480 80zM0 456.1C0 445.6 2.964 435.3 8.551 426.4L225.3 81.01C231.9 70.42 243.5 64 256 64C268.5 64 280.1 70.42 286.8 81.01L412.7 281.7L460.9 202.7C464.1 196.1 472.2 192 480 192C487.8 192 495 196.1 499.1 202.7L631.1 419.1C636.9 428.6 640 439.7 640 450.9C640 484.6 612.6 512 578.9 512H55.91C25.03 512 .0006 486.1 .0006 456.1L0 456.1z"></path>
24
23
  </svg>
25
24
  </div>
26
25
  {#if !imgOnly}
27
- <div class={cn(content(), (theme as ImagePlaceholderTheme)?.content)}>
28
- <div class={cn(line({ class: "mb-4 h-2.5 w-1/2" }), (theme as ImagePlaceholderTheme)?.line)}></div>
29
- <div class={cn(line({ class: "mb-2.5 h-2 w-9/12" }), (theme as ImagePlaceholderTheme)?.line)}></div>
30
- <div class={cn(line({ class: "mb-2.5 h-2" }), (theme as ImagePlaceholderTheme)?.line)}></div>
31
- <div class={cn(line({ class: "mb-2.5 h-2" }), (theme as ImagePlaceholderTheme)?.line)}></div>
32
- <div class={cn(line({ class: "mb-2.5 h-2 w-10/12" }), (theme as ImagePlaceholderTheme)?.line)}></div>
33
- <div class={cn(line({ class: "mb-2.5 h-2 w-11/12" }), (theme as ImagePlaceholderTheme)?.line)}></div>
34
- <div class={cn(line({ class: "h-2 w-9/12" }), (theme as ImagePlaceholderTheme)?.line)}></div>
26
+ <div class={content({ class: clsx((theme as ImagePlaceholderTheme)?.content) })}>
27
+ <div
28
+ class={line({
29
+ class: clsx("mb-4 h-2.5 w-1/2", (theme as ImagePlaceholderTheme)?.line)
30
+ })}
31
+ ></div>
32
+ <div
33
+ class={line({
34
+ class: clsx("mb-2.5 h-2 w-9/12", (theme as ImagePlaceholderTheme)?.line)
35
+ })}
36
+ ></div>
37
+ <div
38
+ class={line({
39
+ class: clsx("mb-2.5 h-2", (theme as ImagePlaceholderTheme)?.line)
40
+ })}
41
+ ></div>
42
+ <div
43
+ class={line({
44
+ class: clsx("mb-2.5 h-2", (theme as ImagePlaceholderTheme)?.line)
45
+ })}
46
+ ></div>
47
+ <div
48
+ class={line({
49
+ class: clsx("mb-2.5 h-2 w-10/12", (theme as ImagePlaceholderTheme)?.line)
50
+ })}
51
+ ></div>
52
+ <div
53
+ class={line({
54
+ class: clsx("mb-2.5 h-2 w-11/12", (theme as ImagePlaceholderTheme)?.line)
55
+ })}
56
+ ></div>
57
+ <div
58
+ class={line({
59
+ class: clsx("h-2 w-9/12", (theme as ImagePlaceholderTheme)?.line)
60
+ })}
61
+ ></div>
35
62
  </div>
36
63
  {/if}
37
64
  <span class="sr-only">Loading...</span>
@@ -41,7 +68,7 @@
41
68
  @component
42
69
  [Go to docs](https://flowbite-svelte.com/)
43
70
  ## Type
44
- [ImagePlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1429)
71
+ [ImagePlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1415)
45
72
  ## Props
46
73
  @prop size = "md"
47
74
  @prop rounded
@@ -2,7 +2,7 @@ import type { ImagePlaceholderProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ImagePlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1429)
5
+ * [ImagePlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1415)
6
6
  * ## Props
7
7
  * @prop size = "md"
8
8
  * @prop rounded
@@ -2,7 +2,6 @@
2
2
  import clsx from "clsx";
3
3
  import { listPlaceholder, type ListPlaceholderTheme } from ".";
4
4
  import type { ListPlaceholderProps } from "../types";
5
- import { cn } from "..";
6
5
  import { getTheme } from "../theme/themeUtils";
7
6
 
8
7
  let { itemNumber = 5, size = "md", rounded, class: className, ...restProps }: ListPlaceholderProps = $props();
@@ -14,15 +13,34 @@
14
13
  let items = $derived([...Array(itemNumber).keys()]);
15
14
  </script>
16
15
 
17
- <div role="status" {...restProps} class={cn(base(), clsx(className), (theme as ListPlaceholderTheme)?.base)}>
18
- <!-- eslint-disable-next-line @typescript-eslint/no-unused-vars -->
16
+ <div role="status" {...restProps} class={base({ class: clsx(className, (theme as ListPlaceholderTheme)?.base) })}>
19
17
  {#each items as _, i}
20
- <div class={cn(item({ class: i > 0 ? "pt-4" : "" }), (theme as ListPlaceholderTheme)?.item)}>
21
- <div class={cn(itemContent(), (theme as ListPlaceholderTheme)?.itemContent)}>
22
- <div class={cn(itemTitle(), (theme as ListPlaceholderTheme)?.itemTitle)}></div>
23
- <div class={cn(itemSubtitle(), (theme as ListPlaceholderTheme)?.itemSubtitle)}></div>
18
+ <div
19
+ class={item({
20
+ class: clsx(i > 0 ? "pt-4" : "", (theme as ListPlaceholderTheme)?.item)
21
+ })}
22
+ >
23
+ <div
24
+ class={itemContent({
25
+ class: clsx((theme as ListPlaceholderTheme)?.itemContent)
26
+ })}
27
+ >
28
+ <div
29
+ class={itemTitle({
30
+ class: clsx((theme as ListPlaceholderTheme)?.itemTitle)
31
+ })}
32
+ ></div>
33
+ <div
34
+ class={itemSubtitle({
35
+ class: clsx((theme as ListPlaceholderTheme)?.itemSubtitle)
36
+ })}
37
+ ></div>
24
38
  </div>
25
- <div class={cn(itemExtra(), (theme as ListPlaceholderTheme)?.itemExtra)}></div>
39
+ <div
40
+ class={itemExtra({
41
+ class: clsx((theme as ListPlaceholderTheme)?.itemExtra)
42
+ })}
43
+ ></div>
26
44
  </div>
27
45
  {/each}
28
46
  <span class="sr-only">Loading...</span>
@@ -32,7 +50,7 @@
32
50
  @component
33
51
  [Go to docs](https://flowbite-svelte.com/)
34
52
  ## Type
35
- [ListPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1435)
53
+ [ListPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1421)
36
54
  ## Props
37
55
  @prop itemNumber = 5
38
56
  @prop size = "md"
@@ -2,7 +2,7 @@ import type { ListPlaceholderProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ListPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1435)
5
+ * [ListPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1421)
6
6
  * ## Props
7
7
  * @prop itemNumber = 5
8
8
  * @prop size = "md"
@@ -2,7 +2,6 @@
2
2
  import clsx from "clsx";
3
3
  import { skeleton, type SkeletonTheme } from ".";
4
4
  import type { SkeletonProps } from "../types";
5
- import { cn } from "..";
6
5
  import { getTheme } from "../theme/themeUtils";
7
6
 
8
7
  let { size = "sm", class: className, ...restProps }: SkeletonProps = $props();
@@ -12,14 +11,30 @@
12
11
  const { wrapper, line } = $derived(skeleton({ size }));
13
12
  </script>
14
13
 
15
- <div role="status" {...restProps} class={cn(wrapper(), clsx(className), (theme as SkeletonTheme)?.wrapper)}>
16
- <div class={cn(line({ class: "mb-4 h-2.5 w-1/2" }), (theme as SkeletonTheme)?.line)}></div>
17
- <div class={cn(line({ class: "mb-2.5 h-2 w-9/12" }), (theme as SkeletonTheme)?.line)}></div>
18
- <div class={cn(line({ class: "mb-2.5 h-2" }), (theme as SkeletonTheme)?.line)}></div>
19
- <div class={cn(line({ class: "mb-2.5 h-2" }), (theme as SkeletonTheme)?.line)}></div>
20
- <div class={cn(line({ class: "mb-2.5 h-2 w-10/12" }), (theme as SkeletonTheme)?.line)}></div>
21
- <div class={cn(line({ class: "mb-2.5 h-2 w-11/12" }), (theme as SkeletonTheme)?.line)}></div>
22
- <div class={cn(line({ class: "h-2 w-9/12" }), (theme as SkeletonTheme)?.line)}></div>
14
+ <div role="status" {...restProps} class={wrapper({ class: clsx(className, (theme as SkeletonTheme)?.wrapper) })}>
15
+ <div
16
+ class={line({
17
+ class: clsx("mb-4 h-2.5 w-1/2", (theme as SkeletonTheme)?.line)
18
+ })}
19
+ ></div>
20
+ <div
21
+ class={line({
22
+ class: clsx("mb-2.5 h-2 w-9/12", (theme as SkeletonTheme)?.line)
23
+ })}
24
+ ></div>
25
+ <div class={line({ class: clsx("mb-2.5 h-2", (theme as SkeletonTheme)?.line) })}></div>
26
+ <div class={line({ class: clsx("mb-2.5 h-2", (theme as SkeletonTheme)?.line) })}></div>
27
+ <div
28
+ class={line({
29
+ class: clsx("mb-2.5 h-2 w-10/12", (theme as SkeletonTheme)?.line)
30
+ })}
31
+ ></div>
32
+ <div
33
+ class={line({
34
+ class: clsx("mb-2.5 h-2 w-11/12", (theme as SkeletonTheme)?.line)
35
+ })}
36
+ ></div>
37
+ <div class={line({ class: clsx("h-2 w-9/12", (theme as SkeletonTheme)?.line) })}></div>
23
38
  <span class="sr-only">Loading...</span>
24
39
  </div>
25
40
 
@@ -27,7 +42,7 @@
27
42
  @component
28
43
  [Go to docs](https://flowbite-svelte.com/)
29
44
  ## Type
30
- [SkeletonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1441)
45
+ [SkeletonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1427)
31
46
  ## Props
32
47
  @prop size = "sm"
33
48
  @prop class: className
@@ -2,7 +2,7 @@ import type { SkeletonProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [SkeletonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1441)
5
+ * [SkeletonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1427)
6
6
  * ## Props
7
7
  * @prop size = "sm"
8
8
  * @prop class: className
@@ -2,7 +2,6 @@
2
2
  import { testimonialPlaceholder, type TestimonialPlaceholderTheme } from ".";
3
3
  import clsx from "clsx";
4
4
  import { type TestimonialPlaceholderProps } from "..";
5
- import { cn } from "..";
6
5
  import { getTheme } from "../theme/themeUtils";
7
6
 
8
7
  let { class: className, ...restProps }: TestimonialPlaceholderProps = $props();
@@ -12,15 +11,35 @@
12
11
  const { wrapper, line1, line2, svg, subContent } = testimonialPlaceholder();
13
12
  </script>
14
13
 
15
- <div role="status" {...restProps} class={cn(wrapper(), clsx(className), (theme as TestimonialPlaceholderTheme)?.wrapper)}>
16
- <div class={cn(line2({ class: "mx-auto mb-2.5 h-2.5 max-w-[640px]" }), (theme as TestimonialPlaceholderTheme)?.line2)}></div>
17
- <div class={cn(line2({ class: "mx-auto h-2.5 max-w-[540px]" }), (theme as TestimonialPlaceholderTheme)?.line2)}></div>
18
- <div class={cn(subContent(), (theme as TestimonialPlaceholderTheme)?.subContent)}>
19
- <svg class={cn(svg(), (theme as TestimonialPlaceholderTheme)?.svg)} aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
14
+ <div role="status" {...restProps} class={wrapper({ class: clsx(className, (theme as TestimonialPlaceholderTheme)?.wrapper) })}>
15
+ <div
16
+ class={line2({
17
+ class: clsx("mx-auto mb-2.5 h-2.5 max-w-[640px]", (theme as TestimonialPlaceholderTheme)?.line2)
18
+ })}
19
+ ></div>
20
+ <div
21
+ class={line2({
22
+ class: clsx("mx-auto h-2.5 max-w-[540px]", (theme as TestimonialPlaceholderTheme)?.line2)
23
+ })}
24
+ ></div>
25
+ <div
26
+ class={subContent({
27
+ class: clsx((theme as TestimonialPlaceholderTheme)?.subContent)
28
+ })}
29
+ >
30
+ <svg class={svg({ class: clsx((theme as TestimonialPlaceholderTheme)?.svg) })} aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
20
31
  <path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" clip-rule="evenodd"></path>
21
32
  </svg>
22
- <div class={cn(line1({ class: "me-3 h-2.5 w-20" }), (theme as TestimonialPlaceholderTheme)?.line1)}></div>
23
- <div class={cn(line1({ class: "h-2 w-24" }), (theme as TestimonialPlaceholderTheme)?.line1)}></div>
33
+ <div
34
+ class={line1({
35
+ class: clsx("me-3 h-2.5 w-20", (theme as TestimonialPlaceholderTheme)?.line1)
36
+ })}
37
+ ></div>
38
+ <div
39
+ class={line1({
40
+ class: clsx("h-2 w-24", (theme as TestimonialPlaceholderTheme)?.line1)
41
+ })}
42
+ ></div>
24
43
  </div>
25
44
  <span class="sr-only">Loading...</span>
26
45
  </div>
@@ -29,7 +48,7 @@
29
48
  @component
30
49
  [Go to docs](https://flowbite-svelte.com/)
31
50
  ## Type
32
- [TestimonialPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1445)
51
+ [TestimonialPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1431)
33
52
  ## Props
34
53
  @prop class: className
35
54
  @prop ...restProps
@@ -2,7 +2,7 @@ import { type TestimonialPlaceholderProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TestimonialPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1445)
5
+ * [TestimonialPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1431)
6
6
  * ## Props
7
7
  * @prop class: className
8
8
  * @prop ...restProps
@@ -2,7 +2,6 @@
2
2
  import clsx from "clsx";
3
3
  import { textPlaceholder, type TextPlaceholderTheme } from ".";
4
4
  import type { TextPlaceholderProps } from "../types";
5
- import { cn } from "..";
6
5
  import { getTheme } from "../theme/themeUtils";
7
6
 
8
7
  let { size = "sm", class: className, ...restProps }: TextPlaceholderProps = $props();
@@ -16,36 +15,60 @@
16
15
  );
17
16
  </script>
18
17
 
19
- <div role="status" {...restProps} class={cn(baseWrapper(), clsx(className), (theme as TextPlaceholderTheme)?.baseWrapper)}>
20
- <div class={cn(divWrapper({ class: "w-full" }), (theme as TextPlaceholderTheme)?.divWrapper)}>
21
- <div class={cn(lineA({ class: "h-2.5 w-32" }), (theme as TextPlaceholderTheme)?.lineA)}></div>
22
- <div class={cn(lineB({ class: "h-2.5 w-24" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
23
- <div class={cn(lineB({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
18
+ <div role="status" {...restProps} class={baseWrapper({ class: clsx(className, (theme as TextPlaceholderTheme)?.baseWrapper) })}>
19
+ <div
20
+ class={divWrapper({
21
+ class: clsx("w-full", (theme as TextPlaceholderTheme)?.divWrapper)
22
+ })}
23
+ >
24
+ <div class={lineA({ class: clsx("h-2.5 w-32", (theme as TextPlaceholderTheme)?.lineA) })}></div>
25
+ <div class={lineB({ class: clsx("h-2.5 w-24", (theme as TextPlaceholderTheme)?.lineB) })}></div>
26
+ <div class={lineB({ class: clsx("h-2.5 w-full", (theme as TextPlaceholderTheme)?.lineB) })}></div>
24
27
  </div>
25
- <div class={cn(divWrapper({ class: "w-11/12" }), (theme as TextPlaceholderTheme)?.divWrapper)}>
26
- <div class={cn(lineA({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineA)}></div>
27
- <div class={cn(lineB({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
28
- <div class={cn(lineB({ class: "h-2.5 w-24" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
28
+ <div
29
+ class={divWrapper({
30
+ class: clsx("w-11/12", (theme as TextPlaceholderTheme)?.divWrapper)
31
+ })}
32
+ >
33
+ <div class={lineA({ class: clsx("h-2.5 w-full", (theme as TextPlaceholderTheme)?.lineA) })}></div>
34
+ <div class={lineB({ class: clsx("h-2.5 w-full", (theme as TextPlaceholderTheme)?.lineB) })}></div>
35
+ <div class={lineB({ class: clsx("h-2.5 w-24", (theme as TextPlaceholderTheme)?.lineB) })}></div>
29
36
  </div>
30
- <div class={cn(divWrapper({ class: "w-9/12" }), (theme as TextPlaceholderTheme)?.divWrapper)}>
31
- <div class={cn(lineB({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
32
- <div class={cn(lineA({ class: "h-2.5 w-80" }), (theme as TextPlaceholderTheme)?.lineA)}></div>
33
- <div class={cn(lineB({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
37
+ <div
38
+ class={divWrapper({
39
+ class: clsx("w-9/12", (theme as TextPlaceholderTheme)?.divWrapper)
40
+ })}
41
+ >
42
+ <div class={lineB({ class: clsx("h-2.5 w-full", (theme as TextPlaceholderTheme)?.lineB) })}></div>
43
+ <div class={lineA({ class: clsx("h-2.5 w-80", (theme as TextPlaceholderTheme)?.lineA) })}></div>
44
+ <div class={lineB({ class: clsx("h-2.5 w-full", (theme as TextPlaceholderTheme)?.lineB) })}></div>
34
45
  </div>
35
- <div class={cn(divWrapper({ class: "w-11/12" }), (theme as TextPlaceholderTheme)?.divWrapper)}>
36
- <div class={cn(lineA({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineA)}></div>
37
- <div class={cn(lineB({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
38
- <div class={cn(lineB({ class: "h-2.5 w-24" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
46
+ <div
47
+ class={divWrapper({
48
+ class: clsx("w-11/12", (theme as TextPlaceholderTheme)?.divWrapper)
49
+ })}
50
+ >
51
+ <div class={lineA({ class: clsx("h-2.5 w-full", (theme as TextPlaceholderTheme)?.lineA) })}></div>
52
+ <div class={lineB({ class: clsx("h-2.5 w-full", (theme as TextPlaceholderTheme)?.lineB) })}></div>
53
+ <div class={lineB({ class: clsx("h-2.5 w-24", (theme as TextPlaceholderTheme)?.lineB) })}></div>
39
54
  </div>
40
- <div class={cn(divWrapper({ class: "w-10/12" }), (theme as TextPlaceholderTheme)?.divWrapper)}>
41
- <div class={cn(lineB({ class: "h-2.5 w-32" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
42
- <div class={cn(lineB({ class: "h-2.5 w-24" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
43
- <div class={cn(lineA({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineA)}></div>
55
+ <div
56
+ class={divWrapper({
57
+ class: clsx("w-10/12", (theme as TextPlaceholderTheme)?.divWrapper)
58
+ })}
59
+ >
60
+ <div class={lineB({ class: clsx("h-2.5 w-32", (theme as TextPlaceholderTheme)?.lineB) })}></div>
61
+ <div class={lineB({ class: clsx("h-2.5 w-24", (theme as TextPlaceholderTheme)?.lineB) })}></div>
62
+ <div class={lineA({ class: clsx("h-2.5 w-full", (theme as TextPlaceholderTheme)?.lineA) })}></div>
44
63
  </div>
45
- <div class={cn(divWrapper({ class: "w-8/12" }), (theme as TextPlaceholderTheme)?.divWrapper)}>
46
- <div class={cn(lineB({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
47
- <div class={cn(lineA({ class: "h-2.5 w-80" }), (theme as TextPlaceholderTheme)?.lineA)}></div>
48
- <div class={cn(lineB({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
64
+ <div
65
+ class={divWrapper({
66
+ class: clsx("w-8/12", (theme as TextPlaceholderTheme)?.divWrapper)
67
+ })}
68
+ >
69
+ <div class={lineB({ class: clsx("h-2.5 w-full", (theme as TextPlaceholderTheme)?.lineB) })}></div>
70
+ <div class={lineA({ class: clsx("h-2.5 w-80", (theme as TextPlaceholderTheme)?.lineA) })}></div>
71
+ <div class={lineB({ class: clsx("h-2.5 w-full", (theme as TextPlaceholderTheme)?.lineB) })}></div>
49
72
  </div>
50
73
  <span class="sr-only">Loading...</span>
51
74
  </div>
@@ -54,7 +77,7 @@
54
77
  @component
55
78
  [Go to docs](https://flowbite-svelte.com/)
56
79
  ## Type
57
- [TextPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1447)
80
+ [TextPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1433)
58
81
  ## Props
59
82
  @prop size = "sm"
60
83
  @prop class: className
@@ -2,7 +2,7 @@ import type { TextPlaceholderProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TextPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1447)
5
+ * [TextPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1433)
6
6
  * ## Props
7
7
  * @prop size = "sm"
8
8
  * @prop class: className
@@ -2,17 +2,16 @@
2
2
  import clsx from "clsx";
3
3
  import { videoPlaceholder } from ".";
4
4
  import type { VideoPlaceholderProps } from "../types";
5
- import { cn } from "..";
6
5
  import { getTheme } from "../theme/themeUtils";
7
6
 
8
7
  let { size = "sm", class: className }: VideoPlaceholderProps = $props();
9
8
 
10
9
  const theme = getTheme("videoPlaceholder");
11
10
 
12
- const base = $derived(videoPlaceholder({ size }));
11
+ const base = $derived(videoPlaceholder({ size, class: clsx(theme, className) }));
13
12
  </script>
14
13
 
15
- <div role="status" class={cn(base, clsx(className), theme)}>
14
+ <div role="status" class={base}>
16
15
  <svg width="48" height="48" class="text-gray-200 dark:text-gray-600" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 384 512">
17
16
  <path d="M361 215C375.3 223.8 384 239.3 384 256C384 272.7 375.3 288.2 361 296.1L73.03 472.1C58.21 482 39.66 482.4 24.52 473.9C9.377 465.4 0 449.4 0 432V80C0 62.64 9.377 46.63 24.52 38.13C39.66 29.64 58.21 29.99 73.03 39.04L361 215z"></path>
18
17
  </svg>
@@ -23,7 +22,7 @@
23
22
  @component
24
23
  [Go to docs](https://flowbite-svelte.com/)
25
24
  ## Type
26
- [VideoPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1451)
25
+ [VideoPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1437)
27
26
  ## Props
28
27
  @prop size = "sm"
29
28
  @prop class: className
@@ -2,7 +2,7 @@ import type { VideoPlaceholderProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [VideoPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1451)
5
+ * [VideoPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1437)
6
6
  * ## Props
7
7
  * @prop size = "sm"
8
8
  * @prop class: className
@@ -2,7 +2,6 @@
2
2
  import { widgetPlaceholder, type WidgetPlaceholderTheme } from ".";
3
3
  import clsx from "clsx";
4
4
  import { type WidgetPlaceholderProps } from "..";
5
- import { cn } from "..";
6
5
  import { getTheme } from "../theme/themeUtils";
7
6
 
8
7
  let { class: className }: WidgetPlaceholderProps = $props();
@@ -12,7 +11,7 @@
12
11
  const { base, wrapper, vLine, hLine } = widgetPlaceholder({});
13
12
  </script>
14
13
 
15
- <div role="status" class={cn(base(), clsx(className), (theme as WidgetPlaceholderTheme)?.base)}>
14
+ <div role="status" class={base({ class: clsx((theme as WidgetPlaceholderTheme)?.base, className) })}>
16
15
  <div class={hLine({ class: "mb-2.5 h-2.5 w-32" })}></div>
17
16
  <div class={hLine({ class: "mb-10 h-2 w-48" })}></div>
18
17
  <div class={wrapper()}>
@@ -31,7 +30,7 @@
31
30
  @component
32
31
  [Go to docs](https://flowbite-svelte.com/)
33
32
  ## Type
34
- [WidgetPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1455)
33
+ [WidgetPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1441)
35
34
  ## Props
36
35
  @prop class: className
37
36
  -->
@@ -2,7 +2,7 @@ import { type WidgetPlaceholderProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [WidgetPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1455)
5
+ * [WidgetPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1441)
6
6
  * ## Props
7
7
  * @prop class: className
8
8
  */
@@ -1,4 +1,5 @@
1
1
  import { type VariantProps } from "tailwind-variants";
2
+ import type { ClassValue } from "svelte/elements";
2
3
  export type CardPlaceholderVariants = VariantProps<typeof cardPlaceholder>;
3
4
  export declare const cardPlaceholder: import("tailwind-variants").TVReturnType<{
4
5
  size: {
@@ -74,7 +75,7 @@ export declare const cardPlaceholder: import("tailwind-variants").TVReturnType<{
74
75
  footerArea: string;
75
76
  }, undefined, unknown, unknown, undefined>>;
76
77
  export type CardPlaceholderSlots = keyof typeof cardPlaceholder.slots;
77
- export type CardPlaceholderTheme = Partial<Record<CardPlaceholderSlots, string>>;
78
+ export type CardPlaceholderTheme = Partial<Record<CardPlaceholderSlots, ClassValue>>;
78
79
  export type ImagePlaceholderVariants = VariantProps<typeof imagePlaceholder>;
79
80
  export declare const imagePlaceholder: import("tailwind-variants").TVReturnType<{
80
81
  size: {
@@ -207,7 +208,7 @@ export declare const imagePlaceholder: import("tailwind-variants").TVReturnType<
207
208
  line: string;
208
209
  }, undefined, unknown, unknown, undefined>>;
209
210
  export type ImagePlaceholderSlots = keyof typeof imagePlaceholder.slots;
210
- export type ImagePlaceholderTheme = Partial<Record<ImagePlaceholderSlots, string>>;
211
+ export type ImagePlaceholderTheme = Partial<Record<ImagePlaceholderSlots, ClassValue>>;
211
212
  export type ListPlaceholderVariants = VariantProps<typeof listPlaceholder>;
212
213
  export declare const listPlaceholder: import("tailwind-variants").TVReturnType<{
213
214
  size: {
@@ -331,7 +332,7 @@ export declare const listPlaceholder: import("tailwind-variants").TVReturnType<{
331
332
  itemExtra: string;
332
333
  }, undefined, unknown, unknown, undefined>>;
333
334
  export type ListPlaceholderSlots = keyof typeof listPlaceholder.slots;
334
- export type ListPlaceholderTheme = Partial<Record<ListPlaceholderSlots, string>>;
335
+ export type ListPlaceholderTheme = Partial<Record<ListPlaceholderSlots, ClassValue>>;
335
336
  export type SkeletonVariants = VariantProps<typeof skeleton>;
336
337
  export declare const skeleton: import("tailwind-variants").TVReturnType<{
337
338
  size: {
@@ -398,7 +399,7 @@ export declare const skeleton: import("tailwind-variants").TVReturnType<{
398
399
  line: string;
399
400
  }, undefined, unknown, unknown, undefined>>;
400
401
  export type SkeletonSlots = keyof typeof skeleton.slots;
401
- export type SkeletonTheme = Partial<Record<SkeletonSlots, string>>;
402
+ export type SkeletonTheme = Partial<Record<SkeletonSlots, ClassValue>>;
402
403
  export declare const testimonialPlaceholder: import("tailwind-variants").TVReturnType<{
403
404
  [key: string]: {
404
405
  [key: string]: import("tailwind-variants").ClassValue | {
@@ -449,7 +450,7 @@ export declare const testimonialPlaceholder: import("tailwind-variants").TVRetur
449
450
  subContent: string;
450
451
  }, undefined, unknown, unknown, undefined>>;
451
452
  export type TestimonialPlaceholderSlots = keyof typeof testimonialPlaceholder.slots;
452
- export type TestimonialPlaceholderTheme = Partial<Record<TestimonialPlaceholderSlots, string>>;
453
+ export type TestimonialPlaceholderTheme = Partial<Record<TestimonialPlaceholderSlots, ClassValue>>;
453
454
  export type TextPlaceholderVariants = VariantProps<typeof textPlaceholder>;
454
455
  export declare const textPlaceholder: import("tailwind-variants").TVReturnType<{
455
456
  size: {
@@ -522,7 +523,7 @@ export declare const textPlaceholder: import("tailwind-variants").TVReturnType<{
522
523
  lineB: string;
523
524
  }, undefined, unknown, unknown, undefined>>;
524
525
  export type TextPlaceholderSlots = keyof typeof textPlaceholder.slots;
525
- export type TextPlaceholderTheme = Partial<Record<TextPlaceholderSlots, string>>;
526
+ export type TextPlaceholderTheme = Partial<Record<TextPlaceholderSlots, ClassValue>>;
526
527
  export type VideoPlaceholderVariants = VariantProps<typeof videoPlaceholder>;
527
528
  export declare const videoPlaceholder: import("tailwind-variants").TVReturnType<{
528
529
  size: {
@@ -549,7 +550,7 @@ export declare const videoPlaceholder: import("tailwind-variants").TVReturnType<
549
550
  "2xl": string;
550
551
  };
551
552
  }, undefined, "flex justify-center items-center h-56 bg-gray-300 rounded-lg animate-pulse dark:bg-gray-700", unknown, unknown, undefined>>;
552
- export type VideoPlaceholderTheme = string;
553
+ export type VideoPlaceholderTheme = ClassValue;
553
554
  export declare const widgetPlaceholder: import("tailwind-variants").TVReturnType<{
554
555
  [key: string]: {
555
556
  [key: string]: import("tailwind-variants").ClassValue | {
@@ -594,4 +595,4 @@ export declare const widgetPlaceholder: import("tailwind-variants").TVReturnType
594
595
  vLine: string;
595
596
  }, undefined, unknown, unknown, undefined>>;
596
597
  export type WidgetPlaceholderSlots = keyof typeof widgetPlaceholder.slots;
597
- export type WidgetPlaceholderTheme = Partial<Record<WidgetPlaceholderSlots, string>>;
598
+ export type WidgetPlaceholderTheme = Partial<Record<WidgetPlaceholderSlots, ClassValue>>;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import clsx from "clsx";
3
- import { Popper, cn } from "..";
3
+ import { Popper } from "..";
4
4
  import { getSideAxis } from "@floating-ui/utils";
5
5
  import { setContext } from "svelte";
6
6
  import { speedDial, type SpeedDialTheme } from "./theme";
@@ -18,8 +18,8 @@
18
18
  let { base, popper } = $derived(speedDial({ vertical }));
19
19
  </script>
20
20
 
21
- <Popper {...restProps} bind:isOpen {trigger} arrow={false} {placement} class={cn(base(), clsx(className), (theme as SpeedDialTheme)?.base)}>
22
- <div class={cn(popper(), clsx(popperClass), (theme as SpeedDialTheme)?.popper)}>
21
+ <Popper {...restProps} bind:isOpen {trigger} arrow={false} {placement} class={base({ class: clsx((theme as SpeedDialTheme)?.base, className) })}>
22
+ <div class={popper({ class: clsx((theme as SpeedDialTheme)?.popper, popperClass) })}>
23
23
  {@render children()}
24
24
  </div>
25
25
  </Popper>
@@ -28,7 +28,7 @@
28
28
  @component
29
29
  [Go to docs](https://flowbite-svelte.com/)
30
30
  ## Type
31
- [SpeedDialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1487)
31
+ [SpeedDialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1473)
32
32
  ## Props
33
33
  @prop children
34
34
  @prop popperClass
@@ -2,7 +2,7 @@ import type { SpeedDialProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [SpeedDialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1487)
5
+ * [SpeedDialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1473)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop popperClass
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { Button, Tooltip, cn } from "..";
2
+ import { Button, Tooltip } from "..";
3
3
  import { getContext } from "svelte";
4
4
  import { speedDialButton, type SpeedDialButtonTheme } from "./theme";
5
5
  import type { SpeedCtxType, SpeedDialButtonProps } from "../types";
@@ -13,10 +13,10 @@
13
13
  const theme = getTheme("speedDialButton");
14
14
 
15
15
  let { base, span } = $derived(speedDialButton({ textOutside, tooltip: tooltip == "none" }));
16
- let spanClass = $derived(tooltip === "none" ? cn(span(), clsx(textClass), (theme as SpeedDialButtonTheme)?.span) : "sr-only");
16
+ let spanClass = $derived(tooltip === "none" ? span({ class: clsx((theme as SpeedDialButtonTheme)?.span, textClass) }) : "sr-only");
17
17
  </script>
18
18
 
19
- <Button {pill} {color} {...restProps} class={cn(base(), clsx(className), (theme as SpeedDialButtonTheme)?.base)}>
19
+ <Button {pill} {color} {...restProps} class={base({ class: clsx((theme as SpeedDialButtonTheme)?.base, className) })}>
20
20
  {@render children?.()}
21
21
  <span class={spanClass}>{name}</span>
22
22
  </Button>
@@ -29,7 +29,7 @@
29
29
  @component
30
30
  [Go to docs](https://flowbite-svelte.com/)
31
31
  ## Type
32
- [SpeedDialButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1501)
32
+ [SpeedDialButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1487)
33
33
  ## Props
34
34
  @prop children
35
35
  @prop name = ""