react-bootstrap 2.8.0 → 2.9.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/AlertHeading/package.json +7 -0
  2. package/AlertLink/package.json +7 -0
  3. package/CardBody/package.json +7 -0
  4. package/CardFooter/package.json +7 -0
  5. package/CardImgOverlay/package.json +7 -0
  6. package/CardLink/package.json +7 -0
  7. package/CardSubtitle/package.json +7 -0
  8. package/CardText/package.json +7 -0
  9. package/CardTitle/package.json +7 -0
  10. package/DropdownDivider/package.json +7 -0
  11. package/DropdownHeader/package.json +7 -0
  12. package/DropdownItemText/package.json +7 -0
  13. package/InputGroupText/package.json +7 -0
  14. package/NavbarText/package.json +7 -0
  15. package/cjs/AbstractModalHeader.js +1 -0
  16. package/cjs/Accordion.js +1 -0
  17. package/cjs/AccordionBody.js +1 -0
  18. package/cjs/AccordionButton.js +1 -0
  19. package/cjs/AccordionCollapse.js +1 -0
  20. package/cjs/AccordionContext.js +1 -0
  21. package/cjs/AccordionHeader.js +1 -0
  22. package/cjs/AccordionItem.js +1 -0
  23. package/cjs/AccordionItemContext.js +1 -0
  24. package/cjs/Alert.d.ts +2 -2
  25. package/cjs/Alert.js +5 -13
  26. package/cjs/AlertHeading.d.ts +6 -0
  27. package/cjs/AlertHeading.js +32 -0
  28. package/cjs/AlertLink.d.ts +6 -0
  29. package/cjs/AlertLink.js +30 -0
  30. package/cjs/Badge.js +1 -0
  31. package/cjs/Breadcrumb.js +1 -0
  32. package/cjs/BreadcrumbItem.js +1 -0
  33. package/cjs/Button.js +1 -0
  34. package/cjs/ButtonGroup.js +1 -0
  35. package/cjs/ButtonToolbar.js +1 -0
  36. package/cjs/Card.d.ts +7 -7
  37. package/cjs/Card.js +17 -28
  38. package/cjs/CardBody.d.ts +6 -0
  39. package/cjs/CardBody.js +29 -0
  40. package/cjs/CardFooter.d.ts +6 -0
  41. package/cjs/CardFooter.js +29 -0
  42. package/cjs/CardGroup.d.ts +6 -2
  43. package/cjs/CardGroup.js +22 -2
  44. package/cjs/CardHeader.js +1 -0
  45. package/cjs/CardHeaderContext.js +1 -0
  46. package/cjs/CardImg.js +1 -0
  47. package/cjs/CardImgOverlay.d.ts +6 -0
  48. package/cjs/CardImgOverlay.js +29 -0
  49. package/cjs/CardLink.d.ts +6 -0
  50. package/cjs/CardLink.js +29 -0
  51. package/cjs/CardSubtitle.d.ts +6 -0
  52. package/cjs/CardSubtitle.js +31 -0
  53. package/cjs/CardText.d.ts +6 -0
  54. package/cjs/CardText.js +29 -0
  55. package/cjs/CardTitle.d.ts +6 -0
  56. package/cjs/CardTitle.js +31 -0
  57. package/cjs/Carousel.d.ts +1 -1
  58. package/cjs/Carousel.js +1 -0
  59. package/cjs/CarouselCaption.d.ts +6 -2
  60. package/cjs/CarouselCaption.js +22 -2
  61. package/cjs/CarouselItem.js +1 -0
  62. package/cjs/Col.js +1 -0
  63. package/cjs/Container.js +1 -0
  64. package/cjs/Dropdown.d.ts +4 -4
  65. package/cjs/Dropdown.js +7 -18
  66. package/cjs/DropdownContext.js +1 -0
  67. package/cjs/DropdownDivider.d.ts +6 -0
  68. package/cjs/DropdownDivider.js +31 -0
  69. package/cjs/DropdownHeader.d.ts +6 -0
  70. package/cjs/DropdownHeader.js +31 -0
  71. package/cjs/DropdownItem.d.ts +2 -2
  72. package/cjs/DropdownItem.js +1 -0
  73. package/cjs/DropdownItemText.d.ts +6 -0
  74. package/cjs/DropdownItemText.js +29 -0
  75. package/cjs/DropdownMenu.js +1 -0
  76. package/cjs/DropdownToggle.js +1 -0
  77. package/cjs/Figure.d.ts +7 -4
  78. package/cjs/Figure.js +20 -3
  79. package/cjs/FigureCaption.d.ts +5 -1
  80. package/cjs/FigureCaption.js +20 -3
  81. package/cjs/FloatingLabel.js +1 -0
  82. package/cjs/Form.d.ts +1 -1
  83. package/cjs/FormCheck.js +1 -0
  84. package/cjs/FormCheckInput.js +1 -0
  85. package/cjs/FormCheckLabel.js +1 -0
  86. package/cjs/FormContext.js +1 -0
  87. package/cjs/FormControl.js +2 -12
  88. package/cjs/FormFloating.d.ts +6 -2
  89. package/cjs/FormFloating.js +22 -2
  90. package/cjs/FormLabel.js +1 -0
  91. package/cjs/FormRange.js +1 -0
  92. package/cjs/FormSelect.js +1 -0
  93. package/cjs/FormText.js +1 -0
  94. package/cjs/Image.js +1 -0
  95. package/cjs/InputGroup.d.ts +4 -3
  96. package/cjs/InputGroup.js +5 -7
  97. package/cjs/InputGroupContext.js +1 -0
  98. package/cjs/InputGroupText.d.ts +6 -0
  99. package/cjs/InputGroupText.js +29 -0
  100. package/cjs/ListGroup.js +1 -0
  101. package/cjs/ListGroupItem.js +1 -0
  102. package/cjs/Modal.d.ts +3 -3
  103. package/cjs/Modal.js +1 -0
  104. package/cjs/ModalBody.d.ts +6 -2
  105. package/cjs/ModalBody.js +22 -2
  106. package/cjs/ModalContext.js +1 -0
  107. package/cjs/ModalDialog.js +1 -0
  108. package/cjs/ModalFooter.d.ts +6 -2
  109. package/cjs/ModalFooter.js +22 -2
  110. package/cjs/ModalHeader.js +1 -0
  111. package/cjs/ModalTitle.d.ts +6 -3
  112. package/cjs/ModalTitle.js +21 -3
  113. package/cjs/Nav.d.ts +1 -1
  114. package/cjs/Nav.js +1 -0
  115. package/cjs/NavContext.js +1 -0
  116. package/cjs/NavDropdown.d.ts +4 -4
  117. package/cjs/NavDropdown.js +1 -0
  118. package/cjs/NavItem.d.ts +6 -2
  119. package/cjs/NavItem.js +22 -2
  120. package/cjs/NavLink.js +1 -0
  121. package/cjs/Navbar.d.ts +1 -1
  122. package/cjs/Navbar.js +3 -5
  123. package/cjs/NavbarBrand.js +1 -0
  124. package/cjs/NavbarCollapse.js +1 -0
  125. package/cjs/NavbarContext.js +1 -0
  126. package/cjs/NavbarOffcanvas.js +1 -0
  127. package/cjs/NavbarText.d.ts +6 -0
  128. package/cjs/NavbarText.js +29 -0
  129. package/cjs/NavbarToggle.js +1 -0
  130. package/cjs/Offcanvas.d.ts +2 -2
  131. package/cjs/Offcanvas.js +1 -0
  132. package/cjs/OffcanvasBody.d.ts +6 -2
  133. package/cjs/OffcanvasBody.js +22 -2
  134. package/cjs/OffcanvasHeader.js +1 -0
  135. package/cjs/OffcanvasTitle.d.ts +6 -3
  136. package/cjs/OffcanvasTitle.js +21 -3
  137. package/cjs/OffcanvasToggling.js +1 -0
  138. package/cjs/Overlay.js +4 -2
  139. package/cjs/OverlayTrigger.js +1 -0
  140. package/cjs/Pagination.js +1 -0
  141. package/cjs/Popover.d.ts +2 -2
  142. package/cjs/Popover.js +1 -0
  143. package/cjs/PopoverBody.d.ts +6 -2
  144. package/cjs/PopoverBody.js +22 -2
  145. package/cjs/PopoverHeader.d.ts +6 -2
  146. package/cjs/PopoverHeader.js +22 -2
  147. package/cjs/ProgressBar.js +1 -0
  148. package/cjs/Ratio.js +1 -0
  149. package/cjs/Row.js +1 -0
  150. package/cjs/Spinner.js +1 -0
  151. package/cjs/Stack.js +1 -0
  152. package/cjs/Tab.d.ts +1 -1
  153. package/cjs/Tab.js +0 -6
  154. package/cjs/TabContent.d.ts +6 -2
  155. package/cjs/TabContent.js +22 -2
  156. package/cjs/TabPane.js +1 -0
  157. package/cjs/Table.js +1 -0
  158. package/cjs/ThemeProvider.js +1 -0
  159. package/cjs/Toast.d.ts +1 -1
  160. package/cjs/Toast.js +1 -0
  161. package/cjs/ToastBody.d.ts +6 -2
  162. package/cjs/ToastBody.js +22 -2
  163. package/cjs/ToastContainer.js +1 -0
  164. package/cjs/ToastContext.js +1 -0
  165. package/cjs/ToastHeader.js +1 -0
  166. package/cjs/ToggleButton.d.ts +1 -0
  167. package/cjs/ToggleButton.js +1 -0
  168. package/cjs/Tooltip.js +1 -0
  169. package/cjs/TransitionWrapper.js +1 -0
  170. package/cjs/createWithBsPrefix.js +1 -0
  171. package/cjs/index.d.ts +71 -9
  172. package/cjs/index.js +68 -15
  173. package/cjs/useOverlayOffset.js +1 -0
  174. package/cjs/usePlaceholder.js +1 -0
  175. package/dist/react-bootstrap.js +1199 -490
  176. package/dist/react-bootstrap.min.js +1 -1
  177. package/esm/AbstractModalHeader.js +2 -0
  178. package/esm/Accordion.js +2 -0
  179. package/esm/AccordionBody.js +2 -0
  180. package/esm/AccordionButton.js +2 -0
  181. package/esm/AccordionCollapse.js +2 -0
  182. package/esm/AccordionContext.js +2 -0
  183. package/esm/AccordionHeader.js +2 -0
  184. package/esm/AccordionItem.js +2 -0
  185. package/esm/AccordionItemContext.js +2 -0
  186. package/esm/Alert.d.ts +2 -2
  187. package/esm/Alert.js +4 -11
  188. package/esm/AlertHeading.d.ts +6 -0
  189. package/esm/AlertHeading.js +24 -0
  190. package/esm/AlertLink.d.ts +6 -0
  191. package/esm/AlertLink.js +22 -0
  192. package/esm/Badge.js +2 -0
  193. package/esm/Breadcrumb.js +2 -0
  194. package/esm/BreadcrumbItem.js +2 -0
  195. package/esm/Button.js +2 -0
  196. package/esm/ButtonGroup.js +2 -0
  197. package/esm/ButtonToolbar.js +2 -0
  198. package/esm/Card.d.ts +7 -7
  199. package/esm/Card.js +10 -20
  200. package/esm/CardBody.d.ts +6 -0
  201. package/esm/CardBody.js +21 -0
  202. package/esm/CardFooter.d.ts +6 -0
  203. package/esm/CardFooter.js +21 -0
  204. package/esm/CardGroup.d.ts +6 -2
  205. package/esm/CardGroup.js +21 -2
  206. package/esm/CardHeader.js +2 -0
  207. package/esm/CardHeaderContext.js +2 -0
  208. package/esm/CardImg.js +2 -0
  209. package/esm/CardImgOverlay.d.ts +6 -0
  210. package/esm/CardImgOverlay.js +21 -0
  211. package/esm/CardLink.d.ts +6 -0
  212. package/esm/CardLink.js +21 -0
  213. package/esm/CardSubtitle.d.ts +6 -0
  214. package/esm/CardSubtitle.js +23 -0
  215. package/esm/CardText.d.ts +6 -0
  216. package/esm/CardText.js +21 -0
  217. package/esm/CardTitle.d.ts +6 -0
  218. package/esm/CardTitle.js +23 -0
  219. package/esm/Carousel.d.ts +1 -1
  220. package/esm/Carousel.js +2 -0
  221. package/esm/CarouselCaption.d.ts +6 -2
  222. package/esm/CarouselCaption.js +21 -2
  223. package/esm/CarouselItem.js +2 -0
  224. package/esm/Col.js +2 -0
  225. package/esm/Container.js +2 -0
  226. package/esm/Dropdown.d.ts +4 -4
  227. package/esm/Dropdown.js +5 -15
  228. package/esm/DropdownContext.js +2 -0
  229. package/esm/DropdownDivider.d.ts +6 -0
  230. package/esm/DropdownDivider.js +23 -0
  231. package/esm/DropdownHeader.d.ts +6 -0
  232. package/esm/DropdownHeader.js +23 -0
  233. package/esm/DropdownItem.d.ts +2 -2
  234. package/esm/DropdownItem.js +2 -0
  235. package/esm/DropdownItemText.d.ts +6 -0
  236. package/esm/DropdownItemText.js +21 -0
  237. package/esm/DropdownMenu.js +2 -0
  238. package/esm/DropdownToggle.js +2 -0
  239. package/esm/Figure.d.ts +7 -4
  240. package/esm/Figure.js +19 -3
  241. package/esm/FigureCaption.d.ts +5 -1
  242. package/esm/FigureCaption.js +19 -3
  243. package/esm/FloatingLabel.js +2 -0
  244. package/esm/Form.d.ts +1 -1
  245. package/esm/FormCheck.js +2 -0
  246. package/esm/FormCheckInput.js +2 -0
  247. package/esm/FormCheckLabel.js +2 -0
  248. package/esm/FormContext.js +2 -0
  249. package/esm/FormControl.js +3 -12
  250. package/esm/FormFloating.d.ts +6 -2
  251. package/esm/FormFloating.js +21 -2
  252. package/esm/FormLabel.js +2 -0
  253. package/esm/FormRange.js +2 -0
  254. package/esm/FormSelect.js +2 -0
  255. package/esm/FormText.js +2 -0
  256. package/esm/Image.js +2 -0
  257. package/esm/InputGroup.d.ts +4 -3
  258. package/esm/InputGroup.js +3 -4
  259. package/esm/InputGroupContext.js +2 -0
  260. package/esm/InputGroupText.d.ts +6 -0
  261. package/esm/InputGroupText.js +21 -0
  262. package/esm/ListGroup.js +2 -0
  263. package/esm/ListGroupItem.js +2 -0
  264. package/esm/Modal.d.ts +3 -3
  265. package/esm/Modal.js +2 -0
  266. package/esm/ModalBody.d.ts +6 -2
  267. package/esm/ModalBody.js +21 -2
  268. package/esm/ModalContext.js +2 -0
  269. package/esm/ModalDialog.js +2 -0
  270. package/esm/ModalFooter.d.ts +6 -2
  271. package/esm/ModalFooter.js +21 -2
  272. package/esm/ModalHeader.js +2 -0
  273. package/esm/ModalTitle.d.ts +6 -3
  274. package/esm/ModalTitle.js +21 -4
  275. package/esm/Nav.d.ts +1 -1
  276. package/esm/Nav.js +2 -0
  277. package/esm/NavContext.js +2 -0
  278. package/esm/NavDropdown.d.ts +4 -4
  279. package/esm/NavDropdown.js +2 -0
  280. package/esm/NavItem.d.ts +6 -2
  281. package/esm/NavItem.js +21 -2
  282. package/esm/NavLink.js +2 -0
  283. package/esm/Navbar.d.ts +1 -1
  284. package/esm/Navbar.js +3 -4
  285. package/esm/NavbarBrand.js +2 -0
  286. package/esm/NavbarCollapse.js +2 -0
  287. package/esm/NavbarContext.js +2 -0
  288. package/esm/NavbarOffcanvas.js +2 -0
  289. package/esm/NavbarText.d.ts +6 -0
  290. package/esm/NavbarText.js +21 -0
  291. package/esm/NavbarToggle.js +2 -0
  292. package/esm/Offcanvas.d.ts +2 -2
  293. package/esm/Offcanvas.js +2 -0
  294. package/esm/OffcanvasBody.d.ts +6 -2
  295. package/esm/OffcanvasBody.js +21 -2
  296. package/esm/OffcanvasHeader.js +2 -0
  297. package/esm/OffcanvasTitle.d.ts +6 -3
  298. package/esm/OffcanvasTitle.js +21 -4
  299. package/esm/OffcanvasToggling.js +2 -0
  300. package/esm/Overlay.js +5 -2
  301. package/esm/OverlayTrigger.js +2 -0
  302. package/esm/Pagination.js +2 -0
  303. package/esm/Popover.d.ts +2 -2
  304. package/esm/Popover.js +2 -0
  305. package/esm/PopoverBody.d.ts +6 -2
  306. package/esm/PopoverBody.js +21 -2
  307. package/esm/PopoverHeader.d.ts +6 -2
  308. package/esm/PopoverHeader.js +21 -2
  309. package/esm/ProgressBar.js +2 -0
  310. package/esm/Ratio.js +2 -0
  311. package/esm/Row.js +2 -0
  312. package/esm/Spinner.js +2 -0
  313. package/esm/Stack.js +2 -0
  314. package/esm/Tab.d.ts +1 -1
  315. package/esm/Tab.js +0 -5
  316. package/esm/TabContent.d.ts +6 -2
  317. package/esm/TabContent.js +21 -2
  318. package/esm/TabPane.js +2 -0
  319. package/esm/Table.js +2 -0
  320. package/esm/ThemeProvider.js +2 -0
  321. package/esm/Toast.d.ts +1 -1
  322. package/esm/Toast.js +2 -0
  323. package/esm/ToastBody.d.ts +6 -2
  324. package/esm/ToastBody.js +21 -2
  325. package/esm/ToastContainer.js +2 -0
  326. package/esm/ToastContext.js +2 -0
  327. package/esm/ToastHeader.js +2 -0
  328. package/esm/ToggleButton.d.ts +1 -0
  329. package/esm/ToggleButton.js +2 -0
  330. package/esm/Tooltip.js +2 -0
  331. package/esm/TransitionWrapper.js +2 -0
  332. package/esm/createWithBsPrefix.js +2 -0
  333. package/esm/index.d.ts +71 -9
  334. package/esm/index.js +33 -7
  335. package/esm/useOverlayOffset.js +2 -0
  336. package/esm/usePlaceholder.js +2 -0
  337. package/package.json +4 -4
package/esm/ModalTitle.js CHANGED
@@ -1,6 +1,23 @@
1
- import createWithBsPrefix from './createWithBsPrefix';
1
+ "use client";
2
+
3
+ import * as React from 'react';
4
+ import classNames from 'classnames';
2
5
  import divWithClassName from './divWithClassName';
6
+ import { useBootstrapPrefix } from './ThemeProvider';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
3
8
  const DivStyledAsH4 = divWithClassName('h4');
4
- export default createWithBsPrefix('modal-title', {
5
- Component: DivStyledAsH4
6
- });
9
+ const ModalTitle = /*#__PURE__*/React.forwardRef(({
10
+ className,
11
+ bsPrefix,
12
+ as: Component = DivStyledAsH4,
13
+ ...props
14
+ }, ref) => {
15
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-title');
16
+ return /*#__PURE__*/_jsx(Component, {
17
+ ref: ref,
18
+ className: classNames(className, bsPrefix),
19
+ ...props
20
+ });
21
+ });
22
+ ModalTitle.displayName = 'ModalTitle';
23
+ export default ModalTitle;
package/esm/Nav.d.ts CHANGED
@@ -12,7 +12,7 @@ export interface NavProps extends BsPrefixProps, BaseNavProps {
12
12
  navbarScroll?: boolean;
13
13
  }
14
14
  declare const _default: BsPrefixRefForwardingComponent<"div", NavProps> & {
15
- Item: BsPrefixRefForwardingComponent<"div", unknown>;
15
+ Item: BsPrefixRefForwardingComponent<"div", import("./NavItem").NavItemProps>;
16
16
  Link: BsPrefixRefForwardingComponent<"a", import("./NavLink").NavLinkProps>;
17
17
  };
18
18
  export default _default;
package/esm/Nav.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import all from 'prop-types-extra/lib/all';
3
5
  import * as React from 'react';
package/esm/NavContext.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import * as React from 'react';
2
4
  const NavContext = /*#__PURE__*/React.createContext(null);
3
5
  NavContext.displayName = 'NavContext';
@@ -12,9 +12,9 @@ export interface NavDropdownProps extends Omit<DropdownProps, 'title'> {
12
12
  menuVariant?: DropdownMenuVariant;
13
13
  }
14
14
  declare const _default: BsPrefixRefForwardingComponent<"div", NavDropdownProps> & {
15
- Item: BsPrefixRefForwardingComponent<import("@restart/ui/esm/types").DynamicRefForwardingComponent<React.ForwardRefExoticComponent<import("@restart/ui/esm/Button").ButtonProps & React.RefAttributes<HTMLElement>>, import("@restart/ui/esm/DropdownItem").DropdownItemProps>, import("./DropdownItem").DropdownItemProps>;
16
- ItemText: BsPrefixRefForwardingComponent<"span", unknown>;
17
- Divider: BsPrefixRefForwardingComponent<"hr", unknown>;
18
- Header: BsPrefixRefForwardingComponent<"div", unknown>;
15
+ Item: BsPrefixRefForwardingComponent<"a", import("./DropdownItem").DropdownItemProps>;
16
+ ItemText: BsPrefixRefForwardingComponent<"span", import("./DropdownItemText").DropdownItemTextProps>;
17
+ Divider: BsPrefixRefForwardingComponent<"hr", import("./DropdownDivider").DropdownDividerProps>;
18
+ Header: BsPrefixRefForwardingComponent<"div", import("./DropdownHeader").DropdownHeaderProps>;
19
19
  };
20
20
  export default _default;
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useBootstrapPrefix } from './ThemeProvider';
package/esm/NavItem.d.ts CHANGED
@@ -1,2 +1,6 @@
1
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
2
- export default _default;
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface NavItemProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const NavItem: BsPrefixRefForwardingComponent<'div', NavItemProps>;
6
+ export default NavItem;
package/esm/NavItem.js CHANGED
@@ -1,2 +1,21 @@
1
- import createWithBsPrefix from './createWithBsPrefix';
2
- export default createWithBsPrefix('nav-item');
1
+ "use client";
2
+
3
+ import * as React from 'react';
4
+ import classNames from 'classnames';
5
+ import { useBootstrapPrefix } from './ThemeProvider';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const NavItem = /*#__PURE__*/React.forwardRef(({
8
+ className,
9
+ bsPrefix,
10
+ as: Component = 'div',
11
+ ...props
12
+ }, ref) => {
13
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
14
+ return /*#__PURE__*/_jsx(Component, {
15
+ ref: ref,
16
+ className: classNames(className, bsPrefix),
17
+ ...props
18
+ });
19
+ });
20
+ NavItem.displayName = 'NavItem';
21
+ export default NavItem;
package/esm/NavLink.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import Anchor from '@restart/ui/Anchor';
package/esm/Navbar.d.ts CHANGED
@@ -16,7 +16,7 @@ declare const _default: BsPrefixRefForwardingComponent<"nav", NavbarProps> & {
16
16
  Brand: BsPrefixRefForwardingComponent<"a", import("./NavbarBrand").NavbarBrandProps>;
17
17
  Collapse: React.ForwardRefExoticComponent<import("./NavbarCollapse").NavbarCollapseProps & React.RefAttributes<HTMLDivElement>>;
18
18
  Offcanvas: React.ForwardRefExoticComponent<Omit<import("./NavbarOffcanvas").NavbarOffcanvasProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
- Text: BsPrefixRefForwardingComponent<"span", unknown>;
19
+ Text: BsPrefixRefForwardingComponent<"span", import("./NavbarText").NavbarTextProps>;
20
20
  Toggle: BsPrefixRefForwardingComponent<"button", import("./NavbarToggle").NavbarToggleProps>;
21
21
  };
22
22
  export default _default;
package/esm/Navbar.js CHANGED
@@ -1,19 +1,18 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useCallback, useMemo } from 'react';
4
6
  import SelectableContext from '@restart/ui/SelectableContext';
5
7
  import { useUncontrolled } from 'uncontrollable';
6
- import createWithBsPrefix from './createWithBsPrefix';
7
8
  import NavbarBrand from './NavbarBrand';
8
9
  import NavbarCollapse from './NavbarCollapse';
9
10
  import NavbarToggle from './NavbarToggle';
10
11
  import NavbarOffcanvas from './NavbarOffcanvas';
11
12
  import { useBootstrapPrefix } from './ThemeProvider';
12
13
  import NavbarContext from './NavbarContext';
14
+ import NavbarText from './NavbarText';
13
15
  import { jsx as _jsx } from "react/jsx-runtime";
14
- const NavbarText = createWithBsPrefix('navbar-text', {
15
- Component: 'span'
16
- });
17
16
  const Navbar = /*#__PURE__*/React.forwardRef((props, ref) => {
18
17
  const {
19
18
  bsPrefix: initialBsPrefix,
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useBootstrapPrefix } from './ThemeProvider';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import * as React from 'react';
2
4
  import { useContext } from 'react';
3
5
  import Collapse from './Collapse';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import * as React from 'react';
2
4
 
3
5
  // TODO: check
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import * as React from 'react';
2
4
  import { useContext } from 'react';
3
5
  import Offcanvas from './Offcanvas';
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface NavbarTextProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const NavbarText: BsPrefixRefForwardingComponent<'span', NavbarTextProps>;
6
+ export default NavbarText;
@@ -0,0 +1,21 @@
1
+ "use client";
2
+
3
+ import * as React from 'react';
4
+ import classNames from 'classnames';
5
+ import { useBootstrapPrefix } from './ThemeProvider';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const NavbarText = /*#__PURE__*/React.forwardRef(({
8
+ className,
9
+ bsPrefix,
10
+ as: Component = 'span',
11
+ ...props
12
+ }, ref) => {
13
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-text');
14
+ return /*#__PURE__*/_jsx(Component, {
15
+ ref: ref,
16
+ className: classNames(className, bsPrefix),
17
+ ...props
18
+ });
19
+ });
20
+ NavbarText.displayName = 'NavbarText';
21
+ export default NavbarText;
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useContext } from 'react';
@@ -11,8 +11,8 @@ export interface OffcanvasProps extends Omit<BaseModalProps, 'role' | 'renderBac
11
11
  renderStaticNode?: boolean;
12
12
  }
13
13
  declare const _default: BsPrefixRefForwardingComponent<"div", OffcanvasProps> & {
14
- Body: BsPrefixRefForwardingComponent<"div", unknown>;
14
+ Body: BsPrefixRefForwardingComponent<"div", import("./OffcanvasBody").OffcanvasBodyProps>;
15
15
  Header: React.ForwardRefExoticComponent<import("./OffcanvasHeader").OffcanvasHeaderProps & React.RefAttributes<HTMLDivElement>>;
16
- Title: BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>, unknown>;
16
+ Title: BsPrefixRefForwardingComponent<"div", import("./OffcanvasTitle").OffcanvasTitleProps>;
17
17
  };
18
18
  export default _default;
package/esm/Offcanvas.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import useBreakpoint from '@restart/hooks/useBreakpoint';
3
5
  import useEventCallback from '@restart/hooks/useEventCallback';
@@ -1,2 +1,6 @@
1
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
2
- export default _default;
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface OffcanvasBodyProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const OffcanvasBody: BsPrefixRefForwardingComponent<'div', OffcanvasBodyProps>;
6
+ export default OffcanvasBody;
@@ -1,2 +1,21 @@
1
- import createWithBsPrefix from './createWithBsPrefix';
2
- export default createWithBsPrefix('offcanvas-body');
1
+ "use client";
2
+
3
+ import * as React from 'react';
4
+ import classNames from 'classnames';
5
+ import { useBootstrapPrefix } from './ThemeProvider';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const OffcanvasBody = /*#__PURE__*/React.forwardRef(({
8
+ className,
9
+ bsPrefix,
10
+ as: Component = 'div',
11
+ ...props
12
+ }, ref) => {
13
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas-body');
14
+ return /*#__PURE__*/_jsx(Component, {
15
+ ref: ref,
16
+ className: classNames(className, bsPrefix),
17
+ ...props
18
+ });
19
+ });
20
+ OffcanvasBody.displayName = 'OffcanvasBody';
21
+ export default OffcanvasBody;
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useBootstrapPrefix } from './ThemeProvider';
@@ -1,3 +1,6 @@
1
- /// <reference types="react" />
2
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>, unknown>;
3
- export default _default;
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface OffcanvasTitleProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const OffcanvasTitle: BsPrefixRefForwardingComponent<'div', OffcanvasTitleProps>;
6
+ export default OffcanvasTitle;
@@ -1,6 +1,23 @@
1
- import createWithBsPrefix from './createWithBsPrefix';
1
+ "use client";
2
+
3
+ import * as React from 'react';
4
+ import classNames from 'classnames';
2
5
  import divWithClassName from './divWithClassName';
6
+ import { useBootstrapPrefix } from './ThemeProvider';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
3
8
  const DivStyledAsH5 = divWithClassName('h5');
4
- export default createWithBsPrefix('offcanvas-title', {
5
- Component: DivStyledAsH5
6
- });
9
+ const OffcanvasTitle = /*#__PURE__*/React.forwardRef(({
10
+ className,
11
+ bsPrefix,
12
+ as: Component = DivStyledAsH5,
13
+ ...props
14
+ }, ref) => {
15
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas-title');
16
+ return /*#__PURE__*/_jsx(Component, {
17
+ ref: ref,
18
+ className: classNames(className, bsPrefix),
19
+ ...props
20
+ });
21
+ });
22
+ OffcanvasTitle.displayName = 'OffcanvasTitle';
23
+ export default OffcanvasTitle;
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { ENTERED, ENTERING, EXITING } from 'react-transition-group/Transition';
package/esm/Overlay.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import * as React from 'react';
2
4
  import { useEffect, useRef, useState } from 'react';
3
5
  import classNames from 'classnames';
@@ -38,10 +40,11 @@ const Overlay = /*#__PURE__*/React.forwardRef(({
38
40
  popperConfig == null ? void 0 : popperConfig.onFirstUpdate == null ? void 0 : popperConfig.onFirstUpdate(state);
39
41
  });
40
42
  useIsomorphicEffect(() => {
41
- if (firstRenderedState) {
43
+ if (firstRenderedState && outerProps.target) {
44
+ // Must wait for target element to resolve before updating popper.
42
45
  popperRef.current.scheduleUpdate == null ? void 0 : popperRef.current.scheduleUpdate();
43
46
  }
44
- }, [firstRenderedState]);
47
+ }, [firstRenderedState, outerProps.target]);
45
48
  useEffect(() => {
46
49
  if (!outerShow) {
47
50
  setFirstRenderedState(null);
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import contains from 'dom-helpers/contains';
2
4
  import * as React from 'react';
3
5
  import { cloneElement, useCallback, useRef } from 'react';
package/esm/Pagination.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useBootstrapPrefix } from './ThemeProvider';
package/esm/Popover.d.ts CHANGED
@@ -12,8 +12,8 @@ export interface PopoverProps extends React.HTMLAttributes<HTMLDivElement>, BsPr
12
12
  hasDoneInitialMeasure?: boolean;
13
13
  }
14
14
  declare const _default: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>> & {
15
- Header: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
16
- Body: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
15
+ Header: import("./helpers").BsPrefixRefForwardingComponent<"div", import("./PopoverHeader").PopoverHeaderProps>;
16
+ Body: import("./helpers").BsPrefixRefForwardingComponent<"div", import("./PopoverBody").PopoverBodyProps>;
17
17
  POPPER_OFFSET: readonly [0, 8];
18
18
  };
19
19
  export default _default;
package/esm/Popover.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useBootstrapPrefix, useIsRTL } from './ThemeProvider';
@@ -1,2 +1,6 @@
1
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
2
- export default _default;
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface PopoverBodyProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const PopoverBody: BsPrefixRefForwardingComponent<'div', PopoverBodyProps>;
6
+ export default PopoverBody;
@@ -1,2 +1,21 @@
1
- import createWithBsPrefix from './createWithBsPrefix';
2
- export default createWithBsPrefix('popover-body');
1
+ "use client";
2
+
3
+ import * as React from 'react';
4
+ import classNames from 'classnames';
5
+ import { useBootstrapPrefix } from './ThemeProvider';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const PopoverBody = /*#__PURE__*/React.forwardRef(({
8
+ className,
9
+ bsPrefix,
10
+ as: Component = 'div',
11
+ ...props
12
+ }, ref) => {
13
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
14
+ return /*#__PURE__*/_jsx(Component, {
15
+ ref: ref,
16
+ className: classNames(className, bsPrefix),
17
+ ...props
18
+ });
19
+ });
20
+ PopoverBody.displayName = 'PopoverBody';
21
+ export default PopoverBody;
@@ -1,2 +1,6 @@
1
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
2
- export default _default;
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface PopoverHeaderProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const PopoverHeader: BsPrefixRefForwardingComponent<'div', PopoverHeaderProps>;
6
+ export default PopoverHeader;
@@ -1,2 +1,21 @@
1
- import createWithBsPrefix from './createWithBsPrefix';
2
- export default createWithBsPrefix('popover-header');
1
+ "use client";
2
+
3
+ import * as React from 'react';
4
+ import classNames from 'classnames';
5
+ import { useBootstrapPrefix } from './ThemeProvider';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const PopoverHeader = /*#__PURE__*/React.forwardRef(({
8
+ className,
9
+ bsPrefix,
10
+ as: Component = 'div',
11
+ ...props
12
+ }, ref) => {
13
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
14
+ return /*#__PURE__*/_jsx(Component, {
15
+ ref: ref,
16
+ className: classNames(className, bsPrefix),
17
+ ...props
18
+ });
19
+ });
20
+ PopoverHeader.displayName = 'PopoverHeader';
21
+ export default PopoverHeader;
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { cloneElement } from 'react';
package/esm/Ratio.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useBootstrapPrefix } from './ThemeProvider';
package/esm/Row.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useBootstrapPrefix, useBootstrapBreakpoints, useBootstrapMinBreakpoint } from './ThemeProvider';
package/esm/Spinner.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useBootstrapPrefix } from './ThemeProvider';
package/esm/Stack.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useBootstrapPrefix, useBootstrapBreakpoints, useBootstrapMinBreakpoint } from './ThemeProvider';
package/esm/Tab.d.ts CHANGED
@@ -21,7 +21,7 @@ declare const _default: React.FC<TabProps> & {
21
21
  };
22
22
  displayName: string;
23
23
  };
24
- Content: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
24
+ Content: import("./helpers").BsPrefixRefForwardingComponent<"div", import("./TabContent").TabContentProps>;
25
25
  Pane: import("./helpers").BsPrefixRefForwardingComponent<"div", TabPaneProps>;
26
26
  };
27
27
  export default _default;
package/esm/Tab.js CHANGED
@@ -1,10 +1,7 @@
1
1
  import PropTypes from 'prop-types';
2
- import * as React from 'react';
3
2
  import TabContainer from './TabContainer';
4
3
  import TabContent from './TabContent';
5
4
  import TabPane from './TabPane';
6
- import { Fragment as _Fragment } from "react/jsx-runtime";
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
5
  /* eslint-disable react/no-unused-prop-types */
9
6
  const propTypes = {
10
7
  eventKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
@@ -27,8 +24,6 @@ const propTypes = {
27
24
  };
28
25
  const Tab = () => {
29
26
  throw new Error('ReactBootstrap: The `Tab` component is not meant to be rendered! ' + "It's an abstract component that is only valid as a direct Child of the `Tabs` Component. " + 'For custom tabs components use TabPane and TabsContainer directly');
30
- // Needed otherwise docs error out.
31
- return /*#__PURE__*/_jsx(_Fragment, {});
32
27
  };
33
28
  Tab.propTypes = propTypes;
34
29
  export default Object.assign(Tab, {
@@ -1,2 +1,6 @@
1
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
2
- export default _default;
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface TabContentProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const TabContent: BsPrefixRefForwardingComponent<'div', TabContentProps>;
6
+ export default TabContent;
package/esm/TabContent.js CHANGED
@@ -1,2 +1,21 @@
1
- import createWithBsPrefix from './createWithBsPrefix';
2
- export default createWithBsPrefix('tab-content');
1
+ "use client";
2
+
3
+ import * as React from 'react';
4
+ import classNames from 'classnames';
5
+ import { useBootstrapPrefix } from './ThemeProvider';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const TabContent = /*#__PURE__*/React.forwardRef(({
8
+ className,
9
+ bsPrefix,
10
+ as: Component = 'div',
11
+ ...props
12
+ }, ref) => {
13
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
14
+ return /*#__PURE__*/_jsx(Component, {
15
+ ref: ref,
16
+ className: classNames(className, bsPrefix),
17
+ ...props
18
+ });
19
+ });
20
+ TabContent.displayName = 'TabContent';
21
+ export default TabContent;
package/esm/TabPane.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import SelectableContext from '@restart/ui/SelectableContext';
package/esm/Table.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useBootstrapPrefix } from './ThemeProvider';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import * as React from 'react';
2
4
  import { useContext, useMemo } from 'react';
3
5
  import { jsx as _jsx } from "react/jsx-runtime";
package/esm/Toast.d.ts CHANGED
@@ -12,7 +12,7 @@ export interface ToastProps extends BsPrefixProps, React.HTMLAttributes<HTMLElem
12
12
  bg?: Variant;
13
13
  }
14
14
  declare const _default: BsPrefixRefForwardingComponent<"div", ToastProps> & {
15
- Body: BsPrefixRefForwardingComponent<"div", unknown>;
15
+ Body: BsPrefixRefForwardingComponent<"div", import("./ToastBody").ToastBodyProps>;
16
16
  Header: React.ForwardRefExoticComponent<import("./ToastHeader").ToastHeaderProps & React.RefAttributes<HTMLDivElement>>;
17
17
  };
18
18
  export default _default;
package/esm/Toast.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import * as React from 'react';
2
4
  import { useEffect, useMemo, useRef, useCallback } from 'react';
3
5
  import classNames from 'classnames';
@@ -1,2 +1,6 @@
1
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
2
- export default _default;
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface ToastBodyProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const ToastBody: BsPrefixRefForwardingComponent<'div', ToastBodyProps>;
6
+ export default ToastBody;
package/esm/ToastBody.js CHANGED
@@ -1,2 +1,21 @@
1
- import createWithBsPrefix from './createWithBsPrefix';
2
- export default createWithBsPrefix('toast-body');
1
+ "use client";
2
+
3
+ import * as React from 'react';
4
+ import classNames from 'classnames';
5
+ import { useBootstrapPrefix } from './ThemeProvider';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const ToastBody = /*#__PURE__*/React.forwardRef(({
8
+ className,
9
+ bsPrefix,
10
+ as: Component = 'div',
11
+ ...props
12
+ }, ref) => {
13
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-body');
14
+ return /*#__PURE__*/_jsx(Component, {
15
+ ref: ref,
16
+ className: classNames(className, bsPrefix),
17
+ ...props
18
+ });
19
+ });
20
+ ToastBody.displayName = 'ToastBody';
21
+ export default ToastBody;
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useBootstrapPrefix } from './ThemeProvider';