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

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 (397) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/cjs/AbstractModalHeader.d.ts +1 -1
  3. package/cjs/AbstractModalHeader.js +3 -4
  4. package/cjs/Accordion.d.ts +6 -6
  5. package/cjs/Accordion.js +8 -9
  6. package/cjs/AccordionBody.d.ts +1 -1
  7. package/cjs/AccordionBody.js +4 -5
  8. package/cjs/AccordionButton.js +5 -6
  9. package/cjs/AccordionCollapse.d.ts +1 -1
  10. package/cjs/AccordionCollapse.js +4 -5
  11. package/cjs/AccordionContext.js +1 -2
  12. package/cjs/AccordionHeader.d.ts +4 -0
  13. package/cjs/AccordionHeader.js +5 -4
  14. package/cjs/AccordionItem.js +3 -4
  15. package/cjs/AccordionItemContext.js +1 -2
  16. package/cjs/Alert.d.ts +5 -5
  17. package/cjs/Alert.js +6 -7
  18. package/cjs/AlertHeading.js +3 -4
  19. package/cjs/AlertLink.js +2 -3
  20. package/cjs/Badge.d.ts +1 -1
  21. package/cjs/Badge.js +2 -3
  22. package/cjs/BootstrapModalManager.js +2 -4
  23. package/cjs/Breadcrumb.d.ts +1 -1
  24. package/cjs/Breadcrumb.js +3 -4
  25. package/cjs/BreadcrumbItem.js +2 -3
  26. package/cjs/Button.d.ts +1 -1
  27. package/cjs/Button.js +2 -3
  28. package/cjs/ButtonGroup.js +2 -3
  29. package/cjs/ButtonToolbar.js +2 -3
  30. package/cjs/Card.d.ts +10 -10
  31. package/cjs/Card.js +11 -12
  32. package/cjs/CardBody.js +2 -3
  33. package/cjs/CardFooter.js +2 -3
  34. package/cjs/CardGroup.js +2 -3
  35. package/cjs/CardHeader.js +3 -4
  36. package/cjs/CardHeaderContext.js +1 -2
  37. package/cjs/CardImg.js +2 -3
  38. package/cjs/CardImgOverlay.js +2 -3
  39. package/cjs/CardLink.js +2 -3
  40. package/cjs/CardSubtitle.js +3 -4
  41. package/cjs/CardText.js +2 -3
  42. package/cjs/CardTitle.js +3 -4
  43. package/cjs/Carousel.d.ts +2 -2
  44. package/cjs/Carousel.js +8 -9
  45. package/cjs/CarouselCaption.js +2 -3
  46. package/cjs/CarouselItem.js +2 -3
  47. package/cjs/CloseButton.js +1 -2
  48. package/cjs/Col.js +2 -3
  49. package/cjs/Collapse.d.ts +2 -2
  50. package/cjs/Collapse.js +9 -11
  51. package/cjs/Container.js +2 -3
  52. package/cjs/Dropdown.d.ts +7 -7
  53. package/cjs/Dropdown.js +10 -11
  54. package/cjs/DropdownButton.d.ts +3 -3
  55. package/cjs/DropdownButton.js +4 -5
  56. package/cjs/DropdownContext.d.ts +1 -1
  57. package/cjs/DropdownContext.js +1 -2
  58. package/cjs/DropdownDivider.js +2 -3
  59. package/cjs/DropdownHeader.js +2 -3
  60. package/cjs/DropdownItem.js +2 -3
  61. package/cjs/DropdownItemText.js +2 -3
  62. package/cjs/DropdownMenu.d.ts +3 -3
  63. package/cjs/DropdownMenu.js +6 -7
  64. package/cjs/DropdownToggle.d.ts +1 -1
  65. package/cjs/DropdownToggle.js +4 -5
  66. package/cjs/ElementChildren.js +1 -2
  67. package/cjs/Fade.d.ts +2 -2
  68. package/cjs/Fade.js +6 -8
  69. package/cjs/Feedback.js +1 -2
  70. package/cjs/Figure.d.ts +2 -2
  71. package/cjs/Figure.js +4 -5
  72. package/cjs/FigureCaption.js +2 -3
  73. package/cjs/FigureImage.d.ts +1 -1
  74. package/cjs/FigureImage.js +2 -3
  75. package/cjs/FloatingLabel.d.ts +1 -1
  76. package/cjs/FloatingLabel.js +3 -4
  77. package/cjs/Form.d.ts +22 -24
  78. package/cjs/Form.js +11 -12
  79. package/cjs/FormCheck.d.ts +3 -3
  80. package/cjs/FormCheck.js +7 -8
  81. package/cjs/FormCheckInput.js +3 -4
  82. package/cjs/FormCheckLabel.js +3 -4
  83. package/cjs/FormContext.js +1 -2
  84. package/cjs/FormControl.d.ts +1 -1
  85. package/cjs/FormControl.js +4 -5
  86. package/cjs/FormFloating.js +2 -3
  87. package/cjs/FormGroup.js +2 -3
  88. package/cjs/FormLabel.d.ts +1 -1
  89. package/cjs/FormLabel.js +4 -5
  90. package/cjs/FormRange.js +3 -4
  91. package/cjs/FormSelect.js +3 -4
  92. package/cjs/FormText.js +2 -3
  93. package/cjs/Image.js +2 -3
  94. package/cjs/InputGroup.d.ts +2 -2
  95. package/cjs/InputGroup.js +5 -6
  96. package/cjs/InputGroupContext.js +1 -2
  97. package/cjs/InputGroupText.js +2 -3
  98. package/cjs/ListGroup.d.ts +2 -2
  99. package/cjs/ListGroup.js +3 -4
  100. package/cjs/ListGroupItem.d.ts +1 -1
  101. package/cjs/ListGroupItem.js +2 -3
  102. package/cjs/Modal.d.ts +6 -6
  103. package/cjs/Modal.js +13 -16
  104. package/cjs/ModalBody.js +2 -3
  105. package/cjs/ModalContext.js +1 -2
  106. package/cjs/ModalDialog.js +2 -3
  107. package/cjs/ModalFooter.js +2 -3
  108. package/cjs/ModalHeader.d.ts +1 -1
  109. package/cjs/ModalHeader.js +3 -4
  110. package/cjs/ModalTitle.js +3 -4
  111. package/cjs/Nav.d.ts +3 -3
  112. package/cjs/Nav.js +6 -7
  113. package/cjs/NavContext.js +1 -2
  114. package/cjs/NavDropdown.d.ts +6 -6
  115. package/cjs/NavDropdown.js +4 -5
  116. package/cjs/NavItem.js +2 -3
  117. package/cjs/NavLink.d.ts +1 -1
  118. package/cjs/NavLink.js +2 -3
  119. package/cjs/Navbar.d.ts +6 -6
  120. package/cjs/Navbar.js +8 -9
  121. package/cjs/NavbarBrand.js +2 -3
  122. package/cjs/NavbarCollapse.d.ts +1 -1
  123. package/cjs/NavbarCollapse.js +4 -5
  124. package/cjs/NavbarContext.js +1 -2
  125. package/cjs/NavbarOffcanvas.d.ts +1 -1
  126. package/cjs/NavbarOffcanvas.js +3 -4
  127. package/cjs/NavbarText.js +2 -3
  128. package/cjs/NavbarToggle.js +3 -4
  129. package/cjs/Offcanvas.d.ts +4 -4
  130. package/cjs/Offcanvas.js +9 -10
  131. package/cjs/OffcanvasBody.js +2 -3
  132. package/cjs/OffcanvasHeader.d.ts +1 -1
  133. package/cjs/OffcanvasHeader.js +3 -4
  134. package/cjs/OffcanvasTitle.js +3 -4
  135. package/cjs/OffcanvasToggling.d.ts +2 -2
  136. package/cjs/OffcanvasToggling.js +7 -9
  137. package/cjs/Overlay.d.ts +2 -2
  138. package/cjs/Overlay.js +3 -4
  139. package/cjs/OverlayTrigger.d.ts +2 -2
  140. package/cjs/OverlayTrigger.js +3 -5
  141. package/cjs/PageItem.js +1 -2
  142. package/cjs/Pagination.d.ts +6 -6
  143. package/cjs/Pagination.js +3 -4
  144. package/cjs/Placeholder.d.ts +2 -2
  145. package/cjs/Placeholder.js +3 -4
  146. package/cjs/PlaceholderButton.d.ts +2 -2
  147. package/cjs/PlaceholderButton.js +3 -4
  148. package/cjs/Popover.d.ts +3 -3
  149. package/cjs/Popover.js +6 -7
  150. package/cjs/PopoverBody.js +2 -3
  151. package/cjs/PopoverHeader.js +2 -3
  152. package/cjs/ProgressBar.js +3 -4
  153. package/cjs/Ratio.js +2 -3
  154. package/cjs/Row.js +2 -3
  155. package/cjs/Spinner.d.ts +1 -1
  156. package/cjs/Spinner.js +2 -3
  157. package/cjs/SplitButton.d.ts +2 -2
  158. package/cjs/SplitButton.js +4 -5
  159. package/cjs/Stack.d.ts +2 -2
  160. package/cjs/Stack.js +3 -4
  161. package/cjs/Switch.d.ts +5 -5
  162. package/cjs/Switch.js +2 -3
  163. package/cjs/Tab.d.ts +3 -3
  164. package/cjs/Tab.js +3 -3
  165. package/cjs/TabContainer.d.ts +1 -1
  166. package/cjs/TabContainer.js +1 -1
  167. package/cjs/TabContent.js +2 -3
  168. package/cjs/TabPane.d.ts +2 -2
  169. package/cjs/TabPane.js +4 -5
  170. package/cjs/Table.js +2 -3
  171. package/cjs/Tabs.d.ts +2 -2
  172. package/cjs/Tabs.js +8 -9
  173. package/cjs/ThemeProvider.js +1 -2
  174. package/cjs/Toast.d.ts +3 -3
  175. package/cjs/Toast.js +10 -11
  176. package/cjs/ToastBody.js +2 -3
  177. package/cjs/ToastContainer.js +2 -3
  178. package/cjs/ToastContext.js +1 -2
  179. package/cjs/ToastFade.d.ts +2 -2
  180. package/cjs/ToastFade.js +4 -6
  181. package/cjs/ToastHeader.d.ts +1 -1
  182. package/cjs/ToastHeader.js +4 -5
  183. package/cjs/ToggleButton.d.ts +1 -1
  184. package/cjs/ToggleButton.js +3 -4
  185. package/cjs/ToggleButtonGroup.d.ts +2 -2
  186. package/cjs/ToggleButtonGroup.js +5 -6
  187. package/cjs/Tooltip.d.ts +1 -1
  188. package/cjs/Tooltip.js +4 -5
  189. package/cjs/TransitionWrapper.d.ts +4 -4
  190. package/cjs/TransitionWrapper.js +3 -4
  191. package/cjs/createUtilityClasses.js +1 -1
  192. package/cjs/createWithBsPrefix.js +2 -3
  193. package/cjs/divWithClassName.js +1 -2
  194. package/cjs/getTabTransitionComponent.d.ts +1 -1
  195. package/cjs/getTabTransitionComponent.js +1 -1
  196. package/cjs/index.d.ts +217 -217
  197. package/cjs/index.js +111 -111
  198. package/cjs/transitionEndListener.d.ts +1 -0
  199. package/cjs/transitionEndListener.js +5 -6
  200. package/cjs/types.d.ts +1 -1
  201. package/cjs/useAccordionButton.js +1 -1
  202. package/cjs/useCol.d.ts +1 -1
  203. package/cjs/useCol.js +1 -1
  204. package/cjs/useOverlayOffset.js +5 -6
  205. package/cjs/usePlaceholder.d.ts +2 -2
  206. package/cjs/usePlaceholder.js +2 -2
  207. package/lib/AbstractModalHeader.d.ts +1 -1
  208. package/lib/AbstractModalHeader.js +2 -2
  209. package/lib/Accordion.d.ts +6 -6
  210. package/lib/Accordion.js +7 -7
  211. package/lib/AccordionBody.d.ts +1 -1
  212. package/lib/AccordionBody.js +3 -3
  213. package/lib/AccordionButton.js +4 -4
  214. package/lib/AccordionCollapse.d.ts +1 -1
  215. package/lib/AccordionCollapse.js +3 -3
  216. package/lib/AccordionHeader.d.ts +4 -0
  217. package/lib/AccordionHeader.js +4 -2
  218. package/lib/AccordionItem.js +2 -2
  219. package/lib/Alert.d.ts +5 -5
  220. package/lib/Alert.js +5 -5
  221. package/lib/AlertHeading.js +2 -2
  222. package/lib/AlertLink.js +1 -1
  223. package/lib/Badge.d.ts +1 -1
  224. package/lib/Badge.js +1 -1
  225. package/lib/BootstrapModalManager.js +2 -4
  226. package/lib/Breadcrumb.d.ts +1 -1
  227. package/lib/Breadcrumb.js +2 -2
  228. package/lib/BreadcrumbItem.js +1 -1
  229. package/lib/Button.d.ts +1 -1
  230. package/lib/Button.js +1 -1
  231. package/lib/ButtonGroup.js +1 -1
  232. package/lib/ButtonToolbar.js +1 -1
  233. package/lib/Card.d.ts +10 -10
  234. package/lib/Card.js +10 -10
  235. package/lib/CardBody.js +1 -1
  236. package/lib/CardFooter.js +1 -1
  237. package/lib/CardGroup.js +1 -1
  238. package/lib/CardHeader.js +2 -2
  239. package/lib/CardImg.js +1 -1
  240. package/lib/CardImgOverlay.js +1 -1
  241. package/lib/CardLink.js +1 -1
  242. package/lib/CardSubtitle.js +2 -2
  243. package/lib/CardText.js +1 -1
  244. package/lib/CardTitle.js +2 -2
  245. package/lib/Carousel.d.ts +2 -2
  246. package/lib/Carousel.js +7 -7
  247. package/lib/CarouselCaption.js +1 -1
  248. package/lib/CarouselItem.js +1 -1
  249. package/lib/Col.js +1 -1
  250. package/lib/Collapse.d.ts +2 -2
  251. package/lib/Collapse.js +8 -9
  252. package/lib/Container.js +1 -1
  253. package/lib/Dropdown.d.ts +7 -7
  254. package/lib/Dropdown.js +9 -9
  255. package/lib/DropdownButton.d.ts +3 -3
  256. package/lib/DropdownButton.js +3 -3
  257. package/lib/DropdownContext.d.ts +1 -1
  258. package/lib/DropdownDivider.js +1 -1
  259. package/lib/DropdownHeader.js +1 -1
  260. package/lib/DropdownItem.js +1 -1
  261. package/lib/DropdownItemText.js +1 -1
  262. package/lib/DropdownMenu.d.ts +3 -3
  263. package/lib/DropdownMenu.js +5 -5
  264. package/lib/DropdownToggle.d.ts +1 -1
  265. package/lib/DropdownToggle.js +3 -3
  266. package/lib/Fade.d.ts +2 -2
  267. package/lib/Fade.js +5 -6
  268. package/lib/Figure.d.ts +2 -2
  269. package/lib/Figure.js +3 -3
  270. package/lib/FigureCaption.js +1 -1
  271. package/lib/FigureImage.d.ts +1 -1
  272. package/lib/FigureImage.js +1 -1
  273. package/lib/FloatingLabel.d.ts +1 -1
  274. package/lib/FloatingLabel.js +2 -2
  275. package/lib/Form.d.ts +22 -24
  276. package/lib/Form.js +10 -10
  277. package/lib/FormCheck.d.ts +3 -3
  278. package/lib/FormCheck.js +6 -6
  279. package/lib/FormCheckInput.js +2 -2
  280. package/lib/FormCheckLabel.js +2 -2
  281. package/lib/FormControl.d.ts +1 -1
  282. package/lib/FormControl.js +3 -3
  283. package/lib/FormFloating.js +1 -1
  284. package/lib/FormGroup.js +1 -1
  285. package/lib/FormLabel.d.ts +1 -1
  286. package/lib/FormLabel.js +3 -3
  287. package/lib/FormRange.js +2 -2
  288. package/lib/FormSelect.js +2 -2
  289. package/lib/FormText.js +1 -1
  290. package/lib/Image.js +1 -1
  291. package/lib/InputGroup.d.ts +2 -2
  292. package/lib/InputGroup.js +4 -4
  293. package/lib/InputGroupText.js +1 -1
  294. package/lib/ListGroup.d.ts +2 -2
  295. package/lib/ListGroup.js +2 -2
  296. package/lib/ListGroupItem.d.ts +1 -1
  297. package/lib/ListGroupItem.js +1 -1
  298. package/lib/Modal.d.ts +6 -6
  299. package/lib/Modal.js +12 -14
  300. package/lib/ModalBody.js +1 -1
  301. package/lib/ModalDialog.js +1 -1
  302. package/lib/ModalFooter.js +1 -1
  303. package/lib/ModalHeader.d.ts +1 -1
  304. package/lib/ModalHeader.js +2 -2
  305. package/lib/ModalTitle.js +2 -2
  306. package/lib/Nav.d.ts +3 -3
  307. package/lib/Nav.js +5 -5
  308. package/lib/NavDropdown.d.ts +6 -6
  309. package/lib/NavDropdown.js +3 -3
  310. package/lib/NavItem.js +1 -1
  311. package/lib/NavLink.d.ts +1 -1
  312. package/lib/NavLink.js +1 -1
  313. package/lib/Navbar.d.ts +6 -6
  314. package/lib/Navbar.js +7 -7
  315. package/lib/NavbarBrand.js +1 -1
  316. package/lib/NavbarCollapse.d.ts +1 -1
  317. package/lib/NavbarCollapse.js +3 -3
  318. package/lib/NavbarOffcanvas.d.ts +1 -1
  319. package/lib/NavbarOffcanvas.js +2 -2
  320. package/lib/NavbarText.js +1 -1
  321. package/lib/NavbarToggle.js +2 -2
  322. package/lib/Offcanvas.d.ts +4 -4
  323. package/lib/Offcanvas.js +8 -8
  324. package/lib/OffcanvasBody.js +1 -1
  325. package/lib/OffcanvasHeader.d.ts +1 -1
  326. package/lib/OffcanvasHeader.js +2 -2
  327. package/lib/OffcanvasTitle.js +2 -2
  328. package/lib/OffcanvasToggling.d.ts +2 -2
  329. package/lib/OffcanvasToggling.js +6 -7
  330. package/lib/Overlay.d.ts +2 -2
  331. package/lib/Overlay.js +2 -2
  332. package/lib/OverlayTrigger.d.ts +2 -2
  333. package/lib/OverlayTrigger.js +2 -3
  334. package/lib/Pagination.d.ts +6 -6
  335. package/lib/Pagination.js +2 -2
  336. package/lib/Placeholder.d.ts +2 -2
  337. package/lib/Placeholder.js +2 -2
  338. package/lib/PlaceholderButton.d.ts +2 -2
  339. package/lib/PlaceholderButton.js +2 -2
  340. package/lib/Popover.d.ts +3 -3
  341. package/lib/Popover.js +5 -5
  342. package/lib/PopoverBody.js +1 -1
  343. package/lib/PopoverHeader.js +1 -1
  344. package/lib/ProgressBar.js +2 -2
  345. package/lib/Ratio.js +1 -1
  346. package/lib/Row.js +1 -1
  347. package/lib/Spinner.d.ts +1 -1
  348. package/lib/Spinner.js +1 -1
  349. package/lib/SplitButton.d.ts +2 -2
  350. package/lib/SplitButton.js +3 -3
  351. package/lib/Stack.d.ts +2 -2
  352. package/lib/Stack.js +2 -2
  353. package/lib/Switch.d.ts +5 -5
  354. package/lib/Switch.js +1 -1
  355. package/lib/Tab.d.ts +3 -3
  356. package/lib/Tab.js +3 -3
  357. package/lib/TabContainer.d.ts +1 -1
  358. package/lib/TabContainer.js +1 -1
  359. package/lib/TabContent.js +1 -1
  360. package/lib/TabPane.d.ts +2 -2
  361. package/lib/TabPane.js +3 -3
  362. package/lib/Table.js +1 -1
  363. package/lib/Tabs.d.ts +2 -2
  364. package/lib/Tabs.js +7 -7
  365. package/lib/Toast.d.ts +3 -3
  366. package/lib/Toast.js +9 -9
  367. package/lib/ToastBody.js +1 -1
  368. package/lib/ToastContainer.js +1 -1
  369. package/lib/ToastFade.d.ts +2 -2
  370. package/lib/ToastFade.js +3 -4
  371. package/lib/ToastHeader.d.ts +1 -1
  372. package/lib/ToastHeader.js +3 -3
  373. package/lib/ToggleButton.d.ts +1 -1
  374. package/lib/ToggleButton.js +2 -2
  375. package/lib/ToggleButtonGroup.d.ts +2 -2
  376. package/lib/ToggleButtonGroup.js +4 -4
  377. package/lib/Tooltip.d.ts +1 -1
  378. package/lib/Tooltip.js +3 -3
  379. package/lib/TransitionWrapper.d.ts +4 -4
  380. package/lib/TransitionWrapper.js +1 -1
  381. package/lib/createUtilityClasses.js +1 -1
  382. package/lib/createWithBsPrefix.js +1 -1
  383. package/lib/getTabTransitionComponent.d.ts +1 -1
  384. package/lib/getTabTransitionComponent.js +1 -1
  385. package/lib/index.d.ts +217 -217
  386. package/lib/index.js +111 -111
  387. package/lib/transitionEndListener.d.ts +1 -0
  388. package/lib/transitionEndListener.js +4 -5
  389. package/lib/types.d.ts +1 -1
  390. package/lib/useAccordionButton.js +1 -1
  391. package/lib/useCol.d.ts +1 -1
  392. package/lib/useCol.js +1 -1
  393. package/lib/useOverlayOffset.js +5 -6
  394. package/lib/usePlaceholder.d.ts +2 -2
  395. package/lib/usePlaceholder.js +2 -2
  396. package/package.json +28 -27
  397. package/lib/package.json +0 -1
@@ -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 DropdownItemText = /*#__PURE__*/React.forwardRef(({
8
8
  className,
@@ -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;
@@ -164,7 +164,7 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
164
164
  onBlurCapture?: React.FocusEventHandler<HTMLInputElement> | undefined;
165
165
  onChange?: React.ChangeEventHandler<HTMLInputElement> | undefined;
166
166
  onChangeCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
167
- onBeforeInput?: React.FormEventHandler<HTMLInputElement> | undefined;
167
+ onBeforeInput?: React.InputEventHandler<HTMLInputElement> | undefined;
168
168
  onBeforeInputCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
169
169
  onInput?: React.FormEventHandler<HTMLInputElement> | undefined;
170
170
  onInputCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
@@ -214,8 +214,6 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
214
214
  onProgressCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
215
215
  onRateChange?: React.ReactEventHandler<HTMLInputElement> | undefined;
216
216
  onRateChangeCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
217
- onResize?: React.ReactEventHandler<HTMLInputElement> | undefined;
218
- onResizeCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
219
217
  onSeeked?: React.ReactEventHandler<HTMLInputElement> | undefined;
220
218
  onSeekedCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
221
219
  onSeeking?: React.ReactEventHandler<HTMLInputElement> | undefined;
@@ -319,11 +317,11 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
319
317
  reverse?: boolean | undefined | undefined;
320
318
  list?: string | undefined | undefined;
321
319
  bsPrefix?: string | undefined | undefined;
322
- height?: number | string | undefined | undefined;
323
- width?: number | string | undefined | undefined;
324
320
  label?: React.ReactNode;
325
- as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
326
321
  pattern?: string | undefined | undefined;
322
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
323
+ height?: number | string | undefined | undefined;
324
+ width?: number | string | undefined | undefined;
327
325
  size?: number | undefined | undefined;
328
326
  inline?: boolean | undefined | undefined;
329
327
  multiple?: boolean | undefined | undefined;
@@ -346,15 +344,15 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
346
344
  required?: boolean | undefined | undefined;
347
345
  bsSwitchPrefix?: string | undefined | undefined;
348
346
  feedbackTooltip?: boolean | undefined | undefined;
349
- feedbackType?: import("./Feedback").FeedbackType | undefined;
347
+ feedbackType?: import("./Feedback.js").FeedbackType | undefined;
350
348
  }> & {
351
- Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
352
- Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
349
+ Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput.js").FormCheckInputProps>;
350
+ Label: React.ForwardRefExoticComponent<import("./FormCheckLabel.js").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
353
351
  };
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>;
352
+ Label: DynamicRefForwardingComponent<"label", import("./FormLabel.js").FormLabelProps>;
353
+ Text: DynamicRefForwardingComponent<"small", import("./FormText.js").FormTextProps>;
354
+ Range: React.ForwardRefExoticComponent<import("./FormRange.js").FormRangeProps & React.RefAttributes<HTMLInputElement>>;
355
+ Select: React.ForwardRefExoticComponent<import("./FormSelect.js").FormSelectProps & React.RefAttributes<HTMLSelectElement>>;
356
+ FloatingLabel: DynamicRefForwardingComponent<"div", import("./FloatingLabel.js").FloatingLabelProps>;
359
357
  };
360
358
  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
  };