react-bootstrap 2.5.0 → 2.7.0

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 (330) hide show
  1. package/cjs/AbstractModalHeader.js +0 -9
  2. package/cjs/AbstractNav.d.ts +15 -0
  3. package/cjs/AbstractNavItem.d.ts +19 -0
  4. package/cjs/Accordion.js +0 -17
  5. package/cjs/AccordionBody.d.ts +2 -1
  6. package/cjs/AccordionBody.js +12 -10
  7. package/cjs/AccordionButton.d.ts +1 -1
  8. package/cjs/AccordionButton.js +0 -15
  9. package/cjs/AccordionCollapse.js +0 -10
  10. package/cjs/AccordionContext.d.ts +1 -1
  11. package/cjs/AccordionContext.js +0 -5
  12. package/cjs/AccordionHeader.js +0 -9
  13. package/cjs/AccordionItem.js +0 -9
  14. package/cjs/AccordionItemContext.js +0 -4
  15. package/cjs/AccordionToggle.d.ts +11 -0
  16. package/cjs/Alert.js +0 -17
  17. package/cjs/Anchor.js +0 -3
  18. package/cjs/Badge.js +0 -8
  19. package/cjs/BootstrapModalManager.js +2 -18
  20. package/cjs/Breadcrumb.js +2 -12
  21. package/cjs/BreadcrumbItem.js +2 -10
  22. package/cjs/Button.d.ts +1 -1
  23. package/cjs/Button.js +2 -10
  24. package/cjs/ButtonGroup.js +2 -9
  25. package/cjs/ButtonToolbar.js +2 -9
  26. package/cjs/Card.js +0 -14
  27. package/cjs/CardColumns.d.ts +2 -0
  28. package/cjs/CardContext.d.ts +6 -0
  29. package/cjs/CardDeck.d.ts +2 -0
  30. package/cjs/CardGroup.js +0 -4
  31. package/cjs/CardHeader.js +0 -9
  32. package/cjs/CardHeaderContext.js +0 -4
  33. package/cjs/CardImg.js +2 -9
  34. package/cjs/Carousel.d.ts +1 -1
  35. package/cjs/Carousel.js +9 -58
  36. package/cjs/CarouselCaption.js +0 -4
  37. package/cjs/CarouselItem.js +0 -8
  38. package/cjs/CloseButton.d.ts +1 -1
  39. package/cjs/CloseButton.js +2 -9
  40. package/cjs/Col.d.ts +5 -5
  41. package/cjs/Col.js +6 -14
  42. package/cjs/Collapse.d.ts +1 -1
  43. package/cjs/Collapse.js +10 -22
  44. package/cjs/Container.js +0 -8
  45. package/cjs/Dropdown.js +17 -27
  46. package/cjs/DropdownButton.js +1 -25
  47. package/cjs/DropdownContext.d.ts +2 -2
  48. package/cjs/DropdownContext.js +0 -4
  49. package/cjs/DropdownItem.js +2 -11
  50. package/cjs/DropdownMenu.d.ts +2 -2
  51. package/cjs/DropdownMenu.js +12 -34
  52. package/cjs/DropdownToggle.d.ts +2 -2
  53. package/cjs/DropdownToggle.js +7 -24
  54. package/cjs/ElementChildren.js +2 -8
  55. package/cjs/Fade.js +2 -12
  56. package/cjs/Feedback.d.ts +1 -1
  57. package/cjs/Feedback.js +4 -11
  58. package/cjs/Figure.js +0 -7
  59. package/cjs/FigureCaption.js +0 -3
  60. package/cjs/FigureImage.js +0 -8
  61. package/cjs/FloatingLabel.js +0 -9
  62. package/cjs/Form.d.ts +5 -5
  63. package/cjs/Form.js +2 -22
  64. package/cjs/FormCheck.d.ts +1 -1
  65. package/cjs/FormCheck.js +2 -16
  66. package/cjs/FormCheckInput.d.ts +1 -1
  67. package/cjs/FormCheckInput.js +2 -10
  68. package/cjs/FormCheckLabel.js +2 -10
  69. package/cjs/FormContext.js +0 -4
  70. package/cjs/FormControl.d.ts +1 -1
  71. package/cjs/FormControl.js +2 -16
  72. package/cjs/FormFile.d.ts +23 -0
  73. package/cjs/FormFileInput.d.ts +10 -0
  74. package/cjs/FormFileLabel.d.ts +7 -0
  75. package/cjs/FormFloating.js +0 -4
  76. package/cjs/FormGroup.js +2 -8
  77. package/cjs/FormLabel.d.ts +1 -1
  78. package/cjs/FormLabel.js +0 -11
  79. package/cjs/FormRange.js +2 -10
  80. package/cjs/FormSelect.js +2 -10
  81. package/cjs/FormText.js +4 -10
  82. package/cjs/Image.js +0 -13
  83. package/cjs/InputGroup.js +3 -18
  84. package/cjs/InputGroupContext.js +0 -4
  85. package/cjs/Jumbotron.d.ts +7 -0
  86. package/cjs/ListGroup.js +0 -16
  87. package/cjs/ListGroupItem.js +4 -15
  88. package/cjs/Media.d.ts +8 -0
  89. package/cjs/Modal.js +32 -73
  90. package/cjs/ModalBody.js +0 -4
  91. package/cjs/ModalContext.js +0 -5
  92. package/cjs/ModalDialog.js +2 -9
  93. package/cjs/ModalFooter.js +0 -4
  94. package/cjs/ModalHeader.js +0 -9
  95. package/cjs/ModalTitle.js +0 -6
  96. package/cjs/Nav.js +0 -19
  97. package/cjs/NavContext.js +0 -4
  98. package/cjs/NavDropdown.js +0 -12
  99. package/cjs/NavItem.js +0 -4
  100. package/cjs/NavLink.js +2 -12
  101. package/cjs/Navbar.js +3 -22
  102. package/cjs/NavbarBrand.js +2 -9
  103. package/cjs/NavbarCollapse.js +0 -9
  104. package/cjs/NavbarContext.js +0 -4
  105. package/cjs/NavbarOffcanvas.d.ts +1 -1
  106. package/cjs/NavbarOffcanvas.js +0 -8
  107. package/cjs/NavbarToggle.js +2 -13
  108. package/cjs/Offcanvas.d.ts +1 -1
  109. package/cjs/Offcanvas.js +9 -37
  110. package/cjs/OffcanvasBody.js +0 -4
  111. package/cjs/OffcanvasHeader.js +0 -9
  112. package/cjs/OffcanvasTitle.js +0 -6
  113. package/cjs/OffcanvasToggling.js +2 -12
  114. package/cjs/Overlay.d.ts +1 -1
  115. package/cjs/Overlay.js +12 -27
  116. package/cjs/OverlayTrigger.d.ts +9 -9
  117. package/cjs/OverlayTrigger.js +7 -32
  118. package/cjs/PageItem.js +3 -12
  119. package/cjs/Pagination.js +0 -11
  120. package/cjs/Placeholder.js +2 -11
  121. package/cjs/PlaceholderButton.js +2 -9
  122. package/cjs/Popover.js +0 -13
  123. package/cjs/PopoverBody.js +0 -4
  124. package/cjs/PopoverContent.d.ts +5 -0
  125. package/cjs/PopoverHeader.js +0 -4
  126. package/cjs/PopoverTitle.d.ts +5 -0
  127. package/cjs/ProgressBar.js +2 -20
  128. package/cjs/Ratio.d.ts +1 -1
  129. package/cjs/Ratio.js +3 -12
  130. package/cjs/ResponsiveEmbed.d.ts +9 -0
  131. package/cjs/Row.d.ts +2 -2
  132. package/cjs/Row.js +0 -10
  133. package/cjs/SSRProvider.js +0 -2
  134. package/cjs/SafeAnchor.d.ts +17 -0
  135. package/cjs/SelectableContext.d.ts +5 -0
  136. package/cjs/Spinner.d.ts +1 -1
  137. package/cjs/Spinner.js +1 -9
  138. package/cjs/SplitButton.js +1 -27
  139. package/cjs/Stack.d.ts +1 -1
  140. package/cjs/Stack.js +2 -10
  141. package/cjs/Switch.d.ts +1 -1
  142. package/cjs/Switch.js +2 -10
  143. package/cjs/Tab.d.ts +2 -2
  144. package/cjs/Tab.js +2 -20
  145. package/cjs/TabContainer.d.ts +2 -2
  146. package/cjs/TabContainer.js +2 -10
  147. package/cjs/TabContent.js +0 -4
  148. package/cjs/TabContext.d.ts +12 -0
  149. package/cjs/TabPane.js +7 -17
  150. package/cjs/Table.js +2 -13
  151. package/cjs/Tabs.d.ts +3 -3
  152. package/cjs/Tabs.js +6 -24
  153. package/cjs/ThemeProvider.js +8 -17
  154. package/cjs/Toast.js +5 -18
  155. package/cjs/ToastBody.js +0 -4
  156. package/cjs/ToastContainer.d.ts +1 -1
  157. package/cjs/ToastContainer.js +0 -8
  158. package/cjs/ToastContext.js +0 -5
  159. package/cjs/ToastFade.js +2 -9
  160. package/cjs/ToastHeader.js +0 -11
  161. package/cjs/ToggleButton.d.ts +1 -1
  162. package/cjs/ToggleButton.js +2 -11
  163. package/cjs/ToggleButtonGroup.d.ts +2 -2
  164. package/cjs/ToggleButtonGroup.js +2 -23
  165. package/cjs/Tooltip.js +0 -9
  166. package/cjs/TransitionWrapper.d.ts +1 -1
  167. package/cjs/TransitionWrapper.js +3 -15
  168. package/cjs/createChainedFunction.js +2 -5
  169. package/cjs/createUtilityClasses.d.ts +1 -1
  170. package/cjs/createUtilityClasses.js +0 -6
  171. package/cjs/createWithBsPrefix.js +0 -11
  172. package/cjs/divWithClassName.js +2 -9
  173. package/cjs/getTabTransitionComponent.js +0 -6
  174. package/cjs/helpers.d.ts +4 -4
  175. package/cjs/helpers.js +2 -9
  176. package/cjs/index.js +0 -171
  177. package/cjs/safeFindDOMNode.d.ts +1 -1
  178. package/cjs/safeFindDOMNode.js +0 -5
  179. package/cjs/transitionEndListener.js +0 -6
  180. package/cjs/triggerBrowserReflow.js +0 -2
  181. package/cjs/types.d.ts +10 -10
  182. package/cjs/types.js +0 -5
  183. package/cjs/useOverlayOffset.js +0 -8
  184. package/cjs/usePlaceholder.d.ts +2 -2
  185. package/cjs/usePlaceholder.js +2 -7
  186. package/cjs/usePopperMarginModifiers.d.ts +4 -0
  187. package/cjs/useWrappedRefWithWarning.js +4 -9
  188. package/dist/react-bootstrap.js +750 -2195
  189. package/dist/react-bootstrap.min.js +1 -1
  190. package/esm/AbstractNav.d.ts +15 -0
  191. package/esm/AbstractNavItem.d.ts +19 -0
  192. package/esm/AccordionBody.d.ts +2 -1
  193. package/esm/AccordionBody.js +12 -0
  194. package/esm/AccordionButton.d.ts +1 -1
  195. package/esm/AccordionButton.js +0 -4
  196. package/esm/AccordionCollapse.js +0 -1
  197. package/esm/AccordionContext.d.ts +1 -1
  198. package/esm/AccordionToggle.d.ts +11 -0
  199. package/esm/Alert.js +0 -2
  200. package/esm/BootstrapModalManager.js +2 -9
  201. package/esm/Breadcrumb.js +2 -1
  202. package/esm/BreadcrumbItem.js +2 -1
  203. package/esm/Button.d.ts +1 -1
  204. package/esm/Button.js +2 -1
  205. package/esm/ButtonGroup.js +2 -1
  206. package/esm/ButtonToolbar.js +2 -1
  207. package/esm/CardColumns.d.ts +2 -0
  208. package/esm/CardContext.d.ts +6 -0
  209. package/esm/CardDeck.d.ts +2 -0
  210. package/esm/CardImg.js +2 -1
  211. package/esm/Carousel.d.ts +1 -1
  212. package/esm/Carousel.js +9 -36
  213. package/esm/CloseButton.d.ts +1 -1
  214. package/esm/CloseButton.js +2 -1
  215. package/esm/Col.d.ts +5 -5
  216. package/esm/Col.js +6 -5
  217. package/esm/Collapse.d.ts +1 -1
  218. package/esm/Collapse.js +11 -8
  219. package/esm/Dropdown.js +17 -7
  220. package/esm/DropdownButton.js +1 -14
  221. package/esm/DropdownContext.d.ts +2 -2
  222. package/esm/DropdownItem.js +2 -1
  223. package/esm/DropdownMenu.d.ts +2 -2
  224. package/esm/DropdownMenu.js +12 -15
  225. package/esm/DropdownToggle.d.ts +2 -2
  226. package/esm/DropdownToggle.js +7 -10
  227. package/esm/ElementChildren.js +3 -6
  228. package/esm/Fade.js +2 -1
  229. package/esm/Feedback.d.ts +1 -1
  230. package/esm/Feedback.js +4 -3
  231. package/esm/Form.d.ts +5 -5
  232. package/esm/Form.js +2 -2
  233. package/esm/FormCheck.d.ts +1 -1
  234. package/esm/FormCheck.js +2 -3
  235. package/esm/FormCheckInput.d.ts +1 -1
  236. package/esm/FormCheckInput.js +2 -1
  237. package/esm/FormCheckLabel.js +2 -1
  238. package/esm/FormContext.js +3 -1
  239. package/esm/FormControl.d.ts +1 -1
  240. package/esm/FormControl.js +2 -3
  241. package/esm/FormFile.d.ts +23 -0
  242. package/esm/FormFileInput.d.ts +10 -0
  243. package/esm/FormFileLabel.d.ts +7 -0
  244. package/esm/FormGroup.js +2 -1
  245. package/esm/FormLabel.d.ts +1 -1
  246. package/esm/FormRange.js +2 -1
  247. package/esm/FormSelect.js +2 -1
  248. package/esm/FormText.js +4 -2
  249. package/esm/Image.js +0 -4
  250. package/esm/InputGroup.js +3 -5
  251. package/esm/Jumbotron.d.ts +7 -0
  252. package/esm/ListGroup.js +0 -2
  253. package/esm/ListGroupItem.js +4 -4
  254. package/esm/Media.d.ts +8 -0
  255. package/esm/Modal.js +32 -44
  256. package/esm/ModalContext.js +0 -1
  257. package/esm/ModalDialog.js +2 -1
  258. package/esm/Nav.js +0 -2
  259. package/esm/NavLink.js +2 -1
  260. package/esm/Navbar.js +3 -4
  261. package/esm/NavbarBrand.js +2 -1
  262. package/esm/NavbarContext.js +3 -1
  263. package/esm/NavbarOffcanvas.d.ts +1 -1
  264. package/esm/NavbarToggle.js +2 -3
  265. package/esm/Offcanvas.d.ts +1 -1
  266. package/esm/Offcanvas.js +9 -16
  267. package/esm/OffcanvasToggling.js +2 -1
  268. package/esm/Overlay.d.ts +1 -1
  269. package/esm/Overlay.js +12 -12
  270. package/esm/OverlayTrigger.d.ts +9 -9
  271. package/esm/OverlayTrigger.js +7 -20
  272. package/esm/PageItem.js +2 -4
  273. package/esm/Pagination.js +0 -1
  274. package/esm/Placeholder.js +2 -1
  275. package/esm/PlaceholderButton.js +2 -1
  276. package/esm/PopoverContent.d.ts +5 -0
  277. package/esm/PopoverTitle.d.ts +5 -0
  278. package/esm/ProgressBar.js +2 -12
  279. package/esm/Ratio.d.ts +1 -1
  280. package/esm/Ratio.js +3 -4
  281. package/esm/ResponsiveEmbed.d.ts +9 -0
  282. package/esm/Row.d.ts +2 -2
  283. package/esm/Row.js +0 -2
  284. package/esm/SafeAnchor.d.ts +17 -0
  285. package/esm/SelectableContext.d.ts +5 -0
  286. package/esm/Spinner.d.ts +1 -1
  287. package/esm/Spinner.js +1 -1
  288. package/esm/SplitButton.js +1 -16
  289. package/esm/Stack.d.ts +1 -1
  290. package/esm/Stack.js +2 -1
  291. package/esm/Switch.d.ts +1 -1
  292. package/esm/Switch.js +2 -1
  293. package/esm/Tab.d.ts +2 -2
  294. package/esm/Tab.js +2 -9
  295. package/esm/TabContainer.d.ts +2 -2
  296. package/esm/TabContainer.js +2 -3
  297. package/esm/TabContext.d.ts +12 -0
  298. package/esm/TabPane.js +7 -4
  299. package/esm/Table.js +2 -6
  300. package/esm/Tabs.d.ts +3 -3
  301. package/esm/Tabs.js +6 -9
  302. package/esm/ThemeProvider.js +8 -9
  303. package/esm/Toast.js +5 -5
  304. package/esm/ToastContainer.d.ts +1 -1
  305. package/esm/ToastContext.js +0 -1
  306. package/esm/ToastFade.js +2 -1
  307. package/esm/ToggleButton.d.ts +1 -1
  308. package/esm/ToggleButton.js +2 -3
  309. package/esm/ToggleButtonGroup.d.ts +2 -2
  310. package/esm/ToggleButtonGroup.js +2 -9
  311. package/esm/TransitionWrapper.d.ts +1 -1
  312. package/esm/TransitionWrapper.js +3 -5
  313. package/esm/createChainedFunction.js +2 -4
  314. package/esm/createUtilityClasses.d.ts +1 -1
  315. package/esm/createUtilityClasses.js +0 -1
  316. package/esm/createWithBsPrefix.js +0 -2
  317. package/esm/divWithClassName.js +2 -1
  318. package/esm/getTabTransitionComponent.js +0 -1
  319. package/esm/helpers.d.ts +4 -4
  320. package/esm/helpers.js +3 -3
  321. package/esm/safeFindDOMNode.d.ts +1 -1
  322. package/esm/safeFindDOMNode.js +0 -1
  323. package/esm/transitionEndListener.js +0 -2
  324. package/esm/types.d.ts +10 -10
  325. package/esm/useOverlayOffset.js +3 -3
  326. package/esm/usePlaceholder.d.ts +2 -2
  327. package/esm/usePlaceholder.js +2 -1
  328. package/esm/usePopperMarginModifiers.d.ts +4 -0
  329. package/esm/useWrappedRefWithWarning.js +4 -3
  330. package/package.json +2 -2
@@ -1,15 +1,15 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import * as React from 'react';
3
3
  import { OverlayChildren, OverlayProps } from './Overlay';
4
- export declare type OverlayTriggerType = 'hover' | 'click' | 'focus';
5
- export declare type OverlayDelay = number | {
4
+ export type OverlayTriggerType = 'hover' | 'click' | 'focus';
5
+ export type OverlayDelay = number | {
6
6
  show: number;
7
7
  hide: number;
8
8
  };
9
- export declare type OverlayInjectedProps = {
9
+ export type OverlayInjectedProps = {
10
10
  onFocus?: (...args: any[]) => any;
11
11
  };
12
- export declare type OverlayTriggerRenderProps = OverlayInjectedProps & {
12
+ export type OverlayTriggerRenderProps = OverlayInjectedProps & {
13
13
  ref: React.Ref<any>;
14
14
  };
15
15
  export interface OverlayTriggerProps extends Omit<OverlayProps, 'children' | 'target'> {
@@ -27,7 +27,7 @@ export interface OverlayTriggerProps extends Omit<OverlayProps, 'children' | 'ta
27
27
  declare function OverlayTrigger({ trigger, overlay, children, popperConfig, show: propsShow, defaultShow, onToggle, delay: propsDelay, placement, flip, ...props }: OverlayTriggerProps): JSX.Element;
28
28
  declare namespace OverlayTrigger {
29
29
  var propTypes: {
30
- children: PropTypes.Validator<((...args: any[]) => any) | PropTypes.ReactElementLike>;
30
+ children: PropTypes.Validator<NonNullable<NonNullable<((...args: any[]) => any) | PropTypes.ReactElementLike | null | undefined>>>;
31
31
  /**
32
32
  * Specify which action or actions trigger Overlay visibility
33
33
  *
@@ -35,14 +35,14 @@ declare namespace OverlayTrigger {
35
35
  *
36
36
  * @type {'hover' | 'click' |'focus' | Array<'hover' | 'click' |'focus'>}
37
37
  */
38
- trigger: PropTypes.Requireable<string | (string | null | undefined)[]>;
38
+ trigger: PropTypes.Requireable<NonNullable<string | (string | null | undefined)[] | null | undefined>>;
39
39
  /**
40
40
  * A millisecond delay amount to show and hide the Overlay once triggered
41
41
  */
42
- delay: PropTypes.Requireable<number | PropTypes.InferProps<{
42
+ delay: PropTypes.Requireable<NonNullable<number | PropTypes.InferProps<{
43
43
  show: PropTypes.Requireable<number>;
44
44
  hide: PropTypes.Requireable<number>;
45
- }>>;
45
+ }> | null | undefined>>;
46
46
  /**
47
47
  * The visibility of the Overlay. `show` is a _controlled_ prop so should be paired
48
48
  * with `onToggle` to avoid breaking user interactions.
@@ -72,7 +72,7 @@ declare namespace OverlayTrigger {
72
72
  /**
73
73
  * An element or text to overlay next to the target.
74
74
  */
75
- overlay: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.ReactElementLike>;
75
+ overlay: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactElementLike | null | undefined>>;
76
76
  /**
77
77
  * A Popper.js config object passed to the the underlying popper instance.
78
78
  */
@@ -10,34 +10,31 @@ import safeFindDOMNode from './safeFindDOMNode';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  import { Fragment as _Fragment } from "react/jsx-runtime";
12
12
  import { jsxs as _jsxs } from "react/jsx-runtime";
13
-
14
13
  function normalizeDelay(delay) {
15
14
  return delay && typeof delay === 'object' ? delay : {
16
15
  show: delay,
17
16
  hide: delay
18
17
  };
19
- } // Simple implementation of mouseEnter and mouseLeave.
18
+ }
19
+
20
+ // Simple implementation of mouseEnter and mouseLeave.
20
21
  // React's built version is broken: https://github.com/facebook/react/issues/4251
21
22
  // for cases when the trigger is disabled and mouseOut/Over can cause flicker
22
23
  // moving from one child element to another.
23
-
24
-
25
- function handleMouseOverOut( // eslint-disable-next-line @typescript-eslint/no-shadow
24
+ function handleMouseOverOut(
25
+ // eslint-disable-next-line @typescript-eslint/no-shadow
26
26
  handler, args, relatedNative) {
27
27
  const [e] = args;
28
28
  const target = e.currentTarget;
29
29
  const related = e.relatedTarget || e.nativeEvent[relatedNative];
30
-
31
30
  if ((!related || related !== target) && !contains(target, related)) {
32
31
  handler(...args);
33
32
  }
34
33
  }
35
-
36
34
  const defaultProps = {
37
35
  defaultShow: false,
38
36
  trigger: ['hover', 'focus']
39
37
  };
40
-
41
38
  function OverlayTrigger({
42
39
  trigger,
43
40
  overlay,
@@ -62,20 +59,16 @@ function OverlayTrigger({
62
59
  onBlur,
63
60
  onClick
64
61
  } = typeof children !== 'function' ? React.Children.only(children).props : {};
65
-
66
62
  const attachRef = r => {
67
63
  mergedRef(safeFindDOMNode(r));
68
64
  };
69
-
70
65
  const handleShow = useCallback(() => {
71
66
  timeout.clear();
72
67
  hoverStateRef.current = 'show';
73
-
74
68
  if (!delay.show) {
75
69
  setShow(true);
76
70
  return;
77
71
  }
78
-
79
72
  timeout.set(() => {
80
73
  if (hoverStateRef.current === 'show') setShow(true);
81
74
  }, delay.show);
@@ -83,12 +76,10 @@ function OverlayTrigger({
83
76
  const handleHide = useCallback(() => {
84
77
  timeout.clear();
85
78
  hoverStateRef.current = 'hide';
86
-
87
79
  if (!delay.hide) {
88
80
  setShow(false);
89
81
  return;
90
82
  }
91
-
92
83
  timeout.set(() => {
93
84
  if (hoverStateRef.current === 'hide') setShow(false);
94
85
  }, delay.hide);
@@ -115,24 +106,21 @@ function OverlayTrigger({
115
106
  const triggerProps = {
116
107
  ref: attachRef
117
108
  };
118
-
119
109
  if (triggers.indexOf('click') !== -1) {
120
110
  triggerProps.onClick = handleClick;
121
111
  }
122
-
123
112
  if (triggers.indexOf('focus') !== -1) {
124
113
  triggerProps.onFocus = handleFocus;
125
114
  triggerProps.onBlur = handleBlur;
126
115
  }
127
-
128
116
  if (triggers.indexOf('hover') !== -1) {
129
117
  process.env.NODE_ENV !== "production" ? warning(triggers.length > 1, '[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.') : void 0;
130
118
  triggerProps.onMouseOver = handleMouseOver;
131
119
  triggerProps.onMouseOut = handleMouseOut;
132
120
  }
133
-
134
121
  return /*#__PURE__*/_jsxs(_Fragment, {
135
- children: [typeof children === 'function' ? children(triggerProps) : /*#__PURE__*/cloneElement(children, triggerProps), /*#__PURE__*/_jsx(Overlay, { ...props,
122
+ children: [typeof children === 'function' ? children(triggerProps) : /*#__PURE__*/cloneElement(children, triggerProps), /*#__PURE__*/_jsx(Overlay, {
123
+ ...props,
136
124
  show: show,
137
125
  onHide: handleHide,
138
126
  flip: flip,
@@ -143,6 +131,5 @@ function OverlayTrigger({
143
131
  })]
144
132
  });
145
133
  }
146
-
147
134
  OverlayTrigger.defaultProps = defaultProps;
148
135
  export default OverlayTrigger;
package/esm/PageItem.js CHANGED
@@ -28,7 +28,6 @@ const PageItem = /*#__PURE__*/React.forwardRef(({
28
28
  }),
29
29
  children: /*#__PURE__*/_jsxs(Component, {
30
30
  className: "page-link",
31
- disabled: disabled,
32
31
  ...props,
33
32
  children: [children, active && activeLabel && /*#__PURE__*/_jsx("span", {
34
33
  className: "visually-hidden",
@@ -40,12 +39,12 @@ const PageItem = /*#__PURE__*/React.forwardRef(({
40
39
  PageItem.defaultProps = defaultProps;
41
40
  PageItem.displayName = 'PageItem';
42
41
  export default PageItem;
43
-
44
42
  function createButton(name, defaultValue, label = name) {
45
43
  const Button = /*#__PURE__*/React.forwardRef(({
46
44
  children,
47
45
  ...props
48
- }, ref) => /*#__PURE__*/_jsxs(PageItem, { ...props,
46
+ }, ref) => /*#__PURE__*/_jsxs(PageItem, {
47
+ ...props,
49
48
  ref: ref,
50
49
  children: [/*#__PURE__*/_jsx("span", {
51
50
  "aria-hidden": "true",
@@ -58,7 +57,6 @@ function createButton(name, defaultValue, label = name) {
58
57
  Button.displayName = name;
59
58
  return Button;
60
59
  }
61
-
62
60
  export const First = createButton('First', '«');
63
61
  export const Prev = createButton('Prev', '‹', 'Previous');
64
62
  export const Ellipsis = createButton('Ellipsis', '…', 'More');
package/esm/Pagination.js CHANGED
@@ -3,7 +3,6 @@ import * as React from 'react';
3
3
  import { useBootstrapPrefix } from './ThemeProvider';
4
4
  import PageItem, { Ellipsis, First, Last, Next, Prev } from './PageItem';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
-
7
6
  /**
8
7
  * @property {PageItem} Item
9
8
  * @property {PageItem} First
@@ -7,7 +7,8 @@ const Placeholder = /*#__PURE__*/React.forwardRef(({
7
7
  ...props
8
8
  }, ref) => {
9
9
  const placeholderProps = usePlaceholder(props);
10
- return /*#__PURE__*/_jsx(Component, { ...placeholderProps,
10
+ return /*#__PURE__*/_jsx(Component, {
11
+ ...placeholderProps,
11
12
  ref: ref
12
13
  });
13
14
  });
@@ -4,7 +4,8 @@ import usePlaceholder from './usePlaceholder';
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  const PlaceholderButton = /*#__PURE__*/React.forwardRef((props, ref) => {
6
6
  const placeholderProps = usePlaceholder(props);
7
- return /*#__PURE__*/_jsx(Button, { ...placeholderProps,
7
+ return /*#__PURE__*/_jsx(Button, {
8
+ ...placeholderProps,
8
9
  ref: ref,
9
10
  disabled: true,
10
11
  tabIndex: -1
@@ -0,0 +1,5 @@
1
+ import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
2
+ declare type PopoverContentProps = BsPrefixPropsWithChildren;
3
+ declare type PopoverContent = BsPrefixRefForwardingComponent<'div', PopoverContentProps>;
4
+ declare const PopoverContent: PopoverContent;
5
+ export default PopoverContent;
@@ -0,0 +1,5 @@
1
+ import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
2
+ declare type PopoverTitleProps = BsPrefixPropsWithChildren;
3
+ declare type PopoverTitle = BsPrefixRefForwardingComponent<'div', PopoverTitleProps>;
4
+ declare const PopoverTitle: PopoverTitle;
5
+ export default PopoverTitle;
@@ -5,22 +5,21 @@ import { useBootstrapPrefix } from './ThemeProvider';
5
5
  import { map } from './ElementChildren';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const ROUND_PRECISION = 1000;
8
+
8
9
  /**
9
10
  * Validate that children, if any, are instances of `<ProgressBar>`.
10
11
  */
11
-
12
12
  function onlyProgressBar(props, propName, componentName) {
13
13
  const children = props[propName];
14
-
15
14
  if (!children) {
16
15
  return null;
17
16
  }
18
-
19
17
  let error = null;
20
18
  React.Children.forEach(children, child => {
21
19
  if (error) {
22
20
  return;
23
21
  }
22
+
24
23
  /**
25
24
  * Compare types in a way that works with libraries that patch and proxy
26
25
  * components like react-hot-loader.
@@ -28,10 +27,7 @@ function onlyProgressBar(props, propName, componentName) {
28
27
  * see https://github.com/gaearon/react-hot-loader#checking-element-types
29
28
  */
30
29
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
31
-
32
-
33
30
  const element = /*#__PURE__*/_jsx(ProgressBar, {});
34
-
35
31
  if (child.type === element.type) return;
36
32
  const childType = child.type;
37
33
  const childIdentifier = /*#__PURE__*/React.isValidElement(child) ? childType.displayName || childType.name || childType : child;
@@ -39,7 +35,6 @@ function onlyProgressBar(props, propName, componentName) {
39
35
  });
40
36
  return error;
41
37
  }
42
-
43
38
  const defaultProps = {
44
39
  min: 0,
45
40
  max: 100,
@@ -48,12 +43,10 @@ const defaultProps = {
48
43
  visuallyHidden: false,
49
44
  striped: false
50
45
  };
51
-
52
46
  function getPercentage(now, min, max) {
53
47
  const percentage = (now - min) / (max - min) * 100;
54
48
  return Math.round(percentage * ROUND_PRECISION) / ROUND_PRECISION;
55
49
  }
56
-
57
50
  function renderProgressBar({
58
51
  min,
59
52
  now,
@@ -90,17 +83,14 @@ function renderProgressBar({
90
83
  }) : label
91
84
  });
92
85
  }
93
-
94
86
  const ProgressBar = /*#__PURE__*/React.forwardRef(({
95
87
  isChild,
96
88
  ...props
97
89
  }, ref) => {
98
90
  props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
99
-
100
91
  if (isChild) {
101
92
  return renderProgressBar(props, ref);
102
93
  }
103
-
104
94
  const {
105
95
  min,
106
96
  now,
package/esm/Ratio.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { BsPrefixProps } from './helpers';
3
- export declare type AspectRatio = '1x1' | '4x3' | '16x9' | '21x9' | string;
3
+ export type AspectRatio = '1x1' | '4x3' | '16x9' | '21x9' | string;
4
4
  export interface RatioProps extends BsPrefixProps, React.HTMLAttributes<HTMLDivElement> {
5
5
  children: React.ReactChild;
6
6
  aspectRatio?: AspectRatio | number;
package/esm/Ratio.js CHANGED
@@ -5,13 +5,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
5
5
  const defaultProps = {
6
6
  aspectRatio: '1x1'
7
7
  };
8
-
9
8
  function toPercent(num) {
10
- if (num <= 0 || num > 100) return '100%';
9
+ if (num <= 0) return '100%';
11
10
  if (num < 1) return `${num * 100}%`;
12
11
  return `${num}%`;
13
12
  }
14
-
15
13
  const Ratio = /*#__PURE__*/React.forwardRef(({
16
14
  bsPrefix,
17
15
  className,
@@ -25,7 +23,8 @@ const Ratio = /*#__PURE__*/React.forwardRef(({
25
23
  return /*#__PURE__*/_jsx("div", {
26
24
  ref: ref,
27
25
  ...props,
28
- style: { ...style,
26
+ style: {
27
+ ...style,
29
28
  ...(isCustomRatio && {
30
29
  '--bs-aspect-ratio': toPercent(aspectRatio)
31
30
  })
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface ResponsiveEmbedProps extends BsPrefixPropsWithChildren {
4
+ children: React.ReactChild;
5
+ aspectRatio?: '21by9' | '16by9' | '4by3' | '1by1';
6
+ }
7
+ declare type ResponsiveEmbed = BsPrefixRefForwardingComponent<'div', ResponsiveEmbedProps>;
8
+ declare const ResponsiveEmbed: ResponsiveEmbed;
9
+ export default ResponsiveEmbed;
package/esm/Row.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- declare type RowColWidth = number | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | 'auto';
4
- declare type RowColumns = RowColWidth | {
3
+ type RowColWidth = number | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | 'auto';
4
+ type RowColumns = RowColWidth | {
5
5
  cols?: RowColWidth;
6
6
  };
7
7
  export interface RowProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
package/esm/Row.js CHANGED
@@ -18,7 +18,6 @@ const Row = /*#__PURE__*/React.forwardRef(({
18
18
  const propValue = props[brkPoint];
19
19
  delete props[brkPoint];
20
20
  let cols;
21
-
22
21
  if (propValue != null && typeof propValue === 'object') {
23
22
  ({
24
23
  cols
@@ -26,7 +25,6 @@ const Row = /*#__PURE__*/React.forwardRef(({
26
25
  } else {
27
26
  cols = propValue;
28
27
  }
29
-
30
28
  const infix = brkPoint !== minBreakpoint ? `-${brkPoint}` : '';
31
29
  if (cols != null) classes.push(`${sizePrefix}${infix}-${cols}`);
32
30
  });
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
+ export interface SafeAnchorProps extends React.HTMLAttributes<HTMLElement>, BsPrefixProps {
4
+ href?: string;
5
+ disabled?: boolean;
6
+ tabIndex?: number;
7
+ }
8
+ declare type SafeAnchor = BsPrefixRefForwardingComponent<'a', SafeAnchorProps>;
9
+ /**
10
+ * There are situations due to browser quirks or Bootstrap CSS where
11
+ * an anchor tag is needed, when semantically a button tag is the
12
+ * better choice. SafeAnchor ensures that when an anchor is used like a
13
+ * button its accessible. It also emulates input `disabled` behavior for
14
+ * links, which is usually desirable for Buttons, NavItems, DropdownItems, etc.
15
+ */
16
+ declare const SafeAnchor: SafeAnchor;
17
+ export default SafeAnchor;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare type SelectableContextType = (key: string | null, event: any) => void;
3
+ declare const SelectableContext: React.Context<SelectableContextType | null>;
4
+ export declare const makeEventKey: (eventKey?: string | number | null | undefined, href?: string | null) => string | null;
5
+ export default SelectableContext;
package/esm/Spinner.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
3
  import { Variant } from './types';
4
4
  export interface SpinnerProps extends React.HTMLAttributes<HTMLElement>, BsPrefixProps {
5
- animation: 'border' | 'grow';
5
+ animation?: 'border' | 'grow';
6
6
  size?: 'sm';
7
7
  variant?: Variant;
8
8
  }
package/esm/Spinner.js CHANGED
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
5
5
  const Spinner = /*#__PURE__*/React.forwardRef(({
6
6
  bsPrefix,
7
7
  variant,
8
- animation,
8
+ animation = 'border',
9
9
  size,
10
10
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
11
11
  as: Component = 'div',
@@ -13,30 +13,22 @@ const propTypes = {
13
13
  * @required
14
14
  */
15
15
  id: PropTypes.string,
16
-
17
16
  /**
18
17
  * Accessible label for the toggle; the value of `title` if not specified.
19
18
  */
20
19
  toggleLabel: PropTypes.string,
21
-
22
20
  /** An `href` passed to the non-toggle Button */
23
21
  href: PropTypes.string,
24
-
25
22
  /** An anchor `target` passed to the non-toggle Button */
26
23
  target: PropTypes.string,
27
-
28
24
  /** An `onClick` handler passed to the non-toggle Button */
29
25
  onClick: PropTypes.func,
30
-
31
26
  /** The content of the non-toggle Button. */
32
27
  title: PropTypes.node.isRequired,
33
-
34
28
  /** A `type` passed to the non-toggle Button */
35
29
  type: PropTypes.string,
36
-
37
30
  /** Disables both Buttons */
38
31
  disabled: PropTypes.bool,
39
-
40
32
  /**
41
33
  * Aligns the dropdown menu.
42
34
  *
@@ -45,33 +37,26 @@ const propTypes = {
45
37
  * @type {"start"|"end"|{ sm: "start"|"end" }|{ md: "start"|"end" }|{ lg: "start"|"end" }|{ xl: "start"|"end"}|{ xxl: "start"|"end"} }
46
38
  */
47
39
  align: alignPropType,
48
-
49
40
  /** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
50
41
  menuRole: PropTypes.string,
51
-
52
42
  /** Whether to render the dropdown menu in the DOM before the first time it is shown */
53
43
  renderMenuOnMount: PropTypes.bool,
54
-
55
44
  /**
56
45
  * Which event when fired outside the component will cause it to be closed.
57
46
  *
58
47
  * _see [DropdownMenu](#dropdown-menu-props) for more details_
59
48
  */
60
49
  rootCloseEvent: PropTypes.string,
61
-
62
50
  /**
63
51
  * Allow Dropdown to flip in case of an overlapping on the reference element. For more information refer to
64
52
  * Popper.js's flip [docs](https://popper.js.org/docs/v2/modifiers/flip/).
65
53
  *
66
54
  */
67
55
  flip: PropTypes.bool,
68
-
69
56
  /** @ignore */
70
57
  bsPrefix: PropTypes.string,
71
-
72
58
  /** @ignore */
73
59
  variant: PropTypes.string,
74
-
75
60
  /** @ignore */
76
61
  size: PropTypes.string
77
62
  };
@@ -79,6 +64,7 @@ const defaultProps = {
79
64
  toggleLabel: 'Toggle dropdown',
80
65
  type: 'button'
81
66
  };
67
+
82
68
  /**
83
69
  * A convenience component for simple or general use split button dropdowns. Renders a
84
70
  * `ButtonGroup` containing a `Button` and a `Button` toggle for the `Dropdown`. All `children`
@@ -89,7 +75,6 @@ const defaultProps = {
89
75
  * The Button `variant`, `size` and `bsPrefix` props are passed to the button and toggle,
90
76
  * and menu-related props are passed to the `Dropdown.Menu`
91
77
  */
92
-
93
78
  const SplitButton = /*#__PURE__*/React.forwardRef(({
94
79
  id,
95
80
  bsPrefix,
package/esm/Stack.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
3
  import { GapValue } from './types';
4
4
  import { ResponsiveUtilityValue } from './createUtilityClasses';
5
- export declare type StackDirection = 'horizontal' | 'vertical';
5
+ export type StackDirection = 'horizontal' | 'vertical';
6
6
  export interface StackProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
7
7
  direction?: StackDirection;
8
8
  gap?: ResponsiveUtilityValue<GapValue>;
package/esm/Stack.js CHANGED
@@ -14,7 +14,8 @@ const Stack = /*#__PURE__*/React.forwardRef(({
14
14
  bsPrefix = useBootstrapPrefix(bsPrefix, direction === 'horizontal' ? 'hstack' : 'vstack');
15
15
  const breakpoints = useBootstrapBreakpoints();
16
16
  const minBreakpoint = useBootstrapMinBreakpoint();
17
- return /*#__PURE__*/_jsx(Component, { ...props,
17
+ return /*#__PURE__*/_jsx(Component, {
18
+ ...props,
18
19
  ref: ref,
19
20
  className: classNames(className, bsPrefix, ...createUtilityClassName({
20
21
  gap,
package/esm/Switch.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { FormCheckProps } from './FormCheck';
3
3
  import { BsPrefixRefForwardingComponent } from './helpers';
4
- declare type SwitchProps = Omit<FormCheckProps, 'type'>;
4
+ type SwitchProps = Omit<FormCheckProps, 'type'>;
5
5
  declare const _default: BsPrefixRefForwardingComponent<BsPrefixRefForwardingComponent<"input", FormCheckProps> & {
6
6
  Input: BsPrefixRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
7
7
  Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
package/esm/Switch.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import FormCheck from './FormCheck';
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
- const Switch = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/_jsx(FormCheck, { ...props,
4
+ const Switch = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/_jsx(FormCheck, {
5
+ ...props,
5
6
  ref: ref,
6
7
  type: "switch"
7
8
  }));
package/esm/Tab.d.ts CHANGED
@@ -12,12 +12,12 @@ declare const _default: React.FC<TabProps> & {
12
12
  ({ transition, ...props }: import("./TabContainer").TabContainerProps): JSX.Element;
13
13
  propTypes: {
14
14
  id: PropTypes.Requireable<string>;
15
- transition: PropTypes.Requireable<boolean | PropTypes.ReactComponentLike>;
15
+ transition: PropTypes.Requireable<NonNullable<boolean | PropTypes.ReactComponentLike | null | undefined>>;
16
16
  mountOnEnter: PropTypes.Requireable<boolean>;
17
17
  unmountOnExit: PropTypes.Requireable<boolean>;
18
18
  generateChildId: PropTypes.Requireable<(...args: any[]) => any>;
19
19
  onSelect: PropTypes.Requireable<(...args: any[]) => any>;
20
- activeKey: PropTypes.Requireable<string | number>;
20
+ activeKey: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
21
21
  };
22
22
  displayName: string;
23
23
  };
package/esm/Tab.js CHANGED
@@ -5,38 +5,31 @@ import TabContent from './TabContent';
5
5
  import TabPane from './TabPane';
6
6
  import { Fragment as _Fragment } from "react/jsx-runtime";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
-
9
8
  /* eslint-disable react/no-unused-prop-types */
10
9
  const propTypes = {
11
10
  eventKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
12
-
13
11
  /**
14
12
  * Content for the tab title.
15
13
  */
16
14
  title: PropTypes.node.isRequired,
17
-
18
15
  /**
19
16
  * The disabled state of the tab.
20
17
  */
21
18
  disabled: PropTypes.bool,
22
-
23
19
  /**
24
20
  * Class to pass to the underlying nav link.
25
21
  */
26
22
  tabClassName: PropTypes.string,
27
-
28
23
  /**
29
24
  * Object containing attributes to pass to underlying nav link.
30
25
  */
31
26
  tabAttrs: PropTypes.object
32
27
  };
33
-
34
28
  const Tab = () => {
35
- 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'); // Needed otherwise docs error out.
36
-
29
+ 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.
37
31
  return /*#__PURE__*/_jsx(_Fragment, {});
38
32
  };
39
-
40
33
  Tab.propTypes = propTypes;
41
34
  export default Object.assign(Tab, {
42
35
  Container: TabContainer,
@@ -22,7 +22,7 @@ declare const TabContainer: {
22
22
  * @type {{Transition | false}}
23
23
  * @default {Fade}
24
24
  */
25
- transition: PropTypes.Requireable<boolean | PropTypes.ReactComponentLike>;
25
+ transition: PropTypes.Requireable<NonNullable<boolean | PropTypes.ReactComponentLike | null | undefined>>;
26
26
  /**
27
27
  * Wait until the first "enter" transition to mount tabs (add them to the DOM)
28
28
  */
@@ -54,7 +54,7 @@ declare const TabContainer: {
54
54
  *
55
55
  * @controllable onSelect
56
56
  */
57
- activeKey: PropTypes.Requireable<string | number>;
57
+ activeKey: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
58
58
  };
59
59
  displayName: string;
60
60
  };
@@ -2,13 +2,12 @@ import * as React from 'react';
2
2
  import Tabs from '@restart/ui/Tabs';
3
3
  import getTabTransitionComponent from './getTabTransitionComponent';
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
-
6
5
  const TabContainer = ({
7
6
  transition,
8
7
  ...props
9
- }) => /*#__PURE__*/_jsx(Tabs, { ...props,
8
+ }) => /*#__PURE__*/_jsx(Tabs, {
9
+ ...props,
10
10
  transition: getTabTransitionComponent(transition)
11
11
  });
12
-
13
12
  TabContainer.displayName = 'TabContainer';
14
13
  export default TabContainer;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export interface TabContextType {
3
+ onSelect: any;
4
+ activeKey: any;
5
+ transition: any;
6
+ mountOnEnter: boolean;
7
+ unmountOnExit: boolean;
8
+ getControlledId: (key: any) => any;
9
+ getControllerId: (key: any) => any;
10
+ }
11
+ declare const TabContext: React.Context<TabContextType | null>;
12
+ export default TabContext;