react-bootstrap 2.2.0 → 2.2.3

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.
@@ -716,110 +716,6 @@ if (true) {
716
716
 
717
717
  /***/ }),
718
718
 
719
- /***/ 926:
720
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
721
-
722
- "use strict";
723
- /**
724
- * Copyright (c) 2013-present, Facebook, Inc.
725
- *
726
- * This source code is licensed under the MIT license found in the
727
- * LICENSE file in the root directory of this source tree.
728
- */
729
-
730
-
731
- var ReactPropTypesSecret = __webpack_require__(765);
732
-
733
- function emptyFunction() {}
734
-
735
- function emptyFunctionWithReset() {}
736
-
737
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
738
-
739
- module.exports = function () {
740
- function shim(props, propName, componentName, location, propFullName, secret) {
741
- if (secret === ReactPropTypesSecret) {
742
- // It is still safe when called from React.
743
- return;
744
- }
745
-
746
- var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
747
- err.name = 'Invariant Violation';
748
- throw err;
749
- }
750
-
751
- ;
752
- shim.isRequired = shim;
753
-
754
- function getShim() {
755
- return shim;
756
- }
757
-
758
- ; // Important!
759
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
760
-
761
- var ReactPropTypes = {
762
- array: shim,
763
- bool: shim,
764
- func: shim,
765
- number: shim,
766
- object: shim,
767
- string: shim,
768
- symbol: shim,
769
- any: shim,
770
- arrayOf: getShim,
771
- element: shim,
772
- elementType: shim,
773
- instanceOf: getShim,
774
- node: shim,
775
- objectOf: getShim,
776
- oneOf: getShim,
777
- oneOfType: getShim,
778
- shape: getShim,
779
- exact: getShim,
780
- checkPropTypes: emptyFunctionWithReset,
781
- resetWarningCache: emptyFunction
782
- };
783
- ReactPropTypes.PropTypes = ReactPropTypes;
784
- return ReactPropTypes;
785
- };
786
-
787
- /***/ }),
788
-
789
- /***/ 628:
790
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
791
-
792
- /**
793
- * Copyright (c) 2013-present, Facebook, Inc.
794
- *
795
- * This source code is licensed under the MIT license found in the
796
- * LICENSE file in the root directory of this source tree.
797
- */
798
- if (false) { var throwOnDirectAccess, ReactIs; } else {
799
- // By explicitly using `prop-types` you are opting into new production behavior.
800
- // http://fb.me/prop-types-in-prod
801
- module.exports = __webpack_require__(926)();
802
- }
803
-
804
- /***/ }),
805
-
806
- /***/ 765:
807
- /***/ ((module) => {
808
-
809
- "use strict";
810
- /**
811
- * Copyright (c) 2013-present, Facebook, Inc.
812
- *
813
- * This source code is licensed under the MIT license found in the
814
- * LICENSE file in the root directory of this source tree.
815
- */
816
-
817
-
818
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
819
- module.exports = ReactPropTypesSecret;
820
-
821
- /***/ }),
822
-
823
719
  /***/ 955:
824
720
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
825
721
 
@@ -1203,7 +1099,7 @@ var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__
1203
1099
  // EXTERNAL MODULE: ./node_modules/prop-types/index.js
1204
1100
  var prop_types = __webpack_require__(526);
1205
1101
  var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
1206
- ;// CONCATENATED MODULE: ./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/extends.js
1102
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
1207
1103
  function extends_extends() {
1208
1104
  extends_extends = Object.assign || function (target) {
1209
1105
  for (var i = 1; i < arguments.length; i++) {
@@ -1221,7 +1117,7 @@ function extends_extends() {
1221
1117
 
1222
1118
  return extends_extends.apply(this, arguments);
1223
1119
  }
1224
- ;// CONCATENATED MODULE: ./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1120
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1225
1121
  function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
1226
1122
  if (source == null) return {};
1227
1123
  var target = {};
@@ -1860,22 +1756,7 @@ function style(node, property) {
1860
1756
  }
1861
1757
 
1862
1758
  /* harmony default export */ const css = (style);
1863
- ;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1864
- function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
1865
- if (source == null) return {};
1866
- var target = {};
1867
- var sourceKeys = Object.keys(source);
1868
- var key, i;
1869
-
1870
- for (i = 0; i < sourceKeys.length; i++) {
1871
- key = sourceKeys[i];
1872
- if (excluded.indexOf(key) >= 0) continue;
1873
- target[key] = source[key];
1874
- }
1875
-
1876
- return target;
1877
- }
1878
- ;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1759
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1879
1760
  function _setPrototypeOf(o, p) {
1880
1761
  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
1881
1762
  o.__proto__ = p;
@@ -1884,15 +1765,13 @@ function _setPrototypeOf(o, p) {
1884
1765
 
1885
1766
  return _setPrototypeOf(o, p);
1886
1767
  }
1887
- ;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1768
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1888
1769
 
1889
1770
  function inheritsLoose_inheritsLoose(subClass, superClass) {
1890
1771
  subClass.prototype = Object.create(superClass.prototype);
1891
1772
  subClass.prototype.constructor = subClass;
1892
1773
  _setPrototypeOf(subClass, superClass);
1893
1774
  }
1894
- // EXTERNAL MODULE: ./node_modules/react-transition-group/node_modules/prop-types/index.js
1895
- var node_modules_prop_types = __webpack_require__(628);
1896
1775
  // EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
1897
1776
  var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(156);
1898
1777
  var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default = /*#__PURE__*/__webpack_require__.n(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_);
@@ -2295,7 +2174,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
2295
2174
  _onExiting = _this$props.onExiting,
2296
2175
  _onExited = _this$props.onExited,
2297
2176
  _nodeRef = _this$props.nodeRef,
2298
- childProps = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
2177
+ childProps = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
2299
2178
 
2300
2179
  return (
2301
2180
  /*#__PURE__*/
@@ -3265,7 +3144,7 @@ function useEventCallback(fn) {
3265
3144
  return ref.current && ref.current.apply(ref, arguments);
3266
3145
  }, [ref]);
3267
3146
  }
3268
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
3147
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCallbackRef.js
3269
3148
 
3270
3149
  /**
3271
3150
  * A convenience hook around `useState` designed to be paired with
@@ -3295,7 +3174,37 @@ function useEventCallback(fn) {
3295
3174
  function useCallbackRef() {
3296
3175
  return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
3297
3176
  }
3298
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useEventListener.js
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
3299
3208
 
3300
3209
 
3301
3210
  /**
@@ -3313,7 +3222,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
3313
3222
  capture = false;
3314
3223
  }
3315
3224
 
3316
- var handler = useEventCallback(listener);
3225
+ var handler = useEventCallback_useEventCallback(listener);
3317
3226
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3318
3227
  var target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
3319
3228
  target.addEventListener(event, handler, capture);
@@ -3322,7 +3231,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
3322
3231
  };
3323
3232
  }, [eventTarget]);
3324
3233
  }
3325
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useGlobalListener.js
3234
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useGlobalListener.js
3326
3235
 
3327
3236
 
3328
3237
  /**
@@ -3350,7 +3259,7 @@ function useGlobalListener(event, handler, capture) {
3350
3259
  }, []);
3351
3260
  return useEventListener(documentTarget, event, handler, capture);
3352
3261
  }
3353
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useInterval.js
3262
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useInterval.js
3354
3263
 
3355
3264
 
3356
3265
  /**
@@ -3409,7 +3318,7 @@ function useInterval(fn, ms, paused, runImmediately) {
3409
3318
  }
3410
3319
 
3411
3320
  /* harmony default export */ const esm_useInterval = ((/* unused pure expression or super */ null && (useInterval)));
3412
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useRafInterval.js
3321
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useRafInterval.js
3413
3322
 
3414
3323
 
3415
3324
 
@@ -3448,7 +3357,7 @@ function useRafInterval(fn, ms, paused) {
3448
3357
  }
3449
3358
 
3450
3359
  /* harmony default export */ const esm_useRafInterval = ((/* unused pure expression or super */ null && (useRafInterval)));
3451
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeState.js
3360
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeState.js
3452
3361
  function useMergeState_extends() {
3453
3362
  useMergeState_extends = Object.assign || function (target) {
3454
3363
  for (var i = 1; i < arguments.length; i++) {
@@ -3505,7 +3414,7 @@ function useMergeState_useMergeState(initialState) {
3505
3414
  }, [setState]);
3506
3415
  return [state, updater];
3507
3416
  }
3508
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3417
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3509
3418
 
3510
3419
  function useMergeStateFromProps(props, gDSFP, initialState) {
3511
3420
  var _useMergeState = useMergeState(initialState),
@@ -3516,7 +3425,7 @@ function useMergeStateFromProps(props, gDSFP, initialState) {
3516
3425
  if (nextState !== null) setState(nextState);
3517
3426
  return [state, setState];
3518
3427
  }
3519
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
3428
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMounted.js
3520
3429
 
3521
3430
  /**
3522
3431
  * Track whether a component is current mounted. Generally less preferable than
@@ -3551,7 +3460,7 @@ function useMounted() {
3551
3460
  }, []);
3552
3461
  return isMounted.current;
3553
3462
  }
3554
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/usePrevious.js
3463
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/usePrevious.js
3555
3464
 
3556
3465
  /**
3557
3466
  * Store the last of some value. Tracked via a `Ref` only updating it
@@ -3578,7 +3487,7 @@ function usePrevious(value) {
3578
3487
  });
3579
3488
  return ref.current;
3580
3489
  }
3581
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useImage.js
3490
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useImage.js
3582
3491
 
3583
3492
  /**
3584
3493
  * Fetch and load an image for programatic use such as in a `<canvas>` element.
@@ -3657,7 +3566,7 @@ function useImage(imageOrUrl, crossOrigin) {
3657
3566
  }, [imageOrUrl, crossOrigin]);
3658
3567
  return state;
3659
3568
  }
3660
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3569
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3661
3570
 
3662
3571
  var isReactNative = typeof __webpack_require__.g !== 'undefined' && // @ts-ignore
3663
3572
  __webpack_require__.g.navigator && // @ts-ignore
@@ -3673,7 +3582,7 @@ var isDOM = typeof document !== 'undefined';
3673
3582
  */
3674
3583
 
3675
3584
  /* 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);
3676
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useResizeObserver.js
3585
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useResizeObserver.js
3677
3586
 
3678
3587
 
3679
3588
  var targetMap = new WeakMap();
@@ -3726,7 +3635,7 @@ function useResizeObserver(element) {
3726
3635
  }, [element]);
3727
3636
  return rect;
3728
3637
  }
3729
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/index.js
3638
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/index.js
3730
3639
 
3731
3640
 
3732
3641
 
@@ -3900,7 +3809,7 @@ const Anchor = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
3900
3809
  const [buttonProps] = useButtonProps(Object.assign({
3901
3810
  tagName: 'a'
3902
3811
  }, props));
3903
- const handleKeyDown = useEventCallback(e => {
3812
+ const handleKeyDown = useEventCallback_useEventCallback(e => {
3904
3813
  buttonProps.onKeyDown(e);
3905
3814
  onKeyDown == null ? void 0 : onKeyDown(e);
3906
3815
  });
@@ -4939,6 +4848,42 @@ function useUpdateEffect(fn, deps) {
4939
4848
  }
4940
4849
 
4941
4850
  /* 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
+ }
4942
4887
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useUpdatedRef.js
4943
4888
 
4944
4889
  /**
@@ -5013,7 +4958,7 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
5013
4958
 
5014
4959
 
5015
4960
  function useTimeout() {
5016
- var isMounted = useMounted(); // types are confused between node and web here IDK
4961
+ var isMounted = useMounted_useMounted(); // types are confused between node and web here IDK
5017
4962
 
5018
4963
  var handleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
5019
4964
  useWillUnmount(function () {
@@ -5216,7 +5161,7 @@ const Carousel_propTypes = {
5216
5161
  /**
5217
5162
  * The amount of time to delay between automatically cycling an item. If `null`, carousel will not automatically cycle.
5218
5163
  */
5219
- interval: (prop_types_default()).number,
5164
+ interval: prop_types_default().oneOfType([(prop_types_default()).number, prop_types_default().oneOf([null])]),
5220
5165
 
5221
5166
  /** Whether the carousel should react to keyboard events. */
5222
5167
  keyboard: (prop_types_default()).bool,
@@ -5346,21 +5291,21 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5346
5291
  const [paused, setPaused] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
5347
5292
  const [isSliding, setIsSliding] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
5348
5293
  const [renderedActiveIndex, setRenderedActiveIndex] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(activeIndex || 0);
5294
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
5295
+ if (!isSliding && activeIndex !== renderedActiveIndex) {
5296
+ if (nextDirectionRef.current) {
5297
+ setDirection(nextDirectionRef.current);
5298
+ } else {
5299
+ setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
5300
+ }
5349
5301
 
5350
- if (!isSliding && activeIndex !== renderedActiveIndex) {
5351
- if (nextDirectionRef.current) {
5352
- setDirection(nextDirectionRef.current);
5353
- } else {
5354
- setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
5355
- }
5302
+ if (slide) {
5303
+ setIsSliding(true);
5304
+ }
5356
5305
 
5357
- if (slide) {
5358
- setIsSliding(true);
5306
+ setRenderedActiveIndex(activeIndex || 0);
5359
5307
  }
5360
-
5361
- setRenderedActiveIndex(activeIndex || 0);
5362
- }
5363
-
5308
+ }, [activeIndex, isSliding, renderedActiveIndex, slide]);
5364
5309
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
5365
5310
  if (nextDirectionRef.current) {
5366
5311
  nextDirectionRef.current = null;
@@ -5580,12 +5525,12 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5580
5525
  "aria-current": index === renderedActiveIndex
5581
5526
  }, index, false, {
5582
5527
  fileName: Carousel_jsxFileName,
5583
- lineNumber: 558,
5528
+ lineNumber: 560,
5584
5529
  columnNumber: 15
5585
5530
  }, undefined))
5586
5531
  }, void 0, false, {
5587
5532
  fileName: Carousel_jsxFileName,
5588
- lineNumber: 556,
5533
+ lineNumber: 558,
5589
5534
  columnNumber: 11
5590
5535
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
5591
5536
  className: `${prefix}-inner`,
@@ -5601,7 +5546,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5601
5546
  })
5602
5547
  }, void 0, false, {
5603
5548
  fileName: Carousel_jsxFileName,
5604
- lineNumber: 582,
5549
+ lineNumber: 584,
5605
5550
  columnNumber: 15
5606
5551
  }, undefined) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement(child, {
5607
5552
  className: classnames_default()(child.props.className, isActive && 'active')
@@ -5609,7 +5554,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5609
5554
  })
5610
5555
  }, void 0, false, {
5611
5556
  fileName: Carousel_jsxFileName,
5612
- lineNumber: 577,
5557
+ lineNumber: 579,
5613
5558
  columnNumber: 9
5614
5559
  }, undefined), controls && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(jsx_dev_runtime.Fragment, {
5615
5560
  children: [(wrap || activeIndex !== 0) && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Anchor, {
@@ -5620,12 +5565,12 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5620
5565
  children: prevLabel
5621
5566
  }, void 0, false, {
5622
5567
  fileName: Carousel_jsxFileName,
5623
- lineNumber: 622,
5568
+ lineNumber: 624,
5624
5569
  columnNumber: 19
5625
5570
  }, undefined)]
5626
5571
  }, void 0, true, {
5627
5572
  fileName: Carousel_jsxFileName,
5628
- lineNumber: 619,
5573
+ lineNumber: 621,
5629
5574
  columnNumber: 15
5630
5575
  }, undefined), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Anchor, {
5631
5576
  className: `${prefix}-control-next`,
@@ -5635,18 +5580,18 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5635
5580
  children: nextLabel
5636
5581
  }, void 0, false, {
5637
5582
  fileName: Carousel_jsxFileName,
5638
- lineNumber: 630,
5583
+ lineNumber: 632,
5639
5584
  columnNumber: 19
5640
5585
  }, undefined)]
5641
5586
  }, void 0, true, {
5642
5587
  fileName: Carousel_jsxFileName,
5643
- lineNumber: 627,
5588
+ lineNumber: 629,
5644
5589
  columnNumber: 15
5645
5590
  }, undefined)]
5646
5591
  }, void 0, true)]
5647
5592
  }, void 0, true, {
5648
5593
  fileName: Carousel_jsxFileName,
5649
- lineNumber: 538,
5594
+ lineNumber: 540,
5650
5595
  columnNumber: 7
5651
5596
  }, undefined);
5652
5597
  });
@@ -5794,7 +5739,7 @@ var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
5794
5739
  function qsa(element, selector) {
5795
5740
  return toArray(element.querySelectorAll(selector));
5796
5741
  }
5797
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useForceUpdate.js
5742
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useForceUpdate.js
5798
5743
 
5799
5744
  /**
5800
5745
  * Returns a function that triggers a component update. the hook equivalent to
@@ -5913,7 +5858,7 @@ function dequal(foo, bar) {
5913
5858
  return foo !== foo && bar !== bar;
5914
5859
  }
5915
5860
 
5916
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useSafeState.js
5861
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useSafeState.js
5917
5862
 
5918
5863
 
5919
5864
 
@@ -7988,6 +7933,11 @@ function isModifiedEvent(event) {
7988
7933
  }
7989
7934
 
7990
7935
  const getRefTarget = ref => ref && ('current' in ref ? ref.current : ref);
7936
+ const InitialTriggerEvents = {
7937
+ click: 'mousedown',
7938
+ mouseup: 'mousedown',
7939
+ pointerup: 'pointerdown'
7940
+ };
7991
7941
  /**
7992
7942
  * The `useClickOutside` hook registers your callback on the document that fires
7993
7943
  * when a pointer event is registered outside of the provided ref or element.
@@ -8004,12 +7954,21 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
8004
7954
  clickTrigger = 'click'
8005
7955
  } = {}) {
8006
7956
  const preventMouseClickOutsideRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
7957
+ const waitingForTrigger = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
8007
7958
  const handleMouseCapture = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(e => {
8008
7959
  const currentTarget = getRefTarget(ref);
8009
7960
  warning_default()(!!currentTarget, 'ClickOutside captured a close event but does not have a ref to compare it to. ' + 'useClickOutside(), should be passed a ref that resolves to a DOM node');
8010
- preventMouseClickOutsideRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains_contains(currentTarget, e.target);
7961
+ preventMouseClickOutsideRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains_contains(currentTarget, e.target) || waitingForTrigger.current;
7962
+ waitingForTrigger.current = false;
8011
7963
  }, [ref]);
8012
- const handleMouse = useEventCallback(e => {
7964
+ const handleInitialMouse = useEventCallback_useEventCallback(e => {
7965
+ const currentTarget = getRefTarget(ref);
7966
+
7967
+ if (currentTarget && contains_contains(currentTarget, e.target)) {
7968
+ waitingForTrigger.current = true;
7969
+ }
7970
+ });
7971
+ const handleMouse = useEventCallback_useEventCallback(e => {
8013
7972
  if (!preventMouseClickOutsideRef.current) {
8014
7973
  onClickOutside(e);
8015
7974
  }
@@ -8019,10 +7978,16 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
8019
7978
  const doc = ownerDocument(getRefTarget(ref)); // Store the current event to avoid triggering handlers immediately
8020
7979
  // https://github.com/facebook/react/issues/20074
8021
7980
 
8022
- let currentEvent = (doc.defaultView || window).event; // Use capture for this listener so it fires before React's listener, to
7981
+ let currentEvent = (doc.defaultView || window).event;
7982
+ let removeInitialTriggerListener = null;
7983
+
7984
+ if (InitialTriggerEvents[clickTrigger]) {
7985
+ removeInitialTriggerListener = esm_listen(doc, InitialTriggerEvents[clickTrigger], handleInitialMouse, true);
7986
+ } // Use capture for this listener so it fires before React's listener, to
8023
7987
  // avoid false positives in the contains() check below if the target DOM
8024
7988
  // element is removed in the React mouse callback.
8025
7989
 
7990
+
8026
7991
  const removeMouseCaptureListener = esm_listen(doc, clickTrigger, handleMouseCapture, true);
8027
7992
  const removeMouseListener = esm_listen(doc, clickTrigger, e => {
8028
7993
  // skip if this event is the same as the one running when we added the handlers
@@ -8040,11 +8005,12 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
8040
8005
  }
8041
8006
 
8042
8007
  return () => {
8008
+ removeInitialTriggerListener == null ? void 0 : removeInitialTriggerListener();
8043
8009
  removeMouseCaptureListener();
8044
8010
  removeMouseListener();
8045
8011
  mobileSafariHackListeners.forEach(remove => remove());
8046
8012
  };
8047
- }, [ref, disabled, clickTrigger, handleMouseCapture, handleMouse]);
8013
+ }, [ref, disabled, clickTrigger, handleMouseCapture, handleInitialMouse, handleMouse]);
8048
8014
  }
8049
8015
 
8050
8016
  /* harmony default export */ const esm_useClickOutside = (useClickOutside);
@@ -8449,7 +8415,7 @@ function useDropdownItem({
8449
8415
  } = navContext || {};
8450
8416
  const eventKey = makeEventKey(key, href);
8451
8417
  const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;
8452
- const handleClick = useEventCallback(event => {
8418
+ const handleClick = useEventCallback_useEventCallback(event => {
8453
8419
  if (disabled) return;
8454
8420
  onClick == null ? void 0 : onClick(event);
8455
8421
 
@@ -8568,7 +8534,7 @@ function Dropdown({
8568
8534
  source
8569
8535
  });
8570
8536
  }, [onToggle]);
8571
- const handleSelect = useEventCallback((key, event) => {
8537
+ const handleSelect = useEventCallback_useEventCallback((key, event) => {
8572
8538
  onSelect == null ? void 0 : onSelect(key, event);
8573
8539
  toggle(false, event, 'select');
8574
8540
 
@@ -8590,12 +8556,12 @@ function Dropdown({
8590
8556
  focusInDropdown.current = menuElement.contains(menuElement.ownerDocument.activeElement);
8591
8557
  }
8592
8558
 
8593
- const focusToggle = useEventCallback(() => {
8559
+ const focusToggle = useEventCallback_useEventCallback(() => {
8594
8560
  if (toggleElement && toggleElement.focus) {
8595
8561
  toggleElement.focus();
8596
8562
  }
8597
8563
  });
8598
- const maybeFocusFirst = useEventCallback(() => {
8564
+ const maybeFocusFirst = useEventCallback_useEventCallback(() => {
8599
8565
  const type = lastSourceEvent.current;
8600
8566
  let focusType = focusFirstItemOnShow;
8601
8567
 
@@ -8797,6 +8763,22 @@ const DropdownItem_DropdownItem = /*#__PURE__*/external_root_React_commonjs2_rea
8797
8763
  DropdownItem_DropdownItem.displayName = 'DropdownItem';
8798
8764
  DropdownItem_DropdownItem.propTypes = DropdownItem_propTypes;
8799
8765
  /* 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);
8800
8782
  ;// CONCATENATED MODULE: ./src/InputGroupContext.tsx
8801
8783
 
8802
8784
  const InputGroupContext_context = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -8878,7 +8860,6 @@ const DropdownMenu_propTypes = {
8878
8860
  * @type {"start"|"end"|{ sm: "start"|"end" }|{ md: "start"|"end" }|{ lg: "start"|"end" }|{ xl: "start"|"end"}|{ xxl: "start"|"end"} }
8879
8861
  */
8880
8862
  align: alignPropType,
8881
- onSelect: (prop_types_default()).func,
8882
8863
 
8883
8864
  /**
8884
8865
  * Which event when fired outside the component will cause it to be closed
@@ -8986,7 +8967,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
8986
8967
  placement
8987
8968
  });
8988
8969
  menuProps.ref = esm_useMergedRefs(useWrappedRefWithWarning(ref, 'DropdownMenu'), menuProps.ref);
8989
- useIsomorphicEffect(() => {
8970
+ esm_useIsomorphicEffect(() => {
8990
8971
  // Popper's initial position for the menu is incorrect when
8991
8972
  // renderOnMount=true. Need to call update() to correct it.
8992
8973
  if (show) popper == null ? void 0 : popper.update();
@@ -9022,7 +9003,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
9022
9003
  className: classnames_default()(className, prefix, show && 'show', alignEnd && `${prefix}-end`, variant && `${prefix}-${variant}`, ...alignClasses)
9023
9004
  }, void 0, false, {
9024
9005
  fileName: DropdownMenu_jsxFileName,
9025
- lineNumber: 213,
9006
+ lineNumber: 209,
9026
9007
  columnNumber: 9
9027
9008
  }, undefined);
9028
9009
  });
@@ -10621,6 +10602,47 @@ InputGroup.displayName = 'InputGroup';
10621
10602
  Radio: InputGroupRadio,
10622
10603
  Checkbox: InputGroupCheckbox
10623
10604
  }));
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);
10624
10646
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/TabContext.js
10625
10647
 
10626
10648
  const TabContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -10702,7 +10724,7 @@ function useNavItem({
10702
10724
  }
10703
10725
  }
10704
10726
 
10705
- props.onClick = useEventCallback(e => {
10727
+ props.onClick = useEventCallback_useEventCallback(e => {
10706
10728
  if (disabled) return;
10707
10729
  onClick == null ? void 0 : onClick(e);
10708
10730
 
@@ -10859,7 +10881,7 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
10859
10881
 
10860
10882
  needsRefocusRef.current = false;
10861
10883
  });
10862
- const mergedRef = esm_useMergedRefs(ref, listNode);
10884
+ const mergedRef = hooks_esm_useMergedRefs(ref, listNode);
10863
10885
  return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_SelectableContext.Provider, {
10864
10886
  value: handleSelect,
10865
10887
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_NavContext.Provider, {
@@ -11080,6 +11102,36 @@ function scrollbarSize(recalc) {
11080
11102
 
11081
11103
  return size;
11082
11104
  }
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
+ }
11083
11135
  ;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/activeElement.js
11084
11136
 
11085
11137
  /**
@@ -11106,6 +11158,38 @@ function activeElement(doc) {
11106
11158
  return doc.body;
11107
11159
  }
11108
11160
  }
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
+ }
11109
11193
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/getScrollbarWidth.js
11110
11194
  /**
11111
11195
  * Get the width of the vertical window scrollbar if it's visible
@@ -11388,7 +11472,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11388
11472
  setExited(false);
11389
11473
  }
11390
11474
 
11391
- const handleShow = useEventCallback(() => {
11475
+ const handleShow = useEventCallback_useEventCallback(() => {
11392
11476
  modal.add();
11393
11477
  removeKeydownListenerRef.current = esm_listen(document, 'keydown', handleDocumentKeyDown);
11394
11478
  removeFocusListenerRef.current = esm_listen(document, 'focus', // the timeout is necessary b/c this will run before the new modal is mounted
@@ -11410,7 +11494,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11410
11494
  }
11411
11495
  }
11412
11496
  });
11413
- const handleHide = useEventCallback(() => {
11497
+ const handleHide = useEventCallback_useEventCallback(() => {
11414
11498
  modal.remove();
11415
11499
  removeKeydownListenerRef.current == null ? void 0 : removeKeydownListenerRef.current();
11416
11500
  removeFocusListenerRef.current == null ? void 0 : removeFocusListenerRef.current();
@@ -11439,11 +11523,11 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11439
11523
  if (!exited) return;
11440
11524
  handleHide();
11441
11525
  }, [exited, handleHide]);
11442
- useWillUnmount(() => {
11526
+ useWillUnmount_useWillUnmount(() => {
11443
11527
  handleHide();
11444
11528
  }); // --------------------------------
11445
11529
 
11446
- const handleEnforceFocus = useEventCallback(() => {
11530
+ const handleEnforceFocus = useEventCallback_useEventCallback(() => {
11447
11531
  if (!enforceFocus || !isMounted() || !modal.isTopModal()) {
11448
11532
  return;
11449
11533
  }
@@ -11454,7 +11538,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11454
11538
  modal.dialog.focus();
11455
11539
  }
11456
11540
  });
11457
- const handleBackdropClick = useEventCallback(e => {
11541
+ const handleBackdropClick = useEventCallback_useEventCallback(e => {
11458
11542
  if (e.target !== e.currentTarget) {
11459
11543
  return;
11460
11544
  }
@@ -11465,7 +11549,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11465
11549
  onHide();
11466
11550
  }
11467
11551
  });
11468
- const handleDocumentKeyDown = useEventCallback(e => {
11552
+ const handleDocumentKeyDown = useEventCallback_useEventCallback(e => {
11469
11553
  if (keyboard && e.keyCode === 27 && modal.isTopModal()) {
11470
11554
  onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);
11471
11555
 
@@ -12070,7 +12154,9 @@ const Modal_propTypes = {
12070
12154
  * @private
12071
12155
  */
12072
12156
  container: (prop_types_default()).any,
12073
- 'aria-labelledby': (prop_types_default()).any
12157
+ 'aria-labelledby': (prop_types_default()).string,
12158
+ 'aria-describedby': (prop_types_default()).string,
12159
+ 'aria-label': (prop_types_default()).string
12074
12160
  };
12075
12161
  const Modal_defaultProps = {
12076
12162
  show: false,
@@ -12089,7 +12175,7 @@ function DialogTransition(props) {
12089
12175
  timeout: null
12090
12176
  }, void 0, false, {
12091
12177
  fileName: Modal_jsxFileName,
12092
- lineNumber: 236,
12178
+ lineNumber: 238,
12093
12179
  columnNumber: 10
12094
12180
  }, this);
12095
12181
  }
@@ -12099,7 +12185,7 @@ function BackdropTransition(props) {
12099
12185
  timeout: null
12100
12186
  }, void 0, false, {
12101
12187
  fileName: Modal_jsxFileName,
12102
- lineNumber: 240,
12188
+ lineNumber: 242,
12103
12189
  columnNumber: 10
12104
12190
  }, this);
12105
12191
  }
@@ -12115,6 +12201,8 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12115
12201
  children,
12116
12202
  dialogAs: Dialog,
12117
12203
  'aria-labelledby': ariaLabelledby,
12204
+ 'aria-describedby': ariaDescribedby,
12205
+ 'aria-label': ariaLabel,
12118
12206
 
12119
12207
  /* BaseModal props */
12120
12208
  show,
@@ -12144,7 +12232,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12144
12232
  const waitingForMouseUpRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12145
12233
  const ignoreBackdropClickRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12146
12234
  const removeStaticModalAnimationRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
12147
- const [modal, setModalRef] = useCallbackRef();
12235
+ const [modal, setModalRef] = useCallbackRef_useCallbackRef();
12148
12236
  const mergedRef = esm_useMergedRefs(ref, setModalRef);
12149
12237
  const handleHide = useEventCallback(onHide);
12150
12238
  const isRTL = useIsRTL();
@@ -12236,7 +12324,6 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12236
12324
 
12237
12325
  const handleEnter = (node, isAppearing) => {
12238
12326
  if (node) {
12239
- node.style.display = 'block';
12240
12327
  updateDialogStyle(node);
12241
12328
  }
12242
12329
 
@@ -12266,16 +12353,15 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12266
12353
  className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName, !animation && 'show')
12267
12354
  }, void 0, false, {
12268
12355
  fileName: Modal_jsxFileName,
12269
- lineNumber: 431,
12356
+ lineNumber: 434,
12270
12357
  columnNumber: 11
12271
12358
  }, undefined), [animation, backdropClassName, bsPrefix]);
12272
12359
  const baseModalStyle = { ...style,
12273
12360
  ...modalStyle
12274
- }; // Sets `display` always block when `animation` is false
12361
+ }; // If `display` is not set to block, autoFocus inside the modal fails
12362
+ // https://github.com/react-bootstrap/react-bootstrap/issues/5102
12275
12363
 
12276
- if (!animation) {
12277
- baseModalStyle.display = 'block';
12278
- }
12364
+ baseModalStyle.display = 'block';
12279
12365
 
12280
12366
  const renderDialog = dialogProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
12281
12367
  role: "dialog",
@@ -12284,7 +12370,9 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12284
12370
  className: classnames_default()(className, bsPrefix, animateStaticModal && `${bsPrefix}-static`),
12285
12371
  onClick: backdrop ? handleClick : undefined,
12286
12372
  onMouseUp: handleMouseUp,
12373
+ "aria-label": ariaLabel,
12287
12374
  "aria-labelledby": ariaLabelledby,
12375
+ "aria-describedby": ariaDescribedby,
12288
12376
  children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Dialog, { ...props,
12289
12377
  onMouseDown: handleDialogMouseDown,
12290
12378
  className: dialogClassName,
@@ -12292,12 +12380,12 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12292
12380
  children: children
12293
12381
  }, void 0, false, {
12294
12382
  fileName: Modal_jsxFileName,
12295
- lineNumber: 466,
12383
+ lineNumber: 470,
12296
12384
  columnNumber: 11
12297
12385
  }, undefined)
12298
12386
  }, void 0, false, {
12299
12387
  fileName: Modal_jsxFileName,
12300
- lineNumber: 451,
12388
+ lineNumber: 453,
12301
12389
  columnNumber: 9
12302
12390
  }, undefined);
12303
12391
 
@@ -12330,12 +12418,12 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12330
12418
  renderDialog: renderDialog
12331
12419
  }, void 0, false, {
12332
12420
  fileName: Modal_jsxFileName,
12333
- lineNumber: 479,
12421
+ lineNumber: 483,
12334
12422
  columnNumber: 11
12335
12423
  }, undefined)
12336
12424
  }, void 0, false, {
12337
12425
  fileName: Modal_jsxFileName,
12338
- lineNumber: 478,
12426
+ lineNumber: 482,
12339
12427
  columnNumber: 9
12340
12428
  }, undefined);
12341
12429
  });
@@ -13585,7 +13673,7 @@ function useRootClose(ref, onRootClose, {
13585
13673
  disabled,
13586
13674
  clickTrigger
13587
13675
  });
13588
- const handleKeyUp = useEventCallback(e => {
13676
+ const handleKeyUp = useEventCallback_useEventCallback(e => {
13589
13677
  if (e.keyCode === escapeKeyCode) {
13590
13678
  onClose(e);
13591
13679
  }
@@ -13639,7 +13727,7 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
13639
13727
  } = props;
13640
13728
  const [rootElement, attachRef] = useCallbackRef();
13641
13729
  const [arrowElement, attachArrowRef] = useCallbackRef();
13642
- const mergedRef = esm_useMergedRefs(attachRef, outerRef);
13730
+ const mergedRef = hooks_esm_useMergedRefs(attachRef, outerRef);
13643
13731
  const container = useWaitForDOMRef(props.container);
13644
13732
  const target = useWaitForDOMRef(props.target);
13645
13733
  const [exited, setExited] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(!props.show);
@@ -13852,7 +13940,7 @@ Popover.defaultProps = Popover_defaultProps;
13852
13940
  // This is meant for internal use.
13853
13941
  // This applies a custom offset to the overlay if it's a popover.
13854
13942
 
13855
- function useOverlayOffset() {
13943
+ function useOverlayOffset(customOffset) {
13856
13944
  const overlayRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
13857
13945
  const popoverClass = useBootstrapPrefix(undefined, 'popover');
13858
13946
  const offset = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
@@ -13860,13 +13948,13 @@ function useOverlayOffset() {
13860
13948
  options: {
13861
13949
  offset: () => {
13862
13950
  if (overlayRef.current && hasClass(overlayRef.current, popoverClass)) {
13863
- return src_Popover.POPPER_OFFSET;
13951
+ return customOffset || src_Popover.POPPER_OFFSET;
13864
13952
  }
13865
13953
 
13866
- return [0, 0];
13954
+ return customOffset || [0, 0];
13867
13955
  }
13868
13956
  }
13869
- }), [popoverClass]);
13957
+ }), [customOffset, popoverClass]);
13870
13958
  return [overlayRef, [offset]];
13871
13959
  }
13872
13960
  ;// CONCATENATED MODULE: ./src/Overlay.tsx
@@ -13989,7 +14077,7 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
13989
14077
  ...outerProps
13990
14078
  }, outerRef) => {
13991
14079
  const popperRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({});
13992
- const [ref, modifiers] = useOverlayOffset();
14080
+ const [ref, modifiers] = useOverlayOffset(outerProps.offset);
13993
14081
  const mergedRef = esm_useMergedRefs(outerRef, ref);
13994
14082
  const actualTransition = transition === true ? src_Fade : transition || undefined;
13995
14083
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Overlay, { ...outerProps,
@@ -15290,7 +15378,7 @@ function NoopTransition({
15290
15378
 
15291
15379
  /* harmony default export */ const esm_NoopTransition = (NoopTransition);
15292
15380
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/TabPanel.js
15293
- const TabPanel_excluded = ["active", "eventKey", "mountOnEnter", "transition", "unmountOnExit", "role"],
15381
+ const TabPanel_excluded = ["active", "eventKey", "mountOnEnter", "transition", "unmountOnExit", "role", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited"],
15294
15382
  _excluded2 = ["activeKey", "getControlledId", "getControllerId"],
15295
15383
  _excluded3 = ["as"];
15296
15384
 
@@ -15322,7 +15410,13 @@ function useTabPanel(_ref) {
15322
15410
  mountOnEnter,
15323
15411
  transition,
15324
15412
  unmountOnExit,
15325
- role = 'tabpanel'
15413
+ role = 'tabpanel',
15414
+ onEnter,
15415
+ onEntering,
15416
+ onEntered,
15417
+ onExit,
15418
+ onExiting,
15419
+ onExited
15326
15420
  } = _ref,
15327
15421
  props = TabPanel_objectWithoutPropertiesLoose(_ref, TabPanel_excluded);
15328
15422
 
@@ -15334,7 +15428,13 @@ function useTabPanel(_ref) {
15334
15428
  isActive: active,
15335
15429
  mountOnEnter,
15336
15430
  transition,
15337
- unmountOnExit
15431
+ unmountOnExit,
15432
+ onEnter,
15433
+ onEntering,
15434
+ onEntered,
15435
+ onExit,
15436
+ onExiting,
15437
+ onExited
15338
15438
  }];
15339
15439
 
15340
15440
  const {
@@ -15354,7 +15454,13 @@ function useTabPanel(_ref) {
15354
15454
  isActive: active == null && key != null ? makeEventKey(activeKey) === key : active,
15355
15455
  transition: transition || rest.transition,
15356
15456
  mountOnEnter: mountOnEnter != null ? mountOnEnter : rest.mountOnEnter,
15357
- unmountOnExit: unmountOnExit != null ? unmountOnExit : rest.unmountOnExit
15457
+ unmountOnExit: unmountOnExit != null ? unmountOnExit : rest.unmountOnExit,
15458
+ onEnter,
15459
+ onEntering,
15460
+ onEntered,
15461
+ onExit,
15462
+ onExiting,
15463
+ onExited
15358
15464
  }];
15359
15465
  }
15360
15466
  const TabPanel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595