react-bootstrap 2.1.2 → 2.2.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.
@@ -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,
@@ -715,6 +716,110 @@ if (true) {
715
716
 
716
717
  /***/ }),
717
718
 
719
+ /***/ 926:
720
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
721
+
722
+ "use strict";
723
+ /**
724
+ * Copyright (c) 2013-present, Facebook, Inc.
725
+ *
726
+ * This source code is licensed under the MIT license found in the
727
+ * LICENSE file in the root directory of this source tree.
728
+ */
729
+
730
+
731
+ var ReactPropTypesSecret = __webpack_require__(765);
732
+
733
+ function emptyFunction() {}
734
+
735
+ function emptyFunctionWithReset() {}
736
+
737
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
738
+
739
+ module.exports = function () {
740
+ function shim(props, propName, componentName, location, propFullName, secret) {
741
+ if (secret === ReactPropTypesSecret) {
742
+ // It is still safe when called from React.
743
+ return;
744
+ }
745
+
746
+ var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
747
+ err.name = 'Invariant Violation';
748
+ throw err;
749
+ }
750
+
751
+ ;
752
+ shim.isRequired = shim;
753
+
754
+ function getShim() {
755
+ return shim;
756
+ }
757
+
758
+ ; // Important!
759
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
760
+
761
+ var ReactPropTypes = {
762
+ array: shim,
763
+ bool: shim,
764
+ func: shim,
765
+ number: shim,
766
+ object: shim,
767
+ string: shim,
768
+ symbol: shim,
769
+ any: shim,
770
+ arrayOf: getShim,
771
+ element: shim,
772
+ elementType: shim,
773
+ instanceOf: getShim,
774
+ node: shim,
775
+ objectOf: getShim,
776
+ oneOf: getShim,
777
+ oneOfType: getShim,
778
+ shape: getShim,
779
+ exact: getShim,
780
+ checkPropTypes: emptyFunctionWithReset,
781
+ resetWarningCache: emptyFunction
782
+ };
783
+ ReactPropTypes.PropTypes = ReactPropTypes;
784
+ return ReactPropTypes;
785
+ };
786
+
787
+ /***/ }),
788
+
789
+ /***/ 628:
790
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
791
+
792
+ /**
793
+ * Copyright (c) 2013-present, Facebook, Inc.
794
+ *
795
+ * This source code is licensed under the MIT license found in the
796
+ * LICENSE file in the root directory of this source tree.
797
+ */
798
+ if (false) { var throwOnDirectAccess, ReactIs; } else {
799
+ // By explicitly using `prop-types` you are opting into new production behavior.
800
+ // http://fb.me/prop-types-in-prod
801
+ module.exports = __webpack_require__(926)();
802
+ }
803
+
804
+ /***/ }),
805
+
806
+ /***/ 765:
807
+ /***/ ((module) => {
808
+
809
+ "use strict";
810
+ /**
811
+ * Copyright (c) 2013-present, Facebook, Inc.
812
+ *
813
+ * This source code is licensed under the MIT license found in the
814
+ * LICENSE file in the root directory of this source tree.
815
+ */
816
+
817
+
818
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
819
+ module.exports = ReactPropTypesSecret;
820
+
821
+ /***/ }),
822
+
718
823
  /***/ 955:
719
824
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
720
825
 
@@ -1044,6 +1149,7 @@ __webpack_require__.d(__webpack_exports__, {
1044
1149
  "ModalBody": () => (/* reexport */ ModalBody),
1045
1150
  "ModalDialog": () => (/* reexport */ src_ModalDialog),
1046
1151
  "ModalFooter": () => (/* reexport */ ModalFooter),
1152
+ "ModalHeader": () => (/* reexport */ src_ModalHeader),
1047
1153
  "ModalTitle": () => (/* reexport */ ModalTitle),
1048
1154
  "Nav": () => (/* reexport */ src_Nav),
1049
1155
  "NavDropdown": () => (/* reexport */ src_NavDropdown),
@@ -1097,7 +1203,7 @@ var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__
1097
1203
  // EXTERNAL MODULE: ./node_modules/prop-types/index.js
1098
1204
  var prop_types = __webpack_require__(526);
1099
1205
  var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
1100
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
1206
+ ;// CONCATENATED MODULE: ./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/extends.js
1101
1207
  function extends_extends() {
1102
1208
  extends_extends = Object.assign || function (target) {
1103
1209
  for (var i = 1; i < arguments.length; i++) {
@@ -1115,7 +1221,7 @@ function extends_extends() {
1115
1221
 
1116
1222
  return extends_extends.apply(this, arguments);
1117
1223
  }
1118
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1224
+ ;// CONCATENATED MODULE: ./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1119
1225
  function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
1120
1226
  if (source == null) return {};
1121
1227
  var target = {};
@@ -1563,8 +1669,10 @@ var ThemeProvider_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-boot
1563
1669
 
1564
1670
 
1565
1671
 
1672
+ const DEFAULT_BREAKPOINTS = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
1566
1673
  const ThemeContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext({
1567
- prefixes: {}
1674
+ prefixes: {},
1675
+ breakpoints: DEFAULT_BREAKPOINTS
1568
1676
  });
1569
1677
  const {
1570
1678
  Consumer,
@@ -1573,26 +1681,49 @@ const {
1573
1681
 
1574
1682
  function ThemeProvider({
1575
1683
  prefixes = {},
1684
+ breakpoints = DEFAULT_BREAKPOINTS,
1576
1685
  dir,
1577
1686
  children
1578
1687
  }) {
1579
1688
  const contextValue = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
1580
1689
  prefixes: { ...prefixes
1581
1690
  },
1691
+ breakpoints,
1582
1692
  dir
1583
- }), [prefixes, dir]);
1693
+ }), [prefixes, breakpoints, dir]);
1584
1694
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Provider, {
1585
1695
  value: contextValue,
1586
1696
  children: children
1587
1697
  }, void 0, false, {
1588
1698
  fileName: ThemeProvider_jsxFileName,
1589
- lineNumber: 26,
1699
+ lineNumber: 38,
1590
1700
  columnNumber: 10
1591
1701
  }, this);
1592
1702
  }
1593
1703
 
1594
1704
  ThemeProvider.propTypes = {
1705
+ /**
1706
+ * An object mapping of Bootstrap component classes that
1707
+ * map to a custom class.
1708
+ *
1709
+ * **Note: Changing prefixes is an escape hatch and generally
1710
+ * shouldn't be used.**
1711
+ *
1712
+ * For more information, see [here](/getting-started/theming/#prefixing-components).
1713
+ */
1595
1714
  prefixes: (prop_types_default()).object,
1715
+
1716
+ /**
1717
+ * An array of breakpoints that your application supports.
1718
+ * Defaults to the standard Bootstrap breakpoints.
1719
+ */
1720
+ breakpoints: prop_types_default().arrayOf((prop_types_default()).string),
1721
+
1722
+ /**
1723
+ * Indicates the directionality of the application's text.
1724
+ *
1725
+ * Use `rtl` to set text as "right to left".
1726
+ */
1596
1727
  dir: (prop_types_default()).string
1597
1728
  };
1598
1729
  function useBootstrapPrefix(prefix, defaultPrefix) {
@@ -1601,6 +1732,12 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
1601
1732
  } = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(ThemeContext);
1602
1733
  return prefix || prefixes[defaultPrefix] || defaultPrefix;
1603
1734
  }
1735
+ function useBootstrapBreakpoints() {
1736
+ const {
1737
+ breakpoints
1738
+ } = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(ThemeContext);
1739
+ return breakpoints;
1740
+ }
1604
1741
  function useIsRTL() {
1605
1742
  const {
1606
1743
  dir
@@ -1626,7 +1763,7 @@ function createBootstrapComponent(Component, opts) {
1626
1763
  bsPrefix: bsPrefix
1627
1764
  }, void 0, false, {
1628
1765
  fileName: ThemeProvider_jsxFileName,
1629
- lineNumber: 57,
1766
+ lineNumber: 95,
1630
1767
  columnNumber: 14
1631
1768
  }, this);
1632
1769
  });
@@ -1723,7 +1860,22 @@ function style(node, property) {
1723
1860
  }
1724
1861
 
1725
1862
  /* harmony default export */ const css = (style);
1726
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1863
+ ;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1864
+ function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
1865
+ if (source == null) return {};
1866
+ var target = {};
1867
+ var sourceKeys = Object.keys(source);
1868
+ var key, i;
1869
+
1870
+ for (i = 0; i < sourceKeys.length; i++) {
1871
+ key = sourceKeys[i];
1872
+ if (excluded.indexOf(key) >= 0) continue;
1873
+ target[key] = source[key];
1874
+ }
1875
+
1876
+ return target;
1877
+ }
1878
+ ;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1727
1879
  function _setPrototypeOf(o, p) {
1728
1880
  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
1729
1881
  o.__proto__ = p;
@@ -1732,13 +1884,15 @@ function _setPrototypeOf(o, p) {
1732
1884
 
1733
1885
  return _setPrototypeOf(o, p);
1734
1886
  }
1735
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1887
+ ;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1736
1888
 
1737
1889
  function inheritsLoose_inheritsLoose(subClass, superClass) {
1738
1890
  subClass.prototype = Object.create(superClass.prototype);
1739
1891
  subClass.prototype.constructor = subClass;
1740
1892
  _setPrototypeOf(subClass, superClass);
1741
1893
  }
1894
+ // EXTERNAL MODULE: ./node_modules/react-transition-group/node_modules/prop-types/index.js
1895
+ var node_modules_prop_types = __webpack_require__(628);
1742
1896
  // EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
1743
1897
  var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(156);
1744
1898
  var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default = /*#__PURE__*/__webpack_require__.n(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_);
@@ -2141,7 +2295,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
2141
2295
  _onExiting = _this$props.onExiting,
2142
2296
  _onExited = _this$props.onExited,
2143
2297
  _nodeRef = _this$props.nodeRef,
2144
- childProps = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
2298
+ childProps = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
2145
2299
 
2146
2300
  return (
2147
2301
  /*#__PURE__*/
@@ -3111,7 +3265,7 @@ function useEventCallback(fn) {
3111
3265
  return ref.current && ref.current.apply(ref, arguments);
3112
3266
  }, [ref]);
3113
3267
  }
3114
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCallbackRef.js
3268
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
3115
3269
 
3116
3270
  /**
3117
3271
  * A convenience hook around `useState` designed to be paired with
@@ -3141,37 +3295,7 @@ function useEventCallback(fn) {
3141
3295
  function useCallbackRef() {
3142
3296
  return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
3143
3297
  }
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
3298
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useEventListener.js
3175
3299
 
3176
3300
 
3177
3301
  /**
@@ -3189,7 +3313,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
3189
3313
  capture = false;
3190
3314
  }
3191
3315
 
3192
- var handler = useEventCallback_useEventCallback(listener);
3316
+ var handler = useEventCallback(listener);
3193
3317
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3194
3318
  var target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
3195
3319
  target.addEventListener(event, handler, capture);
@@ -3198,7 +3322,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
3198
3322
  };
3199
3323
  }, [eventTarget]);
3200
3324
  }
3201
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useGlobalListener.js
3325
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useGlobalListener.js
3202
3326
 
3203
3327
 
3204
3328
  /**
@@ -3226,7 +3350,7 @@ function useGlobalListener(event, handler, capture) {
3226
3350
  }, []);
3227
3351
  return useEventListener(documentTarget, event, handler, capture);
3228
3352
  }
3229
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useInterval.js
3353
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useInterval.js
3230
3354
 
3231
3355
 
3232
3356
  /**
@@ -3285,7 +3409,7 @@ function useInterval(fn, ms, paused, runImmediately) {
3285
3409
  }
3286
3410
 
3287
3411
  /* 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
3412
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useRafInterval.js
3289
3413
 
3290
3414
 
3291
3415
 
@@ -3324,7 +3448,7 @@ function useRafInterval(fn, ms, paused) {
3324
3448
  }
3325
3449
 
3326
3450
  /* 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
3451
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeState.js
3328
3452
  function useMergeState_extends() {
3329
3453
  useMergeState_extends = Object.assign || function (target) {
3330
3454
  for (var i = 1; i < arguments.length; i++) {
@@ -3381,7 +3505,7 @@ function useMergeState_useMergeState(initialState) {
3381
3505
  }, [setState]);
3382
3506
  return [state, updater];
3383
3507
  }
3384
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3508
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3385
3509
 
3386
3510
  function useMergeStateFromProps(props, gDSFP, initialState) {
3387
3511
  var _useMergeState = useMergeState(initialState),
@@ -3392,7 +3516,7 @@ function useMergeStateFromProps(props, gDSFP, initialState) {
3392
3516
  if (nextState !== null) setState(nextState);
3393
3517
  return [state, setState];
3394
3518
  }
3395
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMounted.js
3519
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
3396
3520
 
3397
3521
  /**
3398
3522
  * Track whether a component is current mounted. Generally less preferable than
@@ -3427,7 +3551,7 @@ function useMounted() {
3427
3551
  }, []);
3428
3552
  return isMounted.current;
3429
3553
  }
3430
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/usePrevious.js
3554
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/usePrevious.js
3431
3555
 
3432
3556
  /**
3433
3557
  * Store the last of some value. Tracked via a `Ref` only updating it
@@ -3454,7 +3578,7 @@ function usePrevious(value) {
3454
3578
  });
3455
3579
  return ref.current;
3456
3580
  }
3457
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useImage.js
3581
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useImage.js
3458
3582
 
3459
3583
  /**
3460
3584
  * Fetch and load an image for programatic use such as in a `<canvas>` element.
@@ -3533,7 +3657,7 @@ function useImage(imageOrUrl, crossOrigin) {
3533
3657
  }, [imageOrUrl, crossOrigin]);
3534
3658
  return state;
3535
3659
  }
3536
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3660
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3537
3661
 
3538
3662
  var isReactNative = typeof __webpack_require__.g !== 'undefined' && // @ts-ignore
3539
3663
  __webpack_require__.g.navigator && // @ts-ignore
@@ -3549,7 +3673,7 @@ var isDOM = typeof document !== 'undefined';
3549
3673
  */
3550
3674
 
3551
3675
  /* 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
3676
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useResizeObserver.js
3553
3677
 
3554
3678
 
3555
3679
  var targetMap = new WeakMap();
@@ -3602,7 +3726,7 @@ function useResizeObserver(element) {
3602
3726
  }, [element]);
3603
3727
  return rect;
3604
3728
  }
3605
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/index.js
3729
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/index.js
3606
3730
 
3607
3731
 
3608
3732
 
@@ -3776,7 +3900,7 @@ const Anchor = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
3776
3900
  const [buttonProps] = useButtonProps(Object.assign({
3777
3901
  tagName: 'a'
3778
3902
  }, props));
3779
- const handleKeyDown = useEventCallback_useEventCallback(e => {
3903
+ const handleKeyDown = useEventCallback(e => {
3780
3904
  buttonProps.onKeyDown(e);
3781
3905
  onKeyDown == null ? void 0 : onKeyDown(e);
3782
3906
  });
@@ -4815,41 +4939,6 @@ function useUpdateEffect(fn, deps) {
4815
4939
  }
4816
4940
 
4817
4941
  /* 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
4942
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useUpdatedRef.js
4854
4943
 
4855
4944
  /**
@@ -4924,7 +5013,7 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
4924
5013
 
4925
5014
 
4926
5015
  function useTimeout() {
4927
- var isMounted = useMounted_useMounted(); // types are confused between node and web here IDK
5016
+ var isMounted = useMounted(); // types are confused between node and web here IDK
4928
5017
 
4929
5018
  var handleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
4930
5019
  useWillUnmount(function () {
@@ -5575,7 +5664,6 @@ var Col_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/
5575
5664
 
5576
5665
 
5577
5666
 
5578
- const DEVICE_SIZES = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
5579
5667
  const colSize = prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).number, (prop_types_default()).string, prop_types_default().oneOf(['auto'])]);
5580
5668
  const stringOrNumber = prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]);
5581
5669
  const column = prop_types_default().oneOfType([colSize, prop_types_default().shape({
@@ -5639,9 +5727,10 @@ function useCol({
5639
5727
  ...props
5640
5728
  }) {
5641
5729
  bsPrefix = useBootstrapPrefix(bsPrefix, 'col');
5730
+ const breakpoints = useBootstrapBreakpoints();
5642
5731
  const spans = [];
5643
5732
  const classes = [];
5644
- DEVICE_SIZES.forEach(brkPoint => {
5733
+ breakpoints.forEach(brkPoint => {
5645
5734
  const propValue = props[brkPoint];
5646
5735
  delete props[brkPoint];
5647
5736
  let span;
@@ -5686,7 +5775,7 @@ const Col = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
5686
5775
  className: classnames_default()(className, !spans.length && bsPrefix)
5687
5776
  }, void 0, false, {
5688
5777
  fileName: Col_jsxFileName,
5689
- lineNumber: 178,
5778
+ lineNumber: 179,
5690
5779
  columnNumber: 7
5691
5780
  }, undefined);
5692
5781
  });
@@ -5705,7 +5794,7 @@ var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
5705
5794
  function qsa(element, selector) {
5706
5795
  return toArray(element.querySelectorAll(selector));
5707
5796
  }
5708
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useForceUpdate.js
5797
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useForceUpdate.js
5709
5798
 
5710
5799
  /**
5711
5800
  * Returns a function that triggers a component update. the hook equivalent to
@@ -5824,7 +5913,7 @@ function dequal(foo, bar) {
5824
5913
  return foo !== foo && bar !== bar;
5825
5914
  }
5826
5915
 
5827
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useSafeState.js
5916
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useSafeState.js
5828
5917
 
5829
5918
 
5830
5919
 
@@ -7920,7 +8009,7 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
7920
8009
  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
8010
  preventMouseClickOutsideRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains_contains(currentTarget, e.target);
7922
8011
  }, [ref]);
7923
- const handleMouse = useEventCallback_useEventCallback(e => {
8012
+ const handleMouse = useEventCallback(e => {
7924
8013
  if (!preventMouseClickOutsideRef.current) {
7925
8014
  onClickOutside(e);
7926
8015
  }
@@ -8360,7 +8449,7 @@ function useDropdownItem({
8360
8449
  } = navContext || {};
8361
8450
  const eventKey = makeEventKey(key, href);
8362
8451
  const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;
8363
- const handleClick = useEventCallback_useEventCallback(event => {
8452
+ const handleClick = useEventCallback(event => {
8364
8453
  if (disabled) return;
8365
8454
  onClick == null ? void 0 : onClick(event);
8366
8455
 
@@ -8479,7 +8568,7 @@ function Dropdown({
8479
8568
  source
8480
8569
  });
8481
8570
  }, [onToggle]);
8482
- const handleSelect = useEventCallback_useEventCallback((key, event) => {
8571
+ const handleSelect = useEventCallback((key, event) => {
8483
8572
  onSelect == null ? void 0 : onSelect(key, event);
8484
8573
  toggle(false, event, 'select');
8485
8574
 
@@ -8501,12 +8590,12 @@ function Dropdown({
8501
8590
  focusInDropdown.current = menuElement.contains(menuElement.ownerDocument.activeElement);
8502
8591
  }
8503
8592
 
8504
- const focusToggle = useEventCallback_useEventCallback(() => {
8593
+ const focusToggle = useEventCallback(() => {
8505
8594
  if (toggleElement && toggleElement.focus) {
8506
8595
  toggleElement.focus();
8507
8596
  }
8508
8597
  });
8509
- const maybeFocusFirst = useEventCallback_useEventCallback(() => {
8598
+ const maybeFocusFirst = useEventCallback(() => {
8510
8599
  const type = lastSourceEvent.current;
8511
8600
  let focusType = focusFirstItemOnShow;
8512
8601
 
@@ -8708,22 +8797,6 @@ const DropdownItem_DropdownItem = /*#__PURE__*/external_root_React_commonjs2_rea
8708
8797
  DropdownItem_DropdownItem.displayName = 'DropdownItem';
8709
8798
  DropdownItem_DropdownItem.propTypes = DropdownItem_propTypes;
8710
8799
  /* 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
8800
  ;// CONCATENATED MODULE: ./src/InputGroupContext.tsx
8728
8801
 
8729
8802
  const InputGroupContext_context = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -8762,7 +8835,7 @@ const alignPropType = prop_types_default().oneOfType([alignDirection, prop_types
8762
8835
  xl: alignDirection
8763
8836
  }), prop_types_default().shape({
8764
8837
  xxl: alignDirection
8765
- })]);
8838
+ }), (prop_types_default()).object]);
8766
8839
  ;// CONCATENATED MODULE: ./src/DropdownMenu.tsx
8767
8840
  var DropdownMenu_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/DropdownMenu.tsx";
8768
8841
 
@@ -8913,7 +8986,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
8913
8986
  placement
8914
8987
  });
8915
8988
  menuProps.ref = esm_useMergedRefs(useWrappedRefWithWarning(ref, 'DropdownMenu'), menuProps.ref);
8916
- esm_useIsomorphicEffect(() => {
8989
+ useIsomorphicEffect(() => {
8917
8990
  // Popper's initial position for the menu is incorrect when
8918
8991
  // renderOnMount=true. Need to call update() to correct it.
8919
8992
  if (show) popper == null ? void 0 : popper.update();
@@ -10290,7 +10363,6 @@ var Container_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstra
10290
10363
 
10291
10364
 
10292
10365
 
10293
- const containerSizes = prop_types_default().oneOfType([(prop_types_default()).bool, prop_types_default().oneOf(['sm', 'md', 'lg', 'xl', 'xxl'])]);
10294
10366
  const Container_propTypes = {
10295
10367
  /**
10296
10368
  * @default 'container'
@@ -10301,7 +10373,7 @@ const Container_propTypes = {
10301
10373
  * Allow the Container to fill all of its available horizontal space.
10302
10374
  * @type {(true|"sm"|"md"|"lg"|"xl"|"xxl")}
10303
10375
  */
10304
- fluid: containerSizes,
10376
+ fluid: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string]),
10305
10377
 
10306
10378
  /**
10307
10379
  * You can use a custom element for this component
@@ -10327,7 +10399,7 @@ const Container = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
10327
10399
  className: classnames_default()(className, fluid ? `${prefix}${suffix}` : prefix)
10328
10400
  }, void 0, false, {
10329
10401
  fileName: Container_jsxFileName,
10330
- lineNumber: 56,
10402
+ lineNumber: 51,
10331
10403
  columnNumber: 9
10332
10404
  }, undefined);
10333
10405
  });
@@ -10549,47 +10621,6 @@ InputGroup.displayName = 'InputGroup';
10549
10621
  Radio: InputGroupRadio,
10550
10622
  Checkbox: InputGroupCheckbox
10551
10623
  }));
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
10624
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/TabContext.js
10594
10625
 
10595
10626
  const TabContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -10620,6 +10651,7 @@ function NavItem_objectWithoutPropertiesLoose(source, excluded) {
10620
10651
 
10621
10652
 
10622
10653
 
10654
+
10623
10655
  function useNavItem({
10624
10656
  key,
10625
10657
  onClick,
@@ -10630,6 +10662,7 @@ function useNavItem({
10630
10662
  }) {
10631
10663
  const parentOnSelect = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(esm_SelectableContext);
10632
10664
  const navContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(esm_NavContext);
10665
+ const tabContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(esm_TabContext);
10633
10666
  let isActive = active;
10634
10667
  const props = {
10635
10668
  role
@@ -10642,8 +10675,18 @@ function useNavItem({
10642
10675
 
10643
10676
  props[dataAttr('event-key')] = key;
10644
10677
  props.id = contextControllerId || id;
10645
- props['aria-controls'] = contextControlledId;
10646
10678
  isActive = active == null && key != null ? navContext.activeKey === key : active;
10679
+ /**
10680
+ * Simplified scenario for `mountOnEnter`.
10681
+ *
10682
+ * While it would make sense to keep 'aria-controls' for tabs that have been mounted at least
10683
+ * once, it would also complicate the code quite a bit, for very little gain.
10684
+ * The following implementation is probably good enough.
10685
+ *
10686
+ * @see https://github.com/react-restart/ui/pull/40#issuecomment-1009971561
10687
+ */
10688
+
10689
+ if (isActive || !(tabContext != null && tabContext.unmountOnExit) && !(tabContext != null && tabContext.mountOnEnter)) props['aria-controls'] = contextControlledId;
10647
10690
  }
10648
10691
 
10649
10692
  if (props.role === 'tab') {
@@ -10659,7 +10702,7 @@ function useNavItem({
10659
10702
  }
10660
10703
  }
10661
10704
 
10662
- props.onClick = useEventCallback_useEventCallback(e => {
10705
+ props.onClick = useEventCallback(e => {
10663
10706
  if (disabled) return;
10664
10707
  onClick == null ? void 0 : onClick(e);
10665
10708
 
@@ -10762,7 +10805,7 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
10762
10805
  if (!currentListNode) return null;
10763
10806
  const items = qsa(currentListNode, `[${EVENT_KEY_ATTR}]:not([aria-disabled=true])`);
10764
10807
  const activeChild = currentListNode.querySelector('[aria-selected=true]');
10765
- if (!activeChild) return null;
10808
+ if (!activeChild || activeChild !== document.activeElement) return null;
10766
10809
  const index = items.indexOf(activeChild);
10767
10810
  if (index === -1) return null;
10768
10811
  let nextIndex = index + offset;
@@ -10816,7 +10859,7 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
10816
10859
 
10817
10860
  needsRefocusRef.current = false;
10818
10861
  });
10819
- const mergedRef = hooks_esm_useMergedRefs(ref, listNode);
10862
+ const mergedRef = esm_useMergedRefs(ref, listNode);
10820
10863
  return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_SelectableContext.Provider, {
10821
10864
  value: handleSelect,
10822
10865
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_NavContext.Provider, {
@@ -10968,7 +11011,7 @@ const ListGroup_propTypes = {
10968
11011
  * makes the list group horizontal starting at that breakpoint’s `min-width`.
10969
11012
  * @type {(true|'sm'|'md'|'lg'|'xl'|'xxl')}
10970
11013
  */
10971
- horizontal: prop_types_default().oneOf([true, 'sm', 'md', 'lg', 'xl', 'xxl']),
11014
+ horizontal: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string]),
10972
11015
 
10973
11016
  /**
10974
11017
  * Generate numbered list items.
@@ -11037,36 +11080,6 @@ function scrollbarSize(recalc) {
11037
11080
 
11038
11081
  return size;
11039
11082
  }
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
11083
  ;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/activeElement.js
11071
11084
 
11072
11085
  /**
@@ -11093,38 +11106,6 @@ function activeElement(doc) {
11093
11106
  return doc.body;
11094
11107
  }
11095
11108
  }
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
11109
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/getScrollbarWidth.js
11129
11110
  /**
11130
11111
  * Get the width of the vertical window scrollbar if it's visible
@@ -11407,7 +11388,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11407
11388
  setExited(false);
11408
11389
  }
11409
11390
 
11410
- const handleShow = useEventCallback_useEventCallback(() => {
11391
+ const handleShow = useEventCallback(() => {
11411
11392
  modal.add();
11412
11393
  removeKeydownListenerRef.current = esm_listen(document, 'keydown', handleDocumentKeyDown);
11413
11394
  removeFocusListenerRef.current = esm_listen(document, 'focus', // the timeout is necessary b/c this will run before the new modal is mounted
@@ -11429,7 +11410,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11429
11410
  }
11430
11411
  }
11431
11412
  });
11432
- const handleHide = useEventCallback_useEventCallback(() => {
11413
+ const handleHide = useEventCallback(() => {
11433
11414
  modal.remove();
11434
11415
  removeKeydownListenerRef.current == null ? void 0 : removeKeydownListenerRef.current();
11435
11416
  removeFocusListenerRef.current == null ? void 0 : removeFocusListenerRef.current();
@@ -11458,11 +11439,11 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11458
11439
  if (!exited) return;
11459
11440
  handleHide();
11460
11441
  }, [exited, handleHide]);
11461
- useWillUnmount_useWillUnmount(() => {
11442
+ useWillUnmount(() => {
11462
11443
  handleHide();
11463
11444
  }); // --------------------------------
11464
11445
 
11465
- const handleEnforceFocus = useEventCallback_useEventCallback(() => {
11446
+ const handleEnforceFocus = useEventCallback(() => {
11466
11447
  if (!enforceFocus || !isMounted() || !modal.isTopModal()) {
11467
11448
  return;
11468
11449
  }
@@ -11473,7 +11454,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11473
11454
  modal.dialog.focus();
11474
11455
  }
11475
11456
  });
11476
- const handleBackdropClick = useEventCallback_useEventCallback(e => {
11457
+ const handleBackdropClick = useEventCallback(e => {
11477
11458
  if (e.target !== e.currentTarget) {
11478
11459
  return;
11479
11460
  }
@@ -11484,7 +11465,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11484
11465
  onHide();
11485
11466
  }
11486
11467
  });
11487
- const handleDocumentKeyDown = useEventCallback_useEventCallback(e => {
11468
+ const handleDocumentKeyDown = useEventCallback(e => {
11488
11469
  if (keyboard && e.keyCode === 27 && modal.isTopModal()) {
11489
11470
  onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);
11490
11471
 
@@ -11745,12 +11726,12 @@ const ModalDialog = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
11745
11726
  children: children
11746
11727
  }, void 0, false, {
11747
11728
  fileName: ModalDialog_jsxFileName,
11748
- lineNumber: 92,
11729
+ lineNumber: 93,
11749
11730
  columnNumber: 9
11750
11731
  }, undefined)
11751
11732
  }, void 0, false, {
11752
11733
  fileName: ModalDialog_jsxFileName,
11753
- lineNumber: 80,
11734
+ lineNumber: 81,
11754
11735
  columnNumber: 7
11755
11736
  }, undefined);
11756
11737
  });
@@ -12108,7 +12089,7 @@ function DialogTransition(props) {
12108
12089
  timeout: null
12109
12090
  }, void 0, false, {
12110
12091
  fileName: Modal_jsxFileName,
12111
- lineNumber: 235,
12092
+ lineNumber: 236,
12112
12093
  columnNumber: 10
12113
12094
  }, this);
12114
12095
  }
@@ -12118,7 +12099,7 @@ function BackdropTransition(props) {
12118
12099
  timeout: null
12119
12100
  }, void 0, false, {
12120
12101
  fileName: Modal_jsxFileName,
12121
- lineNumber: 239,
12102
+ lineNumber: 240,
12122
12103
  columnNumber: 10
12123
12104
  }, this);
12124
12105
  }
@@ -12163,7 +12144,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12163
12144
  const waitingForMouseUpRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12164
12145
  const ignoreBackdropClickRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12165
12146
  const removeStaticModalAnimationRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
12166
- const [modal, setModalRef] = useCallbackRef_useCallbackRef();
12147
+ const [modal, setModalRef] = useCallbackRef();
12167
12148
  const mergedRef = esm_useMergedRefs(ref, setModalRef);
12168
12149
  const handleHide = useEventCallback(onHide);
12169
12150
  const isRTL = useIsRTL();
@@ -12285,7 +12266,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12285
12266
  className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName, !animation && 'show')
12286
12267
  }, void 0, false, {
12287
12268
  fileName: Modal_jsxFileName,
12288
- lineNumber: 430,
12269
+ lineNumber: 431,
12289
12270
  columnNumber: 11
12290
12271
  }, undefined), [animation, backdropClassName, bsPrefix]);
12291
12272
  const baseModalStyle = { ...style,
@@ -12311,12 +12292,12 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12311
12292
  children: children
12312
12293
  }, void 0, false, {
12313
12294
  fileName: Modal_jsxFileName,
12314
- lineNumber: 465,
12295
+ lineNumber: 466,
12315
12296
  columnNumber: 11
12316
12297
  }, undefined)
12317
12298
  }, void 0, false, {
12318
12299
  fileName: Modal_jsxFileName,
12319
- lineNumber: 450,
12300
+ lineNumber: 451,
12320
12301
  columnNumber: 9
12321
12302
  }, undefined);
12322
12303
 
@@ -12349,12 +12330,12 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12349
12330
  renderDialog: renderDialog
12350
12331
  }, void 0, false, {
12351
12332
  fileName: Modal_jsxFileName,
12352
- lineNumber: 478,
12333
+ lineNumber: 479,
12353
12334
  columnNumber: 11
12354
12335
  }, undefined)
12355
12336
  }, void 0, false, {
12356
12337
  fileName: Modal_jsxFileName,
12357
- lineNumber: 477,
12338
+ lineNumber: 478,
12358
12339
  columnNumber: 9
12359
12340
  }, undefined);
12360
12341
  });
@@ -12490,6 +12471,11 @@ const Nav_propTypes = {
12490
12471
  */
12491
12472
  activeKey: prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]),
12492
12473
 
12474
+ /**
12475
+ * The default active key that is selected on start.
12476
+ */
12477
+ defaultActiveKey: prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]),
12478
+
12493
12479
  /**
12494
12480
  * Have all `NavItem`s proportionately fill all available width.
12495
12481
  */
@@ -12593,7 +12579,7 @@ const Nav_Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
12593
12579
  ...props
12594
12580
  }, void 0, false, {
12595
12581
  fileName: Nav_jsxFileName,
12596
- lineNumber: 143,
12582
+ lineNumber: 148,
12597
12583
  columnNumber: 5
12598
12584
  }, undefined);
12599
12585
  });
@@ -13293,7 +13279,7 @@ const Navbar_propTypes = {
13293
13279
  * The breakpoint, below which, the Navbar will collapse.
13294
13280
  * When `true` the Navbar will always be expanded regardless of screen size.
13295
13281
  */
13296
- expand: prop_types_default().oneOf([false, true, 'sm', 'md', 'lg', 'xl', 'xxl']).isRequired,
13282
+ expand: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string]).isRequired,
13297
13283
 
13298
13284
  /**
13299
13285
  * A convenience prop for adding `bg-*` utility classes since they are so commonly used here.
@@ -13435,17 +13421,17 @@ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
13435
13421
  className: classnames_default()(className, bsPrefix, expand && expandClass, variant && `${bsPrefix}-${variant}`, bg && `bg-${bg}`, sticky && `sticky-${sticky}`, fixed && `fixed-${fixed}`)
13436
13422
  }, void 0, false, {
13437
13423
  fileName: Navbar_jsxFileName,
13438
- lineNumber: 201,
13424
+ lineNumber: 200,
13439
13425
  columnNumber: 11
13440
13426
  }, undefined)
13441
13427
  }, void 0, false, {
13442
13428
  fileName: Navbar_jsxFileName,
13443
- lineNumber: 200,
13429
+ lineNumber: 199,
13444
13430
  columnNumber: 9
13445
13431
  }, undefined)
13446
13432
  }, void 0, false, {
13447
13433
  fileName: Navbar_jsxFileName,
13448
- lineNumber: 199,
13434
+ lineNumber: 198,
13449
13435
  columnNumber: 7
13450
13436
  }, undefined);
13451
13437
  });
@@ -13599,7 +13585,7 @@ function useRootClose(ref, onRootClose, {
13599
13585
  disabled,
13600
13586
  clickTrigger
13601
13587
  });
13602
- const handleKeyUp = useEventCallback_useEventCallback(e => {
13588
+ const handleKeyUp = useEventCallback(e => {
13603
13589
  if (e.keyCode === escapeKeyCode) {
13604
13590
  onClose(e);
13605
13591
  }
@@ -13653,7 +13639,7 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
13653
13639
  } = props;
13654
13640
  const [rootElement, attachRef] = useCallbackRef();
13655
13641
  const [arrowElement, attachArrowRef] = useCallbackRef();
13656
- const mergedRef = hooks_esm_useMergedRefs(attachRef, outerRef);
13642
+ const mergedRef = esm_useMergedRefs(attachRef, outerRef);
13657
13643
  const container = useWaitForDOMRef(props.container);
13658
13644
  const target = useWaitForDOMRef(props.target);
13659
13645
  const [exited, setExited] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(!props.show);
@@ -14854,7 +14840,6 @@ var Row_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/
14854
14840
 
14855
14841
 
14856
14842
 
14857
- const Row_DEVICE_SIZES = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
14858
14843
  const rowColWidth = prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]);
14859
14844
  const rowColumns = prop_types_default().oneOfType([rowColWidth, prop_types_default().shape({
14860
14845
  cols: rowColWidth
@@ -14922,9 +14907,10 @@ const Row = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
14922
14907
  ...props
14923
14908
  }, ref) => {
14924
14909
  const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
14910
+ const breakpoints = useBootstrapBreakpoints();
14925
14911
  const sizePrefix = `${decoratedBsPrefix}-cols`;
14926
14912
  const classes = [];
14927
- Row_DEVICE_SIZES.forEach(brkPoint => {
14913
+ breakpoints.forEach(brkPoint => {
14928
14914
  const propValue = props[brkPoint];
14929
14915
  delete props[brkPoint];
14930
14916
  let cols;
@@ -14946,7 +14932,7 @@ const Row = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
14946
14932
  className: classnames_default()(className, decoratedBsPrefix, ...classes)
14947
14933
  }, void 0, false, {
14948
14934
  fileName: Row_jsxFileName,
14949
- lineNumber: 139,
14935
+ lineNumber: 141,
14950
14936
  columnNumber: 7
14951
14937
  }, undefined);
14952
14938
  });
@@ -15191,6 +15177,7 @@ SplitButton.displayName = 'SplitButton';
15191
15177
  /* harmony default export */ const src_SSRProvider = (SSRProvider);
15192
15178
  ;// CONCATENATED MODULE: ./src/createUtilityClasses.ts
15193
15179
 
15180
+
15194
15181
  function responsivePropType(propType) {
15195
15182
  return prop_types_default().oneOfType([propType, prop_types_default().shape({
15196
15183
  xs: propType,
@@ -15201,13 +15188,12 @@ function responsivePropType(propType) {
15201
15188
  xxl: propType
15202
15189
  })]);
15203
15190
  }
15204
- const createUtilityClasses_DEVICE_SIZES = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
15205
- function createUtilityClassName(utilityValues) {
15191
+ function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS) {
15206
15192
  const classes = [];
15207
15193
  Object.entries(utilityValues).forEach(([utilName, utilValue]) => {
15208
15194
  if (utilValue != null) {
15209
15195
  if (typeof utilValue === 'object') {
15210
- createUtilityClasses_DEVICE_SIZES.forEach(brkPoint => {
15196
+ breakpoints.forEach(brkPoint => {
15211
15197
  const bpValue = utilValue[brkPoint];
15212
15198
 
15213
15199
  if (bpValue != null) {
@@ -15256,14 +15242,16 @@ const Stack = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
15256
15242
  ...props
15257
15243
  }, ref) => {
15258
15244
  bsPrefix = useBootstrapPrefix(bsPrefix, direction === 'horizontal' ? 'hstack' : 'vstack');
15245
+ const breakpoints = useBootstrapBreakpoints();
15259
15246
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, { ...props,
15260
15247
  ref: ref,
15261
15248
  className: classnames_default()(className, bsPrefix, ...createUtilityClassName({
15262
- gap
15249
+ gap,
15250
+ breakpoints
15263
15251
  }))
15264
15252
  }, void 0, false, {
15265
15253
  fileName: Stack_jsxFileName,
15266
- lineNumber: 51,
15254
+ lineNumber: 52,
15267
15255
  columnNumber: 9
15268
15256
  }, undefined);
15269
15257
  });
@@ -15653,7 +15641,7 @@ const TabPane = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
15653
15641
  onExited,
15654
15642
  mountOnEnter,
15655
15643
  unmountOnExit,
15656
- transition: Transition = esm_NoopTransition
15644
+ transition: Transition = src_Fade
15657
15645
  }] = useTabPanel({ ...props,
15658
15646
  transition: getTabTransitionComponent(transition)
15659
15647
  });
@@ -15727,7 +15715,12 @@ const Tab_propTypes = {
15727
15715
  /**
15728
15716
  * Class to pass to the underlying nav link.
15729
15717
  */
15730
- tabClassName: (prop_types_default()).string
15718
+ tabClassName: (prop_types_default()).string,
15719
+
15720
+ /**
15721
+ * Object containing attributes to pass to underlying nav link.
15722
+ */
15723
+ tabAttrs: (prop_types_default()).object
15731
15724
  };
15732
15725
 
15733
15726
  const Tab = () => {
@@ -15940,6 +15933,7 @@ function renderTab(child) {
15940
15933
  eventKey,
15941
15934
  disabled,
15942
15935
  tabClassName,
15936
+ tabAttrs,
15943
15937
  id
15944
15938
  } = child.props;
15945
15939
 
@@ -15957,6 +15951,7 @@ function renderTab(child) {
15957
15951
  disabled: disabled,
15958
15952
  id: id,
15959
15953
  className: tabClassName,
15954
+ ...tabAttrs,
15960
15955
  children: title
15961
15956
  }, void 0, false, {
15962
15957
  fileName: Tabs_jsxFileName,
@@ -15996,7 +15991,7 @@ const Tabs_Tabs = props => {
15996
15991
  children: map(children, renderTab)
15997
15992
  }, void 0, false, {
15998
15993
  fileName: Tabs_jsxFileName,
15999
- lineNumber: 149,
15994
+ lineNumber: 150,
16000
15995
  columnNumber: 7
16001
15996
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(TabContent, {
16002
15997
  children: map(children, child => {
@@ -16005,21 +16000,22 @@ const Tabs_Tabs = props => {
16005
16000
  delete childProps.title;
16006
16001
  delete childProps.disabled;
16007
16002
  delete childProps.tabClassName;
16003
+ delete childProps.tabAttrs;
16008
16004
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_TabPane, { ...childProps
16009
16005
  }, void 0, false, {
16010
16006
  fileName: Tabs_jsxFileName,
16011
- lineNumber: 161,
16007
+ lineNumber: 163,
16012
16008
  columnNumber: 18
16013
16009
  }, undefined);
16014
16010
  })
16015
16011
  }, void 0, false, {
16016
16012
  fileName: Tabs_jsxFileName,
16017
- lineNumber: 153,
16013
+ lineNumber: 154,
16018
16014
  columnNumber: 7
16019
16015
  }, undefined)]
16020
16016
  }, void 0, true, {
16021
16017
  fileName: Tabs_jsxFileName,
16022
- lineNumber: 141,
16018
+ lineNumber: 142,
16023
16019
  columnNumber: 5
16024
16020
  }, undefined);
16025
16021
  };
@@ -16717,6 +16713,7 @@ Tooltip.displayName = 'Tooltip';
16717
16713
 
16718
16714
 
16719
16715
 
16716
+
16720
16717
 
16721
16718
 
16722
16719
  })();