@winkintel/bootstrap-svelte 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (471) hide show
  1. package/LICENSE.md +202 -0
  2. package/README.md +221 -0
  3. package/dist/Accordion/accordion-body.svelte +8 -0
  4. package/dist/Accordion/accordion-body.svelte.d.ts +4 -0
  5. package/dist/Accordion/accordion-button.svelte +25 -0
  6. package/dist/Accordion/accordion-button.svelte.d.ts +4 -0
  7. package/dist/Accordion/accordion-collapse.svelte +18 -0
  8. package/dist/Accordion/accordion-collapse.svelte.d.ts +4 -0
  9. package/dist/Accordion/accordion-header.svelte +8 -0
  10. package/dist/Accordion/accordion-header.svelte.d.ts +4 -0
  11. package/dist/Accordion/accordion-item.svelte +33 -0
  12. package/dist/Accordion/accordion-item.svelte.d.ts +4 -0
  13. package/dist/Accordion/accordion.svelte +65 -0
  14. package/dist/Accordion/accordion.svelte.d.ts +51 -0
  15. package/dist/Accordion/accordion.svelte.js +139 -0
  16. package/dist/Accordion/composition.d.ts +7 -0
  17. package/dist/Accordion/composition.js +6 -0
  18. package/dist/Accordion/index.d.ts +1 -0
  19. package/dist/Accordion/index.js +1 -0
  20. package/dist/Accordion/types.d.ts +15 -0
  21. package/dist/Accordion/types.js +1 -0
  22. package/dist/Alert/alert.svelte +73 -0
  23. package/dist/Alert/alert.svelte.d.ts +46 -0
  24. package/dist/Alert/index.d.ts +2 -0
  25. package/dist/Alert/index.js +2 -0
  26. package/dist/Alert/types.d.ts +11 -0
  27. package/dist/Alert/types.js +1 -0
  28. package/dist/Badge/badge.svelte +42 -0
  29. package/dist/Badge/badge.svelte.d.ts +36 -0
  30. package/dist/Badge/index.d.ts +2 -0
  31. package/dist/Badge/index.js +2 -0
  32. package/dist/Badge/types.d.ts +28 -0
  33. package/dist/Badge/types.js +24 -0
  34. package/dist/Breadcrumb/breadcrumb-item.svelte +66 -0
  35. package/dist/Breadcrumb/breadcrumb-item.svelte.d.ts +30 -0
  36. package/dist/Breadcrumb/breadcrumb.svelte +57 -0
  37. package/dist/Breadcrumb/breadcrumb.svelte.d.ts +34 -0
  38. package/dist/Breadcrumb/breadcrumb.svelte.js +41 -0
  39. package/dist/Breadcrumb/composition.d.ts +3 -0
  40. package/dist/Breadcrumb/composition.js +2 -0
  41. package/dist/Breadcrumb/index.d.ts +1 -0
  42. package/dist/Breadcrumb/index.js +1 -0
  43. package/dist/Breadcrumb/types.d.ts +9 -0
  44. package/dist/Breadcrumb/types.js +1 -0
  45. package/dist/BreakpointListener/breakpoint-listener.svelte +54 -0
  46. package/dist/BreakpointListener/breakpoint-listener.svelte.d.ts +4 -0
  47. package/dist/BreakpointListener/index.d.ts +2 -0
  48. package/dist/BreakpointListener/index.js +2 -0
  49. package/dist/BreakpointListener/types.d.ts +30 -0
  50. package/dist/BreakpointListener/types.js +20 -0
  51. package/dist/Button/button.svelte +87 -0
  52. package/dist/Button/button.svelte.d.ts +59 -0
  53. package/dist/Button/index.d.ts +2 -0
  54. package/dist/Button/index.js +2 -0
  55. package/dist/Button/types.d.ts +26 -0
  56. package/dist/Button/types.js +1 -0
  57. package/dist/ButtonGroup/button-check.svelte +70 -0
  58. package/dist/ButtonGroup/button-check.svelte.d.ts +35 -0
  59. package/dist/ButtonGroup/button-group.svelte +51 -0
  60. package/dist/ButtonGroup/button-group.svelte.d.ts +43 -0
  61. package/dist/ButtonGroup/button-toolbar.svelte +36 -0
  62. package/dist/ButtonGroup/button-toolbar.svelte.d.ts +28 -0
  63. package/dist/ButtonGroup/index.d.ts +4 -0
  64. package/dist/ButtonGroup/index.js +4 -0
  65. package/dist/ButtonGroup/types.d.ts +21 -0
  66. package/dist/ButtonGroup/types.js +1 -0
  67. package/dist/Card/card-body.svelte +10 -0
  68. package/dist/Card/card-body.svelte.d.ts +3 -0
  69. package/dist/Card/card-footer.svelte +10 -0
  70. package/dist/Card/card-footer.svelte.d.ts +3 -0
  71. package/dist/Card/card-group.svelte +10 -0
  72. package/dist/Card/card-group.svelte.d.ts +3 -0
  73. package/dist/Card/card-header.svelte +10 -0
  74. package/dist/Card/card-header.svelte.d.ts +3 -0
  75. package/dist/Card/card-img-overlay.svelte +10 -0
  76. package/dist/Card/card-img-overlay.svelte.d.ts +3 -0
  77. package/dist/Card/card-img.svelte +12 -0
  78. package/dist/Card/card-img.svelte.d.ts +4 -0
  79. package/dist/Card/card-link.svelte +10 -0
  80. package/dist/Card/card-link.svelte.d.ts +4 -0
  81. package/dist/Card/card-subtitle.svelte +11 -0
  82. package/dist/Card/card-subtitle.svelte.d.ts +4 -0
  83. package/dist/Card/card-text.svelte +10 -0
  84. package/dist/Card/card-text.svelte.d.ts +3 -0
  85. package/dist/Card/card-title.svelte +11 -0
  86. package/dist/Card/card-title.svelte.d.ts +4 -0
  87. package/dist/Card/card.svelte +45 -0
  88. package/dist/Card/card.svelte.d.ts +38 -0
  89. package/dist/Card/composition.d.ts +12 -0
  90. package/dist/Card/composition.js +11 -0
  91. package/dist/Card/index.d.ts +1 -0
  92. package/dist/Card/index.js +1 -0
  93. package/dist/Card/types.d.ts +22 -0
  94. package/dist/Card/types.js +1 -0
  95. package/dist/Carousel/carousel-caption.svelte +30 -0
  96. package/dist/Carousel/carousel-caption.svelte.d.ts +22 -0
  97. package/dist/Carousel/carousel-control-next.svelte +35 -0
  98. package/dist/Carousel/carousel-control-next.svelte.d.ts +21 -0
  99. package/dist/Carousel/carousel-control-prev.svelte +35 -0
  100. package/dist/Carousel/carousel-control-prev.svelte.d.ts +21 -0
  101. package/dist/Carousel/carousel-indicator-button.svelte +41 -0
  102. package/dist/Carousel/carousel-indicator-button.svelte.d.ts +21 -0
  103. package/dist/Carousel/carousel-indicators.svelte +33 -0
  104. package/dist/Carousel/carousel-indicators.svelte.d.ts +25 -0
  105. package/dist/Carousel/carousel-inner.svelte +30 -0
  106. package/dist/Carousel/carousel-inner.svelte.d.ts +22 -0
  107. package/dist/Carousel/carousel-item.svelte +138 -0
  108. package/dist/Carousel/carousel-item.svelte.d.ts +28 -0
  109. package/dist/Carousel/carousel.svelte +140 -0
  110. package/dist/Carousel/carousel.svelte.d.ts +46 -0
  111. package/dist/Carousel/carousel.svelte.js +551 -0
  112. package/dist/Carousel/composition.d.ts +9 -0
  113. package/dist/Carousel/composition.js +8 -0
  114. package/dist/Carousel/index.d.ts +1 -0
  115. package/dist/Carousel/index.js +1 -0
  116. package/dist/Carousel/types.d.ts +74 -0
  117. package/dist/Carousel/types.js +1 -0
  118. package/dist/CloseButton/close-button.svelte +32 -0
  119. package/dist/CloseButton/close-button.svelte.d.ts +29 -0
  120. package/dist/CloseButton/index.d.ts +2 -0
  121. package/dist/CloseButton/index.js +2 -0
  122. package/dist/CloseButton/types.d.ts +6 -0
  123. package/dist/CloseButton/types.js +1 -0
  124. package/dist/Col/col.svelte +133 -0
  125. package/dist/Col/col.svelte.d.ts +60 -0
  126. package/dist/Col/index.d.ts +2 -0
  127. package/dist/Col/index.js +2 -0
  128. package/dist/Col/types.d.ts +30 -0
  129. package/dist/Col/types.js +1 -0
  130. package/dist/Collapse/collapse-aria-attachment.svelte.d.ts +3 -0
  131. package/dist/Collapse/collapse-aria-attachment.svelte.js +32 -0
  132. package/dist/Collapse/collapse.svelte +63 -0
  133. package/dist/Collapse/collapse.svelte.d.ts +45 -0
  134. package/dist/Collapse/index.d.ts +3 -0
  135. package/dist/Collapse/index.js +3 -0
  136. package/dist/Collapse/transition.d.ts +5 -0
  137. package/dist/Collapse/transition.js +75 -0
  138. package/dist/Collapse/types.d.ts +18 -0
  139. package/dist/Collapse/types.js +1 -0
  140. package/dist/Container/container.svelte +46 -0
  141. package/dist/Container/container.svelte.d.ts +36 -0
  142. package/dist/Container/index.d.ts +2 -0
  143. package/dist/Container/index.js +2 -0
  144. package/dist/Container/types.d.ts +8 -0
  145. package/dist/Container/types.js +1 -0
  146. package/dist/Dropdown/composition.d.ts +8 -0
  147. package/dist/Dropdown/composition.js +7 -0
  148. package/dist/Dropdown/dropdown-divider.svelte +23 -0
  149. package/dist/Dropdown/dropdown-divider.svelte.d.ts +18 -0
  150. package/dist/Dropdown/dropdown-header.svelte +27 -0
  151. package/dist/Dropdown/dropdown-header.svelte.d.ts +19 -0
  152. package/dist/Dropdown/dropdown-item-text.svelte +26 -0
  153. package/dist/Dropdown/dropdown-item-text.svelte.d.ts +18 -0
  154. package/dist/Dropdown/dropdown-item.svelte +86 -0
  155. package/dist/Dropdown/dropdown-item.svelte.d.ts +24 -0
  156. package/dist/Dropdown/dropdown-menu.svelte +82 -0
  157. package/dist/Dropdown/dropdown-menu.svelte.d.ts +27 -0
  158. package/dist/Dropdown/dropdown-toggle.svelte +67 -0
  159. package/dist/Dropdown/dropdown-toggle.svelte.d.ts +24 -0
  160. package/dist/Dropdown/dropdown.svelte +106 -0
  161. package/dist/Dropdown/dropdown.svelte.d.ts +34 -0
  162. package/dist/Dropdown/dropdown.svelte.js +435 -0
  163. package/dist/Dropdown/index.d.ts +1 -0
  164. package/dist/Dropdown/index.js +1 -0
  165. package/dist/Dropdown/types.d.ts +47 -0
  166. package/dist/Dropdown/types.js +1 -0
  167. package/dist/Form/composition.d.ts +34 -0
  168. package/dist/Form/composition.js +33 -0
  169. package/dist/Form/form-check-input.svelte +92 -0
  170. package/dist/Form/form-check-input.svelte.d.ts +48 -0
  171. package/dist/Form/form-check-label.svelte +26 -0
  172. package/dist/Form/form-check-label.svelte.d.ts +21 -0
  173. package/dist/Form/form-check.svelte +55 -0
  174. package/dist/Form/form-check.svelte.d.ts +50 -0
  175. package/dist/Form/form-color-input.svelte +54 -0
  176. package/dist/Form/form-color-input.svelte.d.ts +30 -0
  177. package/dist/Form/form-date-input.svelte +64 -0
  178. package/dist/Form/form-date-input.svelte.d.ts +46 -0
  179. package/dist/Form/form-datetime-local-input.svelte +60 -0
  180. package/dist/Form/form-datetime-local-input.svelte.d.ts +45 -0
  181. package/dist/Form/form-email-input.svelte +64 -0
  182. package/dist/Form/form-email-input.svelte.d.ts +46 -0
  183. package/dist/Form/form-feedback.svelte +36 -0
  184. package/dist/Form/form-feedback.svelte.d.ts +26 -0
  185. package/dist/Form/form-file-input.svelte +43 -0
  186. package/dist/Form/form-file-input.svelte.d.ts +30 -0
  187. package/dist/Form/form-floating.svelte +44 -0
  188. package/dist/Form/form-floating.svelte.d.ts +38 -0
  189. package/dist/Form/form-helper-text.svelte +35 -0
  190. package/dist/Form/form-helper-text.svelte.d.ts +29 -0
  191. package/dist/Form/form-hidden-input.svelte +18 -0
  192. package/dist/Form/form-hidden-input.svelte.d.ts +16 -0
  193. package/dist/Form/form-image-input.svelte +30 -0
  194. package/dist/Form/form-image-input.svelte.d.ts +26 -0
  195. package/dist/Form/form-input-group-text.svelte +47 -0
  196. package/dist/Form/form-input-group-text.svelte.d.ts +42 -0
  197. package/dist/Form/form-input-group.svelte +52 -0
  198. package/dist/Form/form-input-group.svelte.d.ts +43 -0
  199. package/dist/Form/form-input-label.svelte +33 -0
  200. package/dist/Form/form-input-label.svelte.d.ts +28 -0
  201. package/dist/Form/form-month-input.svelte +63 -0
  202. package/dist/Form/form-month-input.svelte.d.ts +48 -0
  203. package/dist/Form/form-number-input.svelte +62 -0
  204. package/dist/Form/form-number-input.svelte.d.ts +47 -0
  205. package/dist/Form/form-password-input.svelte +60 -0
  206. package/dist/Form/form-password-input.svelte.d.ts +41 -0
  207. package/dist/Form/form-radio-input.svelte +47 -0
  208. package/dist/Form/form-radio-input.svelte.d.ts +41 -0
  209. package/dist/Form/form-radio-label.svelte +41 -0
  210. package/dist/Form/form-radio-label.svelte.d.ts +35 -0
  211. package/dist/Form/form-range-input.svelte +43 -0
  212. package/dist/Form/form-range-input.svelte.d.ts +39 -0
  213. package/dist/Form/form-search-input.svelte +63 -0
  214. package/dist/Form/form-search-input.svelte.d.ts +45 -0
  215. package/dist/Form/form-select.svelte +85 -0
  216. package/dist/Form/form-select.svelte.d.ts +59 -0
  217. package/dist/Form/form-switch-input.svelte +54 -0
  218. package/dist/Form/form-switch-input.svelte.d.ts +41 -0
  219. package/dist/Form/form-switch-label.svelte +25 -0
  220. package/dist/Form/form-switch-label.svelte.d.ts +19 -0
  221. package/dist/Form/form-telephone-input.svelte +129 -0
  222. package/dist/Form/form-telephone-input.svelte.d.ts +55 -0
  223. package/dist/Form/form-text-area.svelte +57 -0
  224. package/dist/Form/form-text-area.svelte.d.ts +38 -0
  225. package/dist/Form/form-text-input.svelte +55 -0
  226. package/dist/Form/form-text-input.svelte.d.ts +37 -0
  227. package/dist/Form/form-time-input.svelte +62 -0
  228. package/dist/Form/form-time-input.svelte.d.ts +47 -0
  229. package/dist/Form/form-url-input.svelte +60 -0
  230. package/dist/Form/form-url-input.svelte.d.ts +45 -0
  231. package/dist/Form/form-week-Input.svelte +62 -0
  232. package/dist/Form/form-week-Input.svelte.d.ts +47 -0
  233. package/dist/Form/form.svelte +37 -0
  234. package/dist/Form/form.svelte.d.ts +23 -0
  235. package/dist/Form/index.d.ts +1 -0
  236. package/dist/Form/index.js +1 -0
  237. package/dist/Form/types.d.ts +168 -0
  238. package/dist/Form/types.js +1 -0
  239. package/dist/ListGroup/composition.d.ts +4 -0
  240. package/dist/ListGroup/composition.js +3 -0
  241. package/dist/ListGroup/index.d.ts +1 -0
  242. package/dist/ListGroup/index.js +1 -0
  243. package/dist/ListGroup/list-group-item-action.svelte +50 -0
  244. package/dist/ListGroup/list-group-item-action.svelte.d.ts +23 -0
  245. package/dist/ListGroup/list-group-item.svelte +58 -0
  246. package/dist/ListGroup/list-group-item.svelte.d.ts +51 -0
  247. package/dist/ListGroup/list-group.svelte +83 -0
  248. package/dist/ListGroup/list-group.svelte.d.ts +68 -0
  249. package/dist/ListGroup/types.d.ts +20 -0
  250. package/dist/ListGroup/types.js +1 -0
  251. package/dist/Modal/composition.d.ts +8 -0
  252. package/dist/Modal/composition.js +7 -0
  253. package/dist/Modal/index.d.ts +1 -0
  254. package/dist/Modal/index.js +1 -0
  255. package/dist/Modal/modal-body.svelte +27 -0
  256. package/dist/Modal/modal-body.svelte.d.ts +19 -0
  257. package/dist/Modal/modal-content.svelte +35 -0
  258. package/dist/Modal/modal-content.svelte.d.ts +27 -0
  259. package/dist/Modal/modal-dialog.svelte +65 -0
  260. package/dist/Modal/modal-dialog.svelte.d.ts +52 -0
  261. package/dist/Modal/modal-footer.svelte +28 -0
  262. package/dist/Modal/modal-footer.svelte.d.ts +20 -0
  263. package/dist/Modal/modal-header.svelte +50 -0
  264. package/dist/Modal/modal-header.svelte.d.ts +29 -0
  265. package/dist/Modal/modal-title.svelte +45 -0
  266. package/dist/Modal/modal-title.svelte.d.ts +26 -0
  267. package/dist/Modal/modal.svelte +233 -0
  268. package/dist/Modal/modal.svelte.d.ts +52 -0
  269. package/dist/Modal/modal.svelte.js +86 -0
  270. package/dist/Modal/types.d.ts +31 -0
  271. package/dist/Modal/types.js +1 -0
  272. package/dist/Nav/composition.d.ts +4 -0
  273. package/dist/Nav/composition.js +3 -0
  274. package/dist/Nav/index.d.ts +1 -0
  275. package/dist/Nav/index.js +1 -0
  276. package/dist/Nav/nav-item.svelte +25 -0
  277. package/dist/Nav/nav-item.svelte.d.ts +18 -0
  278. package/dist/Nav/nav-link.svelte +77 -0
  279. package/dist/Nav/nav-link.svelte.d.ts +22 -0
  280. package/dist/Nav/nav.svelte +93 -0
  281. package/dist/Nav/nav.svelte.d.ts +56 -0
  282. package/dist/Nav/types.d.ts +26 -0
  283. package/dist/Nav/types.js +1 -0
  284. package/dist/Navbar/composition.d.ts +8 -0
  285. package/dist/Navbar/composition.js +7 -0
  286. package/dist/Navbar/index.d.ts +1 -0
  287. package/dist/Navbar/index.js +1 -0
  288. package/dist/Navbar/navbar-brand.svelte +55 -0
  289. package/dist/Navbar/navbar-brand.svelte.d.ts +48 -0
  290. package/dist/Navbar/navbar-collapse.svelte +76 -0
  291. package/dist/Navbar/navbar-collapse.svelte.d.ts +55 -0
  292. package/dist/Navbar/navbar-nav.svelte +66 -0
  293. package/dist/Navbar/navbar-nav.svelte.d.ts +53 -0
  294. package/dist/Navbar/navbar-text.svelte +36 -0
  295. package/dist/Navbar/navbar-text.svelte.d.ts +28 -0
  296. package/dist/Navbar/navbar-toggler-icon.svelte +34 -0
  297. package/dist/Navbar/navbar-toggler-icon.svelte.d.ts +28 -0
  298. package/dist/Navbar/navbar-toggler.svelte +75 -0
  299. package/dist/Navbar/navbar-toggler.svelte.d.ts +48 -0
  300. package/dist/Navbar/navbar.svelte +116 -0
  301. package/dist/Navbar/navbar.svelte.d.ts +88 -0
  302. package/dist/Navbar/types.d.ts +23 -0
  303. package/dist/Navbar/types.js +1 -0
  304. package/dist/Offcanvas/composition.d.ts +5 -0
  305. package/dist/Offcanvas/composition.js +4 -0
  306. package/dist/Offcanvas/index.d.ts +1 -0
  307. package/dist/Offcanvas/index.js +1 -0
  308. package/dist/Offcanvas/offcanvas-body.svelte +25 -0
  309. package/dist/Offcanvas/offcanvas-body.svelte.d.ts +19 -0
  310. package/dist/Offcanvas/offcanvas-header.svelte +39 -0
  311. package/dist/Offcanvas/offcanvas-header.svelte.d.ts +20 -0
  312. package/dist/Offcanvas/offcanvas-title.svelte +31 -0
  313. package/dist/Offcanvas/offcanvas-title.svelte.d.ts +25 -0
  314. package/dist/Offcanvas/offcanvas.svelte +220 -0
  315. package/dist/Offcanvas/offcanvas.svelte.d.ts +61 -0
  316. package/dist/Offcanvas/types.d.ts +25 -0
  317. package/dist/Offcanvas/types.js +1 -0
  318. package/dist/Pagination/composition.d.ts +4 -0
  319. package/dist/Pagination/composition.js +3 -0
  320. package/dist/Pagination/index.d.ts +1 -0
  321. package/dist/Pagination/index.js +1 -0
  322. package/dist/Pagination/pagination-item.svelte +81 -0
  323. package/dist/Pagination/pagination-item.svelte.d.ts +35 -0
  324. package/dist/Pagination/pagination-link.svelte +45 -0
  325. package/dist/Pagination/pagination-link.svelte.d.ts +25 -0
  326. package/dist/Pagination/pagination.svelte +60 -0
  327. package/dist/Pagination/pagination.svelte.d.ts +37 -0
  328. package/dist/Pagination/pagination.svelte.js +117 -0
  329. package/dist/Pagination/types.d.ts +19 -0
  330. package/dist/Pagination/types.js +1 -0
  331. package/dist/Placeholder/composition.d.ts +3 -0
  332. package/dist/Placeholder/composition.js +2 -0
  333. package/dist/Placeholder/index.d.ts +1 -0
  334. package/dist/Placeholder/index.js +1 -0
  335. package/dist/Placeholder/placeholder-item.svelte +53 -0
  336. package/dist/Placeholder/placeholder-item.svelte.d.ts +48 -0
  337. package/dist/Placeholder/placeholder.svelte +37 -0
  338. package/dist/Placeholder/placeholder.svelte.d.ts +32 -0
  339. package/dist/Placeholder/types.d.ts +12 -0
  340. package/dist/Placeholder/types.js +1 -0
  341. package/dist/Popover/composition.d.ts +4 -0
  342. package/dist/Popover/composition.js +3 -0
  343. package/dist/Popover/index.d.ts +1 -0
  344. package/dist/Popover/index.js +1 -0
  345. package/dist/Popover/popover-body.svelte +10 -0
  346. package/dist/Popover/popover-body.svelte.d.ts +3 -0
  347. package/dist/Popover/popover-header.svelte +11 -0
  348. package/dist/Popover/popover-header.svelte.d.ts +4 -0
  349. package/dist/Popover/popover.svelte +74 -0
  350. package/dist/Popover/popover.svelte.d.ts +53 -0
  351. package/dist/Popover/types.d.ts +20 -0
  352. package/dist/Popover/types.js +1 -0
  353. package/dist/Portal/index.d.ts +2 -0
  354. package/dist/Portal/index.js +2 -0
  355. package/dist/Portal/portal-host.svelte +5 -0
  356. package/dist/Portal/portal-host.svelte.d.ts +7 -0
  357. package/dist/Portal/portal.svelte +69 -0
  358. package/dist/Portal/portal.svelte.d.ts +32 -0
  359. package/dist/Portal/types.d.ts +6 -0
  360. package/dist/Portal/types.js +1 -0
  361. package/dist/Progress/index.d.ts +3 -0
  362. package/dist/Progress/index.js +3 -0
  363. package/dist/Progress/progress-bar.svelte +101 -0
  364. package/dist/Progress/progress-bar.svelte.d.ts +39 -0
  365. package/dist/Progress/progress-stacked.svelte +34 -0
  366. package/dist/Progress/progress-stacked.svelte.d.ts +24 -0
  367. package/dist/Progress/progress.svelte.d.ts +31 -0
  368. package/dist/Progress/progress.svelte.js +52 -0
  369. package/dist/Progress/types.d.ts +40 -0
  370. package/dist/Progress/types.js +1 -0
  371. package/dist/Row/index.d.ts +2 -0
  372. package/dist/Row/index.js +2 -0
  373. package/dist/Row/row.svelte +75 -0
  374. package/dist/Row/row.svelte.d.ts +46 -0
  375. package/dist/Row/types.d.ts +12 -0
  376. package/dist/Row/types.js +1 -0
  377. package/dist/Scrollspy/index.d.ts +2 -0
  378. package/dist/Scrollspy/index.js +2 -0
  379. package/dist/Scrollspy/scrollspy-attachment.svelte.d.ts +10 -0
  380. package/dist/Scrollspy/scrollspy-attachment.svelte.js +122 -0
  381. package/dist/Scrollspy/types.d.ts +9 -0
  382. package/dist/Scrollspy/types.js +1 -0
  383. package/dist/Spinner/index.d.ts +2 -0
  384. package/dist/Spinner/index.js +2 -0
  385. package/dist/Spinner/spinner.svelte +77 -0
  386. package/dist/Spinner/spinner.svelte.d.ts +70 -0
  387. package/dist/Spinner/types.d.ts +9 -0
  388. package/dist/Spinner/types.js +1 -0
  389. package/dist/Tab/composition.d.ts +5 -0
  390. package/dist/Tab/composition.js +4 -0
  391. package/dist/Tab/index.d.ts +1 -0
  392. package/dist/Tab/index.js +1 -0
  393. package/dist/Tab/tab-content.svelte +29 -0
  394. package/dist/Tab/tab-content.svelte.d.ts +23 -0
  395. package/dist/Tab/tab-nav-link.svelte +69 -0
  396. package/dist/Tab/tab-nav-link.svelte.d.ts +22 -0
  397. package/dist/Tab/tab-pane.svelte +72 -0
  398. package/dist/Tab/tab-pane.svelte.d.ts +26 -0
  399. package/dist/Tab/tab.svelte +63 -0
  400. package/dist/Tab/tab.svelte.d.ts +50 -0
  401. package/dist/Tab/types.d.ts +18 -0
  402. package/dist/Tab/types.js +1 -0
  403. package/dist/Table/composition.d.ts +9 -0
  404. package/dist/Table/composition.js +8 -0
  405. package/dist/Table/index.d.ts +1 -0
  406. package/dist/Table/index.js +1 -0
  407. package/dist/Table/table-body.svelte +30 -0
  408. package/dist/Table/table-body.svelte.d.ts +23 -0
  409. package/dist/Table/table-caption.svelte +20 -0
  410. package/dist/Table/table-caption.svelte.d.ts +15 -0
  411. package/dist/Table/table-data.svelte +30 -0
  412. package/dist/Table/table-data.svelte.d.ts +19 -0
  413. package/dist/Table/table-foot.svelte +31 -0
  414. package/dist/Table/table-foot.svelte.d.ts +24 -0
  415. package/dist/Table/table-head.svelte +31 -0
  416. package/dist/Table/table-head.svelte.d.ts +24 -0
  417. package/dist/Table/table-header.svelte +38 -0
  418. package/dist/Table/table-header.svelte.d.ts +17 -0
  419. package/dist/Table/table-row.svelte +34 -0
  420. package/dist/Table/table-row.svelte.d.ts +23 -0
  421. package/dist/Table/table.svelte +154 -0
  422. package/dist/Table/table.svelte.d.ts +98 -0
  423. package/dist/Table/table.svelte.js +92 -0
  424. package/dist/Table/types.d.ts +43 -0
  425. package/dist/Table/types.js +1 -0
  426. package/dist/Toast/composition.d.ts +5 -0
  427. package/dist/Toast/composition.js +4 -0
  428. package/dist/Toast/index.d.ts +1 -0
  429. package/dist/Toast/index.js +1 -0
  430. package/dist/Toast/toast-body.svelte +26 -0
  431. package/dist/Toast/toast-body.svelte.d.ts +18 -0
  432. package/dist/Toast/toast-container.svelte +44 -0
  433. package/dist/Toast/toast-container.svelte.d.ts +36 -0
  434. package/dist/Toast/toast-header.svelte +56 -0
  435. package/dist/Toast/toast-header.svelte.d.ts +36 -0
  436. package/dist/Toast/toast.svelte +112 -0
  437. package/dist/Toast/toast.svelte.d.ts +54 -0
  438. package/dist/Toast/toast.svelte.js +83 -0
  439. package/dist/Toast/types.d.ts +53 -0
  440. package/dist/Toast/types.js +19 -0
  441. package/dist/Tooltip/composition.d.ts +3 -0
  442. package/dist/Tooltip/composition.js +2 -0
  443. package/dist/Tooltip/index.d.ts +1 -0
  444. package/dist/Tooltip/index.js +1 -0
  445. package/dist/Tooltip/tooltip-inner.svelte +10 -0
  446. package/dist/Tooltip/tooltip-inner.svelte.d.ts +4 -0
  447. package/dist/Tooltip/tooltip.svelte +213 -0
  448. package/dist/Tooltip/tooltip.svelte.d.ts +54 -0
  449. package/dist/Tooltip/types.d.ts +43 -0
  450. package/dist/Tooltip/types.js +1 -0
  451. package/dist/common/context.d.ts +47 -0
  452. package/dist/common/context.js +70 -0
  453. package/dist/common/css.d.ts +71 -0
  454. package/dist/common/css.js +133 -0
  455. package/dist/common/dom.d.ts +51 -0
  456. package/dist/common/dom.js +98 -0
  457. package/dist/common/index.d.ts +6 -0
  458. package/dist/common/index.js +5 -0
  459. package/dist/common/nav-tab.svelte.d.ts +88 -0
  460. package/dist/common/nav-tab.svelte.js +188 -0
  461. package/dist/common/navbar-offcanvas.svelte.d.ts +101 -0
  462. package/dist/common/navbar-offcanvas.svelte.js +228 -0
  463. package/dist/common/noop.d.ts +4 -0
  464. package/dist/common/noop.js +4 -0
  465. package/dist/common/scrollbar.d.ts +20 -0
  466. package/dist/common/scrollbar.js +53 -0
  467. package/dist/common/types.d.ts +143 -0
  468. package/dist/common/types.js +40 -0
  469. package/dist/index.d.ts +33 -0
  470. package/dist/index.js +33 -0
  471. package/package.json +105 -0
@@ -0,0 +1,21 @@
1
+ import type { DivElement } from '../common/types.js';
2
+ import type { ButtonColorVariant } from '../Button/types.js';
3
+ import type { HTMLInputAttributes } from 'svelte/elements';
4
+ export type ButtonGroupSize = 'sm' | 'lg' | '';
5
+ export type ButtonCheckType = 'checkbox' | 'radio';
6
+ export type ButtonCheckRootProps = Omit<HTMLInputAttributes, 'class' | 'size' | 'type'> & {
7
+ class?: string;
8
+ colorVariant?: ButtonColorVariant;
9
+ elementRef?: HTMLInputElement | null;
10
+ labelClass?: string;
11
+ labelElementRef?: HTMLLabelElement | null;
12
+ type?: ButtonCheckType;
13
+ };
14
+ export type ButtonGroupRootProps = DivElement & {
15
+ ariaLabel?: string;
16
+ isVertical?: boolean;
17
+ size?: ButtonGroupSize;
18
+ };
19
+ export type ButtonToolbarRootProps = DivElement & {
20
+ ariaLabel?: string;
21
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
2
+ // Generate a unique ID for the card element, in case one is not provided...
3
+ const uid = $props.id();
4
+ let { children, class: classValues, elementRef = $bindable(null), id = `card-body-${uid}`, ...restOfProps } = $props();
5
+ let classes = $derived(uniqueClsx('card-body', classValues));
6
+ </script>
7
+
8
+ <div bind:this={elementRef} class={classes} {id} {...restOfProps}>
9
+ {@render children?.()}
10
+ </div>
@@ -0,0 +1,3 @@
1
+ declare const CardBody: import("svelte").Component<import("../index.js").DivElement, {}, "elementRef">;
2
+ type CardBody = ReturnType<typeof CardBody>;
3
+ export default CardBody;
@@ -0,0 +1,10 @@
1
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
2
+ // Generate a unique ID for the card element, in case one is not provided...
3
+ const uid = $props.id();
4
+ let { children, class: classValues, elementRef = $bindable(null), id = `card-footer-${uid}`, ...restOfProps } = $props();
5
+ let classes = $derived(uniqueClsx('card-footer', classValues));
6
+ </script>
7
+
8
+ <div bind:this={elementRef} class={classes} {id} {...restOfProps}>
9
+ {@render children?.()}
10
+ </div>
@@ -0,0 +1,3 @@
1
+ declare const CardFooter: import("svelte").Component<import("../index.js").DivElement, {}, "elementRef">;
2
+ type CardFooter = ReturnType<typeof CardFooter>;
3
+ export default CardFooter;
@@ -0,0 +1,10 @@
1
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
2
+ // Generate a unique ID for the card element, in case one is not provided...
3
+ const uid = $props.id();
4
+ let { children, class: classValues, elementRef = $bindable(null), id = `card-group-${uid}`, ...restOfProps } = $props();
5
+ let classes = $derived(uniqueClsx('card-group', classValues));
6
+ </script>
7
+
8
+ <div bind:this={elementRef} class={classes} {id} {...restOfProps}>
9
+ {@render children?.()}
10
+ </div>
@@ -0,0 +1,3 @@
1
+ declare const CardGroup: import("svelte").Component<import("../index.js").DivElement, {}, "elementRef">;
2
+ type CardGroup = ReturnType<typeof CardGroup>;
3
+ export default CardGroup;
@@ -0,0 +1,10 @@
1
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
2
+ // Generate a unique ID for the card element, in case one is not provided...
3
+ const uid = $props.id();
4
+ let { children, class: classValues, elementRef = $bindable(null), id = `card-header-${uid}`, ...restOfProps } = $props();
5
+ let classes = $derived(uniqueClsx('card-header', classValues));
6
+ </script>
7
+
8
+ <div bind:this={elementRef} class={classes} {id} {...restOfProps}>
9
+ {@render children?.()}
10
+ </div>
@@ -0,0 +1,3 @@
1
+ declare const CardHeader: import("svelte").Component<import("../index.js").DivElement, {}, "elementRef">;
2
+ type CardHeader = ReturnType<typeof CardHeader>;
3
+ export default CardHeader;
@@ -0,0 +1,10 @@
1
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
2
+ // Generate a unique ID for the card element, in case one is not provided...
3
+ const uid = $props.id();
4
+ let { children, class: classValues, elementRef = $bindable(null), id = `card-img-overlay-${uid}`, ...restOfProps } = $props();
5
+ let classes = $derived(uniqueClsx('card-img-overlay', classValues));
6
+ </script>
7
+
8
+ <div bind:this={elementRef} class={classes} {id} {...restOfProps}>
9
+ {@render children?.()}
10
+ </div>
@@ -0,0 +1,3 @@
1
+ declare const CardImgOverlay: import("svelte").Component<import("../index.js").DivElement, {}, "elementRef">;
2
+ type CardImgOverlay = ReturnType<typeof CardImgOverlay>;
3
+ export default CardImgOverlay;
@@ -0,0 +1,12 @@
1
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
2
+ // Generate a unique ID for the card element, in case one is not provided...
3
+ const uid = $props.id();
4
+ let { class: classValues, elementRef = $bindable(null), id = `card-img-${uid}`, position, src = '', alt = '', ...restOfProps } = $props();
5
+ let classes = $derived(uniqueClsx({
6
+ 'card-img': !position,
7
+ 'card-img-top': position === 'top',
8
+ 'card-img-bottom': position === 'bottom'
9
+ }, classValues));
10
+ </script>
11
+
12
+ <img bind:this={elementRef} class={classes} {id} {src} {alt} {...restOfProps} />
@@ -0,0 +1,4 @@
1
+ import type { Card } from './index.js';
2
+ declare const CardImg: import("svelte").Component<Card.ImgProps, {}, "elementRef">;
3
+ type CardImg = ReturnType<typeof CardImg>;
4
+ export default CardImg;
@@ -0,0 +1,10 @@
1
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
2
+ // Generate a unique ID for the card element, in case one is not provided...
3
+ const uid = $props.id();
4
+ let { children, class: classValues, elementRef = $bindable(null), href = '#!', id = `card-link-${uid}`, ...restOfProps } = $props();
5
+ let classes = $derived(uniqueClsx('card-link', classValues));
6
+ </script>
7
+
8
+ <a bind:this={elementRef} class={classes} {href} {id} {...restOfProps}>
9
+ {@render children?.()}
10
+ </a>
@@ -0,0 +1,4 @@
1
+ import type { Card } from './index.js';
2
+ declare const CardLink: import("svelte").Component<Card.LinkProps, {}, "elementRef">;
3
+ type CardLink = ReturnType<typeof CardLink>;
4
+ export default CardLink;
@@ -0,0 +1,11 @@
1
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
2
+ // Generate a unique ID for the card element, in case one is not provided...
3
+ const uid = $props.id();
4
+ let { children, class: classValues, elementRef = $bindable(null), id = `card-subtitle-${uid}`, level = 6, ...restOfProps } = $props();
5
+ let elementType = $derived(`h${level}`);
6
+ let classes = $derived(uniqueClsx('card-subtitle', classValues));
7
+ </script>
8
+
9
+ <svelte:element this={elementType} bind:this={elementRef} class={classes} {id} {...restOfProps}>
10
+ {@render children?.()}
11
+ </svelte:element>
@@ -0,0 +1,4 @@
1
+ import type { Card } from './index.js';
2
+ declare const CardSubtitle: import("svelte").Component<Card.SubtitleProps, {}, "elementRef">;
3
+ type CardSubtitle = ReturnType<typeof CardSubtitle>;
4
+ export default CardSubtitle;
@@ -0,0 +1,10 @@
1
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
2
+ // Generate a unique ID for the card element, in case one is not provided...
3
+ const uid = $props.id();
4
+ let { children, class: classValues, elementRef = $bindable(null), id = `card-text-${uid}`, ...restOfProps } = $props();
5
+ let classes = $derived(uniqueClsx('card-text', classValues));
6
+ </script>
7
+
8
+ <p bind:this={elementRef} class={classes} {id} {...restOfProps}>
9
+ {@render children?.()}
10
+ </p>
@@ -0,0 +1,3 @@
1
+ declare const CardText: import("svelte").Component<import("../index.js").DivElement, {}, "elementRef">;
2
+ type CardText = ReturnType<typeof CardText>;
3
+ export default CardText;
@@ -0,0 +1,11 @@
1
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
2
+ // Generate a unique ID for the card element, in case one is not provided...
3
+ const uid = $props.id();
4
+ let { children, class: classValues, elementRef = $bindable(null), id = `card-title-${uid}`, level = 5, ...restOfProps } = $props();
5
+ let elementType = $derived(`h${level}`);
6
+ let classes = $derived(uniqueClsx('card-title', classValues));
7
+ </script>
8
+
9
+ <svelte:element this={elementType} bind:this={elementRef} class={classes} {id} {...restOfProps}>
10
+ {@render children?.()}
11
+ </svelte:element>
@@ -0,0 +1,4 @@
1
+ import type { Card } from './index.js';
2
+ declare const CardTitle: import("svelte").Component<Card.TitleProps, {}, "elementRef">;
3
+ type CardTitle = ReturnType<typeof CardTitle>;
4
+ export default CardTitle;
@@ -0,0 +1,45 @@
1
+ <!--
2
+ @component
3
+ ## Card
4
+ A flexible and extensible content container with multiple variants and options.
5
+
6
+ @example
7
+ ```svelte
8
+ <Card.Root>
9
+ <Card.Body>
10
+ <Card.Title>Card Title</Card.Title>
11
+ <Card.Subtitle>Card Subtitle</Card.Subtitle>
12
+ <Card.Text>Some quick example text to build on the card title and make up the bulk of the card's content.</Card.Text>
13
+ <Card.Link href="#!">Card Link</Card.Link>
14
+ <Card.Link href="#!">Another Link</Card.Link>
15
+ </Card.Body>
16
+ </Card.Root>
17
+ ```
18
+
19
+ @example
20
+ ```svelte
21
+ <Card.Root>
22
+ <Card.Img src="https://placehold.co/300x180/000000/FFF" alt="Card image" />
23
+ <Card.ImgOverlay>
24
+ <Card.Title>Card title</Card.Title>
25
+ <Card.Text>This is a wider card with supporting text below as a natural lead-in to additional content.</Card.Text>
26
+ <Card.Text><small>Last updated 3 mins ago</small></Card.Text>
27
+ </Card.ImgOverlay>
28
+ </Card.Root>
29
+ ```
30
+
31
+ ### Props
32
+ - `class` (string): Optional. Additional CSS classes to apply to the card.
33
+ - `elementRef` (HTMLElement): Optional. Reference to the card DOM element.
34
+ - `id` (string): Optional. Unique ID for the card element. Defaults to `card-{uid}`.
35
+ -->
36
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
37
+ // Generate a unique ID for the card element, in case one is not provided...
38
+ const uid = $props.id();
39
+ let { children, class: classValues, elementRef = $bindable(null), id = `card-${uid}`, ...restOfProps } = $props();
40
+ let classes = $derived(uniqueClsx('card', classValues));
41
+ </script>
42
+
43
+ <div bind:this={elementRef} class={classes} {id} {...restOfProps}>
44
+ {@render children?.()}
45
+ </div>
@@ -0,0 +1,38 @@
1
+ import type { Card } from './index.js';
2
+ /**
3
+ * ## Card
4
+ * A flexible and extensible content container with multiple variants and options.
5
+ *
6
+ * @example
7
+ * ```svelte
8
+ * <Card.Root>
9
+ * <Card.Body>
10
+ * <Card.Title>Card Title</Card.Title>
11
+ * <Card.Subtitle>Card Subtitle</Card.Subtitle>
12
+ * <Card.Text>Some quick example text to build on the card title and make up the bulk of the card's content.</Card.Text>
13
+ * <Card.Link href="#!">Card Link</Card.Link>
14
+ * <Card.Link href="#!">Another Link</Card.Link>
15
+ * </Card.Body>
16
+ * </Card.Root>
17
+ * ```
18
+ *
19
+ * @example
20
+ * ```svelte
21
+ * <Card.Root>
22
+ * <Card.Img src="https://placehold.co/300x180/000000/FFF" alt="Card image" />
23
+ * <Card.ImgOverlay>
24
+ * <Card.Title>Card title</Card.Title>
25
+ * <Card.Text>This is a wider card with supporting text below as a natural lead-in to additional content.</Card.Text>
26
+ * <Card.Text><small>Last updated 3 mins ago</small></Card.Text>
27
+ * </Card.ImgOverlay>
28
+ * </Card.Root>
29
+ * ```
30
+ *
31
+ * ### Props
32
+ * - `class` (string): Optional. Additional CSS classes to apply to the card.
33
+ * - `elementRef` (HTMLElement): Optional. Reference to the card DOM element.
34
+ * - `id` (string): Optional. Unique ID for the card element. Defaults to `card-{uid}`.
35
+ */
36
+ declare const Card: import("svelte").Component<import("../index.js").DivElement, {}, "elementRef">;
37
+ type Card = ReturnType<typeof Card>;
38
+ export default Card;
@@ -0,0 +1,12 @@
1
+ export { default as Body } from './card-body.svelte';
2
+ export { default as Footer } from './card-footer.svelte';
3
+ export { default as Group } from './card-group.svelte';
4
+ export { default as Header } from './card-header.svelte';
5
+ export { default as ImgOverlay } from './card-img-overlay.svelte';
6
+ export { default as Img } from './card-img.svelte';
7
+ export { default as Link } from './card-link.svelte';
8
+ export { default as Subtitle } from './card-subtitle.svelte';
9
+ export { default as Text } from './card-text.svelte';
10
+ export { default as Title } from './card-title.svelte';
11
+ export { default as Root } from './card.svelte';
12
+ export type { CardBodyProps as BodyProps, CardFooterProps as FooterProps, CardGroupProps as GroupProps, CardHeaderProps as HeaderProps, CardImgOverlayProps as ImgOverlayProps, CardImgProps as ImgProps, CardLinkProps as LinkProps, CardRootProps as RootProps, CardSubtitleProps as SubtitleProps, CardTextProps as TextProps, CardTitleProps as TitleProps } from './types.js';
@@ -0,0 +1,11 @@
1
+ export { default as Body } from './card-body.svelte';
2
+ export { default as Footer } from './card-footer.svelte';
3
+ export { default as Group } from './card-group.svelte';
4
+ export { default as Header } from './card-header.svelte';
5
+ export { default as ImgOverlay } from './card-img-overlay.svelte';
6
+ export { default as Img } from './card-img.svelte';
7
+ export { default as Link } from './card-link.svelte';
8
+ export { default as Subtitle } from './card-subtitle.svelte';
9
+ export { default as Text } from './card-text.svelte';
10
+ export { default as Title } from './card-title.svelte';
11
+ export { default as Root } from './card.svelte';
@@ -0,0 +1 @@
1
+ export * as Card from './composition.js';
@@ -0,0 +1 @@
1
+ export * as Card from './composition.js';
@@ -0,0 +1,22 @@
1
+ import type { AnchorElement, DivElement, HeadingElement, HeadingLevels, ImgElement } from '../common/types.js';
2
+ export type CardRootProps = DivElement;
3
+ export type CardGroupProps = DivElement;
4
+ export type CardHeaderProps = DivElement;
5
+ export type CardBodyProps = DivElement;
6
+ export type CardFooterProps = DivElement;
7
+ export type CardImgOverlayProps = DivElement;
8
+ export type CardImgProps = ImgElement & {
9
+ alt?: string;
10
+ src?: string;
11
+ position?: 'top' | 'bottom';
12
+ };
13
+ export type CardTitleProps = HeadingElement & {
14
+ level?: HeadingLevels;
15
+ };
16
+ export type CardSubtitleProps = HeadingElement & {
17
+ level?: HeadingLevels;
18
+ };
19
+ export type CardTextProps = DivElement;
20
+ export type CardLinkProps = AnchorElement & {
21
+ href?: string;
22
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,30 @@
1
+ <!--
2
+ @component
3
+ ## Carousel.Caption
4
+ Adds captions to carousel slides. Should be placed inside a Carousel.Item.
5
+
6
+ @example
7
+ ```svelte
8
+ <Carousel.Item isActive={true}>
9
+ <img src="..." class="d-block w-100" alt="...">
10
+ <Carousel.Caption>
11
+ <h5>First slide label</h5>
12
+ <p>Some representative placeholder content for the first slide.</p>
13
+ </Carousel.Caption>
14
+ </Carousel.Item>
15
+ ```
16
+ ### Props
17
+ - `class` (string): Optional. Additional CSS classes to apply to the component.
18
+ - `elementRef` (HTMLElement): Optional. Reference to the DOM element.
19
+ - `id` (string): Optional. Unique identifier for the component.
20
+ -->
21
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
22
+ // Generate a unique ID for the carousel-caption element, in case one is not provided
23
+ const uid = $props.id();
24
+ let { children, class: classValues, elementRef = $bindable(null), id = `carousel-caption-${uid}`, ...restOfProps } = $props();
25
+ let classes = $derived(uniqueClsx('carousel-caption', classValues));
26
+ </script>
27
+
28
+ <div bind:this={elementRef} class={classes} {id} {...restOfProps}>
29
+ {@render children?.()}
30
+ </div>
@@ -0,0 +1,22 @@
1
+ /**
2
+ * ## Carousel.Caption
3
+ * Adds captions to carousel slides. Should be placed inside a Carousel.Item.
4
+ *
5
+ * @example
6
+ * ```svelte
7
+ * <Carousel.Item isActive={true}>
8
+ * <img src="..." class="d-block w-100" alt="...">
9
+ * <Carousel.Caption>
10
+ * <h5>First slide label</h5>
11
+ * <p>Some representative placeholder content for the first slide.</p>
12
+ * </Carousel.Caption>
13
+ * </Carousel.Item>
14
+ * ```
15
+ * ### Props
16
+ * - `class` (string): Optional. Additional CSS classes to apply to the component.
17
+ * - `elementRef` (HTMLElement): Optional. Reference to the DOM element.
18
+ * - `id` (string): Optional. Unique identifier for the component.
19
+ */
20
+ declare const CarouselCaption: import("svelte").Component<import("../index.js").DivElement, {}, "elementRef">;
21
+ type CarouselCaption = ReturnType<typeof CarouselCaption>;
22
+ export default CarouselCaption;
@@ -0,0 +1,35 @@
1
+ <!--
2
+ @component
3
+ ## Carousel.ControlNext
4
+ Next slide control button. Should be placed inside a Carousel.Root.
5
+
6
+ @example
7
+ ```svelte
8
+ <Carousel.Root id="myCarousel">
9
+ <Carousel.Inner>
10
+ Slides...
11
+ </Carousel.Inner>
12
+ <Carousel.ControlPrev />
13
+ <Carousel.ControlNext />
14
+ </Carousel.Root>
15
+ ```
16
+ ### Props
17
+ - `class` (string): Optional. Additional CSS classes to apply to the component.
18
+ - `elementRef` (HTMLElement): Optional. Reference to the DOM element.
19
+ -->
20
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
21
+ import { CarouselControlNextState, initCarouselControlNextState } from './carousel.svelte.js';
22
+ let { children, class: classValues, elementRef = $bindable(null), ...restOfProps } = $props();
23
+ // Initialize control state (true means next control)
24
+ const controlState = initCarouselControlNextState({});
25
+ let classes = $derived(uniqueClsx('carousel-control-next', classValues));
26
+ const handleClick = (event) => {
27
+ controlState.onclick(event);
28
+ };
29
+ </script>
30
+
31
+ <button bind:this={elementRef} class={classes} onclick={handleClick} type="button" {...restOfProps}>
32
+ <span class="carousel-control-next-icon" aria-hidden="true"></span>
33
+ <span class="visually-hidden">Next</span>
34
+ {@render children?.()}
35
+ </button>
@@ -0,0 +1,21 @@
1
+ /**
2
+ * ## Carousel.ControlNext
3
+ * Next slide control button. Should be placed inside a Carousel.Root.
4
+ *
5
+ * @example
6
+ * ```svelte
7
+ * <Carousel.Root id="myCarousel">
8
+ * <Carousel.Inner>
9
+ * Slides...
10
+ * </Carousel.Inner>
11
+ * <Carousel.ControlPrev />
12
+ * <Carousel.ControlNext />
13
+ * </Carousel.Root>
14
+ * ```
15
+ * ### Props
16
+ * - `class` (string): Optional. Additional CSS classes to apply to the component.
17
+ * - `elementRef` (HTMLElement): Optional. Reference to the DOM element.
18
+ */
19
+ declare const CarouselControlNext: import("svelte").Component<import("../index.js").ButtonElement, {}, "elementRef">;
20
+ type CarouselControlNext = ReturnType<typeof CarouselControlNext>;
21
+ export default CarouselControlNext;
@@ -0,0 +1,35 @@
1
+ <!--
2
+ @component
3
+ ## Carousel.ControlPrev
4
+ Previous slide control button. Should be placed inside a Carousel.Root.
5
+
6
+ @example
7
+ ```svelte
8
+ <Carousel.Root id="myCarousel">
9
+ <Carousel.Inner>
10
+ Slides...
11
+ </Carousel.Inner>
12
+ <Carousel.ControlPrev />
13
+ <Carousel.ControlNext />
14
+ </Carousel.Root>
15
+ ```
16
+ ### Props
17
+ - `class` (string): Optional. Additional CSS classes to apply to the component.
18
+ - `elementRef` (HTMLElement): Optional. Reference to the DOM element.
19
+ -->
20
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
21
+ import { CarouselControlPrevState, initCarouselControlPrevState } from './carousel.svelte.js';
22
+ let { children, class: classValues, elementRef = $bindable(null), ...restOfProps } = $props();
23
+ // Initialize control state (false means previous control)
24
+ const controlState = initCarouselControlPrevState({});
25
+ let classes = $derived(uniqueClsx('carousel-control-prev', classValues));
26
+ const handleClick = (event) => {
27
+ controlState.onclick(event);
28
+ };
29
+ </script>
30
+
31
+ <button bind:this={elementRef} class={classes} onclick={handleClick} type="button" {...restOfProps}>
32
+ <span class="carousel-control-prev-icon" aria-hidden="true"></span>
33
+ <span class="visually-hidden">Previous</span>
34
+ {@render children?.()}
35
+ </button>
@@ -0,0 +1,21 @@
1
+ /**
2
+ * ## Carousel.ControlPrev
3
+ * Previous slide control button. Should be placed inside a Carousel.Root.
4
+ *
5
+ * @example
6
+ * ```svelte
7
+ * <Carousel.Root id="myCarousel">
8
+ * <Carousel.Inner>
9
+ * Slides...
10
+ * </Carousel.Inner>
11
+ * <Carousel.ControlPrev />
12
+ * <Carousel.ControlNext />
13
+ * </Carousel.Root>
14
+ * ```
15
+ * ### Props
16
+ * - `class` (string): Optional. Additional CSS classes to apply to the component.
17
+ * - `elementRef` (HTMLElement): Optional. Reference to the DOM element.
18
+ */
19
+ declare const CarouselControlPrev: import("svelte").Component<import("../index.js").ButtonElement, {}, "elementRef">;
20
+ type CarouselControlPrev = ReturnType<typeof CarouselControlPrev>;
21
+ export default CarouselControlPrev;
@@ -0,0 +1,41 @@
1
+ <!--
2
+ @component
3
+ ## Carousel.IndicatorButton
4
+ Button for carousel indicators. Should be placed inside a Carousel.Indicators component.
5
+
6
+ @example
7
+ ```svelte
8
+ <Carousel.Indicators>
9
+ <Carousel.IndicatorButton ariaLabel="Slide 1" />
10
+ <Carousel.IndicatorButton ariaLabel="Slide 2" />
11
+ <Carousel.IndicatorButton ariaLabel="Slide 3" />
12
+ </Carousel.Indicators>
13
+ ```
14
+ ### Props
15
+ - `ariaLabel` (string): Required. Screen reader text for accessibility.
16
+ - `class` (string): Optional. Additional CSS classes to apply to the component.
17
+ - `elementRef` (HTMLElement): Optional. Reference to the DOM element.
18
+ -->
19
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
20
+ import { CarouselIndicatorButtonState, initCarouselIndicatorButtonState } from './carousel.svelte.js';
21
+ let { ariaLabel, class: classValues, elementRef = $bindable(null), ...restOfProps } = $props();
22
+ // Initialize indicator button state
23
+ const indicatorState = initCarouselIndicatorButtonState({});
24
+ let classes = $derived(uniqueClsx({
25
+ active: indicatorState.isActive || indicatorState.isNextActive
26
+ }, classValues));
27
+ let effectiveAriaLabel = $derived(ariaLabel || `Slide ${indicatorState.index + 1}`);
28
+ const handleClick = (event) => {
29
+ indicatorState.onclick(event);
30
+ };
31
+ </script>
32
+
33
+ <button
34
+ aria-label={effectiveAriaLabel}
35
+ bind:this={elementRef}
36
+ class={classes}
37
+ data-bs-target="true"
38
+ type="button"
39
+ aria-current={indicatorState.isActive ? 'true' : 'false'}
40
+ onclick={handleClick}
41
+ {...restOfProps}></button>
@@ -0,0 +1,21 @@
1
+ import type { Carousel } from './index.js';
2
+ /**
3
+ * ## Carousel.IndicatorButton
4
+ * Button for carousel indicators. Should be placed inside a Carousel.Indicators component.
5
+ *
6
+ * @example
7
+ * ```svelte
8
+ * <Carousel.Indicators>
9
+ * <Carousel.IndicatorButton ariaLabel="Slide 1" />
10
+ * <Carousel.IndicatorButton ariaLabel="Slide 2" />
11
+ * <Carousel.IndicatorButton ariaLabel="Slide 3" />
12
+ * </Carousel.Indicators>
13
+ * ```
14
+ * ### Props
15
+ * - `ariaLabel` (string): Required. Screen reader text for accessibility.
16
+ * - `class` (string): Optional. Additional CSS classes to apply to the component.
17
+ * - `elementRef` (HTMLElement): Optional. Reference to the DOM element.
18
+ */
19
+ declare const CarouselIndicatorButton: import("svelte").Component<Carousel.IndicatorButtonProps, {}, "elementRef">;
20
+ type CarouselIndicatorButton = ReturnType<typeof CarouselIndicatorButton>;
21
+ export default CarouselIndicatorButton;
@@ -0,0 +1,33 @@
1
+ <!--
2
+ @component
3
+ ## Carousel.Indicators
4
+ Container for indicator buttons. Should be placed inside a Carousel.Root component.
5
+
6
+ @example
7
+ ```svelte
8
+ <Carousel.Root id="myCarousel">
9
+ <Carousel.Indicators>
10
+ <Carousel.IndicatorButton slideTo={0} ariaLabel="Slide 1" />
11
+ <Carousel.IndicatorButton slideTo={1} ariaLabel="Slide 2" />
12
+ <Carousel.IndicatorButton slideTo={2} ariaLabel="Slide 3" />
13
+ </Carousel.Indicators>
14
+ <Carousel.Inner>
15
+ Slides...
16
+ </Carousel.Inner>
17
+ </Carousel.Root>
18
+ ```
19
+ ### Props
20
+ - `class` (string): Optional. Additional CSS classes to apply to the component.
21
+ - `elementRef` (HTMLElement): Optional. Reference to the DOM element.
22
+ - `id` (string): Optional. Unique identifier for the component.
23
+ -->
24
+ <script lang="ts">import { uniqueClsx } from '../common/css.js';
25
+ // Generate a unique ID for the carousel-indicators element, in case one is not provided
26
+ const uid = $props.id();
27
+ let { children, class: classValues, elementRef = $bindable(null), id = `carousel-indicators-${uid}`, ...restOfProps } = $props();
28
+ let classes = $derived(uniqueClsx('carousel-indicators', classValues));
29
+ </script>
30
+
31
+ <div bind:this={elementRef} class={classes} {id} {...restOfProps}>
32
+ {@render children?.()}
33
+ </div>
@@ -0,0 +1,25 @@
1
+ /**
2
+ * ## Carousel.Indicators
3
+ * Container for indicator buttons. Should be placed inside a Carousel.Root component.
4
+ *
5
+ * @example
6
+ * ```svelte
7
+ * <Carousel.Root id="myCarousel">
8
+ * <Carousel.Indicators>
9
+ * <Carousel.IndicatorButton slideTo={0} ariaLabel="Slide 1" />
10
+ * <Carousel.IndicatorButton slideTo={1} ariaLabel="Slide 2" />
11
+ * <Carousel.IndicatorButton slideTo={2} ariaLabel="Slide 3" />
12
+ * </Carousel.Indicators>
13
+ * <Carousel.Inner>
14
+ * Slides...
15
+ * </Carousel.Inner>
16
+ * </Carousel.Root>
17
+ * ```
18
+ * ### Props
19
+ * - `class` (string): Optional. Additional CSS classes to apply to the component.
20
+ * - `elementRef` (HTMLElement): Optional. Reference to the DOM element.
21
+ * - `id` (string): Optional. Unique identifier for the component.
22
+ */
23
+ declare const CarouselIndicators: import("svelte").Component<import("../index.js").DivElement, {}, "elementRef">;
24
+ type CarouselIndicators = ReturnType<typeof CarouselIndicators>;
25
+ export default CarouselIndicators;