flowbite-svelte 0.44.8 → 0.44.9

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 (758) hide show
  1. package/.env +2 -0
  2. package/.eslintrc.cjs +20 -0
  3. package/.github/ISSUE_TEMPLATE/bug_report.yml +33 -0
  4. package/.github/ISSUE_TEMPLATE/config.yml +5 -0
  5. package/.github/ISSUE_TEMPLATE/feature_request.md +17 -0
  6. package/.github/pull_request_template.md +71 -0
  7. package/.github/workflows/playwright-and-lint.yaml +47 -0
  8. package/.prettierignore +16 -0
  9. package/.prettierrc +9 -0
  10. package/CHANGELOG.md +3858 -0
  11. package/CONTRIBUTING.md +66 -0
  12. package/dist/bottom-nav/BottomNavItem.svelte +3 -1
  13. package/dist/bottom-nav/BottomNavItem.svelte.d.ts +2 -0
  14. package/dist/bottom-nav/BottomNavItem.svelte.d.ts.map +1 -1
  15. package/dist/carousels/Carousel.svelte +52 -153
  16. package/dist/carousels/Carousel.svelte.d.ts +22 -37
  17. package/dist/carousels/Carousel.svelte.d.ts.map +1 -1
  18. package/dist/carousels/ControlButton.svelte +31 -0
  19. package/dist/carousels/ControlButton.svelte.d.ts +29 -0
  20. package/dist/carousels/ControlButton.svelte.d.ts.map +1 -0
  21. package/dist/carousels/Controls.svelte +17 -0
  22. package/dist/carousels/Controls.svelte.d.ts +23 -0
  23. package/dist/carousels/Controls.svelte.d.ts.map +1 -0
  24. package/dist/carousels/Indicators.svelte +26 -0
  25. package/dist/carousels/Indicators.svelte.d.ts +32 -0
  26. package/dist/carousels/Indicators.svelte.d.ts.map +1 -0
  27. package/dist/carousels/Thumbnail.svelte +6 -23
  28. package/dist/carousels/Thumbnail.svelte.d.ts +5 -16
  29. package/dist/carousels/Thumbnail.svelte.d.ts.map +1 -1
  30. package/dist/carousels/Thumbnails.svelte +26 -0
  31. package/dist/carousels/Thumbnails.svelte.d.ts +33 -0
  32. package/dist/carousels/Thumbnails.svelte.d.ts.map +1 -0
  33. package/dist/index.d.ts +2 -1
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +3 -1
  36. package/dist/tables/TableSearch.svelte +2 -2
  37. package/dist/tables/TableSearch.svelte.d.ts +1 -1
  38. package/mdsvex.config.js +18 -0
  39. package/package.json +18 -80
  40. package/playwright.config.ts +12 -0
  41. package/postcss.config.cjs +12 -0
  42. package/src/app.css +45 -0
  43. package/src/app.d.ts +9 -0
  44. package/src/app.html +28 -0
  45. package/src/app.postcss +55 -0
  46. package/src/hooks.server.js +27 -0
  47. package/src/lib/accordion/Accordion.svelte +61 -0
  48. package/src/lib/accordion/AccordionItem.svelte +120 -0
  49. package/src/lib/alerts/Alert.svelte +60 -0
  50. package/src/lib/avatar/Avatar.svelte +56 -0
  51. package/src/lib/avatar/Placeholder.svelte +16 -0
  52. package/src/lib/badges/Badge.svelte +108 -0
  53. package/src/lib/banner/Banner.svelte +64 -0
  54. package/src/lib/bottom-nav/BottomNav.svelte +76 -0
  55. package/src/lib/bottom-nav/BottomNavHeader.svelte +19 -0
  56. package/src/lib/bottom-nav/BottomNavHeaderItem.svelte +23 -0
  57. package/src/lib/bottom-nav/BottomNavItem.svelte +76 -0
  58. package/src/lib/breadcrumbs/Breadcrumb.svelte +25 -0
  59. package/src/lib/breadcrumbs/BreadcrumbItem.svelte +51 -0
  60. package/src/lib/buttongroups/ButtonGroup.svelte +22 -0
  61. package/src/lib/buttons/Button.svelte +100 -0
  62. package/src/lib/buttons/GradientButton.svelte +79 -0
  63. package/src/lib/cards/Card.svelte +70 -0
  64. package/src/lib/carousels/Carousel.svelte +166 -0
  65. package/src/lib/carousels/ControlButton.svelte +34 -0
  66. package/src/lib/carousels/Controls.svelte +21 -0
  67. package/src/lib/carousels/Indicators.svelte +31 -0
  68. package/src/lib/carousels/Thumbnail.svelte +20 -0
  69. package/src/lib/carousels/Thumbnails.svelte +30 -0
  70. package/src/lib/charts/Chart.svelte +35 -0
  71. package/src/lib/darkmode/DarkMode.svelte +58 -0
  72. package/src/lib/datepicker/Calender.svelte +3 -0
  73. package/src/lib/datepicker/Datepicker.svelte +66 -0
  74. package/src/lib/device-mockup/Android.svelte +24 -0
  75. package/src/lib/device-mockup/DefaultMockup.svelte +21 -0
  76. package/src/lib/device-mockup/DeviceMockup.svelte +235 -0
  77. package/src/lib/device-mockup/Ios.svelte +21 -0
  78. package/src/lib/device-mockup/Smartwatch.svelte +15 -0
  79. package/src/lib/device-mockup/Tablet.svelte +21 -0
  80. package/src/lib/drawer/Drawer.svelte +87 -0
  81. package/src/lib/dropdowns/Dropdown.svelte +81 -0
  82. package/src/lib/dropdowns/DropdownDivider.svelte +13 -0
  83. package/src/lib/dropdowns/DropdownHeader.svelte +21 -0
  84. package/src/lib/dropdowns/DropdownItem.svelte +47 -0
  85. package/src/lib/footer/Footer.svelte +18 -0
  86. package/src/lib/footer/FooterBrand.svelte +39 -0
  87. package/src/lib/footer/FooterCopyright.svelte +38 -0
  88. package/src/lib/footer/FooterIcon.svelte +25 -0
  89. package/src/lib/footer/FooterLink.svelte +26 -0
  90. package/src/lib/footer/FooterLinkGroup.svelte +15 -0
  91. package/src/lib/forms/Checkbox.svelte +70 -0
  92. package/src/lib/forms/Dropzone.svelte +32 -0
  93. package/src/lib/forms/Fileupload.svelte +21 -0
  94. package/src/lib/forms/FloatingLabelInput.svelte +94 -0
  95. package/src/lib/forms/Helper.svelte +23 -0
  96. package/src/lib/forms/Input.svelte +83 -0
  97. package/src/lib/forms/InputAddon.svelte +47 -0
  98. package/src/lib/forms/Label.svelte +40 -0
  99. package/src/lib/forms/MultiSelect.svelte +126 -0
  100. package/src/lib/forms/NumberInput.svelte +16 -0
  101. package/src/lib/forms/Radio.svelte +53 -0
  102. package/src/lib/forms/RadioInline.svelte +9 -0
  103. package/src/lib/forms/Range.svelte +24 -0
  104. package/src/lib/forms/Search.svelte +44 -0
  105. package/src/lib/forms/Select.svelte +49 -0
  106. package/src/lib/forms/Textarea.svelte +51 -0
  107. package/src/lib/forms/Toggle.svelte +56 -0
  108. package/src/lib/forms/VoiceSearch.svelte +57 -0
  109. package/src/lib/gallery/Gallery.svelte +31 -0
  110. package/src/lib/index.ts +228 -0
  111. package/src/lib/indicators/Indicator.svelte +86 -0
  112. package/src/lib/kbd/ArrowKeyDown.svelte +15 -0
  113. package/src/lib/kbd/ArrowKeyLeft.svelte +15 -0
  114. package/src/lib/kbd/ArrowKeyRight.svelte +15 -0
  115. package/src/lib/kbd/ArrowKeyUp.svelte +15 -0
  116. package/src/lib/kbd/Kbd.svelte +15 -0
  117. package/src/lib/list-group/Listgroup.svelte +45 -0
  118. package/src/lib/list-group/ListgroupItem.svelte +57 -0
  119. package/src/lib/megamenu/MegaMenu.svelte +52 -0
  120. package/src/lib/modals/Modal.svelte +162 -0
  121. package/src/lib/navbar/Menu.svelte +38 -0
  122. package/src/lib/navbar/NavBrand.svelte +15 -0
  123. package/src/lib/navbar/NavHamburger.svelte +20 -0
  124. package/src/lib/navbar/NavLi.svelte +37 -0
  125. package/src/lib/navbar/NavSidebarHamburger.svelte +20 -0
  126. package/src/lib/navbar/NavUl.svelte +68 -0
  127. package/src/lib/navbar/Navbar.svelte +42 -0
  128. package/src/lib/navbar/SidebarMenu.svelte +37 -0
  129. package/src/lib/paginations/Pagination.svelte +59 -0
  130. package/src/lib/paginations/PaginationItem.svelte +40 -0
  131. package/src/lib/popover/Popover.svelte +34 -0
  132. package/src/lib/progressbars/Progressbar.svelte +52 -0
  133. package/src/lib/ratings/AdvancedRating.svelte +45 -0
  134. package/src/lib/ratings/Heart.svelte +39 -0
  135. package/src/lib/ratings/Rating.svelte +57 -0
  136. package/src/lib/ratings/RatingComment.svelte +85 -0
  137. package/src/lib/ratings/Review.svelte +78 -0
  138. package/src/lib/ratings/ScoreRating.svelte +76 -0
  139. package/src/lib/ratings/Star.svelte +47 -0
  140. package/src/lib/ratings/Thumbup.svelte +39 -0
  141. package/src/lib/sidebars/Sidebar.svelte +40 -0
  142. package/src/lib/sidebars/SidebarBrand.svelte +24 -0
  143. package/src/lib/sidebars/SidebarCta.svelte +28 -0
  144. package/src/lib/sidebars/SidebarDropdownItem.svelte +26 -0
  145. package/src/lib/sidebars/SidebarDropdownWrapper.svelte +71 -0
  146. package/src/lib/sidebars/SidebarGroup.svelte +24 -0
  147. package/src/lib/sidebars/SidebarItem.svelte +49 -0
  148. package/src/lib/sidebars/SidebarWrapper.svelte +16 -0
  149. package/src/lib/skeleton/CardPlaceholder.svelte +48 -0
  150. package/src/lib/skeleton/ImagePlaceholder.svelte +31 -0
  151. package/src/lib/skeleton/ListPlaceholder.svelte +50 -0
  152. package/src/lib/skeleton/Skeleton.svelte +38 -0
  153. package/src/lib/skeleton/TestimonialPlaceholder.svelte +24 -0
  154. package/src/lib/skeleton/TextPlaceholder.svelte +60 -0
  155. package/src/lib/skeleton/VideoPlaceholder.svelte +33 -0
  156. package/src/lib/skeleton/WidgetPlaceholder.svelte +26 -0
  157. package/src/lib/speed-dial/SpeedDial.svelte +80 -0
  158. package/src/lib/speed-dial/SpeedDialButton.svelte +49 -0
  159. package/src/lib/spinners/Spinner.svelte +49 -0
  160. package/src/lib/steps/StepIndicator.svelte +75 -0
  161. package/src/lib/tables/Table.svelte +49 -0
  162. package/src/lib/tables/TableBody.svelte +14 -0
  163. package/src/lib/tables/TableBodyCell.svelte +22 -0
  164. package/src/lib/tables/TableBodyRow.svelte +50 -0
  165. package/src/lib/tables/TableHead.svelte +45 -0
  166. package/src/lib/tables/TableHeadCell.svelte +15 -0
  167. package/src/lib/tables/TableSearch.svelte +73 -0
  168. package/src/lib/tabs/TabItem.svelte +61 -0
  169. package/src/lib/tabs/Tabs.svelte +78 -0
  170. package/src/lib/timeline/Activity.svelte +16 -0
  171. package/src/lib/timeline/ActivityItem.svelte +59 -0
  172. package/src/lib/timeline/Group.svelte +27 -0
  173. package/src/lib/timeline/GroupItem.svelte +59 -0
  174. package/src/lib/timeline/Timeline.svelte +25 -0
  175. package/src/lib/timeline/TimelineHorizontal.svelte +17 -0
  176. package/src/lib/timeline/TimelineItem.svelte +116 -0
  177. package/src/lib/timeline/TimelineItemHorizontal.svelte +72 -0
  178. package/src/lib/timeline/TimelineItemVertical.svelte +44 -0
  179. package/src/lib/toasts/Toast.svelte +99 -0
  180. package/src/lib/toolbar/Toolbar.svelte +52 -0
  181. package/src/lib/toolbar/ToolbarButton.svelte +67 -0
  182. package/src/lib/toolbar/ToolbarGroup.svelte +20 -0
  183. package/src/lib/tooltips/Tooltip.svelte +42 -0
  184. package/src/lib/types.ts +163 -0
  185. package/src/lib/typography/A.svelte +20 -0
  186. package/src/lib/typography/Blockquote.svelte +51 -0
  187. package/src/lib/typography/DescriptionList.svelte +22 -0
  188. package/src/lib/typography/Heading.svelte +28 -0
  189. package/src/lib/typography/Hr.svelte +37 -0
  190. package/src/lib/typography/Img.svelte +39 -0
  191. package/src/lib/typography/Layout.svelte +21 -0
  192. package/src/lib/typography/Li.svelte +19 -0
  193. package/src/lib/typography/List.svelte +33 -0
  194. package/src/lib/typography/Mark.svelte +20 -0
  195. package/src/lib/typography/P.svelte +102 -0
  196. package/src/lib/typography/Secondary.svelte +18 -0
  197. package/src/lib/typography/Span.svelte +35 -0
  198. package/src/lib/utils/CloseButton.svelte +19 -0
  199. package/src/lib/utils/Frame.svelte +142 -0
  200. package/src/lib/utils/Popper.svelte +206 -0
  201. package/src/lib/utils/Wrapper.svelte +22 -0
  202. package/src/lib/utils/backdrop.ts +101 -0
  203. package/src/lib/utils/clickOutside.ts +16 -0
  204. package/src/lib/utils/createEventDispatcher.ts +24 -0
  205. package/src/lib/utils/focusTrap.js +42 -0
  206. package/src/lib/utils/generateId.js +5 -0
  207. package/src/lib/video/Video.svelte +29 -0
  208. package/src/routes/+error.svelte +5 -0
  209. package/src/routes/+layout.svelte +98 -0
  210. package/src/routes/+page.server.ts +18 -0
  211. package/src/routes/+page.svelte +55 -0
  212. package/src/routes/api/posts/+server.js +7 -0
  213. package/src/routes/component-data/A.json +10 -0
  214. package/src/routes/component-data/Accordion.json +12 -0
  215. package/src/routes/component-data/AccordionItem.json +23 -0
  216. package/src/routes/component-data/Activity.json +1 -0
  217. package/src/routes/component-data/ActivityItem.json +16 -0
  218. package/src/routes/component-data/AdvancedRating.json +13 -0
  219. package/src/routes/component-data/Alert.json +9 -0
  220. package/src/routes/component-data/Android.json +12 -0
  221. package/src/routes/component-data/ArrowKeyDown.json +1 -0
  222. package/src/routes/component-data/ArrowKeyLeft.json +1 -0
  223. package/src/routes/component-data/ArrowKeyRight.json +1 -0
  224. package/src/routes/component-data/ArrowKeyUp.json +1 -0
  225. package/src/routes/component-data/Avatar.json +15 -0
  226. package/src/routes/component-data/Badge.json +10 -0
  227. package/src/routes/component-data/Banner.json +12 -0
  228. package/src/routes/component-data/Blockquote.json +15 -0
  229. package/src/routes/component-data/BottomNav.json +13 -0
  230. package/src/routes/component-data/BottomNavHeader.json +9 -0
  231. package/src/routes/component-data/BottomNavHeaderItem.json +11 -0
  232. package/src/routes/component-data/BottomNavItem.json +12 -0
  233. package/src/routes/component-data/Breadcrumb.json +11 -0
  234. package/src/routes/component-data/BreadcrumbItem.json +12 -0
  235. package/src/routes/component-data/Button.json +14 -0
  236. package/src/routes/component-data/ButtonGroup.json +9 -0
  237. package/src/routes/component-data/Calender.json +1 -0
  238. package/src/routes/component-data/Card.json +13 -0
  239. package/src/routes/component-data/CardPlaceholder.json +9 -0
  240. package/src/routes/component-data/Carousel.json +11 -0
  241. package/src/routes/component-data/Chart.json +1 -0
  242. package/src/routes/component-data/Checkbox.json +14 -0
  243. package/src/routes/component-data/CloseButton.json +1 -0
  244. package/src/routes/component-data/ControlButton.json +9 -0
  245. package/src/routes/component-data/Controls.json +1 -0
  246. package/src/routes/component-data/DarkMode.json +9 -0
  247. package/src/routes/component-data/Datepicker.json +14 -0
  248. package/src/routes/component-data/DefaultMockup.json +11 -0
  249. package/src/routes/component-data/DescriptionList.json +10 -0
  250. package/src/routes/component-data/DeviceMockup.json +50 -0
  251. package/src/routes/component-data/Drawer.json +23 -0
  252. package/src/routes/component-data/Dropdown.json +13 -0
  253. package/src/routes/component-data/DropdownDivider.json +1 -0
  254. package/src/routes/component-data/DropdownHeader.json +9 -0
  255. package/src/routes/component-data/DropdownItem.json +10 -0
  256. package/src/routes/component-data/Dropzone.json +10 -0
  257. package/src/routes/component-data/Fileupload.json +10 -0
  258. package/src/routes/component-data/FloatingLabelInput.json +14 -0
  259. package/src/routes/component-data/Footer.json +1 -0
  260. package/src/routes/component-data/FooterBrand.json +15 -0
  261. package/src/routes/component-data/FooterCopyright.json +14 -0
  262. package/src/routes/component-data/FooterIcon.json +11 -0
  263. package/src/routes/component-data/FooterLink.json +11 -0
  264. package/src/routes/component-data/FooterLinkGroup.json +1 -0
  265. package/src/routes/component-data/Frame.json +18 -0
  266. package/src/routes/component-data/Gallery.json +9 -0
  267. package/src/routes/component-data/GradientButton.json +9 -0
  268. package/src/routes/component-data/Group.json +11 -0
  269. package/src/routes/component-data/GroupItem.json +13 -0
  270. package/src/routes/component-data/Heading.json +10 -0
  271. package/src/routes/component-data/Heart.json +14 -0
  272. package/src/routes/component-data/Helper.json +9 -0
  273. package/src/routes/component-data/Hr.json +13 -0
  274. package/src/routes/component-data/ImagePlaceholder.json +9 -0
  275. package/src/routes/component-data/Img.json +17 -0
  276. package/src/routes/component-data/Indicator.json +13 -0
  277. package/src/routes/component-data/Indicators.json +9 -0
  278. package/src/routes/component-data/Input.json +13 -0
  279. package/src/routes/component-data/InputAddon.json +1 -0
  280. package/src/routes/component-data/Ios.json +11 -0
  281. package/src/routes/component-data/Kbd.json +1 -0
  282. package/src/routes/component-data/Label.json +10 -0
  283. package/src/routes/component-data/Layout.json +10 -0
  284. package/src/routes/component-data/Li.json +9 -0
  285. package/src/routes/component-data/List.json +10 -0
  286. package/src/routes/component-data/ListPlaceholder.json +1 -0
  287. package/src/routes/component-data/Listgroup.json +10 -0
  288. package/src/routes/component-data/ListgroupItem.json +17 -0
  289. package/src/routes/component-data/Mark.json +10 -0
  290. package/src/routes/component-data/MegaMenu.json +11 -0
  291. package/src/routes/component-data/Menu.json +11 -0
  292. package/src/routes/component-data/Modal.json +17 -0
  293. package/src/routes/component-data/MultiSelect.json +11 -0
  294. package/src/routes/component-data/NavBrand.json +1 -0
  295. package/src/routes/component-data/NavHamburger.json +9 -0
  296. package/src/routes/component-data/NavLi.json +10 -0
  297. package/src/routes/component-data/NavSidebarHamburger.json +9 -0
  298. package/src/routes/component-data/NavUl.json +14 -0
  299. package/src/routes/component-data/Navbar.json +10 -0
  300. package/src/routes/component-data/NumberInput.json +1 -0
  301. package/src/routes/component-data/P.json +19 -0
  302. package/src/routes/component-data/Pagination.json +13 -0
  303. package/src/routes/component-data/PaginationItem.json +12 -0
  304. package/src/routes/component-data/Placeholder.json +1 -0
  305. package/src/routes/component-data/Popover.json +9 -0
  306. package/src/routes/component-data/Popper.json +17 -0
  307. package/src/routes/component-data/Progressbar.json +14 -0
  308. package/src/routes/component-data/Radio.json +13 -0
  309. package/src/routes/component-data/RadioInline.json +1 -0
  310. package/src/routes/component-data/Range.json +9 -0
  311. package/src/routes/component-data/Rating.json +14 -0
  312. package/src/routes/component-data/RatingComment.json +10 -0
  313. package/src/routes/component-data/Review.json +13 -0
  314. package/src/routes/component-data/ScoreRating.json +13 -0
  315. package/src/routes/component-data/Search.json +10 -0
  316. package/src/routes/component-data/Secondary.json +9 -0
  317. package/src/routes/component-data/Select.json +14 -0
  318. package/src/routes/component-data/Sidebar.json +11 -0
  319. package/src/routes/component-data/SidebarBrand.json +11 -0
  320. package/src/routes/component-data/SidebarCta.json +11 -0
  321. package/src/routes/component-data/SidebarDropdownItem.json +12 -0
  322. package/src/routes/component-data/SidebarDropdownWrapper.json +14 -0
  323. package/src/routes/component-data/SidebarGroup.json +10 -0
  324. package/src/routes/component-data/SidebarItem.json +12 -0
  325. package/src/routes/component-data/SidebarMenu.json +11 -0
  326. package/src/routes/component-data/SidebarWrapper.json +1 -0
  327. package/src/routes/component-data/Skeleton.json +9 -0
  328. package/src/routes/component-data/Smartwatch.json +9 -0
  329. package/src/routes/component-data/Span.json +16 -0
  330. package/src/routes/component-data/SpeedDial.json +18 -0
  331. package/src/routes/component-data/SpeedDialButton.json +14 -0
  332. package/src/routes/component-data/Spinner.json +13 -0
  333. package/src/routes/component-data/Star.json +14 -0
  334. package/src/routes/component-data/StepIndicator.json +15 -0
  335. package/src/routes/component-data/TabItem.json +12 -0
  336. package/src/routes/component-data/Table.json +14 -0
  337. package/src/routes/component-data/TableBody.json +1 -0
  338. package/src/routes/component-data/TableBodyCell.json +1 -0
  339. package/src/routes/component-data/TableBodyRow.json +1 -0
  340. package/src/routes/component-data/TableHead.json +9 -0
  341. package/src/routes/component-data/TableHeadCell.json +1 -0
  342. package/src/routes/component-data/TableSearch.json +19 -0
  343. package/src/routes/component-data/Tablet.json +11 -0
  344. package/src/routes/component-data/Tabs.json +13 -0
  345. package/src/routes/component-data/TestimonialPlaceholder.json +1 -0
  346. package/src/routes/component-data/TextPlaceholder.json +9 -0
  347. package/src/routes/component-data/Textarea.json +11 -0
  348. package/src/routes/component-data/Thumbnail.json +10 -0
  349. package/src/routes/component-data/Thumbnails.json +9 -0
  350. package/src/routes/component-data/Thumbup.json +14 -0
  351. package/src/routes/component-data/Timeline.json +1 -0
  352. package/src/routes/component-data/TimelineHorizontal.json +1 -0
  353. package/src/routes/component-data/TimelineItem.json +10 -0
  354. package/src/routes/component-data/TimelineItemHorizontal.json +19 -0
  355. package/src/routes/component-data/TimelineItemVertical.json +13 -0
  356. package/src/routes/component-data/Toast.json +15 -0
  357. package/src/routes/component-data/Toggle.json +12 -0
  358. package/src/routes/component-data/Toolbar.json +9 -0
  359. package/src/routes/component-data/ToolbarButton.json +12 -0
  360. package/src/routes/component-data/ToolbarGroup.json +1 -0
  361. package/src/routes/component-data/Tooltip.json +9 -0
  362. package/src/routes/component-data/Video.json +12 -0
  363. package/src/routes/component-data/VideoPlaceholder.json +9 -0
  364. package/src/routes/component-data/VoiceSearch.json +16 -0
  365. package/src/routes/component-data/WidgetPlaceholder.json +1 -0
  366. package/src/routes/component-data/Wrapper.json +10 -0
  367. package/src/routes/component-data/backdrop.json +9 -0
  368. package/src/routes/component-data/clickOutside.json +1 -0
  369. package/src/routes/component-data/createEventDispatcher.json +1 -0
  370. package/src/routes/component-data/focusTrap.json +1 -0
  371. package/src/routes/component-data/generateId.json +1 -0
  372. package/src/routes/component-data/index.json +1 -0
  373. package/src/routes/component-data/types.json +1 -0
  374. package/src/routes/docs/+layout.js +10 -0
  375. package/src/routes/docs/+layout.svelte +74 -0
  376. package/src/routes/docs/components/[slug]/+page.js +13 -0
  377. package/src/routes/docs/components/[slug]/+page.svelte +6 -0
  378. package/src/routes/docs/components/accordion.md +315 -0
  379. package/src/routes/docs/components/alert.md +342 -0
  380. package/src/routes/docs/components/avatar.md +215 -0
  381. package/src/routes/docs/components/badge.md +269 -0
  382. package/src/routes/docs/components/banner.md +166 -0
  383. package/src/routes/docs/components/bottom-navigation.md +397 -0
  384. package/src/routes/docs/components/breadcrumb.md +112 -0
  385. package/src/routes/docs/components/button-group.md +198 -0
  386. package/src/routes/docs/components/button.md +314 -0
  387. package/src/routes/docs/components/card.md +423 -0
  388. package/src/routes/docs/components/carousel.md +242 -0
  389. package/src/routes/docs/components/darkmode.md +111 -0
  390. package/src/routes/docs/components/device-mockups.md +212 -0
  391. package/src/routes/docs/components/drawer.md +638 -0
  392. package/src/routes/docs/components/dropdown.md +748 -0
  393. package/src/routes/docs/components/footer.md +268 -0
  394. package/src/routes/docs/components/forms.md +254 -0
  395. package/src/routes/docs/components/gallery.md +230 -0
  396. package/src/routes/docs/components/imageData/+server.js +43 -0
  397. package/src/routes/docs/components/indicators.md +273 -0
  398. package/src/routes/docs/components/kbd.md +248 -0
  399. package/src/routes/docs/components/list-group.md +157 -0
  400. package/src/routes/docs/components/mega-menu.md +298 -0
  401. package/src/routes/docs/components/modal.md +413 -0
  402. package/src/routes/docs/components/navbar.md +342 -0
  403. package/src/routes/docs/components/pagination.md +350 -0
  404. package/src/routes/docs/components/popover.md +388 -0
  405. package/src/routes/docs/components/progress.md +170 -0
  406. package/src/routes/docs/components/rating.md +326 -0
  407. package/src/routes/docs/components/sidebar.md +568 -0
  408. package/src/routes/docs/components/skeleton.md +165 -0
  409. package/src/routes/docs/components/speed-dial.md +523 -0
  410. package/src/routes/docs/components/spinner.md +117 -0
  411. package/src/routes/docs/components/tab.md +341 -0
  412. package/src/routes/docs/components/table.md +871 -0
  413. package/src/routes/docs/components/timeline.md +267 -0
  414. package/src/routes/docs/components/toast.md +362 -0
  415. package/src/routes/docs/components/tooltip.md +156 -0
  416. package/src/routes/docs/components/typography.md +158 -0
  417. package/src/routes/docs/components/video.md +125 -0
  418. package/src/routes/docs/examples/[slug]/+page.js +13 -0
  419. package/src/routes/docs/examples/[slug]/+page.svelte +6 -0
  420. package/src/routes/docs/examples/sidebar-layout.md +20 -0
  421. package/src/routes/docs/examples/snapshot.md +59 -0
  422. package/src/routes/docs/examples/testsnap.svelte +49 -0
  423. package/src/routes/docs/experimental/[slug]/+page.js +13 -0
  424. package/src/routes/docs/experimental/[slug]/+page.svelte +6 -0
  425. package/src/routes/docs/experimental/datepicker.md +131 -0
  426. package/src/routes/docs/extend/CheckCircle.svelte +3 -0
  427. package/src/routes/docs/extend/[slug]/+page.js +13 -0
  428. package/src/routes/docs/extend/[slug]/+page.svelte +6 -0
  429. package/src/routes/docs/extend/flowbite-svelte-blocks.md +28 -0
  430. package/src/routes/docs/extend/flowbite-svelte-starter.md +34 -0
  431. package/src/routes/docs/extend/icons.md +204 -0
  432. package/src/routes/docs/extend/step-indicator.md +162 -0
  433. package/src/routes/docs/forms/[slug]/+page.js +13 -0
  434. package/src/routes/docs/forms/[slug]/+page.svelte +6 -0
  435. package/src/routes/docs/forms/checkbox.md +329 -0
  436. package/src/routes/docs/forms/file-input.md +171 -0
  437. package/src/routes/docs/forms/floating-label.md +176 -0
  438. package/src/routes/docs/forms/input-field.md +398 -0
  439. package/src/routes/docs/forms/radio.md +303 -0
  440. package/src/routes/docs/forms/range.md +110 -0
  441. package/src/routes/docs/forms/search-input.md +133 -0
  442. package/src/routes/docs/forms/select.md +280 -0
  443. package/src/routes/docs/forms/textarea.md +142 -0
  444. package/src/routes/docs/forms/toggle.md +86 -0
  445. package/src/routes/docs/pages/[slug]/+page.js +13 -0
  446. package/src/routes/docs/pages/[slug]/+page.svelte +6 -0
  447. package/src/routes/docs/pages/colors.md +152 -0
  448. package/src/routes/docs/pages/compiler-speed.md +116 -0
  449. package/src/routes/docs/pages/customization.md +103 -0
  450. package/src/routes/docs/pages/how-to-contribute.md +138 -0
  451. package/src/routes/docs/pages/ide-support.md +19 -0
  452. package/src/routes/docs/pages/introduction.md +131 -0
  453. package/src/routes/docs/pages/license.md +22 -0
  454. package/src/routes/docs/pages/quickstart.md +128 -0
  455. package/src/routes/docs/pages/typescript.md +25 -0
  456. package/src/routes/docs/plugins/[slug]/+page.js +13 -0
  457. package/src/routes/docs/plugins/[slug]/+page.svelte +6 -0
  458. package/src/routes/docs/plugins/charts.md +990 -0
  459. package/src/routes/docs/typography/[slug]/+page.js +13 -0
  460. package/src/routes/docs/typography/[slug]/+page.svelte +6 -0
  461. package/src/routes/docs/typography/blockquote.md +214 -0
  462. package/src/routes/docs/typography/heading.md +270 -0
  463. package/src/routes/docs/typography/hr.md +115 -0
  464. package/src/routes/docs/typography/image.md +244 -0
  465. package/src/routes/docs/typography/link.md +147 -0
  466. package/src/routes/docs/typography/list.md +358 -0
  467. package/src/routes/docs/typography/paragraph.md +265 -0
  468. package/src/routes/docs/typography/text.md +340 -0
  469. package/src/routes/docs/utilities/[slug]/+page.js +13 -0
  470. package/src/routes/docs/utilities/[slug]/+page.svelte +6 -0
  471. package/src/routes/docs/utilities/close-button.md +42 -0
  472. package/src/routes/docs/utilities/label.md +41 -0
  473. package/src/routes/docs/utilities/toolbar.md +157 -0
  474. package/src/routes/landing/CTA.svelte +98 -0
  475. package/src/routes/landing/Components.svelte +42 -0
  476. package/src/routes/landing/Contributors.svelte +55 -0
  477. package/src/routes/landing/DesignFigma.svelte +39 -0
  478. package/src/routes/landing/Featured.svelte +33 -0
  479. package/src/routes/landing/GetStarted.svelte +23 -0
  480. package/src/routes/landing/Hero.svelte +38 -0
  481. package/src/routes/landing/SocialProof.svelte +80 -0
  482. package/src/routes/landing/utils/A.svelte +5 -0
  483. package/src/routes/landing/utils/H2.svelte +1 -0
  484. package/src/routes/landing/utils/Row.svelte +16 -0
  485. package/src/routes/landing/utils/Section.svelte +9 -0
  486. package/src/routes/layouts/component/+page.svelte +44 -0
  487. package/src/routes/layouts/component/Anchor.svelte +29 -0
  488. package/src/routes/layouts/component/code.svelte +1 -0
  489. package/src/routes/layouts/component/h1.svelte +0 -0
  490. package/src/routes/layouts/component/h2.svelte +5 -0
  491. package/src/routes/layouts/component/h3.svelte +5 -0
  492. package/src/routes/layouts/testLayout/+page.svelte +5 -0
  493. package/src/routes/utils/AlgoliaSearch.svelte +22 -0
  494. package/src/routes/utils/CompoAttributesViewer.svelte +78 -0
  495. package/src/routes/utils/CompoCard.svelte +36 -0
  496. package/src/routes/utils/CompoDescription.svelte +7 -0
  497. package/src/routes/utils/CopyCliboardInput.svelte +45 -0
  498. package/src/routes/utils/DocBadge.svelte +7 -0
  499. package/src/routes/utils/DocBadgeList.svelte +10 -0
  500. package/src/routes/utils/ExampleDarkMode.svelte +16 -0
  501. package/src/routes/utils/ExampleWrapper.svelte +143 -0
  502. package/src/routes/utils/Footer.svelte +64 -0
  503. package/src/routes/utils/GitHubSource.svelte +13 -0
  504. package/src/routes/utils/GitHubSourceList.svelte +21 -0
  505. package/src/routes/utils/MetaTag.svelte +42 -0
  506. package/src/routes/utils/Newsletter.svelte +52 -0
  507. package/src/routes/utils/PageHeadSection.svelte +20 -0
  508. package/src/routes/utils/Paging.svelte +60 -0
  509. package/src/routes/utils/TableDefaultRow.svelte +81 -0
  510. package/src/routes/utils/TableProp.svelte +41 -0
  511. package/src/routes/utils/Toc.svelte +55 -0
  512. package/src/routes/utils/ToolbarLink.svelte +12 -0
  513. package/src/routes/utils/data.json +48 -0
  514. package/src/routes/utils/icons/Angular.svelte +3 -0
  515. package/src/routes/utils/icons/ArrowLeft.svelte +3 -0
  516. package/src/routes/utils/icons/ArrowRight.svelte +3 -0
  517. package/src/routes/utils/icons/Check.svelte +3 -0
  518. package/src/routes/utils/icons/China.svelte +9 -0
  519. package/src/routes/utils/icons/Clipboard.svelte +3 -0
  520. package/src/routes/utils/icons/CoinbaseWallet.svelte +4 -0
  521. package/src/routes/utils/icons/Combinator.svelte +35 -0
  522. package/src/routes/utils/icons/Community.svelte +5 -0
  523. package/src/routes/utils/icons/Dev.svelte +9 -0
  524. package/src/routes/utils/icons/Discord.svelte +5 -0
  525. package/src/routes/utils/icons/Dribble.svelte +3 -0
  526. package/src/routes/utils/icons/Figma.svelte +14 -0
  527. package/src/routes/utils/icons/FlowbiteLogo.svelte +49 -0
  528. package/src/routes/utils/icons/Fortmatic.svelte +4 -0
  529. package/src/routes/utils/icons/Germany.svelte +5 -0
  530. package/src/routes/utils/icons/GitHub.svelte +13 -0
  531. package/src/routes/utils/icons/Hunt.svelte +17 -0
  532. package/src/routes/utils/icons/Italy.svelte +7 -0
  533. package/src/routes/utils/icons/Mail.svelte +4 -0
  534. package/src/routes/utils/icons/MetaMask.svelte +31 -0
  535. package/src/routes/utils/icons/Moon.svelte +3 -0
  536. package/src/routes/utils/icons/Npm.svelte +3 -0
  537. package/src/routes/utils/icons/OperaWallet.svelte +17 -0
  538. package/src/routes/utils/icons/Quote.svelte +3 -0
  539. package/src/routes/utils/icons/React.svelte +4 -0
  540. package/src/routes/utils/icons/Reddit.svelte +23 -0
  541. package/src/routes/utils/icons/Sun.svelte +7 -0
  542. package/src/routes/utils/icons/Usa.svelte +31 -0
  543. package/src/routes/utils/icons/Vue.svelte +3 -0
  544. package/src/routes/utils/icons/WalletConnect.svelte +18 -0
  545. package/src/routes/utils/icons/YouTube.svelte +3 -0
  546. package/src/routes/utils/icons/YouTubeFull.svelte +17 -0
  547. package/src/routes/utils/index.ts +146 -0
  548. package/src/routes/utils/mdsvex.d.ts +8 -0
  549. package/static/images/alert-prop.png +0 -0
  550. package/static/images/carousel/cosmic-timetraveler-pYyOZ8q7AII-unsplash.webp +0 -0
  551. package/static/images/carousel/cristina-gottardi-CSpjU6hYo_0-unsplash.webp +0 -0
  552. package/static/images/carousel/johannes-plenio-RwHv7LgeC7s-unsplash.webp +0 -0
  553. package/static/images/carousel/jonatan-pie-3l3RwQdHRHg-unsplash.webp +0 -0
  554. package/static/images/carousel/mark-harpur-K2s_YE031CA-unsplash.webp +0 -0
  555. package/static/images/carousel/pietro-de-grandi-T7K4aEPoGGk-unsplash.webp +0 -0
  556. package/static/images/carousel/sergey-pesterev-tMvuB9se2uQ-unsplash.webp +0 -0
  557. package/static/images/carousel/solotravelgoals-7kLufxYoqWk-unsplash.webp +0 -0
  558. package/static/images/carousel-1.svg +4 -0
  559. package/static/images/carousel-2.svg +4 -0
  560. package/static/images/carousel-3.svg +4 -0
  561. package/static/images/carousel-4.svg +4 -0
  562. package/static/images/carousel-5.svg +4 -0
  563. package/static/images/code-example-dark.png +0 -0
  564. package/static/images/code-example.png +0 -0
  565. package/static/images/colors.webp +0 -0
  566. package/static/images/components/accordion-dark.svg +40 -0
  567. package/static/images/components/accordion.svg +40 -0
  568. package/static/images/components/alert-dark.svg +11 -0
  569. package/static/images/components/alert.svg +11 -0
  570. package/static/images/components/avatar-dark.svg +117 -0
  571. package/static/images/components/avatar.svg +117 -0
  572. package/static/images/components/badge-dark.svg +5 -0
  573. package/static/images/components/badge.svg +5 -0
  574. package/static/images/components/banner-dark.svg +34 -0
  575. package/static/images/components/banner.svg +33 -0
  576. package/static/images/components/bottom-navigation-dark.svg +44 -0
  577. package/static/images/components/bottom-navigation.svg +43 -0
  578. package/static/images/components/breadcrumb-dark.svg +7 -0
  579. package/static/images/components/breadcrumb.svg +7 -0
  580. package/static/images/components/button-dark.svg +10 -0
  581. package/static/images/components/button-group-dark.svg +10 -0
  582. package/static/images/components/button-group.svg +10 -0
  583. package/static/images/components/button.svg +10 -0
  584. package/static/images/components/card-dark.svg +31 -0
  585. package/static/images/components/card.svg +32 -0
  586. package/static/images/components/carousel-dark.svg +13 -0
  587. package/static/images/components/carousel.svg +13 -0
  588. package/static/images/components/charts-dark.svg +29 -0
  589. package/static/images/components/charts.svg +29 -0
  590. package/static/images/components/darkmode-dark.svg +7 -0
  591. package/static/images/components/darkmode.svg +3 -0
  592. package/static/images/components/device-mockups-dark.svg +17 -0
  593. package/static/images/components/device-mockups.svg +17 -0
  594. package/static/images/components/drawer-dark.svg +32 -0
  595. package/static/images/components/drawer.svg +32 -0
  596. package/static/images/components/dropdown-dark.svg +35 -0
  597. package/static/images/components/dropdown.svg +35 -0
  598. package/static/images/components/footer-dark.svg +52 -0
  599. package/static/images/components/footer.svg +50 -0
  600. package/static/images/components/forms-dark.svg +64 -0
  601. package/static/images/components/forms.svg +64 -0
  602. package/static/images/components/gallery-dark.svg +14 -0
  603. package/static/images/components/gallery.svg +14 -0
  604. package/static/images/components/indicators-dark.svg +38 -0
  605. package/static/images/components/indicators.svg +38 -0
  606. package/static/images/components/jumbotron-dark.svg +13 -0
  607. package/static/images/components/jumbotron.svg +13 -0
  608. package/static/images/components/kbd-dark.svg +460 -0
  609. package/static/images/components/kbd.svg +462 -0
  610. package/static/images/components/list-group-dark.svg +58 -0
  611. package/static/images/components/list-group.svg +58 -0
  612. package/static/images/components/mega-menu-dark.svg +71 -0
  613. package/static/images/components/mega-menu.svg +71 -0
  614. package/static/images/components/modal-dark.svg +32 -0
  615. package/static/images/components/modal.svg +33 -0
  616. package/static/images/components/navbar-dark.svg +78 -0
  617. package/static/images/components/navbar.svg +78 -0
  618. package/static/images/components/pagination-dark.svg +50 -0
  619. package/static/images/components/pagination.svg +50 -0
  620. package/static/images/components/popover-dark.svg +18 -0
  621. package/static/images/components/popover.svg +17 -0
  622. package/static/images/components/progress-dark.svg +10 -0
  623. package/static/images/components/progress.svg +10 -0
  624. package/static/images/components/rating-dark.svg +29 -0
  625. package/static/images/components/rating.svg +29 -0
  626. package/static/images/components/sidebar-dark.svg +17 -0
  627. package/static/images/components/sidebar.svg +18 -0
  628. package/static/images/components/skeleton-dark.svg +10 -0
  629. package/static/images/components/skeleton.svg +10 -0
  630. package/static/images/components/speed-dial-dark.svg +69 -0
  631. package/static/images/components/speed-dial.svg +69 -0
  632. package/static/images/components/spinner-dark.svg +6 -0
  633. package/static/images/components/spinner.svg +6 -0
  634. package/static/images/components/stepper-dark.svg +11 -0
  635. package/static/images/components/stepper.svg +10 -0
  636. package/static/images/components/tab-dark.svg +10 -0
  637. package/static/images/components/tab.svg +10 -0
  638. package/static/images/components/table-dark.svg +47 -0
  639. package/static/images/components/table.svg +47 -0
  640. package/static/images/components/timeline-dark.svg +20 -0
  641. package/static/images/components/timeline.svg +20 -0
  642. package/static/images/components/toast-dark.svg +49 -0
  643. package/static/images/components/toast.svg +49 -0
  644. package/static/images/components/tooltip-dark.svg +7 -0
  645. package/static/images/components/tooltip.svg +7 -0
  646. package/static/images/components/typography-dark.svg +13 -0
  647. package/static/images/components/typography.svg +13 -0
  648. package/static/images/components/video-dark.svg +4 -0
  649. package/static/images/components/video.svg +4 -0
  650. package/static/images/eugene.jpg +0 -0
  651. package/static/images/examples/content-gallery-3.png +0 -0
  652. package/static/images/examples/image-1.jpg +0 -0
  653. package/static/images/examples/image-1@2x.jpg +0 -0
  654. package/static/images/examples/image-2@2x.jpg +0 -0
  655. package/static/images/examples/image-3@2x.jpg +0 -0
  656. package/static/images/examples/image-4@2x.jpg +0 -0
  657. package/static/images/experimental/datepicker-dark.svg +67 -0
  658. package/static/images/experimental/datepicker.svg +67 -0
  659. package/static/images/favicon.png +0 -0
  660. package/static/images/favicon.svg +49 -0
  661. package/static/images/figma-dark.png +0 -0
  662. package/static/images/figma.png +0 -0
  663. package/static/images/flowbite-svelte-blocks-optimized.png +0 -0
  664. package/static/images/flowbite-svelte-icon-logo.svg +49 -0
  665. package/static/images/flowbite-svelte-icon.svg +49 -0
  666. package/static/images/flowbite-svelte-og-image.png +0 -0
  667. package/static/images/flowbite-svelte.png +0 -0
  668. package/static/images/forms/checkbox-dark.svg +14 -0
  669. package/static/images/forms/checkbox.svg +14 -0
  670. package/static/images/forms/file-input-dark.svg +59 -0
  671. package/static/images/forms/file-input.svg +46 -0
  672. package/static/images/forms/floating-label-dark.svg +11 -0
  673. package/static/images/forms/floating-label.svg +11 -0
  674. package/static/images/forms/input-field-dark.svg +65 -0
  675. package/static/images/forms/input-field.svg +66 -0
  676. package/static/images/forms/radio-dark.svg +14 -0
  677. package/static/images/forms/radio.svg +12 -0
  678. package/static/images/forms/range-dark.svg +38 -0
  679. package/static/images/forms/range.svg +38 -0
  680. package/static/images/forms/search-input-dark.svg +82 -0
  681. package/static/images/forms/search-input.svg +82 -0
  682. package/static/images/forms/select-dark.svg +64 -0
  683. package/static/images/forms/select.svg +64 -0
  684. package/static/images/forms/textarea-dark.svg +16 -0
  685. package/static/images/forms/textarea.svg +16 -0
  686. package/static/images/forms/toggle-dark.svg +12 -0
  687. package/static/images/forms/toggle.svg +12 -0
  688. package/static/images/gallery-dark.png +0 -0
  689. package/static/images/gallery.png +0 -0
  690. package/static/images/graphs-dark.png +0 -0
  691. package/static/images/graphs.png +0 -0
  692. package/static/images/image-1.jpeg +0 -0
  693. package/static/images/image-1.png +0 -0
  694. package/static/images/image-1.webp +0 -0
  695. package/static/images/image-2.jpeg +0 -0
  696. package/static/images/image-2.png +0 -0
  697. package/static/images/image-2.webp +0 -0
  698. package/static/images/image-4.jpeg +0 -0
  699. package/static/images/image-4.png +0 -0
  700. package/static/images/image-4.webp +0 -0
  701. package/static/images/italy.png +0 -0
  702. package/static/images/nature-1.jpeg +0 -0
  703. package/static/images/office1.webp +0 -0
  704. package/static/images/product-1.webp +0 -0
  705. package/static/images/profile-picture-1.webp +0 -0
  706. package/static/images/profile-picture-2.webp +0 -0
  707. package/static/images/profile-picture-3.webp +0 -0
  708. package/static/images/profile-picture-4.webp +0 -0
  709. package/static/images/profile-picture-5.webp +0 -0
  710. package/static/images/sveltekit-sidebar-layout-optimized.png +0 -0
  711. package/static/images/tailwind-code-dark.png +0 -0
  712. package/static/images/tailwind-code.png +0 -0
  713. package/static/images/typography/blockquote-dark.svg +8 -0
  714. package/static/images/typography/blockquote.svg +8 -0
  715. package/static/images/typography/heading-dark.svg +5 -0
  716. package/static/images/typography/heading.svg +5 -0
  717. package/static/images/typography/hr-dark.svg +7 -0
  718. package/static/images/typography/hr.svg +7 -0
  719. package/static/images/typography/image-dark.svg +6 -0
  720. package/static/images/typography/image.svg +6 -0
  721. package/static/images/typography/link-dark.svg +4 -0
  722. package/static/images/typography/link.svg +4 -0
  723. package/static/images/typography/list-dark.svg +26 -0
  724. package/static/images/typography/list.svg +26 -0
  725. package/static/images/typography/paragraph-dark.svg +13 -0
  726. package/static/images/typography/paragraph.svg +13 -0
  727. package/static/images/typography/text-dark.svg +11 -0
  728. package/static/images/typography/text.svg +11 -0
  729. package/static/site.webmanifest +12 -0
  730. package/static/styles/docs.css +537 -0
  731. package/static/videos/compo-doc.gif +0 -0
  732. package/static/videos/flowbite.mp4 +0 -0
  733. package/svelte.config.js +28 -0
  734. package/tailwind.config.cjs +89 -0
  735. package/tests/components.spec.ts +199 -0
  736. package/tests/examples.spec.ts +11 -0
  737. package/tests/extend.spec.ts +19 -0
  738. package/tests/forms.spec.ts +62 -0
  739. package/tests/page.spec.ts +46 -0
  740. package/tests/plugins.spec.ts +7 -0
  741. package/tests/redirect.spec.ts +175 -0
  742. package/tests/typography.spec.ts +52 -0
  743. package/tests/utilities.spec.ts +22 -0
  744. package/tsconfig.json +21 -0
  745. package/vite.config.ts +22 -0
  746. package/vite.config.ts.timestamp-1692816833518-844de2c3e2008.mjs +22 -0
  747. package/dist/carousels/Caption.svelte +0 -17
  748. package/dist/carousels/Caption.svelte.d.ts +0 -26
  749. package/dist/carousels/Caption.svelte.d.ts.map +0 -1
  750. package/dist/carousels/CarouselTransition.svelte +0 -174
  751. package/dist/carousels/CarouselTransition.svelte.d.ts +0 -68
  752. package/dist/carousels/CarouselTransition.svelte.d.ts.map +0 -1
  753. package/dist/carousels/Indicator.svelte +0 -20
  754. package/dist/carousels/Indicator.svelte.d.ts +0 -28
  755. package/dist/carousels/Indicator.svelte.d.ts.map +0 -1
  756. package/dist/carousels/Slide.svelte +0 -23
  757. package/dist/carousels/Slide.svelte.d.ts +0 -30
  758. package/dist/carousels/Slide.svelte.d.ts.map +0 -1
@@ -0,0 +1,423 @@
1
+ ---
2
+ layout: componentLayout
3
+ title: Svelte Cards - Flowbite
4
+ breadcrumb_title: Svelte Card
5
+ component_title: Cards
6
+ dir: Components
7
+ description: Get started with a large variety of Tailwind CSS card examples for your web project
8
+ thumnailSize: w-36
9
+ ---
10
+
11
+ <script>
12
+ import { TableProp, TableDefaultRow, CompoAttributesViewer } from '../../utils'
13
+ import { P, A } from '$lib'
14
+
15
+ const components = 'Card, Frame'
16
+ </script>
17
+
18
+ Use these responsive card components to show data entries and information to your users in multiple forms and contexts such as for your blog, application, user profiles, and more.
19
+
20
+ ## Set up
21
+
22
+ Import Card in the script tag.
23
+
24
+ ```svelte example hideOutput
25
+ <script>
26
+ import { Card } from 'flowbite-svelte';
27
+ </script>
28
+ ```
29
+
30
+ ## Default card
31
+
32
+ Use the following simple card component with a title and description. Notice the `href` prop set, as that card is one big `<a/>` element.
33
+
34
+ ```svelte example class="flex justify-center flex-wrap gap-2" hideScript
35
+ <script>
36
+ import { Card } from 'flowbite-svelte';
37
+ </script>
38
+
39
+ <Card href="/cards">
40
+ <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">Noteworthy technology acquisitions 2021</h5>
41
+ <p class="font-normal text-gray-700 dark:text-gray-400 leading-tight">Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.</p>
42
+ </Card>
43
+ ```
44
+
45
+ ## Card with action button
46
+
47
+ Use the following example of a card element if you also want to have an action button.
48
+
49
+ ```svelte example class="flex justify-center flex-wrap gap-2"
50
+ <script>
51
+ import { Card, Button } from 'flowbite-svelte';
52
+ import { ArrowRightOutline } from 'flowbite-svelte-icons';
53
+ </script>
54
+
55
+ <Card>
56
+ <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">Noteworthy technology acquisitions 2021</h5>
57
+ <p class="mb-3 font-normal text-gray-700 dark:text-gray-400 leading-tight">Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.</p>
58
+ <Button class="w-fit">
59
+ Read more <ArrowRightOutline class="w-3.5 h-3.5 ml-2 text-white" />
60
+ </Button>
61
+ </Card>
62
+ ```
63
+
64
+ ## Card with link
65
+
66
+ This example can be used to show a CTA as a link instead of a button inside the card.
67
+
68
+ ```svelte example class="flex justify-center flex-wrap gap-2"
69
+ <script>
70
+ import { Card } from 'flowbite-svelte';
71
+ import { GiftBoxSolid, ArrowUpRightFromSquareOutline } from 'flowbite-svelte-icons';
72
+ </script>
73
+
74
+ <Card>
75
+ <GiftBoxSolid class="w-7 h-7 mb-3 text-gray-500 dark:text-gray-400" />
76
+ <a href="/">
77
+ <h5 class="mb-2 text-2xl font-semibold tracking-tight text-gray-900 dark:text-white">Need a help in Claim?</h5>
78
+ </a>
79
+ <p class="mb-3 font-normal text-gray-500 dark:text-gray-400">Go to this step by step guideline process on how to certify for your weekly benefits:</p>
80
+ <a href="/" class="inline-flex items-center text-primary-600 hover:underline">
81
+ See our guideline
82
+ <ArrowUpRightFromSquareOutline class="w-3 h-3 ml-2.5" />
83
+ </a>
84
+ </Card>
85
+ ```
86
+
87
+ ## Card with image
88
+
89
+ User <code>reverse={true}</code> to reverse the position of an image.
90
+
91
+ You can use the following example of a card element with an image for blog posts, user cards, and many more.
92
+
93
+ ```svelte example class="flex justify-center flex-wrap gap-2"
94
+ <script>
95
+ import { Card, Button, Toggle } from 'flowbite-svelte';
96
+ import { ArrowRightOutline } from 'flowbite-svelte-icons';
97
+ let vCard = false;
98
+ </script>
99
+
100
+ <div>
101
+ <Card img="/images/image-1.webp" reverse={vCard} class="mb-4">
102
+ <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">Noteworthy technology acquisitions 2021</h5>
103
+ <p class="mb-3 font-normal text-gray-700 dark:text-gray-400 leading-tight">Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.</p>
104
+ <Button>
105
+ Read more <ArrowRightOutline class="w-3.5 h-3.5 ml-2 text-white" />
106
+ </Button>
107
+ </Card>
108
+ <Toggle bind:checked={vCard} class="italic dark:text-gray-500">Reverse</Toggle>
109
+ </div>
110
+ ```
111
+
112
+ ## Horizontal card
113
+
114
+ If you want to spice up your cards you can use the following card which has its child elements aligned horizontally.
115
+
116
+ ```svelte example class="flex justify-center flex-wrap gap-2"
117
+ <script>
118
+ import { Card, Button, Toggle } from 'flowbite-svelte';
119
+ let hCard = false;
120
+ </script>
121
+
122
+ <div>
123
+ <Card img="/images/image-1.webp" href="/" horizontal reverse={hCard} class="mb-4">
124
+ <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">Noteworthy technology acquisitions 2021</h5>
125
+ <p class="mb-3 font-normal text-gray-700 dark:text-gray-400 leading-tight">Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.</p>
126
+ </Card>
127
+ <Toggle bind:checked={hCard} class="italic dark:text-gray-500">Reverse</Toggle>
128
+ </div>
129
+ ```
130
+
131
+ ## User profile card
132
+
133
+ Use this user profile card example if you want to show a dropdown menu and buttons to enable multiple actions from your user.
134
+
135
+ ```svelte example class="flex justify-center flex-wrap gap-2"
136
+ <script>
137
+ import { Card, Dropdown, DropdownItem, Avatar, Button } from 'flowbite-svelte';
138
+ import { DotsHorizontalOutline } from 'flowbite-svelte-icons';
139
+ </script>
140
+
141
+ <Card padding="sm">
142
+ <div class="flex justify-end">
143
+ <DotsHorizontalOutline />
144
+ <Dropdown class="w-36">
145
+ <DropdownItem>Edit</DropdownItem>
146
+ <DropdownItem>Export data</DropdownItem>
147
+ <DropdownItem>Delete</DropdownItem>
148
+ </Dropdown>
149
+ </div>
150
+ <div class="flex flex-col items-center pb-4">
151
+ <Avatar size="lg" src="/images/profile-picture-3.webp" />
152
+ <h5 class="mb-1 text-xl font-medium text-gray-900 dark:text-white">Bonnie Green</h5>
153
+ <span class="text-sm text-gray-500 dark:text-gray-400">Visual Designer</span>
154
+ <div class="flex mt-4 space-x-3 lg:mt-6">
155
+ <Button>Add friend</Button>
156
+ <Button color="light" class="dark:text-white">Message</Button>
157
+ </div>
158
+ </div>
159
+ </Card>
160
+ ```
161
+
162
+ ## Card with form inputs
163
+
164
+ Use this card example where you can add form input elements that can be used for authentication actions or any other context where you need to receive information from your users.
165
+
166
+ ```svelte example class="flex justify-center flex-wrap gap-2"
167
+ <script>
168
+ import { Card, Button, Label, Input, Checkbox } from 'flowbite-svelte';
169
+ </script>
170
+
171
+ <Card class="w-full max-w-md">
172
+ <form class="flex flex-col space-y-6" action="/">
173
+ <h3 class="text-xl font-medium text-gray-900 dark:text-white">Sign in to our platform</h3>
174
+ <Label class="space-y-2">
175
+ <span>Email</span>
176
+ <Input type="email" name="email" placeholder="name@company.com" required />
177
+ </Label>
178
+ <Label class="space-y-2">
179
+ <span>Your password</span>
180
+ <Input type="password" name="password" placeholder="•••••" required />
181
+ </Label>
182
+ <div class="flex items-start">
183
+ <Checkbox>Remember me</Checkbox>
184
+ <a href="/" class="ml-auto text-sm text-primary-700 hover:underline dark:text-primary-500"> Lost password? </a>
185
+ </div>
186
+ <Button type="submit" class="w-full">Login to your account</Button>
187
+ <div class="text-sm font-medium text-gray-500 dark:text-gray-300">
188
+ Not registered? <a href="/" class="text-primary-700 hover:underline dark:text-primary-500"> Create account </a>
189
+ </div>
190
+ </form>
191
+ </Card>
192
+ ```
193
+
194
+ ## E-commerce card
195
+
196
+ Use this card for your e-commerce websites and show information about the products and enable actions such as adding a review and adding the product to the cart.
197
+
198
+ ```svelte example class="flex justify-center flex-wrap gap-2"
199
+ <script>
200
+ import { Card, Button, Rating, Badge } from 'flowbite-svelte';
201
+ </script>
202
+
203
+ <Card padding="none">
204
+ <a href="/">
205
+ <img class="p-8 rounded-t-lg" src="/images/product-1.webp" alt="product 1" />
206
+ </a>
207
+ <div class="px-5 pb-5">
208
+ <a href="/">
209
+ <h5 class="text-xl font-semibold tracking-tight text-gray-900 dark:text-white">Apple Watch Series 7 GPS, Aluminium Case, Starlight Sport</h5>
210
+ </a>
211
+ <Rating rating="4" size="24" class="mt-2.5 mb-5">
212
+ <Badge slot="text" class="ml-3">4</Badge>
213
+ </Rating>
214
+ <div class="flex justify-between items-center">
215
+ <span class="text-3xl font-bold text-gray-900 dark:text-white">$599</span>
216
+ <Button href="/">Buy now</Button>
217
+ </div>
218
+ </div>
219
+ </Card>
220
+ ```
221
+
222
+ ## Call to action card
223
+
224
+ Use this CTA card example to encourage your users to visit a certain page such as downloading the iOS or Android application for your project.
225
+
226
+ ```svelte example class="flex justify-center flex-wrap gap-2"
227
+ <script>
228
+ import { Card, Button } from 'flowbite-svelte';
229
+ </script>
230
+
231
+ <Card class="text-center" size="lg" padding="xl">
232
+ <h5 class="mb-2 text-3xl font-bold text-gray-900 dark:text-white">Work fast from anywhere</h5>
233
+ <p class="mb-5 text-base text-gray-500 sm:text-lg dark:text-gray-400">Stay up to date and move work forward with Flowbite on iOS & Android. Download the app today.</p>
234
+ <div class="justify-center items-center space-y-4 sm:flex sm:space-y-0 sm:space-x-4">
235
+ <Button>Download it</Button>
236
+ <Button>Get it on</Button>
237
+ </div>
238
+ </Card>
239
+ ```
240
+
241
+ ## Card with list
242
+
243
+ Use this card example if you want to show a list of data:
244
+
245
+ ```svelte example class="flex justify-center flex-wrap gap-2"
246
+ <script>
247
+ import { Card, Listgroup, Avatar } from 'flowbite-svelte';
248
+ let list = [
249
+ {
250
+ img: { src: '/images/profile-picture-1.webp', alt: 'Neil Sims' },
251
+ name: 'Neil Sims',
252
+ email: 'email@windster.com',
253
+ value: '$320'
254
+ },
255
+ {
256
+ img: { src: '/images/profile-picture-2.webp', alt: 'Bonnie Green' },
257
+ name: 'Bonnie Green',
258
+ email: 'email@windster.com',
259
+ value: '$3467'
260
+ },
261
+ {
262
+ img: { src: '/images/profile-picture-3.webp', alt: 'Michael Gough' },
263
+ name: 'Michael Gough',
264
+ email: 'email@windster.com',
265
+ value: '$67'
266
+ }
267
+ ];
268
+ </script>
269
+
270
+ <Card padding="xl" size="md">
271
+ <div class="flex justify-between items-center mb-4">
272
+ <h5 class="text-xl font-bold leading-none text-gray-900 dark:text-white">Latest Customers</h5>
273
+ <a href="/" class="text-sm font-medium text-primary-600 hover:underline dark:text-primary-500"> View all </a>
274
+ </div>
275
+ <Listgroup items={list} let:item class="border-0 dark:!bg-transparent">
276
+ <div class="flex items-center space-x-4">
277
+ <Avatar src={item.img.src} alt={item.img.alt} class="flex-shrink-0" />
278
+ <div class="flex-1 min-w-0">
279
+ <p class="text-sm font-medium text-gray-900 truncate dark:text-white">
280
+ {item.name}
281
+ </p>
282
+ <p class="text-sm text-gray-500 truncate dark:text-gray-400">
283
+ {item.email}
284
+ </p>
285
+ </div>
286
+ <div class="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">
287
+ {item.value}
288
+ </div>
289
+ </div>
290
+ </Listgroup>
291
+ </Card>
292
+ ```
293
+
294
+ ## Pricing card
295
+
296
+ Show detailed information to potential customers about your product’s pricing plan, list of features, and a purchase button.
297
+
298
+ ```svelte example class="flex justify-center flex-wrap gap-2"
299
+ <script>
300
+ import { Card, Button } from 'flowbite-svelte';
301
+ import { CheckCircleSolid } from 'flowbite-svelte-icons';
302
+ </script>
303
+
304
+ <Card padding="xl">
305
+ <h5 class="mb-4 text-xl font-medium text-gray-500 dark:text-gray-400">Standard plan</h5>
306
+ <div class="flex items-baseline text-gray-900 dark:text-white">
307
+ <span class="text-3xl font-semibold">$</span>
308
+ <span class="text-5xl font-extrabold tracking-tight">49</span>
309
+ <span class="ml-1 text-xl font-normal text-gray-500 dark:text-gray-400">/month</span>
310
+ </div>
311
+ <!-- List -->
312
+ <ul class="my-7 space-y-4">
313
+ <li class="flex space-x-2">
314
+ <CheckCircleSolid class="w-4 h-4 text-primary-600 dark:text-primary-500" />
315
+ <span class="text-base font-normal leading-tight text-gray-500 dark:text-gray-400"> 2 team members </span>
316
+ </li>
317
+ <li class="flex space-x-2">
318
+ <CheckCircleSolid class="w-4 h-4 text-primary-600 dark:text-primary-500" />
319
+ <span class="text-base font-normal leading-tight text-gray-500 dark:text-gray-400"> 20GB Cloud storage </span>
320
+ </li>
321
+ <li class="flex space-x-2">
322
+ <CheckCircleSolid class="w-4 h-4 text-primary-600 dark:text-primary-500" />
323
+ <span class="text-base font-normal leading-tight text-gray-500 dark:text-gray-400"> Integration help </span>
324
+ </li>
325
+ <li class="flex space-x-2 line-through decoration-gray-500">
326
+ <CheckCircleSolid class="w-4 h-4 text-gray-400 dark:text-gray-500" />
327
+ <span class="text-base font-normal leading-tight text-gray-500">Sketch Files</span>
328
+ </li>
329
+ <li class="flex space-x-2 line-through decoration-gray-500">
330
+ <CheckCircleSolid class="w-4 h-4 text-gray-400 dark:text-gray-500" />
331
+ <span class="text-base font-normal leading-tight text-gray-500">API Access</span>
332
+ </li>
333
+ <li class="flex space-x-2 line-through decoration-gray-500">
334
+ <CheckCircleSolid class="w-4 h-4 text-gray-400 dark:text-gray-500" />
335
+ <span class="text-base font-normal leading-tight text-gray-500">Complete documentation</span>
336
+ </li>
337
+ <li class="flex space-x-2 line-through decoration-gray-500">
338
+ <CheckCircleSolid class="w-4 h-4 text-gray-400 dark:text-gray-500" />
339
+ <span class="text-base font-normal leading-tight text-gray-500">24×7 phone & email support</span>
340
+ </li>
341
+ </ul>
342
+ <Button class="w-full">Choose plan</Button>
343
+ </Card>
344
+ ```
345
+
346
+ ## Testimonial card
347
+
348
+ Use this example to split cards into multiple sections such as for testimonials or reviews.
349
+
350
+ ```svelte example class="flex justify-center flex-wrap gap-2"
351
+ <script>
352
+ import { Card } from 'flowbite-svelte';
353
+ </script>
354
+
355
+ <Card padding="none" size="xl" class="grid md:grid-cols-2">
356
+ <figure class="flex flex-col justify-center items-center p-8 text-center bg-white rounded-t-lg border-b border-gray-200 md:rounded-t-none md:rounded-tl-lg md:border-r dark:bg-gray-800 dark:border-gray-700">
357
+ <blockquote class="mx-auto mb-4 max-w-2xl text-gray-500 dark:text-gray-400">
358
+ <h3 class="text-lg font-semibold text-gray-900 dark:text-white">Very easy this was to integrate</h3>
359
+ <p class="my-4 font-light">If you care for your time, I hands down would go with this."</p>
360
+ </blockquote>
361
+ <figcaption class="flex justify-center items-center space-x-3">
362
+ <img class="w-9 h-9 rounded-full" src="https://flowbite.s3.amazonaws.com/blocks/marketing-ui/avatars/karen-nelson.png" alt="Karen profile" />
363
+ <div class="space-y-0.5 font-medium dark:text-white text-left">
364
+ <div>Bonnie Green</div>
365
+ <div class="text-sm font-light text-gray-500 dark:text-gray-400">Developer at Open AI</div>
366
+ </div>
367
+ </figcaption>
368
+ </figure>
369
+ <figure class="flex flex-col justify-center items-center p-8 text-center bg-white rounded-tr-lg border-b border-gray-200 dark:bg-gray-800 dark:border-gray-700">
370
+ <blockquote class="mx-auto mb-4 max-w-2xl text-gray-500 dark:text-gray-400">
371
+ <h3 class="text-lg font-semibold text-gray-900 dark:text-white">Solid foundation for any project</h3>
372
+ <p class="my-4 font-light">Designing with Figma components that can be easily translated to the utility classes of Tailwind CSS is a huge timesaver!"</p>
373
+ </blockquote>
374
+ <figcaption class="flex justify-center items-center space-x-3">
375
+ <img class="w-9 h-9 rounded-full" src="https://flowbite.s3.amazonaws.com/blocks/marketing-ui/avatars/roberta-casas.png" alt="Robert profile" />
376
+ <div class="space-y-0.5 font-medium dark:text-white text-left">
377
+ <div>Roberta Casas</div>
378
+ <div class="text-sm font-light text-gray-500 dark:text-gray-400">Lead designer at Dropbox</div>
379
+ </div>
380
+ </figcaption>
381
+ </figure>
382
+ <figure class="flex flex-col justify-center items-center p-8 text-center bg-white rounded-bl-lg border-b border-gray-200 md:border-b-0 md:border-r dark:bg-gray-800 dark:border-gray-700">
383
+ <blockquote class="mx-auto mb-4 max-w-2xl text-gray-500 dark:text-gray-400">
384
+ <h3 class="text-lg font-semibold text-gray-900 dark:text-white">Mindblowing workflow</h3>
385
+ <p class="my-4 font-light">Aesthetically, the well designed components are beautiful and will undoubtedly level up your next application."</p>
386
+ </blockquote>
387
+ <figcaption class="flex justify-center items-center space-x-3">
388
+ <img class="w-9 h-9 rounded-full" src="https://flowbite.s3.amazonaws.com/blocks/marketing-ui/avatars/jese-leos.png" alt="Jese profile" />
389
+ <div class="space-y-0.5 font-medium dark:text-white text-left">
390
+ <div>Jese Leos</div>
391
+ <div class="text-sm font-light text-gray-500 dark:text-gray-400">Software Engineer at Facebook</div>
392
+ </div>
393
+ </figcaption>
394
+ </figure>
395
+ <figure class="flex flex-col justify-center items-center p-8 text-center bg-white rounded-b-lg border-gray-200 md:rounded-br-lg dark:bg-gray-800 dark:border-gray-700">
396
+ <blockquote class="mx-auto mb-4 max-w-2xl text-gray-500 dark:text-gray-400">
397
+ <h3 class="text-lg font-semibold text-gray-900 dark:text-white">Efficient Collaborating</h3>
398
+ <p class="my-4 font-light">You have many examples that can be used to create a fast prototype for your team."</p>
399
+ </blockquote>
400
+ <figcaption class="flex justify-center items-center space-x-3">
401
+ <img class="w-9 h-9 rounded-full" src="https://flowbite.s3.amazonaws.com/blocks/marketing-ui/avatars/joseph-mcfall.png" alt="joseph profile" />
402
+ <div class="space-y-0.5 font-medium dark:text-white text-left">
403
+ <div>Joseph McFall</div>
404
+ <div class="text-sm font-light text-gray-500 dark:text-gray-400">CTO at Google</div>
405
+ </div>
406
+ </figcaption>
407
+ </figure>
408
+ </Card>
409
+ ```
410
+
411
+ ## Component data
412
+
413
+ The component has the following props, type, and default values. See [types page](/docs/pages/typescript) for type information.
414
+
415
+ ### Card styling
416
+
417
+ - The Card component uses the Frame component. Use the `class` property to overwrite the default Frame class. The Frame component tag can be either an anchor tag or a div tag depending on the value of the href prop.
418
+
419
+ <CompoAttributesViewer {components}/>
420
+
421
+ ## References
422
+
423
+ - [Flowbite Card](https://flowbite.com/docs/components/card/)
@@ -0,0 +1,242 @@
1
+ ---
2
+ layout: componentLayout
3
+ title: Svelte Carousel - Flowbite
4
+ breadcrumb_title: Svelte Carousel
5
+ component_title: Carousel
6
+ dir: Components
7
+ description: Use the carousel component to slide through multiple elements and images using custom controls, indicators, intervals, and options
8
+ thumnailSize: w-48
9
+ ---
10
+
11
+ <script>
12
+ import { CompoAttributesViewer } from '../../utils'
13
+
14
+ const components = 'Carousel, Indicators, Controls, ControlButton, Thumbnails, Thumbnail';
15
+ </script>
16
+
17
+ The carousel component can be used to cycle through a set of elements using custom options, controls, and indicators.
18
+
19
+ ## Setup
20
+
21
+ ```svelte example hideOutput
22
+ <script>
23
+ import { Carousel } from 'flowbite-svelte';
24
+ // ./imageData/+server.js has the following
25
+ export const images = [
26
+ {
27
+ alt: 'Cosmic timetraveler',
28
+ src: '/images/carousel/cosmic-timetraveler-pYyOZ8q7AII-unsplash.webp',
29
+ title: 'cosmic-timetraveler-pYyOZ8q7AII-unsplash.com'
30
+ },
31
+ {
32
+ alt: 'Cristina Gottardi',
33
+ src: '/images/carousel/cristina-gottardi-CSpjU6hYo_0-unsplash.webp',
34
+ title: 'cristina-gottardi-CSpjU6hYo_0-unsplash.com'
35
+ },
36
+ {
37
+ alt: 'Johannes Plenio',
38
+ src: '/images/carousel/johannes-plenio-RwHv7LgeC7s-unsplash.webp',
39
+ title: 'johannes-plenio-RwHv7LgeC7s-unsplash.com'
40
+ },
41
+ {
42
+ alt: 'Jonatan Pie',
43
+ src: '/images/carousel/jonatan-pie-3l3RwQdHRHg-unsplash.webp',
44
+ title: 'jonatan-pie-3l3RwQdHRHg-unsplash.com'
45
+ },
46
+ {
47
+ alt: 'Mark Harpur',
48
+ src: '/images/carousel/mark-harpur-K2s_YE031CA-unsplash.webp',
49
+ title: 'mark-harpur-K2s_YE031CA-unsplash'
50
+ },
51
+ {
52
+ alt: 'Pietro De Grandi',
53
+ src: '/images/carousel/pietro-de-grandi-T7K4aEPoGGk-unsplash.webp',
54
+ title: 'pietro-de-grandi-T7K4aEPoGGk-unsplash'
55
+ },
56
+ {
57
+ alt: 'Sergey Pesterev',
58
+ src: '/images/carousel/sergey-pesterev-tMvuB9se2uQ-unsplash.webp',
59
+ title: 'sergey-pesterev-tMvuB9se2uQ-unsplash'
60
+ },
61
+ {
62
+ alt: 'Solo travel goals',
63
+ src: '/images/carousel/solotravelgoals-7kLufxYoqWk-unsplash.webp',
64
+ title: 'solotravelgoals-7kLufxYoqWk-unsplash'
65
+ }
66
+ ];
67
+ </script>
68
+ ```
69
+
70
+ ## Default Carousel
71
+
72
+ Set the `duration` prop to define the time interval for chaning images. Time is set in miliseconds.
73
+
74
+ The default value for `duration` is set to zero that means no autochange of images. In that case you can control which image is displayed by the `index` prop.
75
+
76
+ ```svelte example
77
+ <script>
78
+ import { Carousel } from 'flowbite-svelte';
79
+ import { images } from './imageData/+server.js';
80
+ </script>
81
+
82
+ <div class="max-w-4xl">
83
+ <Carousel {images} duration="3000" />
84
+ </div>
85
+ ```
86
+
87
+ ## Controls
88
+
89
+ Use the internal `Controls` component to listen to click events which will trigger the slide event from the carousel component to each direction.
90
+
91
+ You can customize the control elements with the `class` property.
92
+
93
+ ```svelte example
94
+ <script>
95
+ import { Carousel } from 'flowbite-svelte';
96
+ import { images } from './imageData/+server.js';
97
+ </script>
98
+
99
+ <div class="max-w-4xl">
100
+ <Carousel {images} let:Controls>
101
+ <Controls />
102
+ </Carousel>
103
+ </div>
104
+ ```
105
+
106
+ ## Indicators
107
+
108
+ Show the carousel indicators by adding the internal `Indicators` component.
109
+
110
+ ```svelte example
111
+ <script>
112
+ import { Carousel } from 'flowbite-svelte';
113
+ import { images } from './imageData/+server.js';
114
+ </script>
115
+
116
+ <div class="max-w-4xl">
117
+ <Carousel {images} let:Indicators>
118
+ <Indicators />
119
+ </Carousel>
120
+ </div>
121
+ ```
122
+
123
+ ## Thumbnails
124
+
125
+ You can control the `Carousel` component externally by the `index` prop. Here is an example how to use the `Thumbnails` component to achieve that.
126
+
127
+ ```svelte example
128
+ <script>
129
+ import { Carousel, Thumbnails } from 'flowbite-svelte';
130
+ import { images } from './imageData/+server.js';
131
+
132
+ let index = 0;
133
+ </script>
134
+
135
+ <div class="max-w-4xl space-y-4">
136
+ <Carousel {images} let:Indicators let:Controls bind:index>
137
+ <Controls />
138
+ <Indicators />
139
+ </Carousel>
140
+ <Thumbnails {images} bind:index />
141
+ </div>
142
+ ```
143
+
144
+ ## Caption
145
+
146
+ The `Carousel` exposes the `change` event containing info about the currently displayed image. You can use it to build custom caption for the carousel.
147
+
148
+ ```svelte example
149
+ <script>
150
+ import { Carousel } from 'flowbite-svelte';
151
+ import { images } from './imageData/+server.js';
152
+
153
+ let index = 0;
154
+ let image;
155
+ </script>
156
+
157
+ <div class="max-w-4xl space-y-4">
158
+ <Carousel {images} let:Indicators let:Controls on:change={({ detail }) => (image = detail)}>
159
+ <Controls />
160
+ <Indicators />
161
+ </Carousel>
162
+
163
+ <div class="rounded h-10 bg-gray-300 dark:bg-gray-700 dark:text-white p-2 my-2 text-center">
164
+ {image?.alt}
165
+ </div>
166
+ </div>
167
+ ```
168
+
169
+ ## Customization
170
+
171
+ ### Basic customization
172
+
173
+ ```svelte example
174
+ <script>
175
+ import { Carousel } from 'flowbite-svelte';
176
+ import { images } from './imageData/+server.js';
177
+ </script>
178
+
179
+ <div class="max-w-4xl space-y-4">
180
+ <Carousel {images} let:Indicators let:Controls class="rounded-none ring-4 ring-green-500 border-4 border-white dark:border-gray-800">
181
+ <Indicators class="border border-white rounded-md p-2" />
182
+ <Controls class="items-start text-red-400 dark:text-green-400 pt-4" />
183
+ </Carousel>
184
+ </div>
185
+ ```
186
+
187
+ ### Advanced customization
188
+
189
+ ```svelte example
190
+ <script>
191
+ import { Carousel, Thumbnails, Button, Indicator } from 'flowbite-svelte';
192
+ import { CaretRightOutline } from 'flowbite-svelte-icons';
193
+ import { images } from './imageData/+server.js';
194
+ let index = 0;
195
+ </script>
196
+
197
+ <div class="max-w-4xl space-y-4">
198
+ <Carousel {images} let:Indicators let:Controls bind:index>
199
+ <Indicators let:selected let:index>
200
+ <Indicator color={selected ? 'red' : 'green'} class="w-5 h-5 text-white border border-white {selected ? 'opacity-100' : 'opacity-80'}">
201
+ {index}
202
+ </Indicator>
203
+ </Indicators>
204
+ <Controls let:changeSlide let:ControlButton>
205
+ <ControlButton name="Previous" forward={false} on:click={changeSlide(false)} class="bg-red-300/50 dark:bg-red-400/50" />
206
+ <Button pill class="p-2 absolute top-1/2 -translate-y-1/2 right-4 font-bold" on:click={changeSlide(true)}><CaretRightOutline /></Button>
207
+ </Controls>
208
+ </Carousel>
209
+ <Thumbnails class="bg-transparent gap-3" let:Thumbnail let:image let:selected {images} bind:index>
210
+ <Thumbnail {...image} {selected} class="rounded-md shadow-xl hover:outline hover:outline-primary-500" />
211
+ </Thumbnails>
212
+ </div>
213
+ ```
214
+
215
+ ### Carousel transition
216
+
217
+ ```svelte example
218
+ <script>
219
+ import { Carousel } from 'flowbite-svelte';
220
+ import { images } from './imageData/+server.js';
221
+ import { fly } from 'svelte/transition';
222
+
223
+ const myFly = (x) => fly(x, { delay: 250, duration: 900, x: 700 });
224
+ </script>
225
+
226
+ <div class="max-w-4xl">
227
+ <Carousel {images} transition={myFly} let:Controls let:Indicators>
228
+ <Controls />
229
+ <Indicators />
230
+ </Carousel>
231
+ </div>
232
+ ```
233
+
234
+ ## Component data
235
+
236
+ The component has the following props, type, and default values. See [types page](/docs/pages/typescript) for type information.
237
+
238
+ <CompoAttributesViewer {components}/>
239
+
240
+ ## References
241
+
242
+ - [Flowbite Carousel](https://flowbite.com/docs/components/carousel/)