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
@@ -1,16 +1,17 @@
1
1
  <script lang="ts">
2
2
  import { footer } from ".";
3
- import { type FooterProps, cn } from "..";
3
+ import clsx from "clsx";
4
+ import { type FooterProps } from "..";
4
5
  import { getTheme } from "../theme/themeUtils";
5
6
 
6
7
  let { children, footerType = "default", class: className, ...restProps }: FooterProps = $props();
7
8
 
8
9
  const theme = getTheme("footer");
9
10
 
10
- const footerCls = $derived(footer({ footerType }));
11
+ const footerCls = $derived(footer({ footerType, class: clsx(theme, className) }));
11
12
  </script>
12
13
 
13
- <footer {...restProps} class={cn(footerCls, className, theme)}>
14
+ <footer {...restProps} class={footerCls}>
14
15
  {@render children()}
15
16
  </footer>
16
17
 
@@ -18,7 +19,7 @@
18
19
  @component
19
20
  [Go to docs](https://flowbite-svelte.com/)
20
21
  ## Type
21
- [FooterProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L626)
22
+ [FooterProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L609)
22
23
  ## Props
23
24
  @prop children
24
25
  @prop footerType = "default"
@@ -2,7 +2,7 @@ import { type FooterProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [FooterProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L626)
5
+ * [FooterProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L609)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop footerType = "default"
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { footerBrand, type FooterBrandTheme } from ".";
3
- import { type FooterBrandProps, cn } from "..";
3
+ import clsx from "clsx";
4
+ import { type FooterBrandProps } from "..";
4
5
  import { getTheme } from "../theme/themeUtils";
5
6
 
6
7
  let { children, aClass, spanClass, imgClass, href, src, alt, name, ...restProps }: FooterBrandProps = $props();
@@ -11,26 +12,26 @@
11
12
  </script>
12
13
 
13
14
  {#if href}
14
- <a {...restProps} {href} class={cn(base(), aClass, (theme as FooterBrandTheme)?.base)}>
15
+ <a {...restProps} {href} class={base({ class: clsx((theme as FooterBrandTheme)?.base, aClass) })}>
15
16
  {#if src}
16
- <img {src} class={cn(img(), imgClass, (theme as FooterBrandTheme)?.img)} {alt} />
17
+ <img {src} class={img({ class: clsx((theme as FooterBrandTheme)?.img, imgClass) })} {alt} />
17
18
  {/if}
18
19
  {#if name}
19
- <span class={cn(span(), spanClass, (theme as FooterBrandTheme)?.span)}>{name}</span>
20
+ <span class={span({ class: clsx((theme as FooterBrandTheme)?.span, spanClass) })}>{name}</span>
20
21
  {/if}
21
22
  {#if children}
22
23
  {@render children()}
23
24
  {/if}
24
25
  </a>
25
26
  {:else}
26
- <img {src} class={cn(img(), imgClass)} {alt} />
27
+ <img {src} class={img({ class: clsx(imgClass) })} {alt} />
27
28
  {/if}
28
29
 
29
30
  <!--
30
31
  @component
31
32
  [Go to docs](https://flowbite-svelte.com/)
32
33
  ## Type
33
- [FooterBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L631)
34
+ [FooterBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L614)
34
35
  ## Props
35
36
  @prop children
36
37
  @prop aClass
@@ -2,7 +2,7 @@ import { type FooterBrandProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [FooterBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L631)
5
+ * [FooterBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L614)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop aClass
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { footerCopyright, type FooterCopyrightTheme } from ".";
3
- import { type FooterCopyrightProps, cn } from "..";
3
+ import clsx from "clsx";
4
+ import { type FooterCopyrightProps } from "..";
4
5
  import { getTheme } from "../theme/themeUtils";
5
6
 
6
7
  let { spanClass, aClass, href, by, copyrightMessage = "All Rights Reserved.", year, bySpanClass, ...restProps }: FooterCopyrightProps = $props();
@@ -12,14 +13,14 @@
12
13
  const { base, link, bySpan } = footerCopyright();
13
14
  </script>
14
15
 
15
- <span class={cn(base(), spanClass, (theme as FooterCopyrightTheme)?.base)}>
16
+ <span class={base({ class: clsx((theme as FooterCopyrightTheme)?.base, spanClass) })}>
16
17
  &copy; {year}
17
18
  {#if href}
18
- <a {...restProps} {href} class={cn(link(), aClass, (theme as FooterCopyrightTheme)?.link)}>
19
+ <a {...restProps} {href} class={link({ class: clsx((theme as FooterCopyrightTheme)?.link, aClass) })}>
19
20
  {by}
20
21
  </a>
21
22
  {:else}
22
- <span class={cn(bySpan(), bySpanClass, (theme as FooterCopyrightTheme)?.bySpan)}>{by}</span>
23
+ <span class={bySpan({ class: clsx((theme as FooterCopyrightTheme)?.bySpan, bySpanClass) })}>{by}</span>
23
24
  {/if}
24
25
  {copyrightMessage}
25
26
  </span>
@@ -28,7 +29,7 @@
28
29
  @component
29
30
  [Go to docs](https://flowbite-svelte.com/)
30
31
  ## Type
31
- [FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L642)
32
+ [FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L625)
32
33
  ## Props
33
34
  @prop spanClass
34
35
  @prop aClass
@@ -2,7 +2,7 @@ import { type FooterCopyrightProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L642)
5
+ * [FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L625)
6
6
  * ## Props
7
7
  * @prop spanClass
8
8
  * @prop aClass
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { footerIcon } from ".";
3
- import { type FooterIconProps, cn } from "..";
3
+ import clsx from "clsx";
4
+ import { type FooterIconProps } from "..";
4
5
  import { getTheme } from "../theme/themeUtils";
5
6
 
6
7
  let { children, href, ariaLabel, class: className, ...restProps }: FooterIconProps = $props();
@@ -9,7 +10,7 @@
9
10
  </script>
10
11
 
11
12
  {#if href}
12
- <a {...restProps} {href} aria-label={ariaLabel} class={cn(footerIcon(), className, theme)}>
13
+ <a {...restProps} {href} aria-label={ariaLabel} class={footerIcon({ class: clsx(theme, className) })}>
13
14
  {@render children()}
14
15
  </a>
15
16
  {:else}
@@ -20,7 +21,7 @@
20
21
  @component
21
22
  [Go to docs](https://flowbite-svelte.com/)
22
23
  ## Type
23
- [FooterIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L652)
24
+ [FooterIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L635)
24
25
  ## Props
25
26
  @prop children
26
27
  @prop href
@@ -2,7 +2,7 @@ import { type FooterIconProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [FooterIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L652)
5
+ * [FooterIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L635)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop href
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { footerLink, type FooterLinkTheme } from ".";
3
- import { type FooterLinkProps, cn } from "..";
3
+ import clsx from "clsx";
4
+ import { type FooterLinkProps } from "..";
4
5
  import { getTheme } from "../theme/themeUtils";
5
6
 
6
7
  let { children, liClass, aClass, href, ...restProps }: FooterLinkProps = $props();
@@ -10,8 +11,8 @@
10
11
  const { base, link } = footerLink();
11
12
  </script>
12
13
 
13
- <li class={cn(base(), liClass, (theme as FooterLinkTheme)?.base)}>
14
- <a {...restProps} {href} class={cn(link(), aClass, (theme as FooterLinkTheme)?.link)}>
14
+ <li class={base({ class: clsx((theme as FooterLinkTheme)?.base, liClass) })}>
15
+ <a {...restProps} {href} class={link({ class: clsx((theme as FooterLinkTheme)?.link, aClass) })}>
15
16
  {@render children()}
16
17
  </a>
17
18
  </li>
@@ -20,7 +21,7 @@
20
21
  @component
21
22
  [Go to docs](https://flowbite-svelte.com/)
22
23
  ## Type
23
- [FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L662)
24
+ [FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L645)
24
25
  ## Props
25
26
  @prop children
26
27
  @prop liClass
@@ -2,7 +2,7 @@ import { type FooterLinkProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L662)
5
+ * [FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L645)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop liClass
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { footerLinkGroup } from ".";
3
- import { type FooterLinkGroupProps, cn } from "..";
3
+ import clsx from "clsx";
4
+ import { type FooterLinkGroupProps } from "..";
4
5
  import { getTheme } from "../theme/themeUtils";
5
6
 
6
7
  let { class: className, children, ...restProps }: FooterLinkGroupProps = $props();
@@ -8,7 +9,7 @@
8
9
  const theme = getTheme("footerLinkGroup");
9
10
  </script>
10
11
 
11
- <ul {...restProps} class={cn(footerLinkGroup(), className, theme)}>
12
+ <ul {...restProps} class={footerLinkGroup({ class: clsx(theme, className) })}>
12
13
  {@render children()}
13
14
  </ul>
14
15
 
@@ -16,7 +17,7 @@
16
17
  @component
17
18
  [Go to docs](https://flowbite-svelte.com/)
18
19
  ## Type
19
- [FooterLinkGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L658)
20
+ [FooterLinkGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L641)
20
21
  ## Props
21
22
  @prop class: className
22
23
  @prop children
@@ -2,7 +2,7 @@ import { type FooterLinkGroupProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [FooterLinkGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L658)
5
+ * [FooterLinkGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L641)
6
6
  * ## Props
7
7
  * @prop class: className
8
8
  * @prop children
@@ -1,3 +1,4 @@
1
+ import type { ClassValue } from "svelte/elements";
1
2
  export declare const footer: import("tailwind-variants").TVReturnType<{
2
3
  footerType: {
3
4
  default: string;
@@ -23,7 +24,7 @@ export declare const footer: import("tailwind-variants").TVReturnType<{
23
24
  sticky: string;
24
25
  };
25
26
  }, undefined, "bg-white dark:bg-gray-800", unknown, unknown, undefined>>;
26
- export type FooterTheme = string;
27
+ export type FooterTheme = ClassValue;
27
28
  export declare const footerBrand: import("tailwind-variants").TVReturnType<{
28
29
  [key: string]: {
29
30
  [key: string]: import("tailwind-variants").ClassValue | {
@@ -62,7 +63,7 @@ export declare const footerBrand: import("tailwind-variants").TVReturnType<{
62
63
  img: string;
63
64
  }, undefined, unknown, unknown, undefined>>;
64
65
  export type FooterBrandSlots = keyof typeof footerBrand.slots;
65
- export type FooterBrandTheme = Partial<Record<FooterBrandSlots, string>>;
66
+ export type FooterBrandTheme = Partial<Record<FooterBrandSlots, ClassValue>>;
66
67
  export declare const footerCopyright: import("tailwind-variants").TVReturnType<{
67
68
  [key: string]: {
68
69
  [key: string]: import("tailwind-variants").ClassValue | {
@@ -101,11 +102,11 @@ export declare const footerCopyright: import("tailwind-variants").TVReturnType<{
101
102
  bySpan: string;
102
103
  }, undefined, unknown, unknown, undefined>>;
103
104
  export type FooterCopyrightSlots = keyof typeof footerCopyright.slots;
104
- export type FooterCopyrightTheme = Partial<Record<FooterCopyrightSlots, string>>;
105
+ export type FooterCopyrightTheme = Partial<Record<FooterCopyrightSlots, ClassValue>>;
105
106
  export declare const footerIcon: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-gray-500 hover:text-gray-900 dark:hover:text-white", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "text-gray-500 hover:text-gray-900 dark:hover:text-white", unknown, unknown, undefined>>;
106
- export type FooterIconTheme = string;
107
+ export type FooterIconTheme = ClassValue;
107
108
  export declare const footerLinkGroup: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-gray-600 dark:text-gray-400", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "text-gray-600 dark:text-gray-400", unknown, unknown, undefined>>;
108
- export type FooterLinkGroupTheme = string;
109
+ export type FooterLinkGroupTheme = ClassValue;
109
110
  export declare const footerLink: import("tailwind-variants").TVReturnType<{
110
111
  [key: string]: {
111
112
  [key: string]: import("tailwind-variants").ClassValue | {
@@ -138,4 +139,4 @@ export declare const footerLink: import("tailwind-variants").TVReturnType<{
138
139
  link: string;
139
140
  }, undefined, unknown, unknown, undefined>>;
140
141
  export type FooterLinkSlots = keyof typeof footerLink.slots;
141
- export type FooterLinkTheme = Partial<Record<FooterLinkSlots, string>>;
142
+ export type FooterLinkTheme = Partial<Record<FooterLinkSlots, ClassValue>>;
@@ -3,7 +3,8 @@
3
3
  import CheckIcon from "./CheckIcon.svelte";
4
4
  import { buttonToggle, type ButtonToggleTheme } from ".";
5
5
  import type { ButtonToggleVariants } from "./theme";
6
- import { type ButtonToggleProps, type ButtonToggleContext, cn } from "../..";
6
+ import clsx from "clsx";
7
+ import { type ButtonToggleProps, type ButtonToggleContext } from "../..";
7
8
  import { getTheme } from "../../theme/themeUtils";
8
9
 
9
10
  let { value, selected = false, children, iconSlot, color, class: className, iconClass, txtClass, contentClass, ...restProps }: ButtonToggleProps = $props();
@@ -16,7 +17,7 @@
16
17
  const size = getContext<ButtonToggleVariants["size"]>("buttonToggleSize");
17
18
  const roundedSize = getContext<ButtonToggleVariants["roundedSize"]>("buttonToggleRounded");
18
19
  const ctxIconClass = getContext<string | undefined>("ctxIconClass");
19
- const actualIconClass = ctxIconClass || cn(iconClass);
20
+ const actualIconClass = ctxIconClass || clsx(iconClass);
20
21
  const ctxBtnClass = getContext<string | undefined>("ctxBtnClass");
21
22
 
22
23
  function handleClick() {
@@ -28,16 +29,16 @@
28
29
  });
29
30
  </script>
30
31
 
31
- <button type="button" class={cn(buttonToggle.button({ selected, color: actualColor, size, roundedSize }), ctxBtnClass, className, (theme as ButtonToggleTheme)?.button)} data-selected={selected} onclick={handleClick} role={multiSelect ? "checkbox" : "radio"} aria-checked={selected} {...restProps}>
32
- <div class={cn(buttonToggle.content(), contentClass, (theme as ButtonToggleTheme)?.content)}>
32
+ <button type="button" class={buttonToggle.button({ selected, color: actualColor, size, roundedSize, class: clsx((theme as ButtonToggleTheme)?.button, ctxBtnClass, className) })} data-selected={selected} onclick={handleClick} role={multiSelect ? "checkbox" : "radio"} aria-checked={selected} {...restProps}>
33
+ <div class={buttonToggle.content({ class: clsx((theme as ButtonToggleTheme)?.content, contentClass) })}>
33
34
  {#if selected}
34
35
  {#if iconSlot}
35
36
  {@render iconSlot()}
36
37
  {:else}
37
- <CheckIcon class={cn("absolute left-0 flex-shrink-0 text-green-600", actualIconClass)} />
38
+ <CheckIcon class={clsx("absolute left-0 flex-shrink-0 text-green-600", actualIconClass)} />
38
39
  {/if}
39
40
  {/if}
40
- <span class={cn(buttonToggle.text({ selected }), txtClass, (theme as ButtonToggleTheme)?.text)}>
41
+ <span class={buttonToggle.text({ selected, class: clsx((theme as ButtonToggleTheme)?.text, txtClass) })}>
41
42
  {@render children()}
42
43
  </span>
43
44
  </div>
@@ -47,7 +48,7 @@
47
48
  @component
48
49
  [Go to docs](https://flowbite-svelte.com/)
49
50
  ## Type
50
- [ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L368)
51
+ [ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L351)
51
52
  ## Props
52
53
  @prop value
53
54
  @prop selected = false
@@ -2,7 +2,7 @@ import { type ButtonToggleProps } from "../..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L368)
5
+ * [ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L351)
6
6
  * ## Props
7
7
  * @prop value
8
8
  * @prop selected = false
@@ -1,13 +1,14 @@
1
1
  <script lang="ts">
2
2
  import { setContext } from "svelte";
3
- import { type ButtonToggleGroupProps, buttonToggleGroup, cn } from "../..";
3
+ import clsx from "clsx";
4
+ import { type ButtonToggleGroupProps, buttonToggleGroup } from "../..";
4
5
  import { getTheme } from "../../theme/themeUtils";
5
6
 
6
7
  let { multiSelect = false, name = "toggle-group", value = multiSelect ? [] : null, color, size = "md", roundedSize = "md", onSelect = (val: any) => {}, children, ctxIconClass, ctxBtnClass, class: className, ...restProps }: ButtonToggleGroupProps = $props();
7
8
 
8
9
  const theme = getTheme("buttonToggleGroup");
9
10
 
10
- const base = $derived(buttonToggleGroup({ roundedSize }));
11
+ const base = $derived(buttonToggleGroup({ roundedSize, class: clsx(theme, className) }));
11
12
  type SelectedValue = string | null | string[];
12
13
 
13
14
  let selectedValues = $state<SelectedValue>(multiSelect ? [] : null);
@@ -59,12 +60,12 @@
59
60
  setContext("buttonToggleColor", color);
60
61
  setContext("buttonToggleSize", size);
61
62
  setContext("buttonToggleRounded", roundedSize);
62
- setContext("ctxIconClass", cn(ctxIconClass));
63
- setContext("ctxBtnClass", cn(ctxBtnClass));
63
+ setContext("ctxIconClass", clsx(ctxIconClass));
64
+ setContext("ctxBtnClass", clsx(ctxBtnClass));
64
65
  </script>
65
66
 
66
67
  <div class="inline">
67
- <div class={cn(base, className, theme)} role={multiSelect ? "group" : "radiogroup"} aria-label={name} {...restProps}>
68
+ <div class={base} role={multiSelect ? "group" : "radiogroup"} aria-label={name} {...restProps}>
68
69
  {@render children()}
69
70
  </div>
70
71
  </div>
@@ -1,9 +1,10 @@
1
1
  <script lang="ts">
2
- import { type CheckIconProps, cn } from "../..";
2
+ import { type CheckIconProps } from "../..";
3
+ import clsx from "clsx";
3
4
  let { class: className, ...restProps }: CheckIconProps = $props();
4
5
  </script>
5
6
 
6
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class={cn(className)} {...restProps}>
7
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class={clsx(className)} {...restProps}>
7
8
  <polyline points="20 6 9 17 4 12"></polyline>
8
9
  </svg>
9
10
 
@@ -11,7 +12,7 @@
11
12
  @component
12
13
  [Go to docs](https://flowbite-svelte.com/)
13
14
  ## Type
14
- [CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L384)
15
+ [CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L367)
15
16
  ## Props
16
17
  @prop class: className
17
18
  @prop ...restProps
@@ -2,7 +2,7 @@ import { type CheckIconProps } from "../..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L384)
5
+ * [CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L367)
6
6
  * ## Props
7
7
  * @prop class: className
8
8
  * @prop ...restProps
@@ -1,4 +1,5 @@
1
1
  import { type VariantProps } from "tailwind-variants";
2
+ import type { ClassValue } from "svelte/elements";
2
3
  export declare const buttonToggleGroup: import("tailwind-variants").TVReturnType<{
3
4
  roundedSize: {
4
5
  sm: string;
@@ -24,7 +25,7 @@ export declare const buttonToggleGroup: import("tailwind-variants").TVReturnType
24
25
  full: string;
25
26
  };
26
27
  }, undefined, "inline-flex border border-gray-300 overflow-hidden", unknown, unknown, undefined>>;
27
- export type ButtonToggleGroupTheme = string;
28
+ export type ButtonToggleGroupTheme = ClassValue;
28
29
  export declare const buttonToggle: {
29
30
  button: import("tailwind-variants").TVReturnType<{
30
31
  selected: {
@@ -169,9 +170,9 @@ export declare const buttonToggle: {
169
170
  }, undefined, "transition-all duration-200 ml-0", unknown, unknown, undefined>>;
170
171
  };
171
172
  export type ButtonToggleTheme = {
172
- button?: string;
173
- content?: string;
174
- text?: string;
173
+ button?: ClassValue;
174
+ content?: ClassValue;
175
+ text?: ClassValue;
175
176
  };
176
177
  export type ButtonToggleVariants = VariantProps<typeof buttonToggle.button>;
177
178
  export type ButtonToggleContentVariants = VariantProps<typeof buttonToggle.content>;
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { checkbox, type CheckboxTheme } from ".";
3
- import { type CheckboxProps, type CheckboxItem, Label, cn } from "../..";
3
+ import clsx from "clsx";
4
+ import { type CheckboxProps, type CheckboxItem, Label } from "../..";
4
5
  import { getTheme } from "../../theme/themeUtils";
5
6
 
6
7
  let { children, color = "primary", custom, inline, tinted, rounded, group = $bindable([]), choices = [], checked = $bindable(false), indeterminate, class: className, divClass, disabled = false, value, labelProps = {}, ...restProps }: CheckboxProps = $props();
@@ -23,17 +24,17 @@
23
24
 
24
25
  {#if choices.length > 0}
25
26
  {#each choices as choice, i}
26
- <div class={cn(divStyle(), divClass, (theme as CheckboxTheme)?.div)}>
27
+ <div class={divStyle({ class: clsx((theme as CheckboxTheme)?.div, divClass) })}>
27
28
  <Label show={true} {...labelProps}>
28
- <input type="checkbox" value={choice.value} checked={choice.checked ?? false} {disabled} bind:group {...restProps} class={cn(base(), className, (theme as CheckboxTheme)?.base)} />
29
+ <input type="checkbox" value={choice.value} checked={choice.checked ?? false} {disabled} bind:group {...restProps} class={base({ class: clsx((theme as CheckboxTheme)?.base, className) })} />
29
30
  {renderLabel(choice)}
30
31
  </Label>
31
32
  </div>
32
33
  {/each}
33
34
  {:else}
34
- <div class={cn(divStyle(), divClass, (theme as CheckboxTheme)?.div)}>
35
+ <div class={divStyle({ class: clsx((theme as CheckboxTheme)?.div, divClass) })}>
35
36
  <Label show={true} {...labelProps}>
36
- <input type="checkbox" {value} bind:checked {indeterminate} {disabled} {...restProps} class={cn(base(), className, (theme as CheckboxTheme)?.base)} />
37
+ <input type="checkbox" {value} bind:checked {indeterminate} {disabled} {...restProps} class={base({ class: clsx((theme as CheckboxTheme)?.base, className) })} />
37
38
  {#if children}
38
39
  {@render children({ value, checked, disabled })}
39
40
  {/if}
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import Button from "../../buttons/Button.svelte";
3
- import { type CheckboxButtonProps, cn } from "../..";
3
+ import clsx from "clsx";
4
+ import { type CheckboxButtonProps } from "../..";
4
5
  import { checkboxbutton } from "./theme";
5
6
  import { getTheme } from "../../theme/themeUtils";
6
7
 
@@ -45,7 +46,7 @@
45
46
  }
46
47
  }
47
48
 
48
- let buttonClass: string = $derived(cn(checkboxbutton({ inline, checked }), className, theme));
49
+ let buttonClass: string = $derived(checkboxbutton({ inline, checked, class: clsx(theme, className) }));
49
50
  </script>
50
51
 
51
52
  <Button tag="label" {checked} {pill} {outline} {size} {color} {shadow} class={buttonClass}>
@@ -57,7 +58,7 @@
57
58
  @component
58
59
  [Go to docs](https://flowbite-svelte.com/)
59
60
  ## Type
60
- [CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L700)
61
+ [CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L683)
61
62
  ## Props
62
63
  @prop children
63
64
  @prop class: className
@@ -2,7 +2,7 @@ import { type CheckboxButtonProps } from "../..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L700)
5
+ * [CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L683)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -1,4 +1,5 @@
1
1
  import { type VariantProps } from "tailwind-variants";
2
+ import type { ClassValue } from "svelte/elements";
2
3
  export type CheckboxVariants = VariantProps<typeof checkbox>;
3
4
  export declare const checkbox: import("tailwind-variants").TVReturnType<{
4
5
  color: {
@@ -290,7 +291,7 @@ export declare const checkbox: import("tailwind-variants").TVReturnType<{
290
291
  div: string;
291
292
  }, undefined, unknown, unknown, undefined>>;
292
293
  export type CheckboxSlots = keyof typeof checkbox.slots;
293
- export type CheckboxTheme = Partial<Record<CheckboxSlots, string>>;
294
+ export type CheckboxTheme = Partial<Record<CheckboxSlots, ClassValue>>;
294
295
  export declare const checkboxbutton: import("tailwind-variants").TVReturnType<{
295
296
  inline: {
296
297
  true: string;
@@ -316,4 +317,4 @@ export declare const checkboxbutton: import("tailwind-variants").TVReturnType<{
316
317
  true: string;
317
318
  };
318
319
  }, undefined, "", unknown, unknown, undefined>>;
319
- export type CheckboxButtonTheme = string;
320
+ export type CheckboxButtonTheme = ClassValue;
@@ -1,72 +1,64 @@
1
1
  <script lang="ts">
2
2
  import type { DragEventHandler, ChangeEventHandler } from "svelte/elements";
3
3
  import { dropzone } from ".";
4
- import { type DropzoneProps, cn } from "../..";
4
+ import clsx from "clsx";
5
+ import { type DropzoneProps } from "../..";
5
6
  import { getTheme } from "../../theme/themeUtils";
6
7
 
7
8
  type HTMLInputElementWithFiles = HTMLInputElement & { files: FileList | null };
8
9
 
9
- let { children, files = $bindable<FileList | null>(), class: className, ...restProps }: DropzoneProps = $props();
10
+ let { children, files = $bindable<FileList | null>(), class: className, onDrop, onDragOver, onChange, ...restProps }: DropzoneProps = $props();
10
11
 
11
12
  const theme = getTheme("dropzone");
12
13
 
13
- let input: HTMLInputElement;
14
+ let inputElement: HTMLInputElement;
14
15
 
15
- function keydown(ev: KeyboardEvent) {
16
- if ([" ", "Enter"].includes(ev.key)) {
17
- ev.preventDefault();
18
- input.click();
19
- }
20
- }
21
-
22
- function onClick(event: MouseEvent) {
16
+ const handleDrop: DragEventHandler<HTMLLabelElement> = function (this: Window, event) {
23
17
  event.preventDefault();
24
- input.click();
25
- }
26
18
 
27
- const onDrop: DragEventHandler<HTMLButtonElement> = function (this: Window, event) {
28
- event.preventDefault();
29
-
30
- // When files are dropped, update the files binding
31
19
  if (event.dataTransfer?.files && event.dataTransfer.files.length > 0) {
32
20
  files = event.dataTransfer.files;
21
+ if (inputElement) {
22
+ inputElement.files = event.dataTransfer.files;
23
+ }
33
24
  }
34
25
 
35
- // Then call any custom ondrop handler
36
- if (ondrop) {
37
- ondrop.call(this, event);
26
+ if (onDrop) {
27
+ onDrop.call(this, event);
38
28
  }
39
29
  };
40
30
 
41
- const onDragOver: DragEventHandler<HTMLButtonElement> = function (this: Window, event) {
31
+ const handleDragOver: DragEventHandler<HTMLLabelElement> = function (this: Window, event) {
42
32
  event.preventDefault();
43
- if (ondragover) {
44
- ondragover.call(this, event);
33
+ if (onDragOver) {
34
+ onDragOver.call(this, event);
45
35
  }
46
36
  };
47
37
 
48
- const onChange: ChangeEventHandler<HTMLInputElementWithFiles> = function (this: Window, event) {
49
- if (onchange) {
50
- onchange.call(this, event);
38
+ const handleChange: ChangeEventHandler<HTMLInputElementWithFiles> = function (this: Window, event) {
39
+ if (onChange) {
40
+ onChange.call(this, event);
51
41
  }
52
42
  };
53
43
  </script>
54
44
 
55
- <button class={cn(dropzone(), className, theme)} onkeydown={keydown} onclick={onClick} ondrop={onDrop} ondragover={onDragOver} type="button">
45
+ <label class={dropzone({ class: clsx(theme, className) })} ondrop={handleDrop} ondragover={handleDragOver}>
56
46
  {@render children()}
57
- </button>
58
- <label class="hidden">
59
- <input {...restProps} bind:files bind:this={input} onchange={onChange} type="file" />
47
+
48
+ <input {...restProps} bind:files bind:this={inputElement} onchange={handleChange} type="file" class="hidden" />
60
49
  </label>
61
50
 
62
51
  <!--
63
52
  @component
64
53
  [Go to docs](https://flowbite-svelte.com/)
65
54
  ## Type
66
- [DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L713)
55
+ [DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L696)
67
56
  ## Props
68
57
  @prop children
69
58
  @prop files = $bindable<FileList | null>()
70
59
  @prop class: className
60
+ @prop onDrop
61
+ @prop onDragOver
62
+ @prop onChange
71
63
  @prop ...restProps
72
64
  -->