react-bootstrap 1.0.0-beta.12 → 1.0.0-beta.16

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 (465) hide show
  1. package/AbstractNav/package.json +6 -0
  2. package/AbstractNavItem/package.json +6 -0
  3. package/Accordion/package.json +7 -0
  4. package/AccordionCollapse/package.json +7 -0
  5. package/AccordionContext/package.json +6 -0
  6. package/AccordionToggle/package.json +7 -0
  7. package/AccordionToggle.d.ts +5 -0
  8. package/Alert/package.json +7 -0
  9. package/Alert.d.ts +4 -3
  10. package/Badge/package.json +7 -0
  11. package/Badge.d.ts +5 -2
  12. package/BootstrapModalManager/package.json +6 -0
  13. package/Breadcrumb/package.json +7 -0
  14. package/BreadcrumbItem/package.json +7 -0
  15. package/Button/package.json +7 -0
  16. package/ButtonGroup/package.json +7 -0
  17. package/ButtonToolbar/package.json +7 -0
  18. package/Card/package.json +7 -0
  19. package/CardColumns/package.json +7 -0
  20. package/CardContext/package.json +6 -0
  21. package/CardDeck/package.json +7 -0
  22. package/CardGroup/package.json +7 -0
  23. package/CardImg/package.json +7 -0
  24. package/Carousel/package.json +7 -0
  25. package/CarouselCaption/package.json +7 -0
  26. package/CarouselItem/package.json +7 -0
  27. package/CloseButton/package.json +7 -0
  28. package/Col/package.json +7 -0
  29. package/Collapse/package.json +7 -0
  30. package/Container/package.json +7 -0
  31. package/Dropdown/package.json +7 -0
  32. package/DropdownButton/package.json +7 -0
  33. package/DropdownItem/package.json +7 -0
  34. package/DropdownItem.d.ts +8 -3
  35. package/DropdownMenu/package.json +7 -0
  36. package/DropdownToggle/package.json +7 -0
  37. package/DropdownToggle.d.ts +4 -3
  38. package/ElementChildren/package.json +6 -0
  39. package/Fade/package.json +7 -0
  40. package/Feedback/package.json +7 -0
  41. package/Figure/package.json +7 -0
  42. package/FigureCaption/package.json +7 -0
  43. package/FigureImage/package.json +7 -0
  44. package/Form/package.json +7 -0
  45. package/FormCheck/package.json +7 -0
  46. package/FormCheck.d.ts +2 -3
  47. package/FormCheckInput/package.json +7 -0
  48. package/FormCheckInput.d.ts +3 -4
  49. package/FormCheckLabel/package.json +7 -0
  50. package/FormContext/package.json +6 -0
  51. package/FormControl/package.json +7 -0
  52. package/FormControl.d.ts +9 -6
  53. package/FormGroup/package.json +7 -0
  54. package/FormGroup.d.ts +2 -3
  55. package/FormLabel/package.json +7 -0
  56. package/FormText/package.json +7 -0
  57. package/Image/package.json +7 -0
  58. package/InputGroup/package.json +7 -0
  59. package/Jumbotron/package.json +7 -0
  60. package/ListGroup/package.json +7 -0
  61. package/ListGroupItem/package.json +7 -0
  62. package/Media/package.json +7 -0
  63. package/Modal/package.json +7 -0
  64. package/Modal.d.ts +2 -0
  65. package/ModalBody/package.json +7 -0
  66. package/ModalContext/package.json +6 -0
  67. package/ModalDialog/package.json +7 -0
  68. package/ModalFooter/package.json +7 -0
  69. package/ModalHeader/package.json +7 -0
  70. package/ModalTitle/package.json +7 -0
  71. package/Nav/package.json +7 -0
  72. package/NavContext/package.json +6 -0
  73. package/NavDropdown/package.json +7 -0
  74. package/NavItem/package.json +7 -0
  75. package/NavLink/package.json +7 -0
  76. package/NavLink.d.ts +8 -3
  77. package/Navbar/package.json +7 -0
  78. package/NavbarBrand/package.json +7 -0
  79. package/NavbarCollapse/package.json +7 -0
  80. package/NavbarContext/package.json +6 -0
  81. package/NavbarToggle/package.json +7 -0
  82. package/Overlay/package.json +7 -0
  83. package/OverlayTrigger/package.json +7 -0
  84. package/OverlayTrigger.d.ts +1 -0
  85. package/PageItem/package.json +7 -0
  86. package/Pagination/package.json +7 -0
  87. package/Popover/package.json +7 -0
  88. package/Popover.d.ts +1 -0
  89. package/PopoverContent/package.json +7 -0
  90. package/PopoverTitle/package.json +7 -0
  91. package/ProgressBar/package.json +7 -0
  92. package/README.md +9 -9
  93. package/ResponsiveEmbed/package.json +7 -0
  94. package/Row/package.json +7 -0
  95. package/SafeAnchor/package.json +7 -0
  96. package/SafeAnchor.d.ts +1 -1
  97. package/SelectableContext/package.json +6 -0
  98. package/Spinner/package.json +7 -0
  99. package/Spinner.d.ts +1 -1
  100. package/SplitButton/package.json +7 -0
  101. package/Switch/package.json +6 -0
  102. package/Tab/package.json +7 -0
  103. package/TabContainer/package.json +7 -0
  104. package/TabContent/package.json +7 -0
  105. package/TabContext/package.json +6 -0
  106. package/TabPane/package.json +7 -0
  107. package/Table/package.json +7 -0
  108. package/Tabs/package.json +7 -0
  109. package/Tabs.d.ts +8 -3
  110. package/ThemeProvider/package.json +7 -0
  111. package/Toast/package.json +7 -0
  112. package/ToastBody/package.json +7 -0
  113. package/ToastContext/package.json +6 -0
  114. package/ToastHeader/package.json +7 -0
  115. package/ToggleButton/package.json +7 -0
  116. package/ToggleButton.d.ts +5 -5
  117. package/ToggleButtonGroup/package.json +7 -0
  118. package/ToggleButtonGroup.d.ts +4 -3
  119. package/Tooltip/package.json +7 -0
  120. package/{AbstractNav.js → cjs/AbstractNav.js} +18 -16
  121. package/{AbstractNavItem.js → cjs/AbstractNavItem.js} +0 -0
  122. package/{Accordion.js → cjs/Accordion.js} +0 -0
  123. package/{AccordionCollapse.js → cjs/AccordionCollapse.js} +0 -0
  124. package/{AccordionContext.js → cjs/AccordionContext.js} +0 -0
  125. package/cjs/AccordionToggle.js +50 -0
  126. package/{Alert.js → cjs/Alert.js} +2 -2
  127. package/{Badge.js → cjs/Badge.js} +4 -2
  128. package/{utils → cjs}/BootstrapModalManager.js +9 -5
  129. package/{Breadcrumb.js → cjs/Breadcrumb.js} +0 -0
  130. package/{BreadcrumbItem.js → cjs/BreadcrumbItem.js} +0 -0
  131. package/{Button.js → cjs/Button.js} +0 -0
  132. package/{ButtonGroup.js → cjs/ButtonGroup.js} +0 -0
  133. package/{ButtonToolbar.js → cjs/ButtonToolbar.js} +0 -0
  134. package/{Card.js → cjs/Card.js} +2 -2
  135. package/{CardColumns.js → cjs/CardColumns.js} +1 -1
  136. package/{CardContext.js → cjs/CardContext.js} +0 -0
  137. package/{CardDeck.js → cjs/CardDeck.js} +1 -1
  138. package/{CardGroup.js → cjs/CardGroup.js} +1 -1
  139. package/{CardImg.js → cjs/CardImg.js} +0 -0
  140. package/{Carousel.js → cjs/Carousel.js} +9 -9
  141. package/{CarouselCaption.js → cjs/CarouselCaption.js} +1 -1
  142. package/{CarouselItem.js → cjs/CarouselItem.js} +1 -1
  143. package/{CloseButton.js → cjs/CloseButton.js} +0 -0
  144. package/{Col.js → cjs/Col.js} +0 -0
  145. package/{Collapse.js → cjs/Collapse.js} +7 -7
  146. package/{Container.js → cjs/Container.js} +0 -0
  147. package/{Dropdown.js → cjs/Dropdown.js} +5 -5
  148. package/{DropdownButton.js → cjs/DropdownButton.js} +0 -0
  149. package/{DropdownItem.js → cjs/DropdownItem.js} +0 -0
  150. package/{DropdownMenu.js → cjs/DropdownMenu.js} +39 -46
  151. package/cjs/DropdownToggle.js +59 -0
  152. package/{utils → cjs}/ElementChildren.js +0 -0
  153. package/{Fade.js → cjs/Fade.js} +4 -4
  154. package/{Feedback.js → cjs/Feedback.js} +0 -0
  155. package/{Figure.js → cjs/Figure.js} +1 -1
  156. package/{FigureCaption.js → cjs/FigureCaption.js} +1 -1
  157. package/{FigureImage.js → cjs/FigureImage.js} +0 -0
  158. package/{Form.js → cjs/Form.js} +9 -6
  159. package/{FormCheck.js → cjs/FormCheck.js} +17 -10
  160. package/{FormCheckInput.js → cjs/FormCheckInput.js} +9 -6
  161. package/{FormCheckLabel.js → cjs/FormCheckLabel.js} +5 -9
  162. package/{FormContext.js → cjs/FormContext.js} +0 -0
  163. package/{FormControl.js → cjs/FormControl.js} +0 -0
  164. package/{FormGroup.js → cjs/FormGroup.js} +0 -0
  165. package/{FormLabel.js → cjs/FormLabel.js} +0 -0
  166. package/{FormText.js → cjs/FormText.js} +0 -0
  167. package/cjs/Image.js +47 -0
  168. package/{InputGroup.js → cjs/InputGroup.js} +1 -1
  169. package/{Jumbotron.js → cjs/Jumbotron.js} +0 -0
  170. package/{ListGroup.js → cjs/ListGroup.js} +16 -3
  171. package/{ListGroupItem.js → cjs/ListGroupItem.js} +0 -0
  172. package/{Media.js → cjs/Media.js} +1 -1
  173. package/{Modal.js → cjs/Modal.js} +13 -11
  174. package/{ModalBody.js → cjs/ModalBody.js} +1 -1
  175. package/{ModalContext.js → cjs/ModalContext.js} +0 -0
  176. package/{ModalDialog.js → cjs/ModalDialog.js} +1 -1
  177. package/{ModalFooter.js → cjs/ModalFooter.js} +1 -1
  178. package/{ModalHeader.js → cjs/ModalHeader.js} +0 -0
  179. package/{ModalTitle.js → cjs/ModalTitle.js} +2 -2
  180. package/{Nav.js → cjs/Nav.js} +0 -0
  181. package/{NavContext.js → cjs/NavContext.js} +0 -0
  182. package/cjs/NavDropdown.js +90 -0
  183. package/{NavItem.js → cjs/NavItem.js} +0 -0
  184. package/{NavLink.js → cjs/NavLink.js} +0 -0
  185. package/{Navbar.js → cjs/Navbar.js} +1 -1
  186. package/{NavbarBrand.js → cjs/NavbarBrand.js} +0 -0
  187. package/{NavbarCollapse.js → cjs/NavbarCollapse.js} +0 -0
  188. package/{NavbarContext.js → cjs/NavbarContext.js} +0 -0
  189. package/{NavbarToggle.js → cjs/NavbarToggle.js} +1 -1
  190. package/{Overlay.js → cjs/Overlay.js} +0 -0
  191. package/{OverlayTrigger.js → cjs/OverlayTrigger.js} +2 -1
  192. package/{PageItem.js → cjs/PageItem.js} +7 -4
  193. package/cjs/Pagination.js +52 -0
  194. package/{Popover.js → cjs/Popover.js} +9 -10
  195. package/{PopoverContent.js → cjs/PopoverContent.js} +0 -0
  196. package/{PopoverTitle.js → cjs/PopoverTitle.js} +0 -0
  197. package/cjs/ProgressBar.js +149 -0
  198. package/cjs/ResponsiveEmbed.js +44 -0
  199. package/{Row.js → cjs/Row.js} +0 -0
  200. package/{SafeAnchor.js → cjs/SafeAnchor.js} +1 -1
  201. package/{SelectableContext.js → cjs/SelectableContext.js} +0 -0
  202. package/{Spinner.js → cjs/Spinner.js} +0 -0
  203. package/{SplitButton.js → cjs/SplitButton.js} +0 -0
  204. package/cjs/Switch.js +26 -0
  205. package/{Tab.js → cjs/Tab.js} +0 -0
  206. package/cjs/TabContainer.js +60 -0
  207. package/cjs/TabContent.js +34 -0
  208. package/{TabContext.js → cjs/TabContext.js} +0 -0
  209. package/{TabPane.js → cjs/TabPane.js} +0 -0
  210. package/cjs/Table.js +54 -0
  211. package/{Tabs.js → cjs/Tabs.js} +2 -3
  212. package/{ThemeProvider.js → cjs/ThemeProvider.js} +0 -0
  213. package/{Toast.js → cjs/Toast.js} +0 -0
  214. package/{ToastBody.js → cjs/ToastBody.js} +1 -1
  215. package/{ToastContext.js → cjs/ToastContext.js} +0 -0
  216. package/{ToastHeader.js → cjs/ToastHeader.js} +0 -0
  217. package/cjs/ToggleButton.js +67 -0
  218. package/cjs/ToggleButtonGroup.js +90 -0
  219. package/{Tooltip.js → cjs/Tooltip.js} +0 -0
  220. package/{utils → cjs}/createChainedFunction.js +0 -0
  221. package/{utils → cjs}/createWithBsPrefix.js +3 -3
  222. package/{utils → cjs}/divWithClassName.js +0 -0
  223. package/{index.js → cjs/index.js} +14 -2
  224. package/{utils → cjs}/triggerBrowserReflow.js +0 -0
  225. package/cjs/useWrappedRefWithWarning.js +24 -0
  226. package/createChainedFunction/package.json +6 -0
  227. package/createWithBsPrefix/package.json +6 -0
  228. package/dist/react-bootstrap.js +9369 -11849
  229. package/dist/react-bootstrap.min.js +4 -18
  230. package/divWithClassName/package.json +6 -0
  231. package/{es → esm}/AbstractNav.js +17 -15
  232. package/{es → esm}/AbstractNavItem.js +0 -0
  233. package/{es → esm}/Accordion.d.ts +0 -0
  234. package/{es → esm}/Accordion.js +0 -0
  235. package/{es → esm}/AccordionCollapse.d.ts +0 -0
  236. package/{es → esm}/AccordionCollapse.js +0 -0
  237. package/{es → esm}/AccordionContext.js +0 -0
  238. package/{es → esm}/AccordionToggle.d.ts +5 -0
  239. package/{es → esm}/AccordionToggle.js +16 -2
  240. package/{es → esm}/Alert.d.ts +4 -3
  241. package/{es → esm}/Alert.js +2 -2
  242. package/{es → esm}/Badge.d.ts +5 -2
  243. package/{es → esm}/Badge.js +4 -2
  244. package/{es/utils → esm}/BootstrapModalManager.js +9 -5
  245. package/{es → esm}/Breadcrumb.d.ts +0 -0
  246. package/{es → esm}/Breadcrumb.js +0 -0
  247. package/{es → esm}/BreadcrumbItem.d.ts +0 -0
  248. package/{es → esm}/BreadcrumbItem.js +0 -0
  249. package/{es → esm}/Button.d.ts +0 -0
  250. package/{es → esm}/Button.js +0 -0
  251. package/{es → esm}/ButtonGroup.d.ts +0 -0
  252. package/{es → esm}/ButtonGroup.js +0 -0
  253. package/{es → esm}/ButtonToolbar.d.ts +0 -0
  254. package/{es → esm}/ButtonToolbar.js +0 -0
  255. package/{es → esm}/Card.d.ts +0 -0
  256. package/{es → esm}/Card.js +2 -2
  257. package/{es → esm}/CardColumns.d.ts +0 -0
  258. package/esm/CardColumns.js +2 -0
  259. package/{es → esm}/CardContext.js +0 -0
  260. package/{es → esm}/CardDeck.d.ts +0 -0
  261. package/esm/CardDeck.js +2 -0
  262. package/{es → esm}/CardGroup.d.ts +0 -0
  263. package/esm/CardGroup.js +2 -0
  264. package/{es → esm}/CardImg.d.ts +0 -0
  265. package/{es → esm}/CardImg.js +0 -0
  266. package/{es → esm}/Carousel.d.ts +0 -0
  267. package/{es → esm}/Carousel.js +6 -6
  268. package/{es → esm}/CarouselCaption.d.ts +0 -0
  269. package/{es → esm}/CarouselCaption.js +1 -1
  270. package/{es → esm}/CarouselItem.d.ts +0 -0
  271. package/esm/CarouselItem.js +2 -0
  272. package/{es → esm}/CloseButton.d.ts +0 -0
  273. package/{es → esm}/CloseButton.js +0 -0
  274. package/{es → esm}/Col.d.ts +0 -0
  275. package/{es → esm}/Col.js +0 -0
  276. package/{es → esm}/Collapse.d.ts +0 -0
  277. package/{es → esm}/Collapse.js +6 -6
  278. package/{es → esm}/Container.d.ts +0 -0
  279. package/{es → esm}/Container.js +0 -0
  280. package/{es → esm}/Dropdown.d.ts +0 -0
  281. package/{es → esm}/Dropdown.js +4 -4
  282. package/{es → esm}/DropdownButton.d.ts +0 -0
  283. package/{es → esm}/DropdownButton.js +0 -0
  284. package/{es → esm}/DropdownItem.d.ts +8 -3
  285. package/{es → esm}/DropdownItem.js +0 -0
  286. package/{es → esm}/DropdownMenu.d.ts +0 -0
  287. package/esm/DropdownMenu.js +69 -0
  288. package/esm/DropdownToggle.d.ts +18 -0
  289. package/esm/DropdownToggle.js +40 -0
  290. package/{es/utils → esm}/ElementChildren.js +0 -0
  291. package/{es → esm}/Fade.d.ts +0 -0
  292. package/{es → esm}/Fade.js +3 -3
  293. package/{es → esm}/Feedback.d.ts +0 -0
  294. package/{es → esm}/Feedback.js +0 -0
  295. package/{es → esm}/Figure.d.ts +0 -0
  296. package/{es → esm}/Figure.js +1 -1
  297. package/{es → esm}/FigureCaption.d.ts +0 -0
  298. package/esm/FigureCaption.js +5 -0
  299. package/{es → esm}/FigureImage.d.ts +0 -0
  300. package/{es → esm}/FigureImage.js +0 -0
  301. package/{es → esm}/Form.d.ts +0 -0
  302. package/{es → esm}/Form.js +6 -4
  303. package/{es → esm}/FormCheck.d.ts +2 -3
  304. package/{es → esm}/FormCheck.js +14 -8
  305. package/{es → esm}/FormCheckInput.d.ts +3 -4
  306. package/{es → esm}/FormCheckInput.js +8 -6
  307. package/{es → esm}/FormCheckLabel.d.ts +0 -0
  308. package/{es → esm}/FormCheckLabel.js +5 -9
  309. package/{es → esm}/FormContext.js +0 -0
  310. package/{es → esm}/FormControl.d.ts +9 -6
  311. package/{es → esm}/FormControl.js +0 -0
  312. package/{es → esm}/FormGroup.d.ts +2 -3
  313. package/{es → esm}/FormGroup.js +0 -0
  314. package/{es → esm}/FormLabel.d.ts +0 -0
  315. package/{es → esm}/FormLabel.js +0 -0
  316. package/{es → esm}/FormText.d.ts +0 -0
  317. package/{es → esm}/FormText.js +0 -0
  318. package/{es → esm}/Image.d.ts +0 -0
  319. package/esm/Image.js +32 -0
  320. package/{es → esm}/InputGroup.d.ts +0 -0
  321. package/{es → esm}/InputGroup.js +1 -1
  322. package/{es → esm}/Jumbotron.d.ts +0 -0
  323. package/{es → esm}/Jumbotron.js +0 -0
  324. package/{es → esm}/ListGroup.d.ts +0 -0
  325. package/{es → esm}/ListGroup.js +15 -3
  326. package/{es → esm}/ListGroupItem.d.ts +0 -0
  327. package/{es → esm}/ListGroupItem.js +0 -0
  328. package/{es → esm}/Media.d.ts +0 -0
  329. package/{es → esm}/Media.js +1 -1
  330. package/{es → esm}/Modal.d.ts +2 -0
  331. package/{es → esm}/Modal.js +9 -8
  332. package/{es → esm}/ModalBody.d.ts +0 -0
  333. package/esm/ModalBody.js +2 -0
  334. package/{es → esm}/ModalContext.js +0 -0
  335. package/{es → esm}/ModalDialog.d.ts +0 -0
  336. package/{es → esm}/ModalDialog.js +1 -1
  337. package/{es → esm}/ModalFooter.d.ts +0 -0
  338. package/esm/ModalFooter.js +2 -0
  339. package/{es → esm}/ModalHeader.d.ts +0 -0
  340. package/{es → esm}/ModalHeader.js +0 -0
  341. package/{es → esm}/ModalTitle.d.ts +0 -0
  342. package/{es → esm}/ModalTitle.js +2 -2
  343. package/{es → esm}/Nav.d.ts +0 -0
  344. package/{es → esm}/Nav.js +0 -0
  345. package/{es → esm}/NavContext.js +0 -0
  346. package/{es → esm}/NavDropdown.d.ts +0 -0
  347. package/esm/NavDropdown.js +73 -0
  348. package/{es → esm}/NavItem.d.ts +0 -0
  349. package/{es → esm}/NavItem.js +0 -0
  350. package/esm/NavLink.d.ts +25 -0
  351. package/{es → esm}/NavLink.js +0 -0
  352. package/{es → esm}/Navbar.d.ts +0 -0
  353. package/{es → esm}/Navbar.js +1 -1
  354. package/{es → esm}/NavbarBrand.d.ts +0 -0
  355. package/{es → esm}/NavbarBrand.js +0 -0
  356. package/{es → esm}/NavbarCollapse.d.ts +0 -0
  357. package/{es → esm}/NavbarCollapse.js +0 -0
  358. package/{es → esm}/NavbarContext.js +0 -0
  359. package/{es → esm}/NavbarToggle.d.ts +0 -0
  360. package/{es → esm}/NavbarToggle.js +1 -1
  361. package/{es → esm}/Overlay.d.ts +0 -0
  362. package/{es → esm}/Overlay.js +0 -0
  363. package/{es → esm}/OverlayTrigger.d.ts +1 -0
  364. package/{es → esm}/OverlayTrigger.js +3 -1
  365. package/{es → esm}/PageItem.d.ts +0 -0
  366. package/{es → esm}/PageItem.js +5 -2
  367. package/{es → esm}/Pagination.d.ts +0 -0
  368. package/esm/Pagination.js +36 -0
  369. package/{es → esm}/Popover.d.ts +1 -0
  370. package/{es → esm}/Popover.js +10 -13
  371. package/{es → esm}/PopoverContent.d.ts +0 -0
  372. package/{es → esm}/PopoverContent.js +0 -0
  373. package/{es → esm}/PopoverTitle.d.ts +0 -0
  374. package/{es → esm}/PopoverTitle.js +0 -0
  375. package/{es → esm}/ProgressBar.d.ts +0 -0
  376. package/esm/ProgressBar.js +131 -0
  377. package/{es → esm}/ResponsiveEmbed.d.ts +0 -0
  378. package/esm/ResponsiveEmbed.js +27 -0
  379. package/{es → esm}/Row.d.ts +0 -0
  380. package/{es → esm}/Row.js +0 -0
  381. package/{es → esm}/SafeAnchor.d.ts +1 -1
  382. package/{es → esm}/SafeAnchor.js +1 -1
  383. package/{es → esm}/SelectableContext.js +0 -0
  384. package/{es → esm}/Spinner.d.ts +1 -1
  385. package/{es → esm}/Spinner.js +0 -0
  386. package/{es → esm}/SplitButton.d.ts +0 -0
  387. package/{es → esm}/SplitButton.js +0 -0
  388. package/esm/Switch.js +13 -0
  389. package/{es → esm}/Tab.d.ts +0 -0
  390. package/{es → esm}/Tab.js +0 -0
  391. package/{es → esm}/TabContainer.d.ts +0 -0
  392. package/esm/TabContainer.js +47 -0
  393. package/{es → esm}/TabContent.d.ts +0 -0
  394. package/esm/TabContent.js +20 -0
  395. package/{es → esm}/TabContext.js +0 -0
  396. package/{es → esm}/TabPane.d.ts +0 -0
  397. package/{es → esm}/TabPane.js +0 -0
  398. package/{es → esm}/Table.d.ts +0 -0
  399. package/esm/Table.js +39 -0
  400. package/{es → esm}/Tabs.d.ts +8 -3
  401. package/{es → esm}/Tabs.js +2 -3
  402. package/{es → esm}/ThemeProvider.d.ts +0 -0
  403. package/{es → esm}/ThemeProvider.js +0 -0
  404. package/{es → esm}/Toast.d.ts +0 -0
  405. package/{es → esm}/Toast.js +0 -0
  406. package/{es → esm}/ToastBody.d.ts +0 -0
  407. package/esm/ToastBody.js +2 -0
  408. package/{es → esm}/ToastContext.js +0 -0
  409. package/{es → esm}/ToastHeader.d.ts +0 -0
  410. package/{es → esm}/ToastHeader.js +0 -0
  411. package/{es → esm}/ToggleButton.d.ts +5 -5
  412. package/esm/ToggleButton.js +51 -0
  413. package/{es → esm}/ToggleButtonGroup.d.ts +4 -3
  414. package/esm/ToggleButtonGroup.js +70 -0
  415. package/{es → esm}/Tooltip.d.ts +0 -0
  416. package/{es → esm}/Tooltip.js +0 -0
  417. package/{es/utils → esm}/createChainedFunction.js +0 -0
  418. package/{es/utils → esm}/createWithBsPrefix.js +2 -2
  419. package/{es/utils → esm}/divWithClassName.js +0 -0
  420. package/{es → esm}/helpers.d.ts +6 -0
  421. package/{es → esm}/index.d.ts +2 -0
  422. package/{es → esm}/index.js +7 -2
  423. package/{es/utils → esm}/triggerBrowserReflow.js +0 -0
  424. package/esm/useWrappedRefWithWarning.js +12 -0
  425. package/helpers.d.ts +6 -0
  426. package/index.d.ts +2 -0
  427. package/package.json +18 -10
  428. package/triggerBrowserReflow/package.json +6 -0
  429. package/useWrappedRefWithWarning/package.json +6 -0
  430. package/AccordionToggle.js +0 -32
  431. package/DropdownToggle.js +0 -86
  432. package/Image.js +0 -59
  433. package/NavDropdown.js +0 -67
  434. package/Pagination.js +0 -67
  435. package/ProgressBar.js +0 -161
  436. package/ResponsiveEmbed.js +0 -60
  437. package/TabContainer.js +0 -96
  438. package/TabContent.js +0 -50
  439. package/Table.js +0 -70
  440. package/ToggleButton.js +0 -100
  441. package/ToggleButtonGroup.js +0 -111
  442. package/es/CardColumns.js +0 -2
  443. package/es/CardDeck.js +0 -2
  444. package/es/CardGroup.js +0 -2
  445. package/es/CarouselItem.js +0 -2
  446. package/es/DropdownMenu.js +0 -78
  447. package/es/DropdownToggle.d.ts +0 -17
  448. package/es/DropdownToggle.js +0 -66
  449. package/es/FigureCaption.js +0 -5
  450. package/es/Image.js +0 -44
  451. package/es/ModalBody.js +0 -2
  452. package/es/ModalFooter.js +0 -2
  453. package/es/NavDropdown.js +0 -53
  454. package/es/NavLink.d.ts +0 -20
  455. package/es/Pagination.js +0 -51
  456. package/es/ProgressBar.js +0 -142
  457. package/es/ResponsiveEmbed.js +0 -42
  458. package/es/TabContainer.js +0 -81
  459. package/es/TabContent.js +0 -36
  460. package/es/Table.js +0 -55
  461. package/es/ToastBody.js +0 -2
  462. package/es/ToggleButton.js +0 -86
  463. package/es/ToggleButtonGroup.js +0 -93
  464. package/es/useAccordionToggle.js +0 -16
  465. package/useAccordionToggle.js +0 -29
File without changes
@@ -1,4 +1,4 @@
1
- import createWithBsPrefix from './utils/createWithBsPrefix';
1
+ import createWithBsPrefix from './createWithBsPrefix';
2
2
  import FigureImage from './FigureImage';
3
3
  import FigureCaption from './FigureCaption';
4
4
  var Figure = createWithBsPrefix('figure', {
File without changes
@@ -0,0 +1,5 @@
1
+ import createWithBsPrefix from './createWithBsPrefix';
2
+ var FigureCaption = createWithBsPrefix('figure-caption', {
3
+ Component: 'figcaption'
4
+ });
5
+ export default FigureCaption;
File without changes
File without changes
File without changes
@@ -2,13 +2,14 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  import classNames from 'classnames';
4
4
  import React from 'react';
5
- import createWithBsPrefix from './utils/createWithBsPrefix';
6
- import { useBootstrapPrefix } from './ThemeProvider';
7
- import FormGroup from './FormGroup';
8
- import FormControl from './FormControl';
9
5
  import FormCheck from './FormCheck';
6
+ import FormControl from './FormControl';
7
+ import FormGroup from './FormGroup';
10
8
  import FormLabel from './FormLabel';
11
9
  import FormText from './FormText';
10
+ import Switch from './Switch';
11
+ import { useBootstrapPrefix } from './ThemeProvider';
12
+ import createWithBsPrefix from './createWithBsPrefix';
12
13
  var defaultProps = {
13
14
  inline: false
14
15
  };
@@ -33,6 +34,7 @@ Form.Row = createWithBsPrefix('form-row');
33
34
  Form.Group = FormGroup;
34
35
  Form.Control = FormControl;
35
36
  Form.Check = FormCheck;
37
+ Form.Switch = Switch;
36
38
  Form.Label = FormLabel;
37
39
  Form.Text = FormText;
38
40
  export default Form;
@@ -1,11 +1,10 @@
1
1
  import * as React from 'react';
2
-
3
2
  import FormCheckInput from './FormCheckInput';
4
3
  import FormCheckLabel from './FormCheckLabel';
5
-
6
4
  import { BsPrefixComponent } from './helpers';
7
5
 
8
6
  export interface FormCheckProps {
7
+ bsCustomPrefix?: string;
9
8
  innerRef?: React.LegacyRef<this>;
10
9
  id?: string;
11
10
  inline?: boolean;
@@ -13,7 +12,7 @@ export interface FormCheckProps {
13
12
  title?: string;
14
13
  label?: React.ReactNode;
15
14
  custom?: boolean;
16
- type?: 'checkbox' | 'radio';
15
+ type?: 'checkbox' | 'radio' | 'switch';
17
16
  isValid?: boolean;
18
17
  isInvalid?: boolean;
19
18
  feedback?: React.ReactNode;
@@ -1,12 +1,13 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  import classNames from 'classnames';
4
+ import all from 'prop-types-extra/lib/all';
4
5
  import React, { useContext, useMemo } from 'react';
5
- import { useBootstrapPrefix } from './ThemeProvider';
6
- import FormContext from './FormContext';
7
6
  import Feedback from './Feedback';
8
7
  import FormCheckInput from './FormCheckInput';
9
8
  import FormCheckLabel from './FormCheckLabel';
9
+ import FormContext from './FormContext';
10
+ import { useBootstrapPrefix } from './ThemeProvider';
10
11
  var defaultProps = {
11
12
  type: 'checkbox',
12
13
  inline: false,
@@ -18,6 +19,7 @@ var defaultProps = {
18
19
  var FormCheck = React.forwardRef(function (_ref, ref) {
19
20
  var id = _ref.id,
20
21
  bsPrefix = _ref.bsPrefix,
22
+ bsCustomPrefix = _ref.bsCustomPrefix,
21
23
  inline = _ref.inline,
22
24
  disabled = _ref.disabled,
23
25
  isValid = _ref.isValid,
@@ -29,10 +31,13 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
29
31
  type = _ref.type,
30
32
  label = _ref.label,
31
33
  children = _ref.children,
32
- custom = _ref.custom,
33
- props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "inline", "disabled", "isValid", "isInvalid", "feedback", "className", "style", "title", "type", "label", "children", "custom"]);
34
+ propCustom = _ref.custom,
35
+ _ref$as = _ref.as,
36
+ as = _ref$as === void 0 ? 'input' : _ref$as,
37
+ props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
34
38
 
35
- bsPrefix = useBootstrapPrefix(bsPrefix, 'form-check');
39
+ var custom = type === 'switch' ? true : propCustom;
40
+ bsPrefix = custom ? useBootstrapPrefix(bsCustomPrefix, 'custom-control') : useBootstrapPrefix(bsPrefix, 'form-check');
36
41
 
37
42
  var _useContext = useContext(FormContext),
38
43
  controlId = _useContext.controlId;
@@ -45,18 +50,19 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
45
50
  }, [controlId, custom, id]);
46
51
  var hasLabel = label != null && label !== false && !children;
47
52
  var input = React.createElement(FormCheckInput, _extends({}, props, {
48
- type: type,
53
+ type: type === 'switch' ? 'checkbox' : type,
49
54
  ref: ref,
50
55
  isValid: isValid,
51
56
  isInvalid: isInvalid,
52
57
  isStatic: !hasLabel,
53
- disabled: disabled
58
+ disabled: disabled,
59
+ as: as
54
60
  }));
55
61
  return React.createElement(FormContext.Provider, {
56
62
  value: innerFormContext
57
63
  }, React.createElement("div", {
58
64
  style: style,
59
- className: classNames(className, !custom && bsPrefix, custom && "custom-control custom-" + type, inline && (custom ? 'custom-control' : bsPrefix) + "-inline")
65
+ className: classNames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
60
66
  }, children || React.createElement(React.Fragment, null, input, hasLabel && React.createElement(FormCheckLabel, {
61
67
  title: title
62
68
  }, label), (isValid || isInvalid) && React.createElement(Feedback, {
@@ -11,9 +11,8 @@ export interface FormCheckInputProps {
11
11
  innerRef?: React.LegacyRef<this>;
12
12
  }
13
13
 
14
- declare class FormCheckInput extends BsPrefixComponent<
15
- 'input',
16
- FormCheckInputProps
17
- > {}
14
+ declare class FormCheckInput<
15
+ As extends React.ElementType = 'input'
16
+ > extends BsPrefixComponent<As, FormCheckInputProps> {}
18
17
 
19
18
  export default FormCheckInput;
@@ -2,30 +2,32 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  import classNames from 'classnames';
4
4
  import React, { useContext } from 'react';
5
- import { useBootstrapPrefix } from './ThemeProvider';
6
5
  import FormContext from './FormContext';
6
+ import { useBootstrapPrefix } from './ThemeProvider';
7
7
  var defaultProps = {
8
8
  type: 'checkbox'
9
9
  };
10
10
  var FormCheckInput = React.forwardRef(function (_ref, ref) {
11
11
  var id = _ref.id,
12
12
  bsPrefix = _ref.bsPrefix,
13
+ bsCustomPrefix = _ref.bsCustomPrefix,
13
14
  className = _ref.className,
14
15
  isValid = _ref.isValid,
15
16
  isInvalid = _ref.isInvalid,
16
17
  isStatic = _ref.isStatic,
17
- props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "className", "isValid", "isInvalid", "isStatic"]);
18
-
19
- bsPrefix = useBootstrapPrefix(bsPrefix, 'form-check-input');
18
+ _ref$as = _ref.as,
19
+ Component = _ref$as === void 0 ? 'input' : _ref$as,
20
+ props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "isStatic", "as"]);
20
21
 
21
22
  var _useContext = useContext(FormContext),
22
23
  controlId = _useContext.controlId,
23
24
  custom = _useContext.custom;
24
25
 
25
- return React.createElement("input", _extends({}, props, {
26
+ bsPrefix = custom ? useBootstrapPrefix(bsCustomPrefix, 'custom-control-input') : useBootstrapPrefix(bsPrefix, 'form-check-input');
27
+ return React.createElement(Component, _extends({}, props, {
26
28
  ref: ref,
27
29
  id: id || controlId,
28
- className: classNames(className, !custom && bsPrefix, custom && 'custom-control-input', isValid && 'is-valid', isInvalid && 'is-invalid', isStatic && 'position-static')
30
+ className: classNames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid', isStatic && 'position-static')
29
31
  }));
30
32
  });
31
33
  FormCheckInput.displayName = 'FormCheckInput';
File without changes
@@ -2,29 +2,25 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  import classNames from 'classnames';
4
4
  import React, { useContext } from 'react';
5
- import { useBootstrapPrefix } from './ThemeProvider';
6
5
  import FormContext from './FormContext';
7
- var defaultProps = {
8
- type: 'checkbox'
9
- };
6
+ import { useBootstrapPrefix } from './ThemeProvider';
10
7
  var FormCheckLabel = React.forwardRef(function (_ref, ref) {
11
8
  var bsPrefix = _ref.bsPrefix,
9
+ bsCustomPrefix = _ref.bsCustomPrefix,
12
10
  className = _ref.className,
13
11
  htmlFor = _ref.htmlFor,
14
- props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "htmlFor"]);
15
-
16
- bsPrefix = useBootstrapPrefix(bsPrefix, 'form-check-label');
12
+ props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
17
13
 
18
14
  var _useContext = useContext(FormContext),
19
15
  controlId = _useContext.controlId,
20
16
  custom = _useContext.custom;
21
17
 
18
+ bsPrefix = custom ? useBootstrapPrefix(bsCustomPrefix, 'custom-control-label') : useBootstrapPrefix(bsPrefix, 'form-check-label');
22
19
  return React.createElement("label", _extends({}, props, {
23
20
  ref: ref,
24
21
  htmlFor: htmlFor || controlId,
25
- className: classNames(className, !custom && bsPrefix, custom && 'custom-control-label')
22
+ className: classNames(className, bsPrefix)
26
23
  }));
27
24
  });
28
25
  FormCheckLabel.displayName = 'FormCheckLabel';
29
- FormCheckLabel.defaultProps = defaultProps;
30
26
  export default FormCheckLabel;
File without changes
@@ -1,27 +1,30 @@
1
1
  import * as React from 'react';
2
-
3
2
  import Feedback from './Feedback';
4
-
5
3
  import { BsPrefixComponent } from './helpers';
6
4
 
5
+ type FormControlElement =
6
+ | HTMLInputElement
7
+ | HTMLSelectElement
8
+ | HTMLTextAreaElement;
9
+
7
10
  export interface FormControlProps {
8
- innerRef?: React.LegacyRef<this>;
11
+ innerRef?: React.LegacyRef<FormControlElement>;
9
12
  size?: 'sm' | 'lg';
10
13
  plaintext?: boolean;
11
14
  readOnly?: boolean;
12
15
  disabled?: boolean;
13
16
  value?: string;
14
- onChange?: React.FormEventHandler<this>;
17
+ onChange?: React.FormEventHandler<FormControlElement>;
15
18
  type?: string;
16
19
  id?: string;
17
20
  isValid?: boolean;
18
21
  isInvalid?: boolean;
19
22
  }
20
23
 
21
- declare class Form<
24
+ declare class FormControl<
22
25
  As extends React.ElementType = 'input'
23
26
  > extends BsPrefixComponent<As, FormControlProps> {
24
27
  static Feedback: typeof Feedback;
25
28
  }
26
29
 
27
- export default Form;
30
+ export default FormControl;
File without changes
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
-
3
2
  import { BsPrefixComponent } from './helpers';
4
3
 
5
4
  export interface FormGroupProps {
@@ -7,8 +6,8 @@ export interface FormGroupProps {
7
6
  controlId?: string;
8
7
  }
9
8
 
10
- declare class Form<
9
+ declare class FormGroup<
11
10
  As extends React.ElementType = 'div'
12
11
  > extends BsPrefixComponent<As, FormGroupProps> {}
13
12
 
14
- export default Form;
13
+ export default FormGroup;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/esm/Image.js ADDED
@@ -0,0 +1,32 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import classNames from 'classnames';
4
+ import React from 'react';
5
+ import { useBootstrapPrefix } from './ThemeProvider';
6
+ var defaultProps = {
7
+ fluid: false,
8
+ rounded: false,
9
+ roundedCircle: false,
10
+ thumbnail: false
11
+ };
12
+ var Image = React.forwardRef(function (_ref, ref) {
13
+ var bsPrefix = _ref.bsPrefix,
14
+ className = _ref.className,
15
+ fluid = _ref.fluid,
16
+ rounded = _ref.rounded,
17
+ roundedCircle = _ref.roundedCircle,
18
+ thumbnail = _ref.thumbnail,
19
+ props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
20
+
21
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
22
+ var classes = classNames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
23
+ return React.createElement("img", _extends({
24
+ // eslint-disable-line jsx-a11y/alt-text
25
+ ref: ref
26
+ }, props, {
27
+ className: classNames(className, classes)
28
+ }));
29
+ });
30
+ Image.displayName = 'Image';
31
+ Image.defaultProps = defaultProps;
32
+ export default Image;
File without changes
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  import classNames from 'classnames';
4
4
  import React from 'react';
5
- import createWithBsPrefix from './utils/createWithBsPrefix';
5
+ import createWithBsPrefix from './createWithBsPrefix';
6
6
  import { useBootstrapPrefix } from './ThemeProvider';
7
7
 
8
8
  /**
File without changes
File without changes
File without changes
@@ -2,12 +2,14 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  import classNames from 'classnames';
4
4
  import React from 'react';
5
+ import warning from 'warning';
5
6
  import { useUncontrolled } from 'uncontrollable';
6
7
  import { useBootstrapPrefix } from './ThemeProvider';
7
8
  import AbstractNav from './AbstractNav';
8
9
  import ListGroupItem from './ListGroupItem';
9
10
  var defaultProps = {
10
- variant: null
11
+ variant: null,
12
+ horizontal: null
11
13
  };
12
14
  var ListGroup = React.forwardRef(function (props, ref) {
13
15
  var _useUncontrolled = useUncontrolled(props, {
@@ -16,16 +18,26 @@ var ListGroup = React.forwardRef(function (props, ref) {
16
18
  className = _useUncontrolled.className,
17
19
  bsPrefix = _useUncontrolled.bsPrefix,
18
20
  variant = _useUncontrolled.variant,
21
+ horizontal = _useUncontrolled.horizontal,
19
22
  _useUncontrolled$as = _useUncontrolled.as,
20
23
  as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
21
- controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "as"]);
24
+ controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
22
25
 
23
26
  bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group');
27
+ var horizontalVariant;
28
+
29
+ if (horizontal) {
30
+ horizontalVariant = horizontal === true ? 'horizontal' : "horizontal-" + horizontal;
31
+ } else {
32
+ horizontalVariant = null;
33
+ }
34
+
35
+ process.env.NODE_ENV !== "production" ? warning(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
24
36
  return React.createElement(AbstractNav, _extends({
25
37
  ref: ref
26
38
  }, controlledProps, {
27
39
  as: as,
28
- className: classNames(className, bsPrefix, variant && bsPrefix + "-" + variant)
40
+ className: classNames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
29
41
  }));
30
42
  });
31
43
  ListGroup.defaultProps = defaultProps;
File without changes
File without changes
File without changes
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  import classNames from 'classnames';
4
4
  import React from 'react';
5
- import createWithBsPrefix from './utils/createWithBsPrefix';
5
+ import createWithBsPrefix from './createWithBsPrefix';
6
6
  import { useBootstrapPrefix } from './ThemeProvider';
7
7
  var Media = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
8
8
  function (_ref, ref) {
@@ -21,9 +21,11 @@ export interface ModalProps extends TransitionCallbacks {
21
21
  enforceFocus?: boolean;
22
22
  restoreFocus?: boolean;
23
23
  show?: boolean;
24
+ onShow?: () => void;
24
25
  onHide?: () => void;
25
26
  container?: any;
26
27
  scrollable?: boolean;
28
+ onEscapeKeyDown?: () => void;
27
29
  }
28
30
 
29
31
  declare class Modal<
@@ -2,21 +2,22 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
4
4
  import classNames from 'classnames';
5
- import events from 'dom-helpers/events';
5
+ import addEventListener from 'dom-helpers/addEventListener';
6
+ import canUseDOM from 'dom-helpers/canUseDOM';
6
7
  import ownerDocument from 'dom-helpers/ownerDocument';
7
- import canUseDOM from 'dom-helpers/util/inDOM';
8
- import getScrollbarSize from 'dom-helpers/util/scrollbarSize';
8
+ import removeEventListener from 'dom-helpers/removeEventListener';
9
+ import getScrollbarSize from 'dom-helpers/scrollbarSize';
9
10
  import React from 'react';
10
11
  import BaseModal from 'react-overlays/Modal';
12
+ import BootstrapModalManager from './BootstrapModalManager';
11
13
  import Fade from './Fade';
12
14
  import Body from './ModalBody';
15
+ import ModalContext from './ModalContext';
13
16
  import ModalDialog from './ModalDialog';
14
17
  import Footer from './ModalFooter';
15
18
  import Header from './ModalHeader';
16
19
  import Title from './ModalTitle';
17
- import BootstrapModalManager from './utils/BootstrapModalManager';
18
20
  import { createBootstrapComponent } from './ThemeProvider';
19
- import ModalContext from './ModalContext';
20
21
  var defaultProps = {
21
22
  show: false,
22
23
  backdrop: true,
@@ -112,7 +113,7 @@ function (_React$Component) {
112
113
 
113
114
  if (_this.props.onEntering) (_this$props2 = _this.props).onEntering.apply(_this$props2, [node].concat(args)); // FIXME: This should work even when animation is disabled.
114
115
 
115
- events.on(window, 'resize', _this.handleWindowResize);
116
+ addEventListener(window, 'resize', _this.handleWindowResize);
116
117
  };
117
118
 
118
119
  _this.handleExited = function (node) {
@@ -126,7 +127,7 @@ function (_React$Component) {
126
127
 
127
128
  if (_this.props.onExited) (_this$props3 = _this.props).onExited.apply(_this$props3, args); // FIXME: This should work even when animation is disabled.
128
129
 
129
- events.off(window, 'resize', _this.handleWindowResize);
130
+ removeEventListener(window, 'resize', _this.handleWindowResize);
130
131
  };
131
132
 
132
133
  _this.handleWindowResize = function () {
@@ -150,7 +151,7 @@ function (_React$Component) {
150
151
 
151
152
  _proto.componentWillUnmount = function componentWillUnmount() {
152
153
  // Clean up the listener if we need to.
153
- events.off(window, 'resize', this.handleWindowResize);
154
+ removeEventListener(window, 'resize', this.handleWindowResize);
154
155
  };
155
156
 
156
157
  _proto.updateDialogStyle = function updateDialogStyle(node) {
File without changes
@@ -0,0 +1,2 @@
1
+ import createWithBsPrefix from './createWithBsPrefix';
2
+ export default createWithBsPrefix('modal-body');
File without changes
File without changes
@@ -18,7 +18,7 @@ var ModalDialog = React.forwardRef(function (_ref, ref) {
18
18
  ref: ref,
19
19
  className: classNames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
20
20
  }), React.createElement("div", {
21
- className: classNames(bsPrefix + "-content")
21
+ className: bsPrefix + "-content"
22
22
  }, children));
23
23
  });
24
24
  ModalDialog.displayName = 'ModalDialog';
File without changes
@@ -0,0 +1,2 @@
1
+ import createWithBsPrefix from './createWithBsPrefix';
2
+ export default createWithBsPrefix('modal-footer');
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
- import createWithBsPrefix from './utils/createWithBsPrefix';
2
- import divWithClassName from './utils/divWithClassName';
1
+ import createWithBsPrefix from './createWithBsPrefix';
2
+ import divWithClassName from './divWithClassName';
3
3
  var DivStyledAsH4 = divWithClassName('h4');
4
4
  export default createWithBsPrefix('modal-title', {
5
5
  Component: DivStyledAsH4
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,73 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import React from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import Dropdown from './Dropdown';
6
+ import NavItem from './NavItem';
7
+ import NavLink from './NavLink';
8
+ var propTypes = {
9
+ /**
10
+ * An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
11
+ * @type {string|number}
12
+ * @required
13
+ */
14
+ id: PropTypes.any,
15
+
16
+ /** An `onClick` handler passed to the Toggle component */
17
+ onClick: PropTypes.func,
18
+
19
+ /** The content of the non-toggle Button. */
20
+ title: PropTypes.node.isRequired,
21
+
22
+ /** Disables the toggle NavLink */
23
+ disabled: PropTypes.bool,
24
+
25
+ /** Style the toggle NavLink as active */
26
+ active: PropTypes.bool,
27
+
28
+ /** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
29
+ menuRole: PropTypes.string,
30
+
31
+ /**
32
+ * Which event when fired outside the component will cause it to be closed.
33
+ *
34
+ * _see [DropdownMenu](#menu-props) for more details_
35
+ */
36
+ rootCloseEvent: PropTypes.string,
37
+
38
+ /** @ignore */
39
+ bsPrefix: PropTypes.string
40
+ };
41
+ var NavDropdown = React.forwardRef(function (_ref, ref) {
42
+ var id = _ref.id,
43
+ title = _ref.title,
44
+ children = _ref.children,
45
+ bsPrefix = _ref.bsPrefix,
46
+ rootCloseEvent = _ref.rootCloseEvent,
47
+ menuRole = _ref.menuRole,
48
+ disabled = _ref.disabled,
49
+ active = _ref.active,
50
+ props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active"]);
51
+
52
+ return React.createElement(Dropdown, _extends({
53
+ ref: ref
54
+ }, props, {
55
+ as: NavItem
56
+ }), React.createElement(Dropdown.Toggle, {
57
+ id: id,
58
+ eventKey: null,
59
+ active: active,
60
+ disabled: disabled,
61
+ childBsPrefix: bsPrefix,
62
+ as: NavLink
63
+ }, title), React.createElement(Dropdown.Menu, {
64
+ role: menuRole,
65
+ rootCloseEvent: rootCloseEvent
66
+ }, children));
67
+ });
68
+ NavDropdown.displayName = 'NavDropdown';
69
+ NavDropdown.propTypes = propTypes;
70
+ NavDropdown.Item = Dropdown.Item;
71
+ NavDropdown.Divider = Dropdown.Divider;
72
+ NavDropdown.Header = Dropdown.Header;
73
+ export default NavDropdown;
File without changes
File without changes