react-bootstrap 2.10.9 → 3.0.0-beta.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 (839) hide show
  1. package/CHANGELOG.md +1374 -0
  2. package/cjs/AbstractModalHeader.d.ts +23 -5
  3. package/cjs/AbstractModalHeader.js +2 -1
  4. package/cjs/Accordion.d.ts +43 -14
  5. package/cjs/Accordion.js +3 -3
  6. package/cjs/AccordionBody.d.ts +12 -4
  7. package/cjs/AccordionBody.js +3 -3
  8. package/cjs/AccordionButton.d.ts +11 -5
  9. package/cjs/AccordionButton.js +7 -34
  10. package/cjs/AccordionCollapse.d.ts +16 -6
  11. package/cjs/AccordionCollapse.js +3 -3
  12. package/cjs/AccordionContext.d.ts +2 -2
  13. package/cjs/AccordionContext.js +1 -1
  14. package/cjs/AccordionHeader.d.ts +11 -3
  15. package/cjs/AccordionHeader.js +3 -3
  16. package/cjs/AccordionItem.d.ts +14 -3
  17. package/cjs/AccordionItem.js +3 -3
  18. package/cjs/AccordionItemContext.js +1 -1
  19. package/cjs/Alert.d.ts +51 -13
  20. package/cjs/Alert.js +3 -3
  21. package/cjs/AlertHeading.d.ts +11 -3
  22. package/cjs/AlertHeading.js +3 -3
  23. package/cjs/AlertLink.d.ts +11 -3
  24. package/cjs/AlertLink.js +3 -3
  25. package/cjs/Anchor.d.ts +1 -1
  26. package/cjs/Badge.d.ts +28 -7
  27. package/cjs/Badge.js +3 -3
  28. package/cjs/BootstrapModalManager.d.ts +1 -1
  29. package/cjs/BootstrapModalManager.js +1 -2
  30. package/cjs/Breadcrumb.d.ts +21 -6
  31. package/cjs/Breadcrumb.js +3 -3
  32. package/cjs/BreadcrumbItem.d.ts +36 -9
  33. package/cjs/BreadcrumbItem.js +3 -3
  34. package/cjs/Button.d.ts +42 -8
  35. package/cjs/Button.js +3 -3
  36. package/cjs/ButtonGroup.d.ts +25 -5
  37. package/cjs/ButtonGroup.js +3 -3
  38. package/cjs/ButtonToolbar.d.ts +11 -2
  39. package/cjs/ButtonToolbar.js +3 -3
  40. package/cjs/Card.d.ts +44 -17
  41. package/cjs/Card.js +3 -3
  42. package/cjs/CardBody.d.ts +11 -3
  43. package/cjs/CardBody.js +3 -3
  44. package/cjs/CardFooter.d.ts +11 -3
  45. package/cjs/CardFooter.js +3 -3
  46. package/cjs/CardGroup.d.ts +11 -3
  47. package/cjs/CardGroup.js +3 -3
  48. package/cjs/CardHeader.d.ts +11 -3
  49. package/cjs/CardHeader.js +3 -3
  50. package/cjs/CardHeaderContext.js +1 -1
  51. package/cjs/CardImg.d.ts +14 -3
  52. package/cjs/CardImg.js +3 -3
  53. package/cjs/CardImgOverlay.d.ts +11 -3
  54. package/cjs/CardImgOverlay.js +3 -3
  55. package/cjs/CardLink.d.ts +11 -3
  56. package/cjs/CardLink.js +3 -3
  57. package/cjs/CardSubtitle.d.ts +11 -3
  58. package/cjs/CardSubtitle.js +3 -3
  59. package/cjs/CardText.d.ts +11 -3
  60. package/cjs/CardText.js +3 -3
  61. package/cjs/CardTitle.d.ts +11 -3
  62. package/cjs/CardTitle.js +3 -3
  63. package/cjs/Carousel.d.ts +127 -27
  64. package/cjs/Carousel.js +8 -8
  65. package/cjs/CarouselCaption.d.ts +11 -3
  66. package/cjs/CarouselCaption.js +3 -3
  67. package/cjs/CarouselItem.d.ts +15 -4
  68. package/cjs/CarouselItem.js +3 -3
  69. package/cjs/CloseButton.d.ts +10 -1
  70. package/cjs/CloseButton.js +3 -17
  71. package/cjs/Col.d.ts +41 -21
  72. package/cjs/Col.js +7 -48
  73. package/cjs/Collapse.d.ts +45 -10
  74. package/cjs/Collapse.js +6 -7
  75. package/cjs/Container.d.ts +15 -4
  76. package/cjs/Container.js +3 -3
  77. package/cjs/Dropdown.d.ts +10 -17
  78. package/cjs/Dropdown.js +3 -4
  79. package/cjs/DropdownButton.d.ts +42 -11
  80. package/cjs/DropdownButton.js +1 -56
  81. package/cjs/DropdownContext.d.ts +1 -1
  82. package/cjs/DropdownContext.js +1 -1
  83. package/cjs/DropdownDivider.d.ts +15 -3
  84. package/cjs/DropdownDivider.js +3 -3
  85. package/cjs/DropdownHeader.d.ts +15 -3
  86. package/cjs/DropdownHeader.js +3 -3
  87. package/cjs/DropdownItem.d.ts +28 -4
  88. package/cjs/DropdownItem.js +3 -3
  89. package/cjs/DropdownItemText.d.ts +11 -3
  90. package/cjs/DropdownItemText.js +3 -3
  91. package/cjs/DropdownMenu.d.ts +55 -12
  92. package/cjs/DropdownMenu.js +3 -4
  93. package/cjs/DropdownToggle.d.ts +20 -4
  94. package/cjs/DropdownToggle.js +3 -3
  95. package/cjs/ElementChildren.js +2 -2
  96. package/cjs/Fade.d.ts +31 -7
  97. package/cjs/Fade.js +3 -3
  98. package/cjs/Feedback.d.ts +15 -6
  99. package/cjs/Feedback.js +3 -16
  100. package/cjs/Figure.d.ts +12 -4
  101. package/cjs/Figure.js +3 -3
  102. package/cjs/FigureCaption.d.ts +11 -3
  103. package/cjs/FigureCaption.js +3 -3
  104. package/cjs/FigureImage.d.ts +1 -1
  105. package/cjs/FigureImage.js +4 -5
  106. package/cjs/FloatingLabel.d.ts +19 -5
  107. package/cjs/FloatingLabel.js +3 -3
  108. package/cjs/Form.d.ts +159 -135
  109. package/cjs/Form.js +3 -22
  110. package/cjs/FormCheck.d.ts +81 -15
  111. package/cjs/FormCheck.js +3 -3
  112. package/cjs/FormCheckInput.d.ts +27 -6
  113. package/cjs/FormCheckInput.js +3 -3
  114. package/cjs/FormCheckLabel.d.ts +9 -2
  115. package/cjs/FormCheckLabel.js +3 -3
  116. package/cjs/FormContext.js +1 -1
  117. package/cjs/FormControl.d.ts +59 -14
  118. package/cjs/FormControl.js +3 -3
  119. package/cjs/FormFloating.d.ts +11 -3
  120. package/cjs/FormFloating.js +3 -3
  121. package/cjs/FormGroup.d.ts +11 -4
  122. package/cjs/FormGroup.js +1 -1
  123. package/cjs/FormLabel.d.ts +29 -6
  124. package/cjs/FormLabel.js +9 -13
  125. package/cjs/FormRange.d.ts +13 -2
  126. package/cjs/FormRange.js +3 -3
  127. package/cjs/FormSelect.d.ts +39 -7
  128. package/cjs/FormSelect.js +3 -3
  129. package/cjs/FormText.d.ts +16 -4
  130. package/cjs/FormText.js +3 -3
  131. package/cjs/Image.d.ts +7 -15
  132. package/cjs/Image.js +6 -29
  133. package/cjs/InputGroup.d.ts +24 -8
  134. package/cjs/InputGroup.js +3 -3
  135. package/cjs/InputGroupContext.js +1 -1
  136. package/cjs/InputGroupText.d.ts +11 -3
  137. package/cjs/InputGroupText.js +3 -3
  138. package/cjs/ListGroup.d.ts +35 -10
  139. package/cjs/ListGroup.js +3 -3
  140. package/cjs/ListGroupItem.d.ts +34 -7
  141. package/cjs/ListGroupItem.js +3 -5
  142. package/cjs/Modal.d.ts +53 -16
  143. package/cjs/Modal.js +4 -7
  144. package/cjs/ModalBody.d.ts +11 -3
  145. package/cjs/ModalBody.js +3 -3
  146. package/cjs/ModalContext.js +2 -2
  147. package/cjs/ModalDialog.d.ts +29 -6
  148. package/cjs/ModalDialog.js +4 -4
  149. package/cjs/ModalFooter.d.ts +11 -3
  150. package/cjs/ModalFooter.js +3 -3
  151. package/cjs/ModalHeader.d.ts +6 -3
  152. package/cjs/ModalHeader.js +3 -3
  153. package/cjs/ModalTitle.d.ts +11 -3
  154. package/cjs/ModalTitle.js +3 -3
  155. package/cjs/Nav.d.ts +49 -15
  156. package/cjs/Nav.js +3 -3
  157. package/cjs/NavContext.d.ts +1 -1
  158. package/cjs/NavContext.js +1 -1
  159. package/cjs/NavDropdown.d.ts +44 -15
  160. package/cjs/NavDropdown.js +3 -3
  161. package/cjs/NavItem.d.ts +11 -3
  162. package/cjs/NavItem.js +3 -3
  163. package/cjs/NavLink.d.ts +33 -4
  164. package/cjs/NavLink.js +3 -3
  165. package/cjs/Navbar.d.ts +103 -17
  166. package/cjs/Navbar.js +3 -3
  167. package/cjs/NavbarBrand.d.ts +15 -4
  168. package/cjs/NavbarBrand.js +3 -3
  169. package/cjs/NavbarCollapse.d.ts +6 -3
  170. package/cjs/NavbarCollapse.js +1 -1
  171. package/cjs/NavbarContext.js +1 -1
  172. package/cjs/NavbarOffcanvas.d.ts +3 -2
  173. package/cjs/NavbarOffcanvas.js +1 -2
  174. package/cjs/NavbarText.d.ts +11 -3
  175. package/cjs/NavbarText.js +3 -3
  176. package/cjs/NavbarToggle.d.ts +19 -4
  177. package/cjs/NavbarToggle.js +3 -3
  178. package/cjs/Offcanvas.d.ts +27 -12
  179. package/cjs/Offcanvas.js +46 -43
  180. package/cjs/OffcanvasBody.d.ts +11 -3
  181. package/cjs/OffcanvasBody.js +3 -3
  182. package/cjs/OffcanvasHeader.d.ts +6 -3
  183. package/cjs/OffcanvasHeader.js +3 -3
  184. package/cjs/OffcanvasTitle.d.ts +11 -3
  185. package/cjs/OffcanvasTitle.js +3 -3
  186. package/cjs/OffcanvasToggling.d.ts +32 -8
  187. package/cjs/OffcanvasToggling.js +3 -3
  188. package/cjs/Overlay.d.ts +24 -7
  189. package/cjs/Overlay.js +5 -6
  190. package/cjs/OverlayTrigger.d.ts +50 -12
  191. package/cjs/OverlayTrigger.js +4 -11
  192. package/cjs/PageItem.d.ts +31 -9
  193. package/cjs/PageItem.js +4 -6
  194. package/cjs/Pagination.d.ts +14 -4
  195. package/cjs/Pagination.js +3 -3
  196. package/cjs/Placeholder.d.ts +14 -5
  197. package/cjs/Placeholder.js +1 -1
  198. package/cjs/PlaceholderButton.d.ts +19 -5
  199. package/cjs/PlaceholderButton.js +1 -1
  200. package/cjs/Popover.d.ts +41 -12
  201. package/cjs/Popover.js +4 -3
  202. package/cjs/PopoverBody.d.ts +11 -3
  203. package/cjs/PopoverBody.js +3 -3
  204. package/cjs/PopoverHeader.d.ts +11 -3
  205. package/cjs/PopoverHeader.js +3 -3
  206. package/cjs/ProgressBar.d.ts +44 -11
  207. package/cjs/ProgressBar.js +4 -34
  208. package/cjs/Ratio.d.ts +13 -3
  209. package/cjs/Ratio.js +4 -3
  210. package/cjs/Row.d.ts +41 -9
  211. package/cjs/Row.js +3 -3
  212. package/cjs/Spinner.d.ts +30 -7
  213. package/cjs/Spinner.js +3 -3
  214. package/cjs/SplitButton.d.ts +38 -12
  215. package/cjs/SplitButton.js +1 -59
  216. package/cjs/Stack.d.ts +27 -7
  217. package/cjs/Stack.js +4 -4
  218. package/cjs/Switch.d.ts +4 -4
  219. package/cjs/Switch.js +1 -1
  220. package/cjs/Tab.d.ts +19 -17
  221. package/cjs/Tab.js +0 -22
  222. package/cjs/TabContainer.d.ts +51 -57
  223. package/cjs/TabContainer.js +0 -3
  224. package/cjs/TabContent.d.ts +11 -3
  225. package/cjs/TabContent.js +3 -3
  226. package/cjs/TabPane.d.ts +36 -9
  227. package/cjs/TabPane.js +3 -3
  228. package/cjs/Table.d.ts +42 -9
  229. package/cjs/Table.js +4 -3
  230. package/cjs/Tabs.d.ts +10 -4
  231. package/cjs/Tabs.js +1 -1
  232. package/cjs/ThemeProvider.d.ts +25 -6
  233. package/cjs/ThemeProvider.js +1 -1
  234. package/cjs/Toast.d.ts +47 -13
  235. package/cjs/Toast.js +3 -3
  236. package/cjs/ToastBody.d.ts +11 -3
  237. package/cjs/ToastBody.js +3 -3
  238. package/cjs/ToastContainer.d.ts +19 -5
  239. package/cjs/ToastContainer.js +3 -3
  240. package/cjs/ToastContext.js +2 -2
  241. package/cjs/ToastFade.d.ts +1 -1
  242. package/cjs/ToastFade.js +1 -1
  243. package/cjs/ToastHeader.d.ts +20 -6
  244. package/cjs/ToastHeader.js +3 -3
  245. package/cjs/ToggleButton.d.ts +38 -7
  246. package/cjs/ToggleButton.js +3 -3
  247. package/cjs/ToggleButtonGroup.d.ts +51 -3
  248. package/cjs/ToggleButtonGroup.js +2 -1
  249. package/cjs/Tooltip.d.ts +35 -7
  250. package/cjs/Tooltip.js +3 -3
  251. package/cjs/TransitionWrapper.d.ts +1 -1
  252. package/cjs/TransitionWrapper.js +4 -11
  253. package/cjs/createChainedFunction.js +2 -2
  254. package/cjs/createUtilityClasses.d.ts +0 -2
  255. package/cjs/createUtilityClasses.js +2 -14
  256. package/cjs/createWithBsPrefix.d.ts +2 -2
  257. package/cjs/createWithBsPrefix.js +3 -3
  258. package/cjs/divWithClassName.js +7 -4
  259. package/cjs/getTabTransitionComponent.d.ts +1 -1
  260. package/cjs/helpers.d.ts +0 -20
  261. package/cjs/helpers.js +0 -8
  262. package/cjs/index.d.ts +2 -3
  263. package/cjs/index.js +5 -8
  264. package/cjs/package.json +1 -0
  265. package/cjs/types.d.ts +338 -3
  266. package/cjs/types.js +1 -16
  267. package/cjs/useAccordionButton.d.ts +4 -0
  268. package/cjs/useAccordionButton.js +37 -0
  269. package/cjs/useCol.d.ts +7 -0
  270. package/cjs/useCol.js +49 -0
  271. package/cjs/useOverlayOffset.d.ts +1 -1
  272. package/cjs/usePlaceholder.d.ts +16 -5
  273. package/cjs/usePlaceholder.js +4 -4
  274. package/cjs/useWrappedRefWithWarning.js +1 -1
  275. package/lib/AbstractModalHeader.d.ts +28 -0
  276. package/{esm → lib}/AbstractModalHeader.js +2 -2
  277. package/lib/Accordion.d.ts +47 -0
  278. package/{esm → lib}/Accordion.js +2 -2
  279. package/lib/AccordionBody.d.ts +15 -0
  280. package/{esm → lib}/AccordionBody.js +2 -2
  281. package/lib/AccordionButton.d.ts +14 -0
  282. package/{esm → lib}/AccordionButton.js +3 -30
  283. package/lib/AccordionCollapse.d.ts +22 -0
  284. package/{esm → lib}/AccordionCollapse.js +2 -2
  285. package/{esm → lib}/AccordionContext.d.ts +2 -2
  286. package/lib/AccordionHeader.d.ts +14 -0
  287. package/{esm → lib}/AccordionHeader.js +2 -2
  288. package/lib/AccordionItem.d.ts +18 -0
  289. package/{esm → lib}/AccordionItem.js +2 -2
  290. package/lib/Alert.d.ts +57 -0
  291. package/{esm → lib}/Alert.js +3 -4
  292. package/lib/AlertHeading.d.ts +14 -0
  293. package/{esm → lib}/AlertHeading.js +2 -2
  294. package/lib/AlertLink.d.ts +14 -0
  295. package/{esm → lib}/AlertLink.js +2 -2
  296. package/lib/Anchor.d.ts +3 -0
  297. package/lib/Badge.d.ts +31 -0
  298. package/{esm → lib}/Badge.js +2 -2
  299. package/{esm → lib}/BootstrapModalManager.d.ts +1 -1
  300. package/{esm → lib}/BootstrapModalManager.js +1 -2
  301. package/lib/Breadcrumb.d.ts +25 -0
  302. package/{esm → lib}/Breadcrumb.js +2 -2
  303. package/lib/BreadcrumbItem.d.ts +39 -0
  304. package/{esm → lib}/BreadcrumbItem.js +2 -2
  305. package/lib/Button.d.ts +45 -0
  306. package/{esm → lib}/Button.js +2 -2
  307. package/lib/ButtonGroup.d.ts +28 -0
  308. package/{esm → lib}/ButtonGroup.js +2 -2
  309. package/lib/ButtonToolbar.d.ts +15 -0
  310. package/{esm → lib}/ButtonToolbar.js +2 -2
  311. package/lib/Card.d.ts +48 -0
  312. package/{esm → lib}/Card.js +2 -2
  313. package/lib/CardBody.d.ts +14 -0
  314. package/{esm → lib}/CardBody.js +2 -2
  315. package/lib/CardFooter.d.ts +14 -0
  316. package/{esm → lib}/CardFooter.js +2 -2
  317. package/lib/CardGroup.d.ts +14 -0
  318. package/{esm → lib}/CardGroup.js +2 -2
  319. package/lib/CardHeader.d.ts +14 -0
  320. package/{esm → lib}/CardHeader.js +2 -2
  321. package/lib/CardImg.d.ts +18 -0
  322. package/{esm → lib}/CardImg.js +2 -2
  323. package/lib/CardImgOverlay.d.ts +14 -0
  324. package/{esm → lib}/CardImgOverlay.js +2 -2
  325. package/lib/CardLink.d.ts +14 -0
  326. package/{esm → lib}/CardLink.js +2 -2
  327. package/lib/CardSubtitle.d.ts +14 -0
  328. package/{esm → lib}/CardSubtitle.js +2 -2
  329. package/lib/CardText.d.ts +14 -0
  330. package/{esm → lib}/CardText.js +2 -2
  331. package/lib/CardTitle.d.ts +14 -0
  332. package/{esm → lib}/CardTitle.js +2 -2
  333. package/lib/Carousel.d.ts +136 -0
  334. package/{esm → lib}/Carousel.js +8 -10
  335. package/lib/CarouselCaption.d.ts +14 -0
  336. package/{esm → lib}/CarouselCaption.js +2 -2
  337. package/lib/CarouselItem.d.ts +18 -0
  338. package/{esm → lib}/CarouselItem.js +2 -2
  339. package/{esm → lib}/CloseButton.d.ts +10 -1
  340. package/lib/CloseButton.js +17 -0
  341. package/lib/Col.d.ts +48 -0
  342. package/lib/Col.js +23 -0
  343. package/lib/Collapse.d.ts +52 -0
  344. package/{esm → lib}/Collapse.js +5 -7
  345. package/lib/Container.d.ts +18 -0
  346. package/{esm → lib}/Container.js +2 -2
  347. package/lib/Dropdown.d.ts +14 -0
  348. package/{esm → lib}/Dropdown.js +2 -3
  349. package/lib/DropdownButton.d.ts +55 -0
  350. package/lib/DropdownButton.js +51 -0
  351. package/{esm → lib}/DropdownContext.d.ts +1 -1
  352. package/lib/DropdownDivider.d.ts +18 -0
  353. package/{esm → lib}/DropdownDivider.js +2 -2
  354. package/lib/DropdownHeader.d.ts +18 -0
  355. package/{esm → lib}/DropdownHeader.js +2 -2
  356. package/lib/DropdownItem.d.ts +30 -0
  357. package/{esm → lib}/DropdownItem.js +2 -2
  358. package/lib/DropdownItemText.d.ts +14 -0
  359. package/{esm → lib}/DropdownItemText.js +2 -2
  360. package/lib/DropdownMenu.d.ts +61 -0
  361. package/{esm → lib}/DropdownMenu.js +2 -3
  362. package/lib/DropdownToggle.d.ts +28 -0
  363. package/{esm → lib}/DropdownToggle.js +2 -2
  364. package/{esm → lib}/ElementChildren.js +1 -1
  365. package/lib/Fade.d.ts +39 -0
  366. package/{esm → lib}/Fade.js +2 -2
  367. package/lib/Feedback.d.ts +19 -0
  368. package/{esm → lib}/Feedback.js +2 -15
  369. package/lib/Figure.d.ts +17 -0
  370. package/{esm → lib}/Figure.js +2 -2
  371. package/lib/FigureCaption.d.ts +14 -0
  372. package/{esm → lib}/FigureCaption.js +2 -2
  373. package/{esm → lib}/FigureImage.d.ts +1 -1
  374. package/{esm → lib}/FigureImage.js +3 -4
  375. package/lib/FloatingLabel.d.ts +23 -0
  376. package/{esm → lib}/FloatingLabel.js +3 -4
  377. package/{esm → lib}/Form.d.ts +159 -135
  378. package/{esm → lib}/Form.js +2 -21
  379. package/lib/FormCheck.d.ts +88 -0
  380. package/{esm → lib}/FormCheck.js +3 -5
  381. package/lib/FormCheckInput.d.ts +31 -0
  382. package/{esm → lib}/FormCheckInput.js +2 -2
  383. package/{esm → lib}/FormCheckLabel.d.ts +9 -2
  384. package/{esm → lib}/FormCheckLabel.js +2 -2
  385. package/lib/FormControl.d.ts +64 -0
  386. package/{esm → lib}/FormControl.js +2 -2
  387. package/lib/FormFloating.d.ts +14 -0
  388. package/{esm → lib}/FormFloating.js +2 -2
  389. package/lib/FormGroup.d.ts +14 -0
  390. package/lib/FormLabel.d.ts +39 -0
  391. package/{esm → lib}/FormLabel.js +8 -12
  392. package/lib/FormRange.d.ts +17 -0
  393. package/{esm → lib}/FormRange.js +2 -2
  394. package/lib/FormSelect.d.ts +42 -0
  395. package/{esm → lib}/FormSelect.js +2 -2
  396. package/lib/FormText.d.ts +19 -0
  397. package/{esm → lib}/FormText.js +2 -2
  398. package/lib/Image.d.ts +25 -0
  399. package/lib/Image.js +24 -0
  400. package/lib/InputGroup.d.ts +29 -0
  401. package/{esm → lib}/InputGroup.js +2 -2
  402. package/lib/InputGroupText.d.ts +14 -0
  403. package/{esm → lib}/InputGroupText.js +2 -2
  404. package/lib/ListGroup.d.ts +38 -0
  405. package/{esm → lib}/ListGroup.js +2 -2
  406. package/lib/ListGroupItem.d.ts +38 -0
  407. package/{esm → lib}/ListGroupItem.js +2 -4
  408. package/lib/Modal.d.ts +63 -0
  409. package/{esm → lib}/Modal.js +3 -6
  410. package/lib/ModalBody.d.ts +14 -0
  411. package/{esm → lib}/ModalBody.js +2 -2
  412. package/{esm → lib}/ModalContext.js +1 -1
  413. package/lib/ModalDialog.d.ts +34 -0
  414. package/{esm → lib}/ModalDialog.js +3 -3
  415. package/lib/ModalFooter.d.ts +14 -0
  416. package/{esm → lib}/ModalFooter.js +2 -2
  417. package/{esm → lib}/ModalHeader.d.ts +6 -3
  418. package/{esm → lib}/ModalHeader.js +2 -2
  419. package/lib/ModalTitle.d.ts +14 -0
  420. package/{esm → lib}/ModalTitle.js +2 -2
  421. package/lib/Nav.d.ts +52 -0
  422. package/{esm → lib}/Nav.js +2 -2
  423. package/{esm → lib}/NavContext.d.ts +1 -1
  424. package/lib/NavDropdown.d.ts +49 -0
  425. package/{esm → lib}/NavDropdown.js +3 -4
  426. package/lib/NavItem.d.ts +14 -0
  427. package/{esm → lib}/NavItem.js +2 -2
  428. package/lib/NavLink.d.ts +35 -0
  429. package/{esm → lib}/NavLink.js +2 -2
  430. package/lib/Navbar.d.ts +108 -0
  431. package/{esm → lib}/Navbar.js +2 -2
  432. package/lib/NavbarBrand.d.ts +18 -0
  433. package/{esm → lib}/NavbarBrand.js +2 -2
  434. package/{esm → lib}/NavbarCollapse.d.ts +6 -3
  435. package/{esm → lib}/NavbarOffcanvas.d.ts +3 -2
  436. package/{esm → lib}/NavbarOffcanvas.js +0 -1
  437. package/lib/NavbarText.d.ts +14 -0
  438. package/{esm → lib}/NavbarText.js +2 -2
  439. package/lib/NavbarToggle.d.ts +22 -0
  440. package/{esm → lib}/NavbarToggle.js +2 -2
  441. package/lib/Offcanvas.d.ts +33 -0
  442. package/{esm → lib}/Offcanvas.js +46 -45
  443. package/lib/OffcanvasBody.d.ts +14 -0
  444. package/{esm → lib}/OffcanvasBody.js +2 -2
  445. package/{esm → lib}/OffcanvasHeader.d.ts +6 -3
  446. package/{esm → lib}/OffcanvasHeader.js +2 -2
  447. package/lib/OffcanvasTitle.d.ts +14 -0
  448. package/{esm → lib}/OffcanvasTitle.js +2 -2
  449. package/lib/OffcanvasToggling.d.ts +39 -0
  450. package/{esm → lib}/OffcanvasToggling.js +2 -2
  451. package/lib/Overlay.d.ts +41 -0
  452. package/{esm → lib}/Overlay.js +4 -5
  453. package/lib/OverlayTrigger.d.ts +67 -0
  454. package/{esm → lib}/OverlayTrigger.js +4 -13
  455. package/lib/PageItem.d.ts +39 -0
  456. package/{esm → lib}/PageItem.js +4 -6
  457. package/{esm → lib}/Pagination.d.ts +14 -4
  458. package/{esm → lib}/Pagination.js +2 -2
  459. package/lib/Placeholder.d.ts +17 -0
  460. package/lib/PlaceholderButton.d.ts +22 -0
  461. package/lib/Popover.d.ts +48 -0
  462. package/{esm → lib}/Popover.js +4 -4
  463. package/lib/PopoverBody.d.ts +14 -0
  464. package/{esm → lib}/PopoverBody.js +2 -2
  465. package/lib/PopoverHeader.d.ts +14 -0
  466. package/{esm → lib}/PopoverHeader.js +2 -2
  467. package/lib/ProgressBar.d.ts +48 -0
  468. package/{esm → lib}/ProgressBar.js +3 -33
  469. package/lib/Ratio.d.ts +19 -0
  470. package/{esm → lib}/Ratio.js +3 -2
  471. package/lib/Row.d.ts +49 -0
  472. package/{esm → lib}/Row.js +2 -2
  473. package/lib/Spinner.d.ts +33 -0
  474. package/{esm → lib}/Spinner.js +2 -2
  475. package/lib/SplitButton.d.ts +53 -0
  476. package/lib/SplitButton.js +67 -0
  477. package/lib/Stack.d.ts +31 -0
  478. package/{esm → lib}/Stack.js +3 -3
  479. package/{esm → lib}/Switch.d.ts +4 -4
  480. package/lib/Tab.d.ts +29 -0
  481. package/lib/Tab.js +11 -0
  482. package/lib/TabContainer.d.ts +56 -0
  483. package/{esm → lib}/TabContainer.js +0 -1
  484. package/lib/TabContent.d.ts +14 -0
  485. package/{esm → lib}/TabContent.js +2 -2
  486. package/lib/TabPane.d.ts +39 -0
  487. package/{esm → lib}/TabPane.js +2 -2
  488. package/lib/Table.d.ts +46 -0
  489. package/{esm → lib}/Table.js +3 -2
  490. package/lib/Tabs.d.ts +15 -0
  491. package/{esm → lib}/Tabs.js +1 -2
  492. package/{esm → lib}/ThemeProvider.d.ts +25 -6
  493. package/lib/Toast.d.ts +52 -0
  494. package/{esm → lib}/Toast.js +2 -2
  495. package/lib/ToastBody.d.ts +14 -0
  496. package/{esm → lib}/ToastBody.js +2 -2
  497. package/lib/ToastContainer.d.ts +23 -0
  498. package/{esm → lib}/ToastContainer.js +2 -2
  499. package/{esm → lib}/ToastContext.js +1 -1
  500. package/{esm → lib}/ToastFade.d.ts +1 -1
  501. package/lib/ToastHeader.d.ts +24 -0
  502. package/{esm → lib}/ToastHeader.js +3 -4
  503. package/lib/ToggleButton.d.ts +46 -0
  504. package/{esm → lib}/ToggleButton.js +3 -5
  505. package/lib/ToggleButtonGroup.d.ts +71 -0
  506. package/{esm → lib}/ToggleButtonGroup.js +1 -0
  507. package/lib/Tooltip.d.ts +43 -0
  508. package/{esm → lib}/Tooltip.js +3 -4
  509. package/{esm → lib}/TransitionWrapper.d.ts +1 -1
  510. package/{esm → lib}/TransitionWrapper.js +3 -10
  511. package/{esm → lib}/createChainedFunction.js +2 -2
  512. package/{esm → lib}/createUtilityClasses.d.ts +0 -2
  513. package/{esm → lib}/createUtilityClasses.js +0 -11
  514. package/{esm → lib}/createWithBsPrefix.d.ts +2 -2
  515. package/{esm → lib}/createWithBsPrefix.js +2 -2
  516. package/lib/divWithClassName.js +11 -0
  517. package/{esm → lib}/getTabTransitionComponent.d.ts +1 -1
  518. package/lib/helpers.d.ts +4 -0
  519. package/{esm → lib}/helpers.js +0 -5
  520. package/{esm → lib}/index.d.ts +2 -3
  521. package/{esm → lib}/index.js +3 -3
  522. package/lib/package.json +1 -0
  523. package/lib/types.d.ts +364 -0
  524. package/lib/types.js +1 -0
  525. package/lib/useAccordionButton.d.ts +4 -0
  526. package/lib/useAccordionButton.js +32 -0
  527. package/lib/useCol.d.ts +7 -0
  528. package/{esm/Col.js → lib/useCol.js} +4 -25
  529. package/{esm → lib}/useOverlayOffset.d.ts +1 -1
  530. package/lib/usePlaceholder.d.ts +21 -0
  531. package/{esm → lib}/usePlaceholder.js +3 -3
  532. package/{esm → lib}/useWrappedRefWithWarning.js +1 -1
  533. package/package.json +94 -17
  534. package/AbstractModalHeader/package.json +0 -7
  535. package/Accordion/package.json +0 -7
  536. package/AccordionBody/package.json +0 -7
  537. package/AccordionButton/package.json +0 -7
  538. package/AccordionCollapse/package.json +0 -7
  539. package/AccordionContext/package.json +0 -7
  540. package/AccordionHeader/package.json +0 -7
  541. package/AccordionItem/package.json +0 -7
  542. package/AccordionItemContext/package.json +0 -7
  543. package/Alert/package.json +0 -7
  544. package/AlertHeading/package.json +0 -7
  545. package/AlertLink/package.json +0 -7
  546. package/Anchor/package.json +0 -7
  547. package/Badge/package.json +0 -7
  548. package/BootstrapModalManager/package.json +0 -7
  549. package/Breadcrumb/package.json +0 -7
  550. package/BreadcrumbItem/package.json +0 -7
  551. package/Button/package.json +0 -7
  552. package/ButtonGroup/package.json +0 -7
  553. package/ButtonToolbar/package.json +0 -7
  554. package/Card/package.json +0 -7
  555. package/CardBody/package.json +0 -7
  556. package/CardFooter/package.json +0 -7
  557. package/CardGroup/package.json +0 -7
  558. package/CardHeader/package.json +0 -7
  559. package/CardHeaderContext/package.json +0 -7
  560. package/CardImg/package.json +0 -7
  561. package/CardImgOverlay/package.json +0 -7
  562. package/CardLink/package.json +0 -7
  563. package/CardSubtitle/package.json +0 -7
  564. package/CardText/package.json +0 -7
  565. package/CardTitle/package.json +0 -7
  566. package/Carousel/package.json +0 -7
  567. package/CarouselCaption/package.json +0 -7
  568. package/CarouselItem/package.json +0 -7
  569. package/CloseButton/package.json +0 -7
  570. package/Col/package.json +0 -7
  571. package/Collapse/package.json +0 -7
  572. package/Container/package.json +0 -7
  573. package/Dropdown/package.json +0 -7
  574. package/DropdownButton/package.json +0 -7
  575. package/DropdownContext/package.json +0 -7
  576. package/DropdownDivider/package.json +0 -7
  577. package/DropdownHeader/package.json +0 -7
  578. package/DropdownItem/package.json +0 -7
  579. package/DropdownItemText/package.json +0 -7
  580. package/DropdownMenu/package.json +0 -7
  581. package/DropdownToggle/package.json +0 -7
  582. package/ElementChildren/package.json +0 -7
  583. package/Fade/package.json +0 -7
  584. package/Feedback/package.json +0 -7
  585. package/Figure/package.json +0 -7
  586. package/FigureCaption/package.json +0 -7
  587. package/FigureImage/package.json +0 -7
  588. package/FloatingLabel/package.json +0 -7
  589. package/Form/package.json +0 -7
  590. package/FormCheck/package.json +0 -7
  591. package/FormCheckInput/package.json +0 -7
  592. package/FormCheckLabel/package.json +0 -7
  593. package/FormContext/package.json +0 -7
  594. package/FormControl/package.json +0 -7
  595. package/FormFloating/package.json +0 -7
  596. package/FormGroup/package.json +0 -7
  597. package/FormLabel/package.json +0 -7
  598. package/FormRange/package.json +0 -7
  599. package/FormSelect/package.json +0 -7
  600. package/FormText/package.json +0 -7
  601. package/Image/package.json +0 -7
  602. package/InputGroup/package.json +0 -7
  603. package/InputGroupContext/package.json +0 -7
  604. package/InputGroupText/package.json +0 -7
  605. package/ListGroup/package.json +0 -7
  606. package/ListGroupItem/package.json +0 -7
  607. package/Modal/package.json +0 -7
  608. package/ModalBody/package.json +0 -7
  609. package/ModalContext/package.json +0 -7
  610. package/ModalDialog/package.json +0 -7
  611. package/ModalFooter/package.json +0 -7
  612. package/ModalHeader/package.json +0 -7
  613. package/ModalTitle/package.json +0 -7
  614. package/Nav/package.json +0 -7
  615. package/NavContext/package.json +0 -7
  616. package/NavDropdown/package.json +0 -7
  617. package/NavItem/package.json +0 -7
  618. package/NavLink/package.json +0 -7
  619. package/Navbar/package.json +0 -7
  620. package/NavbarBrand/package.json +0 -7
  621. package/NavbarCollapse/package.json +0 -7
  622. package/NavbarContext/package.json +0 -7
  623. package/NavbarOffcanvas/package.json +0 -7
  624. package/NavbarText/package.json +0 -7
  625. package/NavbarToggle/package.json +0 -7
  626. package/Offcanvas/package.json +0 -7
  627. package/OffcanvasBody/package.json +0 -7
  628. package/OffcanvasHeader/package.json +0 -7
  629. package/OffcanvasTitle/package.json +0 -7
  630. package/OffcanvasToggling/package.json +0 -7
  631. package/Overlay/package.json +0 -7
  632. package/OverlayTrigger/package.json +0 -7
  633. package/PageItem/package.json +0 -7
  634. package/Pagination/package.json +0 -7
  635. package/Placeholder/package.json +0 -7
  636. package/PlaceholderButton/package.json +0 -7
  637. package/Popover/package.json +0 -7
  638. package/PopoverBody/package.json +0 -7
  639. package/PopoverHeader/package.json +0 -7
  640. package/ProgressBar/package.json +0 -7
  641. package/Ratio/package.json +0 -7
  642. package/Row/package.json +0 -7
  643. package/SSRProvider/package.json +0 -7
  644. package/Spinner/package.json +0 -7
  645. package/SplitButton/package.json +0 -7
  646. package/Stack/package.json +0 -7
  647. package/Switch/package.json +0 -7
  648. package/Tab/package.json +0 -7
  649. package/TabContainer/package.json +0 -7
  650. package/TabContent/package.json +0 -7
  651. package/TabPane/package.json +0 -7
  652. package/Table/package.json +0 -7
  653. package/Tabs/package.json +0 -7
  654. package/ThemeProvider/package.json +0 -7
  655. package/Toast/package.json +0 -7
  656. package/ToastBody/package.json +0 -7
  657. package/ToastContainer/package.json +0 -7
  658. package/ToastContext/package.json +0 -7
  659. package/ToastFade/package.json +0 -7
  660. package/ToastHeader/package.json +0 -7
  661. package/ToggleButton/package.json +0 -7
  662. package/ToggleButtonGroup/package.json +0 -7
  663. package/Tooltip/package.json +0 -7
  664. package/TransitionWrapper/package.json +0 -7
  665. package/cjs/SSRProvider.d.ts +0 -4
  666. package/cjs/SSRProvider.js +0 -7
  667. package/cjs/safeFindDOMNode.d.ts +0 -1
  668. package/cjs/safeFindDOMNode.js +0 -13
  669. package/createChainedFunction/package.json +0 -7
  670. package/createUtilityClasses/package.json +0 -7
  671. package/createWithBsPrefix/package.json +0 -7
  672. package/dist/react-bootstrap.js +0 -16932
  673. package/dist/react-bootstrap.min.js +0 -2
  674. package/dist/react-bootstrap.min.js.LICENSE.txt +0 -15
  675. package/divWithClassName/package.json +0 -7
  676. package/esm/AbstractModalHeader.d.ts +0 -10
  677. package/esm/Accordion.d.ts +0 -18
  678. package/esm/AccordionBody.d.ts +0 -7
  679. package/esm/AccordionButton.d.ts +0 -8
  680. package/esm/AccordionCollapse.d.ts +0 -12
  681. package/esm/AccordionHeader.d.ts +0 -6
  682. package/esm/AccordionItem.d.ts +0 -7
  683. package/esm/Alert.d.ts +0 -19
  684. package/esm/AlertHeading.d.ts +0 -6
  685. package/esm/AlertLink.d.ts +0 -6
  686. package/esm/Anchor.d.ts +0 -3
  687. package/esm/Badge.d.ts +0 -10
  688. package/esm/Breadcrumb.d.ts +0 -10
  689. package/esm/BreadcrumbItem.d.ts +0 -12
  690. package/esm/Button.d.ts +0 -11
  691. package/esm/ButtonGroup.d.ts +0 -8
  692. package/esm/ButtonToolbar.d.ts +0 -6
  693. package/esm/Card.d.ts +0 -21
  694. package/esm/CardBody.d.ts +0 -6
  695. package/esm/CardFooter.d.ts +0 -6
  696. package/esm/CardGroup.d.ts +0 -6
  697. package/esm/CardHeader.d.ts +0 -6
  698. package/esm/CardImg.d.ts +0 -7
  699. package/esm/CardImgOverlay.d.ts +0 -6
  700. package/esm/CardLink.d.ts +0 -6
  701. package/esm/CardSubtitle.d.ts +0 -6
  702. package/esm/CardText.d.ts +0 -6
  703. package/esm/CardTitle.d.ts +0 -6
  704. package/esm/Carousel.d.ts +0 -36
  705. package/esm/CarouselCaption.d.ts +0 -6
  706. package/esm/CarouselItem.d.ts +0 -7
  707. package/esm/CloseButton.js +0 -31
  708. package/esm/Col.d.ts +0 -28
  709. package/esm/Collapse.d.ts +0 -17
  710. package/esm/Container.d.ts +0 -7
  711. package/esm/Dropdown.d.ts +0 -21
  712. package/esm/DropdownButton.d.ts +0 -24
  713. package/esm/DropdownButton.js +0 -107
  714. package/esm/DropdownDivider.d.ts +0 -6
  715. package/esm/DropdownHeader.d.ts +0 -6
  716. package/esm/DropdownItem.d.ts +0 -6
  717. package/esm/DropdownItemText.d.ts +0 -6
  718. package/esm/DropdownMenu.d.ts +0 -18
  719. package/esm/DropdownToggle.d.ts +0 -12
  720. package/esm/Fade.d.ts +0 -15
  721. package/esm/Feedback.d.ts +0 -10
  722. package/esm/Figure.d.ts +0 -9
  723. package/esm/FigureCaption.d.ts +0 -6
  724. package/esm/FloatingLabel.d.ts +0 -9
  725. package/esm/FormCheck.d.ts +0 -22
  726. package/esm/FormCheckInput.d.ts +0 -10
  727. package/esm/FormControl.d.ts +0 -19
  728. package/esm/FormFloating.d.ts +0 -6
  729. package/esm/FormGroup.d.ts +0 -7
  730. package/esm/FormLabel.d.ts +0 -16
  731. package/esm/FormRange.d.ts +0 -6
  732. package/esm/FormSelect.d.ts +0 -10
  733. package/esm/FormText.d.ts +0 -7
  734. package/esm/Image.d.ts +0 -33
  735. package/esm/Image.js +0 -48
  736. package/esm/InputGroup.d.ts +0 -13
  737. package/esm/InputGroupText.d.ts +0 -6
  738. package/esm/ListGroup.d.ts +0 -13
  739. package/esm/ListGroupItem.d.ts +0 -11
  740. package/esm/Modal.d.ts +0 -26
  741. package/esm/ModalBody.d.ts +0 -6
  742. package/esm/ModalDialog.d.ts +0 -11
  743. package/esm/ModalFooter.d.ts +0 -6
  744. package/esm/ModalTitle.d.ts +0 -6
  745. package/esm/Nav.d.ts +0 -18
  746. package/esm/NavDropdown.d.ts +0 -20
  747. package/esm/NavItem.d.ts +0 -6
  748. package/esm/NavLink.d.ts +0 -6
  749. package/esm/Navbar.d.ts +0 -22
  750. package/esm/NavbarBrand.d.ts +0 -7
  751. package/esm/NavbarText.d.ts +0 -6
  752. package/esm/NavbarToggle.d.ts +0 -7
  753. package/esm/Offcanvas.d.ts +0 -18
  754. package/esm/OffcanvasBody.d.ts +0 -6
  755. package/esm/OffcanvasTitle.d.ts +0 -6
  756. package/esm/OffcanvasToggling.d.ts +0 -15
  757. package/esm/Overlay.d.ts +0 -24
  758. package/esm/OverlayTrigger.d.ts +0 -29
  759. package/esm/PageItem.d.ts +0 -17
  760. package/esm/Placeholder.d.ts +0 -8
  761. package/esm/PlaceholderButton.d.ts +0 -8
  762. package/esm/Popover.d.ts +0 -19
  763. package/esm/PopoverBody.d.ts +0 -6
  764. package/esm/PopoverHeader.d.ts +0 -6
  765. package/esm/ProgressBar.d.ts +0 -15
  766. package/esm/Ratio.d.ts +0 -9
  767. package/esm/Row.d.ts +0 -17
  768. package/esm/SSRProvider.d.ts +0 -4
  769. package/esm/SSRProvider.js +0 -2
  770. package/esm/Spinner.d.ts +0 -10
  771. package/esm/SplitButton.d.ts +0 -27
  772. package/esm/SplitButton.js +0 -126
  773. package/esm/Stack.d.ts +0 -11
  774. package/esm/Tab.d.ts +0 -27
  775. package/esm/Tab.js +0 -33
  776. package/esm/TabContainer.d.ts +0 -62
  777. package/esm/TabContent.d.ts +0 -6
  778. package/esm/TabPane.d.ts +0 -12
  779. package/esm/Table.d.ts +0 -13
  780. package/esm/Tabs.d.ts +0 -9
  781. package/esm/Toast.d.ts +0 -18
  782. package/esm/ToastBody.d.ts +0 -6
  783. package/esm/ToastContainer.d.ts +0 -9
  784. package/esm/ToastHeader.d.ts +0 -10
  785. package/esm/ToggleButton.d.ts +0 -15
  786. package/esm/ToggleButtonGroup.d.ts +0 -23
  787. package/esm/Tooltip.d.ts +0 -15
  788. package/esm/divWithClassName.js +0 -8
  789. package/esm/helpers.d.ts +0 -24
  790. package/esm/safeFindDOMNode.d.ts +0 -1
  791. package/esm/safeFindDOMNode.js +0 -7
  792. package/esm/types.d.ts +0 -29
  793. package/esm/types.js +0 -13
  794. package/esm/usePlaceholder.d.ts +0 -10
  795. package/getInitialPopperStyles/package.json +0 -7
  796. package/getTabTransitionComponent/package.json +0 -7
  797. package/helpers/package.json +0 -7
  798. package/safeFindDOMNode/package.json +0 -7
  799. package/transitionEndListener/package.json +0 -7
  800. package/triggerBrowserReflow/package.json +0 -7
  801. package/types/package.json +0 -7
  802. package/useOverlayOffset/package.json +0 -7
  803. package/usePlaceholder/package.json +0 -7
  804. package/useWrappedRefWithWarning/package.json +0 -7
  805. /package/{esm → lib}/AccordionContext.js +0 -0
  806. /package/{esm → lib}/AccordionItemContext.d.ts +0 -0
  807. /package/{esm → lib}/AccordionItemContext.js +0 -0
  808. /package/{esm → lib}/Anchor.js +0 -0
  809. /package/{esm → lib}/CardHeaderContext.d.ts +0 -0
  810. /package/{esm → lib}/CardHeaderContext.js +0 -0
  811. /package/{esm → lib}/DropdownContext.js +0 -0
  812. /package/{esm → lib}/ElementChildren.d.ts +0 -0
  813. /package/{esm → lib}/FormContext.d.ts +0 -0
  814. /package/{esm → lib}/FormContext.js +0 -0
  815. /package/{esm → lib}/FormGroup.js +0 -0
  816. /package/{esm → lib}/InputGroupContext.d.ts +0 -0
  817. /package/{esm → lib}/InputGroupContext.js +0 -0
  818. /package/{esm → lib}/ModalContext.d.ts +0 -0
  819. /package/{esm → lib}/NavContext.js +0 -0
  820. /package/{esm → lib}/NavbarCollapse.js +0 -0
  821. /package/{esm → lib}/NavbarContext.d.ts +0 -0
  822. /package/{esm → lib}/NavbarContext.js +0 -0
  823. /package/{esm → lib}/Placeholder.js +0 -0
  824. /package/{esm → lib}/PlaceholderButton.js +0 -0
  825. /package/{esm → lib}/Switch.js +0 -0
  826. /package/{esm → lib}/ThemeProvider.js +0 -0
  827. /package/{esm → lib}/ToastContext.d.ts +0 -0
  828. /package/{esm → lib}/ToastFade.js +0 -0
  829. /package/{esm → lib}/createChainedFunction.d.ts +0 -0
  830. /package/{esm → lib}/divWithClassName.d.ts +0 -0
  831. /package/{esm → lib}/getInitialPopperStyles.d.ts +0 -0
  832. /package/{esm → lib}/getInitialPopperStyles.js +0 -0
  833. /package/{esm → lib}/getTabTransitionComponent.js +0 -0
  834. /package/{esm → lib}/transitionEndListener.d.ts +0 -0
  835. /package/{esm → lib}/transitionEndListener.js +0 -0
  836. /package/{esm → lib}/triggerBrowserReflow.d.ts +0 -0
  837. /package/{esm → lib}/triggerBrowserReflow.js +0 -0
  838. /package/{esm → lib}/useOverlayOffset.js +0 -0
  839. /package/{esm → lib}/useWrappedRefWithWarning.d.ts +0 -0
package/cjs/CardBody.js CHANGED
@@ -5,11 +5,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  exports.__esModule = true;
6
6
  exports.default = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
- var _classnames = _interopRequireDefault(require("classnames"));
8
+ var _clsx = _interopRequireDefault(require("clsx"));
9
9
  var _ThemeProvider = require("./ThemeProvider");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
13
  const CardBody = /*#__PURE__*/React.forwardRef(({
14
14
  className,
15
15
  bsPrefix,
@@ -19,7 +19,7 @@ const CardBody = /*#__PURE__*/React.forwardRef(({
19
19
  bsPrefix = (0, _ThemeProvider.useBootstrapPrefix)(bsPrefix, 'card-body');
20
20
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
21
21
  ref: ref,
22
- className: (0, _classnames.default)(className, bsPrefix),
22
+ className: (0, _clsx.default)(className, bsPrefix),
23
23
  ...props
24
24
  });
25
25
  });
@@ -1,6 +1,14 @@
1
1
  import * as React from 'react';
2
- import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- export interface CardFooterProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
2
+ import type { DynamicRefForwardingComponent } from '@restart/ui/types';
3
+ export interface CardFooterProps extends React.HTMLAttributes<HTMLElement> {
4
+ /**
5
+ * Element used to render the component.
6
+ */
7
+ as?: React.ElementType | undefined;
8
+ /**
9
+ * @default 'card-footer'
10
+ */
11
+ bsPrefix?: string | undefined;
4
12
  }
5
- declare const CardFooter: BsPrefixRefForwardingComponent<'div', CardFooterProps>;
13
+ declare const CardFooter: DynamicRefForwardingComponent<'div', CardFooterProps>;
6
14
  export default CardFooter;
package/cjs/CardFooter.js CHANGED
@@ -5,11 +5,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  exports.__esModule = true;
6
6
  exports.default = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
- var _classnames = _interopRequireDefault(require("classnames"));
8
+ var _clsx = _interopRequireDefault(require("clsx"));
9
9
  var _ThemeProvider = require("./ThemeProvider");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
13
  const CardFooter = /*#__PURE__*/React.forwardRef(({
14
14
  className,
15
15
  bsPrefix,
@@ -19,7 +19,7 @@ const CardFooter = /*#__PURE__*/React.forwardRef(({
19
19
  bsPrefix = (0, _ThemeProvider.useBootstrapPrefix)(bsPrefix, 'card-footer');
20
20
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
21
21
  ref: ref,
22
- className: (0, _classnames.default)(className, bsPrefix),
22
+ className: (0, _clsx.default)(className, bsPrefix),
23
23
  ...props
24
24
  });
25
25
  });
@@ -1,6 +1,14 @@
1
1
  import * as React from 'react';
2
- import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- export interface CardGroupProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
2
+ import type { DynamicRefForwardingComponent } from '@restart/ui/types';
3
+ export interface CardGroupProps extends React.HTMLAttributes<HTMLElement> {
4
+ /**
5
+ * Element used to render the component.
6
+ */
7
+ as?: React.ElementType | undefined;
8
+ /**
9
+ * @default 'card-group'
10
+ */
11
+ bsPrefix?: string | undefined;
4
12
  }
5
- declare const CardGroup: BsPrefixRefForwardingComponent<'div', CardGroupProps>;
13
+ declare const CardGroup: DynamicRefForwardingComponent<'div', CardGroupProps>;
6
14
  export default CardGroup;
package/cjs/CardGroup.js CHANGED
@@ -5,11 +5,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  exports.__esModule = true;
6
6
  exports.default = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
- var _classnames = _interopRequireDefault(require("classnames"));
8
+ var _clsx = _interopRequireDefault(require("clsx"));
9
9
  var _ThemeProvider = require("./ThemeProvider");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
13
  const CardGroup = /*#__PURE__*/React.forwardRef(({
14
14
  className,
15
15
  bsPrefix,
@@ -19,7 +19,7 @@ const CardGroup = /*#__PURE__*/React.forwardRef(({
19
19
  bsPrefix = (0, _ThemeProvider.useBootstrapPrefix)(bsPrefix, 'card-group');
20
20
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
21
21
  ref: ref,
22
- className: (0, _classnames.default)(className, bsPrefix),
22
+ className: (0, _clsx.default)(className, bsPrefix),
23
23
  ...props
24
24
  });
25
25
  });
@@ -1,6 +1,14 @@
1
1
  import * as React from 'react';
2
- import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- export interface CardHeaderProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
2
+ import type { DynamicRefForwardingComponent } from '@restart/ui/types';
3
+ export interface CardHeaderProps extends React.HTMLAttributes<HTMLElement> {
4
+ /**
5
+ * Element used to render the component.
6
+ */
7
+ as?: React.ElementType | undefined;
8
+ /**
9
+ * @default 'card-header'
10
+ */
11
+ bsPrefix?: string | undefined;
4
12
  }
5
- declare const CardHeader: BsPrefixRefForwardingComponent<'div', CardHeaderProps>;
13
+ declare const CardHeader: DynamicRefForwardingComponent<'div', CardHeaderProps>;
6
14
  export default CardHeader;
package/cjs/CardHeader.js CHANGED
@@ -4,14 +4,14 @@
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
5
  exports.__esModule = true;
6
6
  exports.default = void 0;
7
- var _classnames = _interopRequireDefault(require("classnames"));
7
+ var _clsx = _interopRequireDefault(require("clsx"));
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var React = _react;
10
10
  var _ThemeProvider = require("./ThemeProvider");
11
11
  var _CardHeaderContext = _interopRequireDefault(require("./CardHeaderContext"));
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
13
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
15
  const CardHeader = /*#__PURE__*/React.forwardRef(({
16
16
  bsPrefix,
17
17
  className,
@@ -28,7 +28,7 @@ const CardHeader = /*#__PURE__*/React.forwardRef(({
28
28
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
29
29
  ref: ref,
30
30
  ...props,
31
- className: (0, _classnames.default)(className, prefix)
31
+ className: (0, _clsx.default)(className, prefix)
32
32
  })
33
33
  });
34
34
  });
@@ -5,7 +5,7 @@ exports.__esModule = true;
5
5
  exports.default = void 0;
6
6
  var React = _interopRequireWildcard(require("react"));
7
7
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
8
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
8
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
9
9
  const context = /*#__PURE__*/React.createContext(null);
10
10
  context.displayName = 'CardHeaderContext';
11
11
  var _default = exports.default = context;
package/cjs/CardImg.d.ts CHANGED
@@ -1,7 +1,18 @@
1
1
  import * as React from 'react';
2
- import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- export interface CardImgProps extends BsPrefixProps, React.ImgHTMLAttributes<HTMLImageElement> {
2
+ import type { DynamicRefForwardingComponent } from '@restart/ui/types';
3
+ export interface CardImgProps extends React.ImgHTMLAttributes<HTMLImageElement> {
4
+ /**
5
+ * Element used to render the component.
6
+ */
7
+ as?: React.ElementType | undefined;
8
+ /**
9
+ * @default 'card-img'
10
+ */
11
+ bsPrefix?: string | undefined;
12
+ /**
13
+ * Defines image position inside the card.
14
+ */
4
15
  variant?: 'top' | 'bottom' | string;
5
16
  }
6
- declare const CardImg: BsPrefixRefForwardingComponent<'img', CardImgProps>;
17
+ declare const CardImg: DynamicRefForwardingComponent<'img', CardImgProps>;
7
18
  export default CardImg;
package/cjs/CardImg.js CHANGED
@@ -4,12 +4,12 @@
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
5
  exports.__esModule = true;
6
6
  exports.default = void 0;
7
- var _classnames = _interopRequireDefault(require("classnames"));
7
+ var _clsx = _interopRequireDefault(require("clsx"));
8
8
  var React = _interopRequireWildcard(require("react"));
9
9
  var _ThemeProvider = require("./ThemeProvider");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
13
  const CardImg = /*#__PURE__*/React.forwardRef(
14
14
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
15
15
  ({
@@ -22,7 +22,7 @@ const CardImg = /*#__PURE__*/React.forwardRef(
22
22
  const prefix = (0, _ThemeProvider.useBootstrapPrefix)(bsPrefix, 'card-img');
23
23
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
24
24
  ref: ref,
25
- className: (0, _classnames.default)(variant ? `${prefix}-${variant}` : prefix, className),
25
+ className: (0, _clsx.default)(variant ? `${prefix}-${variant}` : prefix, className),
26
26
  ...props
27
27
  });
28
28
  });
@@ -1,6 +1,14 @@
1
1
  import * as React from 'react';
2
- import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- export interface CardImgOverlayProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
2
+ import type { DynamicRefForwardingComponent } from '@restart/ui/types';
3
+ export interface CardImgOverlayProps extends React.HTMLAttributes<HTMLElement> {
4
+ /**
5
+ * Element used to render the component.
6
+ */
7
+ as?: React.ElementType | undefined;
8
+ /**
9
+ * @default 'card-img-overlay'
10
+ */
11
+ bsPrefix?: string | undefined;
4
12
  }
5
- declare const CardImgOverlay: BsPrefixRefForwardingComponent<'div', CardImgOverlayProps>;
13
+ declare const CardImgOverlay: DynamicRefForwardingComponent<'div', CardImgOverlayProps>;
6
14
  export default CardImgOverlay;
@@ -5,11 +5,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  exports.__esModule = true;
6
6
  exports.default = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
- var _classnames = _interopRequireDefault(require("classnames"));
8
+ var _clsx = _interopRequireDefault(require("clsx"));
9
9
  var _ThemeProvider = require("./ThemeProvider");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
13
  const CardImgOverlay = /*#__PURE__*/React.forwardRef(({
14
14
  className,
15
15
  bsPrefix,
@@ -19,7 +19,7 @@ const CardImgOverlay = /*#__PURE__*/React.forwardRef(({
19
19
  bsPrefix = (0, _ThemeProvider.useBootstrapPrefix)(bsPrefix, 'card-img-overlay');
20
20
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
21
21
  ref: ref,
22
- className: (0, _classnames.default)(className, bsPrefix),
22
+ className: (0, _clsx.default)(className, bsPrefix),
23
23
  ...props
24
24
  });
25
25
  });
package/cjs/CardLink.d.ts CHANGED
@@ -1,6 +1,14 @@
1
1
  import * as React from 'react';
2
- import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- export interface CardLinkProps extends BsPrefixProps, React.AnchorHTMLAttributes<HTMLElement> {
2
+ import type { DynamicRefForwardingComponent } from '@restart/ui/types';
3
+ export interface CardLinkProps extends React.AnchorHTMLAttributes<HTMLElement> {
4
+ /**
5
+ * Element used to render the component.
6
+ */
7
+ as?: React.ElementType | undefined;
8
+ /**
9
+ * @default 'card-link'
10
+ */
11
+ bsPrefix?: string | undefined;
4
12
  }
5
- declare const CardLink: BsPrefixRefForwardingComponent<'a', CardLinkProps>;
13
+ declare const CardLink: DynamicRefForwardingComponent<'a', CardLinkProps>;
6
14
  export default CardLink;
package/cjs/CardLink.js CHANGED
@@ -5,11 +5,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  exports.__esModule = true;
6
6
  exports.default = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
- var _classnames = _interopRequireDefault(require("classnames"));
8
+ var _clsx = _interopRequireDefault(require("clsx"));
9
9
  var _ThemeProvider = require("./ThemeProvider");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
13
  const CardLink = /*#__PURE__*/React.forwardRef(({
14
14
  className,
15
15
  bsPrefix,
@@ -19,7 +19,7 @@ const CardLink = /*#__PURE__*/React.forwardRef(({
19
19
  bsPrefix = (0, _ThemeProvider.useBootstrapPrefix)(bsPrefix, 'card-link');
20
20
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
21
21
  ref: ref,
22
- className: (0, _classnames.default)(className, bsPrefix),
22
+ className: (0, _clsx.default)(className, bsPrefix),
23
23
  ...props
24
24
  });
25
25
  });
@@ -1,6 +1,14 @@
1
1
  import * as React from 'react';
2
- import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- export interface CardSubtitleProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
2
+ import type { DynamicRefForwardingComponent } from '@restart/ui/types';
3
+ export interface CardSubtitleProps extends React.HTMLAttributes<HTMLElement> {
4
+ /**
5
+ * Element used to render the component.
6
+ */
7
+ as?: React.ElementType | undefined;
8
+ /**
9
+ * @default 'card-subtitle'
10
+ */
11
+ bsPrefix?: string | undefined;
4
12
  }
5
- declare const CardSubtitle: BsPrefixRefForwardingComponent<'div', CardSubtitleProps>;
13
+ declare const CardSubtitle: DynamicRefForwardingComponent<'div', CardSubtitleProps>;
6
14
  export default CardSubtitle;
@@ -5,12 +5,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  exports.__esModule = true;
6
6
  exports.default = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
- var _classnames = _interopRequireDefault(require("classnames"));
8
+ var _clsx = _interopRequireDefault(require("clsx"));
9
9
  var _ThemeProvider = require("./ThemeProvider");
10
10
  var _divWithClassName = _interopRequireDefault(require("./divWithClassName"));
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
14
  const DivStyledAsH6 = (0, _divWithClassName.default)('h6');
15
15
  const CardSubtitle = /*#__PURE__*/React.forwardRef(({
16
16
  className,
@@ -21,7 +21,7 @@ const CardSubtitle = /*#__PURE__*/React.forwardRef(({
21
21
  bsPrefix = (0, _ThemeProvider.useBootstrapPrefix)(bsPrefix, 'card-subtitle');
22
22
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
23
23
  ref: ref,
24
- className: (0, _classnames.default)(className, bsPrefix),
24
+ className: (0, _clsx.default)(className, bsPrefix),
25
25
  ...props
26
26
  });
27
27
  });
package/cjs/CardText.d.ts CHANGED
@@ -1,6 +1,14 @@
1
1
  import * as React from 'react';
2
- import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- export interface CardTextProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
2
+ import type { DynamicRefForwardingComponent } from '@restart/ui/types';
3
+ export interface CardTextProps extends React.HTMLAttributes<HTMLElement> {
4
+ /**
5
+ * Element used to render the component.
6
+ */
7
+ as?: React.ElementType | undefined;
8
+ /**
9
+ * @default 'card-text'
10
+ */
11
+ bsPrefix?: string | undefined;
4
12
  }
5
- declare const CardText: BsPrefixRefForwardingComponent<'p', CardTextProps>;
13
+ declare const CardText: DynamicRefForwardingComponent<'p', CardTextProps>;
6
14
  export default CardText;
package/cjs/CardText.js CHANGED
@@ -5,11 +5,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  exports.__esModule = true;
6
6
  exports.default = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
- var _classnames = _interopRequireDefault(require("classnames"));
8
+ var _clsx = _interopRequireDefault(require("clsx"));
9
9
  var _ThemeProvider = require("./ThemeProvider");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
13
  const CardText = /*#__PURE__*/React.forwardRef(({
14
14
  className,
15
15
  bsPrefix,
@@ -19,7 +19,7 @@ const CardText = /*#__PURE__*/React.forwardRef(({
19
19
  bsPrefix = (0, _ThemeProvider.useBootstrapPrefix)(bsPrefix, 'card-text');
20
20
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
21
21
  ref: ref,
22
- className: (0, _classnames.default)(className, bsPrefix),
22
+ className: (0, _clsx.default)(className, bsPrefix),
23
23
  ...props
24
24
  });
25
25
  });
@@ -1,6 +1,14 @@
1
1
  import * as React from 'react';
2
- import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- export interface CardTitleProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
2
+ import type { DynamicRefForwardingComponent } from '@restart/ui/types';
3
+ export interface CardTitleProps extends React.HTMLAttributes<HTMLElement> {
4
+ /**
5
+ * Element used to render the component.
6
+ */
7
+ as?: React.ElementType | undefined;
8
+ /**
9
+ * @default 'card-title'
10
+ */
11
+ bsPrefix?: string | undefined;
4
12
  }
5
- declare const CardTitle: BsPrefixRefForwardingComponent<'div', CardTitleProps>;
13
+ declare const CardTitle: DynamicRefForwardingComponent<'div', CardTitleProps>;
6
14
  export default CardTitle;
package/cjs/CardTitle.js CHANGED
@@ -5,12 +5,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  exports.__esModule = true;
6
6
  exports.default = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
- var _classnames = _interopRequireDefault(require("classnames"));
8
+ var _clsx = _interopRequireDefault(require("clsx"));
9
9
  var _ThemeProvider = require("./ThemeProvider");
10
10
  var _divWithClassName = _interopRequireDefault(require("./divWithClassName"));
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
14
  const DivStyledAsH5 = (0, _divWithClassName.default)('h5');
15
15
  const CardTitle = /*#__PURE__*/React.forwardRef(({
16
16
  className,
@@ -21,7 +21,7 @@ const CardTitle = /*#__PURE__*/React.forwardRef(({
21
21
  bsPrefix = (0, _ThemeProvider.useBootstrapPrefix)(bsPrefix, 'card-title');
22
22
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
23
23
  ref: ref,
24
- className: (0, _classnames.default)(className, bsPrefix),
24
+ className: (0, _clsx.default)(className, bsPrefix),
25
25
  ...props
26
26
  });
27
27
  });
package/cjs/Carousel.d.ts CHANGED
@@ -1,36 +1,136 @@
1
+ import type { DynamicRefForwardingComponent } from '@restart/ui/types';
1
2
  import * as React from 'react';
2
- import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
3
  export type CarouselVariant = 'dark' | string;
4
4
  export interface CarouselRef {
5
- element?: HTMLElement;
5
+ element?: HTMLElement | null;
6
6
  prev: (e?: React.SyntheticEvent) => void;
7
7
  next: (e?: React.SyntheticEvent) => void;
8
8
  }
9
- export interface CarouselProps extends BsPrefixProps, Omit<React.HTMLAttributes<HTMLElement>, 'onSelect'> {
10
- slide?: boolean;
11
- fade?: boolean;
12
- controls?: boolean;
13
- indicators?: boolean;
14
- indicatorLabels?: string[];
15
- activeIndex?: number;
16
- onSelect?: (eventKey: number, event: Record<string, unknown> | null) => void;
17
- defaultActiveIndex?: number;
18
- onSlide?: (eventKey: number, direction: 'start' | 'end') => void;
19
- onSlid?: (eventKey: number, direction: 'start' | 'end') => void;
20
- interval?: number | null;
21
- keyboard?: boolean;
22
- pause?: 'hover' | false;
23
- wrap?: boolean;
24
- touch?: boolean;
25
- prevIcon?: React.ReactNode;
26
- prevLabel?: React.ReactNode;
27
- nextIcon?: React.ReactNode;
28
- nextLabel?: React.ReactNode;
29
- variant?: CarouselVariant;
30
- ref?: React.Ref<CarouselRef> | React.MutableRefObject<CarouselRef | undefined>;
9
+ export interface CarouselProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onSelect'> {
10
+ /**
11
+ * Element used to render the component.
12
+ */
13
+ as?: React.ElementType | undefined;
14
+ /**
15
+ * @default 'carousel'
16
+ */
17
+ bsPrefix?: string | undefined;
18
+ /**
19
+ * Enables animation on the Carousel as it transitions between slides.
20
+ */
21
+ slide?: boolean | undefined;
22
+ /**
23
+ * Animates slides with a crossfade animation instead of the default slide animation.
24
+ */
25
+ fade?: boolean | undefined;
26
+ /**
27
+ * Show the Carousel previous and next arrows for changing the current slide.
28
+ */
29
+ controls?: boolean | undefined;
30
+ /**
31
+ * Show a set of slide position indicators.
32
+ */
33
+ indicators?: boolean | undefined;
34
+ /**
35
+ * An array of labels for the indicators. Defaults to "Slide #" if not provided.
36
+ */
37
+ indicatorLabels?: string[] | undefined;
38
+ /**
39
+ * Controls the current visible slide.
40
+ *
41
+ * @controllable onSelect
42
+ */
43
+ activeIndex?: number | undefined;
44
+ /**
45
+ * The default active index that is shown when the component is first rendered.
46
+ */
47
+ defaultActiveIndex?: number | undefined;
48
+ /**
49
+ * Callback fired when the active item changes.
50
+ *
51
+ * ```js
52
+ * (eventKey: number, event: Object | null) => void
53
+ * ```
54
+ *
55
+ * @type {((eventKey: number, event: Record<string, unknown> | null) => void) | undefined}
56
+ * @controllable activeIndex
57
+ */
58
+ onSelect?: ((eventKey: number, event: Record<string, unknown> | null) => void) | undefined;
59
+ /**
60
+ * Callback fired when a slide transition starts.
61
+ *
62
+ * ```js
63
+ * (eventKey: number, direction: 'left' | 'right') => void
64
+ * ```
65
+ *
66
+ * @type {((eventKey: number, direction: 'left' | 'right') => void) | undefined}
67
+ */
68
+ onSlide?: ((eventKey: number, direction: 'start' | 'end') => void) | undefined;
69
+ /**
70
+ * Callback fired when a slide transition ends.
71
+ *
72
+ * ```js
73
+ * (eventKey: number, direction: 'left' | 'right') => void
74
+ * ```
75
+ *
76
+ * @type {((eventKey: number, direction: 'left' | 'right') => void) | undefined}
77
+ */
78
+ onSlid?: ((eventKey: number, direction: 'start' | 'end') => void) | undefined;
79
+ /**
80
+ * The amount of time to delay between automatically cycling an item. If `null`, carousel will not automatically cycle.
81
+ */
82
+ interval?: number | null | undefined;
83
+ /**
84
+ * Whether the carousel should react to keyboard events.
85
+ */
86
+ keyboard?: boolean | undefined;
87
+ /**
88
+ * If set to `"hover"`, pauses the cycling of the carousel on `mouseenter` and resumes the cycling of the carousel on
89
+ * `mouseleave`. If set to `false`, hovering over the carousel won't pause it.
90
+ *
91
+ * On touch-enabled devices, when set to `"hover"`, cycling will pause on `touchend` (once the user finished interacting
92
+ * with the carousel) for two intervals, before automatically resuming. Note that this is in addition to the above mouse
93
+ * behavior.
94
+ */
95
+ pause?: 'hover' | false | undefined;
96
+ /**
97
+ * Whether the carousel should cycle continuously or have hard stops.
98
+ */
99
+ wrap?: boolean | undefined;
100
+ /**
101
+ * Whether the carousel should support left/right swipe interactions on touchscreen devices.
102
+ */
103
+ touch?: boolean | undefined;
104
+ /**
105
+ * Override the default button icon for the "previous" control.
106
+ */
107
+ prevIcon?: React.ReactNode | undefined;
108
+ /**
109
+ * Label shown to screen readers only, can be used to show the previous element in the carousel.
110
+ * Set to null to deactivate.
111
+ */
112
+ prevLabel?: React.ReactNode | undefined;
113
+ /**
114
+ * Override the default button icon for the "next" control
115
+ */
116
+ nextIcon?: React.ReactNode | undefined;
117
+ /**
118
+ * Label shown to screen readers only, can be used to show the next element in the carousel.
119
+ * Set to null to deactivate.
120
+ */
121
+ nextLabel?: React.ReactNode | undefined;
122
+ /**
123
+ * Color variant that controls the colors of the controls, indicators
124
+ * and captions.
125
+ */
126
+ variant?: CarouselVariant | undefined;
127
+ /**
128
+ * Carousel ref.
129
+ */
130
+ ref?: React.Ref<CarouselRef> | undefined;
31
131
  }
32
- declare const _default: BsPrefixRefForwardingComponent<"div", CarouselProps> & {
33
- Caption: BsPrefixRefForwardingComponent<"div", import("./CarouselCaption").CarouselCaptionProps>;
34
- Item: BsPrefixRefForwardingComponent<"div", import("./CarouselItem").CarouselItemProps>;
132
+ declare const _default: DynamicRefForwardingComponent<"div", CarouselProps> & {
133
+ Caption: DynamicRefForwardingComponent<"div", import("./CarouselCaption").CarouselCaptionProps>;
134
+ Item: DynamicRefForwardingComponent<"div", import("./CarouselItem").CarouselItemProps>;
35
135
  };
36
136
  export default _default;