react-bootstrap 2.2.3 → 2.4.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.
@@ -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
 
@@ -3144,7 +3144,7 @@ function useEventCallback(fn) {
3144
3144
  return ref.current && ref.current.apply(ref, arguments);
3145
3145
  }, [ref]);
3146
3146
  }
3147
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCallbackRef.js
3147
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
3148
3148
 
3149
3149
  /**
3150
3150
  * A convenience hook around `useState` designed to be paired with
@@ -3174,37 +3174,7 @@ function useEventCallback(fn) {
3174
3174
  function useCallbackRef() {
3175
3175
  return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
3176
3176
  }
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
3177
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useEventListener.js
3208
3178
 
3209
3179
 
3210
3180
  /**
@@ -3222,7 +3192,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
3222
3192
  capture = false;
3223
3193
  }
3224
3194
 
3225
- var handler = useEventCallback_useEventCallback(listener);
3195
+ var handler = useEventCallback(listener);
3226
3196
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3227
3197
  var target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
3228
3198
  target.addEventListener(event, handler, capture);
@@ -3231,7 +3201,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
3231
3201
  };
3232
3202
  }, [eventTarget]);
3233
3203
  }
3234
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useGlobalListener.js
3204
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useGlobalListener.js
3235
3205
 
3236
3206
 
3237
3207
  /**
@@ -3259,7 +3229,7 @@ function useGlobalListener(event, handler, capture) {
3259
3229
  }, []);
3260
3230
  return useEventListener(documentTarget, event, handler, capture);
3261
3231
  }
3262
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useInterval.js
3232
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useInterval.js
3263
3233
 
3264
3234
 
3265
3235
  /**
@@ -3318,7 +3288,7 @@ function useInterval(fn, ms, paused, runImmediately) {
3318
3288
  }
3319
3289
 
3320
3290
  /* 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
3291
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useRafInterval.js
3322
3292
 
3323
3293
 
3324
3294
 
@@ -3357,7 +3327,7 @@ function useRafInterval(fn, ms, paused) {
3357
3327
  }
3358
3328
 
3359
3329
  /* 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
3330
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeState.js
3361
3331
  function useMergeState_extends() {
3362
3332
  useMergeState_extends = Object.assign || function (target) {
3363
3333
  for (var i = 1; i < arguments.length; i++) {
@@ -3414,7 +3384,7 @@ function useMergeState_useMergeState(initialState) {
3414
3384
  }, [setState]);
3415
3385
  return [state, updater];
3416
3386
  }
3417
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3387
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3418
3388
 
3419
3389
  function useMergeStateFromProps(props, gDSFP, initialState) {
3420
3390
  var _useMergeState = useMergeState(initialState),
@@ -3425,7 +3395,7 @@ function useMergeStateFromProps(props, gDSFP, initialState) {
3425
3395
  if (nextState !== null) setState(nextState);
3426
3396
  return [state, setState];
3427
3397
  }
3428
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMounted.js
3398
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
3429
3399
 
3430
3400
  /**
3431
3401
  * Track whether a component is current mounted. Generally less preferable than
@@ -3454,13 +3424,14 @@ function useMounted() {
3454
3424
  return mounted.current;
3455
3425
  });
3456
3426
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3427
+ mounted.current = true;
3457
3428
  return function () {
3458
3429
  mounted.current = false;
3459
3430
  };
3460
3431
  }, []);
3461
3432
  return isMounted.current;
3462
3433
  }
3463
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/usePrevious.js
3434
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/usePrevious.js
3464
3435
 
3465
3436
  /**
3466
3437
  * Store the last of some value. Tracked via a `Ref` only updating it
@@ -3487,7 +3458,7 @@ function usePrevious(value) {
3487
3458
  });
3488
3459
  return ref.current;
3489
3460
  }
3490
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useImage.js
3461
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useImage.js
3491
3462
 
3492
3463
  /**
3493
3464
  * Fetch and load an image for programatic use such as in a `<canvas>` element.
@@ -3566,7 +3537,7 @@ function useImage(imageOrUrl, crossOrigin) {
3566
3537
  }, [imageOrUrl, crossOrigin]);
3567
3538
  return state;
3568
3539
  }
3569
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3540
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3570
3541
 
3571
3542
  var isReactNative = typeof __webpack_require__.g !== 'undefined' && // @ts-ignore
3572
3543
  __webpack_require__.g.navigator && // @ts-ignore
@@ -3582,7 +3553,7 @@ var isDOM = typeof document !== 'undefined';
3582
3553
  */
3583
3554
 
3584
3555
  /* 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
3556
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useResizeObserver.js
3586
3557
 
3587
3558
 
3588
3559
  var targetMap = new WeakMap();
@@ -3635,7 +3606,7 @@ function useResizeObserver(element) {
3635
3606
  }, [element]);
3636
3607
  return rect;
3637
3608
  }
3638
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/index.js
3609
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/index.js
3639
3610
 
3640
3611
 
3641
3612
 
@@ -3809,7 +3780,7 @@ const Anchor = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
3809
3780
  const [buttonProps] = useButtonProps(Object.assign({
3810
3781
  tagName: 'a'
3811
3782
  }, props));
3812
- const handleKeyDown = useEventCallback_useEventCallback(e => {
3783
+ const handleKeyDown = useEventCallback(e => {
3813
3784
  buttonProps.onKeyDown(e);
3814
3785
  onKeyDown == null ? void 0 : onKeyDown(e);
3815
3786
  });
@@ -4848,42 +4819,6 @@ function useUpdateEffect(fn, deps) {
4848
4819
  }
4849
4820
 
4850
4821
  /* 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
4822
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useUpdatedRef.js
4888
4823
 
4889
4824
  /**
@@ -4958,7 +4893,7 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
4958
4893
 
4959
4894
 
4960
4895
  function useTimeout() {
4961
- var isMounted = useMounted_useMounted(); // types are confused between node and web here IDK
4896
+ var isMounted = useMounted(); // types are confused between node and web here IDK
4962
4897
 
4963
4898
  var handleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
4964
4899
  useWillUnmount(function () {
@@ -5739,7 +5674,7 @@ var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
5739
5674
  function qsa(element, selector) {
5740
5675
  return toArray(element.querySelectorAll(selector));
5741
5676
  }
5742
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useForceUpdate.js
5677
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useForceUpdate.js
5743
5678
 
5744
5679
  /**
5745
5680
  * Returns a function that triggers a component update. the hook equivalent to
@@ -5858,7 +5793,7 @@ function dequal(foo, bar) {
5858
5793
  return foo !== foo && bar !== bar;
5859
5794
  }
5860
5795
 
5861
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useSafeState.js
5796
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useSafeState.js
5862
5797
 
5863
5798
 
5864
5799
 
@@ -7961,14 +7896,14 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
7961
7896
  preventMouseClickOutsideRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains_contains(currentTarget, e.target) || waitingForTrigger.current;
7962
7897
  waitingForTrigger.current = false;
7963
7898
  }, [ref]);
7964
- const handleInitialMouse = useEventCallback_useEventCallback(e => {
7899
+ const handleInitialMouse = useEventCallback(e => {
7965
7900
  const currentTarget = getRefTarget(ref);
7966
7901
 
7967
7902
  if (currentTarget && contains_contains(currentTarget, e.target)) {
7968
7903
  waitingForTrigger.current = true;
7969
7904
  }
7970
7905
  });
7971
- const handleMouse = useEventCallback_useEventCallback(e => {
7906
+ const handleMouse = useEventCallback(e => {
7972
7907
  if (!preventMouseClickOutsideRef.current) {
7973
7908
  onClickOutside(e);
7974
7909
  }
@@ -8415,7 +8350,7 @@ function useDropdownItem({
8415
8350
  } = navContext || {};
8416
8351
  const eventKey = makeEventKey(key, href);
8417
8352
  const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;
8418
- const handleClick = useEventCallback_useEventCallback(event => {
8353
+ const handleClick = useEventCallback(event => {
8419
8354
  if (disabled) return;
8420
8355
  onClick == null ? void 0 : onClick(event);
8421
8356
 
@@ -8534,7 +8469,7 @@ function Dropdown({
8534
8469
  source
8535
8470
  });
8536
8471
  }, [onToggle]);
8537
- const handleSelect = useEventCallback_useEventCallback((key, event) => {
8472
+ const handleSelect = useEventCallback((key, event) => {
8538
8473
  onSelect == null ? void 0 : onSelect(key, event);
8539
8474
  toggle(false, event, 'select');
8540
8475
 
@@ -8556,12 +8491,12 @@ function Dropdown({
8556
8491
  focusInDropdown.current = menuElement.contains(menuElement.ownerDocument.activeElement);
8557
8492
  }
8558
8493
 
8559
- const focusToggle = useEventCallback_useEventCallback(() => {
8494
+ const focusToggle = useEventCallback(() => {
8560
8495
  if (toggleElement && toggleElement.focus) {
8561
8496
  toggleElement.focus();
8562
8497
  }
8563
8498
  });
8564
- const maybeFocusFirst = useEventCallback_useEventCallback(() => {
8499
+ const maybeFocusFirst = useEventCallback(() => {
8565
8500
  const type = lastSourceEvent.current;
8566
8501
  let focusType = focusFirstItemOnShow;
8567
8502
 
@@ -8763,22 +8698,6 @@ const DropdownItem_DropdownItem = /*#__PURE__*/external_root_React_commonjs2_rea
8763
8698
  DropdownItem_DropdownItem.displayName = 'DropdownItem';
8764
8699
  DropdownItem_DropdownItem.propTypes = DropdownItem_propTypes;
8765
8700
  /* 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
8701
  ;// CONCATENATED MODULE: ./src/InputGroupContext.tsx
8783
8702
 
8784
8703
  const InputGroupContext_context = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -8967,7 +8886,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
8967
8886
  placement
8968
8887
  });
8969
8888
  menuProps.ref = esm_useMergedRefs(useWrappedRefWithWarning(ref, 'DropdownMenu'), menuProps.ref);
8970
- esm_useIsomorphicEffect(() => {
8889
+ useIsomorphicEffect(() => {
8971
8890
  // Popper's initial position for the menu is incorrect when
8972
8891
  // renderOnMount=true. Need to call update() to correct it.
8973
8892
  if (show) popper == null ? void 0 : popper.update();
@@ -9152,11 +9071,8 @@ const Dropdown_propTypes = {
9152
9071
  *
9153
9072
  * ```js
9154
9073
  * function(
9155
- * isOpen: boolean,
9156
- * event: SyntheticEvent,
9157
- * metadata: {
9158
- * source: 'select' | 'click' | 'rootClose' | 'keydown'
9159
- * }
9074
+ * nextShow: boolean,
9075
+ * meta: ToggleMetadata,
9160
9076
  * ): void
9161
9077
  * ```
9162
9078
  *
@@ -9254,17 +9170,17 @@ const Dropdown_Dropdown = /*#__PURE__*/external_root_React_commonjs2_react_commo
9254
9170
  className: classnames_default()(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'end' && 'dropend', drop === 'start' && 'dropstart')
9255
9171
  }, void 0, false, {
9256
9172
  fileName: Dropdown_jsxFileName,
9257
- lineNumber: 205,
9173
+ lineNumber: 202,
9258
9174
  columnNumber: 13
9259
9175
  }, undefined)
9260
9176
  }, void 0, false, {
9261
9177
  fileName: Dropdown_jsxFileName,
9262
- lineNumber: 194,
9178
+ lineNumber: 191,
9263
9179
  columnNumber: 9
9264
9180
  }, undefined)
9265
9181
  }, void 0, false, {
9266
9182
  fileName: Dropdown_jsxFileName,
9267
- lineNumber: 193,
9183
+ lineNumber: 190,
9268
9184
  columnNumber: 7
9269
9185
  }, undefined);
9270
9186
  });
@@ -10602,47 +10518,6 @@ InputGroup.displayName = 'InputGroup';
10602
10518
  Radio: InputGroupRadio,
10603
10519
  Checkbox: InputGroupCheckbox
10604
10520
  }));
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
10521
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/TabContext.js
10647
10522
 
10648
10523
  const TabContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -10724,7 +10599,7 @@ function useNavItem({
10724
10599
  }
10725
10600
  }
10726
10601
 
10727
- props.onClick = useEventCallback_useEventCallback(e => {
10602
+ props.onClick = useEventCallback(e => {
10728
10603
  if (disabled) return;
10729
10604
  onClick == null ? void 0 : onClick(e);
10730
10605
 
@@ -10881,7 +10756,7 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
10881
10756
 
10882
10757
  needsRefocusRef.current = false;
10883
10758
  });
10884
- const mergedRef = hooks_esm_useMergedRefs(ref, listNode);
10759
+ const mergedRef = esm_useMergedRefs(ref, listNode);
10885
10760
  return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_SelectableContext.Provider, {
10886
10761
  value: handleSelect,
10887
10762
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_NavContext.Provider, {
@@ -11102,36 +10977,6 @@ function scrollbarSize(recalc) {
11102
10977
 
11103
10978
  return size;
11104
10979
  }
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
10980
  ;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/activeElement.js
11136
10981
 
11137
10982
  /**
@@ -11158,38 +11003,6 @@ function activeElement(doc) {
11158
11003
  return doc.body;
11159
11004
  }
11160
11005
  }
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
11006
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/getScrollbarWidth.js
11194
11007
  /**
11195
11008
  * Get the width of the vertical window scrollbar if it's visible
@@ -11472,7 +11285,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11472
11285
  setExited(false);
11473
11286
  }
11474
11287
 
11475
- const handleShow = useEventCallback_useEventCallback(() => {
11288
+ const handleShow = useEventCallback(() => {
11476
11289
  modal.add();
11477
11290
  removeKeydownListenerRef.current = esm_listen(document, 'keydown', handleDocumentKeyDown);
11478
11291
  removeFocusListenerRef.current = esm_listen(document, 'focus', // the timeout is necessary b/c this will run before the new modal is mounted
@@ -11494,7 +11307,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11494
11307
  }
11495
11308
  }
11496
11309
  });
11497
- const handleHide = useEventCallback_useEventCallback(() => {
11310
+ const handleHide = useEventCallback(() => {
11498
11311
  modal.remove();
11499
11312
  removeKeydownListenerRef.current == null ? void 0 : removeKeydownListenerRef.current();
11500
11313
  removeFocusListenerRef.current == null ? void 0 : removeFocusListenerRef.current();
@@ -11523,11 +11336,11 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11523
11336
  if (!exited) return;
11524
11337
  handleHide();
11525
11338
  }, [exited, handleHide]);
11526
- useWillUnmount_useWillUnmount(() => {
11339
+ useWillUnmount(() => {
11527
11340
  handleHide();
11528
11341
  }); // --------------------------------
11529
11342
 
11530
- const handleEnforceFocus = useEventCallback_useEventCallback(() => {
11343
+ const handleEnforceFocus = useEventCallback(() => {
11531
11344
  if (!enforceFocus || !isMounted() || !modal.isTopModal()) {
11532
11345
  return;
11533
11346
  }
@@ -11538,7 +11351,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11538
11351
  modal.dialog.focus();
11539
11352
  }
11540
11353
  });
11541
- const handleBackdropClick = useEventCallback_useEventCallback(e => {
11354
+ const handleBackdropClick = useEventCallback(e => {
11542
11355
  if (e.target !== e.currentTarget) {
11543
11356
  return;
11544
11357
  }
@@ -11549,7 +11362,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11549
11362
  onHide();
11550
11363
  }
11551
11364
  });
11552
- const handleDocumentKeyDown = useEventCallback_useEventCallback(e => {
11365
+ const handleDocumentKeyDown = useEventCallback(e => {
11553
11366
  if (keyboard && e.keyCode === 27 && modal.isTopModal()) {
11554
11367
  onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);
11555
11368
 
@@ -12232,7 +12045,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12232
12045
  const waitingForMouseUpRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12233
12046
  const ignoreBackdropClickRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12234
12047
  const removeStaticModalAnimationRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
12235
- const [modal, setModalRef] = useCallbackRef_useCallbackRef();
12048
+ const [modal, setModalRef] = useCallbackRef();
12236
12049
  const mergedRef = esm_useMergedRefs(ref, setModalRef);
12237
12050
  const handleHide = useEventCallback(onHide);
12238
12051
  const isRTL = useIsRTL();
@@ -12835,6 +12648,205 @@ NavbarToggle.displayName = 'NavbarToggle';
12835
12648
  NavbarToggle.propTypes = NavbarToggle_propTypes;
12836
12649
  NavbarToggle.defaultProps = NavbarToggle_defaultProps;
12837
12650
  /* harmony default export */ const src_NavbarToggle = (NavbarToggle);
12651
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMediaQuery.js
12652
+
12653
+
12654
+ var matchersByWindow = new WeakMap();
12655
+
12656
+ var getMatcher = function getMatcher(query, targetWindow) {
12657
+ if (!query || !targetWindow) return undefined;
12658
+ var matchers = matchersByWindow.get(targetWindow) || new Map();
12659
+ matchersByWindow.set(targetWindow, matchers);
12660
+ var mql = matchers.get(query);
12661
+
12662
+ if (!mql) {
12663
+ mql = targetWindow.matchMedia(query);
12664
+ mql.refCount = 0;
12665
+ matchers.set(mql.media, mql);
12666
+ }
12667
+
12668
+ return mql;
12669
+ };
12670
+ /**
12671
+ * Match a media query and get updates as the match changes. The media string is
12672
+ * passed directly to `window.matchMedia` and run as a Layout Effect, so initial
12673
+ * matches are returned before the browser has a chance to paint.
12674
+ *
12675
+ * ```tsx
12676
+ * function Page() {
12677
+ * const isWide = useMediaQuery('min-width: 1000px')
12678
+ *
12679
+ * return isWide ? "very wide" : 'not so wide'
12680
+ * }
12681
+ * ```
12682
+ *
12683
+ * Media query lists are also reused globally, hook calls for the same query
12684
+ * will only create a matcher once under the hood.
12685
+ *
12686
+ * @param query A media query
12687
+ * @param targetWindow The window to match against, uses the globally available one as a default.
12688
+ */
12689
+
12690
+
12691
+ function useMediaQuery(query, targetWindow) {
12692
+ if (targetWindow === void 0) {
12693
+ targetWindow = typeof window === 'undefined' ? undefined : window;
12694
+ }
12695
+
12696
+ var mql = getMatcher(query, targetWindow);
12697
+
12698
+ var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(function () {
12699
+ return mql ? mql.matches : false;
12700
+ }),
12701
+ matches = _useState[0],
12702
+ setMatches = _useState[1];
12703
+
12704
+ useIsomorphicEffect(function () {
12705
+ var mql = getMatcher(query, targetWindow);
12706
+
12707
+ if (!mql) {
12708
+ return setMatches(false);
12709
+ }
12710
+
12711
+ var matchers = matchersByWindow.get(targetWindow);
12712
+
12713
+ var handleChange = function handleChange() {
12714
+ setMatches(mql.matches);
12715
+ };
12716
+
12717
+ mql.refCount++;
12718
+ mql.addListener(handleChange);
12719
+ handleChange();
12720
+ return function () {
12721
+ mql.removeListener(handleChange);
12722
+ mql.refCount--;
12723
+
12724
+ if (mql.refCount <= 0) {
12725
+ matchers == null ? void 0 : matchers.delete(mql.media);
12726
+ }
12727
+
12728
+ mql = undefined;
12729
+ };
12730
+ }, [query]);
12731
+ return matches;
12732
+ }
12733
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useBreakpoint.js
12734
+
12735
+
12736
+ /**
12737
+ * Create a responsive hook we a set of breakpoint names and widths.
12738
+ * You can use any valid css units as well as a numbers (for pixels).
12739
+ *
12740
+ * **NOTE:** The object key order is important! it's assumed to be in order from smallest to largest
12741
+ *
12742
+ * ```ts
12743
+ * const useBreakpoint = createBreakpointHook({
12744
+ * xs: 0,
12745
+ * sm: 576,
12746
+ * md: 768,
12747
+ * lg: 992,
12748
+ * xl: 1200,
12749
+ * })
12750
+ * ```
12751
+ *
12752
+ * **Watch out!** using string values will sometimes construct media queries using css `calc()` which
12753
+ * is NOT supported in media queries by all browsers at the moment. use numbers for
12754
+ * the widest range of browser support.
12755
+ *
12756
+ * @param breakpointValues A object hash of names to breakpoint dimensions
12757
+ */
12758
+
12759
+ function createBreakpointHook(breakpointValues) {
12760
+ var names = Object.keys(breakpointValues);
12761
+
12762
+ function and(query, next) {
12763
+ if (query === next) {
12764
+ return next;
12765
+ }
12766
+
12767
+ return query ? query + " and " + next : next;
12768
+ }
12769
+
12770
+ function getNext(breakpoint) {
12771
+ return names[Math.min(names.indexOf(breakpoint) + 1, names.length - 1)];
12772
+ }
12773
+
12774
+ function getMaxQuery(breakpoint) {
12775
+ var next = getNext(breakpoint);
12776
+ var value = breakpointValues[next];
12777
+ if (typeof value === 'number') value = value - 0.2 + "px";else value = "calc(" + value + " - 0.2px)";
12778
+ return "(max-width: " + value + ")";
12779
+ }
12780
+
12781
+ function getMinQuery(breakpoint) {
12782
+ var value = breakpointValues[breakpoint];
12783
+
12784
+ if (typeof value === 'number') {
12785
+ value = value + "px";
12786
+ }
12787
+
12788
+ return "(min-width: " + value + ")";
12789
+ }
12790
+ /**
12791
+ * Match a set of breakpoints
12792
+ *
12793
+ * ```tsx
12794
+ * const MidSizeOnly = () => {
12795
+ * const isMid = useBreakpoint({ lg: 'down', sm: 'up' });
12796
+ *
12797
+ * if (isMid) return <div>On a Reasonable sized Screen!</div>
12798
+ * return null;
12799
+ * }
12800
+ * ```
12801
+ * @param breakpointMap An object map of breakpoints and directions, queries are constructed using "and" to join
12802
+ * breakpoints together
12803
+ * @param window Optionally specify the target window to match against (useful when rendering into iframes)
12804
+ */
12805
+
12806
+
12807
+ function useBreakpoint(breakpointOrMap, direction, window) {
12808
+ var breakpointMap;
12809
+
12810
+ if (typeof breakpointOrMap === 'object') {
12811
+ breakpointMap = breakpointOrMap;
12812
+ window = direction;
12813
+ direction = true;
12814
+ } else {
12815
+ var _breakpointMap;
12816
+
12817
+ direction = direction || true;
12818
+ breakpointMap = (_breakpointMap = {}, _breakpointMap[breakpointOrMap] = direction, _breakpointMap);
12819
+ }
12820
+
12821
+ var query = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
12822
+ return Object.entries(breakpointMap).reduce(function (query, _ref) {
12823
+ var key = _ref[0],
12824
+ direction = _ref[1];
12825
+
12826
+ if (direction === 'up' || direction === true) {
12827
+ query = and(query, getMinQuery(key));
12828
+ }
12829
+
12830
+ if (direction === 'down' || direction === true) {
12831
+ query = and(query, getMaxQuery(key));
12832
+ }
12833
+
12834
+ return query;
12835
+ }, '');
12836
+ }, [JSON.stringify(breakpointMap)]);
12837
+ return useMediaQuery(query, window);
12838
+ }
12839
+
12840
+ return useBreakpoint;
12841
+ }
12842
+ var useBreakpoint = createBreakpointHook({
12843
+ xs: 0,
12844
+ sm: 576,
12845
+ md: 768,
12846
+ lg: 992,
12847
+ xl: 1200
12848
+ });
12849
+ /* harmony default export */ const esm_useBreakpoint = (useBreakpoint);
12838
12850
  ;// CONCATENATED MODULE: ./src/OffcanvasBody.tsx
12839
12851
 
12840
12852
  /* harmony default export */ const OffcanvasBody = (createWithBsPrefix('offcanvas-body'));
@@ -13317,16 +13329,71 @@ var NavbarOffcanvas_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bo
13317
13329
 
13318
13330
 
13319
13331
 
13320
- const NavbarOffcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((props, ref) => {
13332
+
13333
+
13334
+
13335
+ const NavbarOffcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
13336
+ className,
13337
+ bsPrefix,
13338
+ backdrop,
13339
+ backdropClassName,
13340
+ keyboard,
13341
+ scroll,
13342
+ placement,
13343
+ autoFocus,
13344
+ enforceFocus,
13345
+ restoreFocus,
13346
+ restoreFocusOptions,
13347
+ onShow,
13348
+ onHide,
13349
+ onEscapeKeyDown,
13350
+ onEnter,
13351
+ onEntering,
13352
+ onEntered,
13353
+ onExit,
13354
+ onExiting,
13355
+ onExited,
13356
+ ...props
13357
+ }, ref) => {
13321
13358
  const context = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(NavbarContext);
13322
- return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Offcanvas, {
13359
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas');
13360
+ const hasExpandProp = typeof (context == null ? void 0 : context.expand) === 'string';
13361
+ const shouldExpand = esm_useBreakpoint(hasExpandProp ? context.expand : 'xs', 'up');
13362
+ return hasExpandProp && shouldExpand ? /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
13363
+ ref: ref,
13364
+ ...props,
13365
+ className: classnames_default()(className, bsPrefix, `${bsPrefix}-${placement}`)
13366
+ }, void 0, false, {
13367
+ fileName: NavbarOffcanvas_jsxFileName,
13368
+ lineNumber: 47,
13369
+ columnNumber: 7
13370
+ }, undefined) : /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Offcanvas, {
13323
13371
  ref: ref,
13324
13372
  show: !!(context != null && context.expanded),
13373
+ bsPrefix: bsPrefix,
13374
+ backdrop: backdrop,
13375
+ backdropClassName: backdropClassName,
13376
+ keyboard: keyboard,
13377
+ scroll: scroll,
13378
+ placement: placement,
13379
+ autoFocus: autoFocus,
13380
+ enforceFocus: enforceFocus,
13381
+ restoreFocus: restoreFocus,
13382
+ restoreFocusOptions: restoreFocusOptions,
13383
+ onShow: onShow,
13384
+ onHide: onHide,
13385
+ onEscapeKeyDown: onEscapeKeyDown,
13386
+ onEnter: onEnter,
13387
+ onEntering: onEntering,
13388
+ onEntered: onEntered,
13389
+ onExit: onExit,
13390
+ onExiting: onExiting,
13391
+ onExited: onExited,
13325
13392
  ...props
13326
13393
  }, void 0, false, {
13327
13394
  fileName: NavbarOffcanvas_jsxFileName,
13328
- lineNumber: 10,
13329
- columnNumber: 12
13395
+ lineNumber: 53,
13396
+ columnNumber: 7
13330
13397
  }, undefined);
13331
13398
  });
13332
13399
  NavbarOffcanvas.displayName = 'NavbarOffcanvas';
@@ -13497,8 +13564,9 @@ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
13497
13564
  const navbarContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
13498
13565
  onToggle: () => onToggle == null ? void 0 : onToggle(!expanded),
13499
13566
  bsPrefix,
13500
- expanded: !!expanded
13501
- }), [bsPrefix, expanded, onToggle]);
13567
+ expanded: !!expanded,
13568
+ expand
13569
+ }), [bsPrefix, expanded, expand, onToggle]);
13502
13570
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(NavbarContext.Provider, {
13503
13571
  value: navbarContext,
13504
13572
  children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_SelectableContext.Provider, {
@@ -13509,17 +13577,17 @@ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
13509
13577
  className: classnames_default()(className, bsPrefix, expand && expandClass, variant && `${bsPrefix}-${variant}`, bg && `bg-${bg}`, sticky && `sticky-${sticky}`, fixed && `fixed-${fixed}`)
13510
13578
  }, void 0, false, {
13511
13579
  fileName: Navbar_jsxFileName,
13512
- lineNumber: 200,
13580
+ lineNumber: 201,
13513
13581
  columnNumber: 11
13514
13582
  }, undefined)
13515
13583
  }, void 0, false, {
13516
13584
  fileName: Navbar_jsxFileName,
13517
- lineNumber: 199,
13585
+ lineNumber: 200,
13518
13586
  columnNumber: 9
13519
13587
  }, undefined)
13520
13588
  }, void 0, false, {
13521
13589
  fileName: Navbar_jsxFileName,
13522
- lineNumber: 198,
13590
+ lineNumber: 199,
13523
13591
  columnNumber: 7
13524
13592
  }, undefined);
13525
13593
  });
@@ -13673,7 +13741,7 @@ function useRootClose(ref, onRootClose, {
13673
13741
  disabled,
13674
13742
  clickTrigger
13675
13743
  });
13676
- const handleKeyUp = useEventCallback_useEventCallback(e => {
13744
+ const handleKeyUp = useEventCallback(e => {
13677
13745
  if (e.keyCode === escapeKeyCode) {
13678
13746
  onClose(e);
13679
13747
  }
@@ -13727,7 +13795,7 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
13727
13795
  } = props;
13728
13796
  const [rootElement, attachRef] = useCallbackRef();
13729
13797
  const [arrowElement, attachArrowRef] = useCallbackRef();
13730
- const mergedRef = hooks_esm_useMergedRefs(attachRef, outerRef);
13798
+ const mergedRef = esm_useMergedRefs(attachRef, outerRef);
13731
13799
  const container = useWaitForDOMRef(props.container);
13732
13800
  const target = useWaitForDOMRef(props.target);
13733
13801
  const [exited, setExited] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(!props.show);
@@ -14434,33 +14502,31 @@ PageItem.displayName = 'PageItem';
14434
14502
  /* harmony default export */ const src_PageItem = (PageItem);
14435
14503
 
14436
14504
  function createButton(name, defaultValue, label = name) {
14437
- function Button({
14505
+ const Button = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
14438
14506
  children,
14439
14507
  ...props
14440
- }) {
14441
- return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(PageItem, { ...props,
14442
- children: [/*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("span", {
14443
- "aria-hidden": "true",
14444
- children: children || defaultValue
14445
- }, void 0, false, {
14446
- fileName: PageItem_jsxFileName,
14447
- lineNumber: 80,
14448
- columnNumber: 9
14449
- }, this), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("span", {
14450
- className: "visually-hidden",
14451
- children: label
14452
- }, void 0, false, {
14453
- fileName: PageItem_jsxFileName,
14454
- lineNumber: 81,
14455
- columnNumber: 9
14456
- }, this)]
14457
- }, void 0, true, {
14508
+ }, ref) => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(PageItem, { ...props,
14509
+ ref: ref,
14510
+ children: [/*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("span", {
14511
+ "aria-hidden": "true",
14512
+ children: children || defaultValue
14513
+ }, void 0, false, {
14458
14514
  fileName: PageItem_jsxFileName,
14459
- lineNumber: 79,
14460
- columnNumber: 7
14461
- }, this);
14462
- }
14463
-
14515
+ lineNumber: 80,
14516
+ columnNumber: 9
14517
+ }, this), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("span", {
14518
+ className: "visually-hidden",
14519
+ children: label
14520
+ }, void 0, false, {
14521
+ fileName: PageItem_jsxFileName,
14522
+ lineNumber: 81,
14523
+ columnNumber: 9
14524
+ }, this)]
14525
+ }, void 0, true, {
14526
+ fileName: PageItem_jsxFileName,
14527
+ lineNumber: 79,
14528
+ columnNumber: 7
14529
+ }, this));
14464
14530
  Button.displayName = name;
14465
14531
  return Button;
14466
14532
  }
@@ -15556,9 +15622,10 @@ Tabs.Panel = esm_TabPanel;
15556
15622
  /* harmony default export */ const esm_Tabs = (Tabs);
15557
15623
  ;// CONCATENATED MODULE: ./src/getTabTransitionComponent.ts
15558
15624
 
15625
+
15559
15626
  function getTabTransitionComponent(transition) {
15560
15627
  if (typeof transition === 'boolean') {
15561
- return transition ? src_Fade : undefined;
15628
+ return transition ? src_Fade : esm_NoopTransition;
15562
15629
  }
15563
15630
 
15564
15631
  return transition;
@@ -16378,7 +16445,14 @@ const ToastContainer_propTypes = {
16378
16445
  /**
16379
16446
  * Where the toasts will be placed within the container.
16380
16447
  */
16381
- position: prop_types_default().oneOf(['top-start', 'top-center', 'top-end', 'middle-start', 'middle-center', 'middle-end', 'bottom-start', 'bottom-center', 'bottom-end'])
16448
+ position: prop_types_default().oneOf(['top-start', 'top-center', 'top-end', 'middle-start', 'middle-center', 'middle-end', 'bottom-start', 'bottom-center', 'bottom-end']),
16449
+
16450
+ /**
16451
+ * 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.
16452
+ *
16453
+ * @default 'absolute'
16454
+ */
16455
+ containerPosition: (prop_types_default()).string
16382
16456
  };
16383
16457
  const positionClasses = {
16384
16458
  'top-start': 'top-0 start-0',
@@ -16394,6 +16468,7 @@ const positionClasses = {
16394
16468
  const ToastContainer = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
16395
16469
  bsPrefix,
16396
16470
  position,
16471
+ containerPosition = 'absolute',
16397
16472
  className,
16398
16473
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
16399
16474
  as: Component = 'div',
@@ -16403,10 +16478,10 @@ const ToastContainer = /*#__PURE__*/external_root_React_commonjs2_react_commonjs
16403
16478
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
16404
16479
  ref: ref,
16405
16480
  ...props,
16406
- className: classnames_default()(bsPrefix, position && `position-absolute ${positionClasses[position]}`, className)
16481
+ className: classnames_default()(bsPrefix, position && [containerPosition ? `position-${containerPosition}` : null, positionClasses[position]], className)
16407
16482
  }, void 0, false, {
16408
16483
  fileName: ToastContainer_jsxFileName,
16409
- lineNumber: 76,
16484
+ lineNumber: 85,
16410
16485
  columnNumber: 7
16411
16486
  }, undefined);
16412
16487
  });