react-bootstrap 2.3.1 → 2.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/cjs/Col.js +2 -1
  2. package/cjs/Dropdown.d.ts +0 -1
  3. package/cjs/DropdownButton.d.ts +1 -0
  4. package/cjs/DropdownButton.js +9 -0
  5. package/cjs/Form.d.ts +1 -0
  6. package/cjs/FormCheck.d.ts +1 -0
  7. package/cjs/FormCheck.js +2 -1
  8. package/cjs/NavbarOffcanvas.js +2 -56
  9. package/cjs/Offcanvas.d.ts +1 -0
  10. package/cjs/Offcanvas.js +41 -31
  11. package/cjs/Overlay.d.ts +2 -7
  12. package/cjs/Overlay.js +18 -1
  13. package/cjs/OverlayTrigger.d.ts +2 -0
  14. package/cjs/Popover.d.ts +2 -2
  15. package/cjs/Row.js +2 -1
  16. package/cjs/SplitButton.d.ts +1 -0
  17. package/cjs/SplitButton.js +9 -0
  18. package/cjs/Stack.js +3 -1
  19. package/cjs/Table.d.ts +1 -1
  20. package/cjs/Table.js +1 -1
  21. package/cjs/Tabs.d.ts +10 -2
  22. package/cjs/ThemeProvider.d.ts +4 -1
  23. package/cjs/ThemeProvider.js +16 -3
  24. package/cjs/ToastContainer.d.ts +1 -0
  25. package/cjs/ToastContainer.js +2 -1
  26. package/cjs/ToggleButtonGroup.js +1 -1
  27. package/cjs/Tooltip.d.ts +2 -2
  28. package/cjs/createUtilityClasses.d.ts +1 -1
  29. package/cjs/createUtilityClasses.js +2 -2
  30. package/cjs/types.d.ts +7 -0
  31. package/dist/react-bootstrap.js +574 -306
  32. package/dist/react-bootstrap.min.js +1 -1
  33. package/esm/Col.js +3 -2
  34. package/esm/Dropdown.d.ts +0 -1
  35. package/esm/DropdownButton.d.ts +1 -0
  36. package/esm/DropdownButton.js +9 -0
  37. package/esm/Form.d.ts +1 -0
  38. package/esm/FormCheck.d.ts +1 -0
  39. package/esm/FormCheck.js +2 -1
  40. package/esm/NavbarOffcanvas.js +2 -53
  41. package/esm/Offcanvas.d.ts +1 -0
  42. package/esm/Offcanvas.js +43 -32
  43. package/esm/Overlay.d.ts +2 -7
  44. package/esm/Overlay.js +15 -1
  45. package/esm/OverlayTrigger.d.ts +2 -0
  46. package/esm/Popover.d.ts +2 -2
  47. package/esm/Row.js +3 -2
  48. package/esm/SplitButton.d.ts +1 -0
  49. package/esm/SplitButton.js +9 -0
  50. package/esm/Stack.js +4 -2
  51. package/esm/Table.d.ts +1 -1
  52. package/esm/Table.js +1 -1
  53. package/esm/Tabs.d.ts +10 -2
  54. package/esm/ThemeProvider.d.ts +4 -1
  55. package/esm/ThemeProvider.js +12 -2
  56. package/esm/ToastContainer.d.ts +1 -0
  57. package/esm/ToastContainer.js +2 -1
  58. package/esm/ToggleButtonGroup.js +1 -1
  59. package/esm/Tooltip.d.ts +2 -2
  60. package/esm/createUtilityClasses.d.ts +1 -1
  61. package/esm/createUtilityClasses.js +3 -3
  62. package/esm/types.d.ts +7 -0
  63. package/package.json +2 -2
@@ -1069,7 +1069,7 @@ __webpack_require__.d(__webpack_exports__, {
1069
1069
  "ProgressBar": () => (/* reexport */ src_ProgressBar),
1070
1070
  "Ratio": () => (/* reexport */ src_Ratio),
1071
1071
  "Row": () => (/* reexport */ src_Row),
1072
- "SSRProvider": () => (/* reexport */ src_SSRProvider),
1072
+ "SSRProvider": () => (/* reexport */ SSRProvider),
1073
1073
  "Spinner": () => (/* reexport */ src_Spinner),
1074
1074
  "SplitButton": () => (/* reexport */ src_SplitButton),
1075
1075
  "Stack": () => (/* reexport */ src_Stack),
@@ -1566,9 +1566,11 @@ var ThemeProvider_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-boot
1566
1566
 
1567
1567
 
1568
1568
  const DEFAULT_BREAKPOINTS = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
1569
+ const DEFAULT_MIN_BREAKPOINT = 'xs';
1569
1570
  const ThemeContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext({
1570
1571
  prefixes: {},
1571
- breakpoints: DEFAULT_BREAKPOINTS
1572
+ breakpoints: DEFAULT_BREAKPOINTS,
1573
+ minBreakpoint: DEFAULT_MIN_BREAKPOINT
1572
1574
  });
1573
1575
  const {
1574
1576
  Consumer,
@@ -1578,6 +1580,7 @@ const {
1578
1580
  function ThemeProvider({
1579
1581
  prefixes = {},
1580
1582
  breakpoints = DEFAULT_BREAKPOINTS,
1583
+ minBreakpoint = DEFAULT_MIN_BREAKPOINT,
1581
1584
  dir,
1582
1585
  children
1583
1586
  }) {
@@ -1585,14 +1588,15 @@ function ThemeProvider({
1585
1588
  prefixes: { ...prefixes
1586
1589
  },
1587
1590
  breakpoints,
1591
+ minBreakpoint,
1588
1592
  dir
1589
- }), [prefixes, breakpoints, dir]);
1593
+ }), [prefixes, breakpoints, minBreakpoint, dir]);
1590
1594
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Provider, {
1591
1595
  value: contextValue,
1592
1596
  children: children
1593
1597
  }, void 0, false, {
1594
1598
  fileName: ThemeProvider_jsxFileName,
1595
- lineNumber: 38,
1599
+ lineNumber: 43,
1596
1600
  columnNumber: 10
1597
1601
  }, this);
1598
1602
  }
@@ -1615,6 +1619,12 @@ ThemeProvider.propTypes = {
1615
1619
  */
1616
1620
  breakpoints: prop_types_default().arrayOf((prop_types_default()).string),
1617
1621
 
1622
+ /**
1623
+ * The minimum breakpoint used by your application.
1624
+ * Defaults to the smallest of the standard Bootstrap breakpoints.
1625
+ */
1626
+ minBreakpoint: (prop_types_default()).string,
1627
+
1618
1628
  /**
1619
1629
  * Indicates the directionality of the application's text.
1620
1630
  *
@@ -1634,6 +1644,12 @@ function useBootstrapBreakpoints() {
1634
1644
  } = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(ThemeContext);
1635
1645
  return breakpoints;
1636
1646
  }
1647
+ function useBootstrapMinBreakpoint() {
1648
+ const {
1649
+ minBreakpoint
1650
+ } = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(ThemeContext);
1651
+ return minBreakpoint;
1652
+ }
1637
1653
  function useIsRTL() {
1638
1654
  const {
1639
1655
  dir
@@ -1659,7 +1675,7 @@ function createBootstrapComponent(Component, opts) {
1659
1675
  bsPrefix: bsPrefix
1660
1676
  }, void 0, false, {
1661
1677
  fileName: ThemeProvider_jsxFileName,
1662
- lineNumber: 95,
1678
+ lineNumber: 111,
1663
1679
  columnNumber: 14
1664
1680
  }, this);
1665
1681
  });
@@ -3144,7 +3160,7 @@ function useEventCallback(fn) {
3144
3160
  return ref.current && ref.current.apply(ref, arguments);
3145
3161
  }, [ref]);
3146
3162
  }
3147
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
3163
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCallbackRef.js
3148
3164
 
3149
3165
  /**
3150
3166
  * A convenience hook around `useState` designed to be paired with
@@ -3174,7 +3190,37 @@ function useEventCallback(fn) {
3174
3190
  function useCallbackRef() {
3175
3191
  return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
3176
3192
  }
3177
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useEventListener.js
3193
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCommittedRef.js
3194
+
3195
+ /**
3196
+ * Creates a `Ref` whose value is updated in an effect, ensuring the most recent
3197
+ * value is the one rendered with. Generally only required for Concurrent mode usage
3198
+ * where previous work in `render()` may be discarded before being used.
3199
+ *
3200
+ * This is safe to access in an event handler.
3201
+ *
3202
+ * @param value The `Ref` value
3203
+ */
3204
+
3205
+ function esm_useCommittedRef_useCommittedRef(value) {
3206
+ var ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
3207
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3208
+ ref.current = value;
3209
+ }, [value]);
3210
+ return ref;
3211
+ }
3212
+
3213
+ /* harmony default export */ const hooks_esm_useCommittedRef = (esm_useCommittedRef_useCommittedRef);
3214
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useEventCallback.js
3215
+
3216
+
3217
+ function useEventCallback_useEventCallback(fn) {
3218
+ var ref = hooks_esm_useCommittedRef(fn);
3219
+ return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function () {
3220
+ return ref.current && ref.current.apply(ref, arguments);
3221
+ }, [ref]);
3222
+ }
3223
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useEventListener.js
3178
3224
 
3179
3225
 
3180
3226
  /**
@@ -3192,7 +3238,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
3192
3238
  capture = false;
3193
3239
  }
3194
3240
 
3195
- var handler = useEventCallback(listener);
3241
+ var handler = useEventCallback_useEventCallback(listener);
3196
3242
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3197
3243
  var target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
3198
3244
  target.addEventListener(event, handler, capture);
@@ -3201,7 +3247,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
3201
3247
  };
3202
3248
  }, [eventTarget]);
3203
3249
  }
3204
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useGlobalListener.js
3250
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useGlobalListener.js
3205
3251
 
3206
3252
 
3207
3253
  /**
@@ -3229,7 +3275,7 @@ function useGlobalListener(event, handler, capture) {
3229
3275
  }, []);
3230
3276
  return useEventListener(documentTarget, event, handler, capture);
3231
3277
  }
3232
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useInterval.js
3278
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useInterval.js
3233
3279
 
3234
3280
 
3235
3281
  /**
@@ -3288,7 +3334,7 @@ function useInterval(fn, ms, paused, runImmediately) {
3288
3334
  }
3289
3335
 
3290
3336
  /* harmony default export */ const esm_useInterval = ((/* unused pure expression or super */ null && (useInterval)));
3291
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useRafInterval.js
3337
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useRafInterval.js
3292
3338
 
3293
3339
 
3294
3340
 
@@ -3327,7 +3373,7 @@ function useRafInterval(fn, ms, paused) {
3327
3373
  }
3328
3374
 
3329
3375
  /* harmony default export */ const esm_useRafInterval = ((/* unused pure expression or super */ null && (useRafInterval)));
3330
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeState.js
3376
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeState.js
3331
3377
  function useMergeState_extends() {
3332
3378
  useMergeState_extends = Object.assign || function (target) {
3333
3379
  for (var i = 1; i < arguments.length; i++) {
@@ -3384,7 +3430,7 @@ function useMergeState_useMergeState(initialState) {
3384
3430
  }, [setState]);
3385
3431
  return [state, updater];
3386
3432
  }
3387
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3433
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3388
3434
 
3389
3435
  function useMergeStateFromProps(props, gDSFP, initialState) {
3390
3436
  var _useMergeState = useMergeState(initialState),
@@ -3395,7 +3441,7 @@ function useMergeStateFromProps(props, gDSFP, initialState) {
3395
3441
  if (nextState !== null) setState(nextState);
3396
3442
  return [state, setState];
3397
3443
  }
3398
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
3444
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMounted.js
3399
3445
 
3400
3446
  /**
3401
3447
  * Track whether a component is current mounted. Generally less preferable than
@@ -3431,7 +3477,7 @@ function useMounted() {
3431
3477
  }, []);
3432
3478
  return isMounted.current;
3433
3479
  }
3434
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/usePrevious.js
3480
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/usePrevious.js
3435
3481
 
3436
3482
  /**
3437
3483
  * Store the last of some value. Tracked via a `Ref` only updating it
@@ -3458,7 +3504,7 @@ function usePrevious(value) {
3458
3504
  });
3459
3505
  return ref.current;
3460
3506
  }
3461
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useImage.js
3507
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useImage.js
3462
3508
 
3463
3509
  /**
3464
3510
  * Fetch and load an image for programatic use such as in a `<canvas>` element.
@@ -3537,7 +3583,7 @@ function useImage(imageOrUrl, crossOrigin) {
3537
3583
  }, [imageOrUrl, crossOrigin]);
3538
3584
  return state;
3539
3585
  }
3540
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3586
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3541
3587
 
3542
3588
  var isReactNative = typeof __webpack_require__.g !== 'undefined' && // @ts-ignore
3543
3589
  __webpack_require__.g.navigator && // @ts-ignore
@@ -3553,7 +3599,7 @@ var isDOM = typeof document !== 'undefined';
3553
3599
  */
3554
3600
 
3555
3601
  /* 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);
3556
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useResizeObserver.js
3602
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useResizeObserver.js
3557
3603
 
3558
3604
 
3559
3605
  var targetMap = new WeakMap();
@@ -3606,7 +3652,7 @@ function useResizeObserver(element) {
3606
3652
  }, [element]);
3607
3653
  return rect;
3608
3654
  }
3609
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/index.js
3655
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/index.js
3610
3656
 
3611
3657
 
3612
3658
 
@@ -3780,7 +3826,7 @@ const Anchor = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
3780
3826
  const [buttonProps] = useButtonProps(Object.assign({
3781
3827
  tagName: 'a'
3782
3828
  }, props));
3783
- const handleKeyDown = useEventCallback(e => {
3829
+ const handleKeyDown = useEventCallback_useEventCallback(e => {
3784
3830
  buttonProps.onKeyDown(e);
3785
3831
  onKeyDown == null ? void 0 : onKeyDown(e);
3786
3832
  });
@@ -4819,6 +4865,42 @@ function useUpdateEffect(fn, deps) {
4819
4865
  }
4820
4866
 
4821
4867
  /* harmony default export */ const esm_useUpdateEffect = (useUpdateEffect);
4868
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
4869
+
4870
+ /**
4871
+ * Track whether a component is current mounted. Generally less preferable than
4872
+ * properlly canceling effects so they don't run after a component is unmounted,
4873
+ * but helpful in cases where that isn't feasible, such as a `Promise` resolution.
4874
+ *
4875
+ * @returns a function that returns the current isMounted state of the component
4876
+ *
4877
+ * ```ts
4878
+ * const [data, setData] = useState(null)
4879
+ * const isMounted = useMounted()
4880
+ *
4881
+ * useEffect(() => {
4882
+ * fetchdata().then((newData) => {
4883
+ * if (isMounted()) {
4884
+ * setData(newData);
4885
+ * }
4886
+ * })
4887
+ * })
4888
+ * ```
4889
+ */
4890
+
4891
+ function useMounted_useMounted() {
4892
+ var mounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
4893
+ var isMounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(function () {
4894
+ return mounted.current;
4895
+ });
4896
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
4897
+ mounted.current = true;
4898
+ return function () {
4899
+ mounted.current = false;
4900
+ };
4901
+ }, []);
4902
+ return isMounted.current;
4903
+ }
4822
4904
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useUpdatedRef.js
4823
4905
 
4824
4906
  /**
@@ -4893,7 +4975,7 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
4893
4975
 
4894
4976
 
4895
4977
  function useTimeout() {
4896
- var isMounted = useMounted(); // types are confused between node and web here IDK
4978
+ var isMounted = useMounted_useMounted(); // types are confused between node and web here IDK
4897
4979
 
4898
4980
  var handleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
4899
4981
  useWillUnmount(function () {
@@ -5608,6 +5690,7 @@ function useCol({
5608
5690
  }) {
5609
5691
  bsPrefix = useBootstrapPrefix(bsPrefix, 'col');
5610
5692
  const breakpoints = useBootstrapBreakpoints();
5693
+ const minBreakpoint = useBootstrapMinBreakpoint();
5611
5694
  const spans = [];
5612
5695
  const classes = [];
5613
5696
  breakpoints.forEach(brkPoint => {
@@ -5627,7 +5710,7 @@ function useCol({
5627
5710
  span = propValue;
5628
5711
  }
5629
5712
 
5630
- const infix = brkPoint !== 'xs' ? `-${brkPoint}` : '';
5713
+ const infix = brkPoint !== minBreakpoint ? `-${brkPoint}` : '';
5631
5714
  if (span) spans.push(span === true ? `${bsPrefix}${infix}` : `${bsPrefix}${infix}-${span}`);
5632
5715
  if (order != null) classes.push(`order${infix}-${order}`);
5633
5716
  if (offset != null) classes.push(`offset${infix}-${offset}`);
@@ -5655,7 +5738,7 @@ const Col = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
5655
5738
  className: classnames_default()(className, !spans.length && bsPrefix)
5656
5739
  }, void 0, false, {
5657
5740
  fileName: Col_jsxFileName,
5658
- lineNumber: 179,
5741
+ lineNumber: 184,
5659
5742
  columnNumber: 7
5660
5743
  }, undefined);
5661
5744
  });
@@ -5674,7 +5757,7 @@ var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
5674
5757
  function qsa(element, selector) {
5675
5758
  return toArray(element.querySelectorAll(selector));
5676
5759
  }
5677
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useForceUpdate.js
5760
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useForceUpdate.js
5678
5761
 
5679
5762
  /**
5680
5763
  * Returns a function that triggers a component update. the hook equivalent to
@@ -5793,7 +5876,7 @@ function dequal(foo, bar) {
5793
5876
  return foo !== foo && bar !== bar;
5794
5877
  }
5795
5878
 
5796
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useSafeState.js
5879
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useSafeState.js
5797
5880
 
5798
5881
 
5799
5882
 
@@ -5848,9 +5931,13 @@ function isShadowRoot(node) {
5848
5931
  }
5849
5932
 
5850
5933
 
5934
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/math.js
5935
+ var math_max = Math.max;
5936
+ var math_min = Math.min;
5937
+ var round = Math.round;
5851
5938
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
5852
5939
 
5853
- var round = Math.round;
5940
+
5854
5941
  function getBoundingClientRect(element, includeScale) {
5855
5942
  if (includeScale === void 0) {
5856
5943
  includeScale = false;
@@ -5866,23 +5953,23 @@ function getBoundingClientRect(element, includeScale) {
5866
5953
  // Fallback to 1 in case both values are `0`
5867
5954
 
5868
5955
  if (offsetWidth > 0) {
5869
- scaleX = rect.width / offsetWidth || 1;
5956
+ scaleX = round(rect.width) / offsetWidth || 1;
5870
5957
  }
5871
5958
 
5872
5959
  if (offsetHeight > 0) {
5873
- scaleY = rect.height / offsetHeight || 1;
5960
+ scaleY = round(rect.height) / offsetHeight || 1;
5874
5961
  }
5875
5962
  }
5876
5963
 
5877
5964
  return {
5878
- width: round(rect.width / scaleX),
5879
- height: round(rect.height / scaleY),
5880
- top: round(rect.top / scaleY),
5881
- right: round(rect.right / scaleX),
5882
- bottom: round(rect.bottom / scaleY),
5883
- left: round(rect.left / scaleX),
5884
- x: round(rect.left / scaleX),
5885
- y: round(rect.top / scaleY)
5965
+ width: rect.width / scaleX,
5966
+ height: rect.height / scaleY,
5967
+ top: rect.top / scaleY,
5968
+ right: rect.right / scaleX,
5969
+ bottom: rect.bottom / scaleY,
5970
+ left: rect.left / scaleX,
5971
+ x: rect.left / scaleX,
5972
+ y: rect.top / scaleY
5886
5973
  };
5887
5974
  }
5888
5975
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
@@ -6010,6 +6097,10 @@ function getContainingBlock(element) {
6010
6097
 
6011
6098
  var currentNode = getParentNode(element);
6012
6099
 
6100
+ if (isShadowRoot(currentNode)) {
6101
+ currentNode = currentNode.host;
6102
+ }
6103
+
6013
6104
  while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
6014
6105
  var css = dom_utils_getComputedStyle_getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
6015
6106
  // create a containing block.
@@ -6045,15 +6136,15 @@ function getOffsetParent(element) {
6045
6136
  function getMainAxisFromPlacement(placement) {
6046
6137
  return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
6047
6138
  }
6048
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/math.js
6049
- var math_max = Math.max;
6050
- var math_min = Math.min;
6051
- var math_round = Math.round;
6052
6139
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/within.js
6053
6140
 
6054
6141
  function within(min, value, max) {
6055
6142
  return math_max(min, math_min(value, max));
6056
6143
  }
6144
+ function withinMaxClamp(min, value, max) {
6145
+ var v = within(min, value, max);
6146
+ return v > max ? max : v;
6147
+ }
6057
6148
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js
6058
6149
  function getFreshSideObject() {
6059
6150
  return {
@@ -6232,8 +6323,8 @@ function roundOffsetsByDPR(_ref) {
6232
6323
  var win = window;
6233
6324
  var dpr = win.devicePixelRatio || 1;
6234
6325
  return {
6235
- x: math_round(math_round(x * dpr) / dpr) || 0,
6236
- y: math_round(math_round(y * dpr) / dpr) || 0
6326
+ x: round(x * dpr) / dpr || 0,
6327
+ y: round(y * dpr) / dpr || 0
6237
6328
  };
6238
6329
  }
6239
6330
 
@@ -6248,14 +6339,23 @@ function mapToStyles(_ref2) {
6248
6339
  position = _ref2.position,
6249
6340
  gpuAcceleration = _ref2.gpuAcceleration,
6250
6341
  adaptive = _ref2.adaptive,
6251
- roundOffsets = _ref2.roundOffsets;
6252
-
6253
- var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
6254
- _ref3$x = _ref3.x,
6255
- x = _ref3$x === void 0 ? 0 : _ref3$x,
6256
- _ref3$y = _ref3.y,
6257
- y = _ref3$y === void 0 ? 0 : _ref3$y;
6342
+ roundOffsets = _ref2.roundOffsets,
6343
+ isFixed = _ref2.isFixed;
6344
+ var _offsets$x = offsets.x,
6345
+ x = _offsets$x === void 0 ? 0 : _offsets$x,
6346
+ _offsets$y = offsets.y,
6347
+ y = _offsets$y === void 0 ? 0 : _offsets$y;
6348
+
6349
+ var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
6350
+ x: x,
6351
+ y: y
6352
+ }) : {
6353
+ x: x,
6354
+ y: y
6355
+ };
6258
6356
 
6357
+ x = _ref3.x;
6358
+ y = _ref3.y;
6259
6359
  var hasX = offsets.hasOwnProperty('x');
6260
6360
  var hasY = offsets.hasOwnProperty('y');
6261
6361
  var sideX = left;
@@ -6280,16 +6380,18 @@ function mapToStyles(_ref2) {
6280
6380
  offsetParent = offsetParent;
6281
6381
 
6282
6382
  if (placement === enums_top || (placement === left || placement === right) && variation === end) {
6283
- sideY = bottom; // $FlowFixMe[prop-missing]
6284
-
6285
- y -= offsetParent[heightProp] - popperRect.height;
6383
+ sideY = bottom;
6384
+ var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
6385
+ offsetParent[heightProp];
6386
+ y -= offsetY - popperRect.height;
6286
6387
  y *= gpuAcceleration ? 1 : -1;
6287
6388
  }
6288
6389
 
6289
6390
  if (placement === left || (placement === enums_top || placement === bottom) && variation === end) {
6290
- sideX = right; // $FlowFixMe[prop-missing]
6291
-
6292
- x -= offsetParent[widthProp] - popperRect.width;
6391
+ sideX = right;
6392
+ var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
6393
+ offsetParent[widthProp];
6394
+ x -= offsetX - popperRect.width;
6293
6395
  x *= gpuAcceleration ? 1 : -1;
6294
6396
  }
6295
6397
  }
@@ -6298,6 +6400,17 @@ function mapToStyles(_ref2) {
6298
6400
  position: position
6299
6401
  }, adaptive && unsetSides);
6300
6402
 
6403
+ var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
6404
+ x: x,
6405
+ y: y
6406
+ }) : {
6407
+ x: x,
6408
+ y: y
6409
+ };
6410
+
6411
+ x = _ref4.x;
6412
+ y = _ref4.y;
6413
+
6301
6414
  if (gpuAcceleration) {
6302
6415
  var _Object$assign;
6303
6416
 
@@ -6307,9 +6420,9 @@ function mapToStyles(_ref2) {
6307
6420
  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
6308
6421
  }
6309
6422
 
6310
- function computeStyles(_ref4) {
6311
- var state = _ref4.state,
6312
- options = _ref4.options;
6423
+ function computeStyles(_ref5) {
6424
+ var state = _ref5.state,
6425
+ options = _ref5.options;
6313
6426
  var _options$gpuAccelerat = options.gpuAcceleration,
6314
6427
  gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
6315
6428
  _options$adaptive = options.adaptive,
@@ -6324,7 +6437,8 @@ function computeStyles(_ref4) {
6324
6437
  variation: getVariation(state.placement),
6325
6438
  popper: state.elements.popper,
6326
6439
  popperRect: state.rects.popper,
6327
- gpuAcceleration: gpuAcceleration
6440
+ gpuAcceleration: gpuAcceleration,
6441
+ isFixed: state.options.strategy === 'fixed'
6328
6442
  };
6329
6443
 
6330
6444
  if (state.modifiersData.popperOffsets != null) {
@@ -6620,7 +6734,7 @@ function getInnerBoundingClientRect(element) {
6620
6734
  }
6621
6735
 
6622
6736
  function getClientRectFromMixedType(element, clippingParent) {
6623
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
6737
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
6624
6738
  } // A "clipping parent" is an overflowable container with the characteristic of
6625
6739
  // clipping (or hiding) overflowing elements with a position different from
6626
6740
  // `initial`
@@ -7054,6 +7168,7 @@ function hide(_ref) {
7054
7168
  });
7055
7169
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/offset.js
7056
7170
 
7171
+ // eslint-disable-next-line import/no-unused-modules
7057
7172
 
7058
7173
  function distanceAndSkiddingToXY(placement, rects, offset) {
7059
7174
  var basePlacement = getBasePlacement(placement);
@@ -7182,6 +7297,14 @@ function preventOverflow(_ref) {
7182
7297
  var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
7183
7298
  placement: state.placement
7184
7299
  })) : tetherOffset;
7300
+ var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
7301
+ mainAxis: tetherOffsetValue,
7302
+ altAxis: tetherOffsetValue
7303
+ } : Object.assign({
7304
+ mainAxis: 0,
7305
+ altAxis: 0
7306
+ }, tetherOffsetValue);
7307
+ var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
7185
7308
  var data = {
7186
7309
  x: 0,
7187
7310
  y: 0
@@ -7191,13 +7314,15 @@ function preventOverflow(_ref) {
7191
7314
  return;
7192
7315
  }
7193
7316
 
7194
- if (checkMainAxis || checkAltAxis) {
7317
+ if (checkMainAxis) {
7318
+ var _offsetModifierState$;
7319
+
7195
7320
  var mainSide = mainAxis === 'y' ? enums_top : left;
7196
7321
  var altSide = mainAxis === 'y' ? bottom : right;
7197
7322
  var len = mainAxis === 'y' ? 'height' : 'width';
7198
7323
  var offset = popperOffsets[mainAxis];
7199
- var min = popperOffsets[mainAxis] + overflow[mainSide];
7200
- var max = popperOffsets[mainAxis] - overflow[altSide];
7324
+ var min = offset + overflow[mainSide];
7325
+ var max = offset - overflow[altSide];
7201
7326
  var additive = tether ? -popperRect[len] / 2 : 0;
7202
7327
  var minLen = variation === start ? referenceRect[len] : popperRect[len];
7203
7328
  var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
@@ -7217,36 +7342,45 @@ function preventOverflow(_ref) {
7217
7342
  // width or height)
7218
7343
 
7219
7344
  var arrowLen = within(0, referenceRect[len], arrowRect[len]);
7220
- var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
7221
- var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
7345
+ var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
7346
+ var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
7222
7347
  var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
7223
7348
  var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
7224
- var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
7225
- var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
7226
- var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
7349
+ var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
7350
+ var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
7351
+ var tetherMax = offset + maxOffset - offsetModifierValue;
7352
+ var preventedOffset = within(tether ? math_min(min, tetherMin) : min, offset, tether ? math_max(max, tetherMax) : max);
7353
+ popperOffsets[mainAxis] = preventedOffset;
7354
+ data[mainAxis] = preventedOffset - offset;
7355
+ }
7227
7356
 
7228
- if (checkMainAxis) {
7229
- var preventedOffset = within(tether ? math_min(min, tetherMin) : min, offset, tether ? math_max(max, tetherMax) : max);
7230
- popperOffsets[mainAxis] = preventedOffset;
7231
- data[mainAxis] = preventedOffset - offset;
7232
- }
7357
+ if (checkAltAxis) {
7358
+ var _offsetModifierState$2;
7233
7359
 
7234
- if (checkAltAxis) {
7235
- var _mainSide = mainAxis === 'x' ? enums_top : left;
7360
+ var _mainSide = mainAxis === 'x' ? enums_top : left;
7236
7361
 
7237
- var _altSide = mainAxis === 'x' ? bottom : right;
7362
+ var _altSide = mainAxis === 'x' ? bottom : right;
7238
7363
 
7239
- var _offset = popperOffsets[altAxis];
7364
+ var _offset = popperOffsets[altAxis];
7240
7365
 
7241
- var _min = _offset + overflow[_mainSide];
7366
+ var _len = altAxis === 'y' ? 'height' : 'width';
7242
7367
 
7243
- var _max = _offset - overflow[_altSide];
7368
+ var _min = _offset + overflow[_mainSide];
7244
7369
 
7245
- var _preventedOffset = within(tether ? math_min(_min, tetherMin) : _min, _offset, tether ? math_max(_max, tetherMax) : _max);
7370
+ var _max = _offset - overflow[_altSide];
7246
7371
 
7247
- popperOffsets[altAxis] = _preventedOffset;
7248
- data[altAxis] = _preventedOffset - _offset;
7249
- }
7372
+ var isOriginSide = [enums_top, left].indexOf(basePlacement) !== -1;
7373
+
7374
+ var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
7375
+
7376
+ var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
7377
+
7378
+ var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
7379
+
7380
+ var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
7381
+
7382
+ popperOffsets[altAxis] = _preventedOffset;
7383
+ data[altAxis] = _preventedOffset - _offset;
7250
7384
  }
7251
7385
 
7252
7386
  state.modifiersData[name] = data;
@@ -7288,10 +7422,11 @@ function getNodeScroll(node) {
7288
7422
 
7289
7423
 
7290
7424
 
7425
+
7291
7426
  function isElementScaled(element) {
7292
7427
  var rect = element.getBoundingClientRect();
7293
- var scaleX = rect.width / element.offsetWidth || 1;
7294
- var scaleY = rect.height / element.offsetHeight || 1;
7428
+ var scaleX = round(rect.width) / element.offsetWidth || 1;
7429
+ var scaleY = round(rect.height) / element.offsetHeight || 1;
7295
7430
  return scaleX !== 1 || scaleY !== 1;
7296
7431
  } // Returns the composite rect of an element relative to its offsetParent.
7297
7432
  // Composite means it takes into account transforms as well as layout.
@@ -7896,14 +8031,14 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
7896
8031
  preventMouseClickOutsideRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains_contains(currentTarget, e.target) || waitingForTrigger.current;
7897
8032
  waitingForTrigger.current = false;
7898
8033
  }, [ref]);
7899
- const handleInitialMouse = useEventCallback(e => {
8034
+ const handleInitialMouse = useEventCallback_useEventCallback(e => {
7900
8035
  const currentTarget = getRefTarget(ref);
7901
8036
 
7902
8037
  if (currentTarget && contains_contains(currentTarget, e.target)) {
7903
8038
  waitingForTrigger.current = true;
7904
8039
  }
7905
8040
  });
7906
- const handleMouse = useEventCallback(e => {
8041
+ const handleMouse = useEventCallback_useEventCallback(e => {
7907
8042
  if (!preventMouseClickOutsideRef.current) {
7908
8043
  onClickOutside(e);
7909
8044
  }
@@ -8147,71 +8282,71 @@ DropdownMenu.defaultProps = DropdownMenu_defaultProps;
8147
8282
 
8148
8283
  /* harmony default export */ const esm_DropdownMenu = (DropdownMenu);
8149
8284
  ;// CONCATENATED MODULE: ./node_modules/@react-aria/ssr/dist/module.js
8150
- // Default context value to use in case there is no SSRProvider. This is fine for
8285
+
8286
+
8287
+ function $parcel$export(e, n, v, s) {
8288
+ Object.defineProperty(e, n, {
8289
+ get: v,
8290
+ set: s,
8291
+ enumerable: true,
8292
+ configurable: true
8293
+ });
8294
+ }
8295
+
8296
+ var $704cf1d3b684cc5c$exports = {};
8297
+ $parcel$export($704cf1d3b684cc5c$exports, "SSRProvider", () => $704cf1d3b684cc5c$export$9f8ac96af4b1b2ae);
8298
+ $parcel$export($704cf1d3b684cc5c$exports, "useSSRSafeId", () => $704cf1d3b684cc5c$export$619500959fc48b26);
8299
+ $parcel$export($704cf1d3b684cc5c$exports, "useIsSSR", () => $704cf1d3b684cc5c$export$535bd6ca7f90a273); // Default context value to use in case there is no SSRProvider. This is fine for
8151
8300
  // client-only apps. In order to support multiple copies of React Aria potentially
8152
8301
  // being on the page at once, the prefix is set to a random number. SSRProvider
8153
8302
  // will reset this to zero for consistency between server and client, so in the
8154
8303
  // SSR case multiple copies of React Aria is not supported.
8155
8304
 
8156
- const $f01a183cc7bdff77849e49ad26eb904$var$defaultContext = {
8157
- prefix: Math.round(Math.random() * 10000000000),
8305
+ const $704cf1d3b684cc5c$var$defaultContext = {
8306
+ prefix: String(Math.round(Math.random() * 10000000000)),
8158
8307
  current: 0
8159
8308
  };
8309
+ const $704cf1d3b684cc5c$var$SSRContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext($704cf1d3b684cc5c$var$defaultContext);
8160
8310
 
8161
- const $f01a183cc7bdff77849e49ad26eb904$var$SSRContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext($f01a183cc7bdff77849e49ad26eb904$var$defaultContext);
8162
- /**
8163
- * When using SSR with React Aria, applications must be wrapped in an SSRProvider.
8164
- * This ensures that auto generated ids are consistent between the client and server.
8165
- */
8166
-
8167
-
8168
- function SSRProvider(props) {
8169
- let cur = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($f01a183cc7bdff77849e49ad26eb904$var$SSRContext);
8311
+ function $704cf1d3b684cc5c$export$9f8ac96af4b1b2ae(props) {
8312
+ let cur = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
8170
8313
  let value = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
8171
- // If this is the first SSRProvider, set to zero, otherwise increment.
8172
- prefix: cur === $f01a183cc7bdff77849e49ad26eb904$var$defaultContext ? 0 : ++cur.prefix,
8314
+ // If this is the first SSRProvider, start with an empty string prefix, otherwise
8315
+ // append and increment the counter.
8316
+ prefix: cur === $704cf1d3b684cc5c$var$defaultContext ? '' : `${cur.prefix}-${++cur.current}`,
8173
8317
  current: 0
8174
8318
  }), [cur]);
8175
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement($f01a183cc7bdff77849e49ad26eb904$var$SSRContext.Provider, {
8319
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement($704cf1d3b684cc5c$var$SSRContext.Provider, {
8176
8320
  value: value
8177
8321
  }, props.children);
8178
8322
  }
8179
- let $f01a183cc7bdff77849e49ad26eb904$var$canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
8180
- /** @private */
8181
8323
 
8182
- function useSSRSafeId(defaultId) {
8183
- let ctx = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($f01a183cc7bdff77849e49ad26eb904$var$SSRContext); // If we are rendering in a non-DOM environment, and there's no SSRProvider,
8184
- // provide a warning to hint to the developer to add one.
8324
+ let $704cf1d3b684cc5c$var$canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
8185
8325
 
8186
- if (ctx === $f01a183cc7bdff77849e49ad26eb904$var$defaultContext && !$f01a183cc7bdff77849e49ad26eb904$var$canUseDOM) {
8187
- console.warn('When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.');
8188
- }
8326
+ function $704cf1d3b684cc5c$export$619500959fc48b26(defaultId) {
8327
+ let ctx = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext); // If we are rendering in a non-DOM environment, and there's no SSRProvider,
8328
+ // provide a warning to hint to the developer to add one.
8189
8329
 
8190
- return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => defaultId || "react-aria-" + ctx.prefix + "-" + ++ctx.current, [defaultId]);
8330
+ 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.');
8331
+ return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => defaultId || `react-aria${ctx.prefix}-${++ctx.current}`, [defaultId]);
8191
8332
  }
8192
- /**
8193
- * Returns whether the component is currently being server side rendered or
8194
- * hydrated on the client. Can be used to delay browser-specific rendering
8195
- * until after hydration.
8196
- */
8197
8333
 
8198
- function useIsSSR() {
8199
- let cur = useContext($f01a183cc7bdff77849e49ad26eb904$var$SSRContext);
8200
- let isInSSRContext = cur !== $f01a183cc7bdff77849e49ad26eb904$var$defaultContext;
8201
- let [isSSR, setIsSSR] = useState(isInSSRContext); // If on the client, and the component was initially server rendered,
8334
+ function $704cf1d3b684cc5c$export$535bd6ca7f90a273() {
8335
+ let cur = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
8336
+ let isInSSRContext = cur !== $704cf1d3b684cc5c$var$defaultContext;
8337
+ let [isSSR, setIsSSR] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(isInSSRContext); // If on the client, and the component was initially server rendered,
8202
8338
  // then schedule a layout effect to update the component after hydration.
8203
8339
 
8204
- if (typeof window !== 'undefined' && isInSSRContext) {
8205
- // This if statement technically breaks the rules of hooks, but is safe
8340
+ if (typeof window !== 'undefined' && isInSSRContext) // This if statement technically breaks the rules of hooks, but is safe
8206
8341
  // because the condition never changes after mounting.
8207
8342
  // eslint-disable-next-line react-hooks/rules-of-hooks
8208
- useLayoutEffect(() => {
8343
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(() => {
8209
8344
  setIsSSR(false);
8210
8345
  }, []);
8211
- }
8212
-
8213
8346
  return isSSR;
8214
8347
  }
8348
+
8349
+
8215
8350
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/DropdownToggle.js
8216
8351
 
8217
8352
 
@@ -8235,7 +8370,7 @@ const DropdownToggle_noop = () => {};
8235
8370
 
8236
8371
 
8237
8372
  function useDropdownToggle() {
8238
- const id = useSSRSafeId();
8373
+ const id = $704cf1d3b684cc5c$export$619500959fc48b26();
8239
8374
  const {
8240
8375
  show = false,
8241
8376
  toggle = DropdownToggle_noop,
@@ -8350,7 +8485,7 @@ function useDropdownItem({
8350
8485
  } = navContext || {};
8351
8486
  const eventKey = makeEventKey(key, href);
8352
8487
  const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;
8353
- const handleClick = useEventCallback(event => {
8488
+ const handleClick = useEventCallback_useEventCallback(event => {
8354
8489
  if (disabled) return;
8355
8490
  onClick == null ? void 0 : onClick(event);
8356
8491
 
@@ -8469,7 +8604,7 @@ function Dropdown({
8469
8604
  source
8470
8605
  });
8471
8606
  }, [onToggle]);
8472
- const handleSelect = useEventCallback((key, event) => {
8607
+ const handleSelect = useEventCallback_useEventCallback((key, event) => {
8473
8608
  onSelect == null ? void 0 : onSelect(key, event);
8474
8609
  toggle(false, event, 'select');
8475
8610
 
@@ -8491,12 +8626,12 @@ function Dropdown({
8491
8626
  focusInDropdown.current = menuElement.contains(menuElement.ownerDocument.activeElement);
8492
8627
  }
8493
8628
 
8494
- const focusToggle = useEventCallback(() => {
8629
+ const focusToggle = useEventCallback_useEventCallback(() => {
8495
8630
  if (toggleElement && toggleElement.focus) {
8496
8631
  toggleElement.focus();
8497
8632
  }
8498
8633
  });
8499
- const maybeFocusFirst = useEventCallback(() => {
8634
+ const maybeFocusFirst = useEventCallback_useEventCallback(() => {
8500
8635
  const type = lastSourceEvent.current;
8501
8636
  let focusType = focusFirstItemOnShow;
8502
8637
 
@@ -8698,6 +8833,22 @@ const DropdownItem_DropdownItem = /*#__PURE__*/external_root_React_commonjs2_rea
8698
8833
  DropdownItem_DropdownItem.displayName = 'DropdownItem';
8699
8834
  DropdownItem_DropdownItem.propTypes = DropdownItem_propTypes;
8700
8835
  /* harmony default export */ const src_DropdownItem = (DropdownItem_DropdownItem);
8836
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
8837
+
8838
+ var useIsomorphicEffect_isReactNative = typeof __webpack_require__.g !== 'undefined' && // @ts-ignore
8839
+ __webpack_require__.g.navigator && // @ts-ignore
8840
+ __webpack_require__.g.navigator.product === 'ReactNative';
8841
+ var useIsomorphicEffect_isDOM = typeof document !== 'undefined';
8842
+ /**
8843
+ * Is `useLayoutEffect` in a DOM or React Native environment, otherwise resolves to useEffect
8844
+ * Only useful to avoid the console warning.
8845
+ *
8846
+ * PREFER `useEffect` UNLESS YOU KNOW WHAT YOU ARE DOING.
8847
+ *
8848
+ * @category effects
8849
+ */
8850
+
8851
+ /* 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);
8701
8852
  ;// CONCATENATED MODULE: ./src/InputGroupContext.tsx
8702
8853
 
8703
8854
  const InputGroupContext_context = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -8886,7 +9037,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
8886
9037
  placement
8887
9038
  });
8888
9039
  menuProps.ref = esm_useMergedRefs(useWrappedRefWithWarning(ref, 'DropdownMenu'), menuProps.ref);
8889
- useIsomorphicEffect(() => {
9040
+ esm_useIsomorphicEffect(() => {
8890
9041
  // Popper's initial position for the menu is incorrect when
8891
9042
  // renderOnMount=true. Need to call update() to correct it.
8892
9043
  if (show) popper == null ? void 0 : popper.update();
@@ -9058,24 +9209,14 @@ const Dropdown_propTypes = {
9058
9209
  */
9059
9210
  show: (prop_types_default()).bool,
9060
9211
 
9061
- /**
9062
- * Allow Dropdown to flip in case of an overlapping on the reference element. For more information refer to
9063
- * Popper.js's flip [docs](https://popper.js.org/docs/v2/modifiers/flip/).
9064
- *
9065
- */
9066
- flip: (prop_types_default()).bool,
9067
-
9068
9212
  /**
9069
9213
  * A callback fired when the Dropdown wishes to change visibility. Called with the requested
9070
9214
  * `show` value, the DOM event, and the source that fired it: `'click'`,`'keydown'`,`'rootClose'`, or `'select'`.
9071
9215
  *
9072
9216
  * ```js
9073
9217
  * function(
9074
- * isOpen: boolean,
9075
- * event: SyntheticEvent,
9076
- * metadata: {
9077
- * source: 'select' | 'click' | 'rootClose' | 'keydown'
9078
- * }
9218
+ * nextShow: boolean,
9219
+ * meta: ToggleMetadata,
9079
9220
  * ): void
9080
9221
  * ```
9081
9222
  *
@@ -9173,17 +9314,17 @@ const Dropdown_Dropdown = /*#__PURE__*/external_root_React_commonjs2_react_commo
9173
9314
  className: classnames_default()(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'end' && 'dropend', drop === 'start' && 'dropstart')
9174
9315
  }, void 0, false, {
9175
9316
  fileName: Dropdown_jsxFileName,
9176
- lineNumber: 205,
9317
+ lineNumber: 194,
9177
9318
  columnNumber: 13
9178
9319
  }, undefined)
9179
9320
  }, void 0, false, {
9180
9321
  fileName: Dropdown_jsxFileName,
9181
- lineNumber: 194,
9322
+ lineNumber: 183,
9182
9323
  columnNumber: 9
9183
9324
  }, undefined)
9184
9325
  }, void 0, false, {
9185
9326
  fileName: Dropdown_jsxFileName,
9186
- lineNumber: 193,
9327
+ lineNumber: 182,
9187
9328
  columnNumber: 7
9188
9329
  }, undefined);
9189
9330
  });
@@ -9255,6 +9396,13 @@ const DropdownButton_propTypes = {
9255
9396
  */
9256
9397
  menuVariant: prop_types_default().oneOf(['dark']),
9257
9398
 
9399
+ /**
9400
+ * Allow Dropdown to flip in case of an overlapping on the reference element. For more information refer to
9401
+ * Popper.js's flip [docs](https://popper.js.org/docs/v2/modifiers/flip/).
9402
+ *
9403
+ */
9404
+ flip: (prop_types_default()).bool,
9405
+
9258
9406
  /** @ignore */
9259
9407
  bsPrefix: (prop_types_default()).string,
9260
9408
 
@@ -9287,6 +9435,7 @@ const DropdownButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs
9287
9435
  href,
9288
9436
  id,
9289
9437
  menuVariant,
9438
+ flip,
9290
9439
  ...props
9291
9440
  }, ref) => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown, {
9292
9441
  ref: ref,
@@ -9301,22 +9450,23 @@ const DropdownButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs
9301
9450
  children: title
9302
9451
  }, void 0, false, {
9303
9452
  fileName: DropdownButton_jsxFileName,
9304
- lineNumber: 109,
9453
+ lineNumber: 118,
9305
9454
  columnNumber: 7
9306
9455
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_DropdownMenu, {
9307
9456
  role: menuRole,
9308
9457
  renderOnMount: renderMenuOnMount,
9309
9458
  rootCloseEvent: rootCloseEvent,
9310
9459
  variant: menuVariant,
9460
+ flip: flip,
9311
9461
  children: children
9312
9462
  }, void 0, false, {
9313
9463
  fileName: DropdownButton_jsxFileName,
9314
- lineNumber: 119,
9464
+ lineNumber: 128,
9315
9465
  columnNumber: 7
9316
9466
  }, undefined)]
9317
9467
  }, void 0, true, {
9318
9468
  fileName: DropdownButton_jsxFileName,
9319
- lineNumber: 108,
9469
+ lineNumber: 117,
9320
9470
  columnNumber: 5
9321
9471
  }, undefined));
9322
9472
  DropdownButton.displayName = 'DropdownButton';
@@ -9536,6 +9686,11 @@ const FormCheck_propTypes = {
9536
9686
  */
9537
9687
  inline: (prop_types_default()).bool,
9538
9688
 
9689
+ /**
9690
+ * Put your checkboxes, radios, and switches on the opposite side.
9691
+ */
9692
+ reverse: (prop_types_default()).bool,
9693
+
9539
9694
  /**
9540
9695
  * Disables the control.
9541
9696
  */
@@ -9574,6 +9729,7 @@ const FormCheck = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9574
9729
  bsPrefix,
9575
9730
  bsSwitchPrefix,
9576
9731
  inline = false,
9732
+ reverse = false,
9577
9733
  disabled = false,
9578
9734
  isValid = false,
9579
9735
  isInvalid = false,
@@ -9609,7 +9765,7 @@ const FormCheck = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9609
9765
  as: as
9610
9766
  }, void 0, false, {
9611
9767
  fileName: FormCheck_jsxFileName,
9612
- lineNumber: 161,
9768
+ lineNumber: 168,
9613
9769
  columnNumber: 9
9614
9770
  }, undefined);
9615
9771
 
@@ -9617,14 +9773,14 @@ const FormCheck = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9617
9773
  value: innerFormContext,
9618
9774
  children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
9619
9775
  style: style,
9620
- className: classnames_default()(className, hasLabel && bsPrefix, inline && `${bsPrefix}-inline`, type === 'switch' && bsSwitchPrefix),
9776
+ className: classnames_default()(className, hasLabel && bsPrefix, inline && `${bsPrefix}-inline`, reverse && `${bsPrefix}-reverse`, type === 'switch' && bsSwitchPrefix),
9621
9777
  children: children || /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(jsx_dev_runtime.Fragment, {
9622
9778
  children: [input, hasLabel && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_FormCheckLabel, {
9623
9779
  title: title,
9624
9780
  children: label
9625
9781
  }, void 0, false, {
9626
9782
  fileName: FormCheck_jsxFileName,
9627
- lineNumber: 187,
9783
+ lineNumber: 195,
9628
9784
  columnNumber: 19
9629
9785
  }, undefined), feedback && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Feedback, {
9630
9786
  type: feedbackType,
@@ -9632,18 +9788,18 @@ const FormCheck = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9632
9788
  children: feedback
9633
9789
  }, void 0, false, {
9634
9790
  fileName: FormCheck_jsxFileName,
9635
- lineNumber: 190,
9791
+ lineNumber: 198,
9636
9792
  columnNumber: 19
9637
9793
  }, undefined)]
9638
9794
  }, void 0, true)
9639
9795
  }, void 0, false, {
9640
9796
  fileName: FormCheck_jsxFileName,
9641
- lineNumber: 174,
9797
+ lineNumber: 181,
9642
9798
  columnNumber: 11
9643
9799
  }, undefined)
9644
9800
  }, void 0, false, {
9645
9801
  fileName: FormCheck_jsxFileName,
9646
- lineNumber: 173,
9802
+ lineNumber: 180,
9647
9803
  columnNumber: 9
9648
9804
  }, undefined);
9649
9805
  });
@@ -10521,6 +10677,47 @@ InputGroup.displayName = 'InputGroup';
10521
10677
  Radio: InputGroupRadio,
10522
10678
  Checkbox: InputGroupCheckbox
10523
10679
  }));
10680
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergedRefs.js
10681
+
10682
+
10683
+ var useMergedRefs_toFnRef = function toFnRef(ref) {
10684
+ return !ref || typeof ref === 'function' ? ref : function (value) {
10685
+ ref.current = value;
10686
+ };
10687
+ };
10688
+
10689
+ function useMergedRefs_mergeRefs(refA, refB) {
10690
+ var a = useMergedRefs_toFnRef(refA);
10691
+ var b = useMergedRefs_toFnRef(refB);
10692
+ return function (value) {
10693
+ if (a) a(value);
10694
+ if (b) b(value);
10695
+ };
10696
+ }
10697
+ /**
10698
+ * Create and returns a single callback ref composed from two other Refs.
10699
+ *
10700
+ * ```tsx
10701
+ * const Button = React.forwardRef((props, ref) => {
10702
+ * const [element, attachRef] = useCallbackRef<HTMLButtonElement>();
10703
+ * const mergedRef = useMergedRefs(ref, attachRef);
10704
+ *
10705
+ * return <button ref={mergedRef} {...props}/>
10706
+ * })
10707
+ * ```
10708
+ *
10709
+ * @param refA A Callback or mutable Ref
10710
+ * @param refB A Callback or mutable Ref
10711
+ * @category refs
10712
+ */
10713
+
10714
+ function useMergedRefs_useMergedRefs(refA, refB) {
10715
+ return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
10716
+ return useMergedRefs_mergeRefs(refA, refB);
10717
+ }, [refA, refB]);
10718
+ }
10719
+
10720
+ /* harmony default export */ const hooks_esm_useMergedRefs = (useMergedRefs_useMergedRefs);
10524
10721
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/TabContext.js
10525
10722
 
10526
10723
  const TabContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -10590,19 +10787,19 @@ function useNavItem({
10590
10787
  }
10591
10788
 
10592
10789
  if (props.role === 'tab') {
10593
- if (disabled) {
10790
+ props['aria-selected'] = isActive;
10791
+
10792
+ if (!isActive) {
10594
10793
  props.tabIndex = -1;
10595
- props['aria-disabled'] = true;
10596
10794
  }
10597
10795
 
10598
- if (isActive) {
10599
- props['aria-selected'] = isActive;
10600
- } else {
10796
+ if (disabled) {
10601
10797
  props.tabIndex = -1;
10798
+ props['aria-disabled'] = true;
10602
10799
  }
10603
10800
  }
10604
10801
 
10605
- props.onClick = useEventCallback(e => {
10802
+ props.onClick = useEventCallback_useEventCallback(e => {
10606
10803
  if (disabled) return;
10607
10804
  onClick == null ? void 0 : onClick(e);
10608
10805
 
@@ -10759,7 +10956,7 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
10759
10956
 
10760
10957
  needsRefocusRef.current = false;
10761
10958
  });
10762
- const mergedRef = esm_useMergedRefs(ref, listNode);
10959
+ const mergedRef = hooks_esm_useMergedRefs(ref, listNode);
10763
10960
  return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_SelectableContext.Provider, {
10764
10961
  value: handleSelect,
10765
10962
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_NavContext.Provider, {
@@ -10980,6 +11177,36 @@ function scrollbarSize(recalc) {
10980
11177
 
10981
11178
  return size;
10982
11179
  }
11180
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
11181
+
11182
+ /**
11183
+ * A convenience hook around `useState` designed to be paired with
11184
+ * the component [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) api.
11185
+ * Callback refs are useful over `useRef()` when you need to respond to the ref being set
11186
+ * instead of lazily accessing it in an effect.
11187
+ *
11188
+ * ```ts
11189
+ * const [element, attachRef] = useCallbackRef<HTMLDivElement>()
11190
+ *
11191
+ * useEffect(() => {
11192
+ * if (!element) return
11193
+ *
11194
+ * const calendar = new FullCalendar.Calendar(element)
11195
+ *
11196
+ * return () => {
11197
+ * calendar.destroy()
11198
+ * }
11199
+ * }, [element])
11200
+ *
11201
+ * return <div ref={attachRef} />
11202
+ * ```
11203
+ *
11204
+ * @category refs
11205
+ */
11206
+
11207
+ function useCallbackRef_useCallbackRef() {
11208
+ return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
11209
+ }
10983
11210
  ;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/activeElement.js
10984
11211
 
10985
11212
  /**
@@ -11006,6 +11233,38 @@ function activeElement(doc) {
11006
11233
  return doc.body;
11007
11234
  }
11008
11235
  }
11236
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useUpdatedRef.js
11237
+
11238
+ /**
11239
+ * Returns a ref that is immediately updated with the new value
11240
+ *
11241
+ * @param value The Ref value
11242
+ * @category refs
11243
+ */
11244
+
11245
+ function useUpdatedRef_useUpdatedRef(value) {
11246
+ var valueRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
11247
+ valueRef.current = value;
11248
+ return valueRef;
11249
+ }
11250
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useWillUnmount.js
11251
+
11252
+
11253
+ /**
11254
+ * Attach a callback that fires when a component unmounts
11255
+ *
11256
+ * @param fn Handler to run when the component unmounts
11257
+ * @category effects
11258
+ */
11259
+
11260
+ function useWillUnmount_useWillUnmount(fn) {
11261
+ var onUnmount = useUpdatedRef_useUpdatedRef(fn);
11262
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
11263
+ return function () {
11264
+ return onUnmount.current();
11265
+ };
11266
+ }, []);
11267
+ }
11009
11268
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/getScrollbarWidth.js
11010
11269
  /**
11011
11270
  * Get the width of the vertical window scrollbar if it's visible
@@ -11288,7 +11547,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11288
11547
  setExited(false);
11289
11548
  }
11290
11549
 
11291
- const handleShow = useEventCallback(() => {
11550
+ const handleShow = useEventCallback_useEventCallback(() => {
11292
11551
  modal.add();
11293
11552
  removeKeydownListenerRef.current = esm_listen(document, 'keydown', handleDocumentKeyDown);
11294
11553
  removeFocusListenerRef.current = esm_listen(document, 'focus', // the timeout is necessary b/c this will run before the new modal is mounted
@@ -11310,7 +11569,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11310
11569
  }
11311
11570
  }
11312
11571
  });
11313
- const handleHide = useEventCallback(() => {
11572
+ const handleHide = useEventCallback_useEventCallback(() => {
11314
11573
  modal.remove();
11315
11574
  removeKeydownListenerRef.current == null ? void 0 : removeKeydownListenerRef.current();
11316
11575
  removeFocusListenerRef.current == null ? void 0 : removeFocusListenerRef.current();
@@ -11339,11 +11598,11 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11339
11598
  if (!exited) return;
11340
11599
  handleHide();
11341
11600
  }, [exited, handleHide]);
11342
- useWillUnmount(() => {
11601
+ useWillUnmount_useWillUnmount(() => {
11343
11602
  handleHide();
11344
11603
  }); // --------------------------------
11345
11604
 
11346
- const handleEnforceFocus = useEventCallback(() => {
11605
+ const handleEnforceFocus = useEventCallback_useEventCallback(() => {
11347
11606
  if (!enforceFocus || !isMounted() || !modal.isTopModal()) {
11348
11607
  return;
11349
11608
  }
@@ -11354,7 +11613,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11354
11613
  modal.dialog.focus();
11355
11614
  }
11356
11615
  });
11357
- const handleBackdropClick = useEventCallback(e => {
11616
+ const handleBackdropClick = useEventCallback_useEventCallback(e => {
11358
11617
  if (e.target !== e.currentTarget) {
11359
11618
  return;
11360
11619
  }
@@ -11365,7 +11624,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11365
11624
  onHide();
11366
11625
  }
11367
11626
  });
11368
- const handleDocumentKeyDown = useEventCallback(e => {
11627
+ const handleDocumentKeyDown = useEventCallback_useEventCallback(e => {
11369
11628
  if (keyboard && e.keyCode === 27 && modal.isTopModal()) {
11370
11629
  onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);
11371
11630
 
@@ -11582,7 +11841,7 @@ const ModalDialog_propTypes = {
11582
11841
  /**
11583
11842
  * Render a large, extra large or small modal.
11584
11843
  *
11585
- * @type ('sm'|'lg','xl')
11844
+ * @type ('sm'|'lg'|'xl')
11586
11845
  */
11587
11846
  size: (prop_types_default()).string,
11588
11847
 
@@ -12048,7 +12307,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12048
12307
  const waitingForMouseUpRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12049
12308
  const ignoreBackdropClickRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12050
12309
  const removeStaticModalAnimationRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
12051
- const [modal, setModalRef] = useCallbackRef();
12310
+ const [modal, setModalRef] = useCallbackRef_useCallbackRef();
12052
12311
  const mergedRef = esm_useMergedRefs(ref, setModalRef);
12053
12312
  const handleHide = useEventCallback(onHide);
12054
12313
  const isRTL = useIsRTL();
@@ -12704,7 +12963,7 @@ function useMediaQuery(query, targetWindow) {
12704
12963
  matches = _useState[0],
12705
12964
  setMatches = _useState[1];
12706
12965
 
12707
- useIsomorphicEffect(function () {
12966
+ esm_useIsomorphicEffect(function () {
12708
12967
  var mql = getMatcher(query, targetWindow);
12709
12968
 
12710
12969
  if (!mql) {
@@ -13044,6 +13303,8 @@ var Offcanvas_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstra
13044
13303
 
13045
13304
 
13046
13305
 
13306
+
13307
+
13047
13308
  const Offcanvas_propTypes = {
13048
13309
  /**
13049
13310
  * @default 'offcanvas'
@@ -13051,9 +13312,10 @@ const Offcanvas_propTypes = {
13051
13312
  bsPrefix: (prop_types_default()).string,
13052
13313
 
13053
13314
  /**
13054
- * Include a backdrop component.
13315
+ * Include a backdrop component. Specify 'static' for a backdrop that doesn't
13316
+ * trigger an "onHide" when clicked.
13055
13317
  */
13056
- backdrop: (prop_types_default()).bool,
13318
+ backdrop: prop_types_default().oneOf(['static', true, false]),
13057
13319
 
13058
13320
  /**
13059
13321
  * Add an optional extra class name to .offcanvas-backdrop.
@@ -13075,6 +13337,12 @@ const Offcanvas_propTypes = {
13075
13337
  */
13076
13338
  placement: prop_types_default().oneOf(['start', 'end', 'top', 'bottom']),
13077
13339
 
13340
+ /**
13341
+ * Hide content outside the viewport from a specified breakpoint and down.
13342
+ * @type {("sm"|"md"|"lg"|"xl"|"xxl")}
13343
+ */
13344
+ responsive: (prop_types_default()).string,
13345
+
13078
13346
  /**
13079
13347
  * When `true` The offcanvas will automatically shift focus to itself when it
13080
13348
  * opens, and replace it to the last focused element when it closes.
@@ -13177,7 +13445,7 @@ function Offcanvas_DialogTransition(props) {
13177
13445
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_OffcanvasToggling, { ...props
13178
13446
  }, void 0, false, {
13179
13447
  fileName: Offcanvas_jsxFileName,
13180
- lineNumber: 178,
13448
+ lineNumber: 194,
13181
13449
  columnNumber: 10
13182
13450
  }, this);
13183
13451
  }
@@ -13186,7 +13454,7 @@ function Offcanvas_BackdropTransition(props) {
13186
13454
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Fade, { ...props
13187
13455
  }, void 0, false, {
13188
13456
  fileName: Offcanvas_jsxFileName,
13189
- lineNumber: 182,
13457
+ lineNumber: 198,
13190
13458
  columnNumber: 10
13191
13459
  }, this);
13192
13460
  }
@@ -13197,6 +13465,7 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
13197
13465
  children,
13198
13466
  'aria-labelledby': ariaLabelledby,
13199
13467
  placement,
13468
+ responsive,
13200
13469
 
13201
13470
  /* BaseModal props */
13202
13471
  show,
@@ -13226,6 +13495,13 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
13226
13495
  const {
13227
13496
  onToggle
13228
13497
  } = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(NavbarContext) || {};
13498
+ const [showOffcanvas, setShowOffcanvas] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
13499
+ const hideResponsiveOffcanvas = esm_useBreakpoint(responsive || 'xs', 'up');
13500
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
13501
+ // Handles the case where screen is resized while the responsive
13502
+ // offcanvas is shown. If `responsive` not provided, just use `show`.
13503
+ setShowOffcanvas(responsive ? show && !hideResponsiveOffcanvas : show);
13504
+ }, [show, responsive, hideResponsiveOffcanvas]);
13229
13505
  const handleHide = useEventCallback(() => {
13230
13506
  onToggle == null ? void 0 : onToggle();
13231
13507
  onHide == null ? void 0 : onHide();
@@ -13263,59 +13539,59 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
13263
13539
  className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName)
13264
13540
  }, void 0, false, {
13265
13541
  fileName: Offcanvas_jsxFileName,
13266
- lineNumber: 264,
13542
+ lineNumber: 293,
13267
13543
  columnNumber: 11
13268
13544
  }, undefined), [backdropClassName, bsPrefix]);
13269
13545
 
13270
- const renderDialog = dialogProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
13271
- role: "dialog",
13272
- ...dialogProps,
13546
+ const renderDialog = dialogProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", { ...dialogProps,
13273
13547
  ...props,
13274
- className: classnames_default()(className, bsPrefix, `${bsPrefix}-${placement}`),
13548
+ className: classnames_default()(className, responsive ? `${bsPrefix}-${responsive}` : bsPrefix, `${bsPrefix}-${placement}`),
13275
13549
  "aria-labelledby": ariaLabelledby,
13276
13550
  children: children
13277
13551
  }, void 0, false, {
13278
13552
  fileName: Offcanvas_jsxFileName,
13279
- lineNumber: 273,
13553
+ lineNumber: 302,
13280
13554
  columnNumber: 9
13281
13555
  }, undefined);
13282
13556
 
13283
- return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_ModalContext.Provider, {
13284
- value: modalContext,
13285
- children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Modal, {
13286
- show: show,
13287
- ref: ref,
13288
- backdrop: backdrop,
13289
- container: container,
13290
- keyboard: keyboard,
13291
- autoFocus: autoFocus,
13292
- enforceFocus: enforceFocus && !scroll,
13293
- restoreFocus: restoreFocus,
13294
- restoreFocusOptions: restoreFocusOptions,
13295
- onEscapeKeyDown: onEscapeKeyDown,
13296
- onShow: onShow,
13297
- onHide: handleHide,
13298
- onEnter: handleEnter,
13299
- onEntering: onEntering,
13300
- onEntered: onEntered,
13301
- onExit: onExit,
13302
- onExiting: onExiting,
13303
- onExited: handleExited,
13304
- manager: getModalManager(),
13305
- transition: Offcanvas_DialogTransition,
13306
- backdropTransition: Offcanvas_BackdropTransition,
13307
- renderBackdrop: renderBackdrop,
13308
- renderDialog: renderDialog
13557
+ return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(jsx_dev_runtime.Fragment, {
13558
+ children: [!showOffcanvas && renderDialog({}), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_ModalContext.Provider, {
13559
+ value: modalContext,
13560
+ children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Modal, {
13561
+ show: showOffcanvas,
13562
+ ref: ref,
13563
+ backdrop: backdrop,
13564
+ container: container,
13565
+ keyboard: keyboard,
13566
+ autoFocus: autoFocus,
13567
+ enforceFocus: enforceFocus && !scroll,
13568
+ restoreFocus: restoreFocus,
13569
+ restoreFocusOptions: restoreFocusOptions,
13570
+ onEscapeKeyDown: onEscapeKeyDown,
13571
+ onShow: onShow,
13572
+ onHide: handleHide,
13573
+ onEnter: handleEnter,
13574
+ onEntering: onEntering,
13575
+ onEntered: onEntered,
13576
+ onExit: onExit,
13577
+ onExiting: onExiting,
13578
+ onExited: handleExited,
13579
+ manager: getModalManager(),
13580
+ transition: Offcanvas_DialogTransition,
13581
+ backdropTransition: Offcanvas_BackdropTransition,
13582
+ renderBackdrop: renderBackdrop,
13583
+ renderDialog: renderDialog
13584
+ }, void 0, false, {
13585
+ fileName: Offcanvas_jsxFileName,
13586
+ lineNumber: 325,
13587
+ columnNumber: 13
13588
+ }, undefined)
13309
13589
  }, void 0, false, {
13310
13590
  fileName: Offcanvas_jsxFileName,
13311
- lineNumber: 290,
13591
+ lineNumber: 324,
13312
13592
  columnNumber: 11
13313
- }, undefined)
13314
- }, void 0, false, {
13315
- fileName: Offcanvas_jsxFileName,
13316
- lineNumber: 289,
13317
- columnNumber: 9
13318
- }, undefined);
13593
+ }, undefined)]
13594
+ }, void 0, true);
13319
13595
  });
13320
13596
  Offcanvas.displayName = 'Offcanvas';
13321
13597
  Offcanvas.propTypes = Offcanvas_propTypes;
@@ -13332,71 +13608,16 @@ var NavbarOffcanvas_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bo
13332
13608
 
13333
13609
 
13334
13610
 
13335
-
13336
-
13337
-
13338
- const NavbarOffcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
13339
- className,
13340
- bsPrefix,
13341
- backdrop,
13342
- backdropClassName,
13343
- keyboard,
13344
- scroll,
13345
- placement,
13346
- autoFocus,
13347
- enforceFocus,
13348
- restoreFocus,
13349
- restoreFocusOptions,
13350
- onShow,
13351
- onHide,
13352
- onEscapeKeyDown,
13353
- onEnter,
13354
- onEntering,
13355
- onEntered,
13356
- onExit,
13357
- onExiting,
13358
- onExited,
13359
- ...props
13360
- }, ref) => {
13611
+ const NavbarOffcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((props, ref) => {
13361
13612
  const context = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(NavbarContext);
13362
- bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas');
13363
- const hasExpandProp = typeof (context == null ? void 0 : context.expand) === 'string';
13364
- const shouldExpand = esm_useBreakpoint(hasExpandProp ? context.expand : 'xs', 'up');
13365
- return hasExpandProp && shouldExpand ? /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
13366
- ref: ref,
13367
- ...props,
13368
- className: classnames_default()(className, bsPrefix, `${bsPrefix}-${placement}`)
13369
- }, void 0, false, {
13370
- fileName: NavbarOffcanvas_jsxFileName,
13371
- lineNumber: 47,
13372
- columnNumber: 7
13373
- }, undefined) : /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Offcanvas, {
13613
+ return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Offcanvas, {
13374
13614
  ref: ref,
13375
13615
  show: !!(context != null && context.expanded),
13376
- bsPrefix: bsPrefix,
13377
- backdrop: backdrop,
13378
- backdropClassName: backdropClassName,
13379
- keyboard: keyboard,
13380
- scroll: scroll,
13381
- placement: placement,
13382
- autoFocus: autoFocus,
13383
- enforceFocus: enforceFocus,
13384
- restoreFocus: restoreFocus,
13385
- restoreFocusOptions: restoreFocusOptions,
13386
- onShow: onShow,
13387
- onHide: onHide,
13388
- onEscapeKeyDown: onEscapeKeyDown,
13389
- onEnter: onEnter,
13390
- onEntering: onEntering,
13391
- onEntered: onEntered,
13392
- onExit: onExit,
13393
- onExiting: onExiting,
13394
- onExited: onExited,
13395
13616
  ...props
13396
13617
  }, void 0, false, {
13397
13618
  fileName: NavbarOffcanvas_jsxFileName,
13398
- lineNumber: 53,
13399
- columnNumber: 7
13619
+ lineNumber: 12,
13620
+ columnNumber: 12
13400
13621
  }, undefined);
13401
13622
  });
13402
13623
  NavbarOffcanvas.displayName = 'NavbarOffcanvas';
@@ -13744,7 +13965,7 @@ function useRootClose(ref, onRootClose, {
13744
13965
  disabled,
13745
13966
  clickTrigger
13746
13967
  });
13747
- const handleKeyUp = useEventCallback(e => {
13968
+ const handleKeyUp = useEventCallback_useEventCallback(e => {
13748
13969
  if (e.keyCode === escapeKeyCode) {
13749
13970
  onClose(e);
13750
13971
  }
@@ -13798,7 +14019,7 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
13798
14019
  } = props;
13799
14020
  const [rootElement, attachRef] = useCallbackRef();
13800
14021
  const [arrowElement, attachArrowRef] = useCallbackRef();
13801
- const mergedRef = esm_useMergedRefs(attachRef, outerRef);
14022
+ const mergedRef = hooks_esm_useMergedRefs(attachRef, outerRef);
13802
14023
  const container = useWaitForDOMRef(props.container);
13803
14024
  const target = useWaitForDOMRef(props.target);
13804
14025
  const [exited, setExited] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(!props.show);
@@ -14041,6 +14262,9 @@ var Overlay_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/
14041
14262
 
14042
14263
 
14043
14264
 
14265
+
14266
+
14267
+
14044
14268
  const Overlay_propTypes = {
14045
14269
  /**
14046
14270
  * A component instance, DOM node, or function that returns either.
@@ -14148,13 +14372,24 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
14148
14372
  ...outerProps
14149
14373
  }, outerRef) => {
14150
14374
  const popperRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({});
14375
+ const [firstRenderedState, setFirstRenderedState] = useCallbackRef_useCallbackRef();
14151
14376
  const [ref, modifiers] = useOverlayOffset(outerProps.offset);
14152
14377
  const mergedRef = esm_useMergedRefs(outerRef, ref);
14153
14378
  const actualTransition = transition === true ? src_Fade : transition || undefined;
14379
+ const handleFirstUpdate = useEventCallback(state => {
14380
+ setFirstRenderedState(state);
14381
+ popperConfig == null ? void 0 : popperConfig.onFirstUpdate == null ? void 0 : popperConfig.onFirstUpdate(state);
14382
+ });
14383
+ esm_useIsomorphicEffect(() => {
14384
+ if (firstRenderedState) {
14385
+ popperRef.current.scheduleUpdate == null ? void 0 : popperRef.current.scheduleUpdate();
14386
+ }
14387
+ }, [firstRenderedState]);
14154
14388
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Overlay, { ...outerProps,
14155
14389
  ref: mergedRef,
14156
14390
  popperConfig: { ...popperConfig,
14157
- modifiers: modifiers.concat(popperConfig.modifiers || [])
14391
+ modifiers: modifiers.concat(popperConfig.modifiers || []),
14392
+ onFirstUpdate: handleFirstUpdate
14158
14393
  },
14159
14394
  transition: actualTransition,
14160
14395
  children: (overlayProps, {
@@ -14194,7 +14429,7 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
14194
14429
  }
14195
14430
  }, void 0, false, {
14196
14431
  fileName: Overlay_jsxFileName,
14197
- lineNumber: 173,
14432
+ lineNumber: 184,
14198
14433
  columnNumber: 7
14199
14434
  }, undefined);
14200
14435
  });
@@ -14246,6 +14481,8 @@ const OverlayTrigger_propTypes = {
14246
14481
  /**
14247
14482
  * Specify which action or actions trigger Overlay visibility
14248
14483
  *
14484
+ * The `click` trigger ignores the configured `delay`.
14485
+ *
14249
14486
  * @type {'hover' | 'click' |'focus' | Array<'hover' | 'click' |'focus'>}
14250
14487
  */
14251
14488
  trigger: prop_types_default().oneOfType([triggerType, prop_types_default().arrayOf(triggerType)]),
@@ -14423,7 +14660,7 @@ function OverlayTrigger({
14423
14660
  children: overlay
14424
14661
  }, void 0, false, {
14425
14662
  fileName: OverlayTrigger_jsxFileName,
14426
- lineNumber: 300,
14663
+ lineNumber: 302,
14427
14664
  columnNumber: 7
14428
14665
  }, this)]
14429
14666
  }, void 0, true);
@@ -15065,6 +15302,7 @@ const Row = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
15065
15302
  }, ref) => {
15066
15303
  const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
15067
15304
  const breakpoints = useBootstrapBreakpoints();
15305
+ const minBreakpoint = useBootstrapMinBreakpoint();
15068
15306
  const sizePrefix = `${decoratedBsPrefix}-cols`;
15069
15307
  const classes = [];
15070
15308
  breakpoints.forEach(brkPoint => {
@@ -15080,7 +15318,7 @@ const Row = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
15080
15318
  cols = propValue;
15081
15319
  }
15082
15320
 
15083
- const infix = brkPoint !== 'xs' ? `-${brkPoint}` : '';
15321
+ const infix = brkPoint !== minBreakpoint ? `-${brkPoint}` : '';
15084
15322
  if (cols != null) classes.push(`${sizePrefix}${infix}-${cols}`);
15085
15323
  });
15086
15324
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
@@ -15089,7 +15327,7 @@ const Row = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
15089
15327
  className: classnames_default()(className, decoratedBsPrefix, ...classes)
15090
15328
  }, void 0, false, {
15091
15329
  fileName: Row_jsxFileName,
15092
- lineNumber: 141,
15330
+ lineNumber: 146,
15093
15331
  columnNumber: 7
15094
15332
  }, undefined);
15095
15333
  });
@@ -15233,6 +15471,13 @@ const SplitButton_propTypes = {
15233
15471
  */
15234
15472
  rootCloseEvent: (prop_types_default()).string,
15235
15473
 
15474
+ /**
15475
+ * Allow Dropdown to flip in case of an overlapping on the reference element. For more information refer to
15476
+ * Popper.js's flip [docs](https://popper.js.org/docs/v2/modifiers/flip/).
15477
+ *
15478
+ */
15479
+ flip: (prop_types_default()).bool,
15480
+
15236
15481
  /** @ignore */
15237
15482
  bsPrefix: (prop_types_default()).string,
15238
15483
 
@@ -15272,6 +15517,7 @@ const SplitButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
15272
15517
  menuRole,
15273
15518
  renderMenuOnMount,
15274
15519
  rootCloseEvent,
15520
+ flip,
15275
15521
  ...props
15276
15522
  }, ref) => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown, {
15277
15523
  ref: ref,
@@ -15289,7 +15535,7 @@ const SplitButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
15289
15535
  children: title
15290
15536
  }, void 0, false, {
15291
15537
  fileName: SplitButton_jsxFileName,
15292
- lineNumber: 122,
15538
+ lineNumber: 131,
15293
15539
  columnNumber: 7
15294
15540
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Toggle, {
15295
15541
  split: true,
@@ -15303,26 +15549,27 @@ const SplitButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
15303
15549
  children: toggleLabel
15304
15550
  }, void 0, false, {
15305
15551
  fileName: SplitButton_jsxFileName,
15306
- lineNumber: 142,
15552
+ lineNumber: 151,
15307
15553
  columnNumber: 9
15308
15554
  }, undefined)
15309
15555
  }, void 0, false, {
15310
15556
  fileName: SplitButton_jsxFileName,
15311
- lineNumber: 134,
15557
+ lineNumber: 143,
15312
15558
  columnNumber: 7
15313
15559
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Menu, {
15314
15560
  role: menuRole,
15315
15561
  renderOnMount: renderMenuOnMount,
15316
15562
  rootCloseEvent: rootCloseEvent,
15563
+ flip: flip,
15317
15564
  children: children
15318
15565
  }, void 0, false, {
15319
15566
  fileName: SplitButton_jsxFileName,
15320
- lineNumber: 145,
15567
+ lineNumber: 154,
15321
15568
  columnNumber: 7
15322
15569
  }, undefined)]
15323
15570
  }, void 0, true, {
15324
15571
  fileName: SplitButton_jsxFileName,
15325
- lineNumber: 121,
15572
+ lineNumber: 130,
15326
15573
  columnNumber: 5
15327
15574
  }, undefined));
15328
15575
  SplitButton.propTypes = SplitButton_propTypes;
@@ -15331,7 +15578,7 @@ SplitButton.displayName = 'SplitButton';
15331
15578
  /* harmony default export */ const src_SplitButton = (SplitButton);
15332
15579
  ;// CONCATENATED MODULE: ./src/SSRProvider.ts
15333
15580
 
15334
- /* harmony default export */ const src_SSRProvider = (SSRProvider);
15581
+ /* harmony default export */ const SSRProvider = ($704cf1d3b684cc5c$export$9f8ac96af4b1b2ae);
15335
15582
  ;// CONCATENATED MODULE: ./src/createUtilityClasses.ts
15336
15583
 
15337
15584
 
@@ -15345,7 +15592,7 @@ function responsivePropType(propType) {
15345
15592
  xxl: propType
15346
15593
  })]);
15347
15594
  }
15348
- function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS) {
15595
+ function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS, minBreakpoint = DEFAULT_MIN_BREAKPOINT) {
15349
15596
  const classes = [];
15350
15597
  Object.entries(utilityValues).forEach(([utilName, utilValue]) => {
15351
15598
  if (utilValue != null) {
@@ -15354,7 +15601,7 @@ function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS
15354
15601
  const bpValue = utilValue[brkPoint];
15355
15602
 
15356
15603
  if (bpValue != null) {
15357
- const infix = brkPoint !== 'xs' ? `-${brkPoint}` : '';
15604
+ const infix = brkPoint !== minBreakpoint ? `-${brkPoint}` : '';
15358
15605
  classes.push(`${utilName}${infix}-${bpValue}`);
15359
15606
  }
15360
15607
  });
@@ -15400,15 +15647,17 @@ const Stack = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
15400
15647
  }, ref) => {
15401
15648
  bsPrefix = useBootstrapPrefix(bsPrefix, direction === 'horizontal' ? 'hstack' : 'vstack');
15402
15649
  const breakpoints = useBootstrapBreakpoints();
15650
+ const minBreakpoint = useBootstrapMinBreakpoint();
15403
15651
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, { ...props,
15404
15652
  ref: ref,
15405
15653
  className: classnames_default()(className, bsPrefix, ...createUtilityClassName({
15406
15654
  gap,
15407
- breakpoints
15655
+ breakpoints,
15656
+ minBreakpoint
15408
15657
  }))
15409
15658
  }, void 0, false, {
15410
15659
  fileName: Stack_jsxFileName,
15411
- lineNumber: 52,
15660
+ lineNumber: 57,
15412
15661
  columnNumber: 9
15413
15662
  }, undefined);
15414
15663
  });
@@ -15601,7 +15850,7 @@ const Tabs = props => {
15601
15850
  children
15602
15851
  } = props;
15603
15852
  const [activeKey, onSelect] = useUncontrolledProp(propsActiveKey, defaultActiveKey, propsOnSelect);
15604
- const id = useSSRSafeId(userId);
15853
+ const id = $704cf1d3b684cc5c$export$619500959fc48b26(userId);
15605
15854
  const generateChildId = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => generateCustomChildId || ((key, type) => id ? `${id}-${type}-${key}` : null), [id, generateCustomChildId]);
15606
15855
  const tabContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
15607
15856
  onSelect,
@@ -15926,8 +16175,9 @@ const Table_propTypes = {
15926
16175
 
15927
16176
  /**
15928
16177
  * Adds zebra-striping to any table row within the `<tbody>`.
16178
+ * Use `columns` to add zebra-striping to any table column.
15929
16179
  */
15930
- striped: (prop_types_default()).bool,
16180
+ striped: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string]),
15931
16181
 
15932
16182
  /**
15933
16183
  * Adds borders on all sides of the table and cells.
@@ -15980,14 +16230,14 @@ const Table = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
15980
16230
  ...props
15981
16231
  }, ref) => {
15982
16232
  const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
15983
- const classes = classnames_default()(className, decoratedBsPrefix, variant && `${decoratedBsPrefix}-${variant}`, size && `${decoratedBsPrefix}-${size}`, striped && `${decoratedBsPrefix}-striped`, bordered && `${decoratedBsPrefix}-bordered`, borderless && `${decoratedBsPrefix}-borderless`, hover && `${decoratedBsPrefix}-hover`);
16233
+ const classes = classnames_default()(className, decoratedBsPrefix, variant && `${decoratedBsPrefix}-${variant}`, size && `${decoratedBsPrefix}-${size}`, striped && `${decoratedBsPrefix}-${typeof striped === 'string' ? `striped-${striped}` : 'striped'}`, bordered && `${decoratedBsPrefix}-bordered`, borderless && `${decoratedBsPrefix}-borderless`, hover && `${decoratedBsPrefix}-hover`);
15984
16234
 
15985
16235
  const table = /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("table", { ...props,
15986
16236
  className: classes,
15987
16237
  ref: ref
15988
16238
  }, void 0, false, {
15989
16239
  fileName: Table_jsxFileName,
15990
- lineNumber: 98,
16240
+ lineNumber: 103,
15991
16241
  columnNumber: 19
15992
16242
  }, undefined);
15993
16243
 
@@ -16003,7 +16253,7 @@ const Table = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
16003
16253
  children: table
16004
16254
  }, void 0, false, {
16005
16255
  fileName: Table_jsxFileName,
16006
- lineNumber: 105,
16256
+ lineNumber: 110,
16007
16257
  columnNumber: 14
16008
16258
  }, undefined);
16009
16259
  }
@@ -16085,7 +16335,17 @@ const Tabs_propTypes = {
16085
16335
  /**
16086
16336
  * Unmount tabs (remove it from the DOM) when it is no longer visible
16087
16337
  */
16088
- unmountOnExit: (prop_types_default()).bool
16338
+ unmountOnExit: (prop_types_default()).bool,
16339
+
16340
+ /**
16341
+ * Have all `Tabs`s proportionately fill all available width.
16342
+ */
16343
+ fill: (prop_types_default()).bool,
16344
+
16345
+ /**
16346
+ * Have all `Tab`s evenly fill all available width.
16347
+ */
16348
+ justify: (prop_types_default()).bool
16089
16349
  };
16090
16350
  const Tabs_defaultProps = {
16091
16351
  variant: 'tabs',
@@ -16131,12 +16391,12 @@ function renderTab(child) {
16131
16391
  children: title
16132
16392
  }, void 0, false, {
16133
16393
  fileName: Tabs_jsxFileName,
16134
- lineNumber: 112,
16394
+ lineNumber: 122,
16135
16395
  columnNumber: 7
16136
16396
  }, this)
16137
16397
  }, void 0, false, {
16138
16398
  fileName: Tabs_jsxFileName,
16139
- lineNumber: 111,
16399
+ lineNumber: 121,
16140
16400
  columnNumber: 5
16141
16401
  }, this);
16142
16402
  }
@@ -16167,7 +16427,7 @@ const Tabs_Tabs = props => {
16167
16427
  children: map(children, renderTab)
16168
16428
  }, void 0, false, {
16169
16429
  fileName: Tabs_jsxFileName,
16170
- lineNumber: 150,
16430
+ lineNumber: 160,
16171
16431
  columnNumber: 7
16172
16432
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(TabContent, {
16173
16433
  children: map(children, child => {
@@ -16180,18 +16440,18 @@ const Tabs_Tabs = props => {
16180
16440
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_TabPane, { ...childProps
16181
16441
  }, void 0, false, {
16182
16442
  fileName: Tabs_jsxFileName,
16183
- lineNumber: 163,
16443
+ lineNumber: 173,
16184
16444
  columnNumber: 18
16185
16445
  }, undefined);
16186
16446
  })
16187
16447
  }, void 0, false, {
16188
16448
  fileName: Tabs_jsxFileName,
16189
- lineNumber: 154,
16449
+ lineNumber: 164,
16190
16450
  columnNumber: 7
16191
16451
  }, undefined)]
16192
16452
  }, void 0, true, {
16193
16453
  fileName: Tabs_jsxFileName,
16194
- lineNumber: 142,
16454
+ lineNumber: 152,
16195
16455
  columnNumber: 5
16196
16456
  }, undefined);
16197
16457
  };
@@ -16448,7 +16708,14 @@ const ToastContainer_propTypes = {
16448
16708
  /**
16449
16709
  * Where the toasts will be placed within the container.
16450
16710
  */
16451
- position: prop_types_default().oneOf(['top-start', 'top-center', 'top-end', 'middle-start', 'middle-center', 'middle-end', 'bottom-start', 'bottom-center', 'bottom-end'])
16711
+ position: prop_types_default().oneOf(['top-start', 'top-center', 'top-end', 'middle-start', 'middle-center', 'middle-end', 'bottom-start', 'bottom-center', 'bottom-end']),
16712
+
16713
+ /**
16714
+ * By default the container is rendered with `position-absolute` utility class. Provide a string to use other `position-*` utility classes, or an empty string to remove it.
16715
+ *
16716
+ * @default 'absolute'
16717
+ */
16718
+ containerPosition: (prop_types_default()).string
16452
16719
  };
16453
16720
  const positionClasses = {
16454
16721
  'top-start': 'top-0 start-0',
@@ -16464,6 +16731,7 @@ const positionClasses = {
16464
16731
  const ToastContainer = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
16465
16732
  bsPrefix,
16466
16733
  position,
16734
+ containerPosition = 'absolute',
16467
16735
  className,
16468
16736
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
16469
16737
  as: Component = 'div',
@@ -16473,10 +16741,10 @@ const ToastContainer = /*#__PURE__*/external_root_React_commonjs2_react_commonjs
16473
16741
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
16474
16742
  ref: ref,
16475
16743
  ...props,
16476
- className: classnames_default()(bsPrefix, position && `position-absolute ${positionClasses[position]}`, className)
16744
+ className: classnames_default()(bsPrefix, position && [containerPosition ? `position-${containerPosition}` : null, positionClasses[position]], className)
16477
16745
  }, void 0, false, {
16478
16746
  fileName: ToastContainer_jsxFileName,
16479
- lineNumber: 76,
16747
+ lineNumber: 85,
16480
16748
  columnNumber: 7
16481
16749
  }, undefined);
16482
16750
  });
@@ -16670,7 +16938,7 @@ const ToggleButtonGroup = /*#__PURE__*/external_root_React_commonjs2_react_commo
16670
16938
  const isActive = values.indexOf(inputVal) !== -1;
16671
16939
 
16672
16940
  if (type === 'radio') {
16673
- if (!isActive && onChange) onChange(inputVal, event);
16941
+ if (!isActive) onChange(inputVal, event);
16674
16942
  return;
16675
16943
  }
16676
16944