react-bootstrap 3.0.0-beta.2 → 3.0.0-beta.3

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 (379) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/cjs/AbstractModalHeader.d.ts +1 -1
  3. package/cjs/AbstractModalHeader.js +2 -2
  4. package/cjs/Accordion.d.ts +6 -6
  5. package/cjs/Accordion.js +7 -7
  6. package/cjs/AccordionBody.d.ts +1 -1
  7. package/cjs/AccordionBody.js +3 -3
  8. package/cjs/AccordionButton.js +4 -4
  9. package/cjs/AccordionCollapse.d.ts +1 -1
  10. package/cjs/AccordionCollapse.js +3 -3
  11. package/cjs/AccordionHeader.d.ts +4 -0
  12. package/cjs/AccordionHeader.js +4 -2
  13. package/cjs/AccordionItem.js +2 -2
  14. package/cjs/Alert.d.ts +5 -5
  15. package/cjs/Alert.js +5 -5
  16. package/cjs/AlertHeading.js +2 -2
  17. package/cjs/AlertLink.js +1 -1
  18. package/cjs/Badge.d.ts +1 -1
  19. package/cjs/Badge.js +1 -1
  20. package/cjs/BootstrapModalManager.js +2 -4
  21. package/cjs/Breadcrumb.d.ts +1 -1
  22. package/cjs/Breadcrumb.js +2 -2
  23. package/cjs/BreadcrumbItem.js +1 -1
  24. package/cjs/Button.d.ts +1 -1
  25. package/cjs/Button.js +1 -1
  26. package/cjs/ButtonGroup.js +1 -1
  27. package/cjs/ButtonToolbar.js +1 -1
  28. package/cjs/Card.d.ts +10 -10
  29. package/cjs/Card.js +10 -10
  30. package/cjs/CardBody.js +1 -1
  31. package/cjs/CardFooter.js +1 -1
  32. package/cjs/CardGroup.js +1 -1
  33. package/cjs/CardHeader.js +2 -2
  34. package/cjs/CardImg.js +1 -1
  35. package/cjs/CardImgOverlay.js +1 -1
  36. package/cjs/CardLink.js +1 -1
  37. package/cjs/CardSubtitle.js +2 -2
  38. package/cjs/CardText.js +1 -1
  39. package/cjs/CardTitle.js +2 -2
  40. package/cjs/Carousel.d.ts +2 -2
  41. package/cjs/Carousel.js +7 -7
  42. package/cjs/CarouselCaption.js +1 -1
  43. package/cjs/CarouselItem.js +1 -1
  44. package/cjs/Col.js +1 -1
  45. package/cjs/Collapse.d.ts +2 -2
  46. package/cjs/Collapse.js +8 -9
  47. package/cjs/Container.js +1 -1
  48. package/cjs/Dropdown.d.ts +7 -7
  49. package/cjs/Dropdown.js +9 -9
  50. package/cjs/DropdownButton.d.ts +3 -3
  51. package/cjs/DropdownButton.js +3 -3
  52. package/cjs/DropdownContext.d.ts +1 -1
  53. package/cjs/DropdownDivider.js +1 -1
  54. package/cjs/DropdownHeader.js +1 -1
  55. package/cjs/DropdownItem.js +1 -1
  56. package/cjs/DropdownItemText.js +1 -1
  57. package/cjs/DropdownMenu.d.ts +3 -3
  58. package/cjs/DropdownMenu.js +5 -5
  59. package/cjs/DropdownToggle.d.ts +1 -1
  60. package/cjs/DropdownToggle.js +3 -3
  61. package/cjs/Fade.d.ts +2 -2
  62. package/cjs/Fade.js +5 -6
  63. package/cjs/Figure.d.ts +2 -2
  64. package/cjs/Figure.js +3 -3
  65. package/cjs/FigureCaption.js +1 -1
  66. package/cjs/FigureImage.d.ts +1 -1
  67. package/cjs/FigureImage.js +1 -1
  68. package/cjs/FloatingLabel.d.ts +1 -1
  69. package/cjs/FloatingLabel.js +2 -2
  70. package/cjs/Form.d.ts +21 -21
  71. package/cjs/Form.js +10 -10
  72. package/cjs/FormCheck.d.ts +3 -3
  73. package/cjs/FormCheck.js +6 -6
  74. package/cjs/FormCheckInput.js +2 -2
  75. package/cjs/FormCheckLabel.js +2 -2
  76. package/cjs/FormControl.d.ts +1 -1
  77. package/cjs/FormControl.js +3 -3
  78. package/cjs/FormFloating.js +1 -1
  79. package/cjs/FormGroup.js +1 -1
  80. package/cjs/FormLabel.d.ts +1 -1
  81. package/cjs/FormLabel.js +3 -3
  82. package/cjs/FormRange.js +2 -2
  83. package/cjs/FormSelect.js +2 -2
  84. package/cjs/FormText.js +1 -1
  85. package/cjs/Image.js +1 -1
  86. package/cjs/InputGroup.d.ts +2 -2
  87. package/cjs/InputGroup.js +4 -4
  88. package/cjs/InputGroupText.js +1 -1
  89. package/cjs/ListGroup.d.ts +2 -2
  90. package/cjs/ListGroup.js +2 -2
  91. package/cjs/ListGroupItem.d.ts +1 -1
  92. package/cjs/ListGroupItem.js +1 -1
  93. package/cjs/Modal.d.ts +6 -6
  94. package/cjs/Modal.js +12 -14
  95. package/cjs/ModalBody.js +1 -1
  96. package/cjs/ModalDialog.js +1 -1
  97. package/cjs/ModalFooter.js +1 -1
  98. package/cjs/ModalHeader.d.ts +1 -1
  99. package/cjs/ModalHeader.js +2 -2
  100. package/cjs/ModalTitle.js +2 -2
  101. package/cjs/Nav.d.ts +3 -3
  102. package/cjs/Nav.js +5 -5
  103. package/cjs/NavDropdown.d.ts +6 -6
  104. package/cjs/NavDropdown.js +3 -3
  105. package/cjs/NavItem.js +1 -1
  106. package/cjs/NavLink.d.ts +1 -1
  107. package/cjs/NavLink.js +1 -1
  108. package/cjs/Navbar.d.ts +6 -6
  109. package/cjs/Navbar.js +7 -7
  110. package/cjs/NavbarBrand.js +1 -1
  111. package/cjs/NavbarCollapse.d.ts +1 -1
  112. package/cjs/NavbarCollapse.js +3 -3
  113. package/cjs/NavbarOffcanvas.d.ts +1 -1
  114. package/cjs/NavbarOffcanvas.js +2 -2
  115. package/cjs/NavbarText.js +1 -1
  116. package/cjs/NavbarToggle.js +2 -2
  117. package/cjs/Offcanvas.d.ts +4 -4
  118. package/cjs/Offcanvas.js +8 -8
  119. package/cjs/OffcanvasBody.js +1 -1
  120. package/cjs/OffcanvasHeader.d.ts +1 -1
  121. package/cjs/OffcanvasHeader.js +2 -2
  122. package/cjs/OffcanvasTitle.js +2 -2
  123. package/cjs/OffcanvasToggling.d.ts +2 -2
  124. package/cjs/OffcanvasToggling.js +6 -7
  125. package/cjs/Overlay.d.ts +2 -2
  126. package/cjs/Overlay.js +2 -2
  127. package/cjs/OverlayTrigger.d.ts +2 -2
  128. package/cjs/OverlayTrigger.js +2 -3
  129. package/cjs/Pagination.d.ts +6 -6
  130. package/cjs/Pagination.js +2 -2
  131. package/cjs/Placeholder.d.ts +2 -2
  132. package/cjs/Placeholder.js +2 -2
  133. package/cjs/PlaceholderButton.d.ts +2 -2
  134. package/cjs/PlaceholderButton.js +2 -2
  135. package/cjs/Popover.d.ts +3 -3
  136. package/cjs/Popover.js +5 -5
  137. package/cjs/PopoverBody.js +1 -1
  138. package/cjs/PopoverHeader.js +1 -1
  139. package/cjs/ProgressBar.js +2 -2
  140. package/cjs/Ratio.js +1 -1
  141. package/cjs/Row.js +1 -1
  142. package/cjs/Spinner.d.ts +1 -1
  143. package/cjs/Spinner.js +1 -1
  144. package/cjs/SplitButton.d.ts +2 -2
  145. package/cjs/SplitButton.js +3 -3
  146. package/cjs/Stack.d.ts +2 -2
  147. package/cjs/Stack.js +2 -2
  148. package/cjs/Switch.d.ts +5 -5
  149. package/cjs/Switch.js +1 -1
  150. package/cjs/Tab.d.ts +3 -3
  151. package/cjs/Tab.js +3 -3
  152. package/cjs/TabContainer.d.ts +1 -1
  153. package/cjs/TabContainer.js +1 -1
  154. package/cjs/TabContent.js +1 -1
  155. package/cjs/TabPane.d.ts +2 -2
  156. package/cjs/TabPane.js +3 -3
  157. package/cjs/Table.js +1 -1
  158. package/cjs/Tabs.d.ts +2 -2
  159. package/cjs/Tabs.js +7 -7
  160. package/cjs/Toast.d.ts +3 -3
  161. package/cjs/Toast.js +5 -5
  162. package/cjs/ToastBody.js +1 -1
  163. package/cjs/ToastContainer.js +1 -1
  164. package/cjs/ToastFade.d.ts +2 -2
  165. package/cjs/ToastFade.js +3 -4
  166. package/cjs/ToastHeader.d.ts +1 -1
  167. package/cjs/ToastHeader.js +3 -3
  168. package/cjs/ToggleButton.d.ts +1 -1
  169. package/cjs/ToggleButton.js +2 -2
  170. package/cjs/ToggleButtonGroup.d.ts +2 -2
  171. package/cjs/ToggleButtonGroup.js +4 -4
  172. package/cjs/Tooltip.d.ts +1 -1
  173. package/cjs/Tooltip.js +3 -3
  174. package/cjs/TransitionWrapper.d.ts +4 -4
  175. package/cjs/TransitionWrapper.js +2 -2
  176. package/cjs/createUtilityClasses.js +1 -1
  177. package/cjs/createWithBsPrefix.js +1 -1
  178. package/cjs/getTabTransitionComponent.d.ts +1 -1
  179. package/cjs/getTabTransitionComponent.js +1 -1
  180. package/cjs/index.d.ts +217 -217
  181. package/cjs/index.js +111 -111
  182. package/cjs/transitionEndListener.js +3 -4
  183. package/cjs/types.d.ts +1 -1
  184. package/cjs/useAccordionButton.js +1 -1
  185. package/cjs/useCol.d.ts +1 -1
  186. package/cjs/useCol.js +1 -1
  187. package/cjs/useOverlayOffset.js +5 -6
  188. package/cjs/usePlaceholder.d.ts +2 -2
  189. package/cjs/usePlaceholder.js +2 -2
  190. package/lib/AbstractModalHeader.d.ts +1 -1
  191. package/lib/AbstractModalHeader.js +2 -2
  192. package/lib/Accordion.d.ts +6 -6
  193. package/lib/Accordion.js +7 -7
  194. package/lib/AccordionBody.d.ts +1 -1
  195. package/lib/AccordionBody.js +3 -3
  196. package/lib/AccordionButton.js +4 -4
  197. package/lib/AccordionCollapse.d.ts +1 -1
  198. package/lib/AccordionCollapse.js +3 -3
  199. package/lib/AccordionHeader.d.ts +4 -0
  200. package/lib/AccordionHeader.js +4 -2
  201. package/lib/AccordionItem.js +2 -2
  202. package/lib/Alert.d.ts +5 -5
  203. package/lib/Alert.js +5 -5
  204. package/lib/AlertHeading.js +2 -2
  205. package/lib/AlertLink.js +1 -1
  206. package/lib/Badge.d.ts +1 -1
  207. package/lib/Badge.js +1 -1
  208. package/lib/BootstrapModalManager.js +2 -4
  209. package/lib/Breadcrumb.d.ts +1 -1
  210. package/lib/Breadcrumb.js +2 -2
  211. package/lib/BreadcrumbItem.js +1 -1
  212. package/lib/Button.d.ts +1 -1
  213. package/lib/Button.js +1 -1
  214. package/lib/ButtonGroup.js +1 -1
  215. package/lib/ButtonToolbar.js +1 -1
  216. package/lib/Card.d.ts +10 -10
  217. package/lib/Card.js +10 -10
  218. package/lib/CardBody.js +1 -1
  219. package/lib/CardFooter.js +1 -1
  220. package/lib/CardGroup.js +1 -1
  221. package/lib/CardHeader.js +2 -2
  222. package/lib/CardImg.js +1 -1
  223. package/lib/CardImgOverlay.js +1 -1
  224. package/lib/CardLink.js +1 -1
  225. package/lib/CardSubtitle.js +2 -2
  226. package/lib/CardText.js +1 -1
  227. package/lib/CardTitle.js +2 -2
  228. package/lib/Carousel.d.ts +2 -2
  229. package/lib/Carousel.js +7 -7
  230. package/lib/CarouselCaption.js +1 -1
  231. package/lib/CarouselItem.js +1 -1
  232. package/lib/Col.js +1 -1
  233. package/lib/Collapse.d.ts +2 -2
  234. package/lib/Collapse.js +8 -9
  235. package/lib/Container.js +1 -1
  236. package/lib/Dropdown.d.ts +7 -7
  237. package/lib/Dropdown.js +9 -9
  238. package/lib/DropdownButton.d.ts +3 -3
  239. package/lib/DropdownButton.js +3 -3
  240. package/lib/DropdownContext.d.ts +1 -1
  241. package/lib/DropdownDivider.js +1 -1
  242. package/lib/DropdownHeader.js +1 -1
  243. package/lib/DropdownItem.js +1 -1
  244. package/lib/DropdownItemText.js +1 -1
  245. package/lib/DropdownMenu.d.ts +3 -3
  246. package/lib/DropdownMenu.js +5 -5
  247. package/lib/DropdownToggle.d.ts +1 -1
  248. package/lib/DropdownToggle.js +3 -3
  249. package/lib/Fade.d.ts +2 -2
  250. package/lib/Fade.js +5 -6
  251. package/lib/Figure.d.ts +2 -2
  252. package/lib/Figure.js +3 -3
  253. package/lib/FigureCaption.js +1 -1
  254. package/lib/FigureImage.d.ts +1 -1
  255. package/lib/FigureImage.js +1 -1
  256. package/lib/FloatingLabel.d.ts +1 -1
  257. package/lib/FloatingLabel.js +2 -2
  258. package/lib/Form.d.ts +21 -21
  259. package/lib/Form.js +10 -10
  260. package/lib/FormCheck.d.ts +3 -3
  261. package/lib/FormCheck.js +6 -6
  262. package/lib/FormCheckInput.js +2 -2
  263. package/lib/FormCheckLabel.js +2 -2
  264. package/lib/FormControl.d.ts +1 -1
  265. package/lib/FormControl.js +3 -3
  266. package/lib/FormFloating.js +1 -1
  267. package/lib/FormGroup.js +1 -1
  268. package/lib/FormLabel.d.ts +1 -1
  269. package/lib/FormLabel.js +3 -3
  270. package/lib/FormRange.js +2 -2
  271. package/lib/FormSelect.js +2 -2
  272. package/lib/FormText.js +1 -1
  273. package/lib/Image.js +1 -1
  274. package/lib/InputGroup.d.ts +2 -2
  275. package/lib/InputGroup.js +4 -4
  276. package/lib/InputGroupText.js +1 -1
  277. package/lib/ListGroup.d.ts +2 -2
  278. package/lib/ListGroup.js +2 -2
  279. package/lib/ListGroupItem.d.ts +1 -1
  280. package/lib/ListGroupItem.js +1 -1
  281. package/lib/Modal.d.ts +6 -6
  282. package/lib/Modal.js +12 -14
  283. package/lib/ModalBody.js +1 -1
  284. package/lib/ModalDialog.js +1 -1
  285. package/lib/ModalFooter.js +1 -1
  286. package/lib/ModalHeader.d.ts +1 -1
  287. package/lib/ModalHeader.js +2 -2
  288. package/lib/ModalTitle.js +2 -2
  289. package/lib/Nav.d.ts +3 -3
  290. package/lib/Nav.js +5 -5
  291. package/lib/NavDropdown.d.ts +6 -6
  292. package/lib/NavDropdown.js +3 -3
  293. package/lib/NavItem.js +1 -1
  294. package/lib/NavLink.d.ts +1 -1
  295. package/lib/NavLink.js +1 -1
  296. package/lib/Navbar.d.ts +6 -6
  297. package/lib/Navbar.js +7 -7
  298. package/lib/NavbarBrand.js +1 -1
  299. package/lib/NavbarCollapse.d.ts +1 -1
  300. package/lib/NavbarCollapse.js +3 -3
  301. package/lib/NavbarOffcanvas.d.ts +1 -1
  302. package/lib/NavbarOffcanvas.js +2 -2
  303. package/lib/NavbarText.js +1 -1
  304. package/lib/NavbarToggle.js +2 -2
  305. package/lib/Offcanvas.d.ts +4 -4
  306. package/lib/Offcanvas.js +8 -8
  307. package/lib/OffcanvasBody.js +1 -1
  308. package/lib/OffcanvasHeader.d.ts +1 -1
  309. package/lib/OffcanvasHeader.js +2 -2
  310. package/lib/OffcanvasTitle.js +2 -2
  311. package/lib/OffcanvasToggling.d.ts +2 -2
  312. package/lib/OffcanvasToggling.js +6 -7
  313. package/lib/Overlay.d.ts +2 -2
  314. package/lib/Overlay.js +2 -2
  315. package/lib/OverlayTrigger.d.ts +2 -2
  316. package/lib/OverlayTrigger.js +2 -3
  317. package/lib/Pagination.d.ts +6 -6
  318. package/lib/Pagination.js +2 -2
  319. package/lib/Placeholder.d.ts +2 -2
  320. package/lib/Placeholder.js +2 -2
  321. package/lib/PlaceholderButton.d.ts +2 -2
  322. package/lib/PlaceholderButton.js +2 -2
  323. package/lib/Popover.d.ts +3 -3
  324. package/lib/Popover.js +5 -5
  325. package/lib/PopoverBody.js +1 -1
  326. package/lib/PopoverHeader.js +1 -1
  327. package/lib/ProgressBar.js +2 -2
  328. package/lib/Ratio.js +1 -1
  329. package/lib/Row.js +1 -1
  330. package/lib/Spinner.d.ts +1 -1
  331. package/lib/Spinner.js +1 -1
  332. package/lib/SplitButton.d.ts +2 -2
  333. package/lib/SplitButton.js +3 -3
  334. package/lib/Stack.d.ts +2 -2
  335. package/lib/Stack.js +2 -2
  336. package/lib/Switch.d.ts +5 -5
  337. package/lib/Switch.js +1 -1
  338. package/lib/Tab.d.ts +3 -3
  339. package/lib/Tab.js +3 -3
  340. package/lib/TabContainer.d.ts +1 -1
  341. package/lib/TabContainer.js +1 -1
  342. package/lib/TabContent.js +1 -1
  343. package/lib/TabPane.d.ts +2 -2
  344. package/lib/TabPane.js +3 -3
  345. package/lib/Table.js +1 -1
  346. package/lib/Tabs.d.ts +2 -2
  347. package/lib/Tabs.js +7 -7
  348. package/lib/Toast.d.ts +3 -3
  349. package/lib/Toast.js +5 -5
  350. package/lib/ToastBody.js +1 -1
  351. package/lib/ToastContainer.js +1 -1
  352. package/lib/ToastFade.d.ts +2 -2
  353. package/lib/ToastFade.js +3 -4
  354. package/lib/ToastHeader.d.ts +1 -1
  355. package/lib/ToastHeader.js +3 -3
  356. package/lib/ToggleButton.d.ts +1 -1
  357. package/lib/ToggleButton.js +2 -2
  358. package/lib/ToggleButtonGroup.d.ts +2 -2
  359. package/lib/ToggleButtonGroup.js +4 -4
  360. package/lib/Tooltip.d.ts +1 -1
  361. package/lib/Tooltip.js +3 -3
  362. package/lib/TransitionWrapper.d.ts +4 -4
  363. package/lib/TransitionWrapper.js +1 -1
  364. package/lib/createUtilityClasses.js +1 -1
  365. package/lib/createWithBsPrefix.js +1 -1
  366. package/lib/getTabTransitionComponent.d.ts +1 -1
  367. package/lib/getTabTransitionComponent.js +1 -1
  368. package/lib/index.d.ts +217 -217
  369. package/lib/index.js +111 -111
  370. package/lib/transitionEndListener.js +3 -4
  371. package/lib/types.d.ts +1 -1
  372. package/lib/useAccordionButton.js +1 -1
  373. package/lib/useCol.d.ts +1 -1
  374. package/lib/useCol.js +1 -1
  375. package/lib/useOverlayOffset.js +5 -6
  376. package/lib/usePlaceholder.d.ts +2 -2
  377. package/lib/usePlaceholder.js +2 -2
  378. package/package.json +6 -5
  379. package/lib/package.json +0 -1
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { UseDropdownMenuOptions } from '@restart/ui/DropdownMenu';
3
3
  import type { DynamicRefForwardingComponent } from '@restart/ui/types';
4
- import { type DropDirection } from './DropdownContext';
5
- import type { AlignType } from './types';
4
+ import { type DropDirection } from './DropdownContext.js';
5
+ import type { AlignType } from './types.js';
6
6
  export type DropdownMenuVariant = 'dark' | string;
7
7
  export interface DropdownMenuProps extends React.HTMLAttributes<HTMLElement> {
8
8
  /**
@@ -56,6 +56,6 @@ export interface DropdownMenuProps extends React.HTMLAttributes<HTMLElement> {
56
56
  */
57
57
  variant?: DropdownMenuVariant | undefined;
58
58
  }
59
- export declare function getDropdownMenuPlacement(alignEnd: boolean, dropDirection?: DropDirection, isRTL?: boolean): "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
59
+ export declare function getDropdownMenuPlacement(alignEnd: boolean, dropDirection?: DropDirection, isRTL?: boolean): "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
60
60
  declare const DropdownMenu: DynamicRefForwardingComponent<'div', DropdownMenuProps>;
61
61
  export default DropdownMenu;
@@ -7,11 +7,11 @@ import { useDropdownMenu } from '@restart/ui/DropdownMenu';
7
7
  import useIsomorphicEffect from '@restart/hooks/useIsomorphicEffect';
8
8
  import useMergedRefs from '@restart/hooks/useMergedRefs';
9
9
  import warning from 'warning';
10
- import DropdownContext from './DropdownContext';
11
- import InputGroupContext from './InputGroupContext';
12
- import NavbarContext from './NavbarContext';
13
- import { useBootstrapPrefix } from './ThemeProvider';
14
- import useWrappedRefWithWarning from './useWrappedRefWithWarning';
10
+ import DropdownContext from './DropdownContext.js';
11
+ import InputGroupContext from './InputGroupContext.js';
12
+ import NavbarContext from './NavbarContext.js';
13
+ import { useBootstrapPrefix } from './ThemeProvider.js';
14
+ import useWrappedRefWithWarning from './useWrappedRefWithWarning.js';
15
15
  import { jsx as _jsx } from "react/jsx-runtime";
16
16
  export function getDropdownMenuPlacement(alignEnd, dropDirection, isRTL) {
17
17
  const topStart = isRTL ? 'top-end' : 'top-start';
@@ -1,6 +1,6 @@
1
1
  import type { DynamicRefForwardingComponent } from '@restart/ui/types';
2
2
  import * as React from 'react';
3
- import { type ButtonProps, type CommonButtonProps } from './Button';
3
+ import { type ButtonProps, type CommonButtonProps } from './Button.js';
4
4
  export interface DropdownToggleProps extends Omit<ButtonProps, 'as'> {
5
5
  /**
6
6
  * Element used to render the component.
@@ -6,9 +6,9 @@ import { useDropdownToggle } from '@restart/ui/DropdownToggle';
6
6
  import clsx from 'clsx';
7
7
  import * as React from 'react';
8
8
  import { useContext } from 'react';
9
- import Button from './Button';
10
- import { useBootstrapPrefix } from './ThemeProvider';
11
- import useWrappedRefWithWarning from './useWrappedRefWithWarning';
9
+ import Button from './Button.js';
10
+ import { useBootstrapPrefix } from './ThemeProvider.js';
11
+ import useWrappedRefWithWarning from './useWrappedRefWithWarning.js';
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  const DropdownToggle = /*#__PURE__*/React.forwardRef(({
14
14
  bsPrefix,
package/lib/Fade.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import Transition from 'react-transition-group/Transition';
3
- import type { TransitionCallbacks } from './types';
2
+ import { Transition } from 'react-transition-group';
3
+ import type { TransitionCallbacks } from './types.js';
4
4
  export interface FadeProps extends TransitionCallbacks {
5
5
  className?: string;
6
6
  /**
package/lib/Fade.js CHANGED
@@ -1,15 +1,14 @@
1
1
  import clsx from 'clsx';
2
2
  import * as React from 'react';
3
3
  import { useCallback } from 'react';
4
- import { ENTERED, ENTERING } from 'react-transition-group/Transition';
5
4
  import { getChildRef } from '@restart/ui/utils';
6
- import transitionEndListener from './transitionEndListener';
7
- import triggerBrowserReflow from './triggerBrowserReflow';
8
- import TransitionWrapper from './TransitionWrapper';
5
+ import transitionEndListener from './transitionEndListener.js';
6
+ import triggerBrowserReflow from './triggerBrowserReflow.js';
7
+ import TransitionWrapper from './TransitionWrapper.js';
9
8
  import { jsx as _jsx } from "react/jsx-runtime";
10
9
  const fadeStyles = {
11
- [ENTERING]: 'show',
12
- [ENTERED]: 'show'
10
+ entering: 'show',
11
+ entered: 'show'
13
12
  };
14
13
  const Fade = /*#__PURE__*/React.forwardRef(({
15
14
  className,
package/lib/Figure.d.ts CHANGED
@@ -11,7 +11,7 @@ export interface FigureProps extends React.AnchorHTMLAttributes<HTMLElement> {
11
11
  bsPrefix?: string | undefined;
12
12
  }
13
13
  declare const _default: DynamicRefForwardingComponent<"figure", FigureProps> & {
14
- Image: React.ForwardRefExoticComponent<import("./Image").ImageProps & React.RefAttributes<HTMLImageElement>>;
15
- Caption: DynamicRefForwardingComponent<"figcaption", import("./FigureCaption").FigureCaptionProps>;
14
+ Image: React.ForwardRefExoticComponent<import("./Image.js").ImageProps & React.RefAttributes<HTMLImageElement>>;
15
+ Caption: DynamicRefForwardingComponent<"figcaption", import("./FigureCaption.js").FigureCaptionProps>;
16
16
  };
17
17
  export default _default;
package/lib/Figure.js CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  import * as React from 'react';
4
4
  import clsx from 'clsx';
5
- import FigureImage from './FigureImage';
6
- import FigureCaption from './FigureCaption';
7
- import { useBootstrapPrefix } from './ThemeProvider';
5
+ import FigureImage from './FigureImage.js';
6
+ import FigureCaption from './FigureCaption.js';
7
+ import { useBootstrapPrefix } from './ThemeProvider.js';
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  const Figure = /*#__PURE__*/React.forwardRef(({
10
10
  className,
@@ -2,7 +2,7 @@
2
2
 
3
3
  import * as React from 'react';
4
4
  import clsx from 'clsx';
5
- import { useBootstrapPrefix } from './ThemeProvider';
5
+ import { useBootstrapPrefix } from './ThemeProvider.js';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const FigureCaption = /*#__PURE__*/React.forwardRef(({
8
8
  className,
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { type ImageProps } from './Image';
2
+ import { type ImageProps } from './Image.js';
3
3
  declare const FigureImage: React.ForwardRefExoticComponent<ImageProps & React.RefAttributes<HTMLImageElement>>;
4
4
  export default FigureImage;
@@ -1,6 +1,6 @@
1
1
  import clsx from 'clsx';
2
2
  import * as React from 'react';
3
- import Image from './Image';
3
+ import Image from './Image.js';
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  const FigureImage = /*#__PURE__*/React.forwardRef(({
6
6
  className,
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { DynamicRefForwardingComponent } from '@restart/ui/types';
3
- import { type FormGroupProps } from './FormGroup';
3
+ import { type FormGroupProps } from './FormGroup.js';
4
4
  export interface FloatingLabelProps extends FormGroupProps {
5
5
  /**
6
6
  * Element used to render the component.
@@ -2,8 +2,8 @@
2
2
 
3
3
  import clsx from 'clsx';
4
4
  import * as React from 'react';
5
- import FormGroup from './FormGroup';
6
- import { useBootstrapPrefix } from './ThemeProvider';
5
+ import FormGroup from './FormGroup.js';
6
+ import { useBootstrapPrefix } from './ThemeProvider.js';
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  const FloatingLabel = /*#__PURE__*/React.forwardRef(({
9
9
  bsPrefix,
package/lib/Form.d.ts CHANGED
@@ -12,18 +12,18 @@ export interface FormProps extends React.FormHTMLAttributes<HTMLFormElement> {
12
12
  validated?: boolean;
13
13
  }
14
14
  declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
15
- Group: DynamicRefForwardingComponent<"div", import("./FormGroup").FormGroupProps>;
16
- Control: DynamicRefForwardingComponent<"input", import("./FormControl").FormControlProps> & {
17
- Feedback: DynamicRefForwardingComponent<"div", import("./Feedback").FeedbackProps>;
15
+ Group: DynamicRefForwardingComponent<"div", import("./FormGroup.js").FormGroupProps>;
16
+ Control: DynamicRefForwardingComponent<"input", import("./FormControl.js").FormControlProps> & {
17
+ Feedback: DynamicRefForwardingComponent<"div", import("./Feedback.js").FeedbackProps>;
18
18
  };
19
- Floating: DynamicRefForwardingComponent<"div", import("./FormFloating").FormFloatingProps>;
20
- Check: DynamicRefForwardingComponent<"input", import("./FormCheck").FormCheckProps> & {
21
- Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
22
- Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
19
+ Floating: DynamicRefForwardingComponent<"div", import("./FormFloating.js").FormFloatingProps>;
20
+ Check: DynamicRefForwardingComponent<"input", import("./FormCheck.js").FormCheckProps> & {
21
+ Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput.js").FormCheckInputProps>;
22
+ Label: React.ForwardRefExoticComponent<import("./FormCheckLabel.js").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
23
23
  };
24
- Switch: DynamicRefForwardingComponent<DynamicRefForwardingComponent<"input", import("./FormCheck").FormCheckProps> & {
25
- Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
26
- Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
24
+ Switch: DynamicRefForwardingComponent<DynamicRefForwardingComponent<"input", import("./FormCheck.js").FormCheckProps> & {
25
+ Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput.js").FormCheckInputProps>;
26
+ Label: React.ForwardRefExoticComponent<import("./FormCheckLabel.js").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
27
27
  }, {
28
28
  "aria-label"?: string | undefined | undefined;
29
29
  disabled?: boolean | undefined | undefined;
@@ -319,11 +319,11 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
319
319
  reverse?: boolean | undefined | undefined;
320
320
  list?: string | undefined | undefined;
321
321
  bsPrefix?: string | undefined | undefined;
322
- height?: number | string | undefined | undefined;
323
- width?: number | string | undefined | undefined;
324
322
  label?: React.ReactNode;
325
- as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
326
323
  pattern?: string | undefined | undefined;
324
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
325
+ height?: number | string | undefined | undefined;
326
+ width?: number | string | undefined | undefined;
327
327
  size?: number | undefined | undefined;
328
328
  inline?: boolean | undefined | undefined;
329
329
  multiple?: boolean | undefined | undefined;
@@ -346,15 +346,15 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
346
346
  required?: boolean | undefined | undefined;
347
347
  bsSwitchPrefix?: string | undefined | undefined;
348
348
  feedbackTooltip?: boolean | undefined | undefined;
349
- feedbackType?: import("./Feedback").FeedbackType | undefined;
349
+ feedbackType?: import("./Feedback.js").FeedbackType | undefined;
350
350
  }> & {
351
- Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
352
- Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
351
+ Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput.js").FormCheckInputProps>;
352
+ Label: React.ForwardRefExoticComponent<import("./FormCheckLabel.js").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
353
353
  };
354
- Label: DynamicRefForwardingComponent<"label", import("./FormLabel").FormLabelProps>;
355
- Text: DynamicRefForwardingComponent<"small", import("./FormText").FormTextProps>;
356
- Range: React.ForwardRefExoticComponent<import("./FormRange").FormRangeProps & React.RefAttributes<HTMLInputElement>>;
357
- Select: React.ForwardRefExoticComponent<import("./FormSelect").FormSelectProps & React.RefAttributes<HTMLSelectElement>>;
358
- FloatingLabel: DynamicRefForwardingComponent<"div", import("./FloatingLabel").FloatingLabelProps>;
354
+ Label: DynamicRefForwardingComponent<"label", import("./FormLabel.js").FormLabelProps>;
355
+ Text: DynamicRefForwardingComponent<"small", import("./FormText.js").FormTextProps>;
356
+ Range: React.ForwardRefExoticComponent<import("./FormRange.js").FormRangeProps & React.RefAttributes<HTMLInputElement>>;
357
+ Select: React.ForwardRefExoticComponent<import("./FormSelect.js").FormSelectProps & React.RefAttributes<HTMLSelectElement>>;
358
+ FloatingLabel: DynamicRefForwardingComponent<"div", import("./FloatingLabel.js").FloatingLabelProps>;
359
359
  };
360
360
  export default _default;
package/lib/Form.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import clsx from 'clsx';
2
2
  import * as React from 'react';
3
- import FormCheck from './FormCheck';
4
- import FormControl from './FormControl';
5
- import FormFloating from './FormFloating';
6
- import FormGroup from './FormGroup';
7
- import FormLabel from './FormLabel';
8
- import FormRange from './FormRange';
9
- import FormSelect from './FormSelect';
10
- import FormText from './FormText';
11
- import Switch from './Switch';
12
- import FloatingLabel from './FloatingLabel';
3
+ import FormCheck from './FormCheck.js';
4
+ import FormControl from './FormControl.js';
5
+ import FormFloating from './FormFloating.js';
6
+ import FormGroup from './FormGroup.js';
7
+ import FormLabel from './FormLabel.js';
8
+ import FormRange from './FormRange.js';
9
+ import FormSelect from './FormSelect.js';
10
+ import FormText from './FormText.js';
11
+ import Switch from './Switch.js';
12
+ import FloatingLabel from './FloatingLabel.js';
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
  const Form = /*#__PURE__*/React.forwardRef(({
15
15
  className,
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { DynamicRefForwardingComponent } from '@restart/ui/types';
3
- import { type FeedbackType } from './Feedback';
3
+ import { type FeedbackType } from './Feedback.js';
4
4
  export type FormCheckType = 'checkbox' | 'radio' | 'switch';
5
5
  export interface FormCheckProps extends React.InputHTMLAttributes<HTMLInputElement> {
6
6
  /**
@@ -82,7 +82,7 @@ export interface FormCheckProps extends React.InputHTMLAttributes<HTMLInputEleme
82
82
  feedbackType?: FeedbackType | undefined;
83
83
  }
84
84
  declare const _default: DynamicRefForwardingComponent<"input", FormCheckProps> & {
85
- Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
86
- Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
85
+ Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput.js").FormCheckInputProps>;
86
+ Label: React.ForwardRefExoticComponent<import("./FormCheckLabel.js").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
87
87
  };
88
88
  export default _default;
package/lib/FormCheck.js CHANGED
@@ -3,12 +3,12 @@
3
3
  import clsx from 'clsx';
4
4
  import * as React from 'react';
5
5
  import { useContext, useMemo } from 'react';
6
- import Feedback from './Feedback';
7
- import FormCheckInput from './FormCheckInput';
8
- import FormCheckLabel from './FormCheckLabel';
9
- import FormContext from './FormContext';
10
- import { useBootstrapPrefix } from './ThemeProvider';
11
- import { hasChildOfType } from './ElementChildren';
6
+ import Feedback from './Feedback.js';
7
+ import FormCheckInput from './FormCheckInput.js';
8
+ import FormCheckLabel from './FormCheckLabel.js';
9
+ import FormContext from './FormContext.js';
10
+ import { useBootstrapPrefix } from './ThemeProvider.js';
11
+ import { hasChildOfType } from './ElementChildren.js';
12
12
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  const FormCheck = /*#__PURE__*/React.forwardRef(({
14
14
  id,
@@ -3,8 +3,8 @@
3
3
  import clsx from 'clsx';
4
4
  import * as React from 'react';
5
5
  import { useContext } from 'react';
6
- import FormContext from './FormContext';
7
- import { useBootstrapPrefix } from './ThemeProvider';
6
+ import FormContext from './FormContext.js';
7
+ import { useBootstrapPrefix } from './ThemeProvider.js';
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  const FormCheckInput = /*#__PURE__*/React.forwardRef(({
10
10
  id,
@@ -3,8 +3,8 @@
3
3
  import clsx from 'clsx';
4
4
  import * as React from 'react';
5
5
  import { useContext } from 'react';
6
- import FormContext from './FormContext';
7
- import { useBootstrapPrefix } from './ThemeProvider';
6
+ import FormContext from './FormContext.js';
7
+ import { useBootstrapPrefix } from './ThemeProvider.js';
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  const FormCheckLabel = /*#__PURE__*/React.forwardRef(({
10
10
  bsPrefix,
@@ -59,6 +59,6 @@ export interface FormControlProps extends Omit<React.InputHTMLAttributes<FormCon
59
59
  isInvalid?: boolean | undefined;
60
60
  }
61
61
  declare const _default: DynamicRefForwardingComponent<"input", FormControlProps> & {
62
- Feedback: DynamicRefForwardingComponent<"div", import("./Feedback").FeedbackProps>;
62
+ Feedback: DynamicRefForwardingComponent<"div", import("./Feedback.js").FeedbackProps>;
63
63
  };
64
64
  export default _default;
@@ -4,9 +4,9 @@ import clsx from 'clsx';
4
4
  import * as React from 'react';
5
5
  import { useContext } from 'react';
6
6
  import warning from 'warning';
7
- import Feedback from './Feedback';
8
- import FormContext from './FormContext';
9
- import { useBootstrapPrefix } from './ThemeProvider';
7
+ import Feedback from './Feedback.js';
8
+ import FormContext from './FormContext.js';
9
+ import { useBootstrapPrefix } from './ThemeProvider.js';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  const FormControl = /*#__PURE__*/React.forwardRef(({
12
12
  bsPrefix,
@@ -2,7 +2,7 @@
2
2
 
3
3
  import * as React from 'react';
4
4
  import clsx from 'clsx';
5
- import { useBootstrapPrefix } from './ThemeProvider';
5
+ import { useBootstrapPrefix } from './ThemeProvider.js';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const FormFloating = /*#__PURE__*/React.forwardRef(({
8
8
  className,
package/lib/FormGroup.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { useMemo } from 'react';
3
- import FormContext from './FormContext';
3
+ import FormContext from './FormContext.js';
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  const FormGroup = /*#__PURE__*/React.forwardRef(({
6
6
  controlId,
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { DynamicRefForwardingComponent } from '@restart/ui/types';
3
- import { type ColProps } from './Col';
3
+ import { type ColProps } from './Col.js';
4
4
  interface FormLabelBaseProps extends React.HTMLAttributes<HTMLElement> {
5
5
  /**
6
6
  * Element used to render the component.
package/lib/FormLabel.js CHANGED
@@ -4,9 +4,9 @@ import clsx from 'clsx';
4
4
  import * as React from 'react';
5
5
  import { useContext } from 'react';
6
6
  import warning from 'warning';
7
- import Col from './Col';
8
- import FormContext from './FormContext';
9
- import { useBootstrapPrefix } from './ThemeProvider';
7
+ import Col from './Col.js';
8
+ import FormContext from './FormContext.js';
9
+ import { useBootstrapPrefix } from './ThemeProvider.js';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  const FormLabel = /*#__PURE__*/React.forwardRef(({
12
12
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
package/lib/FormRange.js CHANGED
@@ -3,8 +3,8 @@
3
3
  import clsx from 'clsx';
4
4
  import * as React from 'react';
5
5
  import { useContext } from 'react';
6
- import { useBootstrapPrefix } from './ThemeProvider';
7
- import FormContext from './FormContext';
6
+ import { useBootstrapPrefix } from './ThemeProvider.js';
7
+ import FormContext from './FormContext.js';
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  const FormRange = /*#__PURE__*/React.forwardRef(({
10
10
  bsPrefix,
package/lib/FormSelect.js CHANGED
@@ -3,8 +3,8 @@
3
3
  import clsx from 'clsx';
4
4
  import * as React from 'react';
5
5
  import { useContext } from 'react';
6
- import { useBootstrapPrefix } from './ThemeProvider';
7
- import FormContext from './FormContext';
6
+ import { useBootstrapPrefix } from './ThemeProvider.js';
7
+ import FormContext from './FormContext.js';
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  const FormSelect = /*#__PURE__*/React.forwardRef(({
10
10
  bsPrefix,
package/lib/FormText.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  import clsx from 'clsx';
4
4
  import * as React from 'react';
5
- import { useBootstrapPrefix } from './ThemeProvider';
5
+ import { useBootstrapPrefix } from './ThemeProvider.js';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const FormText = /*#__PURE__*/React.forwardRef(
8
8
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
package/lib/Image.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  import clsx from 'clsx';
4
4
  import * as React from 'react';
5
- import { useBootstrapPrefix } from './ThemeProvider';
5
+ import { useBootstrapPrefix } from './ThemeProvider.js';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const Image = /*#__PURE__*/React.forwardRef(({
8
8
  bsPrefix,
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { DynamicRefForwardingComponent } from '@restart/ui/types';
3
- import { type FormCheckInputProps } from './FormCheckInput';
3
+ import { type FormCheckInputProps } from './FormCheckInput.js';
4
4
  export interface InputGroupProps extends React.HTMLAttributes<HTMLElement> {
5
5
  /**
6
6
  * Element used to render the component.
@@ -22,7 +22,7 @@ export interface InputGroupProps extends React.HTMLAttributes<HTMLElement> {
22
22
  hasValidation?: boolean | undefined;
23
23
  }
24
24
  declare const _default: DynamicRefForwardingComponent<"div", InputGroupProps> & {
25
- Text: DynamicRefForwardingComponent<"span", import("./InputGroupText").InputGroupTextProps>;
25
+ Text: DynamicRefForwardingComponent<"span", import("./InputGroupText.js").InputGroupTextProps>;
26
26
  Radio: (props: FormCheckInputProps) => import("react/jsx-runtime").JSX.Element;
27
27
  Checkbox: (props: FormCheckInputProps) => import("react/jsx-runtime").JSX.Element;
28
28
  };
package/lib/InputGroup.js CHANGED
@@ -3,10 +3,10 @@
3
3
  import clsx from 'clsx';
4
4
  import * as React from 'react';
5
5
  import { useMemo } from 'react';
6
- import { useBootstrapPrefix } from './ThemeProvider';
7
- import FormCheckInput from './FormCheckInput';
8
- import InputGroupContext from './InputGroupContext';
9
- import InputGroupText from './InputGroupText';
6
+ import { useBootstrapPrefix } from './ThemeProvider.js';
7
+ import FormCheckInput from './FormCheckInput.js';
8
+ import InputGroupContext from './InputGroupContext.js';
9
+ import InputGroupText from './InputGroupText.js';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  const InputGroupCheckbox = props => /*#__PURE__*/_jsx(InputGroupText, {
12
12
  children: /*#__PURE__*/_jsx(FormCheckInput, {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import * as React from 'react';
4
4
  import clsx from 'clsx';
5
- import { useBootstrapPrefix } from './ThemeProvider';
5
+ import { useBootstrapPrefix } from './ThemeProvider.js';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const InputGroupText = /*#__PURE__*/React.forwardRef(({
8
8
  className,
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { DynamicRefForwardingComponent, EventKey } from '@restart/ui/types';
3
- import type { BaseNavProps } from './types';
3
+ import type { BaseNavProps } from './types.js';
4
4
  export interface ListGroupProps extends BaseNavProps {
5
5
  /**
6
6
  * Element used to render the component.
@@ -33,6 +33,6 @@ export interface ListGroupProps extends BaseNavProps {
33
33
  numbered?: boolean | undefined;
34
34
  }
35
35
  declare const _default: DynamicRefForwardingComponent<"div", ListGroupProps> & {
36
- Item: DynamicRefForwardingComponent<"a", import("./ListGroupItem").ListGroupItemProps>;
36
+ Item: DynamicRefForwardingComponent<"a", import("./ListGroupItem.js").ListGroupItemProps>;
37
37
  };
38
38
  export default _default;
package/lib/ListGroup.js CHANGED
@@ -5,8 +5,8 @@ import * as React from 'react';
5
5
  import warning from 'warning';
6
6
  import { useUncontrolled } from 'uncontrollable';
7
7
  import BaseNav from '@restart/ui/Nav';
8
- import { useBootstrapPrefix } from './ThemeProvider';
9
- import ListGroupItem from './ListGroupItem';
8
+ import { useBootstrapPrefix } from './ThemeProvider.js';
9
+ import ListGroupItem from './ListGroupItem.js';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  const ListGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
12
12
  const {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { DynamicRefForwardingComponent } from '@restart/ui/types';
3
- import type { BaseNavItemProps, Variant } from './types';
3
+ import type { BaseNavItemProps, Variant } from './types.js';
4
4
  export interface ListGroupItemProps extends BaseNavItemProps {
5
5
  /**
6
6
  * You can use a custom element type for this component. For none `action` items, items render as `li`.
@@ -6,7 +6,7 @@ import warning from 'warning';
6
6
  import useEventCallback from '@restart/hooks/useEventCallback';
7
7
  import { useNavItem } from '@restart/ui/NavItem';
8
8
  import { makeEventKey } from '@restart/ui/SelectableContext';
9
- import { useBootstrapPrefix } from './ThemeProvider';
9
+ import { useBootstrapPrefix } from './ThemeProvider.js';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  const ListGroupItem = /*#__PURE__*/React.forwardRef(({
12
12
  bsPrefix,
package/lib/Modal.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { type ModalHandle } from '@restart/ui/Modal';
3
- import type { BaseModalProps } from './types';
3
+ import type { BaseModalProps } from './types.js';
4
4
  export interface ModalProps extends BaseModalProps {
5
5
  /**
6
6
  * @default 'modal'
@@ -52,11 +52,11 @@ export interface ModalProps extends BaseModalProps {
52
52
  [other: string]: any;
53
53
  }
54
54
  declare const _default: React.ForwardRefExoticComponent<Omit<ModalProps, "ref"> & React.RefAttributes<ModalHandle>> & {
55
- Body: import("@restart/ui/types").DynamicRefForwardingComponent<"div", import("./ModalBody").ModalBodyProps>;
56
- Header: React.ForwardRefExoticComponent<import("./ModalHeader").ModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
57
- Title: import("@restart/ui/types").DynamicRefForwardingComponent<"span", import("./ModalTitle").ModalTitleProps>;
58
- Footer: import("@restart/ui/types").DynamicRefForwardingComponent<"div", import("./ModalFooter").ModalFooterProps>;
59
- Dialog: React.ForwardRefExoticComponent<import("./ModalDialog").ModalDialogProps & React.RefAttributes<HTMLDivElement>>;
55
+ Body: import("@restart/ui/types").DynamicRefForwardingComponent<"div", import("./ModalBody.js").ModalBodyProps>;
56
+ Header: React.ForwardRefExoticComponent<import("./ModalHeader.js").ModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
57
+ Title: import("@restart/ui/types").DynamicRefForwardingComponent<"span", import("./ModalTitle.js").ModalTitleProps>;
58
+ Footer: import("@restart/ui/types").DynamicRefForwardingComponent<"div", import("./ModalFooter.js").ModalFooterProps>;
59
+ Dialog: React.ForwardRefExoticComponent<import("./ModalDialog.js").ModalDialogProps & React.RefAttributes<HTMLDivElement>>;
60
60
  TRANSITION_DURATION: number;
61
61
  BACKDROP_TRANSITION_DURATION: number;
62
62
  };
package/lib/Modal.js CHANGED
@@ -1,10 +1,8 @@
1
1
  "use client";
2
2
 
3
3
  import clsx from 'clsx';
4
- import addEventListener from 'dom-helpers/addEventListener';
5
4
  import canUseDOM from 'dom-helpers/canUseDOM';
6
5
  import ownerDocument from 'dom-helpers/ownerDocument';
7
- import removeEventListener from 'dom-helpers/removeEventListener';
8
6
  import getScrollbarSize from 'dom-helpers/scrollbarSize';
9
7
  import useCallbackRef from '@restart/hooks/useCallbackRef';
10
8
  import useEventCallback from '@restart/hooks/useEventCallback';
@@ -14,15 +12,15 @@ import transitionEnd from 'dom-helpers/transitionEnd';
14
12
  import * as React from 'react';
15
13
  import { useCallback, useMemo, useRef, useState } from 'react';
16
14
  import BaseModal from '@restart/ui/Modal';
17
- import { getSharedManager } from './BootstrapModalManager';
18
- import Fade from './Fade';
19
- import ModalBody from './ModalBody';
20
- import ModalContext from './ModalContext';
21
- import ModalDialog from './ModalDialog';
22
- import ModalFooter from './ModalFooter';
23
- import ModalHeader from './ModalHeader';
24
- import ModalTitle from './ModalTitle';
25
- import { useBootstrapPrefix, useIsRTL } from './ThemeProvider';
15
+ import { getSharedManager } from './BootstrapModalManager.js';
16
+ import Fade from './Fade.js';
17
+ import ModalBody from './ModalBody.js';
18
+ import ModalContext from './ModalContext.js';
19
+ import ModalDialog from './ModalDialog.js';
20
+ import ModalFooter from './ModalFooter.js';
21
+ import ModalHeader from './ModalHeader.js';
22
+ import ModalTitle from './ModalTitle.js';
23
+ import { useBootstrapPrefix, useIsRTL } from './ThemeProvider.js';
26
24
  import { jsx as _jsx } from "react/jsx-runtime";
27
25
  function DialogTransition(props) {
28
26
  return /*#__PURE__*/_jsx(Fade, {
@@ -106,7 +104,7 @@ const Modal = /*#__PURE__*/React.forwardRef(({
106
104
  }
107
105
  });
108
106
  useWillUnmount(() => {
109
- removeEventListener(window, 'resize', handleWindowResize);
107
+ window.removeEventListener('resize', handleWindowResize);
110
108
  removeStaticModalAnimationRef.current == null || removeStaticModalAnimationRef.current();
111
109
  });
112
110
 
@@ -171,14 +169,14 @@ const Modal = /*#__PURE__*/React.forwardRef(({
171
169
  onEntering == null || onEntering(node, isAppearing);
172
170
 
173
171
  // FIXME: This should work even when animation is disabled.
174
- addEventListener(window, 'resize', handleWindowResize);
172
+ window.addEventListener('resize', handleWindowResize);
175
173
  };
176
174
  const handleExited = node => {
177
175
  if (node) node.style.display = ''; // RHL removes it sometimes
178
176
  onExited == null || onExited(node);
179
177
 
180
178
  // FIXME: This should work even when animation is disabled.
181
- removeEventListener(window, 'resize', handleWindowResize);
179
+ window.removeEventListener('resize', handleWindowResize);
182
180
  };
183
181
  const renderBackdrop = useCallback(backdropProps => /*#__PURE__*/_jsx("div", {
184
182
  ...backdropProps,