react-bootstrap 2.1.2 → 2.2.2

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 (59) hide show
  1. package/cjs/Carousel.js +12 -12
  2. package/cjs/Col.d.ts +1 -0
  3. package/cjs/Col.js +2 -3
  4. package/cjs/Container.d.ts +1 -1
  5. package/cjs/DropdownMenu.d.ts +1 -3
  6. package/cjs/ListGroup.d.ts +1 -1
  7. package/cjs/Modal.d.ts +1 -1
  8. package/cjs/Modal.js +7 -5
  9. package/cjs/ModalDialog.d.ts +1 -1
  10. package/cjs/Navbar.d.ts +1 -1
  11. package/cjs/Overlay.js +1 -1
  12. package/cjs/Row.d.ts +1 -0
  13. package/cjs/Row.js +2 -2
  14. package/cjs/Stack.js +3 -1
  15. package/cjs/Tab.d.ts +1 -0
  16. package/cjs/Tab.js +6 -1
  17. package/cjs/TabPane.js +3 -3
  18. package/cjs/Tabs.js +3 -0
  19. package/cjs/ThemeProvider.d.ts +4 -1
  20. package/cjs/ThemeProvider.js +16 -3
  21. package/cjs/createUtilityClasses.d.ts +1 -2
  22. package/cjs/createUtilityClasses.js +4 -6
  23. package/cjs/index.d.ts +2 -0
  24. package/cjs/index.js +5 -1
  25. package/cjs/types.d.ts +2 -12
  26. package/cjs/types.js +1 -1
  27. package/cjs/useOverlayOffset.d.ts +2 -5
  28. package/cjs/useOverlayOffset.js +4 -4
  29. package/dist/react-bootstrap.js +221 -303
  30. package/dist/react-bootstrap.min.js +1 -1
  31. package/esm/Carousel.js +12 -12
  32. package/esm/Col.d.ts +1 -0
  33. package/esm/Col.js +3 -3
  34. package/esm/Container.d.ts +1 -1
  35. package/esm/DropdownMenu.d.ts +1 -3
  36. package/esm/ListGroup.d.ts +1 -1
  37. package/esm/Modal.d.ts +1 -1
  38. package/esm/Modal.js +7 -5
  39. package/esm/ModalDialog.d.ts +1 -1
  40. package/esm/Navbar.d.ts +1 -1
  41. package/esm/Overlay.js +1 -1
  42. package/esm/Row.d.ts +1 -0
  43. package/esm/Row.js +3 -3
  44. package/esm/Stack.js +4 -2
  45. package/esm/Tab.d.ts +1 -0
  46. package/esm/Tab.js +6 -1
  47. package/esm/TabPane.js +2 -2
  48. package/esm/Tabs.js +3 -0
  49. package/esm/ThemeProvider.d.ts +4 -1
  50. package/esm/ThemeProvider.js +12 -2
  51. package/esm/createUtilityClasses.d.ts +1 -2
  52. package/esm/createUtilityClasses.js +3 -3
  53. package/esm/index.d.ts +2 -0
  54. package/esm/index.js +1 -0
  55. package/esm/types.d.ts +2 -12
  56. package/esm/types.js +1 -1
  57. package/esm/useOverlayOffset.d.ts +2 -5
  58. package/esm/useOverlayOffset.js +4 -4
  59. package/package.json +12 -10
@@ -497,6 +497,7 @@ module.exports = function () {
497
497
 
498
498
  var ReactPropTypes = {
499
499
  array: shim,
500
+ bigint: shim,
500
501
  bool: shim,
501
502
  func: shim,
502
503
  number: shim,
@@ -1044,6 +1045,7 @@ __webpack_require__.d(__webpack_exports__, {
1044
1045
  "ModalBody": () => (/* reexport */ ModalBody),
1045
1046
  "ModalDialog": () => (/* reexport */ src_ModalDialog),
1046
1047
  "ModalFooter": () => (/* reexport */ ModalFooter),
1048
+ "ModalHeader": () => (/* reexport */ src_ModalHeader),
1047
1049
  "ModalTitle": () => (/* reexport */ ModalTitle),
1048
1050
  "Nav": () => (/* reexport */ src_Nav),
1049
1051
  "NavDropdown": () => (/* reexport */ src_NavDropdown),
@@ -1563,8 +1565,10 @@ var ThemeProvider_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-boot
1563
1565
 
1564
1566
 
1565
1567
 
1568
+ const DEFAULT_BREAKPOINTS = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
1566
1569
  const ThemeContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext({
1567
- prefixes: {}
1570
+ prefixes: {},
1571
+ breakpoints: DEFAULT_BREAKPOINTS
1568
1572
  });
1569
1573
  const {
1570
1574
  Consumer,
@@ -1573,26 +1577,49 @@ const {
1573
1577
 
1574
1578
  function ThemeProvider({
1575
1579
  prefixes = {},
1580
+ breakpoints = DEFAULT_BREAKPOINTS,
1576
1581
  dir,
1577
1582
  children
1578
1583
  }) {
1579
1584
  const contextValue = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
1580
1585
  prefixes: { ...prefixes
1581
1586
  },
1587
+ breakpoints,
1582
1588
  dir
1583
- }), [prefixes, dir]);
1589
+ }), [prefixes, breakpoints, dir]);
1584
1590
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Provider, {
1585
1591
  value: contextValue,
1586
1592
  children: children
1587
1593
  }, void 0, false, {
1588
1594
  fileName: ThemeProvider_jsxFileName,
1589
- lineNumber: 26,
1595
+ lineNumber: 38,
1590
1596
  columnNumber: 10
1591
1597
  }, this);
1592
1598
  }
1593
1599
 
1594
1600
  ThemeProvider.propTypes = {
1601
+ /**
1602
+ * An object mapping of Bootstrap component classes that
1603
+ * map to a custom class.
1604
+ *
1605
+ * **Note: Changing prefixes is an escape hatch and generally
1606
+ * shouldn't be used.**
1607
+ *
1608
+ * For more information, see [here](/getting-started/theming/#prefixing-components).
1609
+ */
1595
1610
  prefixes: (prop_types_default()).object,
1611
+
1612
+ /**
1613
+ * An array of breakpoints that your application supports.
1614
+ * Defaults to the standard Bootstrap breakpoints.
1615
+ */
1616
+ breakpoints: prop_types_default().arrayOf((prop_types_default()).string),
1617
+
1618
+ /**
1619
+ * Indicates the directionality of the application's text.
1620
+ *
1621
+ * Use `rtl` to set text as "right to left".
1622
+ */
1596
1623
  dir: (prop_types_default()).string
1597
1624
  };
1598
1625
  function useBootstrapPrefix(prefix, defaultPrefix) {
@@ -1601,6 +1628,12 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
1601
1628
  } = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(ThemeContext);
1602
1629
  return prefix || prefixes[defaultPrefix] || defaultPrefix;
1603
1630
  }
1631
+ function useBootstrapBreakpoints() {
1632
+ const {
1633
+ breakpoints
1634
+ } = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(ThemeContext);
1635
+ return breakpoints;
1636
+ }
1604
1637
  function useIsRTL() {
1605
1638
  const {
1606
1639
  dir
@@ -1626,7 +1659,7 @@ function createBootstrapComponent(Component, opts) {
1626
1659
  bsPrefix: bsPrefix
1627
1660
  }, void 0, false, {
1628
1661
  fileName: ThemeProvider_jsxFileName,
1629
- lineNumber: 57,
1662
+ lineNumber: 95,
1630
1663
  columnNumber: 14
1631
1664
  }, this);
1632
1665
  });
@@ -3111,7 +3144,7 @@ function useEventCallback(fn) {
3111
3144
  return ref.current && ref.current.apply(ref, arguments);
3112
3145
  }, [ref]);
3113
3146
  }
3114
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCallbackRef.js
3147
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
3115
3148
 
3116
3149
  /**
3117
3150
  * A convenience hook around `useState` designed to be paired with
@@ -3141,37 +3174,7 @@ function useEventCallback(fn) {
3141
3174
  function useCallbackRef() {
3142
3175
  return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
3143
3176
  }
3144
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCommittedRef.js
3145
-
3146
- /**
3147
- * Creates a `Ref` whose value is updated in an effect, ensuring the most recent
3148
- * value is the one rendered with. Generally only required for Concurrent mode usage
3149
- * where previous work in `render()` may be discarded befor being used.
3150
- *
3151
- * This is safe to access in an event handler.
3152
- *
3153
- * @param value The `Ref` value
3154
- */
3155
-
3156
- function esm_useCommittedRef_useCommittedRef(value) {
3157
- var ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
3158
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3159
- ref.current = value;
3160
- }, [value]);
3161
- return ref;
3162
- }
3163
-
3164
- /* harmony default export */ const hooks_esm_useCommittedRef = (esm_useCommittedRef_useCommittedRef);
3165
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useEventCallback.js
3166
-
3167
-
3168
- function useEventCallback_useEventCallback(fn) {
3169
- var ref = hooks_esm_useCommittedRef(fn);
3170
- return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function () {
3171
- return ref.current && ref.current.apply(ref, arguments);
3172
- }, [ref]);
3173
- }
3174
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useEventListener.js
3177
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useEventListener.js
3175
3178
 
3176
3179
 
3177
3180
  /**
@@ -3189,7 +3192,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
3189
3192
  capture = false;
3190
3193
  }
3191
3194
 
3192
- var handler = useEventCallback_useEventCallback(listener);
3195
+ var handler = useEventCallback(listener);
3193
3196
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3194
3197
  var target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
3195
3198
  target.addEventListener(event, handler, capture);
@@ -3198,7 +3201,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
3198
3201
  };
3199
3202
  }, [eventTarget]);
3200
3203
  }
3201
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useGlobalListener.js
3204
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useGlobalListener.js
3202
3205
 
3203
3206
 
3204
3207
  /**
@@ -3226,7 +3229,7 @@ function useGlobalListener(event, handler, capture) {
3226
3229
  }, []);
3227
3230
  return useEventListener(documentTarget, event, handler, capture);
3228
3231
  }
3229
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useInterval.js
3232
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useInterval.js
3230
3233
 
3231
3234
 
3232
3235
  /**
@@ -3285,7 +3288,7 @@ function useInterval(fn, ms, paused, runImmediately) {
3285
3288
  }
3286
3289
 
3287
3290
  /* harmony default export */ const esm_useInterval = ((/* unused pure expression or super */ null && (useInterval)));
3288
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useRafInterval.js
3291
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useRafInterval.js
3289
3292
 
3290
3293
 
3291
3294
 
@@ -3324,7 +3327,7 @@ function useRafInterval(fn, ms, paused) {
3324
3327
  }
3325
3328
 
3326
3329
  /* harmony default export */ const esm_useRafInterval = ((/* unused pure expression or super */ null && (useRafInterval)));
3327
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeState.js
3330
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeState.js
3328
3331
  function useMergeState_extends() {
3329
3332
  useMergeState_extends = Object.assign || function (target) {
3330
3333
  for (var i = 1; i < arguments.length; i++) {
@@ -3381,7 +3384,7 @@ function useMergeState_useMergeState(initialState) {
3381
3384
  }, [setState]);
3382
3385
  return [state, updater];
3383
3386
  }
3384
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3387
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3385
3388
 
3386
3389
  function useMergeStateFromProps(props, gDSFP, initialState) {
3387
3390
  var _useMergeState = useMergeState(initialState),
@@ -3392,7 +3395,7 @@ function useMergeStateFromProps(props, gDSFP, initialState) {
3392
3395
  if (nextState !== null) setState(nextState);
3393
3396
  return [state, setState];
3394
3397
  }
3395
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMounted.js
3398
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
3396
3399
 
3397
3400
  /**
3398
3401
  * Track whether a component is current mounted. Generally less preferable than
@@ -3427,7 +3430,7 @@ function useMounted() {
3427
3430
  }, []);
3428
3431
  return isMounted.current;
3429
3432
  }
3430
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/usePrevious.js
3433
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/usePrevious.js
3431
3434
 
3432
3435
  /**
3433
3436
  * Store the last of some value. Tracked via a `Ref` only updating it
@@ -3454,7 +3457,7 @@ function usePrevious(value) {
3454
3457
  });
3455
3458
  return ref.current;
3456
3459
  }
3457
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useImage.js
3460
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useImage.js
3458
3461
 
3459
3462
  /**
3460
3463
  * Fetch and load an image for programatic use such as in a `<canvas>` element.
@@ -3533,7 +3536,7 @@ function useImage(imageOrUrl, crossOrigin) {
3533
3536
  }, [imageOrUrl, crossOrigin]);
3534
3537
  return state;
3535
3538
  }
3536
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3539
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3537
3540
 
3538
3541
  var isReactNative = typeof __webpack_require__.g !== 'undefined' && // @ts-ignore
3539
3542
  __webpack_require__.g.navigator && // @ts-ignore
@@ -3549,7 +3552,7 @@ var isDOM = typeof document !== 'undefined';
3549
3552
  */
3550
3553
 
3551
3554
  /* harmony default export */ const useIsomorphicEffect = (isDOM || isReactNative ? external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect : external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect);
3552
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useResizeObserver.js
3555
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useResizeObserver.js
3553
3556
 
3554
3557
 
3555
3558
  var targetMap = new WeakMap();
@@ -3602,7 +3605,7 @@ function useResizeObserver(element) {
3602
3605
  }, [element]);
3603
3606
  return rect;
3604
3607
  }
3605
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/index.js
3608
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/index.js
3606
3609
 
3607
3610
 
3608
3611
 
@@ -3776,7 +3779,7 @@ const Anchor = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
3776
3779
  const [buttonProps] = useButtonProps(Object.assign({
3777
3780
  tagName: 'a'
3778
3781
  }, props));
3779
- const handleKeyDown = useEventCallback_useEventCallback(e => {
3782
+ const handleKeyDown = useEventCallback(e => {
3780
3783
  buttonProps.onKeyDown(e);
3781
3784
  onKeyDown == null ? void 0 : onKeyDown(e);
3782
3785
  });
@@ -4815,41 +4818,6 @@ function useUpdateEffect(fn, deps) {
4815
4818
  }
4816
4819
 
4817
4820
  /* harmony default export */ const esm_useUpdateEffect = (useUpdateEffect);
4818
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
4819
-
4820
- /**
4821
- * Track whether a component is current mounted. Generally less preferable than
4822
- * properlly canceling effects so they don't run after a component is unmounted,
4823
- * but helpful in cases where that isn't feasible, such as a `Promise` resolution.
4824
- *
4825
- * @returns a function that returns the current isMounted state of the component
4826
- *
4827
- * ```ts
4828
- * const [data, setData] = useState(null)
4829
- * const isMounted = useMounted()
4830
- *
4831
- * useEffect(() => {
4832
- * fetchdata().then((newData) => {
4833
- * if (isMounted()) {
4834
- * setData(newData);
4835
- * }
4836
- * })
4837
- * })
4838
- * ```
4839
- */
4840
-
4841
- function useMounted_useMounted() {
4842
- var mounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
4843
- var isMounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(function () {
4844
- return mounted.current;
4845
- });
4846
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
4847
- return function () {
4848
- mounted.current = false;
4849
- };
4850
- }, []);
4851
- return isMounted.current;
4852
- }
4853
4821
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useUpdatedRef.js
4854
4822
 
4855
4823
  /**
@@ -4924,7 +4892,7 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
4924
4892
 
4925
4893
 
4926
4894
  function useTimeout() {
4927
- var isMounted = useMounted_useMounted(); // types are confused between node and web here IDK
4895
+ var isMounted = useMounted(); // types are confused between node and web here IDK
4928
4896
 
4929
4897
  var handleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
4930
4898
  useWillUnmount(function () {
@@ -5127,7 +5095,7 @@ const Carousel_propTypes = {
5127
5095
  /**
5128
5096
  * The amount of time to delay between automatically cycling an item. If `null`, carousel will not automatically cycle.
5129
5097
  */
5130
- interval: (prop_types_default()).number,
5098
+ interval: prop_types_default().oneOfType([(prop_types_default()).number, prop_types_default().oneOf([null])]),
5131
5099
 
5132
5100
  /** Whether the carousel should react to keyboard events. */
5133
5101
  keyboard: (prop_types_default()).bool,
@@ -5257,21 +5225,21 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5257
5225
  const [paused, setPaused] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
5258
5226
  const [isSliding, setIsSliding] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
5259
5227
  const [renderedActiveIndex, setRenderedActiveIndex] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(activeIndex || 0);
5228
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
5229
+ if (!isSliding && activeIndex !== renderedActiveIndex) {
5230
+ if (nextDirectionRef.current) {
5231
+ setDirection(nextDirectionRef.current);
5232
+ } else {
5233
+ setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
5234
+ }
5260
5235
 
5261
- if (!isSliding && activeIndex !== renderedActiveIndex) {
5262
- if (nextDirectionRef.current) {
5263
- setDirection(nextDirectionRef.current);
5264
- } else {
5265
- setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
5266
- }
5236
+ if (slide) {
5237
+ setIsSliding(true);
5238
+ }
5267
5239
 
5268
- if (slide) {
5269
- setIsSliding(true);
5240
+ setRenderedActiveIndex(activeIndex || 0);
5270
5241
  }
5271
-
5272
- setRenderedActiveIndex(activeIndex || 0);
5273
- }
5274
-
5242
+ }, [activeIndex, isSliding, renderedActiveIndex, slide]);
5275
5243
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
5276
5244
  if (nextDirectionRef.current) {
5277
5245
  nextDirectionRef.current = null;
@@ -5491,12 +5459,12 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5491
5459
  "aria-current": index === renderedActiveIndex
5492
5460
  }, index, false, {
5493
5461
  fileName: Carousel_jsxFileName,
5494
- lineNumber: 558,
5462
+ lineNumber: 560,
5495
5463
  columnNumber: 15
5496
5464
  }, undefined))
5497
5465
  }, void 0, false, {
5498
5466
  fileName: Carousel_jsxFileName,
5499
- lineNumber: 556,
5467
+ lineNumber: 558,
5500
5468
  columnNumber: 11
5501
5469
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
5502
5470
  className: `${prefix}-inner`,
@@ -5512,7 +5480,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5512
5480
  })
5513
5481
  }, void 0, false, {
5514
5482
  fileName: Carousel_jsxFileName,
5515
- lineNumber: 582,
5483
+ lineNumber: 584,
5516
5484
  columnNumber: 15
5517
5485
  }, undefined) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement(child, {
5518
5486
  className: classnames_default()(child.props.className, isActive && 'active')
@@ -5520,7 +5488,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5520
5488
  })
5521
5489
  }, void 0, false, {
5522
5490
  fileName: Carousel_jsxFileName,
5523
- lineNumber: 577,
5491
+ lineNumber: 579,
5524
5492
  columnNumber: 9
5525
5493
  }, undefined), controls && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(jsx_dev_runtime.Fragment, {
5526
5494
  children: [(wrap || activeIndex !== 0) && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Anchor, {
@@ -5531,12 +5499,12 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5531
5499
  children: prevLabel
5532
5500
  }, void 0, false, {
5533
5501
  fileName: Carousel_jsxFileName,
5534
- lineNumber: 622,
5502
+ lineNumber: 624,
5535
5503
  columnNumber: 19
5536
5504
  }, undefined)]
5537
5505
  }, void 0, true, {
5538
5506
  fileName: Carousel_jsxFileName,
5539
- lineNumber: 619,
5507
+ lineNumber: 621,
5540
5508
  columnNumber: 15
5541
5509
  }, undefined), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Anchor, {
5542
5510
  className: `${prefix}-control-next`,
@@ -5546,18 +5514,18 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5546
5514
  children: nextLabel
5547
5515
  }, void 0, false, {
5548
5516
  fileName: Carousel_jsxFileName,
5549
- lineNumber: 630,
5517
+ lineNumber: 632,
5550
5518
  columnNumber: 19
5551
5519
  }, undefined)]
5552
5520
  }, void 0, true, {
5553
5521
  fileName: Carousel_jsxFileName,
5554
- lineNumber: 627,
5522
+ lineNumber: 629,
5555
5523
  columnNumber: 15
5556
5524
  }, undefined)]
5557
5525
  }, void 0, true)]
5558
5526
  }, void 0, true, {
5559
5527
  fileName: Carousel_jsxFileName,
5560
- lineNumber: 538,
5528
+ lineNumber: 540,
5561
5529
  columnNumber: 7
5562
5530
  }, undefined);
5563
5531
  });
@@ -5575,7 +5543,6 @@ var Col_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/
5575
5543
 
5576
5544
 
5577
5545
 
5578
- const DEVICE_SIZES = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
5579
5546
  const colSize = prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).number, (prop_types_default()).string, prop_types_default().oneOf(['auto'])]);
5580
5547
  const stringOrNumber = prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]);
5581
5548
  const column = prop_types_default().oneOfType([colSize, prop_types_default().shape({
@@ -5639,9 +5606,10 @@ function useCol({
5639
5606
  ...props
5640
5607
  }) {
5641
5608
  bsPrefix = useBootstrapPrefix(bsPrefix, 'col');
5609
+ const breakpoints = useBootstrapBreakpoints();
5642
5610
  const spans = [];
5643
5611
  const classes = [];
5644
- DEVICE_SIZES.forEach(brkPoint => {
5612
+ breakpoints.forEach(brkPoint => {
5645
5613
  const propValue = props[brkPoint];
5646
5614
  delete props[brkPoint];
5647
5615
  let span;
@@ -5686,7 +5654,7 @@ const Col = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
5686
5654
  className: classnames_default()(className, !spans.length && bsPrefix)
5687
5655
  }, void 0, false, {
5688
5656
  fileName: Col_jsxFileName,
5689
- lineNumber: 178,
5657
+ lineNumber: 179,
5690
5658
  columnNumber: 7
5691
5659
  }, undefined);
5692
5660
  });
@@ -5705,7 +5673,7 @@ var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
5705
5673
  function qsa(element, selector) {
5706
5674
  return toArray(element.querySelectorAll(selector));
5707
5675
  }
5708
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useForceUpdate.js
5676
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useForceUpdate.js
5709
5677
 
5710
5678
  /**
5711
5679
  * Returns a function that triggers a component update. the hook equivalent to
@@ -5824,7 +5792,7 @@ function dequal(foo, bar) {
5824
5792
  return foo !== foo && bar !== bar;
5825
5793
  }
5826
5794
 
5827
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useSafeState.js
5795
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useSafeState.js
5828
5796
 
5829
5797
 
5830
5798
 
@@ -7899,6 +7867,11 @@ function isModifiedEvent(event) {
7899
7867
  }
7900
7868
 
7901
7869
  const getRefTarget = ref => ref && ('current' in ref ? ref.current : ref);
7870
+ const InitialTriggerEvents = {
7871
+ click: 'mousedown',
7872
+ mouseup: 'mousedown',
7873
+ pointerup: 'pointerdown'
7874
+ };
7902
7875
  /**
7903
7876
  * The `useClickOutside` hook registers your callback on the document that fires
7904
7877
  * when a pointer event is registered outside of the provided ref or element.
@@ -7915,12 +7888,21 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
7915
7888
  clickTrigger = 'click'
7916
7889
  } = {}) {
7917
7890
  const preventMouseClickOutsideRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
7891
+ const waitingForTrigger = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
7918
7892
  const handleMouseCapture = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(e => {
7919
7893
  const currentTarget = getRefTarget(ref);
7920
7894
  warning_default()(!!currentTarget, 'ClickOutside captured a close event but does not have a ref to compare it to. ' + 'useClickOutside(), should be passed a ref that resolves to a DOM node');
7921
- preventMouseClickOutsideRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains_contains(currentTarget, e.target);
7895
+ preventMouseClickOutsideRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains_contains(currentTarget, e.target) || waitingForTrigger.current;
7896
+ waitingForTrigger.current = false;
7922
7897
  }, [ref]);
7923
- const handleMouse = useEventCallback_useEventCallback(e => {
7898
+ const handleInitialMouse = useEventCallback(e => {
7899
+ const currentTarget = getRefTarget(ref);
7900
+
7901
+ if (currentTarget && contains_contains(currentTarget, e.target)) {
7902
+ waitingForTrigger.current = true;
7903
+ }
7904
+ });
7905
+ const handleMouse = useEventCallback(e => {
7924
7906
  if (!preventMouseClickOutsideRef.current) {
7925
7907
  onClickOutside(e);
7926
7908
  }
@@ -7930,10 +7912,16 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
7930
7912
  const doc = ownerDocument(getRefTarget(ref)); // Store the current event to avoid triggering handlers immediately
7931
7913
  // https://github.com/facebook/react/issues/20074
7932
7914
 
7933
- let currentEvent = (doc.defaultView || window).event; // Use capture for this listener so it fires before React's listener, to
7915
+ let currentEvent = (doc.defaultView || window).event;
7916
+ let removeInitialTriggerListener = null;
7917
+
7918
+ if (InitialTriggerEvents[clickTrigger]) {
7919
+ removeInitialTriggerListener = esm_listen(doc, InitialTriggerEvents[clickTrigger], handleInitialMouse, true);
7920
+ } // Use capture for this listener so it fires before React's listener, to
7934
7921
  // avoid false positives in the contains() check below if the target DOM
7935
7922
  // element is removed in the React mouse callback.
7936
7923
 
7924
+
7937
7925
  const removeMouseCaptureListener = esm_listen(doc, clickTrigger, handleMouseCapture, true);
7938
7926
  const removeMouseListener = esm_listen(doc, clickTrigger, e => {
7939
7927
  // skip if this event is the same as the one running when we added the handlers
@@ -7951,11 +7939,12 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
7951
7939
  }
7952
7940
 
7953
7941
  return () => {
7942
+ removeInitialTriggerListener == null ? void 0 : removeInitialTriggerListener();
7954
7943
  removeMouseCaptureListener();
7955
7944
  removeMouseListener();
7956
7945
  mobileSafariHackListeners.forEach(remove => remove());
7957
7946
  };
7958
- }, [ref, disabled, clickTrigger, handleMouseCapture, handleMouse]);
7947
+ }, [ref, disabled, clickTrigger, handleMouseCapture, handleInitialMouse, handleMouse]);
7959
7948
  }
7960
7949
 
7961
7950
  /* harmony default export */ const esm_useClickOutside = (useClickOutside);
@@ -8360,7 +8349,7 @@ function useDropdownItem({
8360
8349
  } = navContext || {};
8361
8350
  const eventKey = makeEventKey(key, href);
8362
8351
  const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;
8363
- const handleClick = useEventCallback_useEventCallback(event => {
8352
+ const handleClick = useEventCallback(event => {
8364
8353
  if (disabled) return;
8365
8354
  onClick == null ? void 0 : onClick(event);
8366
8355
 
@@ -8479,7 +8468,7 @@ function Dropdown({
8479
8468
  source
8480
8469
  });
8481
8470
  }, [onToggle]);
8482
- const handleSelect = useEventCallback_useEventCallback((key, event) => {
8471
+ const handleSelect = useEventCallback((key, event) => {
8483
8472
  onSelect == null ? void 0 : onSelect(key, event);
8484
8473
  toggle(false, event, 'select');
8485
8474
 
@@ -8501,12 +8490,12 @@ function Dropdown({
8501
8490
  focusInDropdown.current = menuElement.contains(menuElement.ownerDocument.activeElement);
8502
8491
  }
8503
8492
 
8504
- const focusToggle = useEventCallback_useEventCallback(() => {
8493
+ const focusToggle = useEventCallback(() => {
8505
8494
  if (toggleElement && toggleElement.focus) {
8506
8495
  toggleElement.focus();
8507
8496
  }
8508
8497
  });
8509
- const maybeFocusFirst = useEventCallback_useEventCallback(() => {
8498
+ const maybeFocusFirst = useEventCallback(() => {
8510
8499
  const type = lastSourceEvent.current;
8511
8500
  let focusType = focusFirstItemOnShow;
8512
8501
 
@@ -8708,22 +8697,6 @@ const DropdownItem_DropdownItem = /*#__PURE__*/external_root_React_commonjs2_rea
8708
8697
  DropdownItem_DropdownItem.displayName = 'DropdownItem';
8709
8698
  DropdownItem_DropdownItem.propTypes = DropdownItem_propTypes;
8710
8699
  /* harmony default export */ const src_DropdownItem = (DropdownItem_DropdownItem);
8711
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
8712
-
8713
- var useIsomorphicEffect_isReactNative = typeof __webpack_require__.g !== 'undefined' && // @ts-ignore
8714
- __webpack_require__.g.navigator && // @ts-ignore
8715
- __webpack_require__.g.navigator.product === 'ReactNative';
8716
- var useIsomorphicEffect_isDOM = typeof document !== 'undefined';
8717
- /**
8718
- * Is `useLayoutEffect` in a DOM or React Native environment, otherwise resolves to useEffect
8719
- * Only useful to avoid the console warning.
8720
- *
8721
- * PREFER `useEffect` UNLESS YOU KNOW WHAT YOU ARE DOING.
8722
- *
8723
- * @category effects
8724
- */
8725
-
8726
- /* harmony default export */ const esm_useIsomorphicEffect = (useIsomorphicEffect_isDOM || useIsomorphicEffect_isReactNative ? external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect : external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect);
8727
8700
  ;// CONCATENATED MODULE: ./src/InputGroupContext.tsx
8728
8701
 
8729
8702
  const InputGroupContext_context = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -8762,7 +8735,7 @@ const alignPropType = prop_types_default().oneOfType([alignDirection, prop_types
8762
8735
  xl: alignDirection
8763
8736
  }), prop_types_default().shape({
8764
8737
  xxl: alignDirection
8765
- })]);
8738
+ }), (prop_types_default()).object]);
8766
8739
  ;// CONCATENATED MODULE: ./src/DropdownMenu.tsx
8767
8740
  var DropdownMenu_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/DropdownMenu.tsx";
8768
8741
 
@@ -8805,7 +8778,6 @@ const DropdownMenu_propTypes = {
8805
8778
  * @type {"start"|"end"|{ sm: "start"|"end" }|{ md: "start"|"end" }|{ lg: "start"|"end" }|{ xl: "start"|"end"}|{ xxl: "start"|"end"} }
8806
8779
  */
8807
8780
  align: alignPropType,
8808
- onSelect: (prop_types_default()).func,
8809
8781
 
8810
8782
  /**
8811
8783
  * Which event when fired outside the component will cause it to be closed
@@ -8913,7 +8885,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
8913
8885
  placement
8914
8886
  });
8915
8887
  menuProps.ref = esm_useMergedRefs(useWrappedRefWithWarning(ref, 'DropdownMenu'), menuProps.ref);
8916
- esm_useIsomorphicEffect(() => {
8888
+ useIsomorphicEffect(() => {
8917
8889
  // Popper's initial position for the menu is incorrect when
8918
8890
  // renderOnMount=true. Need to call update() to correct it.
8919
8891
  if (show) popper == null ? void 0 : popper.update();
@@ -8949,7 +8921,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
8949
8921
  className: classnames_default()(className, prefix, show && 'show', alignEnd && `${prefix}-end`, variant && `${prefix}-${variant}`, ...alignClasses)
8950
8922
  }, void 0, false, {
8951
8923
  fileName: DropdownMenu_jsxFileName,
8952
- lineNumber: 213,
8924
+ lineNumber: 209,
8953
8925
  columnNumber: 9
8954
8926
  }, undefined);
8955
8927
  });
@@ -10290,7 +10262,6 @@ var Container_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstra
10290
10262
 
10291
10263
 
10292
10264
 
10293
- const containerSizes = prop_types_default().oneOfType([(prop_types_default()).bool, prop_types_default().oneOf(['sm', 'md', 'lg', 'xl', 'xxl'])]);
10294
10265
  const Container_propTypes = {
10295
10266
  /**
10296
10267
  * @default 'container'
@@ -10301,7 +10272,7 @@ const Container_propTypes = {
10301
10272
  * Allow the Container to fill all of its available horizontal space.
10302
10273
  * @type {(true|"sm"|"md"|"lg"|"xl"|"xxl")}
10303
10274
  */
10304
- fluid: containerSizes,
10275
+ fluid: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string]),
10305
10276
 
10306
10277
  /**
10307
10278
  * You can use a custom element for this component
@@ -10327,7 +10298,7 @@ const Container = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
10327
10298
  className: classnames_default()(className, fluid ? `${prefix}${suffix}` : prefix)
10328
10299
  }, void 0, false, {
10329
10300
  fileName: Container_jsxFileName,
10330
- lineNumber: 56,
10301
+ lineNumber: 51,
10331
10302
  columnNumber: 9
10332
10303
  }, undefined);
10333
10304
  });
@@ -10549,47 +10520,6 @@ InputGroup.displayName = 'InputGroup';
10549
10520
  Radio: InputGroupRadio,
10550
10521
  Checkbox: InputGroupCheckbox
10551
10522
  }));
10552
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergedRefs.js
10553
-
10554
-
10555
- var useMergedRefs_toFnRef = function toFnRef(ref) {
10556
- return !ref || typeof ref === 'function' ? ref : function (value) {
10557
- ref.current = value;
10558
- };
10559
- };
10560
-
10561
- function useMergedRefs_mergeRefs(refA, refB) {
10562
- var a = useMergedRefs_toFnRef(refA);
10563
- var b = useMergedRefs_toFnRef(refB);
10564
- return function (value) {
10565
- if (a) a(value);
10566
- if (b) b(value);
10567
- };
10568
- }
10569
- /**
10570
- * Create and returns a single callback ref composed from two other Refs.
10571
- *
10572
- * ```tsx
10573
- * const Button = React.forwardRef((props, ref) => {
10574
- * const [element, attachRef] = useCallbackRef<HTMLButtonElement>();
10575
- * const mergedRef = useMergedRefs(ref, attachRef);
10576
- *
10577
- * return <button ref={mergedRef} {...props}/>
10578
- * })
10579
- * ```
10580
- *
10581
- * @param refA A Callback or mutable Ref
10582
- * @param refB A Callback or mutable Ref
10583
- * @category refs
10584
- */
10585
-
10586
- function useMergedRefs_useMergedRefs(refA, refB) {
10587
- return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
10588
- return useMergedRefs_mergeRefs(refA, refB);
10589
- }, [refA, refB]);
10590
- }
10591
-
10592
- /* harmony default export */ const hooks_esm_useMergedRefs = (useMergedRefs_useMergedRefs);
10593
10523
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/TabContext.js
10594
10524
 
10595
10525
  const TabContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -10620,6 +10550,7 @@ function NavItem_objectWithoutPropertiesLoose(source, excluded) {
10620
10550
 
10621
10551
 
10622
10552
 
10553
+
10623
10554
  function useNavItem({
10624
10555
  key,
10625
10556
  onClick,
@@ -10630,6 +10561,7 @@ function useNavItem({
10630
10561
  }) {
10631
10562
  const parentOnSelect = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(esm_SelectableContext);
10632
10563
  const navContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(esm_NavContext);
10564
+ const tabContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(esm_TabContext);
10633
10565
  let isActive = active;
10634
10566
  const props = {
10635
10567
  role
@@ -10642,8 +10574,18 @@ function useNavItem({
10642
10574
 
10643
10575
  props[dataAttr('event-key')] = key;
10644
10576
  props.id = contextControllerId || id;
10645
- props['aria-controls'] = contextControlledId;
10646
10577
  isActive = active == null && key != null ? navContext.activeKey === key : active;
10578
+ /**
10579
+ * Simplified scenario for `mountOnEnter`.
10580
+ *
10581
+ * While it would make sense to keep 'aria-controls' for tabs that have been mounted at least
10582
+ * once, it would also complicate the code quite a bit, for very little gain.
10583
+ * The following implementation is probably good enough.
10584
+ *
10585
+ * @see https://github.com/react-restart/ui/pull/40#issuecomment-1009971561
10586
+ */
10587
+
10588
+ if (isActive || !(tabContext != null && tabContext.unmountOnExit) && !(tabContext != null && tabContext.mountOnEnter)) props['aria-controls'] = contextControlledId;
10647
10589
  }
10648
10590
 
10649
10591
  if (props.role === 'tab') {
@@ -10659,7 +10601,7 @@ function useNavItem({
10659
10601
  }
10660
10602
  }
10661
10603
 
10662
- props.onClick = useEventCallback_useEventCallback(e => {
10604
+ props.onClick = useEventCallback(e => {
10663
10605
  if (disabled) return;
10664
10606
  onClick == null ? void 0 : onClick(e);
10665
10607
 
@@ -10762,7 +10704,7 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
10762
10704
  if (!currentListNode) return null;
10763
10705
  const items = qsa(currentListNode, `[${EVENT_KEY_ATTR}]:not([aria-disabled=true])`);
10764
10706
  const activeChild = currentListNode.querySelector('[aria-selected=true]');
10765
- if (!activeChild) return null;
10707
+ if (!activeChild || activeChild !== document.activeElement) return null;
10766
10708
  const index = items.indexOf(activeChild);
10767
10709
  if (index === -1) return null;
10768
10710
  let nextIndex = index + offset;
@@ -10816,7 +10758,7 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
10816
10758
 
10817
10759
  needsRefocusRef.current = false;
10818
10760
  });
10819
- const mergedRef = hooks_esm_useMergedRefs(ref, listNode);
10761
+ const mergedRef = esm_useMergedRefs(ref, listNode);
10820
10762
  return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_SelectableContext.Provider, {
10821
10763
  value: handleSelect,
10822
10764
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_NavContext.Provider, {
@@ -10968,7 +10910,7 @@ const ListGroup_propTypes = {
10968
10910
  * makes the list group horizontal starting at that breakpoint’s `min-width`.
10969
10911
  * @type {(true|'sm'|'md'|'lg'|'xl'|'xxl')}
10970
10912
  */
10971
- horizontal: prop_types_default().oneOf([true, 'sm', 'md', 'lg', 'xl', 'xxl']),
10913
+ horizontal: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string]),
10972
10914
 
10973
10915
  /**
10974
10916
  * Generate numbered list items.
@@ -11037,36 +10979,6 @@ function scrollbarSize(recalc) {
11037
10979
 
11038
10980
  return size;
11039
10981
  }
11040
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
11041
-
11042
- /**
11043
- * A convenience hook around `useState` designed to be paired with
11044
- * the component [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) api.
11045
- * Callback refs are useful over `useRef()` when you need to respond to the ref being set
11046
- * instead of lazily accessing it in an effect.
11047
- *
11048
- * ```ts
11049
- * const [element, attachRef] = useCallbackRef<HTMLDivElement>()
11050
- *
11051
- * useEffect(() => {
11052
- * if (!element) return
11053
- *
11054
- * const calendar = new FullCalendar.Calendar(element)
11055
- *
11056
- * return () => {
11057
- * calendar.destroy()
11058
- * }
11059
- * }, [element])
11060
- *
11061
- * return <div ref={attachRef} />
11062
- * ```
11063
- *
11064
- * @category refs
11065
- */
11066
-
11067
- function useCallbackRef_useCallbackRef() {
11068
- return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
11069
- }
11070
10982
  ;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/activeElement.js
11071
10983
 
11072
10984
  /**
@@ -11093,38 +11005,6 @@ function activeElement(doc) {
11093
11005
  return doc.body;
11094
11006
  }
11095
11007
  }
11096
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useUpdatedRef.js
11097
-
11098
- /**
11099
- * Returns a ref that is immediately updated with the new value
11100
- *
11101
- * @param value The Ref value
11102
- * @category refs
11103
- */
11104
-
11105
- function useUpdatedRef_useUpdatedRef(value) {
11106
- var valueRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
11107
- valueRef.current = value;
11108
- return valueRef;
11109
- }
11110
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useWillUnmount.js
11111
-
11112
-
11113
- /**
11114
- * Attach a callback that fires when a component unmounts
11115
- *
11116
- * @param fn Handler to run when the component unmounts
11117
- * @category effects
11118
- */
11119
-
11120
- function useWillUnmount_useWillUnmount(fn) {
11121
- var onUnmount = useUpdatedRef_useUpdatedRef(fn);
11122
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
11123
- return function () {
11124
- return onUnmount.current();
11125
- };
11126
- }, []);
11127
- }
11128
11008
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/getScrollbarWidth.js
11129
11009
  /**
11130
11010
  * Get the width of the vertical window scrollbar if it's visible
@@ -11407,7 +11287,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11407
11287
  setExited(false);
11408
11288
  }
11409
11289
 
11410
- const handleShow = useEventCallback_useEventCallback(() => {
11290
+ const handleShow = useEventCallback(() => {
11411
11291
  modal.add();
11412
11292
  removeKeydownListenerRef.current = esm_listen(document, 'keydown', handleDocumentKeyDown);
11413
11293
  removeFocusListenerRef.current = esm_listen(document, 'focus', // the timeout is necessary b/c this will run before the new modal is mounted
@@ -11429,7 +11309,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11429
11309
  }
11430
11310
  }
11431
11311
  });
11432
- const handleHide = useEventCallback_useEventCallback(() => {
11312
+ const handleHide = useEventCallback(() => {
11433
11313
  modal.remove();
11434
11314
  removeKeydownListenerRef.current == null ? void 0 : removeKeydownListenerRef.current();
11435
11315
  removeFocusListenerRef.current == null ? void 0 : removeFocusListenerRef.current();
@@ -11458,11 +11338,11 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11458
11338
  if (!exited) return;
11459
11339
  handleHide();
11460
11340
  }, [exited, handleHide]);
11461
- useWillUnmount_useWillUnmount(() => {
11341
+ useWillUnmount(() => {
11462
11342
  handleHide();
11463
11343
  }); // --------------------------------
11464
11344
 
11465
- const handleEnforceFocus = useEventCallback_useEventCallback(() => {
11345
+ const handleEnforceFocus = useEventCallback(() => {
11466
11346
  if (!enforceFocus || !isMounted() || !modal.isTopModal()) {
11467
11347
  return;
11468
11348
  }
@@ -11473,7 +11353,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11473
11353
  modal.dialog.focus();
11474
11354
  }
11475
11355
  });
11476
- const handleBackdropClick = useEventCallback_useEventCallback(e => {
11356
+ const handleBackdropClick = useEventCallback(e => {
11477
11357
  if (e.target !== e.currentTarget) {
11478
11358
  return;
11479
11359
  }
@@ -11484,7 +11364,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11484
11364
  onHide();
11485
11365
  }
11486
11366
  });
11487
- const handleDocumentKeyDown = useEventCallback_useEventCallback(e => {
11367
+ const handleDocumentKeyDown = useEventCallback(e => {
11488
11368
  if (keyboard && e.keyCode === 27 && modal.isTopModal()) {
11489
11369
  onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);
11490
11370
 
@@ -11745,12 +11625,12 @@ const ModalDialog = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
11745
11625
  children: children
11746
11626
  }, void 0, false, {
11747
11627
  fileName: ModalDialog_jsxFileName,
11748
- lineNumber: 92,
11628
+ lineNumber: 93,
11749
11629
  columnNumber: 9
11750
11630
  }, undefined)
11751
11631
  }, void 0, false, {
11752
11632
  fileName: ModalDialog_jsxFileName,
11753
- lineNumber: 80,
11633
+ lineNumber: 81,
11754
11634
  columnNumber: 7
11755
11635
  }, undefined);
11756
11636
  });
@@ -12089,7 +11969,9 @@ const Modal_propTypes = {
12089
11969
  * @private
12090
11970
  */
12091
11971
  container: (prop_types_default()).any,
12092
- 'aria-labelledby': (prop_types_default()).any
11972
+ 'aria-labelledby': (prop_types_default()).string,
11973
+ 'aria-describedby': (prop_types_default()).string,
11974
+ 'aria-label': (prop_types_default()).string
12093
11975
  };
12094
11976
  const Modal_defaultProps = {
12095
11977
  show: false,
@@ -12108,7 +11990,7 @@ function DialogTransition(props) {
12108
11990
  timeout: null
12109
11991
  }, void 0, false, {
12110
11992
  fileName: Modal_jsxFileName,
12111
- lineNumber: 235,
11993
+ lineNumber: 238,
12112
11994
  columnNumber: 10
12113
11995
  }, this);
12114
11996
  }
@@ -12118,7 +12000,7 @@ function BackdropTransition(props) {
12118
12000
  timeout: null
12119
12001
  }, void 0, false, {
12120
12002
  fileName: Modal_jsxFileName,
12121
- lineNumber: 239,
12003
+ lineNumber: 242,
12122
12004
  columnNumber: 10
12123
12005
  }, this);
12124
12006
  }
@@ -12134,6 +12016,8 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12134
12016
  children,
12135
12017
  dialogAs: Dialog,
12136
12018
  'aria-labelledby': ariaLabelledby,
12019
+ 'aria-describedby': ariaDescribedby,
12020
+ 'aria-label': ariaLabel,
12137
12021
 
12138
12022
  /* BaseModal props */
12139
12023
  show,
@@ -12163,7 +12047,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12163
12047
  const waitingForMouseUpRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12164
12048
  const ignoreBackdropClickRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12165
12049
  const removeStaticModalAnimationRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
12166
- const [modal, setModalRef] = useCallbackRef_useCallbackRef();
12050
+ const [modal, setModalRef] = useCallbackRef();
12167
12051
  const mergedRef = esm_useMergedRefs(ref, setModalRef);
12168
12052
  const handleHide = useEventCallback(onHide);
12169
12053
  const isRTL = useIsRTL();
@@ -12255,7 +12139,6 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12255
12139
 
12256
12140
  const handleEnter = (node, isAppearing) => {
12257
12141
  if (node) {
12258
- node.style.display = 'block';
12259
12142
  updateDialogStyle(node);
12260
12143
  }
12261
12144
 
@@ -12285,16 +12168,15 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12285
12168
  className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName, !animation && 'show')
12286
12169
  }, void 0, false, {
12287
12170
  fileName: Modal_jsxFileName,
12288
- lineNumber: 430,
12171
+ lineNumber: 434,
12289
12172
  columnNumber: 11
12290
12173
  }, undefined), [animation, backdropClassName, bsPrefix]);
12291
12174
  const baseModalStyle = { ...style,
12292
12175
  ...modalStyle
12293
- }; // Sets `display` always block when `animation` is false
12176
+ }; // If `display` is not set to block, autoFocus inside the modal fails
12177
+ // https://github.com/react-bootstrap/react-bootstrap/issues/5102
12294
12178
 
12295
- if (!animation) {
12296
- baseModalStyle.display = 'block';
12297
- }
12179
+ baseModalStyle.display = 'block';
12298
12180
 
12299
12181
  const renderDialog = dialogProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
12300
12182
  role: "dialog",
@@ -12303,7 +12185,9 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12303
12185
  className: classnames_default()(className, bsPrefix, animateStaticModal && `${bsPrefix}-static`),
12304
12186
  onClick: backdrop ? handleClick : undefined,
12305
12187
  onMouseUp: handleMouseUp,
12188
+ "aria-label": ariaLabel,
12306
12189
  "aria-labelledby": ariaLabelledby,
12190
+ "aria-describedby": ariaDescribedby,
12307
12191
  children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Dialog, { ...props,
12308
12192
  onMouseDown: handleDialogMouseDown,
12309
12193
  className: dialogClassName,
@@ -12311,12 +12195,12 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12311
12195
  children: children
12312
12196
  }, void 0, false, {
12313
12197
  fileName: Modal_jsxFileName,
12314
- lineNumber: 465,
12198
+ lineNumber: 470,
12315
12199
  columnNumber: 11
12316
12200
  }, undefined)
12317
12201
  }, void 0, false, {
12318
12202
  fileName: Modal_jsxFileName,
12319
- lineNumber: 450,
12203
+ lineNumber: 453,
12320
12204
  columnNumber: 9
12321
12205
  }, undefined);
12322
12206
 
@@ -12349,12 +12233,12 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12349
12233
  renderDialog: renderDialog
12350
12234
  }, void 0, false, {
12351
12235
  fileName: Modal_jsxFileName,
12352
- lineNumber: 478,
12236
+ lineNumber: 483,
12353
12237
  columnNumber: 11
12354
12238
  }, undefined)
12355
12239
  }, void 0, false, {
12356
12240
  fileName: Modal_jsxFileName,
12357
- lineNumber: 477,
12241
+ lineNumber: 482,
12358
12242
  columnNumber: 9
12359
12243
  }, undefined);
12360
12244
  });
@@ -12490,6 +12374,11 @@ const Nav_propTypes = {
12490
12374
  */
12491
12375
  activeKey: prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]),
12492
12376
 
12377
+ /**
12378
+ * The default active key that is selected on start.
12379
+ */
12380
+ defaultActiveKey: prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]),
12381
+
12493
12382
  /**
12494
12383
  * Have all `NavItem`s proportionately fill all available width.
12495
12384
  */
@@ -12593,7 +12482,7 @@ const Nav_Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
12593
12482
  ...props
12594
12483
  }, void 0, false, {
12595
12484
  fileName: Nav_jsxFileName,
12596
- lineNumber: 143,
12485
+ lineNumber: 148,
12597
12486
  columnNumber: 5
12598
12487
  }, undefined);
12599
12488
  });
@@ -13293,7 +13182,7 @@ const Navbar_propTypes = {
13293
13182
  * The breakpoint, below which, the Navbar will collapse.
13294
13183
  * When `true` the Navbar will always be expanded regardless of screen size.
13295
13184
  */
13296
- expand: prop_types_default().oneOf([false, true, 'sm', 'md', 'lg', 'xl', 'xxl']).isRequired,
13185
+ expand: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string]).isRequired,
13297
13186
 
13298
13187
  /**
13299
13188
  * A convenience prop for adding `bg-*` utility classes since they are so commonly used here.
@@ -13435,17 +13324,17 @@ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
13435
13324
  className: classnames_default()(className, bsPrefix, expand && expandClass, variant && `${bsPrefix}-${variant}`, bg && `bg-${bg}`, sticky && `sticky-${sticky}`, fixed && `fixed-${fixed}`)
13436
13325
  }, void 0, false, {
13437
13326
  fileName: Navbar_jsxFileName,
13438
- lineNumber: 201,
13327
+ lineNumber: 200,
13439
13328
  columnNumber: 11
13440
13329
  }, undefined)
13441
13330
  }, void 0, false, {
13442
13331
  fileName: Navbar_jsxFileName,
13443
- lineNumber: 200,
13332
+ lineNumber: 199,
13444
13333
  columnNumber: 9
13445
13334
  }, undefined)
13446
13335
  }, void 0, false, {
13447
13336
  fileName: Navbar_jsxFileName,
13448
- lineNumber: 199,
13337
+ lineNumber: 198,
13449
13338
  columnNumber: 7
13450
13339
  }, undefined);
13451
13340
  });
@@ -13599,7 +13488,7 @@ function useRootClose(ref, onRootClose, {
13599
13488
  disabled,
13600
13489
  clickTrigger
13601
13490
  });
13602
- const handleKeyUp = useEventCallback_useEventCallback(e => {
13491
+ const handleKeyUp = useEventCallback(e => {
13603
13492
  if (e.keyCode === escapeKeyCode) {
13604
13493
  onClose(e);
13605
13494
  }
@@ -13653,7 +13542,7 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
13653
13542
  } = props;
13654
13543
  const [rootElement, attachRef] = useCallbackRef();
13655
13544
  const [arrowElement, attachArrowRef] = useCallbackRef();
13656
- const mergedRef = hooks_esm_useMergedRefs(attachRef, outerRef);
13545
+ const mergedRef = esm_useMergedRefs(attachRef, outerRef);
13657
13546
  const container = useWaitForDOMRef(props.container);
13658
13547
  const target = useWaitForDOMRef(props.target);
13659
13548
  const [exited, setExited] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(!props.show);
@@ -13866,7 +13755,7 @@ Popover.defaultProps = Popover_defaultProps;
13866
13755
  // This is meant for internal use.
13867
13756
  // This applies a custom offset to the overlay if it's a popover.
13868
13757
 
13869
- function useOverlayOffset() {
13758
+ function useOverlayOffset(customOffset) {
13870
13759
  const overlayRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
13871
13760
  const popoverClass = useBootstrapPrefix(undefined, 'popover');
13872
13761
  const offset = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
@@ -13874,13 +13763,13 @@ function useOverlayOffset() {
13874
13763
  options: {
13875
13764
  offset: () => {
13876
13765
  if (overlayRef.current && hasClass(overlayRef.current, popoverClass)) {
13877
- return src_Popover.POPPER_OFFSET;
13766
+ return customOffset || src_Popover.POPPER_OFFSET;
13878
13767
  }
13879
13768
 
13880
- return [0, 0];
13769
+ return customOffset || [0, 0];
13881
13770
  }
13882
13771
  }
13883
- }), [popoverClass]);
13772
+ }), [customOffset, popoverClass]);
13884
13773
  return [overlayRef, [offset]];
13885
13774
  }
13886
13775
  ;// CONCATENATED MODULE: ./src/Overlay.tsx
@@ -14003,7 +13892,7 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
14003
13892
  ...outerProps
14004
13893
  }, outerRef) => {
14005
13894
  const popperRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({});
14006
- const [ref, modifiers] = useOverlayOffset();
13895
+ const [ref, modifiers] = useOverlayOffset(outerProps.offset);
14007
13896
  const mergedRef = esm_useMergedRefs(outerRef, ref);
14008
13897
  const actualTransition = transition === true ? src_Fade : transition || undefined;
14009
13898
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Overlay, { ...outerProps,
@@ -14854,7 +14743,6 @@ var Row_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/
14854
14743
 
14855
14744
 
14856
14745
 
14857
- const Row_DEVICE_SIZES = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
14858
14746
  const rowColWidth = prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]);
14859
14747
  const rowColumns = prop_types_default().oneOfType([rowColWidth, prop_types_default().shape({
14860
14748
  cols: rowColWidth
@@ -14922,9 +14810,10 @@ const Row = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
14922
14810
  ...props
14923
14811
  }, ref) => {
14924
14812
  const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
14813
+ const breakpoints = useBootstrapBreakpoints();
14925
14814
  const sizePrefix = `${decoratedBsPrefix}-cols`;
14926
14815
  const classes = [];
14927
- Row_DEVICE_SIZES.forEach(brkPoint => {
14816
+ breakpoints.forEach(brkPoint => {
14928
14817
  const propValue = props[brkPoint];
14929
14818
  delete props[brkPoint];
14930
14819
  let cols;
@@ -14946,7 +14835,7 @@ const Row = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
14946
14835
  className: classnames_default()(className, decoratedBsPrefix, ...classes)
14947
14836
  }, void 0, false, {
14948
14837
  fileName: Row_jsxFileName,
14949
- lineNumber: 139,
14838
+ lineNumber: 141,
14950
14839
  columnNumber: 7
14951
14840
  }, undefined);
14952
14841
  });
@@ -15191,6 +15080,7 @@ SplitButton.displayName = 'SplitButton';
15191
15080
  /* harmony default export */ const src_SSRProvider = (SSRProvider);
15192
15081
  ;// CONCATENATED MODULE: ./src/createUtilityClasses.ts
15193
15082
 
15083
+
15194
15084
  function responsivePropType(propType) {
15195
15085
  return prop_types_default().oneOfType([propType, prop_types_default().shape({
15196
15086
  xs: propType,
@@ -15201,13 +15091,12 @@ function responsivePropType(propType) {
15201
15091
  xxl: propType
15202
15092
  })]);
15203
15093
  }
15204
- const createUtilityClasses_DEVICE_SIZES = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
15205
- function createUtilityClassName(utilityValues) {
15094
+ function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS) {
15206
15095
  const classes = [];
15207
15096
  Object.entries(utilityValues).forEach(([utilName, utilValue]) => {
15208
15097
  if (utilValue != null) {
15209
15098
  if (typeof utilValue === 'object') {
15210
- createUtilityClasses_DEVICE_SIZES.forEach(brkPoint => {
15099
+ breakpoints.forEach(brkPoint => {
15211
15100
  const bpValue = utilValue[brkPoint];
15212
15101
 
15213
15102
  if (bpValue != null) {
@@ -15256,14 +15145,16 @@ const Stack = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
15256
15145
  ...props
15257
15146
  }, ref) => {
15258
15147
  bsPrefix = useBootstrapPrefix(bsPrefix, direction === 'horizontal' ? 'hstack' : 'vstack');
15148
+ const breakpoints = useBootstrapBreakpoints();
15259
15149
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, { ...props,
15260
15150
  ref: ref,
15261
15151
  className: classnames_default()(className, bsPrefix, ...createUtilityClassName({
15262
- gap
15152
+ gap,
15153
+ breakpoints
15263
15154
  }))
15264
15155
  }, void 0, false, {
15265
15156
  fileName: Stack_jsxFileName,
15266
- lineNumber: 51,
15157
+ lineNumber: 52,
15267
15158
  columnNumber: 9
15268
15159
  }, undefined);
15269
15160
  });
@@ -15302,7 +15193,7 @@ function NoopTransition({
15302
15193
 
15303
15194
  /* harmony default export */ const esm_NoopTransition = (NoopTransition);
15304
15195
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/TabPanel.js
15305
- const TabPanel_excluded = ["active", "eventKey", "mountOnEnter", "transition", "unmountOnExit", "role"],
15196
+ const TabPanel_excluded = ["active", "eventKey", "mountOnEnter", "transition", "unmountOnExit", "role", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited"],
15306
15197
  _excluded2 = ["activeKey", "getControlledId", "getControllerId"],
15307
15198
  _excluded3 = ["as"];
15308
15199
 
@@ -15334,7 +15225,13 @@ function useTabPanel(_ref) {
15334
15225
  mountOnEnter,
15335
15226
  transition,
15336
15227
  unmountOnExit,
15337
- role = 'tabpanel'
15228
+ role = 'tabpanel',
15229
+ onEnter,
15230
+ onEntering,
15231
+ onEntered,
15232
+ onExit,
15233
+ onExiting,
15234
+ onExited
15338
15235
  } = _ref,
15339
15236
  props = TabPanel_objectWithoutPropertiesLoose(_ref, TabPanel_excluded);
15340
15237
 
@@ -15346,7 +15243,13 @@ function useTabPanel(_ref) {
15346
15243
  isActive: active,
15347
15244
  mountOnEnter,
15348
15245
  transition,
15349
- unmountOnExit
15246
+ unmountOnExit,
15247
+ onEnter,
15248
+ onEntering,
15249
+ onEntered,
15250
+ onExit,
15251
+ onExiting,
15252
+ onExited
15350
15253
  }];
15351
15254
 
15352
15255
  const {
@@ -15366,7 +15269,13 @@ function useTabPanel(_ref) {
15366
15269
  isActive: active == null && key != null ? makeEventKey(activeKey) === key : active,
15367
15270
  transition: transition || rest.transition,
15368
15271
  mountOnEnter: mountOnEnter != null ? mountOnEnter : rest.mountOnEnter,
15369
- unmountOnExit: unmountOnExit != null ? unmountOnExit : rest.unmountOnExit
15272
+ unmountOnExit: unmountOnExit != null ? unmountOnExit : rest.unmountOnExit,
15273
+ onEnter,
15274
+ onEntering,
15275
+ onEntered,
15276
+ onExit,
15277
+ onExiting,
15278
+ onExited
15370
15279
  }];
15371
15280
  }
15372
15281
  const TabPanel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
@@ -15653,7 +15562,7 @@ const TabPane = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
15653
15562
  onExited,
15654
15563
  mountOnEnter,
15655
15564
  unmountOnExit,
15656
- transition: Transition = esm_NoopTransition
15565
+ transition: Transition = src_Fade
15657
15566
  }] = useTabPanel({ ...props,
15658
15567
  transition: getTabTransitionComponent(transition)
15659
15568
  });
@@ -15727,7 +15636,12 @@ const Tab_propTypes = {
15727
15636
  /**
15728
15637
  * Class to pass to the underlying nav link.
15729
15638
  */
15730
- tabClassName: (prop_types_default()).string
15639
+ tabClassName: (prop_types_default()).string,
15640
+
15641
+ /**
15642
+ * Object containing attributes to pass to underlying nav link.
15643
+ */
15644
+ tabAttrs: (prop_types_default()).object
15731
15645
  };
15732
15646
 
15733
15647
  const Tab = () => {
@@ -15940,6 +15854,7 @@ function renderTab(child) {
15940
15854
  eventKey,
15941
15855
  disabled,
15942
15856
  tabClassName,
15857
+ tabAttrs,
15943
15858
  id
15944
15859
  } = child.props;
15945
15860
 
@@ -15957,6 +15872,7 @@ function renderTab(child) {
15957
15872
  disabled: disabled,
15958
15873
  id: id,
15959
15874
  className: tabClassName,
15875
+ ...tabAttrs,
15960
15876
  children: title
15961
15877
  }, void 0, false, {
15962
15878
  fileName: Tabs_jsxFileName,
@@ -15996,7 +15912,7 @@ const Tabs_Tabs = props => {
15996
15912
  children: map(children, renderTab)
15997
15913
  }, void 0, false, {
15998
15914
  fileName: Tabs_jsxFileName,
15999
- lineNumber: 149,
15915
+ lineNumber: 150,
16000
15916
  columnNumber: 7
16001
15917
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(TabContent, {
16002
15918
  children: map(children, child => {
@@ -16005,21 +15921,22 @@ const Tabs_Tabs = props => {
16005
15921
  delete childProps.title;
16006
15922
  delete childProps.disabled;
16007
15923
  delete childProps.tabClassName;
15924
+ delete childProps.tabAttrs;
16008
15925
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_TabPane, { ...childProps
16009
15926
  }, void 0, false, {
16010
15927
  fileName: Tabs_jsxFileName,
16011
- lineNumber: 161,
15928
+ lineNumber: 163,
16012
15929
  columnNumber: 18
16013
15930
  }, undefined);
16014
15931
  })
16015
15932
  }, void 0, false, {
16016
15933
  fileName: Tabs_jsxFileName,
16017
- lineNumber: 153,
15934
+ lineNumber: 154,
16018
15935
  columnNumber: 7
16019
15936
  }, undefined)]
16020
15937
  }, void 0, true, {
16021
15938
  fileName: Tabs_jsxFileName,
16022
- lineNumber: 141,
15939
+ lineNumber: 142,
16023
15940
  columnNumber: 5
16024
15941
  }, undefined);
16025
15942
  };
@@ -16717,6 +16634,7 @@ Tooltip.displayName = 'Tooltip';
16717
16634
 
16718
16635
 
16719
16636
 
16637
+
16720
16638
 
16721
16639
 
16722
16640
  })();