react-bootstrap 2.3.0 → 2.5.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/cjs/Col.js +2 -1
  2. package/cjs/Form.d.ts +14 -13
  3. package/cjs/FormCheck.d.ts +1 -0
  4. package/cjs/FormCheck.js +2 -1
  5. package/cjs/Navbar.d.ts +1 -1
  6. package/cjs/Navbar.js +3 -2
  7. package/cjs/NavbarContext.d.ts +1 -0
  8. package/cjs/NavbarOffcanvas.d.ts +2 -1
  9. package/cjs/Offcanvas.d.ts +1 -0
  10. package/cjs/Offcanvas.js +32 -31
  11. package/cjs/Overlay.d.ts +2 -7
  12. package/cjs/Overlay.js +18 -1
  13. package/cjs/Popover.d.ts +2 -2
  14. package/cjs/Row.js +2 -1
  15. package/cjs/Stack.js +3 -1
  16. package/cjs/Table.d.ts +1 -1
  17. package/cjs/Table.js +1 -1
  18. package/cjs/ThemeProvider.d.ts +4 -1
  19. package/cjs/ThemeProvider.js +16 -3
  20. package/cjs/ToastContainer.d.ts +1 -0
  21. package/cjs/ToastContainer.js +2 -1
  22. package/cjs/ToggleButtonGroup.js +1 -1
  23. package/cjs/Tooltip.d.ts +2 -2
  24. package/cjs/TransitionWrapper.d.ts +7 -1
  25. package/cjs/createUtilityClasses.d.ts +1 -1
  26. package/cjs/createUtilityClasses.js +2 -2
  27. package/cjs/getTabTransitionComponent.js +3 -1
  28. package/cjs/types.d.ts +7 -0
  29. package/dist/react-bootstrap.js +182 -309
  30. package/dist/react-bootstrap.min.js +1 -1
  31. package/esm/Col.js +3 -2
  32. package/esm/Form.d.ts +14 -13
  33. package/esm/FormCheck.d.ts +1 -0
  34. package/esm/FormCheck.js +2 -1
  35. package/esm/Navbar.d.ts +1 -1
  36. package/esm/Navbar.js +3 -2
  37. package/esm/NavbarContext.d.ts +1 -0
  38. package/esm/NavbarOffcanvas.d.ts +2 -1
  39. package/esm/Offcanvas.d.ts +1 -0
  40. package/esm/Offcanvas.js +34 -31
  41. package/esm/Overlay.d.ts +2 -7
  42. package/esm/Overlay.js +15 -1
  43. package/esm/Popover.d.ts +2 -2
  44. package/esm/Row.js +3 -2
  45. package/esm/Stack.js +4 -2
  46. package/esm/Table.d.ts +1 -1
  47. package/esm/Table.js +1 -1
  48. package/esm/ThemeProvider.d.ts +4 -1
  49. package/esm/ThemeProvider.js +12 -2
  50. package/esm/ToastContainer.d.ts +1 -0
  51. package/esm/ToastContainer.js +2 -1
  52. package/esm/ToggleButtonGroup.js +1 -1
  53. package/esm/Tooltip.d.ts +2 -2
  54. package/esm/TransitionWrapper.d.ts +7 -1
  55. package/esm/createUtilityClasses.d.ts +1 -1
  56. package/esm/createUtilityClasses.js +3 -3
  57. package/esm/getTabTransitionComponent.js +2 -1
  58. package/esm/types.d.ts +7 -0
  59. package/package.json +1 -1
@@ -7,7 +7,7 @@
7
7
  exports["ReactBootstrap"] = factory(require("react"), require("react-dom"));
8
8
  else
9
9
  root["ReactBootstrap"] = factory(root["React"], root["ReactDOM"]);
10
- })(self, function(__WEBPACK_EXTERNAL_MODULE__787__, __WEBPACK_EXTERNAL_MODULE__156__) {
10
+ })(self, (__WEBPACK_EXTERNAL_MODULE__787__, __WEBPACK_EXTERNAL_MODULE__156__) => {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
@@ -1566,9 +1566,11 @@ var ThemeProvider_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-boot
1566
1566
 
1567
1567
 
1568
1568
  const DEFAULT_BREAKPOINTS = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
1569
+ const DEFAULT_MIN_BREAKPOINT = 'xs';
1569
1570
  const ThemeContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext({
1570
1571
  prefixes: {},
1571
- breakpoints: DEFAULT_BREAKPOINTS
1572
+ breakpoints: DEFAULT_BREAKPOINTS,
1573
+ minBreakpoint: DEFAULT_MIN_BREAKPOINT
1572
1574
  });
1573
1575
  const {
1574
1576
  Consumer,
@@ -1578,6 +1580,7 @@ const {
1578
1580
  function ThemeProvider({
1579
1581
  prefixes = {},
1580
1582
  breakpoints = DEFAULT_BREAKPOINTS,
1583
+ minBreakpoint = DEFAULT_MIN_BREAKPOINT,
1581
1584
  dir,
1582
1585
  children
1583
1586
  }) {
@@ -1585,14 +1588,15 @@ function ThemeProvider({
1585
1588
  prefixes: { ...prefixes
1586
1589
  },
1587
1590
  breakpoints,
1591
+ minBreakpoint,
1588
1592
  dir
1589
- }), [prefixes, breakpoints, dir]);
1593
+ }), [prefixes, breakpoints, minBreakpoint, dir]);
1590
1594
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Provider, {
1591
1595
  value: contextValue,
1592
1596
  children: children
1593
1597
  }, void 0, false, {
1594
1598
  fileName: ThemeProvider_jsxFileName,
1595
- lineNumber: 38,
1599
+ lineNumber: 43,
1596
1600
  columnNumber: 10
1597
1601
  }, this);
1598
1602
  }
@@ -1615,6 +1619,12 @@ ThemeProvider.propTypes = {
1615
1619
  */
1616
1620
  breakpoints: prop_types_default().arrayOf((prop_types_default()).string),
1617
1621
 
1622
+ /**
1623
+ * The minimum breakpoint used by your application.
1624
+ * Defaults to the smallest of the standard Bootstrap breakpoints.
1625
+ */
1626
+ minBreakpoint: (prop_types_default()).string,
1627
+
1618
1628
  /**
1619
1629
  * Indicates the directionality of the application's text.
1620
1630
  *
@@ -1634,6 +1644,12 @@ function useBootstrapBreakpoints() {
1634
1644
  } = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(ThemeContext);
1635
1645
  return breakpoints;
1636
1646
  }
1647
+ function useBootstrapMinBreakpoint() {
1648
+ const {
1649
+ minBreakpoint
1650
+ } = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(ThemeContext);
1651
+ return minBreakpoint;
1652
+ }
1637
1653
  function useIsRTL() {
1638
1654
  const {
1639
1655
  dir
@@ -1659,7 +1675,7 @@ function createBootstrapComponent(Component, opts) {
1659
1675
  bsPrefix: bsPrefix
1660
1676
  }, void 0, false, {
1661
1677
  fileName: ThemeProvider_jsxFileName,
1662
- lineNumber: 95,
1678
+ lineNumber: 111,
1663
1679
  columnNumber: 14
1664
1680
  }, this);
1665
1681
  });
@@ -3144,7 +3160,7 @@ function useEventCallback(fn) {
3144
3160
  return ref.current && ref.current.apply(ref, arguments);
3145
3161
  }, [ref]);
3146
3162
  }
3147
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCallbackRef.js
3163
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
3148
3164
 
3149
3165
  /**
3150
3166
  * A convenience hook around `useState` designed to be paired with
@@ -3174,37 +3190,7 @@ function useEventCallback(fn) {
3174
3190
  function useCallbackRef() {
3175
3191
  return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
3176
3192
  }
3177
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCommittedRef.js
3178
-
3179
- /**
3180
- * Creates a `Ref` whose value is updated in an effect, ensuring the most recent
3181
- * value is the one rendered with. Generally only required for Concurrent mode usage
3182
- * where previous work in `render()` may be discarded before being used.
3183
- *
3184
- * This is safe to access in an event handler.
3185
- *
3186
- * @param value The `Ref` value
3187
- */
3188
-
3189
- function esm_useCommittedRef_useCommittedRef(value) {
3190
- var ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
3191
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3192
- ref.current = value;
3193
- }, [value]);
3194
- return ref;
3195
- }
3196
-
3197
- /* harmony default export */ const hooks_esm_useCommittedRef = (esm_useCommittedRef_useCommittedRef);
3198
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useEventCallback.js
3199
-
3200
-
3201
- function useEventCallback_useEventCallback(fn) {
3202
- var ref = hooks_esm_useCommittedRef(fn);
3203
- return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function () {
3204
- return ref.current && ref.current.apply(ref, arguments);
3205
- }, [ref]);
3206
- }
3207
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useEventListener.js
3193
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useEventListener.js
3208
3194
 
3209
3195
 
3210
3196
  /**
@@ -3222,7 +3208,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
3222
3208
  capture = false;
3223
3209
  }
3224
3210
 
3225
- var handler = useEventCallback_useEventCallback(listener);
3211
+ var handler = useEventCallback(listener);
3226
3212
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3227
3213
  var target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
3228
3214
  target.addEventListener(event, handler, capture);
@@ -3231,7 +3217,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
3231
3217
  };
3232
3218
  }, [eventTarget]);
3233
3219
  }
3234
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useGlobalListener.js
3220
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useGlobalListener.js
3235
3221
 
3236
3222
 
3237
3223
  /**
@@ -3259,7 +3245,7 @@ function useGlobalListener(event, handler, capture) {
3259
3245
  }, []);
3260
3246
  return useEventListener(documentTarget, event, handler, capture);
3261
3247
  }
3262
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useInterval.js
3248
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useInterval.js
3263
3249
 
3264
3250
 
3265
3251
  /**
@@ -3318,7 +3304,7 @@ function useInterval(fn, ms, paused, runImmediately) {
3318
3304
  }
3319
3305
 
3320
3306
  /* harmony default export */ const esm_useInterval = ((/* unused pure expression or super */ null && (useInterval)));
3321
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useRafInterval.js
3307
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useRafInterval.js
3322
3308
 
3323
3309
 
3324
3310
 
@@ -3357,7 +3343,7 @@ function useRafInterval(fn, ms, paused) {
3357
3343
  }
3358
3344
 
3359
3345
  /* harmony default export */ const esm_useRafInterval = ((/* unused pure expression or super */ null && (useRafInterval)));
3360
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeState.js
3346
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeState.js
3361
3347
  function useMergeState_extends() {
3362
3348
  useMergeState_extends = Object.assign || function (target) {
3363
3349
  for (var i = 1; i < arguments.length; i++) {
@@ -3414,7 +3400,7 @@ function useMergeState_useMergeState(initialState) {
3414
3400
  }, [setState]);
3415
3401
  return [state, updater];
3416
3402
  }
3417
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3403
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3418
3404
 
3419
3405
  function useMergeStateFromProps(props, gDSFP, initialState) {
3420
3406
  var _useMergeState = useMergeState(initialState),
@@ -3425,7 +3411,7 @@ function useMergeStateFromProps(props, gDSFP, initialState) {
3425
3411
  if (nextState !== null) setState(nextState);
3426
3412
  return [state, setState];
3427
3413
  }
3428
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMounted.js
3414
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
3429
3415
 
3430
3416
  /**
3431
3417
  * Track whether a component is current mounted. Generally less preferable than
@@ -3454,13 +3440,14 @@ function useMounted() {
3454
3440
  return mounted.current;
3455
3441
  });
3456
3442
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3443
+ mounted.current = true;
3457
3444
  return function () {
3458
3445
  mounted.current = false;
3459
3446
  };
3460
3447
  }, []);
3461
3448
  return isMounted.current;
3462
3449
  }
3463
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/usePrevious.js
3450
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/usePrevious.js
3464
3451
 
3465
3452
  /**
3466
3453
  * Store the last of some value. Tracked via a `Ref` only updating it
@@ -3487,7 +3474,7 @@ function usePrevious(value) {
3487
3474
  });
3488
3475
  return ref.current;
3489
3476
  }
3490
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useImage.js
3477
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useImage.js
3491
3478
 
3492
3479
  /**
3493
3480
  * Fetch and load an image for programatic use such as in a `<canvas>` element.
@@ -3566,7 +3553,7 @@ function useImage(imageOrUrl, crossOrigin) {
3566
3553
  }, [imageOrUrl, crossOrigin]);
3567
3554
  return state;
3568
3555
  }
3569
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3556
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3570
3557
 
3571
3558
  var isReactNative = typeof __webpack_require__.g !== 'undefined' && // @ts-ignore
3572
3559
  __webpack_require__.g.navigator && // @ts-ignore
@@ -3582,7 +3569,7 @@ var isDOM = typeof document !== 'undefined';
3582
3569
  */
3583
3570
 
3584
3571
  /* 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);
3585
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useResizeObserver.js
3572
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useResizeObserver.js
3586
3573
 
3587
3574
 
3588
3575
  var targetMap = new WeakMap();
@@ -3635,7 +3622,7 @@ function useResizeObserver(element) {
3635
3622
  }, [element]);
3636
3623
  return rect;
3637
3624
  }
3638
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/index.js
3625
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/index.js
3639
3626
 
3640
3627
 
3641
3628
 
@@ -3809,7 +3796,7 @@ const Anchor = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
3809
3796
  const [buttonProps] = useButtonProps(Object.assign({
3810
3797
  tagName: 'a'
3811
3798
  }, props));
3812
- const handleKeyDown = useEventCallback_useEventCallback(e => {
3799
+ const handleKeyDown = useEventCallback(e => {
3813
3800
  buttonProps.onKeyDown(e);
3814
3801
  onKeyDown == null ? void 0 : onKeyDown(e);
3815
3802
  });
@@ -4848,42 +4835,6 @@ function useUpdateEffect(fn, deps) {
4848
4835
  }
4849
4836
 
4850
4837
  /* harmony default export */ const esm_useUpdateEffect = (useUpdateEffect);
4851
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
4852
-
4853
- /**
4854
- * Track whether a component is current mounted. Generally less preferable than
4855
- * properlly canceling effects so they don't run after a component is unmounted,
4856
- * but helpful in cases where that isn't feasible, such as a `Promise` resolution.
4857
- *
4858
- * @returns a function that returns the current isMounted state of the component
4859
- *
4860
- * ```ts
4861
- * const [data, setData] = useState(null)
4862
- * const isMounted = useMounted()
4863
- *
4864
- * useEffect(() => {
4865
- * fetchdata().then((newData) => {
4866
- * if (isMounted()) {
4867
- * setData(newData);
4868
- * }
4869
- * })
4870
- * })
4871
- * ```
4872
- */
4873
-
4874
- function useMounted_useMounted() {
4875
- var mounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
4876
- var isMounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(function () {
4877
- return mounted.current;
4878
- });
4879
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
4880
- mounted.current = true;
4881
- return function () {
4882
- mounted.current = false;
4883
- };
4884
- }, []);
4885
- return isMounted.current;
4886
- }
4887
4838
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useUpdatedRef.js
4888
4839
 
4889
4840
  /**
@@ -4958,7 +4909,7 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
4958
4909
 
4959
4910
 
4960
4911
  function useTimeout() {
4961
- var isMounted = useMounted_useMounted(); // types are confused between node and web here IDK
4912
+ var isMounted = useMounted(); // types are confused between node and web here IDK
4962
4913
 
4963
4914
  var handleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
4964
4915
  useWillUnmount(function () {
@@ -5673,6 +5624,7 @@ function useCol({
5673
5624
  }) {
5674
5625
  bsPrefix = useBootstrapPrefix(bsPrefix, 'col');
5675
5626
  const breakpoints = useBootstrapBreakpoints();
5627
+ const minBreakpoint = useBootstrapMinBreakpoint();
5676
5628
  const spans = [];
5677
5629
  const classes = [];
5678
5630
  breakpoints.forEach(brkPoint => {
@@ -5692,7 +5644,7 @@ function useCol({
5692
5644
  span = propValue;
5693
5645
  }
5694
5646
 
5695
- const infix = brkPoint !== 'xs' ? `-${brkPoint}` : '';
5647
+ const infix = brkPoint !== minBreakpoint ? `-${brkPoint}` : '';
5696
5648
  if (span) spans.push(span === true ? `${bsPrefix}${infix}` : `${bsPrefix}${infix}-${span}`);
5697
5649
  if (order != null) classes.push(`order${infix}-${order}`);
5698
5650
  if (offset != null) classes.push(`offset${infix}-${offset}`);
@@ -5720,7 +5672,7 @@ const Col = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
5720
5672
  className: classnames_default()(className, !spans.length && bsPrefix)
5721
5673
  }, void 0, false, {
5722
5674
  fileName: Col_jsxFileName,
5723
- lineNumber: 179,
5675
+ lineNumber: 184,
5724
5676
  columnNumber: 7
5725
5677
  }, undefined);
5726
5678
  });
@@ -5739,7 +5691,7 @@ var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
5739
5691
  function qsa(element, selector) {
5740
5692
  return toArray(element.querySelectorAll(selector));
5741
5693
  }
5742
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useForceUpdate.js
5694
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useForceUpdate.js
5743
5695
 
5744
5696
  /**
5745
5697
  * Returns a function that triggers a component update. the hook equivalent to
@@ -5858,7 +5810,7 @@ function dequal(foo, bar) {
5858
5810
  return foo !== foo && bar !== bar;
5859
5811
  }
5860
5812
 
5861
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useSafeState.js
5813
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useSafeState.js
5862
5814
 
5863
5815
 
5864
5816
 
@@ -7961,14 +7913,14 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
7961
7913
  preventMouseClickOutsideRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains_contains(currentTarget, e.target) || waitingForTrigger.current;
7962
7914
  waitingForTrigger.current = false;
7963
7915
  }, [ref]);
7964
- const handleInitialMouse = useEventCallback_useEventCallback(e => {
7916
+ const handleInitialMouse = useEventCallback(e => {
7965
7917
  const currentTarget = getRefTarget(ref);
7966
7918
 
7967
7919
  if (currentTarget && contains_contains(currentTarget, e.target)) {
7968
7920
  waitingForTrigger.current = true;
7969
7921
  }
7970
7922
  });
7971
- const handleMouse = useEventCallback_useEventCallback(e => {
7923
+ const handleMouse = useEventCallback(e => {
7972
7924
  if (!preventMouseClickOutsideRef.current) {
7973
7925
  onClickOutside(e);
7974
7926
  }
@@ -8415,7 +8367,7 @@ function useDropdownItem({
8415
8367
  } = navContext || {};
8416
8368
  const eventKey = makeEventKey(key, href);
8417
8369
  const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;
8418
- const handleClick = useEventCallback_useEventCallback(event => {
8370
+ const handleClick = useEventCallback(event => {
8419
8371
  if (disabled) return;
8420
8372
  onClick == null ? void 0 : onClick(event);
8421
8373
 
@@ -8534,7 +8486,7 @@ function Dropdown({
8534
8486
  source
8535
8487
  });
8536
8488
  }, [onToggle]);
8537
- const handleSelect = useEventCallback_useEventCallback((key, event) => {
8489
+ const handleSelect = useEventCallback((key, event) => {
8538
8490
  onSelect == null ? void 0 : onSelect(key, event);
8539
8491
  toggle(false, event, 'select');
8540
8492
 
@@ -8556,12 +8508,12 @@ function Dropdown({
8556
8508
  focusInDropdown.current = menuElement.contains(menuElement.ownerDocument.activeElement);
8557
8509
  }
8558
8510
 
8559
- const focusToggle = useEventCallback_useEventCallback(() => {
8511
+ const focusToggle = useEventCallback(() => {
8560
8512
  if (toggleElement && toggleElement.focus) {
8561
8513
  toggleElement.focus();
8562
8514
  }
8563
8515
  });
8564
- const maybeFocusFirst = useEventCallback_useEventCallback(() => {
8516
+ const maybeFocusFirst = useEventCallback(() => {
8565
8517
  const type = lastSourceEvent.current;
8566
8518
  let focusType = focusFirstItemOnShow;
8567
8519
 
@@ -8763,22 +8715,6 @@ const DropdownItem_DropdownItem = /*#__PURE__*/external_root_React_commonjs2_rea
8763
8715
  DropdownItem_DropdownItem.displayName = 'DropdownItem';
8764
8716
  DropdownItem_DropdownItem.propTypes = DropdownItem_propTypes;
8765
8717
  /* harmony default export */ const src_DropdownItem = (DropdownItem_DropdownItem);
8766
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
8767
-
8768
- var useIsomorphicEffect_isReactNative = typeof __webpack_require__.g !== 'undefined' && // @ts-ignore
8769
- __webpack_require__.g.navigator && // @ts-ignore
8770
- __webpack_require__.g.navigator.product === 'ReactNative';
8771
- var useIsomorphicEffect_isDOM = typeof document !== 'undefined';
8772
- /**
8773
- * Is `useLayoutEffect` in a DOM or React Native environment, otherwise resolves to useEffect
8774
- * Only useful to avoid the console warning.
8775
- *
8776
- * PREFER `useEffect` UNLESS YOU KNOW WHAT YOU ARE DOING.
8777
- *
8778
- * @category effects
8779
- */
8780
-
8781
- /* 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);
8782
8718
  ;// CONCATENATED MODULE: ./src/InputGroupContext.tsx
8783
8719
 
8784
8720
  const InputGroupContext_context = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -8967,7 +8903,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
8967
8903
  placement
8968
8904
  });
8969
8905
  menuProps.ref = esm_useMergedRefs(useWrappedRefWithWarning(ref, 'DropdownMenu'), menuProps.ref);
8970
- esm_useIsomorphicEffect(() => {
8906
+ useIsomorphicEffect(() => {
8971
8907
  // Popper's initial position for the menu is incorrect when
8972
8908
  // renderOnMount=true. Need to call update() to correct it.
8973
8909
  if (show) popper == null ? void 0 : popper.update();
@@ -9152,11 +9088,8 @@ const Dropdown_propTypes = {
9152
9088
  *
9153
9089
  * ```js
9154
9090
  * function(
9155
- * isOpen: boolean,
9156
- * event: SyntheticEvent,
9157
- * metadata: {
9158
- * source: 'select' | 'click' | 'rootClose' | 'keydown'
9159
- * }
9091
+ * nextShow: boolean,
9092
+ * meta: ToggleMetadata,
9160
9093
  * ): void
9161
9094
  * ```
9162
9095
  *
@@ -9254,17 +9187,17 @@ const Dropdown_Dropdown = /*#__PURE__*/external_root_React_commonjs2_react_commo
9254
9187
  className: classnames_default()(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'end' && 'dropend', drop === 'start' && 'dropstart')
9255
9188
  }, void 0, false, {
9256
9189
  fileName: Dropdown_jsxFileName,
9257
- lineNumber: 205,
9190
+ lineNumber: 202,
9258
9191
  columnNumber: 13
9259
9192
  }, undefined)
9260
9193
  }, void 0, false, {
9261
9194
  fileName: Dropdown_jsxFileName,
9262
- lineNumber: 194,
9195
+ lineNumber: 191,
9263
9196
  columnNumber: 9
9264
9197
  }, undefined)
9265
9198
  }, void 0, false, {
9266
9199
  fileName: Dropdown_jsxFileName,
9267
- lineNumber: 193,
9200
+ lineNumber: 190,
9268
9201
  columnNumber: 7
9269
9202
  }, undefined);
9270
9203
  });
@@ -9617,6 +9550,11 @@ const FormCheck_propTypes = {
9617
9550
  */
9618
9551
  inline: (prop_types_default()).bool,
9619
9552
 
9553
+ /**
9554
+ * Put your checkboxes, radios, and switches on the opposite side.
9555
+ */
9556
+ reverse: (prop_types_default()).bool,
9557
+
9620
9558
  /**
9621
9559
  * Disables the control.
9622
9560
  */
@@ -9655,6 +9593,7 @@ const FormCheck = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9655
9593
  bsPrefix,
9656
9594
  bsSwitchPrefix,
9657
9595
  inline = false,
9596
+ reverse = false,
9658
9597
  disabled = false,
9659
9598
  isValid = false,
9660
9599
  isInvalid = false,
@@ -9690,7 +9629,7 @@ const FormCheck = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9690
9629
  as: as
9691
9630
  }, void 0, false, {
9692
9631
  fileName: FormCheck_jsxFileName,
9693
- lineNumber: 161,
9632
+ lineNumber: 168,
9694
9633
  columnNumber: 9
9695
9634
  }, undefined);
9696
9635
 
@@ -9698,14 +9637,14 @@ const FormCheck = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9698
9637
  value: innerFormContext,
9699
9638
  children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
9700
9639
  style: style,
9701
- className: classnames_default()(className, hasLabel && bsPrefix, inline && `${bsPrefix}-inline`, type === 'switch' && bsSwitchPrefix),
9640
+ className: classnames_default()(className, hasLabel && bsPrefix, inline && `${bsPrefix}-inline`, reverse && `${bsPrefix}-reverse`, type === 'switch' && bsSwitchPrefix),
9702
9641
  children: children || /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(jsx_dev_runtime.Fragment, {
9703
9642
  children: [input, hasLabel && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_FormCheckLabel, {
9704
9643
  title: title,
9705
9644
  children: label
9706
9645
  }, void 0, false, {
9707
9646
  fileName: FormCheck_jsxFileName,
9708
- lineNumber: 187,
9647
+ lineNumber: 195,
9709
9648
  columnNumber: 19
9710
9649
  }, undefined), feedback && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Feedback, {
9711
9650
  type: feedbackType,
@@ -9713,18 +9652,18 @@ const FormCheck = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9713
9652
  children: feedback
9714
9653
  }, void 0, false, {
9715
9654
  fileName: FormCheck_jsxFileName,
9716
- lineNumber: 190,
9655
+ lineNumber: 198,
9717
9656
  columnNumber: 19
9718
9657
  }, undefined)]
9719
9658
  }, void 0, true)
9720
9659
  }, void 0, false, {
9721
9660
  fileName: FormCheck_jsxFileName,
9722
- lineNumber: 174,
9661
+ lineNumber: 181,
9723
9662
  columnNumber: 11
9724
9663
  }, undefined)
9725
9664
  }, void 0, false, {
9726
9665
  fileName: FormCheck_jsxFileName,
9727
- lineNumber: 173,
9666
+ lineNumber: 180,
9728
9667
  columnNumber: 9
9729
9668
  }, undefined);
9730
9669
  });
@@ -10602,47 +10541,6 @@ InputGroup.displayName = 'InputGroup';
10602
10541
  Radio: InputGroupRadio,
10603
10542
  Checkbox: InputGroupCheckbox
10604
10543
  }));
10605
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergedRefs.js
10606
-
10607
-
10608
- var useMergedRefs_toFnRef = function toFnRef(ref) {
10609
- return !ref || typeof ref === 'function' ? ref : function (value) {
10610
- ref.current = value;
10611
- };
10612
- };
10613
-
10614
- function useMergedRefs_mergeRefs(refA, refB) {
10615
- var a = useMergedRefs_toFnRef(refA);
10616
- var b = useMergedRefs_toFnRef(refB);
10617
- return function (value) {
10618
- if (a) a(value);
10619
- if (b) b(value);
10620
- };
10621
- }
10622
- /**
10623
- * Create and returns a single callback ref composed from two other Refs.
10624
- *
10625
- * ```tsx
10626
- * const Button = React.forwardRef((props, ref) => {
10627
- * const [element, attachRef] = useCallbackRef<HTMLButtonElement>();
10628
- * const mergedRef = useMergedRefs(ref, attachRef);
10629
- *
10630
- * return <button ref={mergedRef} {...props}/>
10631
- * })
10632
- * ```
10633
- *
10634
- * @param refA A Callback or mutable Ref
10635
- * @param refB A Callback or mutable Ref
10636
- * @category refs
10637
- */
10638
-
10639
- function useMergedRefs_useMergedRefs(refA, refB) {
10640
- return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
10641
- return useMergedRefs_mergeRefs(refA, refB);
10642
- }, [refA, refB]);
10643
- }
10644
-
10645
- /* harmony default export */ const hooks_esm_useMergedRefs = (useMergedRefs_useMergedRefs);
10646
10544
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/TabContext.js
10647
10545
 
10648
10546
  const TabContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -10724,7 +10622,7 @@ function useNavItem({
10724
10622
  }
10725
10623
  }
10726
10624
 
10727
- props.onClick = useEventCallback_useEventCallback(e => {
10625
+ props.onClick = useEventCallback(e => {
10728
10626
  if (disabled) return;
10729
10627
  onClick == null ? void 0 : onClick(e);
10730
10628
 
@@ -10881,7 +10779,7 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
10881
10779
 
10882
10780
  needsRefocusRef.current = false;
10883
10781
  });
10884
- const mergedRef = hooks_esm_useMergedRefs(ref, listNode);
10782
+ const mergedRef = esm_useMergedRefs(ref, listNode);
10885
10783
  return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_SelectableContext.Provider, {
10886
10784
  value: handleSelect,
10887
10785
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_NavContext.Provider, {
@@ -11102,36 +11000,6 @@ function scrollbarSize(recalc) {
11102
11000
 
11103
11001
  return size;
11104
11002
  }
11105
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
11106
-
11107
- /**
11108
- * A convenience hook around `useState` designed to be paired with
11109
- * the component [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) api.
11110
- * Callback refs are useful over `useRef()` when you need to respond to the ref being set
11111
- * instead of lazily accessing it in an effect.
11112
- *
11113
- * ```ts
11114
- * const [element, attachRef] = useCallbackRef<HTMLDivElement>()
11115
- *
11116
- * useEffect(() => {
11117
- * if (!element) return
11118
- *
11119
- * const calendar = new FullCalendar.Calendar(element)
11120
- *
11121
- * return () => {
11122
- * calendar.destroy()
11123
- * }
11124
- * }, [element])
11125
- *
11126
- * return <div ref={attachRef} />
11127
- * ```
11128
- *
11129
- * @category refs
11130
- */
11131
-
11132
- function useCallbackRef_useCallbackRef() {
11133
- return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
11134
- }
11135
11003
  ;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/activeElement.js
11136
11004
 
11137
11005
  /**
@@ -11158,38 +11026,6 @@ function activeElement(doc) {
11158
11026
  return doc.body;
11159
11027
  }
11160
11028
  }
11161
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useUpdatedRef.js
11162
-
11163
- /**
11164
- * Returns a ref that is immediately updated with the new value
11165
- *
11166
- * @param value The Ref value
11167
- * @category refs
11168
- */
11169
-
11170
- function useUpdatedRef_useUpdatedRef(value) {
11171
- var valueRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
11172
- valueRef.current = value;
11173
- return valueRef;
11174
- }
11175
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useWillUnmount.js
11176
-
11177
-
11178
- /**
11179
- * Attach a callback that fires when a component unmounts
11180
- *
11181
- * @param fn Handler to run when the component unmounts
11182
- * @category effects
11183
- */
11184
-
11185
- function useWillUnmount_useWillUnmount(fn) {
11186
- var onUnmount = useUpdatedRef_useUpdatedRef(fn);
11187
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
11188
- return function () {
11189
- return onUnmount.current();
11190
- };
11191
- }, []);
11192
- }
11193
11029
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/getScrollbarWidth.js
11194
11030
  /**
11195
11031
  * Get the width of the vertical window scrollbar if it's visible
@@ -11472,7 +11308,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11472
11308
  setExited(false);
11473
11309
  }
11474
11310
 
11475
- const handleShow = useEventCallback_useEventCallback(() => {
11311
+ const handleShow = useEventCallback(() => {
11476
11312
  modal.add();
11477
11313
  removeKeydownListenerRef.current = esm_listen(document, 'keydown', handleDocumentKeyDown);
11478
11314
  removeFocusListenerRef.current = esm_listen(document, 'focus', // the timeout is necessary b/c this will run before the new modal is mounted
@@ -11494,7 +11330,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11494
11330
  }
11495
11331
  }
11496
11332
  });
11497
- const handleHide = useEventCallback_useEventCallback(() => {
11333
+ const handleHide = useEventCallback(() => {
11498
11334
  modal.remove();
11499
11335
  removeKeydownListenerRef.current == null ? void 0 : removeKeydownListenerRef.current();
11500
11336
  removeFocusListenerRef.current == null ? void 0 : removeFocusListenerRef.current();
@@ -11523,11 +11359,11 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11523
11359
  if (!exited) return;
11524
11360
  handleHide();
11525
11361
  }, [exited, handleHide]);
11526
- useWillUnmount_useWillUnmount(() => {
11362
+ useWillUnmount(() => {
11527
11363
  handleHide();
11528
11364
  }); // --------------------------------
11529
11365
 
11530
- const handleEnforceFocus = useEventCallback_useEventCallback(() => {
11366
+ const handleEnforceFocus = useEventCallback(() => {
11531
11367
  if (!enforceFocus || !isMounted() || !modal.isTopModal()) {
11532
11368
  return;
11533
11369
  }
@@ -11538,7 +11374,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11538
11374
  modal.dialog.focus();
11539
11375
  }
11540
11376
  });
11541
- const handleBackdropClick = useEventCallback_useEventCallback(e => {
11377
+ const handleBackdropClick = useEventCallback(e => {
11542
11378
  if (e.target !== e.currentTarget) {
11543
11379
  return;
11544
11380
  }
@@ -11549,7 +11385,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11549
11385
  onHide();
11550
11386
  }
11551
11387
  });
11552
- const handleDocumentKeyDown = useEventCallback_useEventCallback(e => {
11388
+ const handleDocumentKeyDown = useEventCallback(e => {
11553
11389
  if (keyboard && e.keyCode === 27 && modal.isTopModal()) {
11554
11390
  onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);
11555
11391
 
@@ -11766,7 +11602,7 @@ const ModalDialog_propTypes = {
11766
11602
  /**
11767
11603
  * Render a large, extra large or small modal.
11768
11604
  *
11769
- * @type ('sm'|'lg','xl')
11605
+ * @type ('sm'|'lg'|'xl')
11770
11606
  */
11771
11607
  size: (prop_types_default()).string,
11772
11608
 
@@ -12232,7 +12068,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12232
12068
  const waitingForMouseUpRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12233
12069
  const ignoreBackdropClickRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12234
12070
  const removeStaticModalAnimationRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
12235
- const [modal, setModalRef] = useCallbackRef_useCallbackRef();
12071
+ const [modal, setModalRef] = useCallbackRef();
12236
12072
  const mergedRef = esm_useMergedRefs(ref, setModalRef);
12237
12073
  const handleHide = useEventCallback(onHide);
12238
12074
  const isRTL = useIsRTL();
@@ -13029,6 +12865,7 @@ var Offcanvas_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstra
13029
12865
 
13030
12866
 
13031
12867
 
12868
+
13032
12869
  const Offcanvas_propTypes = {
13033
12870
  /**
13034
12871
  * @default 'offcanvas'
@@ -13036,9 +12873,10 @@ const Offcanvas_propTypes = {
13036
12873
  bsPrefix: (prop_types_default()).string,
13037
12874
 
13038
12875
  /**
13039
- * Include a backdrop component.
12876
+ * Include a backdrop component. Specify 'static' for a backdrop that doesn't
12877
+ * trigger an "onHide" when clicked.
13040
12878
  */
13041
- backdrop: (prop_types_default()).bool,
12879
+ backdrop: prop_types_default().oneOf(['static', true, false]),
13042
12880
 
13043
12881
  /**
13044
12882
  * Add an optional extra class name to .offcanvas-backdrop.
@@ -13060,6 +12898,12 @@ const Offcanvas_propTypes = {
13060
12898
  */
13061
12899
  placement: prop_types_default().oneOf(['start', 'end', 'top', 'bottom']),
13062
12900
 
12901
+ /**
12902
+ * Hide content outside the viewport from a specified breakpoint and down.
12903
+ * @type {("sm"|"md"|"lg"|"xl"|"xxl")}
12904
+ */
12905
+ responsive: (prop_types_default()).string,
12906
+
13063
12907
  /**
13064
12908
  * When `true` The offcanvas will automatically shift focus to itself when it
13065
12909
  * opens, and replace it to the last focused element when it closes.
@@ -13162,7 +13006,7 @@ function Offcanvas_DialogTransition(props) {
13162
13006
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_OffcanvasToggling, { ...props
13163
13007
  }, void 0, false, {
13164
13008
  fileName: Offcanvas_jsxFileName,
13165
- lineNumber: 178,
13009
+ lineNumber: 186,
13166
13010
  columnNumber: 10
13167
13011
  }, this);
13168
13012
  }
@@ -13171,7 +13015,7 @@ function Offcanvas_BackdropTransition(props) {
13171
13015
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Fade, { ...props
13172
13016
  }, void 0, false, {
13173
13017
  fileName: Offcanvas_jsxFileName,
13174
- lineNumber: 182,
13018
+ lineNumber: 190,
13175
13019
  columnNumber: 10
13176
13020
  }, this);
13177
13021
  }
@@ -13182,6 +13026,7 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
13182
13026
  children,
13183
13027
  'aria-labelledby': ariaLabelledby,
13184
13028
  placement,
13029
+ responsive,
13185
13030
 
13186
13031
  /* BaseModal props */
13187
13032
  show,
@@ -13248,59 +13093,59 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
13248
13093
  className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName)
13249
13094
  }, void 0, false, {
13250
13095
  fileName: Offcanvas_jsxFileName,
13251
- lineNumber: 264,
13096
+ lineNumber: 273,
13252
13097
  columnNumber: 11
13253
13098
  }, undefined), [backdropClassName, bsPrefix]);
13254
13099
 
13255
- const renderDialog = dialogProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
13256
- role: "dialog",
13257
- ...dialogProps,
13100
+ const renderDialog = dialogProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", { ...dialogProps,
13258
13101
  ...props,
13259
- className: classnames_default()(className, bsPrefix, `${bsPrefix}-${placement}`),
13102
+ className: classnames_default()(className, responsive ? `${bsPrefix}-${responsive}` : bsPrefix, `${bsPrefix}-${placement}`),
13260
13103
  "aria-labelledby": ariaLabelledby,
13261
13104
  children: children
13262
13105
  }, void 0, false, {
13263
13106
  fileName: Offcanvas_jsxFileName,
13264
- lineNumber: 273,
13107
+ lineNumber: 282,
13265
13108
  columnNumber: 9
13266
13109
  }, undefined);
13267
13110
 
13268
- return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_ModalContext.Provider, {
13269
- value: modalContext,
13270
- children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Modal, {
13271
- show: show,
13272
- ref: ref,
13273
- backdrop: backdrop,
13274
- container: container,
13275
- keyboard: keyboard,
13276
- autoFocus: autoFocus,
13277
- enforceFocus: enforceFocus && !scroll,
13278
- restoreFocus: restoreFocus,
13279
- restoreFocusOptions: restoreFocusOptions,
13280
- onEscapeKeyDown: onEscapeKeyDown,
13281
- onShow: onShow,
13282
- onHide: handleHide,
13283
- onEnter: handleEnter,
13284
- onEntering: onEntering,
13285
- onEntered: onEntered,
13286
- onExit: onExit,
13287
- onExiting: onExiting,
13288
- onExited: handleExited,
13289
- manager: getModalManager(),
13290
- transition: Offcanvas_DialogTransition,
13291
- backdropTransition: Offcanvas_BackdropTransition,
13292
- renderBackdrop: renderBackdrop,
13293
- renderDialog: renderDialog
13111
+ return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(jsx_dev_runtime.Fragment, {
13112
+ children: [!show && renderDialog({}), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_ModalContext.Provider, {
13113
+ value: modalContext,
13114
+ children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Modal, {
13115
+ show: show,
13116
+ ref: ref,
13117
+ backdrop: backdrop,
13118
+ container: container,
13119
+ keyboard: keyboard,
13120
+ autoFocus: autoFocus,
13121
+ enforceFocus: enforceFocus && !scroll,
13122
+ restoreFocus: restoreFocus,
13123
+ restoreFocusOptions: restoreFocusOptions,
13124
+ onEscapeKeyDown: onEscapeKeyDown,
13125
+ onShow: onShow,
13126
+ onHide: handleHide,
13127
+ onEnter: handleEnter,
13128
+ onEntering: onEntering,
13129
+ onEntered: onEntered,
13130
+ onExit: onExit,
13131
+ onExiting: onExiting,
13132
+ onExited: handleExited,
13133
+ manager: getModalManager(),
13134
+ transition: Offcanvas_DialogTransition,
13135
+ backdropTransition: Offcanvas_BackdropTransition,
13136
+ renderBackdrop: renderBackdrop,
13137
+ renderDialog: renderDialog
13138
+ }, void 0, false, {
13139
+ fileName: Offcanvas_jsxFileName,
13140
+ lineNumber: 305,
13141
+ columnNumber: 13
13142
+ }, undefined)
13294
13143
  }, void 0, false, {
13295
13144
  fileName: Offcanvas_jsxFileName,
13296
- lineNumber: 290,
13145
+ lineNumber: 304,
13297
13146
  columnNumber: 11
13298
- }, undefined)
13299
- }, void 0, false, {
13300
- fileName: Offcanvas_jsxFileName,
13301
- lineNumber: 289,
13302
- columnNumber: 9
13303
- }, undefined);
13147
+ }, undefined)]
13148
+ }, void 0, true);
13304
13149
  });
13305
13150
  Offcanvas.displayName = 'Offcanvas';
13306
13151
  Offcanvas.propTypes = Offcanvas_propTypes;
@@ -13325,7 +13170,7 @@ const NavbarOffcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonj
13325
13170
  ...props
13326
13171
  }, void 0, false, {
13327
13172
  fileName: NavbarOffcanvas_jsxFileName,
13328
- lineNumber: 10,
13173
+ lineNumber: 12,
13329
13174
  columnNumber: 12
13330
13175
  }, undefined);
13331
13176
  });
@@ -13497,8 +13342,9 @@ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
13497
13342
  const navbarContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
13498
13343
  onToggle: () => onToggle == null ? void 0 : onToggle(!expanded),
13499
13344
  bsPrefix,
13500
- expanded: !!expanded
13501
- }), [bsPrefix, expanded, onToggle]);
13345
+ expanded: !!expanded,
13346
+ expand
13347
+ }), [bsPrefix, expanded, expand, onToggle]);
13502
13348
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(NavbarContext.Provider, {
13503
13349
  value: navbarContext,
13504
13350
  children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_SelectableContext.Provider, {
@@ -13509,17 +13355,17 @@ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
13509
13355
  className: classnames_default()(className, bsPrefix, expand && expandClass, variant && `${bsPrefix}-${variant}`, bg && `bg-${bg}`, sticky && `sticky-${sticky}`, fixed && `fixed-${fixed}`)
13510
13356
  }, void 0, false, {
13511
13357
  fileName: Navbar_jsxFileName,
13512
- lineNumber: 200,
13358
+ lineNumber: 201,
13513
13359
  columnNumber: 11
13514
13360
  }, undefined)
13515
13361
  }, void 0, false, {
13516
13362
  fileName: Navbar_jsxFileName,
13517
- lineNumber: 199,
13363
+ lineNumber: 200,
13518
13364
  columnNumber: 9
13519
13365
  }, undefined)
13520
13366
  }, void 0, false, {
13521
13367
  fileName: Navbar_jsxFileName,
13522
- lineNumber: 198,
13368
+ lineNumber: 199,
13523
13369
  columnNumber: 7
13524
13370
  }, undefined);
13525
13371
  });
@@ -13673,7 +13519,7 @@ function useRootClose(ref, onRootClose, {
13673
13519
  disabled,
13674
13520
  clickTrigger
13675
13521
  });
13676
- const handleKeyUp = useEventCallback_useEventCallback(e => {
13522
+ const handleKeyUp = useEventCallback(e => {
13677
13523
  if (e.keyCode === escapeKeyCode) {
13678
13524
  onClose(e);
13679
13525
  }
@@ -13727,7 +13573,7 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
13727
13573
  } = props;
13728
13574
  const [rootElement, attachRef] = useCallbackRef();
13729
13575
  const [arrowElement, attachArrowRef] = useCallbackRef();
13730
- const mergedRef = hooks_esm_useMergedRefs(attachRef, outerRef);
13576
+ const mergedRef = esm_useMergedRefs(attachRef, outerRef);
13731
13577
  const container = useWaitForDOMRef(props.container);
13732
13578
  const target = useWaitForDOMRef(props.target);
13733
13579
  const [exited, setExited] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(!props.show);
@@ -13970,6 +13816,9 @@ var Overlay_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/
13970
13816
 
13971
13817
 
13972
13818
 
13819
+
13820
+
13821
+
13973
13822
  const Overlay_propTypes = {
13974
13823
  /**
13975
13824
  * A component instance, DOM node, or function that returns either.
@@ -14077,13 +13926,24 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
14077
13926
  ...outerProps
14078
13927
  }, outerRef) => {
14079
13928
  const popperRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({});
13929
+ const [firstRenderedState, setFirstRenderedState] = useCallbackRef();
14080
13930
  const [ref, modifiers] = useOverlayOffset(outerProps.offset);
14081
13931
  const mergedRef = esm_useMergedRefs(outerRef, ref);
14082
13932
  const actualTransition = transition === true ? src_Fade : transition || undefined;
13933
+ const handleFirstUpdate = useEventCallback(state => {
13934
+ setFirstRenderedState(state);
13935
+ popperConfig == null ? void 0 : popperConfig.onFirstUpdate == null ? void 0 : popperConfig.onFirstUpdate(state);
13936
+ });
13937
+ useIsomorphicEffect(() => {
13938
+ if (firstRenderedState) {
13939
+ popperRef.current.scheduleUpdate == null ? void 0 : popperRef.current.scheduleUpdate();
13940
+ }
13941
+ }, [firstRenderedState]);
14083
13942
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Overlay, { ...outerProps,
14084
13943
  ref: mergedRef,
14085
13944
  popperConfig: { ...popperConfig,
14086
- modifiers: modifiers.concat(popperConfig.modifiers || [])
13945
+ modifiers: modifiers.concat(popperConfig.modifiers || []),
13946
+ onFirstUpdate: handleFirstUpdate
14087
13947
  },
14088
13948
  transition: actualTransition,
14089
13949
  children: (overlayProps, {
@@ -14123,7 +13983,7 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
14123
13983
  }
14124
13984
  }, void 0, false, {
14125
13985
  fileName: Overlay_jsxFileName,
14126
- lineNumber: 173,
13986
+ lineNumber: 184,
14127
13987
  columnNumber: 7
14128
13988
  }, undefined);
14129
13989
  });
@@ -14994,6 +14854,7 @@ const Row = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
14994
14854
  }, ref) => {
14995
14855
  const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
14996
14856
  const breakpoints = useBootstrapBreakpoints();
14857
+ const minBreakpoint = useBootstrapMinBreakpoint();
14997
14858
  const sizePrefix = `${decoratedBsPrefix}-cols`;
14998
14859
  const classes = [];
14999
14860
  breakpoints.forEach(brkPoint => {
@@ -15009,7 +14870,7 @@ const Row = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
15009
14870
  cols = propValue;
15010
14871
  }
15011
14872
 
15012
- const infix = brkPoint !== 'xs' ? `-${brkPoint}` : '';
14873
+ const infix = brkPoint !== minBreakpoint ? `-${brkPoint}` : '';
15013
14874
  if (cols != null) classes.push(`${sizePrefix}${infix}-${cols}`);
15014
14875
  });
15015
14876
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
@@ -15018,7 +14879,7 @@ const Row = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
15018
14879
  className: classnames_default()(className, decoratedBsPrefix, ...classes)
15019
14880
  }, void 0, false, {
15020
14881
  fileName: Row_jsxFileName,
15021
- lineNumber: 141,
14882
+ lineNumber: 146,
15022
14883
  columnNumber: 7
15023
14884
  }, undefined);
15024
14885
  });
@@ -15274,7 +15135,7 @@ function responsivePropType(propType) {
15274
15135
  xxl: propType
15275
15136
  })]);
15276
15137
  }
15277
- function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS) {
15138
+ function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS, minBreakpoint = DEFAULT_MIN_BREAKPOINT) {
15278
15139
  const classes = [];
15279
15140
  Object.entries(utilityValues).forEach(([utilName, utilValue]) => {
15280
15141
  if (utilValue != null) {
@@ -15283,7 +15144,7 @@ function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS
15283
15144
  const bpValue = utilValue[brkPoint];
15284
15145
 
15285
15146
  if (bpValue != null) {
15286
- const infix = brkPoint !== 'xs' ? `-${brkPoint}` : '';
15147
+ const infix = brkPoint !== minBreakpoint ? `-${brkPoint}` : '';
15287
15148
  classes.push(`${utilName}${infix}-${bpValue}`);
15288
15149
  }
15289
15150
  });
@@ -15329,15 +15190,17 @@ const Stack = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
15329
15190
  }, ref) => {
15330
15191
  bsPrefix = useBootstrapPrefix(bsPrefix, direction === 'horizontal' ? 'hstack' : 'vstack');
15331
15192
  const breakpoints = useBootstrapBreakpoints();
15193
+ const minBreakpoint = useBootstrapMinBreakpoint();
15332
15194
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, { ...props,
15333
15195
  ref: ref,
15334
15196
  className: classnames_default()(className, bsPrefix, ...createUtilityClassName({
15335
15197
  gap,
15336
- breakpoints
15198
+ breakpoints,
15199
+ minBreakpoint
15337
15200
  }))
15338
15201
  }, void 0, false, {
15339
15202
  fileName: Stack_jsxFileName,
15340
- lineNumber: 52,
15203
+ lineNumber: 57,
15341
15204
  columnNumber: 9
15342
15205
  }, undefined);
15343
15206
  });
@@ -15554,9 +15417,10 @@ Tabs.Panel = esm_TabPanel;
15554
15417
  /* harmony default export */ const esm_Tabs = (Tabs);
15555
15418
  ;// CONCATENATED MODULE: ./src/getTabTransitionComponent.ts
15556
15419
 
15420
+
15557
15421
  function getTabTransitionComponent(transition) {
15558
15422
  if (typeof transition === 'boolean') {
15559
- return transition ? src_Fade : undefined;
15423
+ return transition ? src_Fade : esm_NoopTransition;
15560
15424
  }
15561
15425
 
15562
15426
  return transition;
@@ -15854,8 +15718,9 @@ const Table_propTypes = {
15854
15718
 
15855
15719
  /**
15856
15720
  * Adds zebra-striping to any table row within the `<tbody>`.
15721
+ * Use `columns` to add zebra-striping to any table column.
15857
15722
  */
15858
- striped: (prop_types_default()).bool,
15723
+ striped: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string]),
15859
15724
 
15860
15725
  /**
15861
15726
  * Adds borders on all sides of the table and cells.
@@ -15908,14 +15773,14 @@ const Table = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
15908
15773
  ...props
15909
15774
  }, ref) => {
15910
15775
  const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
15911
- const classes = classnames_default()(className, decoratedBsPrefix, variant && `${decoratedBsPrefix}-${variant}`, size && `${decoratedBsPrefix}-${size}`, striped && `${decoratedBsPrefix}-striped`, bordered && `${decoratedBsPrefix}-bordered`, borderless && `${decoratedBsPrefix}-borderless`, hover && `${decoratedBsPrefix}-hover`);
15776
+ const classes = classnames_default()(className, decoratedBsPrefix, variant && `${decoratedBsPrefix}-${variant}`, size && `${decoratedBsPrefix}-${size}`, striped && `${decoratedBsPrefix}-${typeof striped === 'string' ? `striped-${striped}` : 'striped'}`, bordered && `${decoratedBsPrefix}-bordered`, borderless && `${decoratedBsPrefix}-borderless`, hover && `${decoratedBsPrefix}-hover`);
15912
15777
 
15913
15778
  const table = /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("table", { ...props,
15914
15779
  className: classes,
15915
15780
  ref: ref
15916
15781
  }, void 0, false, {
15917
15782
  fileName: Table_jsxFileName,
15918
- lineNumber: 98,
15783
+ lineNumber: 103,
15919
15784
  columnNumber: 19
15920
15785
  }, undefined);
15921
15786
 
@@ -15931,7 +15796,7 @@ const Table = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
15931
15796
  children: table
15932
15797
  }, void 0, false, {
15933
15798
  fileName: Table_jsxFileName,
15934
- lineNumber: 105,
15799
+ lineNumber: 110,
15935
15800
  columnNumber: 14
15936
15801
  }, undefined);
15937
15802
  }
@@ -16376,7 +16241,14 @@ const ToastContainer_propTypes = {
16376
16241
  /**
16377
16242
  * Where the toasts will be placed within the container.
16378
16243
  */
16379
- position: prop_types_default().oneOf(['top-start', 'top-center', 'top-end', 'middle-start', 'middle-center', 'middle-end', 'bottom-start', 'bottom-center', 'bottom-end'])
16244
+ position: prop_types_default().oneOf(['top-start', 'top-center', 'top-end', 'middle-start', 'middle-center', 'middle-end', 'bottom-start', 'bottom-center', 'bottom-end']),
16245
+
16246
+ /**
16247
+ * By default the container is rendered with `position-absolute` utility class. Provide a string to use other `position-*` utility classes, or an empty string to remove it.
16248
+ *
16249
+ * @default 'absolute'
16250
+ */
16251
+ containerPosition: (prop_types_default()).string
16380
16252
  };
16381
16253
  const positionClasses = {
16382
16254
  'top-start': 'top-0 start-0',
@@ -16392,6 +16264,7 @@ const positionClasses = {
16392
16264
  const ToastContainer = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
16393
16265
  bsPrefix,
16394
16266
  position,
16267
+ containerPosition = 'absolute',
16395
16268
  className,
16396
16269
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
16397
16270
  as: Component = 'div',
@@ -16401,10 +16274,10 @@ const ToastContainer = /*#__PURE__*/external_root_React_commonjs2_react_commonjs
16401
16274
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
16402
16275
  ref: ref,
16403
16276
  ...props,
16404
- className: classnames_default()(bsPrefix, position && `position-absolute ${positionClasses[position]}`, className)
16277
+ className: classnames_default()(bsPrefix, position && [containerPosition ? `position-${containerPosition}` : null, positionClasses[position]], className)
16405
16278
  }, void 0, false, {
16406
16279
  fileName: ToastContainer_jsxFileName,
16407
- lineNumber: 76,
16280
+ lineNumber: 85,
16408
16281
  columnNumber: 7
16409
16282
  }, undefined);
16410
16283
  });
@@ -16598,7 +16471,7 @@ const ToggleButtonGroup = /*#__PURE__*/external_root_React_commonjs2_react_commo
16598
16471
  const isActive = values.indexOf(inputVal) !== -1;
16599
16472
 
16600
16473
  if (type === 'radio') {
16601
- if (!isActive && onChange) onChange(inputVal, event);
16474
+ if (!isActive) onChange(inputVal, event);
16602
16475
  return;
16603
16476
  }
16604
16477