flowbite-svelte 1.4.3 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (400) hide show
  1. package/dist/accordion/Accordion.svelte +2 -3
  2. package/dist/accordion/Accordion.svelte.d.ts +1 -1
  3. package/dist/accordion/AccordionItem.svelte +2 -5
  4. package/dist/accordion/AccordionItem.svelte.d.ts +1 -1
  5. package/dist/accordion/index.d.ts +3 -4
  6. package/dist/accordion/index.js +3 -4
  7. package/dist/alert/Alert.svelte +12 -15
  8. package/dist/alert/Alert.svelte.d.ts +2 -2
  9. package/dist/alert/index.d.ts +2 -3
  10. package/dist/alert/index.js +2 -3
  11. package/dist/avatar/Avatar.svelte +11 -11
  12. package/dist/avatar/Avatar.svelte.d.ts +2 -2
  13. package/dist/avatar/index.d.ts +2 -3
  14. package/dist/avatar/index.js +2 -3
  15. package/dist/badge/Badge.svelte +5 -8
  16. package/dist/badge/Badge.svelte.d.ts +2 -2
  17. package/dist/badge/index.d.ts +2 -3
  18. package/dist/badge/index.js +2 -3
  19. package/dist/banner/Banner.svelte +8 -9
  20. package/dist/banner/Banner.svelte.d.ts +3 -2
  21. package/dist/banner/index.d.ts +2 -3
  22. package/dist/banner/index.js +2 -3
  23. package/dist/bottom-navigation/BottomNav.svelte +7 -10
  24. package/dist/bottom-navigation/BottomNav.svelte.d.ts +2 -2
  25. package/dist/bottom-navigation/BottomNavHeader.svelte +4 -4
  26. package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +2 -2
  27. package/dist/bottom-navigation/BottomNavHeaderItem.svelte +4 -5
  28. package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +2 -2
  29. package/dist/bottom-navigation/BottomNavItem.svelte +6 -7
  30. package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +2 -2
  31. package/dist/bottom-navigation/index.d.ts +5 -6
  32. package/dist/bottom-navigation/index.js +5 -6
  33. package/dist/breadcrumb/Breadcrumb.svelte +5 -6
  34. package/dist/breadcrumb/Breadcrumb.svelte.d.ts +2 -2
  35. package/dist/breadcrumb/BreadcrumbItem.svelte +12 -13
  36. package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +2 -2
  37. package/dist/breadcrumb/index.d.ts +3 -4
  38. package/dist/breadcrumb/index.js +3 -4
  39. package/dist/button-group/ButtonGroup.svelte +3 -3
  40. package/dist/button-group/ButtonGroup.svelte.d.ts +2 -2
  41. package/dist/button-group/index.d.ts +2 -3
  42. package/dist/button-group/index.js +2 -3
  43. package/dist/buttons/Button.svelte +7 -11
  44. package/dist/buttons/Button.svelte.d.ts +3 -4
  45. package/dist/buttons/GradientButton.svelte +7 -9
  46. package/dist/buttons/GradientButton.svelte.d.ts +3 -2
  47. package/dist/buttons/index.d.ts +3 -4
  48. package/dist/buttons/index.js +3 -4
  49. package/dist/card/Card.svelte +11 -27
  50. package/dist/card/Card.svelte.d.ts +2 -3
  51. package/dist/card/index.d.ts +2 -3
  52. package/dist/card/index.js +2 -3
  53. package/dist/card/theme.d.ts +2 -0
  54. package/dist/carousel/Carousel.svelte +6 -11
  55. package/dist/carousel/Carousel.svelte.d.ts +2 -2
  56. package/dist/carousel/ControlButton.svelte +6 -6
  57. package/dist/carousel/ControlButton.svelte.d.ts +3 -2
  58. package/dist/carousel/Controls.svelte +5 -6
  59. package/dist/carousel/Controls.svelte.d.ts +2 -2
  60. package/dist/carousel/Indicators.svelte +5 -6
  61. package/dist/carousel/Indicators.svelte.d.ts +1 -1
  62. package/dist/carousel/Slide.svelte +3 -4
  63. package/dist/carousel/Slide.svelte.d.ts +2 -2
  64. package/dist/carousel/Thumbnail.svelte +3 -3
  65. package/dist/carousel/Thumbnail.svelte.d.ts +2 -2
  66. package/dist/carousel/Thumbnails.svelte +8 -9
  67. package/dist/carousel/Thumbnails.svelte.d.ts +3 -3
  68. package/dist/carousel/index.d.ts +8 -7
  69. package/dist/carousel/index.js +8 -7
  70. package/dist/chart/Chart.svelte +3 -3
  71. package/dist/chart/Chart.svelte.d.ts +2 -2
  72. package/dist/chart/index.d.ts +1 -2
  73. package/dist/chart/index.js +1 -2
  74. package/dist/clipboard/Clipboard.svelte +55 -0
  75. package/dist/clipboard/Clipboard.svelte.d.ts +17 -0
  76. package/dist/clipboard/index.d.ts +2 -0
  77. package/dist/clipboard/index.js +2 -0
  78. package/dist/clipboard/theme.d.ts +18 -0
  79. package/dist/clipboard/theme.js +13 -0
  80. package/dist/darkmode/DarkMode.svelte +4 -5
  81. package/dist/darkmode/DarkMode.svelte.d.ts +2 -2
  82. package/dist/darkmode/index.d.ts +2 -3
  83. package/dist/darkmode/index.js +2 -3
  84. package/dist/datepicker/Datepicker.svelte +8 -6
  85. package/dist/datepicker/Datepicker.svelte.d.ts +3 -1
  86. package/dist/datepicker/index.d.ts +2 -3
  87. package/dist/datepicker/index.js +2 -3
  88. package/dist/device-mockups/Android.svelte +9 -9
  89. package/dist/device-mockups/Android.svelte.d.ts +2 -2
  90. package/dist/device-mockups/DefaultMockup.svelte +8 -8
  91. package/dist/device-mockups/DefaultMockup.svelte.d.ts +2 -2
  92. package/dist/device-mockups/Desktop.svelte +6 -6
  93. package/dist/device-mockups/Desktop.svelte.d.ts +2 -2
  94. package/dist/device-mockups/DeviceMockup.svelte +1 -1
  95. package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
  96. package/dist/device-mockups/Ios.svelte +8 -8
  97. package/dist/device-mockups/Ios.svelte.d.ts +2 -2
  98. package/dist/device-mockups/Laptop.svelte +6 -6
  99. package/dist/device-mockups/Laptop.svelte.d.ts +2 -2
  100. package/dist/device-mockups/Smartwatch.svelte +8 -8
  101. package/dist/device-mockups/Smartwatch.svelte.d.ts +2 -2
  102. package/dist/device-mockups/Tablet.svelte +8 -8
  103. package/dist/device-mockups/Tablet.svelte.d.ts +2 -2
  104. package/dist/device-mockups/index.d.ts +9 -10
  105. package/dist/device-mockups/index.js +9 -10
  106. package/dist/device-mockups/theme.d.ts +30 -30
  107. package/dist/drawer/Drawer.svelte +4 -5
  108. package/dist/drawer/Drawer.svelte.d.ts +1 -1
  109. package/dist/drawer/Drawerhead.svelte +5 -6
  110. package/dist/drawer/Drawerhead.svelte.d.ts +2 -2
  111. package/dist/drawer/index.d.ts +3 -4
  112. package/dist/drawer/index.js +3 -4
  113. package/dist/dropdown/Dropdown.svelte +4 -8
  114. package/dist/dropdown/Dropdown.svelte.d.ts +2 -3
  115. package/dist/dropdown/DropdownDivider.svelte +6 -8
  116. package/dist/dropdown/DropdownDivider.svelte.d.ts +3 -3
  117. package/dist/dropdown/DropdownGroup.svelte +3 -6
  118. package/dist/dropdown/DropdownGroup.svelte.d.ts +2 -2
  119. package/dist/dropdown/DropdownHeader.svelte +3 -5
  120. package/dist/dropdown/DropdownHeader.svelte.d.ts +2 -2
  121. package/dist/dropdown/DropdownItem.svelte +13 -15
  122. package/dist/dropdown/DropdownItem.svelte.d.ts +2 -3
  123. package/dist/dropdown/index.d.ts +6 -7
  124. package/dist/dropdown/index.js +6 -7
  125. package/dist/footer/Footer.svelte +4 -4
  126. package/dist/footer/Footer.svelte.d.ts +2 -2
  127. package/dist/footer/FooterBrand.svelte +6 -6
  128. package/dist/footer/FooterBrand.svelte.d.ts +2 -2
  129. package/dist/footer/FooterCopyright.svelte +8 -7
  130. package/dist/footer/FooterCopyright.svelte.d.ts +3 -2
  131. package/dist/footer/FooterIcon.svelte +5 -7
  132. package/dist/footer/FooterIcon.svelte.d.ts +3 -3
  133. package/dist/footer/FooterLink.svelte +5 -5
  134. package/dist/footer/FooterLink.svelte.d.ts +2 -2
  135. package/dist/footer/FooterLinkGroup.svelte +5 -6
  136. package/dist/footer/FooterLinkGroup.svelte.d.ts +3 -3
  137. package/dist/footer/index.d.ts +7 -8
  138. package/dist/footer/index.js +7 -8
  139. package/dist/forms/button-toggle/ButtonToggle.svelte +9 -9
  140. package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +2 -1
  141. package/dist/forms/button-toggle/ButtonToggleGroup.svelte +4 -5
  142. package/dist/forms/button-toggle/CheckIcon.svelte +13 -2
  143. package/dist/forms/button-toggle/CheckIcon.svelte.d.ts +10 -3
  144. package/dist/forms/button-toggle/theme.d.ts +2 -2
  145. package/dist/forms/button-toggle/theme.js +1 -1
  146. package/dist/forms/checkbox/Checkbox.svelte +5 -7
  147. package/dist/forms/checkbox/CheckboxButton.svelte +3 -4
  148. package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +2 -2
  149. package/dist/forms/checkbox/theme.d.ts +2 -0
  150. package/dist/forms/dropzone/Dropzone.svelte +3 -5
  151. package/dist/forms/dropzone/Dropzone.svelte.d.ts +2 -2
  152. package/dist/forms/fileupload/Fileupload.svelte +7 -7
  153. package/dist/forms/fileupload/Fileupload.svelte.d.ts +2 -1
  154. package/dist/forms/floating-label/FloatingLabelInput.svelte +9 -10
  155. package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +2 -2
  156. package/dist/forms/helper/Helper.svelte +3 -4
  157. package/dist/forms/helper/Helper.svelte.d.ts +2 -2
  158. package/dist/forms/input-addon/InputAddon.svelte +3 -5
  159. package/dist/forms/input-addon/InputAddon.svelte.d.ts +2 -2
  160. package/dist/forms/input-addon/index.d.ts +1 -2
  161. package/dist/forms/input-addon/index.js +1 -2
  162. package/dist/forms/input-field/Input.svelte +11 -13
  163. package/dist/forms/input-field/index.d.ts +3 -4
  164. package/dist/forms/input-field/index.js +3 -4
  165. package/dist/forms/label/Label.svelte +3 -4
  166. package/dist/forms/label/Label.svelte.d.ts +2 -2
  167. package/dist/forms/label/index.d.ts +2 -3
  168. package/dist/forms/label/index.js +2 -3
  169. package/dist/forms/radio/Radio.svelte +4 -6
  170. package/dist/forms/radio/Radio.svelte.d.ts +1 -1
  171. package/dist/forms/radio/RadioButton.svelte +2 -3
  172. package/dist/forms/range/Range.svelte +5 -6
  173. package/dist/forms/range/Range.svelte.d.ts +3 -3
  174. package/dist/forms/range/index.d.ts +2 -3
  175. package/dist/forms/range/index.js +2 -3
  176. package/dist/forms/search/Search.svelte +6 -7
  177. package/dist/forms/search/Search.svelte.d.ts +2 -2
  178. package/dist/forms/search/index.d.ts +2 -3
  179. package/dist/forms/search/index.js +2 -3
  180. package/dist/forms/select/MultiSelect.svelte +4 -6
  181. package/dist/forms/select/Select.svelte +4 -5
  182. package/dist/forms/tags/Tags.svelte +7 -7
  183. package/dist/forms/tags/Tags.svelte.d.ts +1 -1
  184. package/dist/forms/textarea/Textarea.svelte +12 -12
  185. package/dist/forms/textarea/Textarea.svelte.d.ts +2 -1
  186. package/dist/forms/textarea/index.d.ts +2 -3
  187. package/dist/forms/textarea/index.js +2 -3
  188. package/dist/forms/timepicker/Timepicker.svelte +51 -26
  189. package/dist/forms/timepicker/Timepicker.svelte.d.ts +5 -5
  190. package/dist/forms/timepicker/index.d.ts +1 -2
  191. package/dist/forms/timepicker/index.js +1 -3
  192. package/dist/forms/toggle/Toggle.svelte +5 -7
  193. package/dist/forms/toggle/Toggle.svelte.d.ts +2 -2
  194. package/dist/forms/toggle/index.d.ts +2 -3
  195. package/dist/forms/toggle/index.js +2 -3
  196. package/dist/gallery/Gallery.svelte +4 -5
  197. package/dist/gallery/Gallery.svelte.d.ts +2 -2
  198. package/dist/gallery/index.d.ts +2 -3
  199. package/dist/gallery/index.js +2 -3
  200. package/dist/gallery/theme.d.ts +3 -3
  201. package/dist/index.d.ts +1 -0
  202. package/dist/index.js +1 -0
  203. package/dist/indicator/Indicator.svelte +3 -4
  204. package/dist/indicator/Indicator.svelte.d.ts +2 -2
  205. package/dist/indicator/index.d.ts +2 -3
  206. package/dist/indicator/index.js +2 -3
  207. package/dist/kbd/Kbd.svelte +3 -4
  208. package/dist/kbd/Kbd.svelte.d.ts +2 -2
  209. package/dist/kbd/index.d.ts +2 -3
  210. package/dist/kbd/index.js +2 -3
  211. package/dist/list-group/Listgroup.svelte +6 -8
  212. package/dist/list-group/Listgroup.svelte.d.ts +2 -2
  213. package/dist/list-group/ListgroupItem.svelte +9 -11
  214. package/dist/list-group/ListgroupItem.svelte.d.ts +3 -4
  215. package/dist/list-group/index.d.ts +3 -4
  216. package/dist/list-group/index.js +3 -4
  217. package/dist/list-group/theme.d.ts +4 -4
  218. package/dist/list-group/theme.js +2 -2
  219. package/dist/mega-menu/MegaMenu.svelte +7 -11
  220. package/dist/mega-menu/MegaMenu.svelte.d.ts +3 -2
  221. package/dist/mega-menu/index.d.ts +2 -3
  222. package/dist/mega-menu/index.js +2 -3
  223. package/dist/modal/Modal.svelte +7 -6
  224. package/dist/modal/Modal.svelte.d.ts +1 -1
  225. package/dist/navbar/Menu.svelte +3 -2
  226. package/dist/navbar/Menu.svelte.d.ts +1 -1
  227. package/dist/navbar/NavBrand.svelte +3 -2
  228. package/dist/navbar/NavBrand.svelte.d.ts +1 -1
  229. package/dist/navbar/NavContainer.svelte +3 -2
  230. package/dist/navbar/NavContainer.svelte.d.ts +1 -1
  231. package/dist/navbar/NavHamburger.svelte +4 -3
  232. package/dist/navbar/NavHamburger.svelte.d.ts +10 -3
  233. package/dist/navbar/NavLi.svelte +5 -5
  234. package/dist/navbar/NavLi.svelte.d.ts +1 -2
  235. package/dist/navbar/NavUl.svelte +10 -10
  236. package/dist/navbar/NavUl.svelte.d.ts +1 -1
  237. package/dist/navbar/Navbar.svelte +4 -3
  238. package/dist/navbar/Navbar.svelte.d.ts +1 -1
  239. package/dist/pagination/Pagination.svelte +1 -1
  240. package/dist/pagination/Pagination.svelte.d.ts +1 -1
  241. package/dist/pagination/PaginationButton.svelte +6 -6
  242. package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
  243. package/dist/pagination/PaginationItem.svelte +5 -4
  244. package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
  245. package/dist/pagination/PaginationNav.svelte +9 -7
  246. package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
  247. package/dist/popover/Popover.svelte +4 -3
  248. package/dist/popover/Popover.svelte.d.ts +1 -1
  249. package/dist/progress/Progressbar.svelte +12 -15
  250. package/dist/progress/Progressbar.svelte.d.ts +3 -6
  251. package/dist/progress/Progressradial.svelte +14 -17
  252. package/dist/progress/Progressradial.svelte.d.ts +3 -6
  253. package/dist/progress/theme.d.ts +14 -0
  254. package/dist/rating/AdvancedRating.svelte +8 -6
  255. package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
  256. package/dist/rating/CustomIcon.svelte +3 -2
  257. package/dist/rating/CustomIcon.svelte.d.ts +1 -1
  258. package/dist/rating/Heart.svelte +3 -2
  259. package/dist/rating/Heart.svelte.d.ts +1 -1
  260. package/dist/rating/Rating.svelte +6 -6
  261. package/dist/rating/Rating.svelte.d.ts +2 -2
  262. package/dist/rating/RatingComment.svelte +1 -1
  263. package/dist/rating/RatingComment.svelte.d.ts +1 -1
  264. package/dist/rating/Review.svelte +11 -10
  265. package/dist/rating/Review.svelte.d.ts +1 -1
  266. package/dist/rating/ScoreRating.svelte +1 -1
  267. package/dist/rating/ScoreRating.svelte.d.ts +1 -1
  268. package/dist/rating/Star.svelte +3 -2
  269. package/dist/rating/Star.svelte.d.ts +1 -1
  270. package/dist/rating/Thumbup.svelte +3 -2
  271. package/dist/rating/Thumbup.svelte.d.ts +1 -1
  272. package/dist/rating/theme.d.ts +3 -3
  273. package/dist/sidebar/Sidebar.svelte +9 -8
  274. package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
  275. package/dist/sidebar/SidebarBrand.svelte +5 -4
  276. package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
  277. package/dist/sidebar/SidebarButton.svelte +3 -2
  278. package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
  279. package/dist/sidebar/SidebarCta.svelte +5 -4
  280. package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
  281. package/dist/sidebar/SidebarDropdownWrapper.svelte +9 -8
  282. package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
  283. package/dist/sidebar/SidebarGroup.svelte +3 -2
  284. package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
  285. package/dist/sidebar/SidebarItem.svelte +5 -10
  286. package/dist/sidebar/SidebarItem.svelte.d.ts +2 -2
  287. package/dist/sidebar/theme.d.ts +9 -9
  288. package/dist/skeleton/CardPlaceholder.svelte +3 -2
  289. package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
  290. package/dist/skeleton/ImagePlaceholder.svelte +3 -2
  291. package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
  292. package/dist/skeleton/ListPlaceholder.svelte +3 -2
  293. package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
  294. package/dist/skeleton/Skeleton.svelte +3 -2
  295. package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
  296. package/dist/skeleton/TestimonialPlaceholder.svelte +8 -4
  297. package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +6 -3
  298. package/dist/skeleton/TextPlaceholder.svelte +3 -2
  299. package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
  300. package/dist/skeleton/VideoPlaceholder.svelte +4 -3
  301. package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
  302. package/dist/skeleton/WidgetPlaceholder.svelte +7 -4
  303. package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +5 -3
  304. package/dist/speed-dial/SpeedDial.svelte +5 -4
  305. package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
  306. package/dist/speed-dial/SpeedDialButton.svelte +4 -3
  307. package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
  308. package/dist/speed-dial/SpeedDialTrigger.svelte +3 -2
  309. package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
  310. package/dist/spinner/Spinner.svelte +4 -3
  311. package/dist/spinner/Spinner.svelte.d.ts +1 -1
  312. package/dist/stepindicator/StepIndicator.svelte +5 -3
  313. package/dist/stepindicator/StepIndicator.svelte.d.ts +1 -1
  314. package/dist/table/Table.svelte +4 -3
  315. package/dist/table/Table.svelte.d.ts +1 -1
  316. package/dist/table/TableBody.svelte +3 -2
  317. package/dist/table/TableBody.svelte.d.ts +1 -1
  318. package/dist/table/TableBodyCell.svelte +3 -4
  319. package/dist/table/TableBodyCell.svelte.d.ts +1 -1
  320. package/dist/table/TableBodyRow.svelte +4 -3
  321. package/dist/table/TableBodyRow.svelte.d.ts +1 -1
  322. package/dist/table/TableHead.svelte +4 -3
  323. package/dist/table/TableHead.svelte.d.ts +1 -1
  324. package/dist/table/TableHeadCell.svelte +3 -3
  325. package/dist/table/TableHeadCell.svelte.d.ts +1 -1
  326. package/dist/table/TableSearch.svelte +9 -9
  327. package/dist/table/TableSearch.svelte.d.ts +1 -1
  328. package/dist/tabs/TabItem.svelte +4 -16
  329. package/dist/tabs/TabItem.svelte.d.ts +2 -2
  330. package/dist/tabs/Tabs.svelte +5 -3
  331. package/dist/tabs/Tabs.svelte.d.ts +1 -1
  332. package/dist/theme/Theme.svelte +1 -1
  333. package/dist/theme/Theme.svelte.d.ts +1 -1
  334. package/dist/theme/index.d.ts +77 -61
  335. package/dist/theme/index.js +2 -1
  336. package/dist/timeline/Activity.svelte +1 -1
  337. package/dist/timeline/Activity.svelte.d.ts +1 -1
  338. package/dist/timeline/ActivityItem.svelte +1 -1
  339. package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
  340. package/dist/timeline/Group.svelte +1 -1
  341. package/dist/timeline/Group.svelte.d.ts +1 -1
  342. package/dist/timeline/GroupItem.svelte +1 -1
  343. package/dist/timeline/GroupItem.svelte.d.ts +1 -1
  344. package/dist/timeline/Timeline.svelte +1 -1
  345. package/dist/timeline/Timeline.svelte.d.ts +1 -1
  346. package/dist/timeline/TimelineItem.svelte +1 -1
  347. package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
  348. package/dist/timeline/theme.d.ts +12 -12
  349. package/dist/toast/Toast.svelte +1 -1
  350. package/dist/toast/Toast.svelte.d.ts +1 -1
  351. package/dist/toolbar/Toolbar.svelte +1 -1
  352. package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
  353. package/dist/toolbar/ToolbarButton.svelte +3 -6
  354. package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -2
  355. package/dist/toolbar/ToolbarGroup.svelte +1 -1
  356. package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
  357. package/dist/tooltip/Tooltip.svelte +1 -1
  358. package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
  359. package/dist/types.d.ts +279 -313
  360. package/dist/typography/anchor/A.svelte +1 -1
  361. package/dist/typography/anchor/A.svelte.d.ts +1 -1
  362. package/dist/typography/blockquote/Blockquote.svelte +1 -1
  363. package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
  364. package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
  365. package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
  366. package/dist/typography/heading/Heading.svelte +1 -1
  367. package/dist/typography/heading/Heading.svelte.d.ts +1 -1
  368. package/dist/typography/hr/Hr.svelte +1 -1
  369. package/dist/typography/hr/Hr.svelte.d.ts +1 -1
  370. package/dist/typography/img/EnhancedImg.svelte +1 -1
  371. package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
  372. package/dist/typography/img/Img.svelte +1 -1
  373. package/dist/typography/img/Img.svelte.d.ts +1 -1
  374. package/dist/typography/layout/Layout.svelte +1 -1
  375. package/dist/typography/layout/Layout.svelte.d.ts +1 -1
  376. package/dist/typography/list/Li.svelte +1 -1
  377. package/dist/typography/list/Li.svelte.d.ts +1 -1
  378. package/dist/typography/list/List.svelte +1 -1
  379. package/dist/typography/list/List.svelte.d.ts +1 -1
  380. package/dist/typography/mark/Mark.svelte +1 -1
  381. package/dist/typography/mark/Mark.svelte.d.ts +1 -1
  382. package/dist/typography/paragraph/P.svelte +1 -1
  383. package/dist/typography/paragraph/P.svelte.d.ts +1 -1
  384. package/dist/typography/secondary/Secondary.svelte +1 -1
  385. package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
  386. package/dist/typography/span/Span.svelte +1 -1
  387. package/dist/typography/span/Span.svelte.d.ts +1 -1
  388. package/dist/utils/Arrow.svelte +1 -1
  389. package/dist/utils/Arrow.svelte.d.ts +1 -1
  390. package/dist/utils/CloseButton.svelte +1 -1
  391. package/dist/utils/CloseButton.svelte.d.ts +1 -1
  392. package/dist/utils/Popper.svelte +11 -9
  393. package/dist/utils/Popper.svelte.d.ts +1 -1
  394. package/dist/utils/index.d.ts +1 -0
  395. package/dist/utils/index.js +1 -0
  396. package/dist/video/Video.svelte +1 -1
  397. package/dist/video/Video.svelte.d.ts +1 -1
  398. package/package.json +19 -15
  399. package/dist/kbd/type.d.ts +0 -0
  400. package/dist/kbd/type.js +0 -7
@@ -1,11 +1,11 @@
1
1
  <script lang="ts">
2
- import { cubicOut } from "svelte/easing";
3
- import { twMerge } from "tailwind-merge";
4
- import { Tween } from "svelte/motion";
5
2
  import { progressradial } from "./theme";
6
3
  import type { ProgressradialProps } from "../types";
4
+ import clsx from "clsx";
5
+ import { cubicOut } from "svelte/easing";
6
+ import { Tween } from "svelte/motion";
7
7
 
8
- let { progress = 45, radius = 42, startingPosition = "top", precision = 0, tweenDuration = 400, animate = false, size = "h-24 w-24", thickness = 4, labelInside = false, labelOutside = "", easing = cubicOut, color = "primary", labelInsideClass, outsideSpanClass, outsideProgressClass, labelOutsideDivClass, divClass, ...restProps }: ProgressradialProps = $props();
8
+ let { progress = 45, radius = 42, startingPosition = "top", precision = 0, tweenDuration = 400, animate = false, size = "h-24 w-24", thickness = 4, labelInside = false, labelOutside = "", easing = cubicOut, color = "primary", class: className, classes, ...restProps }: ProgressradialProps = $props();
9
9
 
10
10
  const _progress = new Tween(0, {
11
11
  duration: animate ? tweenDuration : 0,
@@ -35,23 +35,23 @@
35
35
 
36
36
  <div class="flex flex-col items-center">
37
37
  {#if labelOutside}
38
- <div class={outsideDiv({ class: labelOutsideDivClass })}>
39
- <span class={outsideSpan({ class: outsideSpanClass })}>{labelOutside}</span>
40
- <span class={outsideProgress({ class: outsideProgressClass })}>{formattedProgress}%</span>
38
+ <div class={outsideDiv({ class: clsx(classes?.outsideDiv) })}>
39
+ <span class={outsideSpan({ class: clsx(classes?.outsideSpan) })}>{labelOutside}</span>
40
+ <span class={outsideProgress({ class: clsx(classes?.outsideProgress) })}>{formattedProgress}%</span>
41
41
  </div>
42
42
  {/if}
43
43
 
44
- <div {...restProps} class={twMerge(base({ class: divClass }), size)}>
44
+ <div {...restProps} class={base({ class: clsx(size, classes?.base, className) })}>
45
45
  <svg viewBox="0 0 100 100" class="h-full w-full" style="transform: rotate({rotationAngle}deg)">
46
46
  <!-- Background circle -->
47
- <circle cx="50" cy="50" r={radius} class={circleBackground()} fill="none" stroke-width={thickness} />
47
+ <circle cx="50" cy="50" r={radius} class={circleBackground({ class: clsx(classes?.circleBackground) })} fill="none" stroke-width={thickness} />
48
48
 
49
49
  <!-- Foreground circle (progress indicator) -->
50
- <circle cx="50" cy="50" r={radius} class={circleForeground()} fill="none" stroke-width={thickness} stroke-dasharray={circumference} stroke-dashoffset={strokeDashoffset} stroke-linecap="round" />
50
+ <circle cx="50" cy="50" r={radius} class={circleForeground({ class: clsx(classes?.circleForeground) })} fill="none" stroke-width={thickness} stroke-dasharray={circumference} stroke-dashoffset={strokeDashoffset} stroke-linecap="round" />
51
51
  </svg>
52
52
 
53
53
  {#if labelInside}
54
- <div class={labelInsideDiv()}>
54
+ <div class={labelInsideDiv({ class: clsx(classes?.labelInsideDiv) })}>
55
55
  {formattedProgress}%
56
56
  </div>
57
57
  {/if}
@@ -62,7 +62,7 @@
62
62
  @component
63
63
  [Go to docs](https://flowbite-svelte.com/)
64
64
  ## Type
65
- [ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1201)
65
+ [ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1171)
66
66
  ## Props
67
67
  @prop progress = 45
68
68
  @prop radius = 42
@@ -76,10 +76,7 @@
76
76
  @prop labelOutside = ""
77
77
  @prop easing = cubicOut
78
78
  @prop color = "primary"
79
- @prop labelInsideClass
80
- @prop outsideSpanClass
81
- @prop outsideProgressClass
82
- @prop labelOutsideDivClass
83
- @prop divClass
79
+ @prop class: className
80
+ @prop classes
84
81
  @prop ...restProps
85
82
  -->
@@ -2,7 +2,7 @@ import type { ProgressradialProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1201)
5
+ * [ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1171)
6
6
  * ## Props
7
7
  * @prop progress = 45
8
8
  * @prop radius = 42
@@ -16,11 +16,8 @@ import type { ProgressradialProps } from "../types";
16
16
  * @prop labelOutside = ""
17
17
  * @prop easing = cubicOut
18
18
  * @prop color = "primary"
19
- * @prop labelInsideClass
20
- * @prop outsideSpanClass
21
- * @prop outsideProgressClass
22
- * @prop labelOutsideDivClass
23
- * @prop divClass
19
+ * @prop class: className
20
+ * @prop classes
24
21
  * @prop ...restProps
25
22
  */
26
23
  declare const Progressradial: import("svelte").Component<ProgressradialProps, {}, "">;
@@ -1,3 +1,11 @@
1
+ import type { ClassValue } from "svelte/elements";
2
+ import { type VariantProps } from "tailwind-variants";
3
+ export type ProgressbarClasses = Partial<{
4
+ [K in keyof (typeof progressbar)["slots"]]: ClassValue;
5
+ }>;
6
+ export type ProgressbarVariants = VariantProps<typeof progressbar> & {
7
+ classes?: ProgressbarClasses;
8
+ };
1
9
  export declare const progressbar: import("tailwind-variants").TVReturnType<{
2
10
  color: {
3
11
  primary: {
@@ -281,6 +289,12 @@ export declare const progressbar: import("tailwind-variants").TVReturnType<{
281
289
  oustsideSpan: string;
282
290
  outsideProgress: string;
283
291
  }, undefined, unknown, unknown, undefined>>;
292
+ export type ProgressradialClasses = Partial<{
293
+ [K in keyof (typeof progressradial)["slots"]]: ClassValue;
294
+ }>;
295
+ export type ProgressradialVariants = VariantProps<typeof progressradial> & {
296
+ classes?: ProgressradialClasses;
297
+ };
284
298
  export declare const progressradial: import("tailwind-variants").TVReturnType<{
285
299
  color: {
286
300
  primary: {
@@ -1,4 +1,6 @@
1
1
  <script lang="ts">
2
+ import { twMerge } from "tailwind-merge";
3
+ import clsx from "clsx";
2
4
  import { advancedrating } from ".";
3
5
  import type { AdvancedRatingProps } from "../types";
4
6
 
@@ -14,12 +16,12 @@
14
16
  {@render globalText()}
15
17
  {/if}
16
18
  {#each ratings as { label, rating }}
17
- <div class={base({ class: divClass })}>
18
- <span class={span({ class: spanClass })}>{label}</span>
19
- <div class={div2({ class: div2Class })}>
20
- <div class={div3({ class: div3Class })} style="width: {rating}%"></div>
19
+ <div class={twMerge(base(), clsx(divClass))}>
20
+ <span class={twMerge(span(), clsx(spanClass))}>{label}</span>
21
+ <div class={twMerge(div2(), clsx(div2Class))}>
22
+ <div class={twMerge(div3(), clsx(div3Class))} style="width: {rating}%"></div>
21
23
  </div>
22
- <span class={span2({ class: span2Class })}>{rating}{unit}</span>
24
+ <span class={twMerge(span2(), clsx(span2Class))}>{rating}{unit}</span>
23
25
  </div>
24
26
  {/each}
25
27
 
@@ -27,7 +29,7 @@
27
29
  @component
28
30
  [Go to docs](https://flowbite-svelte.com/)
29
31
  ## Type
30
- [AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1225)
32
+ [AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1188)
31
33
  ## Props
32
34
  @prop rating
33
35
  @prop globalText
@@ -2,7 +2,7 @@ import type { AdvancedRatingProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1225)
5
+ * [AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1188)
6
6
  * ## Props
7
7
  * @prop rating
8
8
  * @prop globalText
@@ -1,4 +1,5 @@
1
1
  <script lang="ts">
2
+ import clsx from "clsx";
2
3
  import type { RatingIconProps } from "../types";
3
4
 
4
5
  let { fillPercent = 100, fillColor = "#00ff00", strokeColor = "#00ff00", size = 24, ariaLabel = "custom icon", iconIndex = 0, groupId = "custom", role = "img", svgClass, pathd = "M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z", ...restProps }: RatingIconProps = $props();
@@ -6,7 +7,7 @@
6
7
  const uniqueId = `${groupId}-${iconIndex}`;
7
8
  </script>
8
9
 
9
- <svg width={size} height={size} class={svgClass} {...restProps} aria-label={ariaLabel} viewBox="0 0 24 24" {role} stroke-width="1.5">
10
+ <svg width={size} height={size} class={clsx(svgClass)} {...restProps} aria-label={ariaLabel} viewBox="0 0 24 24" {role} stroke-width="1.5">
10
11
  <defs>
11
12
  <linearGradient id={uniqueId} x1="0%" y1="0%" x2="100%" y2="0%">
12
13
  {#if fillPercent !== 100}
@@ -28,7 +29,7 @@
28
29
  @component
29
30
  [Go to docs](https://flowbite-svelte.com/)
30
31
  ## Type
31
- [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1311)
32
+ [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
32
33
  ## Props
33
34
  @prop fillPercent = 100
34
35
  @prop fillColor = "#00ff00"
@@ -2,7 +2,7 @@ import type { RatingIconProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1311)
5
+ * [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
6
6
  * ## Props
7
7
  * @prop fillPercent = 100
8
8
  * @prop fillColor = "#00ff00"
@@ -1,4 +1,5 @@
1
1
  <script lang="ts">
2
+ import clsx from "clsx";
2
3
  import type { RatingIconProps } from "../types";
3
4
 
4
5
  let { fillPercent = 100, fillColor = "#ff0000", strokeColor = "#ff0000", size = 24, ariaLabel = "star", iconIndex = 0, groupId = "star", role = "img", svgClass, ...restProps }: RatingIconProps = $props();
@@ -6,7 +7,7 @@
6
7
  const uniqueId = `${groupId}-${iconIndex}`;
7
8
  </script>
8
9
 
9
- <svg width={size} height={size} class={svgClass} {...restProps} aria-label={ariaLabel} viewBox="0 0 24 24" {role} stroke-width="1.5" stroke="currentColor" fill="none">
10
+ <svg width={size} height={size} class={clsx(svgClass)} {...restProps} aria-label={ariaLabel} viewBox="0 0 24 24" {role} stroke-width="1.5" stroke="currentColor" fill="none">
10
11
  <defs>
11
12
  <linearGradient id={uniqueId}>
12
13
  {#if fillPercent !== 100}
@@ -27,7 +28,7 @@
27
28
  @component
28
29
  [Go to docs](https://flowbite-svelte.com/)
29
30
  ## Type
30
- [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1311)
31
+ [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
31
32
  ## Props
32
33
  @prop fillPercent = 100
33
34
  @prop fillColor = "#ff0000"
@@ -2,7 +2,7 @@ import type { RatingIconProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1311)
5
+ * [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
6
6
  * ## Props
7
7
  * @prop fillPercent = 100
8
8
  * @prop fillColor = "#ff0000"
@@ -1,10 +1,10 @@
1
1
  <script lang="ts">
2
+ import clsx from "clsx";
2
3
  import Star from "./Star.svelte";
3
4
  import { rating as ratingVariants } from ".";
4
5
  import type { RatingProps } from "../types";
5
- import clsx from "clsx";
6
6
 
7
- let { children, text, class: divClass, size = 24, total = 5, rating = 4, icon: Icon = Star, count = false, pClass, ...restProps }: RatingProps = $props();
7
+ let { children, text, class: className, size = 24, total = 5, rating = 4, icon: Icon = Star, count = false, pClass, ...restProps }: RatingProps = $props();
8
8
 
9
9
  const { base, p } = $derived(ratingVariants());
10
10
  const ratingGroupId = crypto.randomUUID();
@@ -14,10 +14,10 @@
14
14
  let grayStars: number = total - (fullStars + Math.ceil(rateDiffence));
15
15
  </script>
16
16
 
17
- <div class={base({ class: clsx(divClass) })} {...restProps}>
17
+ <div {...restProps} class={base({ class: clsx(className) })}>
18
18
  {#if count && children}
19
19
  <Icon fillPercent={100} {size} iconIndex={0} groupId={ratingGroupId} />
20
- <p class={p({ class: pClass })}>{rating}</p>
20
+ <p class={p({ class: clsx(pClass) })}>{rating}</p>
21
21
  {@render children()}
22
22
  {:else}
23
23
  <!-- eslint-disable @typescript-eslint/no-unused-vars-->
@@ -41,11 +41,11 @@
41
41
  @component
42
42
  [Go to docs](https://flowbite-svelte.com/)
43
43
  ## Type
44
- [RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1237)
44
+ [RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1200)
45
45
  ## Props
46
46
  @prop children
47
47
  @prop text
48
- @prop class: divClass
48
+ @prop class: className
49
49
  @prop size = 24
50
50
  @prop total = 5
51
51
  @prop rating = 4
@@ -2,11 +2,11 @@ import type { RatingProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1237)
5
+ * [RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1200)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop text
9
- * @prop class: divClass
9
+ * @prop class: className
10
10
  * @prop size = 24
11
11
  * @prop total = 5
12
12
  * @prop rating = 4
@@ -63,7 +63,7 @@
63
63
  @component
64
64
  [Go to docs](https://flowbite-svelte.com/)
65
65
  ## Type
66
- [RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1248)
66
+ [RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1211)
67
67
  ## Props
68
68
  @prop children
69
69
  @prop evaluation
@@ -2,7 +2,7 @@ import type { RatingCommentProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1248)
5
+ * [RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1211)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop evaluation
@@ -1,5 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { twMerge } from "tailwind-merge";
3
+ import clsx from "clsx";
3
4
  import { review as reviewVariants } from ".";
4
5
  import type { ReviewProps } from "../types";
5
6
 
@@ -9,15 +10,15 @@
9
10
  </script>
10
11
 
11
12
  {#if review}
12
- <article class={article({ class: articleClass })}>
13
+ <article class={twMerge(article(), clsx(articleClass))}>
13
14
  <div>
14
- <div class={div({ class: divClass })}>
15
- <img class={img({ class: imgClass })} src={review.imgSrc} alt={review.imgAlt} />
16
- <div class={div2({ class: div2Class })}>
15
+ <div class={twMerge(div(), clsx(divClass))}>
16
+ <img class={twMerge(img(), clsx(imgClass))} src={review.imgSrc} alt={review.imgAlt} />
17
+ <div class={twMerge(div2(), clsx(div2Class))}>
17
18
  <p>{review.name}</p>
18
19
  {#if review.address}
19
20
  {#if address}
20
- <div class={div3({ class: div3Class })}>
21
+ <div class={twMerge(div3(), clsx(div3Class))}>
21
22
  {@render address()}
22
23
  </div>
23
24
  {/if}
@@ -25,23 +26,23 @@
25
26
  </div>
26
27
  </div>
27
28
  {#if review.item1 || review.item2 || review.item3}
28
- <ul class={ul({ class: ulClass })}>
29
+ <ul class={twMerge(ul(), clsx(ulClass))}>
29
30
  {#if review.item1}
30
- <li class={twMerge(li({ class: liClass }))}>
31
+ <li class={twMerge(twMerge(li(), clsx(liClass)))}>
31
32
  {#if item1}
32
33
  {@render item1()}
33
34
  {/if}
34
35
  </li>
35
36
  {/if}
36
37
  {#if review.item2}
37
- <li class={liClass}>
38
+ <li class={clsx(liClass)}>
38
39
  {#if item2}
39
40
  {@render item2()}
40
41
  {/if}
41
42
  </li>
42
43
  {/if}
43
44
  {#if review.item3}
44
- <li class={twMerge(liClass)}>
45
+ <li class={twMerge(clsx(liClass))}>
45
46
  {#if item3}
46
47
  {@render item3()}
47
48
  {/if}
@@ -78,7 +79,7 @@
78
79
  @component
79
80
  [Go to docs](https://flowbite-svelte.com/)
80
81
  ## Type
81
- [ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1284)
82
+ [ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1247)
82
83
  ## Props
83
84
  @prop children
84
85
  @prop address
@@ -2,7 +2,7 @@ import type { ReviewProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1284)
5
+ * [ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1247)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop address
@@ -65,7 +65,7 @@
65
65
  @component
66
66
  [Go to docs](https://flowbite-svelte.com/)
67
67
  ## Type
68
- [ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1300)
68
+ [ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1263)
69
69
  ## Props
70
70
  @prop ratings
71
71
  @prop ratings2
@@ -2,7 +2,7 @@ import type { ScoreRatingProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1300)
5
+ * [ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1263)
6
6
  * ## Props
7
7
  * @prop ratings
8
8
  * @prop ratings2
@@ -1,4 +1,5 @@
1
1
  <script lang="ts">
2
+ import clsx from "clsx";
2
3
  import type { RatingIconProps } from "../types";
3
4
 
4
5
  let { fillPercent = 100, fillColor = "#F5CA14", strokeColor = "#F5CA14", size = 24, ariaLabel = "star", iconIndex = 0, groupId = "star", role = "img", svgClass, ...restProps }: RatingIconProps = $props();
@@ -6,7 +7,7 @@
6
7
  const uniqueId = `${groupId}-${iconIndex}`;
7
8
  </script>
8
9
 
9
- <svg width={size} height={size} {...restProps} class={svgClass} aria-label={ariaLabel} viewBox="100 100 120 120" {role}>
10
+ <svg width={size} height={size} {...restProps} class={clsx(svgClass)} aria-label={ariaLabel} viewBox="100 100 120 120" {role}>
10
11
  <defs>
11
12
  <linearGradient id={uniqueId}>
12
13
  {#if fillPercent !== 100}
@@ -34,7 +35,7 @@
34
35
  @component
35
36
  [Go to docs](https://flowbite-svelte.com/)
36
37
  ## Type
37
- [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1311)
38
+ [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
38
39
  ## Props
39
40
  @prop fillPercent = 100
40
41
  @prop fillColor = "#F5CA14"
@@ -2,7 +2,7 @@ import type { RatingIconProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1311)
5
+ * [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
6
6
  * ## Props
7
7
  * @prop fillPercent = 100
8
8
  * @prop fillColor = "#F5CA14"
@@ -1,4 +1,5 @@
1
1
  <script lang="ts">
2
+ import clsx from "clsx";
2
3
  import type { RatingIconProps } from "../types";
3
4
 
4
5
  let { fillPercent = 100, fillColor = "#00b500", strokeColor = "#00b500", size = 24, ariaLabel = "thumbup", iconIndex = 0, groupId = "star", role = "img", svgClass, ...restProps }: RatingIconProps = $props();
@@ -6,7 +7,7 @@
6
7
  const uniqueId = `${groupId}-${iconIndex}`;
7
8
  </script>
8
9
 
9
- <svg width={size} height={size} {...restProps} class={svgClass} aria-label={ariaLabel} viewBox="0 0 24 24" {role} stroke-width="1.5" stroke="currentColor" fill="none">
10
+ <svg width={size} height={size} {...restProps} class={clsx(svgClass)} aria-label={ariaLabel} viewBox="0 0 24 24" {role} stroke-width="1.5" stroke="currentColor" fill="none">
10
11
  <defs>
11
12
  <linearGradient id={uniqueId}>
12
13
  {#if fillPercent !== 100}
@@ -27,7 +28,7 @@
27
28
  @component
28
29
  [Go to docs](https://flowbite-svelte.com/)
29
30
  ## Type
30
- [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1311)
31
+ [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
31
32
  ## Props
32
33
  @prop fillPercent = 100
33
34
  @prop fillColor = "#00b500"
@@ -2,7 +2,7 @@ import type { RatingIconProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1311)
5
+ * [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
6
6
  * ## Props
7
7
  * @prop fillPercent = 100
8
8
  * @prop fillColor = "#00b500"
@@ -83,10 +83,10 @@ export declare const review: import("tailwind-variants").TVReturnType<{
83
83
  [key: string]: import("tailwind-variants").ClassValue | {
84
84
  div?: import("tailwind-variants").ClassValue;
85
85
  img?: import("tailwind-variants").ClassValue;
86
- article?: import("tailwind-variants").ClassValue;
87
86
  ul?: import("tailwind-variants").ClassValue;
88
87
  div2?: import("tailwind-variants").ClassValue;
89
88
  div3?: import("tailwind-variants").ClassValue;
89
+ article?: import("tailwind-variants").ClassValue;
90
90
  li?: import("tailwind-variants").ClassValue;
91
91
  };
92
92
  };
@@ -95,10 +95,10 @@ export declare const review: import("tailwind-variants").TVReturnType<{
95
95
  [x: string]: import("tailwind-variants").ClassValue | {
96
96
  div?: import("tailwind-variants").ClassValue;
97
97
  img?: import("tailwind-variants").ClassValue;
98
- article?: import("tailwind-variants").ClassValue;
99
98
  ul?: import("tailwind-variants").ClassValue;
100
99
  div2?: import("tailwind-variants").ClassValue;
101
100
  div3?: import("tailwind-variants").ClassValue;
101
+ article?: import("tailwind-variants").ClassValue;
102
102
  li?: import("tailwind-variants").ClassValue;
103
103
  };
104
104
  };
@@ -115,10 +115,10 @@ export declare const review: import("tailwind-variants").TVReturnType<{
115
115
  [key: string]: import("tailwind-variants").ClassValue | {
116
116
  div?: import("tailwind-variants").ClassValue;
117
117
  img?: import("tailwind-variants").ClassValue;
118
- article?: import("tailwind-variants").ClassValue;
119
118
  ul?: import("tailwind-variants").ClassValue;
120
119
  div2?: import("tailwind-variants").ClassValue;
121
120
  div3?: import("tailwind-variants").ClassValue;
121
+ article?: import("tailwind-variants").ClassValue;
122
122
  li?: import("tailwind-variants").ClassValue;
123
123
  };
124
124
  };
@@ -4,8 +4,9 @@
4
4
  import { writable } from "svelte/store";
5
5
  import { sineIn } from "svelte/easing";
6
6
  import { sidebar } from ".";
7
- import clsx from "clsx";
8
7
  import { trapFocus, type SidebarProps, type SidebarCtxType } from "..";
8
+ import { twMerge } from "tailwind-merge";
9
+ import clsx from "clsx";
9
10
 
10
11
  let { children, isOpen = false, closeSidebar, isSingle = true, breakpoint = "md", alwaysOpen = false, position = "fixed", activateClickOutside = true, backdrop = true, backdropClass, transition = fly, params, divClass, ariaLabel, nonActiveClass, activeClass, activeUrl = "", class: className, ...restProps }: SidebarProps = $props();
11
12
 
@@ -34,10 +35,10 @@
34
35
  return closeSidebar;
35
36
  },
36
37
  get activeClass() {
37
- return active({ class: activeClass });
38
+ return twMerge(active(), clsx(activeClass));
38
39
  },
39
40
  get nonActiveClass() {
40
- return nonactive({ class: nonActiveClass });
41
+ return twMerge(nonactive(), clsx(nonActiveClass));
41
42
  },
42
43
  isSingle
43
44
  };
@@ -57,17 +58,17 @@
57
58
  {#if isOpen || isLargeScreen}
58
59
  {#if isOpen && !alwaysOpen}
59
60
  {#if backdrop && activateClickOutside}
60
- <div role="presentation" class={backdropCls({ class: backdropClass })} onclick={closeSidebar}></div>
61
+ <div role="presentation" class={twMerge(backdropCls(), clsx(backdropClass))} onclick={closeSidebar}></div>
61
62
  {:else if backdrop && !activateClickOutside}
62
- <div role="presentation" class={backdropCls({ class: backdropClass })}></div>
63
+ <div role="presentation" class={twMerge(backdropCls(), clsx(backdropClass))}></div>
63
64
  {:else if !backdrop && activateClickOutside}
64
65
  <div role="presentation" class="fixed start-0 top-0 z-50 h-full w-full" onclick={closeSidebar}></div>
65
66
  {:else if !backdrop && !activateClickOutside}
66
67
  <div role="presentation" class="fixed start-0 top-0 z-50 h-full w-full"></div>
67
68
  {/if}
68
69
  {/if}
69
- <aside use:trapFocus={!isLargeScreen && isOpen && !alwaysOpen ? { onEscape: closeSidebar ? handleEscape : undefined } : null} transition:transition={!alwaysOpen ? transitionParams : undefined} {...restProps} class={base({ class: clsx(className) })} aria-label={ariaLabel}>
70
- <div class={div({ class: divClass })}>
70
+ <aside use:trapFocus={!isLargeScreen && isOpen && !alwaysOpen ? { onEscape: closeSidebar ? handleEscape : undefined } : null} transition:transition={!alwaysOpen ? transitionParams : undefined} {...restProps} class={twMerge(base(), clsx(clsx(className)))} aria-label={ariaLabel}>
71
+ <div class={twMerge(div(), clsx(divClass))}>
71
72
  {@render children()}
72
73
  </div>
73
74
  </aside>
@@ -77,7 +78,7 @@
77
78
  @component
78
79
  [Go to docs](https://flowbite-svelte.com/)
79
80
  ## Type
80
- [SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1334)
81
+ [SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1297)
81
82
  ## Props
82
83
  @prop children
83
84
  @prop isOpen = false
@@ -2,7 +2,7 @@ import { type SidebarProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1334)
5
+ * [SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1297)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop isOpen = false
@@ -1,4 +1,5 @@
1
1
  <script lang="ts">
2
+ import { twMerge } from "tailwind-merge";
2
3
  import clsx from "clsx";
3
4
  import { sitebarbrand } from ".";
4
5
  import type { SidebarBrandProps } from "../types";
@@ -8,10 +9,10 @@
8
9
  const { base, img, span } = $derived(sitebarbrand());
9
10
  </script>
10
11
 
11
- <a {...restProps} href={site?.href ? site.href : "/"} class={base({ class: clsx(className) })}>
12
+ <a {...restProps} href={site?.href ? site.href : "/"} class={twMerge(base(), clsx(className))}>
12
13
  {#if site}
13
- <img src={site.img} class={img({ class: imgClass })} alt={site.name} />
14
- <span class={span({ class: spanClass })}>{site.name}</span>
14
+ <img src={site.img} class={twMerge(img(), clsx(imgClass))} alt={site.name} />
15
+ <span class={twMerge(span(), clsx(spanClass))}>{site.name}</span>
15
16
  {:else if children}
16
17
  {@render children()}
17
18
  {/if}
@@ -21,7 +22,7 @@
21
22
  @component
22
23
  [Go to docs](https://flowbite-svelte.com/)
23
24
  ## Type
24
- [SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1369)
25
+ [SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1332)
25
26
  ## Props
26
27
  @prop children
27
28
  @prop site
@@ -2,7 +2,7 @@ import type { SidebarBrandProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1369)
5
+ * [SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1332)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop site
@@ -1,10 +1,11 @@
1
1
  <script lang="ts">
2
+ import { twMerge } from "tailwind-merge";
2
3
  import clsx from "clsx";
3
4
  import { sidebarbutton } from ".";
4
5
  import type { SidebarButtonProps } from "../types";
5
6
  let { breakpoint = "md", class: className, ...restProps }: SidebarButtonProps = $props();
6
7
 
7
- const base = $derived(sidebarbutton({ breakpoint, class: clsx(className) }));
8
+ const base = $derived(twMerge(sidebarbutton({ breakpoint }), clsx(className)));
8
9
  </script>
9
10
 
10
11
  <button {...restProps} type="button" class={base}>
@@ -18,7 +19,7 @@
18
19
  @component
19
20
  [Go to docs](https://flowbite-svelte.com/)
20
21
  ## Type
21
- [SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1352)
22
+ [SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1315)
22
23
  ## Props
23
24
  @prop breakpoint = "md"
24
25
  @prop class: className