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
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import * as React from 'react';
2
4
  import { useContext } from 'react';
3
5
  import useEventCallback from '@restart/hooks/useEventCallback';
package/esm/Accordion.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 { useMemo } from 'react';
@@ -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';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import * as React from 'react';
2
4
  import { useContext } from 'react';
3
5
  import classNames from 'classnames';
@@ -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';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import * as React from 'react';
2
4
  export function isAccordionItemSelected(activeEventKey, eventKey) {
3
5
  return Array.isArray(activeEventKey) ? activeEventKey.includes(eventKey) : activeEventKey === eventKey;
@@ -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 classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useMemo } from 'react';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import * as React from 'react';
2
4
  const context = /*#__PURE__*/React.createContext({
3
5
  eventKey: ''
package/esm/Alert.d.ts CHANGED
@@ -13,7 +13,7 @@ export interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
13
13
  transition?: TransitionType;
14
14
  }
15
15
  declare const _default: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>> & {
16
- Link: import("./helpers").BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<import("@restart/ui/Anchor").AnchorProps & React.RefAttributes<HTMLAnchorElement>>, unknown>;
17
- Heading: import("./helpers").BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>, unknown>;
16
+ Link: import("./helpers").BsPrefixRefForwardingComponent<"a", import("./AlertLink").AlertLinkProps>;
17
+ Heading: import("./helpers").BsPrefixRefForwardingComponent<"div", import("./AlertHeading").AlertHeadingProps>;
18
18
  };
19
19
  export default _default;
package/esm/Alert.js CHANGED
@@ -1,23 +1,16 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useUncontrolled } from 'uncontrollable';
4
6
  import useEventCallback from '@restart/hooks/useEventCallback';
5
- import Anchor from '@restart/ui/Anchor';
6
7
  import { useBootstrapPrefix } from './ThemeProvider';
8
+ import AlertHeading from './AlertHeading';
9
+ import AlertLink from './AlertLink';
7
10
  import Fade from './Fade';
8
11
  import CloseButton from './CloseButton';
9
- import divWithClassName from './divWithClassName';
10
- import createWithBsPrefix from './createWithBsPrefix';
11
12
  import { jsx as _jsx } from "react/jsx-runtime";
12
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
13
- const DivStyledAsH4 = divWithClassName('h4');
14
- DivStyledAsH4.displayName = 'DivStyledAsH4';
15
- const AlertHeading = createWithBsPrefix('alert-heading', {
16
- Component: DivStyledAsH4
17
- });
18
- const AlertLink = createWithBsPrefix('alert-link', {
19
- Component: Anchor
20
- });
21
14
  const Alert = /*#__PURE__*/React.forwardRef((uncontrolledProps, ref) => {
22
15
  const {
23
16
  bsPrefix,
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface AlertHeadingProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const AlertHeading: BsPrefixRefForwardingComponent<'div', AlertHeadingProps>;
6
+ export default AlertHeading;
@@ -0,0 +1,24 @@
1
+ "use client";
2
+
3
+ import * as React from 'react';
4
+ import classNames from 'classnames';
5
+ import { useBootstrapPrefix } from './ThemeProvider';
6
+ import divWithClassName from './divWithClassName';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ const DivStyledAsH4 = divWithClassName('h4');
9
+ DivStyledAsH4.displayName = 'DivStyledAsH4';
10
+ const AlertHeading = /*#__PURE__*/React.forwardRef(({
11
+ className,
12
+ bsPrefix,
13
+ as: Component = DivStyledAsH4,
14
+ ...props
15
+ }, ref) => {
16
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'alert-heading');
17
+ return /*#__PURE__*/_jsx(Component, {
18
+ ref: ref,
19
+ className: classNames(className, bsPrefix),
20
+ ...props
21
+ });
22
+ });
23
+ AlertHeading.displayName = 'AlertHeading';
24
+ export default AlertHeading;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface AlertLinkProps extends BsPrefixProps, React.AnchorHTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const AlertLink: BsPrefixRefForwardingComponent<'a', AlertLinkProps>;
6
+ export default AlertLink;
@@ -0,0 +1,22 @@
1
+ "use client";
2
+
3
+ import * as React from 'react';
4
+ import classNames from 'classnames';
5
+ import Anchor from '@restart/ui/Anchor';
6
+ import { useBootstrapPrefix } from './ThemeProvider';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ const AlertLink = /*#__PURE__*/React.forwardRef(({
9
+ className,
10
+ bsPrefix,
11
+ as: Component = Anchor,
12
+ ...props
13
+ }, ref) => {
14
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'alert-link');
15
+ return /*#__PURE__*/_jsx(Component, {
16
+ ref: ref,
17
+ className: classNames(className, bsPrefix),
18
+ ...props
19
+ });
20
+ });
21
+ AlertLink.displayName = 'AlertLink';
22
+ export default AlertLink;
package/esm/Badge.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/Breadcrumb.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 classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import Anchor from '@restart/ui/Anchor';
package/esm/Button.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 { useButtonProps } from '@restart/ui/Button';
@@ -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 classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useBootstrapPrefix } from './ThemeProvider';
package/esm/Card.d.ts CHANGED
@@ -9,13 +9,13 @@ export interface CardProps extends BsPrefixProps, React.HTMLAttributes<HTMLEleme
9
9
  }
10
10
  declare const _default: BsPrefixRefForwardingComponent<"div", CardProps> & {
11
11
  Img: BsPrefixRefForwardingComponent<"img", import("./CardImg").CardImgProps>;
12
- Title: BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>, unknown>;
13
- Subtitle: BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>, unknown>;
14
- Body: BsPrefixRefForwardingComponent<"div", unknown>;
15
- Link: BsPrefixRefForwardingComponent<"a", unknown>;
16
- Text: BsPrefixRefForwardingComponent<"p", unknown>;
12
+ Title: BsPrefixRefForwardingComponent<"div", import("./CardTitle").CardTitleProps>;
13
+ Subtitle: BsPrefixRefForwardingComponent<"div", import("./CardSubtitle").CardSubtitleProps>;
14
+ Body: BsPrefixRefForwardingComponent<"div", import("./CardBody").CardBodyProps>;
15
+ Link: BsPrefixRefForwardingComponent<"a", import("./CardLink").CardLinkProps>;
16
+ Text: BsPrefixRefForwardingComponent<"p", import("./CardText").CardTextProps>;
17
17
  Header: BsPrefixRefForwardingComponent<"div", import("./CardHeader").CardHeaderProps>;
18
- Footer: BsPrefixRefForwardingComponent<"div", unknown>;
19
- ImgOverlay: BsPrefixRefForwardingComponent<"div", unknown>;
18
+ Footer: BsPrefixRefForwardingComponent<"div", import("./CardFooter").CardFooterProps>;
19
+ ImgOverlay: BsPrefixRefForwardingComponent<"div", import("./CardImgOverlay").CardImgOverlayProps>;
20
20
  };
21
21
  export default _default;
package/esm/Card.js CHANGED
@@ -1,28 +1,18 @@
1
+ "use client";
2
+
1
3
  import classNames from 'classnames';
2
4
  import * as React from 'react';
3
5
  import { useBootstrapPrefix } from './ThemeProvider';
4
- import createWithBsPrefix from './createWithBsPrefix';
5
- import divWithClassName from './divWithClassName';
6
- import CardImg from './CardImg';
6
+ import CardBody from './CardBody';
7
+ import CardFooter from './CardFooter';
7
8
  import CardHeader from './CardHeader';
9
+ import CardImg from './CardImg';
10
+ import CardImgOverlay from './CardImgOverlay';
11
+ import CardLink from './CardLink';
12
+ import CardSubtitle from './CardSubtitle';
13
+ import CardText from './CardText';
14
+ import CardTitle from './CardTitle';
8
15
  import { jsx as _jsx } from "react/jsx-runtime";
9
- const DivStyledAsH5 = divWithClassName('h5');
10
- const DivStyledAsH6 = divWithClassName('h6');
11
- const CardBody = createWithBsPrefix('card-body');
12
- const CardTitle = createWithBsPrefix('card-title', {
13
- Component: DivStyledAsH5
14
- });
15
- const CardSubtitle = createWithBsPrefix('card-subtitle', {
16
- Component: DivStyledAsH6
17
- });
18
- const CardLink = createWithBsPrefix('card-link', {
19
- Component: 'a'
20
- });
21
- const CardText = createWithBsPrefix('card-text', {
22
- Component: 'p'
23
- });
24
- const CardFooter = createWithBsPrefix('card-footer');
25
- const CardImgOverlay = createWithBsPrefix('card-img-overlay');
26
16
  const Card = /*#__PURE__*/React.forwardRef(({
27
17
  bsPrefix,
28
18
  className,
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface CardBodyProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const CardBody: BsPrefixRefForwardingComponent<'div', CardBodyProps>;
6
+ export default CardBody;
@@ -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 CardBody = /*#__PURE__*/React.forwardRef(({
8
+ className,
9
+ bsPrefix,
10
+ as: Component = 'div',
11
+ ...props
12
+ }, ref) => {
13
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'card-body');
14
+ return /*#__PURE__*/_jsx(Component, {
15
+ ref: ref,
16
+ className: classNames(className, bsPrefix),
17
+ ...props
18
+ });
19
+ });
20
+ CardBody.displayName = 'CardBody';
21
+ export default CardBody;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface CardFooterProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const CardFooter: BsPrefixRefForwardingComponent<'div', CardFooterProps>;
6
+ export default CardFooter;
@@ -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 CardFooter = /*#__PURE__*/React.forwardRef(({
8
+ className,
9
+ bsPrefix,
10
+ as: Component = 'div',
11
+ ...props
12
+ }, ref) => {
13
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'card-footer');
14
+ return /*#__PURE__*/_jsx(Component, {
15
+ ref: ref,
16
+ className: classNames(className, bsPrefix),
17
+ ...props
18
+ });
19
+ });
20
+ CardFooter.displayName = 'CardFooter';
21
+ export default CardFooter;
@@ -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 CardGroupProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const CardGroup: BsPrefixRefForwardingComponent<'div', CardGroupProps>;
6
+ export default CardGroup;
package/esm/CardGroup.js CHANGED
@@ -1,2 +1,21 @@
1
- import createWithBsPrefix from './createWithBsPrefix';
2
- export default createWithBsPrefix('card-group');
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 CardGroup = /*#__PURE__*/React.forwardRef(({
8
+ className,
9
+ bsPrefix,
10
+ as: Component = 'div',
11
+ ...props
12
+ }, ref) => {
13
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'card-group');
14
+ return /*#__PURE__*/_jsx(Component, {
15
+ ref: ref,
16
+ className: classNames(className, bsPrefix),
17
+ ...props
18
+ });
19
+ });
20
+ CardGroup.displayName = 'CardGroup';
21
+ export default CardGroup;
package/esm/CardHeader.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 { useMemo } from 'react';
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import * as React from 'react';
2
4
  const context = /*#__PURE__*/React.createContext(null);
3
5
  context.displayName = 'CardHeaderContext';
package/esm/CardImg.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';
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface CardImgOverlayProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const CardImgOverlay: BsPrefixRefForwardingComponent<'div', CardImgOverlayProps>;
6
+ export default CardImgOverlay;
@@ -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 CardImgOverlay = /*#__PURE__*/React.forwardRef(({
8
+ className,
9
+ bsPrefix,
10
+ as: Component = 'div',
11
+ ...props
12
+ }, ref) => {
13
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'card-img-overlay');
14
+ return /*#__PURE__*/_jsx(Component, {
15
+ ref: ref,
16
+ className: classNames(className, bsPrefix),
17
+ ...props
18
+ });
19
+ });
20
+ CardImgOverlay.displayName = 'CardImgOverlay';
21
+ export default CardImgOverlay;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface CardLinkProps extends BsPrefixProps, React.AnchorHTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const CardLink: BsPrefixRefForwardingComponent<'a', CardLinkProps>;
6
+ export default CardLink;
@@ -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 CardLink = /*#__PURE__*/React.forwardRef(({
8
+ className,
9
+ bsPrefix,
10
+ as: Component = 'a',
11
+ ...props
12
+ }, ref) => {
13
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'card-link');
14
+ return /*#__PURE__*/_jsx(Component, {
15
+ ref: ref,
16
+ className: classNames(className, bsPrefix),
17
+ ...props
18
+ });
19
+ });
20
+ CardLink.displayName = 'CardLink';
21
+ export default CardLink;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface CardSubtitleProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const CardSubtitle: BsPrefixRefForwardingComponent<'div', CardSubtitleProps>;
6
+ export default CardSubtitle;
@@ -0,0 +1,23 @@
1
+ "use client";
2
+
3
+ import * as React from 'react';
4
+ import classNames from 'classnames';
5
+ import { useBootstrapPrefix } from './ThemeProvider';
6
+ import divWithClassName from './divWithClassName';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ const DivStyledAsH6 = divWithClassName('h6');
9
+ const CardSubtitle = /*#__PURE__*/React.forwardRef(({
10
+ className,
11
+ bsPrefix,
12
+ as: Component = DivStyledAsH6,
13
+ ...props
14
+ }, ref) => {
15
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'card-subtitle');
16
+ return /*#__PURE__*/_jsx(Component, {
17
+ ref: ref,
18
+ className: classNames(className, bsPrefix),
19
+ ...props
20
+ });
21
+ });
22
+ CardSubtitle.displayName = 'CardSubtitle';
23
+ export default CardSubtitle;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface CardTextProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const CardText: BsPrefixRefForwardingComponent<'p', CardTextProps>;
6
+ export default CardText;
@@ -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 CardText = /*#__PURE__*/React.forwardRef(({
8
+ className,
9
+ bsPrefix,
10
+ as: Component = 'p',
11
+ ...props
12
+ }, ref) => {
13
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'card-text');
14
+ return /*#__PURE__*/_jsx(Component, {
15
+ ref: ref,
16
+ className: classNames(className, bsPrefix),
17
+ ...props
18
+ });
19
+ });
20
+ CardText.displayName = 'CardText';
21
+ export default CardText;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface CardTitleProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const CardTitle: BsPrefixRefForwardingComponent<'div', CardTitleProps>;
6
+ export default CardTitle;
@@ -0,0 +1,23 @@
1
+ "use client";
2
+
3
+ import * as React from 'react';
4
+ import classNames from 'classnames';
5
+ import { useBootstrapPrefix } from './ThemeProvider';
6
+ import divWithClassName from './divWithClassName';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ const DivStyledAsH5 = divWithClassName('h5');
9
+ const CardTitle = /*#__PURE__*/React.forwardRef(({
10
+ className,
11
+ bsPrefix,
12
+ as: Component = DivStyledAsH5,
13
+ ...props
14
+ }, ref) => {
15
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'card-title');
16
+ return /*#__PURE__*/_jsx(Component, {
17
+ ref: ref,
18
+ className: classNames(className, bsPrefix),
19
+ ...props
20
+ });
21
+ });
22
+ CardTitle.displayName = 'CardTitle';
23
+ export default CardTitle;
package/esm/Carousel.d.ts CHANGED
@@ -30,7 +30,7 @@ export interface CarouselProps extends BsPrefixProps, Omit<React.HTMLAttributes<
30
30
  variant?: CarouselVariant;
31
31
  }
32
32
  declare const _default: BsPrefixRefForwardingComponent<"div", CarouselProps> & {
33
- Caption: BsPrefixRefForwardingComponent<"div", unknown>;
33
+ Caption: BsPrefixRefForwardingComponent<"div", import("./CarouselCaption").CarouselCaptionProps>;
34
34
  Item: BsPrefixRefForwardingComponent<"div", import("./CarouselItem").CarouselItemProps>;
35
35
  };
36
36
  export default _default;
package/esm/Carousel.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import useEventCallback from '@restart/hooks/useEventCallback';
2
4
  import useUpdateEffect from '@restart/hooks/useUpdateEffect';
3
5
  import useCommittedRef from '@restart/hooks/useCommittedRef';
@@ -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 CarouselCaptionProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
+ }
5
+ declare const CarouselCaption: BsPrefixRefForwardingComponent<'div', CarouselCaptionProps>;
6
+ export default CarouselCaption;
@@ -1,2 +1,21 @@
1
- import createWithBsPrefix from './createWithBsPrefix';
2
- export default createWithBsPrefix('carousel-caption');
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 CarouselCaption = /*#__PURE__*/React.forwardRef(({
8
+ className,
9
+ bsPrefix,
10
+ as: Component = 'div',
11
+ ...props
12
+ }, ref) => {
13
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'carousel-caption');
14
+ return /*#__PURE__*/_jsx(Component, {
15
+ ref: ref,
16
+ className: classNames(className, bsPrefix),
17
+ ...props
18
+ });
19
+ });
20
+ CarouselCaption.displayName = 'CarouselCaption';
21
+ export default CarouselCaption;
@@ -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/Col.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/Container.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/Dropdown.d.ts CHANGED
@@ -13,9 +13,9 @@ export interface DropdownProps extends BaseDropdownProps, BsPrefixProps, Omit<Re
13
13
  declare const _default: BsPrefixRefForwardingComponent<"div", DropdownProps> & {
14
14
  Toggle: BsPrefixRefForwardingComponent<"button", import("./DropdownToggle").DropdownToggleProps>;
15
15
  Menu: BsPrefixRefForwardingComponent<"div", import("./DropdownMenu").DropdownMenuProps>;
16
- Item: BsPrefixRefForwardingComponent<import("@restart/ui/esm/types").DynamicRefForwardingComponent<React.ForwardRefExoticComponent<import("@restart/ui/esm/Button").ButtonProps & React.RefAttributes<HTMLElement>>, import("@restart/ui/Dropdown").DropdownItemProps>, import("./DropdownItem").DropdownItemProps>;
17
- ItemText: BsPrefixRefForwardingComponent<"span", unknown>;
18
- Divider: BsPrefixRefForwardingComponent<"hr", unknown>;
19
- Header: BsPrefixRefForwardingComponent<"div", unknown>;
16
+ Item: BsPrefixRefForwardingComponent<"a", import("./DropdownItem").DropdownItemProps>;
17
+ ItemText: BsPrefixRefForwardingComponent<"span", import("./DropdownItemText").DropdownItemTextProps>;
18
+ Divider: BsPrefixRefForwardingComponent<"hr", import("./DropdownDivider").DropdownDividerProps>;
19
+ Header: BsPrefixRefForwardingComponent<"div", import("./DropdownHeader").DropdownHeaderProps>;
20
20
  };
21
21
  export default _default;