react-bootstrap 2.7.3 → 2.7.4

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.
@@ -15,9 +15,9 @@ return /******/ (() => { // webpackBootstrap
15
15
  /***/ ((module, exports) => {
16
16
 
17
17
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
18
- Copyright (c) 2018 Jed Watson.
19
- Licensed under the MIT License (MIT), see
20
- http://jedwatson.github.io/classnames
18
+ Copyright (c) 2018 Jed Watson.
19
+ Licensed under the MIT License (MIT), see
20
+ http://jedwatson.github.io/classnames
21
21
  */
22
22
  /* global define */
23
23
 
@@ -25,6 +25,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
25
25
  'use strict';
26
26
 
27
27
  var hasOwn = {}.hasOwnProperty;
28
+ var nativeCodeString = '[native code]';
28
29
  function classNames() {
29
30
  var classes = [];
30
31
  for (var i = 0; i < arguments.length; i++) {
@@ -41,14 +42,14 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
41
42
  }
42
43
  }
43
44
  } else if (argType === 'object') {
44
- if (arg.toString === Object.prototype.toString) {
45
- for (var key in arg) {
46
- if (hasOwn.call(arg, key) && arg[key]) {
47
- classes.push(key);
48
- }
49
- }
50
- } else {
45
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
51
46
  classes.push(arg.toString());
47
+ continue;
48
+ }
49
+ for (var key in arg) {
50
+ if (hasOwn.call(arg, key) && arg[key]) {
51
+ classes.push(key);
52
+ }
52
53
  }
53
54
  }
54
55
  }
@@ -1574,7 +1575,20 @@ function style(node, property) {
1574
1575
  node.style.cssText += ";" + css;
1575
1576
  }
1576
1577
  /* harmony default export */ const css = (style);
1577
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1578
+ ;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1579
+ function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
1580
+ if (source == null) return {};
1581
+ var target = {};
1582
+ var sourceKeys = Object.keys(source);
1583
+ var key, i;
1584
+ for (i = 0; i < sourceKeys.length; i++) {
1585
+ key = sourceKeys[i];
1586
+ if (excluded.indexOf(key) >= 0) continue;
1587
+ target[key] = source[key];
1588
+ }
1589
+ return target;
1590
+ }
1591
+ ;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1578
1592
  function _setPrototypeOf(o, p) {
1579
1593
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
1580
1594
  o.__proto__ = p;
@@ -1582,7 +1596,7 @@ function _setPrototypeOf(o, p) {
1582
1596
  };
1583
1597
  return _setPrototypeOf(o, p);
1584
1598
  }
1585
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1599
+ ;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1586
1600
 
1587
1601
  function inheritsLoose_inheritsLoose(subClass, superClass) {
1588
1602
  subClass.prototype = Object.create(superClass.prototype);
@@ -1599,6 +1613,10 @@ var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_
1599
1613
  ;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/TransitionGroupContext.js
1600
1614
 
1601
1615
  /* harmony default export */ const TransitionGroupContext = (external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext(null));
1616
+ ;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/utils/reflow.js
1617
+ var forceReflow = function forceReflow(node) {
1618
+ return node.scrollTop;
1619
+ };
1602
1620
  ;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/Transition.js
1603
1621
 
1604
1622
 
@@ -1608,6 +1626,7 @@ var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_
1608
1626
 
1609
1627
 
1610
1628
 
1629
+
1611
1630
  var UNMOUNTED = 'unmounted';
1612
1631
  var EXITED = 'exited';
1613
1632
  var ENTERING = 'entering';
@@ -1808,6 +1827,13 @@ var Transition = /*#__PURE__*/function (_React$Component) {
1808
1827
  // nextStatus will always be ENTERING or EXITING.
1809
1828
  this.cancelNextCallback();
1810
1829
  if (nextStatus === ENTERING) {
1830
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
1831
+ var node = this.props.nodeRef ? this.props.nodeRef.current : external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749
1832
+ // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.
1833
+ // To make the animation happen, we have to separate each rendering and avoid being processed as batched.
1834
+
1835
+ if (node) forceReflow(node);
1836
+ }
1811
1837
  this.performEnter(mounting);
1812
1838
  } else {
1813
1839
  this.performExit();
@@ -1947,7 +1973,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
1947
1973
  _onExiting = _this$props.onExiting,
1948
1974
  _onExited = _this$props.onExited,
1949
1975
  _nodeRef = _this$props.nodeRef,
1950
- childProps = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
1976
+ childProps = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
1951
1977
  return /*#__PURE__*/(
1952
1978
  // allows for nested Transitions
1953
1979
  external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(TransitionGroupContext.Provider, {
@@ -2481,7 +2507,7 @@ const AccordionCollapse_propTypes = {
2481
2507
  };
2482
2508
 
2483
2509
  /**
2484
- * This component accepts all of [`Collapse`'s props](/utilities/transitions/#collapse-props).
2510
+ * This component accepts all of [`Collapse`'s props](/docs/utilities/transitions#collapse-1).
2485
2511
  */
2486
2512
  const AccordionCollapse = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
2487
2513
  as: Component = 'div',
@@ -3466,18 +3492,16 @@ function Anchor_objectWithoutPropertiesLoose(source, excluded) {
3466
3492
  }
3467
3493
  return target;
3468
3494
  }
3469
-
3470
3495
  /* eslint-disable jsx-a11y/no-static-element-interactions */
3471
-
3472
3496
  /* eslint-disable jsx-a11y/anchor-has-content */
3473
3497
 
3474
3498
 
3475
3499
 
3476
3500
 
3501
+
3477
3502
  function Anchor_isTrivialHref(href) {
3478
3503
  return !href || href.trim() === '#';
3479
3504
  }
3480
-
3481
3505
  /**
3482
3506
  * An generic `<a>` component that covers a few A11y cases, ensuring that
3483
3507
  * cases where the `href` is missing or trivial like "#" are treated like buttons.
@@ -5266,7 +5290,7 @@ function useForceUpdate() {
5266
5290
 
5267
5291
  const DropdownContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
5268
5292
  /* harmony default export */ const esm_DropdownContext = (DropdownContext);
5269
- ;// CONCATENATED MODULE: ./node_modules/dequal/dist/index.mjs
5293
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/dequal/dist/index.mjs
5270
5294
  var has = Object.prototype.hasOwnProperty;
5271
5295
 
5272
5296
  function find(iter, tar, key) {
@@ -5402,37 +5426,56 @@ function isShadowRoot(node) {
5402
5426
  var math_max = Math.max;
5403
5427
  var math_min = Math.min;
5404
5428
  var round = Math.round;
5429
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/userAgent.js
5430
+ function getUAString() {
5431
+ var uaData = navigator.userAgentData;
5432
+ if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
5433
+ return uaData.brands.map(function (item) {
5434
+ return item.brand + "/" + item.version;
5435
+ }).join(' ');
5436
+ }
5437
+ return navigator.userAgent;
5438
+ }
5439
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js
5440
+
5441
+ function isLayoutViewport() {
5442
+ return !/^((?!chrome|android).)*safari/i.test(getUAString());
5443
+ }
5405
5444
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
5406
5445
 
5407
5446
 
5408
- function getBoundingClientRect(element, includeScale) {
5447
+
5448
+
5449
+ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
5409
5450
  if (includeScale === void 0) {
5410
5451
  includeScale = false;
5411
5452
  }
5412
- var rect = element.getBoundingClientRect();
5453
+ if (isFixedStrategy === void 0) {
5454
+ isFixedStrategy = false;
5455
+ }
5456
+ var clientRect = element.getBoundingClientRect();
5413
5457
  var scaleX = 1;
5414
5458
  var scaleY = 1;
5415
- if (isHTMLElement(element) && includeScale) {
5416
- var offsetHeight = element.offsetHeight;
5417
- var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
5418
- // Fallback to 1 in case both values are `0`
5419
-
5420
- if (offsetWidth > 0) {
5421
- scaleX = round(rect.width) / offsetWidth || 1;
5422
- }
5423
- if (offsetHeight > 0) {
5424
- scaleY = round(rect.height) / offsetHeight || 1;
5425
- }
5426
- }
5459
+ if (includeScale && isHTMLElement(element)) {
5460
+ scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
5461
+ scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
5462
+ }
5463
+ var _ref = isElement(element) ? getWindow(element) : window,
5464
+ visualViewport = _ref.visualViewport;
5465
+ var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
5466
+ var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
5467
+ var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
5468
+ var width = clientRect.width / scaleX;
5469
+ var height = clientRect.height / scaleY;
5427
5470
  return {
5428
- width: rect.width / scaleX,
5429
- height: rect.height / scaleY,
5430
- top: rect.top / scaleY,
5431
- right: rect.right / scaleX,
5432
- bottom: rect.bottom / scaleY,
5433
- left: rect.left / scaleX,
5434
- x: rect.left / scaleX,
5435
- y: rect.top / scaleY
5471
+ width: width,
5472
+ height: height,
5473
+ top: y,
5474
+ right: x + width,
5475
+ bottom: y + height,
5476
+ left: x,
5477
+ x: x,
5478
+ y: y
5436
5479
  };
5437
5480
  }
5438
5481
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
@@ -5530,6 +5573,7 @@ function getParentNode(element) {
5530
5573
 
5531
5574
 
5532
5575
 
5576
+
5533
5577
  function getTrueOffsetParent(element) {
5534
5578
  if (!isHTMLElement(element) ||
5535
5579
  // https://github.com/popperjs/popper-core/issues/837
@@ -5541,8 +5585,8 @@ function getTrueOffsetParent(element) {
5541
5585
  // return the containing block
5542
5586
 
5543
5587
  function getContainingBlock(element) {
5544
- var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
5545
- var isIE = navigator.userAgent.indexOf('Trident') !== -1;
5588
+ var isFirefox = /firefox/i.test(getUAString());
5589
+ var isIE = /Trident/i.test(getUAString());
5546
5590
  if (isIE && isHTMLElement(element)) {
5547
5591
  // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
5548
5592
  var elementCss = dom_utils_getComputedStyle_getComputedStyle(element);
@@ -5752,10 +5796,9 @@ var unsetSides = {
5752
5796
  // Zooming can change the DPR, but it seems to report a value that will
5753
5797
  // cleanly divide the values into the appropriate subpixels.
5754
5798
 
5755
- function roundOffsetsByDPR(_ref) {
5799
+ function roundOffsetsByDPR(_ref, win) {
5756
5800
  var x = _ref.x,
5757
5801
  y = _ref.y;
5758
- var win = window;
5759
5802
  var dpr = win.devicePixelRatio || 1;
5760
5803
  return {
5761
5804
  x: round(x * dpr) / dpr || 0,
@@ -5828,7 +5871,7 @@ function mapToStyles(_ref2) {
5828
5871
  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
5829
5872
  x: x,
5830
5873
  y: y
5831
- }) : {
5874
+ }, getWindow(popper)) : {
5832
5875
  x: x,
5833
5876
  y: y
5834
5877
  };
@@ -5981,31 +6024,20 @@ function getWindowScrollBarX(element) {
5981
6024
 
5982
6025
 
5983
6026
 
5984
- function getViewportRect(element) {
6027
+
6028
+ function getViewportRect(element, strategy) {
5985
6029
  var win = getWindow(element);
5986
6030
  var html = getDocumentElement(element);
5987
6031
  var visualViewport = win.visualViewport;
5988
6032
  var width = html.clientWidth;
5989
6033
  var height = html.clientHeight;
5990
6034
  var x = 0;
5991
- var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
5992
- // can be obscured underneath it.
5993
- // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
5994
- // if it isn't open, so if this isn't available, the popper will be detected
5995
- // to overflow the bottom of the screen too early.
5996
-
6035
+ var y = 0;
5997
6036
  if (visualViewport) {
5998
6037
  width = visualViewport.width;
5999
- height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
6000
- // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
6001
- // errors due to floating point numbers, so we need to check precision.
6002
- // Safari returns a number <= 0, usually < -1 when pinch-zoomed
6003
- // Feature detection fails in mobile emulation mode in Chrome.
6004
- // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
6005
- // 0.001
6006
- // Fallback here: "Not Safari" userAgent
6007
-
6008
- if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
6038
+ height = visualViewport.height;
6039
+ var layoutViewport = isLayoutViewport();
6040
+ if (layoutViewport || !layoutViewport && strategy === 'fixed') {
6009
6041
  x = visualViewport.offsetLeft;
6010
6042
  y = visualViewport.offsetTop;
6011
6043
  }
@@ -6119,8 +6151,8 @@ function rectToClientRect(rect) {
6119
6151
 
6120
6152
 
6121
6153
 
6122
- function getInnerBoundingClientRect(element) {
6123
- var rect = getBoundingClientRect(element);
6154
+ function getInnerBoundingClientRect(element, strategy) {
6155
+ var rect = getBoundingClientRect(element, false, strategy === 'fixed');
6124
6156
  rect.top = rect.top + element.clientTop;
6125
6157
  rect.left = rect.left + element.clientLeft;
6126
6158
  rect.bottom = rect.top + element.clientHeight;
@@ -6131,8 +6163,8 @@ function getInnerBoundingClientRect(element) {
6131
6163
  rect.y = rect.top;
6132
6164
  return rect;
6133
6165
  }
6134
- function getClientRectFromMixedType(element, clippingParent) {
6135
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
6166
+ function getClientRectFromMixedType(element, clippingParent, strategy) {
6167
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
6136
6168
  } // A "clipping parent" is an overflowable container with the characteristic of
6137
6169
  // clipping (or hiding) overflowing elements with a position different from
6138
6170
  // `initial`
@@ -6151,18 +6183,18 @@ function getClippingParents(element) {
6151
6183
  } // Gets the maximum area that the element is visible in due to any number of
6152
6184
  // clipping parents
6153
6185
 
6154
- function getClippingRect(element, boundary, rootBoundary) {
6186
+ function getClippingRect(element, boundary, rootBoundary, strategy) {
6155
6187
  var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
6156
6188
  var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
6157
6189
  var firstClippingParent = clippingParents[0];
6158
6190
  var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
6159
- var rect = getClientRectFromMixedType(element, clippingParent);
6191
+ var rect = getClientRectFromMixedType(element, clippingParent, strategy);
6160
6192
  accRect.top = math_max(rect.top, accRect.top);
6161
6193
  accRect.right = math_min(rect.right, accRect.right);
6162
6194
  accRect.bottom = math_min(rect.bottom, accRect.bottom);
6163
6195
  accRect.left = math_max(rect.left, accRect.left);
6164
6196
  return accRect;
6165
- }, getClientRectFromMixedType(element, firstClippingParent));
6197
+ }, getClientRectFromMixedType(element, firstClippingParent, strategy));
6166
6198
  clippingRect.width = clippingRect.right - clippingRect.left;
6167
6199
  clippingRect.height = clippingRect.bottom - clippingRect.top;
6168
6200
  clippingRect.x = clippingRect.left;
@@ -6247,6 +6279,8 @@ function detectOverflow(state, options) {
6247
6279
  var _options = options,
6248
6280
  _options$placement = _options.placement,
6249
6281
  placement = _options$placement === void 0 ? state.placement : _options$placement,
6282
+ _options$strategy = _options.strategy,
6283
+ strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
6250
6284
  _options$boundary = _options.boundary,
6251
6285
  boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
6252
6286
  _options$rootBoundary = _options.rootBoundary,
@@ -6261,7 +6295,7 @@ function detectOverflow(state, options) {
6261
6295
  var altContext = elementContext === popper ? reference : popper;
6262
6296
  var popperRect = state.rects.popper;
6263
6297
  var element = state.elements[altBoundary ? altContext : elementContext];
6264
- var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
6298
+ var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
6265
6299
  var referenceClientRect = getBoundingClientRect(state.elements.reference);
6266
6300
  var popperOffsets = computeOffsets({
6267
6301
  reference: referenceClientRect,
@@ -6761,7 +6795,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
6761
6795
  var isOffsetParentAnElement = isHTMLElement(offsetParent);
6762
6796
  var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
6763
6797
  var documentElement = getDocumentElement(offsetParent);
6764
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
6798
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
6765
6799
  var scroll = {
6766
6800
  scrollLeft: 0,
6767
6801
  scrollTop: 0
@@ -7070,9 +7104,10 @@ var createPopper = /*#__PURE__*/(/* unused pure expression or super */ null && (
7070
7104
 
7071
7105
 
7072
7106
 
7073
- // For the common JS build we will turn this file into a bundle with no imports.
7074
- // This is b/c the Popper lib is all esm files, and would break in a common js only environment
7075
7107
 
7108
+
7109
+ // For the common JS build we will turn this file into a bundle with no imports.
7110
+ // This is b/c the Popper lib is all esm files, and would break in a common js only environment
7076
7111
  const popper_createPopper = popperGenerator({
7077
7112
  defaultModifiers: [modifiers_hide, modifiers_popperOffsets, modifiers_computeStyles, eventListeners, modifiers_offset, modifiers_flip, modifiers_preventOverflow, modifiers_arrow]
7078
7113
  });
@@ -7100,7 +7135,9 @@ const disabledApplyStylesModifier = {
7100
7135
  enabled: false,
7101
7136
  phase: 'afterWrite',
7102
7137
  fn: () => undefined
7103
- }; // until docjs supports type exports...
7138
+ };
7139
+
7140
+ // until docjs supports type exports...
7104
7141
 
7105
7142
  const ariaDescribedByModifier = {
7106
7143
  name: 'ariaDescribedBy',
@@ -7152,7 +7189,6 @@ const EMPTY_MODIFIERS = [];
7152
7189
  *
7153
7190
  * @returns {UsePopperState} The popper state
7154
7191
  */
7155
-
7156
7192
  function usePopper(referenceElement, popperElement, _ref = {}) {
7157
7193
  let {
7158
7194
  enabled = true,
@@ -7239,7 +7275,8 @@ function usePopper(referenceElement, popperElement, _ref = {}) {
7239
7275
  }
7240
7276
  }));
7241
7277
  }
7242
- }; // This is only run once to _create_ the popper
7278
+ };
7279
+ // This is only run once to _create_ the popper
7243
7280
  // eslint-disable-next-line react-hooks/exhaustive-deps
7244
7281
  }, [enabled, referenceElement, popperElement]);
7245
7282
  return popperState;
@@ -7283,6 +7320,7 @@ const InitialTriggerEvents = {
7283
7320
  mouseup: 'mousedown',
7284
7321
  pointerup: 'pointerdown'
7285
7322
  };
7323
+
7286
7324
  /**
7287
7325
  * The `useClickOutside` hook registers your callback on the document that fires
7288
7326
  * when a pointer event is registered outside of the provided ref or element.
@@ -7293,7 +7331,6 @@ const InitialTriggerEvents = {
7293
7331
  * @param {boolean=} options.disabled
7294
7332
  * @param {string=} options.clickTrigger The DOM event name (click, mousedown, etc) to attach listeners on
7295
7333
  */
7296
-
7297
7334
  function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
7298
7335
  disabled,
7299
7336
  clickTrigger = 'click'
@@ -7319,17 +7356,19 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
7319
7356
  });
7320
7357
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
7321
7358
  if (disabled || ref == null) return undefined;
7322
- const doc = ownerDocument(getRefTarget(ref)); // Store the current event to avoid triggering handlers immediately
7323
- // https://github.com/facebook/react/issues/20074
7359
+ const doc = ownerDocument(getRefTarget(ref));
7324
7360
 
7361
+ // Store the current event to avoid triggering handlers immediately
7362
+ // https://github.com/facebook/react/issues/20074
7325
7363
  let currentEvent = (doc.defaultView || window).event;
7326
7364
  let removeInitialTriggerListener = null;
7327
7365
  if (InitialTriggerEvents[clickTrigger]) {
7328
7366
  removeInitialTriggerListener = esm_listen(doc, InitialTriggerEvents[clickTrigger], handleInitialMouse, true);
7329
- } // Use capture for this listener so it fires before React's listener, to
7367
+ }
7368
+
7369
+ // Use capture for this listener so it fires before React's listener, to
7330
7370
  // avoid false positives in the contains() check below if the target DOM
7331
7371
  // element is removed in the React mouse callback.
7332
-
7333
7372
  const removeMouseCaptureListener = esm_listen(doc, clickTrigger, handleMouseCapture, true);
7334
7373
  const removeMouseListener = esm_listen(doc, clickTrigger, e => {
7335
7374
  // skip if this event is the same as the one running when we added the handlers
@@ -7357,8 +7396,9 @@ function toModifierMap(modifiers) {
7357
7396
  const result = {};
7358
7397
  if (!Array.isArray(modifiers)) {
7359
7398
  return modifiers || result;
7360
- } // eslint-disable-next-line no-unused-expressions
7399
+ }
7361
7400
 
7401
+ // eslint-disable-next-line no-unused-expressions
7362
7402
  modifiers == null ? void 0 : modifiers.forEach(m => {
7363
7403
  result[m.name] = m;
7364
7404
  });
@@ -7439,6 +7479,7 @@ function DropdownMenu_objectWithoutPropertiesLoose(source, excluded) {
7439
7479
 
7440
7480
 
7441
7481
  const DropdownMenu_noop = () => {};
7482
+
7442
7483
  /**
7443
7484
  * @memberOf Dropdown
7444
7485
  * @param {object} options
@@ -7449,7 +7490,6 @@ const DropdownMenu_noop = () => {};
7449
7490
  * @param {string} options.rootCloseEvent The pointer event to listen for when determining "clicks outside" the menu for triggering a close.
7450
7491
  * @param {object} options.popperConfig Options passed to the [`usePopper`](/api/usePopper) hook.
7451
7492
  */
7452
-
7453
7493
  function useDropdownMenu(options = {}) {
7454
7494
  const context = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(esm_DropdownContext);
7455
7495
  const [arrowElement, attachArrowRef] = useCallbackRef();
@@ -7514,7 +7554,6 @@ function useDropdownMenu(options = {}) {
7514
7554
  const defaultProps = {
7515
7555
  usePopper: true
7516
7556
  };
7517
-
7518
7557
  /**
7519
7558
  * Also exported as `<Dropdown.Menu>` from `Dropdown`.
7520
7559
  *
@@ -7533,23 +7572,35 @@ function DropdownMenu(_ref) {
7533
7572
  }
7534
7573
  DropdownMenu.displayName = 'DropdownMenu';
7535
7574
  DropdownMenu.defaultProps = defaultProps;
7536
- /** @component */
7537
7575
 
7576
+ /** @component */
7538
7577
  /* harmony default export */ const esm_DropdownMenu = (DropdownMenu);
7539
- ;// CONCATENATED MODULE: ./node_modules/@react-aria/ssr/dist/module.js
7540
-
7541
- function $parcel$export(e, n, v, s) {
7542
- Object.defineProperty(e, n, {
7543
- get: v,
7544
- set: s,
7545
- enumerable: true,
7546
- configurable: true
7547
- });
7548
- }
7549
- var $704cf1d3b684cc5c$exports = {};
7550
- $parcel$export($704cf1d3b684cc5c$exports, "SSRProvider", () => $704cf1d3b684cc5c$export$9f8ac96af4b1b2ae);
7551
- $parcel$export($704cf1d3b684cc5c$exports, "useSSRSafeId", () => $704cf1d3b684cc5c$export$619500959fc48b26);
7552
- $parcel$export($704cf1d3b684cc5c$exports, "useIsSSR", () => $704cf1d3b684cc5c$export$535bd6ca7f90a273);
7578
+ ;// CONCATENATED MODULE: ./node_modules/@react-aria/ssr/dist/import.mjs
7579
+
7580
+
7581
+ /*
7582
+ * Copyright 2020 Adobe. All rights reserved.
7583
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
7584
+ * you may not use this file except in compliance with the License. You may obtain a copy
7585
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
7586
+ *
7587
+ * Unless required by applicable law or agreed to in writing, software distributed under
7588
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
7589
+ * OF ANY KIND, either express or implied. See the License for the specific language
7590
+ * governing permissions and limitations under the License.
7591
+ */ /*
7592
+ * Copyright 2020 Adobe. All rights reserved.
7593
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
7594
+ * you may not use this file except in compliance with the License. You may obtain a copy
7595
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
7596
+ *
7597
+ * Unless required by applicable law or agreed to in writing, software distributed under
7598
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
7599
+ * OF ANY KIND, either express or implied. See the License for the specific language
7600
+ * governing permissions and limitations under the License.
7601
+ */ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is
7602
+ // guarded by a check that it only runs on the client side.
7603
+ // eslint-disable-next-line rulesdir/useLayoutEffectRule
7553
7604
 
7554
7605
  // Default context value to use in case there is no SSRProvider. This is fine for
7555
7606
  // client-only apps. In order to support multiple copies of React Aria potentially
@@ -7557,46 +7608,94 @@ $parcel$export($704cf1d3b684cc5c$exports, "useIsSSR", () => $704cf1d3b684cc5c$ex
7557
7608
  // will reset this to zero for consistency between server and client, so in the
7558
7609
  // SSR case multiple copies of React Aria is not supported.
7559
7610
  const $704cf1d3b684cc5c$var$defaultContext = {
7560
- prefix: String(Math.round(Math.random() * 10000000000)),
7561
- current: 0
7611
+ prefix: String(Math.round(Math.random() * 10000000000)),
7612
+ current: 0,
7613
+ isSSR: false
7562
7614
  };
7563
- const $704cf1d3b684cc5c$var$SSRContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext($704cf1d3b684cc5c$var$defaultContext);
7615
+ const $704cf1d3b684cc5c$var$SSRContext = /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createContext($704cf1d3b684cc5c$var$defaultContext);
7564
7616
  function $704cf1d3b684cc5c$export$9f8ac96af4b1b2ae(props) {
7565
- let cur = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
7566
- let value = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
7567
- // If this is the first SSRProvider, start with an empty string prefix, otherwise
7568
- // append and increment the counter.
7569
- prefix: cur === $704cf1d3b684cc5c$var$defaultContext ? '' : `${cur.prefix}-${++cur.current}`,
7570
- current: 0
7571
- }), [cur]);
7572
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement($704cf1d3b684cc5c$var$SSRContext.Provider, {
7573
- value: value
7574
- }, props.children);
7575
- }
7576
- let $704cf1d3b684cc5c$var$canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
7577
- function $704cf1d3b684cc5c$export$619500959fc48b26(defaultId) {
7578
- let ctx = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
7579
- // If we are rendering in a non-DOM environment, and there's no SSRProvider,
7580
- // provide a warning to hint to the developer to add one.
7581
- if (ctx === $704cf1d3b684cc5c$var$defaultContext && !$704cf1d3b684cc5c$var$canUseDOM) console.warn('When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.');
7582
- return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => defaultId || `react-aria${ctx.prefix}-${++ctx.current}`, [defaultId]);
7583
- }
7584
- function $704cf1d3b684cc5c$export$535bd6ca7f90a273() {
7585
- let cur = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
7586
- let isInSSRContext = cur !== $704cf1d3b684cc5c$var$defaultContext;
7587
- let [isSSR, setIsSSR] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(isInSSRContext);
7588
- // If on the client, and the component was initially server rendered,
7589
- // then schedule a layout effect to update the component after hydration.
7590
- if (typeof window !== 'undefined' && isInSSRContext)
7591
- // This if statement technically breaks the rules of hooks, but is safe
7617
+ let cur = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
7618
+ let counter = $704cf1d3b684cc5c$var$useCounter(cur === $704cf1d3b684cc5c$var$defaultContext);
7619
+ let [isSSR, setIsSSR] = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(true);
7620
+ let value = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(()=>({
7621
+ // If this is the first SSRProvider, start with an empty string prefix, otherwise
7622
+ // append and increment the counter.
7623
+ prefix: cur === $704cf1d3b684cc5c$var$defaultContext ? "" : `${cur.prefix}-${counter}`,
7624
+ current: 0,
7625
+ isSSR: isSSR
7626
+ }), [
7627
+ cur,
7628
+ counter,
7629
+ isSSR
7630
+ ]);
7631
+ // If on the client, and the component was initially server rendered,
7632
+ // then schedule a layout effect to update the component after hydration.
7633
+ if (typeof window !== "undefined") // This if statement technically breaks the rules of hooks, but is safe
7592
7634
  // because the condition never changes after mounting.
7593
7635
  // eslint-disable-next-line react-hooks/rules-of-hooks
7594
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(() => {
7595
- setIsSSR(false);
7636
+ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(()=>{
7637
+ setIsSSR(false);
7596
7638
  }, []);
7597
- return isSSR;
7639
+ return /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createElement($704cf1d3b684cc5c$var$SSRContext.Provider, {
7640
+ value: value
7641
+ }, props.children);
7642
+ }
7643
+ let $704cf1d3b684cc5c$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
7644
+ let $704cf1d3b684cc5c$var$componentIds = new WeakMap();
7645
+ function $704cf1d3b684cc5c$var$useCounter(isDisabled = false) {
7646
+ let ctx = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
7647
+ let ref = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
7648
+ if (ref.current === null && !isDisabled) {
7649
+ var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner;
7650
+ // In strict mode, React renders components twice, and the ref will be reset to null on the second render.
7651
+ // This means our id counter will be incremented twice instead of once. This is a problem because on the
7652
+ // server, components are only rendered once and so ids generated on the server won't match the client.
7653
+ // In React 18, useId was introduced to solve this, but it is not available in older versions. So to solve this
7654
+ // we need to use some React internals to access the underlying Fiber instance, which is stable between renders.
7655
+ // This is exposed as ReactCurrentOwner in development, which is all we need since StrictMode only runs in development.
7656
+ // To ensure that we only increment the global counter once, we store the starting id for this component in
7657
+ // a weak map associated with the Fiber. On the second render, we reset the global counter to this value.
7658
+ // Since React runs the second render immediately after the first, this is safe.
7659
+ // @ts-ignore
7660
+ let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
7661
+ if (currentOwner) {
7662
+ let prevComponentValue = $704cf1d3b684cc5c$var$componentIds.get(currentOwner);
7663
+ if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.
7664
+ $704cf1d3b684cc5c$var$componentIds.set(currentOwner, {
7665
+ id: ctx.current,
7666
+ state: currentOwner.memoizedState
7667
+ });
7668
+ else if (currentOwner.memoizedState !== prevComponentValue.state) {
7669
+ // On the second render, the memoizedState gets reset by React.
7670
+ // Reset the counter, and remove from the weak map so we don't
7671
+ // do this for subsequent useId calls.
7672
+ ctx.current = prevComponentValue.id;
7673
+ $704cf1d3b684cc5c$var$componentIds.delete(currentOwner);
7674
+ }
7675
+ }
7676
+ ref.current = ++ctx.current;
7677
+ }
7678
+ return ref.current;
7679
+ }
7680
+ function $704cf1d3b684cc5c$export$619500959fc48b26(defaultId) {
7681
+ let ctx = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
7682
+ // If we are rendering in a non-DOM environment, and there's no SSRProvider,
7683
+ // provide a warning to hint to the developer to add one.
7684
+ if (ctx === $704cf1d3b684cc5c$var$defaultContext && !$704cf1d3b684cc5c$var$canUseDOM) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
7685
+ let counter = $704cf1d3b684cc5c$var$useCounter(!!defaultId);
7686
+ return defaultId || `react-aria${ctx.prefix}-${counter}`;
7687
+ }
7688
+ function $704cf1d3b684cc5c$export$535bd6ca7f90a273() {
7689
+ let cur = (0, $89yE2$useContext)($704cf1d3b684cc5c$var$SSRContext);
7690
+ return cur.isSSR;
7598
7691
  }
7599
7692
 
7693
+
7694
+
7695
+
7696
+
7697
+ //# sourceMappingURL=module.js.map
7698
+
7600
7699
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/DropdownToggle.js
7601
7700
 
7602
7701
 
@@ -7609,13 +7708,13 @@ const isRoleMenu = el => {
7609
7708
  return ((_el$getAttribute = el.getAttribute('role')) == null ? void 0 : _el$getAttribute.toLowerCase()) === 'menu';
7610
7709
  };
7611
7710
  const DropdownToggle_noop = () => {};
7711
+
7612
7712
  /**
7613
7713
  * Wires up Dropdown toggle functionality, returning a set a props to attach
7614
7714
  * to the element that functions as the dropdown toggle (generally a button).
7615
7715
  *
7616
7716
  * @memberOf Dropdown
7617
7717
  */
7618
-
7619
7718
  function useDropdownToggle() {
7620
7719
  const id = $704cf1d3b684cc5c$export$619500959fc48b26();
7621
7720
  const {
@@ -7632,10 +7731,11 @@ function useDropdownToggle() {
7632
7731
  ref: setToggle || DropdownToggle_noop,
7633
7732
  onClick: handleClick,
7634
7733
  'aria-expanded': !!show
7635
- }; // This is maybe better down in an effect, but
7734
+ };
7735
+
7736
+ // This is maybe better down in an effect, but
7636
7737
  // the component is going to update anyway when the menu element
7637
7738
  // is set so might return new props.
7638
-
7639
7739
  if (menuElement && isRoleMenu(menuElement)) {
7640
7740
  props['aria-haspopup'] = true;
7641
7741
  }
@@ -7644,7 +7744,6 @@ function useDropdownToggle() {
7644
7744
  toggle
7645
7745
  }];
7646
7746
  }
7647
-
7648
7747
  /**
7649
7748
  * Also exported as `<Dropdown.Toggle>` from `Dropdown`.
7650
7749
  *
@@ -7660,8 +7759,8 @@ function DropdownToggle({
7660
7759
  });
7661
7760
  }
7662
7761
  DropdownToggle.displayName = 'DropdownToggle';
7663
- /** @component */
7664
7762
 
7763
+ /** @component */
7665
7764
  /* harmony default export */ const esm_DropdownToggle = (DropdownToggle);
7666
7765
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/SelectableContext.js
7667
7766
 
@@ -7707,7 +7806,6 @@ function DropdownItem_objectWithoutPropertiesLoose(source, excluded) {
7707
7806
 
7708
7807
 
7709
7808
 
7710
-
7711
7809
  /**
7712
7810
  * Create a dropdown item. Returns a set of props for the dropdown item component
7713
7811
  * including an `onClick` handler that prevents selection when the item is disabled
@@ -7769,13 +7867,13 @@ DropdownItem.displayName = 'DropdownItem';
7769
7867
 
7770
7868
  const Context = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext)(canUseDOM ? window : undefined);
7771
7869
  const WindowProvider = Context.Provider;
7870
+
7772
7871
  /**
7773
7872
  * The document "window" placed in React context. Helpful for determining
7774
7873
  * SSR context, or when rendering into an iframe.
7775
7874
  *
7776
7875
  * @returns the current window
7777
7876
  */
7778
-
7779
7877
  function useWindow() {
7780
7878
  return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(Context);
7781
7879
  }
@@ -7801,17 +7899,17 @@ function useRefWithUpdate() {
7801
7899
  const forceUpdate = useForceUpdate();
7802
7900
  const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
7803
7901
  const attachRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(element => {
7804
- ref.current = element; // ensure that a menu set triggers an update for consumers
7805
-
7902
+ ref.current = element;
7903
+ // ensure that a menu set triggers an update for consumers
7806
7904
  forceUpdate();
7807
7905
  }, [forceUpdate]);
7808
7906
  return [ref, attachRef];
7809
7907
  }
7908
+
7810
7909
  /**
7811
7910
  * @displayName Dropdown
7812
7911
  * @public
7813
7912
  */
7814
-
7815
7913
  function Dropdown({
7816
7914
  defaultShow,
7817
7915
  show: rawShow,
@@ -7823,10 +7921,11 @@ function Dropdown({
7823
7921
  children
7824
7922
  }) {
7825
7923
  const window = useWindow();
7826
- const [show, onToggle] = useUncontrolledProp(rawShow, defaultShow, rawOnToggle); // We use normal refs instead of useCallbackRef in order to populate the
7924
+ const [show, onToggle] = useUncontrolledProp(rawShow, defaultShow, rawOnToggle);
7925
+
7926
+ // We use normal refs instead of useCallbackRef in order to populate the
7827
7927
  // the value as quickly as possible, otherwise the effect to focus the element
7828
7928
  // may run before the state value is set
7829
-
7830
7929
  const [menuRef, setMenu] = useRefWithUpdate();
7831
7930
  const menuElement = menuRef.current;
7832
7931
  const [toggleRef, setToggle] = useRefWithUpdate();
@@ -7881,7 +7980,8 @@ function Dropdown({
7881
7980
  if (show) maybeFocusFirst();else if (focusInDropdown.current) {
7882
7981
  focusInDropdown.current = false;
7883
7982
  focusToggle();
7884
- } // only `show` should be changing
7983
+ }
7984
+ // only `show` should be changing
7885
7985
  }, [show, focusInDropdown, focusToggle, maybeFocusFirst]);
7886
7986
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
7887
7987
  lastSourceEvent.current = null;
@@ -7900,9 +8000,10 @@ function Dropdown({
7900
8000
  } = event;
7901
8001
  const target = event.target;
7902
8002
  const fromMenu = (_menuRef$current = menuRef.current) == null ? void 0 : _menuRef$current.contains(target);
7903
- const fromToggle = (_toggleRef$current = toggleRef.current) == null ? void 0 : _toggleRef$current.contains(target); // Second only to https://github.com/twbs/bootstrap/blob/8cfbf6933b8a0146ac3fbc369f19e520bd1ebdac/js/src/dropdown.js#L400
7904
- // in inscrutability
8003
+ const fromToggle = (_toggleRef$current = toggleRef.current) == null ? void 0 : _toggleRef$current.contains(target);
7905
8004
 
8005
+ // Second only to https://github.com/twbs/bootstrap/blob/8cfbf6933b8a0146ac3fbc369f19e520bd1ebdac/js/src/dropdown.js#L400
8006
+ // in inscrutability
7906
8007
  const isInput = /input|textarea/i.test(target.tagName);
7907
8008
  if (isInput && (key === ' ' || key !== 'Escape' && fromMenu || key === 'Escape' && target.type === 'search')) {
7908
8009
  return;
@@ -9716,13 +9817,6 @@ const InputGroup_propTypes = {
9716
9817
  hasValidation: (prop_types_default()).bool,
9717
9818
  as: (prop_types_default()).elementType
9718
9819
  };
9719
-
9720
- /**
9721
- *
9722
- * @property {InputGroupText} Text
9723
- * @property {InputGroupRadio} Radio
9724
- * @property {InputGroupCheckbox} Checkbox
9725
- */
9726
9820
  const InputGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
9727
9821
  bsPrefix,
9728
9822
  size,
@@ -9745,12 +9839,12 @@ const InputGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_rea
9745
9839
  className: classnames_default()(className, bsPrefix, size && `${bsPrefix}-${size}`, hasValidation && 'has-validation')
9746
9840
  }, void 0, false, {
9747
9841
  fileName: InputGroup_jsxFileName,
9748
- lineNumber: 85,
9842
+ lineNumber: 79,
9749
9843
  columnNumber: 11
9750
9844
  }, undefined)
9751
9845
  }, void 0, false, {
9752
9846
  fileName: InputGroup_jsxFileName,
9753
- lineNumber: 84,
9847
+ lineNumber: 78,
9754
9848
  columnNumber: 9
9755
9849
  }, undefined);
9756
9850
  });
@@ -9806,11 +9900,13 @@ function useNavItem({
9806
9900
  if (navContext) {
9807
9901
  if (!role && navContext.role === 'tablist') props.role = 'tab';
9808
9902
  const contextControllerId = navContext.getControllerId(key != null ? key : null);
9809
- const contextControlledId = navContext.getControlledId(key != null ? key : null); // @ts-ignore
9903
+ const contextControlledId = navContext.getControlledId(key != null ? key : null);
9810
9904
 
9905
+ // @ts-ignore
9811
9906
  props[dataAttr('event-key')] = key;
9812
9907
  props.id = contextControllerId || id;
9813
9908
  isActive = active == null && key != null ? navContext.activeKey === key : active;
9909
+
9814
9910
  /**
9815
9911
  * Simplified scenario for `mountOnEnter`.
9816
9912
  *
@@ -9820,7 +9916,6 @@ function useNavItem({
9820
9916
  *
9821
9917
  * @see https://github.com/react-restart/ui/pull/40#issuecomment-1009971561
9822
9918
  */
9823
-
9824
9919
  if (isActive || !(tabContext != null && tabContext.unmountOnExit) && !(tabContext != null && tabContext.mountOnEnter)) props['aria-controls'] = contextControlledId;
9825
9920
  }
9826
9921
  if (props.role === 'tab') {
@@ -9857,8 +9952,9 @@ const NavItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
9857
9952
  const [props, meta] = useNavItem(Object.assign({
9858
9953
  key: makeEventKey(eventKey, options.href),
9859
9954
  active
9860
- }, options)); // @ts-ignore
9955
+ }, options));
9861
9956
 
9957
+ // @ts-ignore
9862
9958
  props[dataAttr('active')] = meta.isActive;
9863
9959
  return /*#__PURE__*/(0,jsx_runtime.jsx)(Component, Object.assign({}, options, props, {
9864
9960
  ref: ref
@@ -9891,7 +9987,6 @@ function Nav_objectWithoutPropertiesLoose(source, excluded) {
9891
9987
 
9892
9988
 
9893
9989
 
9894
-
9895
9990
  // eslint-disable-next-line @typescript-eslint/no-empty-function
9896
9991
  const Nav_noop = () => {};
9897
9992
  const EVENT_KEY_ATTR = dataAttr('event-key');
@@ -9905,7 +10000,6 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
9905
10000
  onKeyDown
9906
10001
  } = _ref,
9907
10002
  props = Nav_objectWithoutPropertiesLoose(_ref, Nav_excluded);
9908
-
9909
10003
  // A ref and forceUpdate for refocus, b/c we only want to trigger when needed
9910
10004
  // and don't want to reset the set in the effect
9911
10005
  const forceUpdate = useForceUpdate();
@@ -9915,8 +10009,8 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
9915
10009
  let getControlledId, getControllerId;
9916
10010
  if (tabContext) {
9917
10011
  role = role || 'tablist';
9918
- activeKey = tabContext.activeKey; // TODO: do we need to duplicate these?
9919
-
10012
+ activeKey = tabContext.activeKey;
10013
+ // TODO: do we need to duplicate these?
9920
10014
  getControlledId = tabContext.getControlledId;
9921
10015
  getControllerId = tabContext.getControllerId;
9922
10016
  }
@@ -10220,11 +10314,11 @@ function getBodyScrollbarWidth(ownerDocument = document) {
10220
10314
 
10221
10315
 
10222
10316
  const OPEN_DATA_ATTRIBUTE = dataAttr('modal-open');
10317
+
10223
10318
  /**
10224
10319
  * Manages a stack of Modals as well as ensuring
10225
10320
  * body scrolling is is disabled and padding accounted for
10226
10321
  */
10227
-
10228
10322
  class ModalManager {
10229
10323
  constructor({
10230
10324
  ownerDocument,
@@ -10242,16 +10336,19 @@ class ModalManager {
10242
10336
  getElement() {
10243
10337
  return (this.ownerDocument || document).body;
10244
10338
  }
10245
- setModalAttributes(_modal) {// For overriding
10339
+ setModalAttributes(_modal) {
10340
+ // For overriding
10246
10341
  }
10247
- removeModalAttributes(_modal) {// For overriding
10342
+ removeModalAttributes(_modal) {
10343
+ // For overriding
10248
10344
  }
10249
10345
  setContainerStyle(containerState) {
10250
10346
  const style = {
10251
10347
  overflow: 'hidden'
10252
- }; // we are only interested in the actual `style` here
10253
- // because we will override it
10348
+ };
10254
10349
 
10350
+ // we are only interested in the actual `style` here
10351
+ // because we will override it
10255
10352
  const paddingProp = this.isRTL ? 'paddingLeft' : 'paddingRight';
10256
10353
  const container = this.getElement();
10257
10354
  containerState.style = {
@@ -10299,9 +10396,10 @@ class ModalManager {
10299
10396
  if (modalIdx === -1) {
10300
10397
  return;
10301
10398
  }
10302
- this.modals.splice(modalIdx, 1); // if that was the last modal in a container,
10303
- // clean up the container
10399
+ this.modals.splice(modalIdx, 1);
10304
10400
 
10401
+ // if that was the last modal in a container,
10402
+ // clean up the container
10305
10403
  if (!this.modals.length && this.handleContainerOverflow) {
10306
10404
  this.removeContainerStyle(this.state);
10307
10405
  }
@@ -10345,8 +10443,137 @@ function useWaitForDOMRef(ref, onResolved) {
10345
10443
  }, [ref, resolvedRef]);
10346
10444
  return resolvedRef;
10347
10445
  }
10446
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/NoopTransition.js
10447
+
10448
+
10449
+
10450
+ function NoopTransition({
10451
+ children,
10452
+ in: inProp,
10453
+ onExited,
10454
+ mountOnEnter,
10455
+ unmountOnExit
10456
+ }) {
10457
+ const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
10458
+ const hasEnteredRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(inProp);
10459
+ const handleExited = useEventCallback(onExited);
10460
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
10461
+ if (inProp) hasEnteredRef.current = true;else {
10462
+ handleExited(ref.current);
10463
+ }
10464
+ }, [inProp, handleExited]);
10465
+ const combinedRef = esm_useMergedRefs(ref, children.ref);
10466
+ const child = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
10467
+ ref: combinedRef
10468
+ });
10469
+ if (inProp) return child;
10470
+ if (unmountOnExit) {
10471
+ return null;
10472
+ }
10473
+ if (!hasEnteredRef.current && mountOnEnter) {
10474
+ return null;
10475
+ }
10476
+ return child;
10477
+ }
10478
+ /* harmony default export */ const esm_NoopTransition = (NoopTransition);
10479
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/ImperativeTransition.js
10480
+
10481
+
10482
+
10483
+
10484
+
10485
+
10486
+ function useTransition({
10487
+ in: inProp,
10488
+ onTransition
10489
+ }) {
10490
+ const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
10491
+ const isInitialRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
10492
+ const handleTransition = useEventCallback(onTransition);
10493
+ useIsomorphicEffect(() => {
10494
+ if (!ref.current) {
10495
+ return undefined;
10496
+ }
10497
+ let stale = false;
10498
+ handleTransition({
10499
+ in: inProp,
10500
+ element: ref.current,
10501
+ initial: isInitialRef.current,
10502
+ isStale: () => stale
10503
+ });
10504
+ return () => {
10505
+ stale = true;
10506
+ };
10507
+ }, [inProp, handleTransition]);
10508
+ useIsomorphicEffect(() => {
10509
+ isInitialRef.current = false;
10510
+ // this is for strict mode
10511
+ return () => {
10512
+ isInitialRef.current = true;
10513
+ };
10514
+ }, []);
10515
+ return ref;
10516
+ }
10517
+ /**
10518
+ * Adapts an imperative transition function to a subset of the RTG `<Transition>` component API.
10519
+ *
10520
+ * ImperativeTransition does not support mounting options or `appear` at the moment, meaning
10521
+ * that it always acts like: `mountOnEnter={true} unmountOnExit={true} appear={true}`
10522
+ */
10523
+ function ImperativeTransition({
10524
+ children,
10525
+ in: inProp,
10526
+ onExited,
10527
+ onEntered,
10528
+ transition
10529
+ }) {
10530
+ const [exited, setExited] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(!inProp);
10531
+
10532
+ // TODO: I think this needs to be in an effect
10533
+ if (inProp && exited) {
10534
+ setExited(false);
10535
+ }
10536
+ const ref = useTransition({
10537
+ in: !!inProp,
10538
+ onTransition: options => {
10539
+ const onFinish = () => {
10540
+ if (options.isStale()) return;
10541
+ if (options.in) {
10542
+ onEntered == null ? void 0 : onEntered(options.element, options.initial);
10543
+ } else {
10544
+ setExited(true);
10545
+ onExited == null ? void 0 : onExited(options.element);
10546
+ }
10547
+ };
10548
+ Promise.resolve(transition(options)).then(onFinish, error => {
10549
+ if (!options.in) setExited(true);
10550
+ throw error;
10551
+ });
10552
+ }
10553
+ });
10554
+ const combinedRef = esm_useMergedRefs(ref, children.ref);
10555
+ return exited && !inProp ? null : /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
10556
+ ref: combinedRef
10557
+ });
10558
+ }
10559
+ function renderTransition(Component, runTransition, props) {
10560
+ if (Component) {
10561
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(Component, Object.assign({}, props));
10562
+ }
10563
+ if (runTransition) {
10564
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(ImperativeTransition, Object.assign({}, props, {
10565
+ transition: runTransition
10566
+ }));
10567
+ }
10568
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_NoopTransition, Object.assign({}, props));
10569
+ }
10570
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/utils.js
10571
+ /* eslint-disable import/prefer-default-export */
10572
+ function isEscKey(e) {
10573
+ return e.code === 'Escape' || e.keyCode === 27;
10574
+ }
10348
10575
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Modal.js
10349
- const Modal_excluded = ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "backdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"];
10576
+ const Modal_excluded = ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "runTransition", "backdropTransition", "runBackdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"];
10350
10577
  function Modal_objectWithoutPropertiesLoose(source, excluded) {
10351
10578
  if (source == null) return {};
10352
10579
  var target = {};
@@ -10359,7 +10586,6 @@ function Modal_objectWithoutPropertiesLoose(source, excluded) {
10359
10586
  }
10360
10587
  return target;
10361
10588
  }
10362
-
10363
10589
  /* eslint-disable @typescript-eslint/no-use-before-define, react/prop-types */
10364
10590
 
10365
10591
 
@@ -10378,6 +10604,9 @@ function Modal_objectWithoutPropertiesLoose(source, excluded) {
10378
10604
 
10379
10605
 
10380
10606
 
10607
+
10608
+
10609
+
10381
10610
  let manager;
10382
10611
  function getManager(window) {
10383
10612
  if (!manager) manager = new esm_ModalManager({
@@ -10416,7 +10645,9 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
10416
10645
  onBackdropClick,
10417
10646
  onEscapeKeyDown,
10418
10647
  transition,
10648
+ runTransition,
10419
10649
  backdropTransition,
10650
+ runBackdropTransition,
10420
10651
  autoFocus = true,
10421
10652
  enforceFocus = true,
10422
10653
  restoreFocus = true,
@@ -10445,9 +10676,9 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
10445
10676
  if (canUseDOM && !prevShow && show) {
10446
10677
  lastFocusRef.current = activeElement();
10447
10678
  }
10448
- if (!transition && !show && !exited) {
10449
- setExited(true);
10450
- } else if (show && exited) {
10679
+
10680
+ // TODO: I think this needs to be in an effect
10681
+ if (show && exited) {
10451
10682
  setExited(false);
10452
10683
  }
10453
10684
  const handleShow = useEventCallback(() => {
@@ -10459,9 +10690,10 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
10459
10690
  () => setTimeout(handleEnforceFocus), true);
10460
10691
  if (onShow) {
10461
10692
  onShow();
10462
- } // autofocus after onShow to not trigger a focus event for previous
10463
- // modals before this one is shown.
10693
+ }
10464
10694
 
10695
+ // autofocus after onShow to not trigger a focus event for previous
10696
+ // modals before this one is shown.
10465
10697
  if (autoFocus) {
10466
10698
  const currentActiveElement = activeElement(document);
10467
10699
  if (modal.dialog && currentActiveElement && !contains_contains(modal.dialog, currentActiveElement)) {
@@ -10476,30 +10708,33 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
10476
10708
  removeFocusListenerRef.current == null ? void 0 : removeFocusListenerRef.current();
10477
10709
  if (restoreFocus) {
10478
10710
  var _lastFocusRef$current;
10479
-
10480
10711
  // Support: <=IE11 doesn't support `focus()` on svg elements (RB: #917)
10481
10712
  (_lastFocusRef$current = lastFocusRef.current) == null ? void 0 : _lastFocusRef$current.focus == null ? void 0 : _lastFocusRef$current.focus(restoreFocusOptions);
10482
10713
  lastFocusRef.current = null;
10483
10714
  }
10484
- }); // TODO: try and combine these effects: https://github.com/react-bootstrap/react-overlays/pull/794#discussion_r409954120
10715
+ });
10716
+
10717
+ // TODO: try and combine these effects: https://github.com/react-bootstrap/react-overlays/pull/794#discussion_r409954120
10718
+
10485
10719
  // Show logic when:
10486
10720
  // - show is `true` _and_ `container` has resolved
10487
-
10488
10721
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
10489
10722
  if (!show || !container) return;
10490
10723
  handleShow();
10491
- }, [show, container, /* should never change: */
10492
- handleShow]); // Hide cleanup logic when:
10724
+ }, [show, container, /* should never change: */handleShow]);
10725
+
10726
+ // Hide cleanup logic when:
10493
10727
  // - `exited` switches to true
10494
10728
  // - component unmounts;
10495
-
10496
10729
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
10497
10730
  if (!exited) return;
10498
10731
  handleHide();
10499
10732
  }, [exited, handleHide]);
10500
10733
  useWillUnmount(() => {
10501
10734
  handleHide();
10502
- }); // --------------------------------
10735
+ });
10736
+
10737
+ // --------------------------------
10503
10738
 
10504
10739
  const handleEnforceFocus = useEventCallback(() => {
10505
10740
  if (!enforceFocus || !isMounted() || !modal.isTopModal()) {
@@ -10520,7 +10755,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
10520
10755
  }
10521
10756
  });
10522
10757
  const handleDocumentKeyDown = useEventCallback(e => {
10523
- if (keyboard && e.keyCode === 27 && modal.isTopModal()) {
10758
+ if (keyboard && isEscKey(e) && modal.isTopModal()) {
10524
10759
  onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);
10525
10760
  if (!e.defaultPrevented) {
10526
10761
  onHide();
@@ -10533,8 +10768,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
10533
10768
  setExited(true);
10534
10769
  onExited == null ? void 0 : onExited(...args);
10535
10770
  };
10536
- const Transition = transition;
10537
- if (!container || !(show || Transition && !exited)) {
10771
+ if (!container) {
10538
10772
  return null;
10539
10773
  }
10540
10774
  const dialogProps = Object.assign({
@@ -10552,34 +10786,32 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
10552
10786
  role: 'document'
10553
10787
  })
10554
10788
  }));
10555
- if (Transition) {
10556
- dialog = /*#__PURE__*/(0,jsx_runtime.jsx)(Transition, {
10557
- appear: true,
10558
- unmountOnExit: true,
10559
- in: !!show,
10560
- onExit: onExit,
10561
- onExiting: onExiting,
10562
- onExited: handleHidden,
10563
- onEnter: onEnter,
10564
- onEntering: onEntering,
10565
- onEntered: onEntered,
10566
- children: dialog
10567
- });
10568
- }
10789
+ dialog = renderTransition(transition, runTransition, {
10790
+ unmountOnExit: true,
10791
+ mountOnEnter: true,
10792
+ appear: true,
10793
+ in: !!show,
10794
+ onExit,
10795
+ onExiting,
10796
+ onExited: handleHidden,
10797
+ onEnter,
10798
+ onEntering,
10799
+ onEntered,
10800
+ children: dialog
10801
+ });
10569
10802
  let backdropElement = null;
10570
10803
  if (backdrop) {
10571
- const BackdropTransition = backdropTransition;
10572
10804
  backdropElement = renderBackdrop({
10573
10805
  ref: modal.setBackdropRef,
10574
10806
  onClick: handleBackdropClick
10575
10807
  });
10576
- if (BackdropTransition) {
10577
- backdropElement = /*#__PURE__*/(0,jsx_runtime.jsx)(BackdropTransition, {
10578
- appear: true,
10579
- in: !!show,
10580
- children: backdropElement
10581
- });
10582
- }
10808
+ backdropElement = renderTransition(backdropTransition, runBackdropTransition, {
10809
+ in: !!show,
10810
+ appear: true,
10811
+ mountOnEnter: true,
10812
+ unmountOnExit: true,
10813
+ children: backdropElement
10814
+ });
10583
10815
  }
10584
10816
  return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
10585
10817
  children: /*#__PURE__*/external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().createPortal( /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
@@ -12617,9 +12849,8 @@ NavDropdown.propTypes = NavDropdown_propTypes;
12617
12849
 
12618
12850
 
12619
12851
 
12620
- const escapeKeyCode = 27;
12621
- const useRootClose_noop = () => {};
12622
12852
 
12853
+ const useRootClose_noop = () => {};
12623
12854
  /**
12624
12855
  * The `useRootClose` hook registers your callback on the document
12625
12856
  * when rendered. Powers the `<Overlay/>` component. This is used achieve modal
@@ -12642,15 +12873,16 @@ function useRootClose(ref, onRootClose, {
12642
12873
  clickTrigger
12643
12874
  });
12644
12875
  const handleKeyUp = useEventCallback(e => {
12645
- if (e.keyCode === escapeKeyCode) {
12876
+ if (isEscKey(e)) {
12646
12877
  onClose(e);
12647
12878
  }
12648
12879
  });
12649
12880
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
12650
12881
  if (disabled || ref == null) return undefined;
12651
- const doc = ownerDocument(getRefTarget(ref)); // Store the current event to avoid triggering handlers immediately
12652
- // https://github.com/facebook/react/issues/20074
12882
+ const doc = ownerDocument(getRefTarget(ref));
12653
12883
 
12884
+ // Store the current event to avoid triggering handlers immediately
12885
+ // https://github.com/facebook/react/issues/20074
12654
12886
  let currentEvent = (doc.defaultView || window).event;
12655
12887
  const removeKeyupListener = esm_listen(doc, 'keyup', e => {
12656
12888
  // skip if this event is the same as the one running when we added the handlers
@@ -12677,7 +12909,6 @@ function useRootClose(ref, onRootClose, {
12677
12909
 
12678
12910
 
12679
12911
 
12680
-
12681
12912
  /**
12682
12913
  * Built on top of `Popper.js`, the overlay component is
12683
12914
  * great for custom tooltip overlays.
@@ -12689,7 +12920,8 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
12689
12920
  placement,
12690
12921
  containerPadding,
12691
12922
  popperConfig = {},
12692
- transition: Transition
12923
+ transition: Transition,
12924
+ runTransition
12693
12925
  } = props;
12694
12926
  const [rootElement, attachRef] = useCallbackRef();
12695
12927
  const [arrowElement, attachArrowRef] = useCallbackRef();
@@ -12706,19 +12938,20 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
12706
12938
  arrowElement,
12707
12939
  popperConfig
12708
12940
  }));
12709
- if (props.show) {
12710
- if (exited) setExited(false);
12711
- } else if (!props.transition && !exited) {
12712
- setExited(true);
12941
+
12942
+ // TODO: I think this needs to be in an effect
12943
+ if (props.show && exited) {
12944
+ setExited(false);
12713
12945
  }
12714
12946
  const handleHidden = (...args) => {
12715
12947
  setExited(true);
12716
12948
  if (props.onExited) {
12717
12949
  props.onExited(...args);
12718
12950
  }
12719
- }; // Don't un-render the overlay while it's transitioning out.
12951
+ };
12720
12952
 
12721
- const mountOverlay = props.show || Transition && !exited;
12953
+ // Don't un-render the overlay while it's transitioning out.
12954
+ const mountOverlay = props.show || !exited;
12722
12955
  esm_useRootClose(rootElement, props.onHide, {
12723
12956
  disabled: !props.rootClose || props.rootCloseDisabled,
12724
12957
  clickTrigger: props.rootCloseEvent
@@ -12727,6 +12960,13 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
12727
12960
  // Don't bother showing anything if we don't have to.
12728
12961
  return null;
12729
12962
  }
12963
+ const {
12964
+ onExit,
12965
+ onExiting,
12966
+ onEnter,
12967
+ onEntering,
12968
+ onEntered
12969
+ } = props;
12730
12970
  let child = props.children(Object.assign({}, popper.attributes.popper, {
12731
12971
  style: popper.styles.popper,
12732
12972
  ref: mergedRef
@@ -12739,26 +12979,19 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
12739
12979
  ref: attachArrowRef
12740
12980
  })
12741
12981
  });
12742
- if (Transition) {
12743
- const {
12744
- onExit,
12745
- onExiting,
12746
- onEnter,
12747
- onEntering,
12748
- onEntered
12749
- } = props;
12750
- child = /*#__PURE__*/(0,jsx_runtime.jsx)(Transition, {
12751
- in: props.show,
12752
- appear: true,
12753
- onExit: onExit,
12754
- onExiting: onExiting,
12755
- onExited: handleHidden,
12756
- onEnter: onEnter,
12757
- onEntering: onEntering,
12758
- onEntered: onEntered,
12759
- children: child
12760
- });
12761
- }
12982
+ child = renderTransition(Transition, runTransition, {
12983
+ in: !!props.show,
12984
+ appear: true,
12985
+ mountOnEnter: true,
12986
+ unmountOnExit: true,
12987
+ children: child,
12988
+ onExit,
12989
+ onExiting,
12990
+ onExited: handleHidden,
12991
+ onEnter,
12992
+ onEntering,
12993
+ onEntered
12994
+ });
12762
12995
  return container ? /*#__PURE__*/external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().createPortal(child, container) : null;
12763
12996
  });
12764
12997
  Overlay.displayName = 'Overlay';
@@ -13429,15 +13662,6 @@ const Pagination_propTypes = {
13429
13662
  */
13430
13663
  size: prop_types_default().oneOf(['sm', 'lg'])
13431
13664
  };
13432
-
13433
- /**
13434
- * @property {PageItem} Item
13435
- * @property {PageItem} First
13436
- * @property {PageItem} Prev
13437
- * @property {PageItem} Ellipsis
13438
- * @property {PageItem} Next
13439
- * @property {PageItem} Last
13440
- */
13441
13665
  const Pagination = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
13442
13666
  bsPrefix,
13443
13667
  className,
@@ -13451,7 +13675,7 @@ const Pagination = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_rea
13451
13675
  className: classnames_default()(className, decoratedBsPrefix, size && `${decoratedBsPrefix}-${size}`)
13452
13676
  }, void 0, false, {
13453
13677
  fileName: Pagination_jsxFileName,
13454
- lineNumber: 43,
13678
+ lineNumber: 35,
13455
13679
  columnNumber: 7
13456
13680
  }, undefined);
13457
13681
  });
@@ -13586,7 +13810,7 @@ var ProgressBar_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootst
13586
13810
  const ROUND_PRECISION = 1000;
13587
13811
 
13588
13812
  /**
13589
- * Validate that children, if any, are instances of `<ProgressBar>`.
13813
+ * Validate that children, if any, are instances of `ProgressBar`.
13590
13814
  */
13591
13815
  function onlyProgressBar(props, propName, componentName) {
13592
13816
  const children = props[propName];
@@ -14229,33 +14453,6 @@ const Stack = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
14229
14453
  Stack.displayName = 'Stack';
14230
14454
  Stack.propTypes = Stack_propTypes;
14231
14455
  /* harmony default export */ const src_Stack = (Stack);
14232
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/NoopTransition.js
14233
-
14234
- function NoopTransition({
14235
- children,
14236
- in: inProp,
14237
- mountOnEnter,
14238
- unmountOnExit
14239
- }) {
14240
- const hasEnteredRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(inProp);
14241
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
14242
- if (inProp) hasEnteredRef.current = true;
14243
- }, [inProp]);
14244
- if (inProp) return children; // not in
14245
- //
14246
- // if (!mountOnEnter && !unmountOnExit) {
14247
- // return children;
14248
- // }
14249
-
14250
- if (unmountOnExit) {
14251
- return null;
14252
- }
14253
- if (!hasEnteredRef.current && mountOnEnter) {
14254
- return null;
14255
- }
14256
- return children;
14257
- }
14258
- /* harmony default export */ const esm_NoopTransition = (NoopTransition);
14259
14456
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/TabPanel.js
14260
14457
  const TabPanel_excluded = ["active", "eventKey", "mountOnEnter", "transition", "unmountOnExit", "role", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited"],
14261
14458
  _excluded2 = ["activeKey", "getControlledId", "getControllerId"],
@@ -14353,9 +14550,9 @@ const TabPanel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
14353
14550
  mountOnEnter,
14354
14551
  unmountOnExit,
14355
14552
  transition: Transition = esm_NoopTransition
14356
- }] = useTabPanel(props); // We provide an empty the TabContext so `<Nav>`s in `<TabPanel>`s don't
14553
+ }] = useTabPanel(props);
14554
+ // We provide an empty the TabContext so `<Nav>`s in `<TabPanel>`s don't
14357
14555
  // conflict with the top level one.
14358
-
14359
14556
  return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_TabContext.Provider, {
14360
14557
  value: null,
14361
14558
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_SelectableContext.Provider, {