flowbite-svelte 2.0.0-next.2 → 2.0.0-next.4

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 (488) hide show
  1. package/dist/accordion/Accordion.svelte +8 -4
  2. package/dist/accordion/Accordion.svelte.d.ts +2 -1
  3. package/dist/accordion/AccordionItem.svelte +20 -11
  4. package/dist/accordion/AccordionItem.svelte.d.ts +1 -1
  5. package/dist/accordion/theme.d.ts +4 -4
  6. package/dist/accordion/theme.js +1 -1
  7. package/dist/alert/Alert.svelte +24 -7
  8. package/dist/alert/Alert.svelte.d.ts +2 -2
  9. package/dist/alert/theme.d.ts +6 -66
  10. package/dist/alert/theme.js +6 -27
  11. package/dist/avatar/Avatar.svelte +4 -4
  12. package/dist/avatar/Avatar.svelte.d.ts +1 -1
  13. package/dist/badge/Badge.svelte +27 -9
  14. package/dist/badge/Badge.svelte.d.ts +2 -2
  15. package/dist/badge/theme.d.ts +4 -175
  16. package/dist/badge/theme.js +2 -164
  17. package/dist/banner/Banner.svelte +25 -8
  18. package/dist/banner/Banner.svelte.d.ts +2 -2
  19. package/dist/banner/theme.d.ts +4 -4
  20. package/dist/banner/theme.js +1 -1
  21. package/dist/bottom-navigation/BottomNav.svelte +6 -6
  22. package/dist/bottom-navigation/BottomNav.svelte.d.ts +1 -1
  23. package/dist/bottom-navigation/BottomNavHeader.svelte +5 -5
  24. package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +1 -1
  25. package/dist/bottom-navigation/BottomNavHeaderItem.svelte +3 -3
  26. package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +1 -1
  27. package/dist/bottom-navigation/BottomNavItem.svelte +9 -20
  28. package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +1 -4
  29. package/dist/bottom-navigation/theme.d.ts +10 -10
  30. package/dist/bottom-navigation/theme.js +2 -2
  31. package/dist/breadcrumb/Breadcrumb.svelte +6 -6
  32. package/dist/breadcrumb/Breadcrumb.svelte.d.ts +1 -1
  33. package/dist/breadcrumb/BreadcrumbItem.svelte +17 -8
  34. package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +1 -1
  35. package/dist/breadcrumb/theme.d.ts +7 -7
  36. package/dist/breadcrumb/theme.js +2 -2
  37. package/dist/button-group/ButtonGroup.svelte +3 -3
  38. package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
  39. package/dist/buttons/Button.svelte +5 -5
  40. package/dist/buttons/GradientButton.svelte +2 -2
  41. package/dist/buttons/GradientButton.svelte.d.ts +1 -1
  42. package/dist/buttons/theme.d.ts +21 -288
  43. package/dist/buttons/theme.js +31 -109
  44. package/dist/card/Card.svelte +5 -4
  45. package/dist/card/Card.svelte.d.ts +1 -1
  46. package/dist/card/theme.d.ts +9 -1
  47. package/dist/card/theme.js +8 -0
  48. package/dist/carousel/Carousel.svelte +5 -3
  49. package/dist/carousel/Carousel.svelte.d.ts +1 -1
  50. package/dist/carousel/CarouselIndicators.svelte +5 -5
  51. package/dist/carousel/CarouselIndicators.svelte.d.ts +1 -1
  52. package/dist/carousel/ControlButton.svelte +6 -6
  53. package/dist/carousel/ControlButton.svelte.d.ts +1 -1
  54. package/dist/carousel/Controls.svelte +2 -2
  55. package/dist/carousel/Controls.svelte.d.ts +1 -1
  56. package/dist/carousel/Slide.svelte +10 -6
  57. package/dist/carousel/Slide.svelte.d.ts +1 -1
  58. package/dist/carousel/Thumbnail.svelte +3 -3
  59. package/dist/carousel/Thumbnail.svelte.d.ts +1 -1
  60. package/dist/carousel/Thumbnails.svelte +4 -4
  61. package/dist/carousel/Thumbnails.svelte.d.ts +1 -1
  62. package/dist/carousel/theme.d.ts +50 -1
  63. package/dist/carousel/theme.js +49 -0
  64. package/dist/clipboard/Clipboard.svelte +3 -3
  65. package/dist/clipboard/Clipboard.svelte.d.ts +1 -1
  66. package/dist/context.d.ts +1 -1
  67. package/dist/darkmode/DarkMode.svelte +11 -6
  68. package/dist/darkmode/DarkMode.svelte.d.ts +2 -1
  69. package/dist/darkmode/theme.d.ts +34 -1
  70. package/dist/darkmode/theme.js +4 -1
  71. package/dist/datepicker/Datepicker.svelte +32 -18
  72. package/dist/datepicker/theme.d.ts +16 -256
  73. package/dist/datepicker/theme.js +6 -27
  74. package/dist/device-mockups/Android.svelte +9 -9
  75. package/dist/device-mockups/Android.svelte.d.ts +1 -1
  76. package/dist/device-mockups/DefaultMockup.svelte +8 -8
  77. package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
  78. package/dist/device-mockups/Desktop.svelte +6 -6
  79. package/dist/device-mockups/Desktop.svelte.d.ts +1 -1
  80. package/dist/device-mockups/DeviceMockup.svelte +1 -1
  81. package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
  82. package/dist/device-mockups/Ios.svelte +8 -8
  83. package/dist/device-mockups/Ios.svelte.d.ts +1 -1
  84. package/dist/device-mockups/Laptop.svelte +6 -6
  85. package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
  86. package/dist/device-mockups/Smartwatch.svelte +8 -8
  87. package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
  88. package/dist/device-mockups/Tablet.svelte +8 -8
  89. package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
  90. package/dist/device-mockups/theme.d.ts +1 -1
  91. package/dist/dialog/Dialog.svelte +27 -4
  92. package/dist/dialog/Dialog.svelte.d.ts +2 -1
  93. package/dist/dialog/theme.d.ts +1 -1
  94. package/dist/drawer/Drawer.svelte +10 -3
  95. package/dist/drawer/Drawer.svelte.d.ts +1 -1
  96. package/dist/drawer/DrawerHandle.svelte +4 -4
  97. package/dist/drawer/DrawerHandle.svelte.d.ts +1 -1
  98. package/dist/drawer/Drawerhead.svelte +5 -5
  99. package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
  100. package/dist/drawer/theme.d.ts +1 -1
  101. package/dist/drawer/theme.js +1 -1
  102. package/dist/dropdown/Dropdown.svelte +2 -2
  103. package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
  104. package/dist/dropdown/DropdownDivider.svelte +2 -2
  105. package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
  106. package/dist/dropdown/DropdownGroup.svelte +2 -2
  107. package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
  108. package/dist/dropdown/DropdownHeader.svelte +2 -2
  109. package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
  110. package/dist/dropdown/DropdownItem.svelte +2 -2
  111. package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
  112. package/dist/dropdown/theme.d.ts +1 -1
  113. package/dist/{forms → extend}/button-toggle/ButtonToggle.svelte +2 -2
  114. package/dist/{forms → extend}/button-toggle/ButtonToggle.svelte.d.ts +1 -1
  115. package/dist/{forms → extend}/button-toggle/ButtonToggleGroup.svelte +1 -1
  116. package/dist/{forms → extend}/button-toggle/CheckIcon.svelte +1 -1
  117. package/dist/{forms → extend}/button-toggle/CheckIcon.svelte.d.ts +1 -1
  118. package/dist/{forms → extend}/button-toggle/theme.d.ts +1 -1
  119. package/dist/{clipboard-manager → extend/clipboard-manager}/ClipboardManager.svelte +4 -4
  120. package/dist/{clipboard-manager → extend/clipboard-manager}/ClipboardManager.svelte.d.ts +1 -1
  121. package/dist/{clipboard-manager → extend/clipboard-manager}/theme.d.ts +1 -1
  122. package/dist/{command-palette → extend/command-palette}/CommandPalette.svelte +5 -5
  123. package/dist/{command-palette → extend/command-palette}/CommandPalette.svelte.d.ts +2 -2
  124. package/dist/{command-palette → extend/command-palette}/theme.d.ts +1 -1
  125. package/dist/{kanban → extend/kanban}/KanbanBoard.svelte +2 -2
  126. package/dist/{kanban → extend/kanban}/KanbanBoard.svelte.d.ts +1 -1
  127. package/dist/{kanban → extend/kanban}/KanbanCard.svelte +3 -3
  128. package/dist/{kanban → extend/kanban}/KanbanCard.svelte.d.ts +2 -2
  129. package/dist/{kanban → extend/kanban}/theme.d.ts +1 -1
  130. package/dist/{scroll-spy → extend/scroll-spy}/ScrollSpy.svelte +3 -3
  131. package/dist/{scroll-spy → extend/scroll-spy}/ScrollSpy.svelte.d.ts +2 -2
  132. package/dist/{scroll-spy → extend/scroll-spy}/theme.d.ts +1 -1
  133. package/dist/{split-pane → extend/split-pane}/Divider.svelte +4 -4
  134. package/dist/{split-pane → extend/split-pane}/Divider.svelte.d.ts +2 -2
  135. package/dist/{split-pane → extend/split-pane}/Pane.svelte +4 -4
  136. package/dist/{split-pane → extend/split-pane}/Pane.svelte.d.ts +2 -2
  137. package/dist/{split-pane → extend/split-pane}/SplitPane.svelte +4 -4
  138. package/dist/{split-pane → extend/split-pane}/SplitPane.svelte.d.ts +2 -2
  139. package/dist/{step-indicator → extend/step-indicator}/StepIndicator.svelte +3 -3
  140. package/dist/{step-indicator → extend/step-indicator}/StepIndicator.svelte.d.ts +2 -2
  141. package/dist/{step-indicator → extend/step-indicator}/theme.d.ts +1 -1
  142. package/dist/{forms → extend}/tags/Tags.svelte +14 -4
  143. package/dist/{forms → extend}/tags/Tags.svelte.d.ts +0 -1
  144. package/dist/{forms → extend}/tags/theme.d.ts +1 -1
  145. package/dist/{forms → extend}/tags/theme.js +2 -2
  146. package/dist/{tour → extend/tour}/Tour.svelte +2 -2
  147. package/dist/{tour → extend/tour}/Tour.svelte.d.ts +1 -1
  148. package/dist/{tour → extend/tour}/theme.d.ts +1 -1
  149. package/dist/{virtual-masonry → extend/virtual-masonry}/VirtualMasonry.svelte +2 -2
  150. package/dist/{virtual-masonry → extend/virtual-masonry}/VirtualMasonry.svelte.d.ts +1 -1
  151. package/dist/{virtual-masonry → extend/virtual-masonry}/theme.d.ts +1 -1
  152. package/dist/{virtuallist → extend/virtuallist}/VirtualList.svelte +2 -2
  153. package/dist/{virtuallist → extend/virtuallist}/VirtualList.svelte.d.ts +1 -1
  154. package/dist/{virtuallist → extend/virtuallist}/theme.d.ts +1 -1
  155. package/dist/footer/Footer.svelte +2 -2
  156. package/dist/footer/Footer.svelte.d.ts +1 -1
  157. package/dist/footer/FooterBrand.svelte +2 -2
  158. package/dist/footer/FooterBrand.svelte.d.ts +1 -1
  159. package/dist/footer/FooterCopyright.svelte +2 -2
  160. package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
  161. package/dist/footer/FooterIcon.svelte +2 -2
  162. package/dist/footer/FooterIcon.svelte.d.ts +1 -1
  163. package/dist/footer/FooterLink.svelte +2 -2
  164. package/dist/footer/FooterLink.svelte.d.ts +1 -1
  165. package/dist/footer/FooterLinkGroup.svelte +2 -2
  166. package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
  167. package/dist/footer/theme.d.ts +4 -4
  168. package/dist/forms/checkbox/Checkbox.svelte +1 -1
  169. package/dist/forms/checkbox/CheckboxButton.svelte +2 -2
  170. package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
  171. package/dist/forms/checkbox/theme.d.ts +1 -1
  172. package/dist/forms/dropzone/Dropzone.svelte +2 -2
  173. package/dist/forms/dropzone/Dropzone.svelte.d.ts +1 -1
  174. package/dist/forms/fileupload/Fileupload.svelte +15 -5
  175. package/dist/forms/fileupload/Fileupload.svelte.d.ts +2 -2
  176. package/dist/forms/fileupload/theme.d.ts +1 -1
  177. package/dist/forms/floating-label/FloatingLabelInput.svelte +15 -5
  178. package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +2 -2
  179. package/dist/forms/floating-label/theme.d.ts +1 -1
  180. package/dist/forms/helper/Helper.svelte +2 -2
  181. package/dist/forms/helper/Helper.svelte.d.ts +1 -1
  182. package/dist/forms/helper/theme.d.ts +6 -0
  183. package/dist/forms/helper/theme.js +2 -0
  184. package/dist/forms/input-addon/InputAddon.svelte +2 -2
  185. package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
  186. package/dist/forms/input-addon/theme.d.ts +1 -1
  187. package/dist/forms/input-field/Input.svelte +13 -3
  188. package/dist/forms/input-field/theme.d.ts +1 -1
  189. package/dist/forms/label/Label.svelte +2 -2
  190. package/dist/forms/label/Label.svelte.d.ts +1 -1
  191. package/dist/forms/phoneinput/PhoneInput.svelte +26 -4
  192. package/dist/forms/phoneinput/PhoneInput.svelte.d.ts +17 -1
  193. package/dist/forms/phoneinput/theme.d.ts +1 -1
  194. package/dist/forms/radio/Radio.svelte +1 -1
  195. package/dist/forms/radio/RadioButton.svelte +1 -1
  196. package/dist/forms/radio/theme.d.ts +1 -28
  197. package/dist/forms/radio/theme.js +1 -10
  198. package/dist/forms/range/Range.svelte +3 -3
  199. package/dist/forms/range/Range.svelte.d.ts +1 -1
  200. package/dist/forms/search/Search.svelte +20 -10
  201. package/dist/forms/search/Search.svelte.d.ts +2 -2
  202. package/dist/forms/search/theme.d.ts +1 -1
  203. package/dist/forms/select/MultiSelect.svelte +14 -2
  204. package/dist/forms/select/Select.svelte +14 -3
  205. package/dist/forms/select/theme.d.ts +1 -1
  206. package/dist/forms/textarea/Textarea.svelte +15 -5
  207. package/dist/forms/textarea/Textarea.svelte.d.ts +2 -2
  208. package/dist/forms/textarea/theme.d.ts +1 -1
  209. package/dist/forms/timepicker/Timepicker.svelte +5 -5
  210. package/dist/forms/timepicker/Timepicker.svelte.d.ts +2 -2
  211. package/dist/forms/timepicker/theme.d.ts +1 -1
  212. package/dist/forms/toggle/Toggle.svelte +2 -2
  213. package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
  214. package/dist/forms/toggle/theme.d.ts +1 -1
  215. package/dist/gallery/Gallery.svelte +2 -2
  216. package/dist/gallery/Gallery.svelte.d.ts +1 -1
  217. package/dist/gallery/theme.d.ts +1 -1
  218. package/dist/index.d.ts +14 -13
  219. package/dist/index.js +14 -13
  220. package/dist/indicator/Indicator.svelte +2 -2
  221. package/dist/indicator/Indicator.svelte.d.ts +1 -1
  222. package/dist/kbd/Kbd.svelte +2 -2
  223. package/dist/kbd/Kbd.svelte.d.ts +1 -1
  224. package/dist/list-group/Listgroup.svelte +2 -2
  225. package/dist/list-group/Listgroup.svelte.d.ts +1 -1
  226. package/dist/list-group/ListgroupItem.svelte +2 -2
  227. package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
  228. package/dist/list-group/theme.d.ts +1 -1
  229. package/dist/mega-menu/MegaMenu.svelte +2 -2
  230. package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
  231. package/dist/mega-menu/theme.d.ts +1 -1
  232. package/dist/modal/Modal.svelte +25 -5
  233. package/dist/modal/Modal.svelte.d.ts +2 -1
  234. package/dist/modal/theme.d.ts +1 -1
  235. package/dist/navbar/Menu.svelte +1 -1
  236. package/dist/navbar/Menu.svelte.d.ts +1 -1
  237. package/dist/navbar/NavBrand.svelte +2 -2
  238. package/dist/navbar/NavBrand.svelte.d.ts +1 -1
  239. package/dist/navbar/NavContainer.svelte +2 -2
  240. package/dist/navbar/NavContainer.svelte.d.ts +1 -1
  241. package/dist/navbar/NavHamburger.svelte +2 -2
  242. package/dist/navbar/NavHamburger.svelte.d.ts +2 -2
  243. package/dist/navbar/NavLi.svelte +2 -2
  244. package/dist/navbar/NavLi.svelte.d.ts +1 -1
  245. package/dist/navbar/NavUl.svelte +2 -2
  246. package/dist/navbar/NavUl.svelte.d.ts +1 -1
  247. package/dist/navbar/Navbar.svelte +2 -2
  248. package/dist/navbar/Navbar.svelte.d.ts +1 -1
  249. package/dist/navbar/theme.d.ts +1 -1
  250. package/dist/pagination/Pagination.svelte +2 -2
  251. package/dist/pagination/Pagination.svelte.d.ts +1 -1
  252. package/dist/pagination/PaginationButton.svelte +2 -2
  253. package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
  254. package/dist/pagination/PaginationItem.svelte +2 -2
  255. package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
  256. package/dist/pagination/PaginationNav.svelte +2 -2
  257. package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
  258. package/dist/pagination/theme.d.ts +1 -1
  259. package/dist/popover/Popover.svelte +2 -2
  260. package/dist/popover/Popover.svelte.d.ts +1 -1
  261. package/dist/popover/theme.d.ts +1 -1
  262. package/dist/progress/Progressbar.svelte +2 -2
  263. package/dist/progress/Progressbar.svelte.d.ts +1 -1
  264. package/dist/progress/Progressradial.svelte +2 -2
  265. package/dist/progress/Progressradial.svelte.d.ts +1 -1
  266. package/dist/progress/theme.d.ts +1 -1
  267. package/dist/rating/AdvancedRating.svelte +2 -2
  268. package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
  269. package/dist/rating/CustomIcon.svelte +1 -1
  270. package/dist/rating/CustomIcon.svelte.d.ts +1 -1
  271. package/dist/rating/Heart.svelte +1 -1
  272. package/dist/rating/Heart.svelte.d.ts +1 -1
  273. package/dist/rating/Rating.svelte +2 -2
  274. package/dist/rating/Rating.svelte.d.ts +1 -1
  275. package/dist/rating/RatingComment.svelte +1 -1
  276. package/dist/rating/RatingComment.svelte.d.ts +1 -1
  277. package/dist/rating/Review.svelte +2 -2
  278. package/dist/rating/Review.svelte.d.ts +1 -1
  279. package/dist/rating/ScoreRating.svelte +2 -2
  280. package/dist/rating/ScoreRating.svelte.d.ts +1 -1
  281. package/dist/rating/Star.svelte +1 -1
  282. package/dist/rating/Star.svelte.d.ts +1 -1
  283. package/dist/rating/Thumbup.svelte +1 -1
  284. package/dist/rating/Thumbup.svelte.d.ts +1 -1
  285. package/dist/rating/theme.d.ts +4 -4
  286. package/dist/sidebar/Sidebar.svelte +8 -3
  287. package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
  288. package/dist/sidebar/SidebarBrand.svelte +2 -2
  289. package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
  290. package/dist/sidebar/SidebarButton.svelte +2 -2
  291. package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
  292. package/dist/sidebar/SidebarCta.svelte +2 -2
  293. package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
  294. package/dist/sidebar/SidebarDropdownWrapper.svelte +8 -3
  295. package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
  296. package/dist/sidebar/SidebarGroup.svelte +1 -1
  297. package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
  298. package/dist/sidebar/SidebarItem.svelte +2 -2
  299. package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
  300. package/dist/sidebar/theme.d.ts +4 -4
  301. package/dist/skeleton/CardPlaceholder.svelte +2 -2
  302. package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
  303. package/dist/skeleton/ImagePlaceholder.svelte +2 -2
  304. package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
  305. package/dist/skeleton/ListPlaceholder.svelte +2 -2
  306. package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
  307. package/dist/skeleton/Skeleton.svelte +2 -2
  308. package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
  309. package/dist/skeleton/TestimonialPlaceholder.svelte +2 -2
  310. package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
  311. package/dist/skeleton/TextPlaceholder.svelte +2 -2
  312. package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
  313. package/dist/skeleton/VideoPlaceholder.svelte +2 -2
  314. package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
  315. package/dist/skeleton/WidgetPlaceholder.svelte +2 -2
  316. package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
  317. package/dist/skeleton/theme.d.ts +1 -1
  318. package/dist/speed-dial/SpeedDial.svelte +2 -2
  319. package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
  320. package/dist/speed-dial/SpeedDialButton.svelte +4 -4
  321. package/dist/speed-dial/SpeedDialButton.svelte.d.ts +2 -2
  322. package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
  323. package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
  324. package/dist/speed-dial/theme.d.ts +1 -1
  325. package/dist/spinner/Spinner.svelte +2 -2
  326. package/dist/spinner/Spinner.svelte.d.ts +1 -1
  327. package/dist/stepper/BreadcrumbStepper.svelte +2 -2
  328. package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
  329. package/dist/stepper/DetailedStepper.svelte +2 -2
  330. package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
  331. package/dist/stepper/ProgressStepper.svelte +2 -2
  332. package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
  333. package/dist/stepper/Stepper.svelte +2 -2
  334. package/dist/stepper/Stepper.svelte.d.ts +1 -1
  335. package/dist/stepper/TimelineStepper.svelte +2 -2
  336. package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
  337. package/dist/stepper/VerticalStepper.svelte +2 -2
  338. package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
  339. package/dist/stepper/theme.d.ts +1 -1
  340. package/dist/table/Table.svelte +2 -2
  341. package/dist/table/Table.svelte.d.ts +1 -1
  342. package/dist/table/TableBody.svelte +1 -1
  343. package/dist/table/TableBody.svelte.d.ts +1 -1
  344. package/dist/table/TableBodyCell.svelte +2 -2
  345. package/dist/table/TableBodyCell.svelte.d.ts +1 -1
  346. package/dist/table/TableBodyRow.svelte +2 -2
  347. package/dist/table/TableBodyRow.svelte.d.ts +1 -1
  348. package/dist/table/TableHead.svelte +2 -2
  349. package/dist/table/TableHead.svelte.d.ts +1 -1
  350. package/dist/table/TableHeadCell.svelte +2 -2
  351. package/dist/table/TableHeadCell.svelte.d.ts +1 -1
  352. package/dist/table/TableSearch.svelte +2 -2
  353. package/dist/table/TableSearch.svelte.d.ts +1 -1
  354. package/dist/table/theme.d.ts +1 -1
  355. package/dist/tabs/TabItem.svelte +2 -2
  356. package/dist/tabs/TabItem.svelte.d.ts +1 -1
  357. package/dist/tabs/Tabs.svelte +2 -2
  358. package/dist/tabs/Tabs.svelte.d.ts +1 -1
  359. package/dist/tabs/theme.d.ts +1 -1
  360. package/dist/{theme → theme-provider}/themes.d.ts +12 -11
  361. package/dist/{theme → theme-provider}/themes.js +13 -11
  362. package/dist/theme-selector/ThemeIcon.svelte +9 -0
  363. package/dist/theme-selector/ThemeIcon.svelte.d.ts +26 -0
  364. package/dist/theme-selector/ThemeSelector.svelte +56 -0
  365. package/dist/theme-selector/ThemeSelector.svelte.d.ts +3 -0
  366. package/dist/theme-selector/index.d.ts +4 -0
  367. package/dist/theme-selector/index.js +3 -0
  368. package/dist/theme-selector/theme.d.ts +85 -0
  369. package/dist/theme-selector/theme.js +35 -0
  370. package/dist/theme-selector/themeStore.svelte.d.ts +6 -0
  371. package/dist/theme-selector/themeStore.svelte.js +88 -0
  372. package/dist/theme-selector/themes/default-runtime.css +229 -0
  373. package/dist/theme-selector/themes/enterprise-runtime.css +210 -0
  374. package/dist/theme-selector/themes/minimal-runtime.css +213 -0
  375. package/dist/theme-selector/themes/mono-runtime.css +206 -0
  376. package/dist/theme-selector/themes/playful-runtime.css +206 -0
  377. package/dist/theme-selector/themes/themes-runtime.css +1106 -0
  378. package/dist/theme-selector/themes.d.ts +39 -0
  379. package/dist/theme-selector/themes.js +43 -0
  380. package/dist/timeline/Activity.svelte +2 -2
  381. package/dist/timeline/Activity.svelte.d.ts +1 -1
  382. package/dist/timeline/ActivityItem.svelte +2 -2
  383. package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
  384. package/dist/timeline/Group.svelte +2 -2
  385. package/dist/timeline/Group.svelte.d.ts +1 -1
  386. package/dist/timeline/GroupItem.svelte +2 -2
  387. package/dist/timeline/GroupItem.svelte.d.ts +1 -1
  388. package/dist/timeline/Timeline.svelte +2 -2
  389. package/dist/timeline/Timeline.svelte.d.ts +1 -1
  390. package/dist/timeline/TimelineItem.svelte +2 -2
  391. package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
  392. package/dist/timeline/theme.d.ts +7 -7
  393. package/dist/toast/Toast.svelte +23 -4
  394. package/dist/toast/Toast.svelte.d.ts +2 -1
  395. package/dist/toast/ToastContainer.svelte +2 -2
  396. package/dist/toast/ToastContainer.svelte.d.ts +1 -1
  397. package/dist/toast/theme.d.ts +1 -1
  398. package/dist/toolbar/Toolbar.svelte +2 -2
  399. package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
  400. package/dist/toolbar/ToolbarButton.svelte +2 -2
  401. package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
  402. package/dist/toolbar/ToolbarGroup.svelte +2 -2
  403. package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
  404. package/dist/toolbar/theme.d.ts +1 -1
  405. package/dist/toolbar/theme.js +1 -1
  406. package/dist/tooltip/Tooltip.svelte +1 -1
  407. package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
  408. package/dist/types.d.ts +42 -29
  409. package/dist/typography/a/A.svelte +2 -2
  410. package/dist/typography/a/A.svelte.d.ts +1 -1
  411. package/dist/typography/blockquote/Blockquote.svelte +2 -2
  412. package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
  413. package/dist/typography/descriptionlist/DescriptionList.svelte +2 -2
  414. package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
  415. package/dist/typography/heading/Heading.svelte +2 -2
  416. package/dist/typography/heading/Heading.svelte.d.ts +1 -1
  417. package/dist/typography/hr/Hr.svelte +1 -1
  418. package/dist/typography/hr/theme.d.ts +1 -1
  419. package/dist/typography/img/Img.svelte +2 -2
  420. package/dist/typography/img/Img.svelte.d.ts +1 -1
  421. package/dist/typography/img/theme.d.ts +1 -1
  422. package/dist/typography/layout/Layout.svelte +2 -2
  423. package/dist/typography/layout/Layout.svelte.d.ts +1 -1
  424. package/dist/typography/list/Li.svelte +1 -1
  425. package/dist/typography/list/Li.svelte.d.ts +1 -1
  426. package/dist/typography/list/List.svelte +2 -2
  427. package/dist/typography/list/List.svelte.d.ts +1 -1
  428. package/dist/typography/mark/Mark.svelte +2 -2
  429. package/dist/typography/mark/Mark.svelte.d.ts +1 -1
  430. package/dist/typography/paragraph/P.svelte +2 -2
  431. package/dist/typography/paragraph/P.svelte.d.ts +1 -1
  432. package/dist/typography/secondary/Secondary.svelte +2 -2
  433. package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
  434. package/dist/typography/span/Span.svelte +2 -2
  435. package/dist/typography/span/Span.svelte.d.ts +1 -1
  436. package/dist/utils/Arrow.svelte +1 -1
  437. package/dist/utils/Arrow.svelte.d.ts +1 -1
  438. package/dist/utils/CloseButton.svelte +11 -7
  439. package/dist/utils/CloseButton.svelte.d.ts +2 -2
  440. package/dist/utils/Popper.svelte +9 -3
  441. package/dist/utils/Popper.svelte.d.ts +1 -1
  442. package/dist/utils/theme.d.ts +60 -81
  443. package/dist/utils/theme.js +10 -36
  444. package/dist/video/Video.svelte +2 -2
  445. package/dist/video/Video.svelte.d.ts +1 -1
  446. package/package.json +2 -735
  447. package/dist/bottom-navigation/CHANGES-SUMMARY.svelte +0 -175
  448. package/dist/bottom-navigation/MIGRATION-GUIDE.svelte +0 -142
  449. /package/dist/{forms → extend}/button-toggle/ButtonToggleGroup.svelte.d.ts +0 -0
  450. /package/dist/{forms → extend}/button-toggle/index.d.ts +0 -0
  451. /package/dist/{forms → extend}/button-toggle/index.js +0 -0
  452. /package/dist/{forms → extend}/button-toggle/theme.js +0 -0
  453. /package/dist/{clipboard-manager → extend/clipboard-manager}/index.d.ts +0 -0
  454. /package/dist/{clipboard-manager → extend/clipboard-manager}/index.js +0 -0
  455. /package/dist/{clipboard-manager → extend/clipboard-manager}/theme.js +0 -0
  456. /package/dist/{command-palette → extend/command-palette}/index.d.ts +0 -0
  457. /package/dist/{command-palette → extend/command-palette}/index.js +0 -0
  458. /package/dist/{command-palette → extend/command-palette}/theme.js +0 -0
  459. /package/dist/{kanban → extend/kanban}/index.d.ts +0 -0
  460. /package/dist/{kanban → extend/kanban}/index.js +0 -0
  461. /package/dist/{kanban → extend/kanban}/theme.js +0 -0
  462. /package/dist/{scroll-spy → extend/scroll-spy}/index.d.ts +0 -0
  463. /package/dist/{scroll-spy → extend/scroll-spy}/index.js +0 -0
  464. /package/dist/{scroll-spy → extend/scroll-spy}/theme.js +0 -0
  465. /package/dist/{split-pane → extend/split-pane}/index.d.ts +0 -0
  466. /package/dist/{split-pane → extend/split-pane}/index.js +0 -0
  467. /package/dist/{split-pane → extend/split-pane}/theme.d.ts +0 -0
  468. /package/dist/{split-pane → extend/split-pane}/theme.js +0 -0
  469. /package/dist/{step-indicator → extend/step-indicator}/index.d.ts +0 -0
  470. /package/dist/{step-indicator → extend/step-indicator}/index.js +0 -0
  471. /package/dist/{step-indicator → extend/step-indicator}/theme.js +0 -0
  472. /package/dist/{forms → extend}/tags/index.d.ts +0 -0
  473. /package/dist/{forms → extend}/tags/index.js +0 -0
  474. /package/dist/{tour → extend/tour}/index.d.ts +0 -0
  475. /package/dist/{tour → extend/tour}/index.js +0 -0
  476. /package/dist/{tour → extend/tour}/theme.js +0 -0
  477. /package/dist/{virtual-masonry → extend/virtual-masonry}/index.d.ts +0 -0
  478. /package/dist/{virtual-masonry → extend/virtual-masonry}/index.js +0 -0
  479. /package/dist/{virtual-masonry → extend/virtual-masonry}/theme.js +0 -0
  480. /package/dist/{virtuallist → extend/virtuallist}/index.d.ts +0 -0
  481. /package/dist/{virtuallist → extend/virtuallist}/index.js +0 -0
  482. /package/dist/{virtuallist → extend/virtuallist}/theme.js +0 -0
  483. /package/dist/{theme → theme-provider}/ThemeProvider.svelte +0 -0
  484. /package/dist/{theme → theme-provider}/ThemeProvider.svelte.d.ts +0 -0
  485. /package/dist/{theme → theme-provider}/index.d.ts +0 -0
  486. /package/dist/{theme → theme-provider}/index.js +0 -0
  487. /package/dist/{theme → theme-provider}/themeUtils.d.ts +0 -0
  488. /package/dist/{theme → theme-provider}/themeUtils.js +0 -0
@@ -3,7 +3,7 @@ import type { DeviceMockupProps } from "../types";
3
3
  /**
4
4
  * [Go to docs](https://flowbite-svelte.com/)
5
5
  * ## Type
6
- * [DeviceMockupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L578)
6
+ * [DeviceMockupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L585)
7
7
  * ## Props
8
8
  * @prop children
9
9
  * @prop device = "default"
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { ios } from "./theme";
3
3
  import type { IosProps } from "..";
4
- import { getTheme } from "../theme/themeUtils";
4
+ import { getTheme } from "../theme-provider/themeUtils";
5
5
  import clsx from "clsx";
6
6
 
7
7
  let { children, class: className, classes, ...restProps }: IosProps = $props();
@@ -12,12 +12,12 @@
12
12
  const { base, slot, top, leftTop, leftBot, right } = ios();
13
13
  </script>
14
14
 
15
- <div {...restProps} class={base({ class: clsx(theme?.base, className) })}>
16
- <div class={top({ class: clsx(theme?.top, styling?.top) })}></div>
17
- <div class={leftTop({ class: clsx(theme?.leftTop, styling?.leftTop) })}></div>
18
- <div class={leftBot({ class: clsx(theme?.leftBot, styling?.leftBot) })}></div>
19
- <div class={right({ class: clsx(theme?.right, styling?.right) })}></div>
20
- <div class={slot({ class: clsx(theme?.slot, styling?.slot) })}>
15
+ <div data-scope="ios" {...restProps} class={base({ class: clsx(theme?.base, className) })}>
16
+ <div data-part="top" class={top({ class: clsx(theme?.top, styling?.top) })}></div>
17
+ <div data-part="left-top" class={leftTop({ class: clsx(theme?.leftTop, styling?.leftTop) })}></div>
18
+ <div data-part="left-bot" class={leftBot({ class: clsx(theme?.leftBot, styling?.leftBot) })}></div>
19
+ <div data-part="right" class={right({ class: clsx(theme?.right, styling?.right) })}></div>
20
+ <div data-part="slot" class={slot({ class: clsx(theme?.slot, styling?.slot) })}>
21
21
  {#if children}
22
22
  {@render children()}
23
23
  {/if}
@@ -28,7 +28,7 @@
28
28
  @component
29
29
  [Go to docs](https://flowbite-svelte.com/)
30
30
  ## Type
31
- [IosProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L607)
31
+ [IosProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L614)
32
32
  ## Props
33
33
  @prop children
34
34
  @prop class: className
@@ -2,7 +2,7 @@ import type { IosProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [IosProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L607)
5
+ * [IosProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L614)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -2,7 +2,7 @@
2
2
  import type { LaptopProps } from "..";
3
3
  import clsx from "clsx";
4
4
  import { laptop } from "./theme";
5
- import { getTheme } from "../theme/themeUtils";
5
+ import { getTheme } from "../theme-provider/themeUtils";
6
6
 
7
7
  let { children, class: className, classes, ...restProps }: LaptopProps = $props();
8
8
 
@@ -14,16 +14,16 @@
14
14
  </script>
15
15
 
16
16
  <div {...restProps}>
17
- <div class={base({ class: clsx(theme?.base, className) })}>
18
- <div class={inner({ class: clsx(theme?.inner, styling?.inner) })}>
17
+ <div data-scope="laptop" data-part="base" class={base({ class: clsx(theme?.base, className) })}>
18
+ <div data-part="inner" class={inner({ class: clsx(theme?.inner, styling?.inner) })}>
19
19
  {#if children}
20
20
  {@render children()}
21
21
  {/if}
22
22
  </div>
23
23
  </div>
24
24
 
25
- <div class={bot({ class: clsx(theme?.bot, styling?.bot) })}>
26
- <div class={botCen({ class: clsx(theme?.botCen, styling?.botCen) })}></div>
25
+ <div data-part="bot" class={bot({ class: clsx(theme?.bot, styling?.bot) })}>
26
+ <div data-part="bot-cen" class={botCen({ class: clsx(theme?.botCen, styling?.botCen) })}></div>
27
27
  </div>
28
28
  </div>
29
29
 
@@ -31,7 +31,7 @@
31
31
  @component
32
32
  [Go to docs](https://flowbite-svelte.com/)
33
33
  ## Type
34
- [LaptopProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L591)
34
+ [LaptopProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L598)
35
35
  ## Props
36
36
  @prop children
37
37
  @prop class: className
@@ -2,7 +2,7 @@ import type { LaptopProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [LaptopProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L591)
5
+ * [LaptopProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L598)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import type { SmartwatchProps } from "..";
3
3
  import clsx from "clsx";
4
- import { getTheme } from "../theme/themeUtils";
4
+ import { getTheme } from "../theme-provider/themeUtils";
5
5
  import { smartwatch } from "./theme";
6
6
 
7
7
  let { children, class: className, classes, ...restProps }: SmartwatchProps = $props();
@@ -12,24 +12,24 @@
12
12
  </script>
13
13
 
14
14
  <div {...restProps}>
15
- <div class={base({ class: clsx(theme?.base, className) })}></div>
16
- <div class={top({ class: clsx(theme?.top, styling?.top) })}>
17
- <div class={rightTop({ class: clsx(theme?.rightTop, styling?.rightTop) })}></div>
18
- <div class={rightBot({ class: clsx(theme?.rightBot, styling?.rightBot) })}></div>
19
- <div class={slot({ class: clsx(theme?.slot, styling?.slot) })}>
15
+ <div data-scope="smart-watch" class={base({ class: clsx(theme?.base, className) })}></div>
16
+ <div data-part="top" class={top({ class: clsx(theme?.top, styling?.top) })}>
17
+ <div data-part="right-top" class={rightTop({ class: clsx(theme?.rightTop, styling?.rightTop) })}></div>
18
+ <div data-part="right-bot" class={rightBot({ class: clsx(theme?.rightBot, styling?.rightBot) })}></div>
19
+ <div data-part="slot" class={slot({ class: clsx(theme?.slot, styling?.slot) })}>
20
20
  {#if children}
21
21
  {@render children()}
22
22
  {/if}
23
23
  </div>
24
24
  </div>
25
- <div class={bot({ class: clsx(theme?.bot, styling?.bot) })}></div>
25
+ <div data-part="bot" class={bot({ class: clsx(theme?.bot, styling?.bot) })}></div>
26
26
  </div>
27
27
 
28
28
  <!--
29
29
  @component
30
30
  [Go to docs](https://flowbite-svelte.com/)
31
31
  ## Type
32
- [SmartwatchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L611)
32
+ [SmartwatchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L618)
33
33
  ## Props
34
34
  @prop children
35
35
  @prop class: className
@@ -2,7 +2,7 @@ import type { SmartwatchProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [SmartwatchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L611)
5
+ * [SmartwatchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L618)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { tablet } from "./theme";
3
3
  import type { TabletProps } from "..";
4
- import { getTheme } from "../theme/themeUtils";
4
+ import { getTheme } from "../theme-provider/themeUtils";
5
5
  import clsx from "clsx";
6
6
 
7
7
  let { children, class: className, classes, ...restProps }: TabletProps = $props();
@@ -12,12 +12,12 @@
12
12
  const { base, leftTop, leftMid, leftBot, right, slot } = tablet();
13
13
  </script>
14
14
 
15
- <div {...restProps} class={base({ class: clsx(theme?.base, className) })}>
16
- <div class={leftTop({ class: clsx(theme?.leftTop, styling?.leftTop) })}></div>
17
- <div class={leftMid({ class: clsx(theme?.leftMid, styling?.leftMid) })}></div>
18
- <div class={leftBot({ class: clsx(theme?.leftBot, styling?.leftBot) })}></div>
19
- <div class={right({ class: clsx(theme?.right, styling?.right) })}></div>
20
- <div class={slot({ class: clsx(theme?.slot, styling?.slot) })}>
15
+ <div data-scope="tablet" data-part="base" {...restProps} class={base({ class: clsx(theme?.base, className) })}>
16
+ <div data-part="left-top" class={leftTop({ class: clsx(theme?.leftTop, styling?.leftTop) })}></div>
17
+ <div data-part="left-mid" class={leftMid({ class: clsx(theme?.leftMid, styling?.leftMid) })}></div>
18
+ <div data-part="left-bot" class={leftBot({ class: clsx(theme?.leftBot, styling?.leftBot) })}></div>
19
+ <div data-part="right" class={right({ class: clsx(theme?.right, styling?.right) })}></div>
20
+ <div data-part="slot" class={slot({ class: clsx(theme?.slot, styling?.slot) })}>
21
21
  {#if children}
22
22
  {@render children()}
23
23
  {/if}
@@ -28,7 +28,7 @@
28
28
  @component
29
29
  [Go to docs](https://flowbite-svelte.com/)
30
30
  ## Type
31
- [TabletProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L615)
31
+ [TabletProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L622)
32
32
  ## Props
33
33
  @prop children
34
34
  @prop class: className
@@ -2,7 +2,7 @@ import type { TabletProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [TabletProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L615)
5
+ * [TabletProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L622)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -1,4 +1,4 @@
1
- import type { Classes } from "../theme/themeUtils";
1
+ import type { Classes } from "../theme-provider/themeUtils";
2
2
  import { type VariantProps } from "tailwind-variants";
3
3
  export type AndroidVariants = VariantProps<typeof android> & Classes<typeof android>;
4
4
  declare const android: import("tailwind-variants").TVReturnType<{
@@ -6,6 +6,7 @@
6
6
  import clsx from "clsx";
7
7
  import { sineIn } from "svelte/easing";
8
8
  import { fade } from "svelte/transition";
9
+ import { prefersReducedMotion } from "svelte/motion";
9
10
  import { dialog } from "./theme";
10
11
 
11
12
  let {
@@ -26,10 +27,17 @@
26
27
  classes,
27
28
  transition = fade,
28
29
  transitionParams,
30
+ closeButtonProps,
29
31
  ...restProps
30
32
  }: DialogProps = $props();
31
33
 
32
- const paramsOptions = $derived(transitionParams ?? { duration: 100, easing: sineIn });
34
+ // Check if running in browser to avoid SSR issues
35
+ const isBrowser = typeof window !== "undefined";
36
+
37
+ // Respect reduced motion preference by setting duration to 0
38
+ const effectiveParams = $derived(
39
+ isBrowser && prefersReducedMotion.current ? { ...(transitionParams ?? { duration: 100, easing: sineIn }), duration: 0 } : (transitionParams ?? { duration: 100, easing: sineIn })
40
+ );
33
41
 
34
42
  const styling = $derived(classes);
35
43
  let { base, form: formCls, close: closeCls } = $derived(dialog());
@@ -141,17 +149,31 @@
141
149
  }
142
150
 
143
151
  createDismissableContext(close_handler);
152
+
153
+ const finalCloseProps = $derived({
154
+ type: "submit" as const,
155
+ formnovalidate: true,
156
+ class: closeCls({ class: clsx(styling?.close, closeButtonProps?.class) }),
157
+ color: closeButtonProps?.color,
158
+ size: closeButtonProps?.size,
159
+ classes: closeButtonProps?.classes,
160
+ name: closeButtonProps?.name,
161
+ ariaLabel: closeButtonProps?.ariaLabel,
162
+ onclick: closeButtonProps?.onclick
163
+ });
144
164
  </script>
145
165
 
146
166
  {#snippet content()}
147
167
  {@render children?.()}
148
168
  {#if dismissable && !permanent}
149
- <CloseButton type="submit" formnovalidate class={closeCls({ class: clsx(styling?.close) })} />
169
+ <CloseButton {...finalCloseProps} />
150
170
  {/if}
151
171
  {/snippet}
152
172
 
153
173
  {#if open}
154
174
  <dialog
175
+ data-scope="dialog"
176
+ data-part="base"
155
177
  {@attach init}
156
178
  bind:this={ref}
157
179
  use:focusTrap
@@ -160,7 +182,7 @@
160
182
  oncancel={_oncancel}
161
183
  onclick={_onclick}
162
184
  ontoggle={_ontoggle}
163
- transition:transition|global={paramsOptions as ParamsType}
185
+ transition:transition|global={effectiveParams as ParamsType}
164
186
  {...restProps}
165
187
  class={base({ class: clsx(className) })}
166
188
  >
@@ -178,7 +200,7 @@
178
200
  @component
179
201
  [Go to docs](https://flowbite-svelte.com/)
180
202
  ## Type
181
- [DialogProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L621)
203
+ [DialogProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L627)
182
204
  ## Props
183
205
  @prop children
184
206
  @prop onaction = ()
@@ -197,5 +219,6 @@
197
219
  @prop classes
198
220
  @prop transition = fade
199
221
  @prop transitionParams
222
+ @prop closeButtonProps
200
223
  @prop ...restProps
201
224
  -->
@@ -2,7 +2,7 @@ import type { DialogProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [DialogProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L621)
5
+ * [DialogProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L627)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop onaction = ()
@@ -21,6 +21,7 @@ import type { DialogProps } from "..";
21
21
  * @prop classes
22
22
  * @prop transition = fade
23
23
  * @prop transitionParams
24
+ * @prop closeButtonProps
24
25
  * @prop ...restProps
25
26
  */
26
27
  declare const Dialog: import("svelte").Component<DialogProps, {}, "open">;
@@ -1,5 +1,5 @@
1
1
  import { type VariantProps } from "tailwind-variants";
2
- import type { Classes } from "../theme/themeUtils";
2
+ import type { Classes } from "../theme-provider/themeUtils";
3
3
  export type DialogVariants = VariantProps<typeof dialog> & Classes<typeof dialog>;
4
4
  export declare const dialog: import("tailwind-variants").TVReturnType<{}, {
5
5
  base: string;
@@ -1,9 +1,10 @@
1
1
  <script lang="ts">
2
2
  import type { DrawerProps } from "..";
3
3
  import Dialog from "../dialog/Dialog.svelte";
4
- import { getTheme } from "../theme/themeUtils";
4
+ import { getTheme } from "../theme-provider/themeUtils";
5
5
  import clsx from "clsx";
6
6
  import { sineIn } from "svelte/easing";
7
+ import { prefersReducedMotion } from "svelte/motion";
7
8
  import { fly } from "svelte/transition";
8
9
  import { drawer } from "./theme";
9
10
  import { setDrawerContext } from "../context";
@@ -45,7 +46,11 @@
45
46
  let x = $state(),
46
47
  y = $state();
47
48
 
48
- let transition_params = $derived({ x, y, duration: 300, easing: sineIn, opacity: 1, ...transitionParams });
49
+ const isBrowser = typeof window !== "undefined";
50
+
51
+ let transition_params = $derived(
52
+ isBrowser && prefersReducedMotion.current ? { x, y, easing: sineIn, opacity: 1, ...transitionParams, duration: 0 } : { x, y, duration: 300, easing: sineIn, opacity: 1, ...transitionParams }
53
+ );
49
54
 
50
55
  function init(node: HTMLDialogElement) {
51
56
  // set initial offset, later it will be switched on/off by onintrostart
@@ -91,6 +96,8 @@
91
96
  </script>
92
97
 
93
98
  <Dialog
99
+ data-scope="drawer"
100
+ data-part="base"
94
101
  {@attach init}
95
102
  bind:open
96
103
  {modal}
@@ -116,7 +123,7 @@
116
123
  @component
117
124
  [Go to docs](https://flowbite-svelte.com/)
118
125
  ## Type
119
- [DrawerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L635)
126
+ [DrawerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L642)
120
127
  ## Props
121
128
  @prop children
122
129
  @prop open = $bindable(false)
@@ -2,7 +2,7 @@ import type { DrawerProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [DrawerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L635)
5
+ * [DrawerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L642)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop open = $bindable(false)
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { getTheme } from "../theme/themeUtils";
2
+ import { getTheme } from "../theme-provider/themeUtils";
3
3
  import type { DrawerHandleProps } from "..";
4
4
  import clsx from "clsx";
5
5
  import { drawerhandle } from "./theme";
@@ -13,16 +13,16 @@
13
13
  let { base, handle } = $derived(drawerhandle({ placement: placement ?? ctx?.placement ?? "left" }));
14
14
  </script>
15
15
 
16
- <button type="button" aria-label={ariaLabel} {...restProps} class={base({ class: clsx(theme?.base, className) })}>
16
+ <button data-scope="drawer-handle" data-part="base" type="button" aria-label={ariaLabel} {...restProps} class={base({ class: clsx(theme?.base, className) })}>
17
17
  {@render children?.()}
18
- <span class={handle({ class: clsx(theme?.handle, styling?.handle) })}></span>
18
+ <span data-part="handle" class={handle({ class: clsx(theme?.handle, styling?.handle) })}></span>
19
19
  </button>
20
20
 
21
21
  <!--
22
22
  @component
23
23
  [Go to docs](https://flowbite-svelte.com/)
24
24
  ## Type
25
- [DrawerHandleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L639)
25
+ [DrawerHandleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L646)
26
26
  ## Props
27
27
  @prop children
28
28
  @prop placement
@@ -2,7 +2,7 @@ import type { DrawerHandleProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [DrawerHandleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L639)
5
+ * [DrawerHandleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L646)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop placement
@@ -2,7 +2,7 @@
2
2
  import { drawerhead } from "./theme";
3
3
  import clsx from "clsx";
4
4
  import type { DrawerheadProps } from "..";
5
- import { getTheme } from "../theme/themeUtils";
5
+ import { getTheme } from "../theme-provider/themeUtils";
6
6
 
7
7
  let { closeIcon, children, class: className, classes, ...restProps }: DrawerheadProps = $props();
8
8
 
@@ -12,15 +12,15 @@
12
12
  const { base, button, svg } = $derived(drawerhead());
13
13
  </script>
14
14
 
15
- <div class={base({ class: clsx(theme?.base, className) })}>
15
+ <div data-scope="drawer-head" data-part="base" class={base({ class: clsx(theme?.base, className) })}>
16
16
  {#if children}
17
17
  {@render children()}
18
18
  {/if}
19
19
  {#if closeIcon}
20
20
  {@render closeIcon()}
21
21
  {:else}
22
- <button type="button" {...restProps} class={button({ class: clsx(theme?.button, styling?.button) })}>
23
- <svg class={svg({ class: clsx(theme?.svg, styling?.svg) })} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
22
+ <button type="button" data-part="button" {...restProps} class={button({ class: clsx(theme?.button, styling?.button) })}>
23
+ <svg data-part="svg" class={svg({ class: clsx(theme?.svg, styling?.svg) })} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
24
24
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6" />
25
25
  </svg>
26
26
  <span class="sr-only">Close drawer</span>
@@ -32,7 +32,7 @@
32
32
  @component
33
33
  [Go to docs](https://flowbite-svelte.com/)
34
34
  ## Type
35
- [DrawerheadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L641)
35
+ [DrawerheadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L648)
36
36
  ## Props
37
37
  @prop closeIcon
38
38
  @prop children
@@ -2,7 +2,7 @@ import type { DrawerheadProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [DrawerheadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L641)
5
+ * [DrawerheadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L648)
6
6
  * ## Props
7
7
  * @prop closeIcon
8
8
  * @prop children
@@ -1,5 +1,5 @@
1
1
  import { type VariantProps } from "tailwind-variants";
2
- import type { Classes } from "../theme/themeUtils";
2
+ import type { Classes } from "../theme-provider/themeUtils";
3
3
  import { dialog } from "../dialog/theme";
4
4
  export type DrawerVariants = VariantProps<typeof drawer> & Classes<typeof drawer> & Classes<typeof dialog>;
5
5
  export declare const drawer: import("tailwind-variants").TVReturnType<{
@@ -62,7 +62,7 @@ export const drawer = tv({
62
62
  export const drawerhead = tv({
63
63
  slots: {
64
64
  base: "flex items-center justify-between",
65
- button: "ms-auto inline-flex h-8 w-8 items-center justify-center rounded-lg bg-transparent text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",
65
+ button: "ms-auto inline-flex h-8 w-8 items-center justify-center rounded-base bg-transparent text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",
66
66
  svg: "h-4 w-4"
67
67
  }
68
68
  });
@@ -2,7 +2,7 @@
2
2
  import type { DropdownProps } from "..";
3
3
  import Popper from "../utils/Popper.svelte";
4
4
  import DropdownGroup from "./DropdownGroup.svelte";
5
- import { getTheme } from "../theme/themeUtils";
5
+ import { getTheme } from "../theme-provider/themeUtils";
6
6
  import clsx from "clsx";
7
7
  import { setDropdownContext } from "../context";
8
8
  import { dropdown } from "./theme";
@@ -39,7 +39,7 @@
39
39
  @component
40
40
  [Go to docs](https://flowbite-svelte.com/)
41
41
  ## Type
42
- [DropdownProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L646)
42
+ [DropdownProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L653)
43
43
  ## Props
44
44
  @prop children
45
45
  @prop simple = false
@@ -2,7 +2,7 @@ import type { DropdownProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [DropdownProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L646)
5
+ * [DropdownProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L653)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop simple = false
@@ -2,7 +2,7 @@
2
2
  import { dropdownDivider } from "./theme";
3
3
  import clsx from "clsx";
4
4
  import type { DropdownDividerProps } from "..";
5
- import { getTheme } from "../theme/themeUtils";
5
+ import { getTheme } from "../theme-provider/themeUtils";
6
6
 
7
7
  let { class: className, ...restProps }: DropdownDividerProps = $props();
8
8
 
@@ -15,7 +15,7 @@
15
15
  @component
16
16
  [Go to docs](https://flowbite-svelte.com/)
17
17
  ## Type
18
- [DropdownDividerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L652)
18
+ [DropdownDividerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L659)
19
19
  ## Props
20
20
  @prop class: className
21
21
  @prop ...restProps
@@ -2,7 +2,7 @@ import type { DropdownDividerProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [DropdownDividerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L652)
5
+ * [DropdownDividerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L659)
6
6
  * ## Props
7
7
  * @prop class: className
8
8
  * @prop ...restProps
@@ -2,7 +2,7 @@
2
2
  import { dropdownGroup } from "./theme";
3
3
  import clsx from "clsx";
4
4
  import type { DropdownGroupProps } from "..";
5
- import { getTheme } from "../theme/themeUtils";
5
+ import { getTheme } from "../theme-provider/themeUtils";
6
6
 
7
7
  let { children, class: className, ...restProps }: DropdownGroupProps = $props();
8
8
 
@@ -17,7 +17,7 @@
17
17
  @component
18
18
  [Go to docs](https://flowbite-svelte.com/)
19
19
  ## Type
20
- [DropdownGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L674)
20
+ [DropdownGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L681)
21
21
  ## Props
22
22
  @prop children
23
23
  @prop class: className
@@ -2,7 +2,7 @@ import type { DropdownGroupProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [DropdownGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L674)
5
+ * [DropdownGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L681)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -2,7 +2,7 @@
2
2
  import { dropdownHeader } from "./theme";
3
3
  import clsx from "clsx";
4
4
  import type { DropdownHeaderProps } from "..";
5
- import { getTheme } from "../theme/themeUtils";
5
+ import { getTheme } from "../theme-provider/themeUtils";
6
6
 
7
7
  let { children, class: className, ...restProps }: DropdownHeaderProps = $props();
8
8
 
@@ -17,7 +17,7 @@
17
17
  @component
18
18
  [Go to docs](https://flowbite-svelte.com/)
19
19
  ## Type
20
- [DropdownHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L654)
20
+ [DropdownHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L661)
21
21
  ## Props
22
22
  @prop children
23
23
  @prop class: className
@@ -2,7 +2,7 @@ import type { DropdownHeaderProps } from "..";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [DropdownHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L654)
5
+ * [DropdownHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L661)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop class: className
@@ -2,7 +2,7 @@
2
2
  import { getDropdownContext } from "../context";
3
3
  import { dropdownItem } from "./theme";
4
4
  import clsx from "clsx";
5
- import { getTheme } from "../theme/themeUtils";
5
+ import { getTheme } from "../theme-provider/themeUtils";
6
6
  import type { DropdownItemProps } from "../types";
7
7
 
8
8
  let { children, classes, class: className, href, onclick, ...restProps }: DropdownItemProps = $props();
@@ -39,7 +39,7 @@
39
39
  @component
40
40
  [Go to docs](https://flowbite-svelte.com/)
41
41
  ## Type
42
- [DropdownItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L658)
42
+ [DropdownItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L665)
43
43
  ## Props
44
44
  @prop children
45
45
  @prop classes
@@ -2,7 +2,7 @@ import type { DropdownItemProps } from "../types";
2
2
  /**
3
3
  * [Go to docs](https://flowbite-svelte.com/)
4
4
  * ## Type
5
- * [DropdownItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L658)
5
+ * [DropdownItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L665)
6
6
  * ## Props
7
7
  * @prop children
8
8
  * @prop classes
@@ -1,5 +1,5 @@
1
1
  import { type VariantProps } from "tailwind-variants";
2
- import type { Classes } from "../theme/themeUtils";
2
+ import type { Classes } from "../theme-provider/themeUtils";
3
3
  export declare const dropdown: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "mt-2 divide-y divide-gray-300 dark:divide-gray-500 overflow-hidden rounded-lg bg-white shadow-sm dark:bg-gray-700", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "mt-2 divide-y divide-gray-300 dark:divide-gray-500 overflow-hidden rounded-lg bg-white shadow-sm dark:bg-gray-700", unknown, unknown, undefined>>;
4
4
  export declare const dropdownDivider: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "my-1 h-px bg-gray-100 dark:bg-gray-500", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "my-1 h-px bg-gray-100 dark:bg-gray-500", unknown, unknown, undefined>>;
5
5
  export declare const dropdownHeader: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "px-4 py-3 text-sm text-gray-900 dark:text-white", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "px-4 py-3 text-sm text-gray-900 dark:text-white", unknown, unknown, undefined>>;