react-bootstrap 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/cjs/AccordionCollapse.d.ts +3 -0
  2. package/cjs/AccordionCollapse.js +3 -0
  3. package/cjs/CardImg.d.ts +1 -1
  4. package/cjs/Carousel.d.ts +1 -1
  5. package/cjs/CloseButton.d.ts +1 -1
  6. package/cjs/Col.js +2 -1
  7. package/cjs/Dropdown.d.ts +0 -1
  8. package/cjs/DropdownButton.d.ts +1 -0
  9. package/cjs/DropdownButton.js +9 -0
  10. package/cjs/Form.d.ts +1 -0
  11. package/cjs/FormCheck.d.ts +1 -0
  12. package/cjs/FormCheck.js +2 -1
  13. package/cjs/ListGroup.d.ts +1 -1
  14. package/cjs/Nav.d.ts +1 -1
  15. package/cjs/Navbar.d.ts +1 -1
  16. package/cjs/NavbarOffcanvas.js +4 -57
  17. package/cjs/Offcanvas.d.ts +2 -0
  18. package/cjs/Offcanvas.js +44 -32
  19. package/cjs/Overlay.d.ts +2 -7
  20. package/cjs/Overlay.js +18 -1
  21. package/cjs/OverlayTrigger.d.ts +2 -0
  22. package/cjs/Popover.d.ts +2 -2
  23. package/cjs/Row.js +2 -1
  24. package/cjs/SplitButton.d.ts +1 -0
  25. package/cjs/SplitButton.js +9 -0
  26. package/cjs/Stack.js +3 -1
  27. package/cjs/Table.d.ts +1 -1
  28. package/cjs/Table.js +1 -1
  29. package/cjs/Tabs.d.ts +10 -2
  30. package/cjs/ThemeProvider.d.ts +4 -1
  31. package/cjs/ThemeProvider.js +16 -3
  32. package/cjs/ToggleButtonGroup.js +1 -1
  33. package/cjs/Tooltip.d.ts +2 -2
  34. package/cjs/createUtilityClasses.d.ts +1 -1
  35. package/cjs/createUtilityClasses.js +2 -2
  36. package/cjs/types.d.ts +7 -0
  37. package/dist/react-bootstrap.js +594 -305
  38. package/dist/react-bootstrap.min.js +1 -1
  39. package/esm/AccordionCollapse.d.ts +3 -0
  40. package/esm/AccordionCollapse.js +4 -0
  41. package/esm/CardImg.d.ts +1 -1
  42. package/esm/Carousel.d.ts +1 -1
  43. package/esm/CloseButton.d.ts +1 -1
  44. package/esm/Col.js +3 -2
  45. package/esm/Dropdown.d.ts +0 -1
  46. package/esm/DropdownButton.d.ts +1 -0
  47. package/esm/DropdownButton.js +9 -0
  48. package/esm/Form.d.ts +1 -0
  49. package/esm/FormCheck.d.ts +1 -0
  50. package/esm/FormCheck.js +2 -1
  51. package/esm/ListGroup.d.ts +1 -1
  52. package/esm/Nav.d.ts +1 -1
  53. package/esm/Navbar.d.ts +1 -1
  54. package/esm/NavbarOffcanvas.js +4 -54
  55. package/esm/Offcanvas.d.ts +2 -0
  56. package/esm/Offcanvas.js +46 -33
  57. package/esm/Overlay.d.ts +2 -7
  58. package/esm/Overlay.js +15 -1
  59. package/esm/OverlayTrigger.d.ts +2 -0
  60. package/esm/Popover.d.ts +2 -2
  61. package/esm/Row.js +3 -2
  62. package/esm/SplitButton.d.ts +1 -0
  63. package/esm/SplitButton.js +9 -0
  64. package/esm/Stack.js +4 -2
  65. package/esm/Table.d.ts +1 -1
  66. package/esm/Table.js +1 -1
  67. package/esm/Tabs.d.ts +10 -2
  68. package/esm/ThemeProvider.d.ts +4 -1
  69. package/esm/ThemeProvider.js +12 -2
  70. package/esm/ToggleButtonGroup.js +1 -1
  71. package/esm/Tooltip.d.ts +2 -2
  72. package/esm/createUtilityClasses.d.ts +1 -1
  73. package/esm/createUtilityClasses.js +3 -3
  74. package/esm/types.d.ts +7 -0
  75. 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
  });
@@ -2755,6 +2771,10 @@ const AccordionCollapse_propTypes = {
2755
2771
  /** Children prop should only contain a single child, and is enforced as such */
2756
2772
  children: (prop_types_default()).element.isRequired
2757
2773
  };
2774
+ /**
2775
+ * This component accepts all of [`Collapse`'s props](/utilities/transitions/#collapse-props).
2776
+ */
2777
+
2758
2778
  const AccordionCollapse = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
2759
2779
  as: Component = 'div',
2760
2780
  bsPrefix,
@@ -2776,12 +2796,12 @@ const AccordionCollapse = /*#__PURE__*/external_root_React_commonjs2_react_commo
2776
2796
  children: external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.only(children)
2777
2797
  }, void 0, false, {
2778
2798
  fileName: AccordionCollapse_jsxFileName,
2779
- lineNumber: 53,
2799
+ lineNumber: 56,
2780
2800
  columnNumber: 9
2781
2801
  }, undefined)
2782
2802
  }, void 0, false, {
2783
2803
  fileName: AccordionCollapse_jsxFileName,
2784
- lineNumber: 47,
2804
+ lineNumber: 50,
2785
2805
  columnNumber: 7
2786
2806
  }, undefined);
2787
2807
  });
@@ -3060,6 +3080,17 @@ const Accordion_propTypes = {
3060
3080
  /** The default active key that is expanded on start */
3061
3081
  defaultActiveKey: prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).array]),
3062
3082
 
3083
+ /**
3084
+ * Callback fired when the active item changes.
3085
+ *
3086
+ * ```js
3087
+ * (eventKey: string | string[] | null, event: Object) => void
3088
+ * ```
3089
+ *
3090
+ * @controllable activeIndex
3091
+ */
3092
+ onSelect: (prop_types_default()).func,
3093
+
3063
3094
  /** Renders accordion edge-to-edge with its parent container */
3064
3095
  flush: (prop_types_default()).bool,
3065
3096
 
@@ -3094,12 +3125,12 @@ const Accordion = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
3094
3125
  className: classnames_default()(className, prefix, flush && `${prefix}-flush`)
3095
3126
  }, void 0, false, {
3096
3127
  fileName: Accordion_jsxFileName,
3097
- lineNumber: 76,
3128
+ lineNumber: 87,
3098
3129
  columnNumber: 9
3099
3130
  }, undefined)
3100
3131
  }, void 0, false, {
3101
3132
  fileName: Accordion_jsxFileName,
3102
- lineNumber: 75,
3133
+ lineNumber: 86,
3103
3134
  columnNumber: 7
3104
3135
  }, undefined);
3105
3136
  });
@@ -3144,7 +3175,7 @@ function useEventCallback(fn) {
3144
3175
  return ref.current && ref.current.apply(ref, arguments);
3145
3176
  }, [ref]);
3146
3177
  }
3147
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
3178
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCallbackRef.js
3148
3179
 
3149
3180
  /**
3150
3181
  * A convenience hook around `useState` designed to be paired with
@@ -3174,7 +3205,37 @@ function useEventCallback(fn) {
3174
3205
  function useCallbackRef() {
3175
3206
  return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
3176
3207
  }
3177
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useEventListener.js
3208
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCommittedRef.js
3209
+
3210
+ /**
3211
+ * Creates a `Ref` whose value is updated in an effect, ensuring the most recent
3212
+ * value is the one rendered with. Generally only required for Concurrent mode usage
3213
+ * where previous work in `render()` may be discarded before being used.
3214
+ *
3215
+ * This is safe to access in an event handler.
3216
+ *
3217
+ * @param value The `Ref` value
3218
+ */
3219
+
3220
+ function esm_useCommittedRef_useCommittedRef(value) {
3221
+ var ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
3222
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3223
+ ref.current = value;
3224
+ }, [value]);
3225
+ return ref;
3226
+ }
3227
+
3228
+ /* harmony default export */ const hooks_esm_useCommittedRef = (esm_useCommittedRef_useCommittedRef);
3229
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useEventCallback.js
3230
+
3231
+
3232
+ function useEventCallback_useEventCallback(fn) {
3233
+ var ref = hooks_esm_useCommittedRef(fn);
3234
+ return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function () {
3235
+ return ref.current && ref.current.apply(ref, arguments);
3236
+ }, [ref]);
3237
+ }
3238
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useEventListener.js
3178
3239
 
3179
3240
 
3180
3241
  /**
@@ -3192,7 +3253,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
3192
3253
  capture = false;
3193
3254
  }
3194
3255
 
3195
- var handler = useEventCallback(listener);
3256
+ var handler = useEventCallback_useEventCallback(listener);
3196
3257
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3197
3258
  var target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
3198
3259
  target.addEventListener(event, handler, capture);
@@ -3201,7 +3262,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
3201
3262
  };
3202
3263
  }, [eventTarget]);
3203
3264
  }
3204
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useGlobalListener.js
3265
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useGlobalListener.js
3205
3266
 
3206
3267
 
3207
3268
  /**
@@ -3229,7 +3290,7 @@ function useGlobalListener(event, handler, capture) {
3229
3290
  }, []);
3230
3291
  return useEventListener(documentTarget, event, handler, capture);
3231
3292
  }
3232
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useInterval.js
3293
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useInterval.js
3233
3294
 
3234
3295
 
3235
3296
  /**
@@ -3288,7 +3349,7 @@ function useInterval(fn, ms, paused, runImmediately) {
3288
3349
  }
3289
3350
 
3290
3351
  /* harmony default export */ const esm_useInterval = ((/* unused pure expression or super */ null && (useInterval)));
3291
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useRafInterval.js
3352
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useRafInterval.js
3292
3353
 
3293
3354
 
3294
3355
 
@@ -3327,7 +3388,7 @@ function useRafInterval(fn, ms, paused) {
3327
3388
  }
3328
3389
 
3329
3390
  /* harmony default export */ const esm_useRafInterval = ((/* unused pure expression or super */ null && (useRafInterval)));
3330
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeState.js
3391
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeState.js
3331
3392
  function useMergeState_extends() {
3332
3393
  useMergeState_extends = Object.assign || function (target) {
3333
3394
  for (var i = 1; i < arguments.length; i++) {
@@ -3384,7 +3445,7 @@ function useMergeState_useMergeState(initialState) {
3384
3445
  }, [setState]);
3385
3446
  return [state, updater];
3386
3447
  }
3387
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3448
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3388
3449
 
3389
3450
  function useMergeStateFromProps(props, gDSFP, initialState) {
3390
3451
  var _useMergeState = useMergeState(initialState),
@@ -3395,7 +3456,7 @@ function useMergeStateFromProps(props, gDSFP, initialState) {
3395
3456
  if (nextState !== null) setState(nextState);
3396
3457
  return [state, setState];
3397
3458
  }
3398
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
3459
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMounted.js
3399
3460
 
3400
3461
  /**
3401
3462
  * Track whether a component is current mounted. Generally less preferable than
@@ -3431,7 +3492,7 @@ function useMounted() {
3431
3492
  }, []);
3432
3493
  return isMounted.current;
3433
3494
  }
3434
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/usePrevious.js
3495
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/usePrevious.js
3435
3496
 
3436
3497
  /**
3437
3498
  * Store the last of some value. Tracked via a `Ref` only updating it
@@ -3458,7 +3519,7 @@ function usePrevious(value) {
3458
3519
  });
3459
3520
  return ref.current;
3460
3521
  }
3461
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useImage.js
3522
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useImage.js
3462
3523
 
3463
3524
  /**
3464
3525
  * Fetch and load an image for programatic use such as in a `<canvas>` element.
@@ -3537,7 +3598,7 @@ function useImage(imageOrUrl, crossOrigin) {
3537
3598
  }, [imageOrUrl, crossOrigin]);
3538
3599
  return state;
3539
3600
  }
3540
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3601
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3541
3602
 
3542
3603
  var isReactNative = typeof __webpack_require__.g !== 'undefined' && // @ts-ignore
3543
3604
  __webpack_require__.g.navigator && // @ts-ignore
@@ -3553,7 +3614,7 @@ var isDOM = typeof document !== 'undefined';
3553
3614
  */
3554
3615
 
3555
3616
  /* 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
3617
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useResizeObserver.js
3557
3618
 
3558
3619
 
3559
3620
  var targetMap = new WeakMap();
@@ -3606,7 +3667,7 @@ function useResizeObserver(element) {
3606
3667
  }, [element]);
3607
3668
  return rect;
3608
3669
  }
3609
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/index.js
3670
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/index.js
3610
3671
 
3611
3672
 
3612
3673
 
@@ -3652,6 +3713,7 @@ function useButtonProps({
3652
3713
  href,
3653
3714
  target,
3654
3715
  rel,
3716
+ role,
3655
3717
  onClick,
3656
3718
  tabIndex = 0,
3657
3719
  type
@@ -3705,7 +3767,7 @@ function useButtonProps({
3705
3767
  }
3706
3768
 
3707
3769
  return [{
3708
- role: 'button',
3770
+ role: role != null ? role : 'button',
3709
3771
  // explicitly undefined so that it overrides the props disabled in a spread
3710
3772
  // e.g. <Tag {...props} {...hookProps} />
3711
3773
  disabled: undefined,
@@ -3780,12 +3842,12 @@ const Anchor = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
3780
3842
  const [buttonProps] = useButtonProps(Object.assign({
3781
3843
  tagName: 'a'
3782
3844
  }, props));
3783
- const handleKeyDown = useEventCallback(e => {
3845
+ const handleKeyDown = useEventCallback_useEventCallback(e => {
3784
3846
  buttonProps.onKeyDown(e);
3785
3847
  onKeyDown == null ? void 0 : onKeyDown(e);
3786
3848
  });
3787
3849
 
3788
- if (Anchor_isTrivialHref(props.href) && !props.role || props.role === 'button') {
3850
+ if (Anchor_isTrivialHref(props.href) || props.role === 'button') {
3789
3851
  return /*#__PURE__*/(0,jsx_runtime.jsx)("a", Object.assign({
3790
3852
  ref: ref
3791
3853
  }, props, buttonProps, {
@@ -4819,6 +4881,42 @@ function useUpdateEffect(fn, deps) {
4819
4881
  }
4820
4882
 
4821
4883
  /* harmony default export */ const esm_useUpdateEffect = (useUpdateEffect);
4884
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
4885
+
4886
+ /**
4887
+ * Track whether a component is current mounted. Generally less preferable than
4888
+ * properlly canceling effects so they don't run after a component is unmounted,
4889
+ * but helpful in cases where that isn't feasible, such as a `Promise` resolution.
4890
+ *
4891
+ * @returns a function that returns the current isMounted state of the component
4892
+ *
4893
+ * ```ts
4894
+ * const [data, setData] = useState(null)
4895
+ * const isMounted = useMounted()
4896
+ *
4897
+ * useEffect(() => {
4898
+ * fetchdata().then((newData) => {
4899
+ * if (isMounted()) {
4900
+ * setData(newData);
4901
+ * }
4902
+ * })
4903
+ * })
4904
+ * ```
4905
+ */
4906
+
4907
+ function useMounted_useMounted() {
4908
+ var mounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
4909
+ var isMounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(function () {
4910
+ return mounted.current;
4911
+ });
4912
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
4913
+ mounted.current = true;
4914
+ return function () {
4915
+ mounted.current = false;
4916
+ };
4917
+ }, []);
4918
+ return isMounted.current;
4919
+ }
4822
4920
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useUpdatedRef.js
4823
4921
 
4824
4922
  /**
@@ -4893,7 +4991,7 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
4893
4991
 
4894
4992
 
4895
4993
  function useTimeout() {
4896
- var isMounted = useMounted(); // types are confused between node and web here IDK
4994
+ var isMounted = useMounted_useMounted(); // types are confused between node and web here IDK
4897
4995
 
4898
4996
  var handleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
4899
4997
  useWillUnmount(function () {
@@ -5608,6 +5706,7 @@ function useCol({
5608
5706
  }) {
5609
5707
  bsPrefix = useBootstrapPrefix(bsPrefix, 'col');
5610
5708
  const breakpoints = useBootstrapBreakpoints();
5709
+ const minBreakpoint = useBootstrapMinBreakpoint();
5611
5710
  const spans = [];
5612
5711
  const classes = [];
5613
5712
  breakpoints.forEach(brkPoint => {
@@ -5627,7 +5726,7 @@ function useCol({
5627
5726
  span = propValue;
5628
5727
  }
5629
5728
 
5630
- const infix = brkPoint !== 'xs' ? `-${brkPoint}` : '';
5729
+ const infix = brkPoint !== minBreakpoint ? `-${brkPoint}` : '';
5631
5730
  if (span) spans.push(span === true ? `${bsPrefix}${infix}` : `${bsPrefix}${infix}-${span}`);
5632
5731
  if (order != null) classes.push(`order${infix}-${order}`);
5633
5732
  if (offset != null) classes.push(`offset${infix}-${offset}`);
@@ -5655,7 +5754,7 @@ const Col = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
5655
5754
  className: classnames_default()(className, !spans.length && bsPrefix)
5656
5755
  }, void 0, false, {
5657
5756
  fileName: Col_jsxFileName,
5658
- lineNumber: 179,
5757
+ lineNumber: 184,
5659
5758
  columnNumber: 7
5660
5759
  }, undefined);
5661
5760
  });
@@ -5674,7 +5773,7 @@ var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
5674
5773
  function qsa(element, selector) {
5675
5774
  return toArray(element.querySelectorAll(selector));
5676
5775
  }
5677
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useForceUpdate.js
5776
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useForceUpdate.js
5678
5777
 
5679
5778
  /**
5680
5779
  * Returns a function that triggers a component update. the hook equivalent to
@@ -5793,7 +5892,7 @@ function dequal(foo, bar) {
5793
5892
  return foo !== foo && bar !== bar;
5794
5893
  }
5795
5894
 
5796
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useSafeState.js
5895
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useSafeState.js
5797
5896
 
5798
5897
 
5799
5898
 
@@ -5848,9 +5947,13 @@ function isShadowRoot(node) {
5848
5947
  }
5849
5948
 
5850
5949
 
5950
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/math.js
5951
+ var math_max = Math.max;
5952
+ var math_min = Math.min;
5953
+ var round = Math.round;
5851
5954
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
5852
5955
 
5853
- var round = Math.round;
5956
+
5854
5957
  function getBoundingClientRect(element, includeScale) {
5855
5958
  if (includeScale === void 0) {
5856
5959
  includeScale = false;
@@ -5866,23 +5969,23 @@ function getBoundingClientRect(element, includeScale) {
5866
5969
  // Fallback to 1 in case both values are `0`
5867
5970
 
5868
5971
  if (offsetWidth > 0) {
5869
- scaleX = rect.width / offsetWidth || 1;
5972
+ scaleX = round(rect.width) / offsetWidth || 1;
5870
5973
  }
5871
5974
 
5872
5975
  if (offsetHeight > 0) {
5873
- scaleY = rect.height / offsetHeight || 1;
5976
+ scaleY = round(rect.height) / offsetHeight || 1;
5874
5977
  }
5875
5978
  }
5876
5979
 
5877
5980
  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)
5981
+ width: rect.width / scaleX,
5982
+ height: rect.height / scaleY,
5983
+ top: rect.top / scaleY,
5984
+ right: rect.right / scaleX,
5985
+ bottom: rect.bottom / scaleY,
5986
+ left: rect.left / scaleX,
5987
+ x: rect.left / scaleX,
5988
+ y: rect.top / scaleY
5886
5989
  };
5887
5990
  }
5888
5991
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
@@ -6010,6 +6113,10 @@ function getContainingBlock(element) {
6010
6113
 
6011
6114
  var currentNode = getParentNode(element);
6012
6115
 
6116
+ if (isShadowRoot(currentNode)) {
6117
+ currentNode = currentNode.host;
6118
+ }
6119
+
6013
6120
  while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
6014
6121
  var css = dom_utils_getComputedStyle_getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
6015
6122
  // create a containing block.
@@ -6045,15 +6152,15 @@ function getOffsetParent(element) {
6045
6152
  function getMainAxisFromPlacement(placement) {
6046
6153
  return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
6047
6154
  }
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
6155
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/within.js
6053
6156
 
6054
6157
  function within(min, value, max) {
6055
6158
  return math_max(min, math_min(value, max));
6056
6159
  }
6160
+ function withinMaxClamp(min, value, max) {
6161
+ var v = within(min, value, max);
6162
+ return v > max ? max : v;
6163
+ }
6057
6164
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js
6058
6165
  function getFreshSideObject() {
6059
6166
  return {
@@ -6232,8 +6339,8 @@ function roundOffsetsByDPR(_ref) {
6232
6339
  var win = window;
6233
6340
  var dpr = win.devicePixelRatio || 1;
6234
6341
  return {
6235
- x: math_round(math_round(x * dpr) / dpr) || 0,
6236
- y: math_round(math_round(y * dpr) / dpr) || 0
6342
+ x: round(x * dpr) / dpr || 0,
6343
+ y: round(y * dpr) / dpr || 0
6237
6344
  };
6238
6345
  }
6239
6346
 
@@ -6248,14 +6355,23 @@ function mapToStyles(_ref2) {
6248
6355
  position = _ref2.position,
6249
6356
  gpuAcceleration = _ref2.gpuAcceleration,
6250
6357
  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;
6358
+ roundOffsets = _ref2.roundOffsets,
6359
+ isFixed = _ref2.isFixed;
6360
+ var _offsets$x = offsets.x,
6361
+ x = _offsets$x === void 0 ? 0 : _offsets$x,
6362
+ _offsets$y = offsets.y,
6363
+ y = _offsets$y === void 0 ? 0 : _offsets$y;
6364
+
6365
+ var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
6366
+ x: x,
6367
+ y: y
6368
+ }) : {
6369
+ x: x,
6370
+ y: y
6371
+ };
6258
6372
 
6373
+ x = _ref3.x;
6374
+ y = _ref3.y;
6259
6375
  var hasX = offsets.hasOwnProperty('x');
6260
6376
  var hasY = offsets.hasOwnProperty('y');
6261
6377
  var sideX = left;
@@ -6280,16 +6396,18 @@ function mapToStyles(_ref2) {
6280
6396
  offsetParent = offsetParent;
6281
6397
 
6282
6398
  if (placement === enums_top || (placement === left || placement === right) && variation === end) {
6283
- sideY = bottom; // $FlowFixMe[prop-missing]
6284
-
6285
- y -= offsetParent[heightProp] - popperRect.height;
6399
+ sideY = bottom;
6400
+ var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
6401
+ offsetParent[heightProp];
6402
+ y -= offsetY - popperRect.height;
6286
6403
  y *= gpuAcceleration ? 1 : -1;
6287
6404
  }
6288
6405
 
6289
6406
  if (placement === left || (placement === enums_top || placement === bottom) && variation === end) {
6290
- sideX = right; // $FlowFixMe[prop-missing]
6291
-
6292
- x -= offsetParent[widthProp] - popperRect.width;
6407
+ sideX = right;
6408
+ var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
6409
+ offsetParent[widthProp];
6410
+ x -= offsetX - popperRect.width;
6293
6411
  x *= gpuAcceleration ? 1 : -1;
6294
6412
  }
6295
6413
  }
@@ -6298,6 +6416,17 @@ function mapToStyles(_ref2) {
6298
6416
  position: position
6299
6417
  }, adaptive && unsetSides);
6300
6418
 
6419
+ var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
6420
+ x: x,
6421
+ y: y
6422
+ }) : {
6423
+ x: x,
6424
+ y: y
6425
+ };
6426
+
6427
+ x = _ref4.x;
6428
+ y = _ref4.y;
6429
+
6301
6430
  if (gpuAcceleration) {
6302
6431
  var _Object$assign;
6303
6432
 
@@ -6307,9 +6436,9 @@ function mapToStyles(_ref2) {
6307
6436
  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
6308
6437
  }
6309
6438
 
6310
- function computeStyles(_ref4) {
6311
- var state = _ref4.state,
6312
- options = _ref4.options;
6439
+ function computeStyles(_ref5) {
6440
+ var state = _ref5.state,
6441
+ options = _ref5.options;
6313
6442
  var _options$gpuAccelerat = options.gpuAcceleration,
6314
6443
  gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
6315
6444
  _options$adaptive = options.adaptive,
@@ -6324,7 +6453,8 @@ function computeStyles(_ref4) {
6324
6453
  variation: getVariation(state.placement),
6325
6454
  popper: state.elements.popper,
6326
6455
  popperRect: state.rects.popper,
6327
- gpuAcceleration: gpuAcceleration
6456
+ gpuAcceleration: gpuAcceleration,
6457
+ isFixed: state.options.strategy === 'fixed'
6328
6458
  };
6329
6459
 
6330
6460
  if (state.modifiersData.popperOffsets != null) {
@@ -6620,7 +6750,7 @@ function getInnerBoundingClientRect(element) {
6620
6750
  }
6621
6751
 
6622
6752
  function getClientRectFromMixedType(element, clippingParent) {
6623
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
6753
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
6624
6754
  } // A "clipping parent" is an overflowable container with the characteristic of
6625
6755
  // clipping (or hiding) overflowing elements with a position different from
6626
6756
  // `initial`
@@ -7054,6 +7184,7 @@ function hide(_ref) {
7054
7184
  });
7055
7185
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/offset.js
7056
7186
 
7187
+ // eslint-disable-next-line import/no-unused-modules
7057
7188
 
7058
7189
  function distanceAndSkiddingToXY(placement, rects, offset) {
7059
7190
  var basePlacement = getBasePlacement(placement);
@@ -7182,6 +7313,14 @@ function preventOverflow(_ref) {
7182
7313
  var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
7183
7314
  placement: state.placement
7184
7315
  })) : tetherOffset;
7316
+ var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
7317
+ mainAxis: tetherOffsetValue,
7318
+ altAxis: tetherOffsetValue
7319
+ } : Object.assign({
7320
+ mainAxis: 0,
7321
+ altAxis: 0
7322
+ }, tetherOffsetValue);
7323
+ var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
7185
7324
  var data = {
7186
7325
  x: 0,
7187
7326
  y: 0
@@ -7191,13 +7330,15 @@ function preventOverflow(_ref) {
7191
7330
  return;
7192
7331
  }
7193
7332
 
7194
- if (checkMainAxis || checkAltAxis) {
7333
+ if (checkMainAxis) {
7334
+ var _offsetModifierState$;
7335
+
7195
7336
  var mainSide = mainAxis === 'y' ? enums_top : left;
7196
7337
  var altSide = mainAxis === 'y' ? bottom : right;
7197
7338
  var len = mainAxis === 'y' ? 'height' : 'width';
7198
7339
  var offset = popperOffsets[mainAxis];
7199
- var min = popperOffsets[mainAxis] + overflow[mainSide];
7200
- var max = popperOffsets[mainAxis] - overflow[altSide];
7340
+ var min = offset + overflow[mainSide];
7341
+ var max = offset - overflow[altSide];
7201
7342
  var additive = tether ? -popperRect[len] / 2 : 0;
7202
7343
  var minLen = variation === start ? referenceRect[len] : popperRect[len];
7203
7344
  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 +7358,45 @@ function preventOverflow(_ref) {
7217
7358
  // width or height)
7218
7359
 
7219
7360
  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;
7361
+ var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
7362
+ var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
7222
7363
  var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
7223
7364
  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;
7365
+ var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
7366
+ var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
7367
+ var tetherMax = offset + maxOffset - offsetModifierValue;
7368
+ var preventedOffset = within(tether ? math_min(min, tetherMin) : min, offset, tether ? math_max(max, tetherMax) : max);
7369
+ popperOffsets[mainAxis] = preventedOffset;
7370
+ data[mainAxis] = preventedOffset - offset;
7371
+ }
7227
7372
 
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
- }
7373
+ if (checkAltAxis) {
7374
+ var _offsetModifierState$2;
7233
7375
 
7234
- if (checkAltAxis) {
7235
- var _mainSide = mainAxis === 'x' ? enums_top : left;
7376
+ var _mainSide = mainAxis === 'x' ? enums_top : left;
7236
7377
 
7237
- var _altSide = mainAxis === 'x' ? bottom : right;
7378
+ var _altSide = mainAxis === 'x' ? bottom : right;
7238
7379
 
7239
- var _offset = popperOffsets[altAxis];
7380
+ var _offset = popperOffsets[altAxis];
7240
7381
 
7241
- var _min = _offset + overflow[_mainSide];
7382
+ var _len = altAxis === 'y' ? 'height' : 'width';
7242
7383
 
7243
- var _max = _offset - overflow[_altSide];
7384
+ var _min = _offset + overflow[_mainSide];
7244
7385
 
7245
- var _preventedOffset = within(tether ? math_min(_min, tetherMin) : _min, _offset, tether ? math_max(_max, tetherMax) : _max);
7386
+ var _max = _offset - overflow[_altSide];
7246
7387
 
7247
- popperOffsets[altAxis] = _preventedOffset;
7248
- data[altAxis] = _preventedOffset - _offset;
7249
- }
7388
+ var isOriginSide = [enums_top, left].indexOf(basePlacement) !== -1;
7389
+
7390
+ var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
7391
+
7392
+ var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
7393
+
7394
+ var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
7395
+
7396
+ var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
7397
+
7398
+ popperOffsets[altAxis] = _preventedOffset;
7399
+ data[altAxis] = _preventedOffset - _offset;
7250
7400
  }
7251
7401
 
7252
7402
  state.modifiersData[name] = data;
@@ -7288,10 +7438,11 @@ function getNodeScroll(node) {
7288
7438
 
7289
7439
 
7290
7440
 
7441
+
7291
7442
  function isElementScaled(element) {
7292
7443
  var rect = element.getBoundingClientRect();
7293
- var scaleX = rect.width / element.offsetWidth || 1;
7294
- var scaleY = rect.height / element.offsetHeight || 1;
7444
+ var scaleX = round(rect.width) / element.offsetWidth || 1;
7445
+ var scaleY = round(rect.height) / element.offsetHeight || 1;
7295
7446
  return scaleX !== 1 || scaleY !== 1;
7296
7447
  } // Returns the composite rect of an element relative to its offsetParent.
7297
7448
  // Composite means it takes into account transforms as well as layout.
@@ -7896,14 +8047,14 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
7896
8047
  preventMouseClickOutsideRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains_contains(currentTarget, e.target) || waitingForTrigger.current;
7897
8048
  waitingForTrigger.current = false;
7898
8049
  }, [ref]);
7899
- const handleInitialMouse = useEventCallback(e => {
8050
+ const handleInitialMouse = useEventCallback_useEventCallback(e => {
7900
8051
  const currentTarget = getRefTarget(ref);
7901
8052
 
7902
8053
  if (currentTarget && contains_contains(currentTarget, e.target)) {
7903
8054
  waitingForTrigger.current = true;
7904
8055
  }
7905
8056
  });
7906
- const handleMouse = useEventCallback(e => {
8057
+ const handleMouse = useEventCallback_useEventCallback(e => {
7907
8058
  if (!preventMouseClickOutsideRef.current) {
7908
8059
  onClickOutside(e);
7909
8060
  }
@@ -8147,71 +8298,71 @@ DropdownMenu.defaultProps = DropdownMenu_defaultProps;
8147
8298
 
8148
8299
  /* harmony default export */ const esm_DropdownMenu = (DropdownMenu);
8149
8300
  ;// 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
8301
+
8302
+
8303
+ function $parcel$export(e, n, v, s) {
8304
+ Object.defineProperty(e, n, {
8305
+ get: v,
8306
+ set: s,
8307
+ enumerable: true,
8308
+ configurable: true
8309
+ });
8310
+ }
8311
+
8312
+ var $704cf1d3b684cc5c$exports = {};
8313
+ $parcel$export($704cf1d3b684cc5c$exports, "SSRProvider", () => $704cf1d3b684cc5c$export$9f8ac96af4b1b2ae);
8314
+ $parcel$export($704cf1d3b684cc5c$exports, "useSSRSafeId", () => $704cf1d3b684cc5c$export$619500959fc48b26);
8315
+ $parcel$export($704cf1d3b684cc5c$exports, "useIsSSR", () => $704cf1d3b684cc5c$export$535bd6ca7f90a273); // Default context value to use in case there is no SSRProvider. This is fine for
8151
8316
  // client-only apps. In order to support multiple copies of React Aria potentially
8152
8317
  // being on the page at once, the prefix is set to a random number. SSRProvider
8153
8318
  // will reset this to zero for consistency between server and client, so in the
8154
8319
  // SSR case multiple copies of React Aria is not supported.
8155
8320
 
8156
- const $f01a183cc7bdff77849e49ad26eb904$var$defaultContext = {
8157
- prefix: Math.round(Math.random() * 10000000000),
8321
+ const $704cf1d3b684cc5c$var$defaultContext = {
8322
+ prefix: String(Math.round(Math.random() * 10000000000)),
8158
8323
  current: 0
8159
8324
  };
8325
+ const $704cf1d3b684cc5c$var$SSRContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext($704cf1d3b684cc5c$var$defaultContext);
8160
8326
 
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);
8327
+ function $704cf1d3b684cc5c$export$9f8ac96af4b1b2ae(props) {
8328
+ let cur = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
8170
8329
  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,
8330
+ // If this is the first SSRProvider, start with an empty string prefix, otherwise
8331
+ // append and increment the counter.
8332
+ prefix: cur === $704cf1d3b684cc5c$var$defaultContext ? '' : `${cur.prefix}-${++cur.current}`,
8173
8333
  current: 0
8174
8334
  }), [cur]);
8175
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement($f01a183cc7bdff77849e49ad26eb904$var$SSRContext.Provider, {
8335
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement($704cf1d3b684cc5c$var$SSRContext.Provider, {
8176
8336
  value: value
8177
8337
  }, props.children);
8178
8338
  }
8179
- let $f01a183cc7bdff77849e49ad26eb904$var$canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
8180
- /** @private */
8181
8339
 
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.
8340
+ let $704cf1d3b684cc5c$var$canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
8185
8341
 
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
- }
8342
+ function $704cf1d3b684cc5c$export$619500959fc48b26(defaultId) {
8343
+ 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,
8344
+ // provide a warning to hint to the developer to add one.
8189
8345
 
8190
- return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => defaultId || "react-aria-" + ctx.prefix + "-" + ++ctx.current, [defaultId]);
8346
+ 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.');
8347
+ return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => defaultId || `react-aria${ctx.prefix}-${++ctx.current}`, [defaultId]);
8191
8348
  }
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
8349
 
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,
8350
+ function $704cf1d3b684cc5c$export$535bd6ca7f90a273() {
8351
+ let cur = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
8352
+ let isInSSRContext = cur !== $704cf1d3b684cc5c$var$defaultContext;
8353
+ 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
8354
  // then schedule a layout effect to update the component after hydration.
8203
8355
 
8204
- if (typeof window !== 'undefined' && isInSSRContext) {
8205
- // This if statement technically breaks the rules of hooks, but is safe
8356
+ if (typeof window !== 'undefined' && isInSSRContext) // This if statement technically breaks the rules of hooks, but is safe
8206
8357
  // because the condition never changes after mounting.
8207
8358
  // eslint-disable-next-line react-hooks/rules-of-hooks
8208
- useLayoutEffect(() => {
8359
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(() => {
8209
8360
  setIsSSR(false);
8210
8361
  }, []);
8211
- }
8212
-
8213
8362
  return isSSR;
8214
8363
  }
8364
+
8365
+
8215
8366
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/DropdownToggle.js
8216
8367
 
8217
8368
 
@@ -8235,7 +8386,7 @@ const DropdownToggle_noop = () => {};
8235
8386
 
8236
8387
 
8237
8388
  function useDropdownToggle() {
8238
- const id = useSSRSafeId();
8389
+ const id = $704cf1d3b684cc5c$export$619500959fc48b26();
8239
8390
  const {
8240
8391
  show = false,
8241
8392
  toggle = DropdownToggle_noop,
@@ -8350,7 +8501,7 @@ function useDropdownItem({
8350
8501
  } = navContext || {};
8351
8502
  const eventKey = makeEventKey(key, href);
8352
8503
  const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;
8353
- const handleClick = useEventCallback(event => {
8504
+ const handleClick = useEventCallback_useEventCallback(event => {
8354
8505
  if (disabled) return;
8355
8506
  onClick == null ? void 0 : onClick(event);
8356
8507
 
@@ -8469,7 +8620,7 @@ function Dropdown({
8469
8620
  source
8470
8621
  });
8471
8622
  }, [onToggle]);
8472
- const handleSelect = useEventCallback((key, event) => {
8623
+ const handleSelect = useEventCallback_useEventCallback((key, event) => {
8473
8624
  onSelect == null ? void 0 : onSelect(key, event);
8474
8625
  toggle(false, event, 'select');
8475
8626
 
@@ -8491,12 +8642,12 @@ function Dropdown({
8491
8642
  focusInDropdown.current = menuElement.contains(menuElement.ownerDocument.activeElement);
8492
8643
  }
8493
8644
 
8494
- const focusToggle = useEventCallback(() => {
8645
+ const focusToggle = useEventCallback_useEventCallback(() => {
8495
8646
  if (toggleElement && toggleElement.focus) {
8496
8647
  toggleElement.focus();
8497
8648
  }
8498
8649
  });
8499
- const maybeFocusFirst = useEventCallback(() => {
8650
+ const maybeFocusFirst = useEventCallback_useEventCallback(() => {
8500
8651
  const type = lastSourceEvent.current;
8501
8652
  let focusType = focusFirstItemOnShow;
8502
8653
 
@@ -8698,6 +8849,22 @@ const DropdownItem_DropdownItem = /*#__PURE__*/external_root_React_commonjs2_rea
8698
8849
  DropdownItem_DropdownItem.displayName = 'DropdownItem';
8699
8850
  DropdownItem_DropdownItem.propTypes = DropdownItem_propTypes;
8700
8851
  /* harmony default export */ const src_DropdownItem = (DropdownItem_DropdownItem);
8852
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
8853
+
8854
+ var useIsomorphicEffect_isReactNative = typeof __webpack_require__.g !== 'undefined' && // @ts-ignore
8855
+ __webpack_require__.g.navigator && // @ts-ignore
8856
+ __webpack_require__.g.navigator.product === 'ReactNative';
8857
+ var useIsomorphicEffect_isDOM = typeof document !== 'undefined';
8858
+ /**
8859
+ * Is `useLayoutEffect` in a DOM or React Native environment, otherwise resolves to useEffect
8860
+ * Only useful to avoid the console warning.
8861
+ *
8862
+ * PREFER `useEffect` UNLESS YOU KNOW WHAT YOU ARE DOING.
8863
+ *
8864
+ * @category effects
8865
+ */
8866
+
8867
+ /* 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
8868
  ;// CONCATENATED MODULE: ./src/InputGroupContext.tsx
8702
8869
 
8703
8870
  const InputGroupContext_context = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -8886,7 +9053,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
8886
9053
  placement
8887
9054
  });
8888
9055
  menuProps.ref = esm_useMergedRefs(useWrappedRefWithWarning(ref, 'DropdownMenu'), menuProps.ref);
8889
- useIsomorphicEffect(() => {
9056
+ esm_useIsomorphicEffect(() => {
8890
9057
  // Popper's initial position for the menu is incorrect when
8891
9058
  // renderOnMount=true. Need to call update() to correct it.
8892
9059
  if (show) popper == null ? void 0 : popper.update();
@@ -9058,13 +9225,6 @@ const Dropdown_propTypes = {
9058
9225
  */
9059
9226
  show: (prop_types_default()).bool,
9060
9227
 
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
9228
  /**
9069
9229
  * A callback fired when the Dropdown wishes to change visibility. Called with the requested
9070
9230
  * `show` value, the DOM event, and the source that fired it: `'click'`,`'keydown'`,`'rootClose'`, or `'select'`.
@@ -9170,17 +9330,17 @@ const Dropdown_Dropdown = /*#__PURE__*/external_root_React_commonjs2_react_commo
9170
9330
  className: classnames_default()(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'end' && 'dropend', drop === 'start' && 'dropstart')
9171
9331
  }, void 0, false, {
9172
9332
  fileName: Dropdown_jsxFileName,
9173
- lineNumber: 202,
9333
+ lineNumber: 194,
9174
9334
  columnNumber: 13
9175
9335
  }, undefined)
9176
9336
  }, void 0, false, {
9177
9337
  fileName: Dropdown_jsxFileName,
9178
- lineNumber: 191,
9338
+ lineNumber: 183,
9179
9339
  columnNumber: 9
9180
9340
  }, undefined)
9181
9341
  }, void 0, false, {
9182
9342
  fileName: Dropdown_jsxFileName,
9183
- lineNumber: 190,
9343
+ lineNumber: 182,
9184
9344
  columnNumber: 7
9185
9345
  }, undefined);
9186
9346
  });
@@ -9252,6 +9412,13 @@ const DropdownButton_propTypes = {
9252
9412
  */
9253
9413
  menuVariant: prop_types_default().oneOf(['dark']),
9254
9414
 
9415
+ /**
9416
+ * Allow Dropdown to flip in case of an overlapping on the reference element. For more information refer to
9417
+ * Popper.js's flip [docs](https://popper.js.org/docs/v2/modifiers/flip/).
9418
+ *
9419
+ */
9420
+ flip: (prop_types_default()).bool,
9421
+
9255
9422
  /** @ignore */
9256
9423
  bsPrefix: (prop_types_default()).string,
9257
9424
 
@@ -9284,6 +9451,7 @@ const DropdownButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs
9284
9451
  href,
9285
9452
  id,
9286
9453
  menuVariant,
9454
+ flip,
9287
9455
  ...props
9288
9456
  }, ref) => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown, {
9289
9457
  ref: ref,
@@ -9298,22 +9466,23 @@ const DropdownButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs
9298
9466
  children: title
9299
9467
  }, void 0, false, {
9300
9468
  fileName: DropdownButton_jsxFileName,
9301
- lineNumber: 109,
9469
+ lineNumber: 118,
9302
9470
  columnNumber: 7
9303
9471
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_DropdownMenu, {
9304
9472
  role: menuRole,
9305
9473
  renderOnMount: renderMenuOnMount,
9306
9474
  rootCloseEvent: rootCloseEvent,
9307
9475
  variant: menuVariant,
9476
+ flip: flip,
9308
9477
  children: children
9309
9478
  }, void 0, false, {
9310
9479
  fileName: DropdownButton_jsxFileName,
9311
- lineNumber: 119,
9480
+ lineNumber: 128,
9312
9481
  columnNumber: 7
9313
9482
  }, undefined)]
9314
9483
  }, void 0, true, {
9315
9484
  fileName: DropdownButton_jsxFileName,
9316
- lineNumber: 108,
9485
+ lineNumber: 117,
9317
9486
  columnNumber: 5
9318
9487
  }, undefined));
9319
9488
  DropdownButton.displayName = 'DropdownButton';
@@ -9533,6 +9702,11 @@ const FormCheck_propTypes = {
9533
9702
  */
9534
9703
  inline: (prop_types_default()).bool,
9535
9704
 
9705
+ /**
9706
+ * Put your checkboxes, radios, and switches on the opposite side.
9707
+ */
9708
+ reverse: (prop_types_default()).bool,
9709
+
9536
9710
  /**
9537
9711
  * Disables the control.
9538
9712
  */
@@ -9571,6 +9745,7 @@ const FormCheck = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9571
9745
  bsPrefix,
9572
9746
  bsSwitchPrefix,
9573
9747
  inline = false,
9748
+ reverse = false,
9574
9749
  disabled = false,
9575
9750
  isValid = false,
9576
9751
  isInvalid = false,
@@ -9606,7 +9781,7 @@ const FormCheck = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9606
9781
  as: as
9607
9782
  }, void 0, false, {
9608
9783
  fileName: FormCheck_jsxFileName,
9609
- lineNumber: 161,
9784
+ lineNumber: 168,
9610
9785
  columnNumber: 9
9611
9786
  }, undefined);
9612
9787
 
@@ -9614,14 +9789,14 @@ const FormCheck = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9614
9789
  value: innerFormContext,
9615
9790
  children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
9616
9791
  style: style,
9617
- className: classnames_default()(className, hasLabel && bsPrefix, inline && `${bsPrefix}-inline`, type === 'switch' && bsSwitchPrefix),
9792
+ className: classnames_default()(className, hasLabel && bsPrefix, inline && `${bsPrefix}-inline`, reverse && `${bsPrefix}-reverse`, type === 'switch' && bsSwitchPrefix),
9618
9793
  children: children || /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(jsx_dev_runtime.Fragment, {
9619
9794
  children: [input, hasLabel && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_FormCheckLabel, {
9620
9795
  title: title,
9621
9796
  children: label
9622
9797
  }, void 0, false, {
9623
9798
  fileName: FormCheck_jsxFileName,
9624
- lineNumber: 187,
9799
+ lineNumber: 195,
9625
9800
  columnNumber: 19
9626
9801
  }, undefined), feedback && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Feedback, {
9627
9802
  type: feedbackType,
@@ -9629,18 +9804,18 @@ const FormCheck = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9629
9804
  children: feedback
9630
9805
  }, void 0, false, {
9631
9806
  fileName: FormCheck_jsxFileName,
9632
- lineNumber: 190,
9807
+ lineNumber: 198,
9633
9808
  columnNumber: 19
9634
9809
  }, undefined)]
9635
9810
  }, void 0, true)
9636
9811
  }, void 0, false, {
9637
9812
  fileName: FormCheck_jsxFileName,
9638
- lineNumber: 174,
9813
+ lineNumber: 181,
9639
9814
  columnNumber: 11
9640
9815
  }, undefined)
9641
9816
  }, void 0, false, {
9642
9817
  fileName: FormCheck_jsxFileName,
9643
- lineNumber: 173,
9818
+ lineNumber: 180,
9644
9819
  columnNumber: 9
9645
9820
  }, undefined);
9646
9821
  });
@@ -10518,6 +10693,47 @@ InputGroup.displayName = 'InputGroup';
10518
10693
  Radio: InputGroupRadio,
10519
10694
  Checkbox: InputGroupCheckbox
10520
10695
  }));
10696
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergedRefs.js
10697
+
10698
+
10699
+ var useMergedRefs_toFnRef = function toFnRef(ref) {
10700
+ return !ref || typeof ref === 'function' ? ref : function (value) {
10701
+ ref.current = value;
10702
+ };
10703
+ };
10704
+
10705
+ function useMergedRefs_mergeRefs(refA, refB) {
10706
+ var a = useMergedRefs_toFnRef(refA);
10707
+ var b = useMergedRefs_toFnRef(refB);
10708
+ return function (value) {
10709
+ if (a) a(value);
10710
+ if (b) b(value);
10711
+ };
10712
+ }
10713
+ /**
10714
+ * Create and returns a single callback ref composed from two other Refs.
10715
+ *
10716
+ * ```tsx
10717
+ * const Button = React.forwardRef((props, ref) => {
10718
+ * const [element, attachRef] = useCallbackRef<HTMLButtonElement>();
10719
+ * const mergedRef = useMergedRefs(ref, attachRef);
10720
+ *
10721
+ * return <button ref={mergedRef} {...props}/>
10722
+ * })
10723
+ * ```
10724
+ *
10725
+ * @param refA A Callback or mutable Ref
10726
+ * @param refB A Callback or mutable Ref
10727
+ * @category refs
10728
+ */
10729
+
10730
+ function useMergedRefs_useMergedRefs(refA, refB) {
10731
+ return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
10732
+ return useMergedRefs_mergeRefs(refA, refB);
10733
+ }, [refA, refB]);
10734
+ }
10735
+
10736
+ /* harmony default export */ const hooks_esm_useMergedRefs = (useMergedRefs_useMergedRefs);
10521
10737
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/TabContext.js
10522
10738
 
10523
10739
  const TabContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -10587,19 +10803,19 @@ function useNavItem({
10587
10803
  }
10588
10804
 
10589
10805
  if (props.role === 'tab') {
10590
- if (disabled) {
10806
+ props['aria-selected'] = isActive;
10807
+
10808
+ if (!isActive) {
10591
10809
  props.tabIndex = -1;
10592
- props['aria-disabled'] = true;
10593
10810
  }
10594
10811
 
10595
- if (isActive) {
10596
- props['aria-selected'] = isActive;
10597
- } else {
10812
+ if (disabled) {
10598
10813
  props.tabIndex = -1;
10814
+ props['aria-disabled'] = true;
10599
10815
  }
10600
10816
  }
10601
10817
 
10602
- props.onClick = useEventCallback(e => {
10818
+ props.onClick = useEventCallback_useEventCallback(e => {
10603
10819
  if (disabled) return;
10604
10820
  onClick == null ? void 0 : onClick(e);
10605
10821
 
@@ -10756,7 +10972,7 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
10756
10972
 
10757
10973
  needsRefocusRef.current = false;
10758
10974
  });
10759
- const mergedRef = esm_useMergedRefs(ref, listNode);
10975
+ const mergedRef = hooks_esm_useMergedRefs(ref, listNode);
10760
10976
  return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_SelectableContext.Provider, {
10761
10977
  value: handleSelect,
10762
10978
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_NavContext.Provider, {
@@ -10977,6 +11193,36 @@ function scrollbarSize(recalc) {
10977
11193
 
10978
11194
  return size;
10979
11195
  }
11196
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
11197
+
11198
+ /**
11199
+ * A convenience hook around `useState` designed to be paired with
11200
+ * the component [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) api.
11201
+ * Callback refs are useful over `useRef()` when you need to respond to the ref being set
11202
+ * instead of lazily accessing it in an effect.
11203
+ *
11204
+ * ```ts
11205
+ * const [element, attachRef] = useCallbackRef<HTMLDivElement>()
11206
+ *
11207
+ * useEffect(() => {
11208
+ * if (!element) return
11209
+ *
11210
+ * const calendar = new FullCalendar.Calendar(element)
11211
+ *
11212
+ * return () => {
11213
+ * calendar.destroy()
11214
+ * }
11215
+ * }, [element])
11216
+ *
11217
+ * return <div ref={attachRef} />
11218
+ * ```
11219
+ *
11220
+ * @category refs
11221
+ */
11222
+
11223
+ function useCallbackRef_useCallbackRef() {
11224
+ return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
11225
+ }
10980
11226
  ;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/activeElement.js
10981
11227
 
10982
11228
  /**
@@ -11003,6 +11249,38 @@ function activeElement(doc) {
11003
11249
  return doc.body;
11004
11250
  }
11005
11251
  }
11252
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useUpdatedRef.js
11253
+
11254
+ /**
11255
+ * Returns a ref that is immediately updated with the new value
11256
+ *
11257
+ * @param value The Ref value
11258
+ * @category refs
11259
+ */
11260
+
11261
+ function useUpdatedRef_useUpdatedRef(value) {
11262
+ var valueRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
11263
+ valueRef.current = value;
11264
+ return valueRef;
11265
+ }
11266
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useWillUnmount.js
11267
+
11268
+
11269
+ /**
11270
+ * Attach a callback that fires when a component unmounts
11271
+ *
11272
+ * @param fn Handler to run when the component unmounts
11273
+ * @category effects
11274
+ */
11275
+
11276
+ function useWillUnmount_useWillUnmount(fn) {
11277
+ var onUnmount = useUpdatedRef_useUpdatedRef(fn);
11278
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
11279
+ return function () {
11280
+ return onUnmount.current();
11281
+ };
11282
+ }, []);
11283
+ }
11006
11284
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/getScrollbarWidth.js
11007
11285
  /**
11008
11286
  * Get the width of the vertical window scrollbar if it's visible
@@ -11285,7 +11563,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11285
11563
  setExited(false);
11286
11564
  }
11287
11565
 
11288
- const handleShow = useEventCallback(() => {
11566
+ const handleShow = useEventCallback_useEventCallback(() => {
11289
11567
  modal.add();
11290
11568
  removeKeydownListenerRef.current = esm_listen(document, 'keydown', handleDocumentKeyDown);
11291
11569
  removeFocusListenerRef.current = esm_listen(document, 'focus', // the timeout is necessary b/c this will run before the new modal is mounted
@@ -11307,7 +11585,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11307
11585
  }
11308
11586
  }
11309
11587
  });
11310
- const handleHide = useEventCallback(() => {
11588
+ const handleHide = useEventCallback_useEventCallback(() => {
11311
11589
  modal.remove();
11312
11590
  removeKeydownListenerRef.current == null ? void 0 : removeKeydownListenerRef.current();
11313
11591
  removeFocusListenerRef.current == null ? void 0 : removeFocusListenerRef.current();
@@ -11336,11 +11614,11 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11336
11614
  if (!exited) return;
11337
11615
  handleHide();
11338
11616
  }, [exited, handleHide]);
11339
- useWillUnmount(() => {
11617
+ useWillUnmount_useWillUnmount(() => {
11340
11618
  handleHide();
11341
11619
  }); // --------------------------------
11342
11620
 
11343
- const handleEnforceFocus = useEventCallback(() => {
11621
+ const handleEnforceFocus = useEventCallback_useEventCallback(() => {
11344
11622
  if (!enforceFocus || !isMounted() || !modal.isTopModal()) {
11345
11623
  return;
11346
11624
  }
@@ -11351,7 +11629,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11351
11629
  modal.dialog.focus();
11352
11630
  }
11353
11631
  });
11354
- const handleBackdropClick = useEventCallback(e => {
11632
+ const handleBackdropClick = useEventCallback_useEventCallback(e => {
11355
11633
  if (e.target !== e.currentTarget) {
11356
11634
  return;
11357
11635
  }
@@ -11362,7 +11640,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11362
11640
  onHide();
11363
11641
  }
11364
11642
  });
11365
- const handleDocumentKeyDown = useEventCallback(e => {
11643
+ const handleDocumentKeyDown = useEventCallback_useEventCallback(e => {
11366
11644
  if (keyboard && e.keyCode === 27 && modal.isTopModal()) {
11367
11645
  onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);
11368
11646
 
@@ -11579,7 +11857,7 @@ const ModalDialog_propTypes = {
11579
11857
  /**
11580
11858
  * Render a large, extra large or small modal.
11581
11859
  *
11582
- * @type ('sm'|'lg','xl')
11860
+ * @type ('sm'|'lg'|'xl')
11583
11861
  */
11584
11862
  size: (prop_types_default()).string,
11585
11863
 
@@ -12045,7 +12323,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12045
12323
  const waitingForMouseUpRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12046
12324
  const ignoreBackdropClickRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12047
12325
  const removeStaticModalAnimationRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
12048
- const [modal, setModalRef] = useCallbackRef();
12326
+ const [modal, setModalRef] = useCallbackRef_useCallbackRef();
12049
12327
  const mergedRef = esm_useMergedRefs(ref, setModalRef);
12050
12328
  const handleHide = useEventCallback(onHide);
12051
12329
  const isRTL = useIsRTL();
@@ -12701,7 +12979,7 @@ function useMediaQuery(query, targetWindow) {
12701
12979
  matches = _useState[0],
12702
12980
  setMatches = _useState[1];
12703
12981
 
12704
- useIsomorphicEffect(function () {
12982
+ esm_useIsomorphicEffect(function () {
12705
12983
  var mql = getMatcher(query, targetWindow);
12706
12984
 
12707
12985
  if (!mql) {
@@ -13041,6 +13319,8 @@ var Offcanvas_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstra
13041
13319
 
13042
13320
 
13043
13321
 
13322
+
13323
+
13044
13324
  const Offcanvas_propTypes = {
13045
13325
  /**
13046
13326
  * @default 'offcanvas'
@@ -13048,9 +13328,10 @@ const Offcanvas_propTypes = {
13048
13328
  bsPrefix: (prop_types_default()).string,
13049
13329
 
13050
13330
  /**
13051
- * Include a backdrop component.
13331
+ * Include a backdrop component. Specify 'static' for a backdrop that doesn't
13332
+ * trigger an "onHide" when clicked.
13052
13333
  */
13053
- backdrop: (prop_types_default()).bool,
13334
+ backdrop: prop_types_default().oneOf(['static', true, false]),
13054
13335
 
13055
13336
  /**
13056
13337
  * Add an optional extra class name to .offcanvas-backdrop.
@@ -13072,6 +13353,12 @@ const Offcanvas_propTypes = {
13072
13353
  */
13073
13354
  placement: prop_types_default().oneOf(['start', 'end', 'top', 'bottom']),
13074
13355
 
13356
+ /**
13357
+ * Hide content outside the viewport from a specified breakpoint and down.
13358
+ * @type {("sm"|"md"|"lg"|"xl"|"xxl")}
13359
+ */
13360
+ responsive: (prop_types_default()).string,
13361
+
13075
13362
  /**
13076
13363
  * When `true` The offcanvas will automatically shift focus to itself when it
13077
13364
  * opens, and replace it to the last focused element when it closes.
@@ -13157,6 +13444,13 @@ const Offcanvas_propTypes = {
13157
13444
  * @private
13158
13445
  */
13159
13446
  container: (prop_types_default()).any,
13447
+
13448
+ /**
13449
+ * For internal use to render static node from NavbarOffcanvas.
13450
+ *
13451
+ * @private
13452
+ */
13453
+ renderStaticNode: (prop_types_default()).bool,
13160
13454
  'aria-labelledby': (prop_types_default()).string
13161
13455
  };
13162
13456
  const Offcanvas_defaultProps = {
@@ -13167,14 +13461,15 @@ const Offcanvas_defaultProps = {
13167
13461
  autoFocus: true,
13168
13462
  enforceFocus: true,
13169
13463
  restoreFocus: true,
13170
- placement: 'start'
13464
+ placement: 'start',
13465
+ renderStaticNode: false
13171
13466
  };
13172
13467
 
13173
13468
  function Offcanvas_DialogTransition(props) {
13174
13469
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_OffcanvasToggling, { ...props
13175
13470
  }, void 0, false, {
13176
13471
  fileName: Offcanvas_jsxFileName,
13177
- lineNumber: 178,
13472
+ lineNumber: 203,
13178
13473
  columnNumber: 10
13179
13474
  }, this);
13180
13475
  }
@@ -13183,7 +13478,7 @@ function Offcanvas_BackdropTransition(props) {
13183
13478
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Fade, { ...props
13184
13479
  }, void 0, false, {
13185
13480
  fileName: Offcanvas_jsxFileName,
13186
- lineNumber: 182,
13481
+ lineNumber: 207,
13187
13482
  columnNumber: 10
13188
13483
  }, this);
13189
13484
  }
@@ -13194,6 +13489,7 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
13194
13489
  children,
13195
13490
  'aria-labelledby': ariaLabelledby,
13196
13491
  placement,
13492
+ responsive,
13197
13493
 
13198
13494
  /* BaseModal props */
13199
13495
  show,
@@ -13216,6 +13512,7 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
13216
13512
  onExited,
13217
13513
  backdropClassName,
13218
13514
  manager: propsManager,
13515
+ renderStaticNode,
13219
13516
  ...props
13220
13517
  }, ref) => {
13221
13518
  const modalManager = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
@@ -13223,6 +13520,13 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
13223
13520
  const {
13224
13521
  onToggle
13225
13522
  } = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(NavbarContext) || {};
13523
+ const [showOffcanvas, setShowOffcanvas] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
13524
+ const hideResponsiveOffcanvas = esm_useBreakpoint(responsive || 'xs', 'up');
13525
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
13526
+ // Handles the case where screen is resized while the responsive
13527
+ // offcanvas is shown. If `responsive` not provided, just use `show`.
13528
+ setShowOffcanvas(responsive ? show && !hideResponsiveOffcanvas : show);
13529
+ }, [show, responsive, hideResponsiveOffcanvas]);
13226
13530
  const handleHide = useEventCallback(() => {
13227
13531
  onToggle == null ? void 0 : onToggle();
13228
13532
  onHide == null ? void 0 : onHide();
@@ -13260,59 +13564,59 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
13260
13564
  className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName)
13261
13565
  }, void 0, false, {
13262
13566
  fileName: Offcanvas_jsxFileName,
13263
- lineNumber: 264,
13567
+ lineNumber: 303,
13264
13568
  columnNumber: 11
13265
13569
  }, undefined), [backdropClassName, bsPrefix]);
13266
13570
 
13267
- const renderDialog = dialogProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
13268
- role: "dialog",
13269
- ...dialogProps,
13571
+ const renderDialog = dialogProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", { ...dialogProps,
13270
13572
  ...props,
13271
- className: classnames_default()(className, bsPrefix, `${bsPrefix}-${placement}`),
13573
+ className: classnames_default()(className, responsive ? `${bsPrefix}-${responsive}` : bsPrefix, `${bsPrefix}-${placement}`),
13272
13574
  "aria-labelledby": ariaLabelledby,
13273
13575
  children: children
13274
13576
  }, void 0, false, {
13275
13577
  fileName: Offcanvas_jsxFileName,
13276
- lineNumber: 273,
13578
+ lineNumber: 312,
13277
13579
  columnNumber: 9
13278
13580
  }, undefined);
13279
13581
 
13280
- return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_ModalContext.Provider, {
13281
- value: modalContext,
13282
- children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Modal, {
13283
- show: show,
13284
- ref: ref,
13285
- backdrop: backdrop,
13286
- container: container,
13287
- keyboard: keyboard,
13288
- autoFocus: autoFocus,
13289
- enforceFocus: enforceFocus && !scroll,
13290
- restoreFocus: restoreFocus,
13291
- restoreFocusOptions: restoreFocusOptions,
13292
- onEscapeKeyDown: onEscapeKeyDown,
13293
- onShow: onShow,
13294
- onHide: handleHide,
13295
- onEnter: handleEnter,
13296
- onEntering: onEntering,
13297
- onEntered: onEntered,
13298
- onExit: onExit,
13299
- onExiting: onExiting,
13300
- onExited: handleExited,
13301
- manager: getModalManager(),
13302
- transition: Offcanvas_DialogTransition,
13303
- backdropTransition: Offcanvas_BackdropTransition,
13304
- renderBackdrop: renderBackdrop,
13305
- renderDialog: renderDialog
13582
+ return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(jsx_dev_runtime.Fragment, {
13583
+ children: [!showOffcanvas && (responsive || renderStaticNode) && renderDialog({}), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_ModalContext.Provider, {
13584
+ value: modalContext,
13585
+ children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Modal, {
13586
+ show: showOffcanvas,
13587
+ ref: ref,
13588
+ backdrop: backdrop,
13589
+ container: container,
13590
+ keyboard: keyboard,
13591
+ autoFocus: autoFocus,
13592
+ enforceFocus: enforceFocus && !scroll,
13593
+ restoreFocus: restoreFocus,
13594
+ restoreFocusOptions: restoreFocusOptions,
13595
+ onEscapeKeyDown: onEscapeKeyDown,
13596
+ onShow: onShow,
13597
+ onHide: handleHide,
13598
+ onEnter: handleEnter,
13599
+ onEntering: onEntering,
13600
+ onEntered: onEntered,
13601
+ onExit: onExit,
13602
+ onExiting: onExiting,
13603
+ onExited: handleExited,
13604
+ manager: getModalManager(),
13605
+ transition: Offcanvas_DialogTransition,
13606
+ backdropTransition: Offcanvas_BackdropTransition,
13607
+ renderBackdrop: renderBackdrop,
13608
+ renderDialog: renderDialog
13609
+ }, void 0, false, {
13610
+ fileName: Offcanvas_jsxFileName,
13611
+ lineNumber: 340,
13612
+ columnNumber: 13
13613
+ }, undefined)
13306
13614
  }, void 0, false, {
13307
13615
  fileName: Offcanvas_jsxFileName,
13308
- lineNumber: 290,
13616
+ lineNumber: 339,
13309
13617
  columnNumber: 11
13310
- }, undefined)
13311
- }, void 0, false, {
13312
- fileName: Offcanvas_jsxFileName,
13313
- lineNumber: 289,
13314
- columnNumber: 9
13315
- }, undefined);
13618
+ }, undefined)]
13619
+ }, void 0, true);
13316
13620
  });
13317
13621
  Offcanvas.displayName = 'Offcanvas';
13318
13622
  Offcanvas.propTypes = Offcanvas_propTypes;
@@ -13329,70 +13633,16 @@ var NavbarOffcanvas_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bo
13329
13633
 
13330
13634
 
13331
13635
 
13332
-
13333
-
13334
-
13335
- const NavbarOffcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
13336
- className,
13337
- bsPrefix,
13338
- backdrop,
13339
- backdropClassName,
13340
- keyboard,
13341
- scroll,
13342
- placement,
13343
- autoFocus,
13344
- enforceFocus,
13345
- restoreFocus,
13346
- restoreFocusOptions,
13347
- onShow,
13348
- onHide,
13349
- onEscapeKeyDown,
13350
- onEnter,
13351
- onEntering,
13352
- onEntered,
13353
- onExit,
13354
- onExiting,
13355
- onExited,
13356
- ...props
13357
- }, ref) => {
13636
+ const NavbarOffcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((props, ref) => {
13358
13637
  const context = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(NavbarContext);
13359
- bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas');
13360
- const hasExpandProp = typeof (context == null ? void 0 : context.expand) === 'string';
13361
- const shouldExpand = esm_useBreakpoint(hasExpandProp ? context.expand : 'xs', 'up');
13362
- return hasExpandProp && shouldExpand ? /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
13363
- ref: ref,
13364
- ...props,
13365
- className: classnames_default()(className, bsPrefix, `${bsPrefix}-${placement}`)
13366
- }, void 0, false, {
13367
- fileName: NavbarOffcanvas_jsxFileName,
13368
- lineNumber: 47,
13369
- columnNumber: 7
13370
- }, undefined) : /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Offcanvas, {
13638
+ return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Offcanvas, {
13371
13639
  ref: ref,
13372
13640
  show: !!(context != null && context.expanded),
13373
- bsPrefix: bsPrefix,
13374
- backdrop: backdrop,
13375
- backdropClassName: backdropClassName,
13376
- keyboard: keyboard,
13377
- scroll: scroll,
13378
- placement: placement,
13379
- autoFocus: autoFocus,
13380
- enforceFocus: enforceFocus,
13381
- restoreFocus: restoreFocus,
13382
- restoreFocusOptions: restoreFocusOptions,
13383
- onShow: onShow,
13384
- onHide: onHide,
13385
- onEscapeKeyDown: onEscapeKeyDown,
13386
- onEnter: onEnter,
13387
- onEntering: onEntering,
13388
- onEntered: onEntered,
13389
- onExit: onExit,
13390
- onExiting: onExiting,
13391
- onExited: onExited,
13392
- ...props
13641
+ ...props,
13642
+ renderStaticNode: true
13393
13643
  }, void 0, false, {
13394
13644
  fileName: NavbarOffcanvas_jsxFileName,
13395
- lineNumber: 53,
13645
+ lineNumber: 13,
13396
13646
  columnNumber: 7
13397
13647
  }, undefined);
13398
13648
  });
@@ -13741,7 +13991,7 @@ function useRootClose(ref, onRootClose, {
13741
13991
  disabled,
13742
13992
  clickTrigger
13743
13993
  });
13744
- const handleKeyUp = useEventCallback(e => {
13994
+ const handleKeyUp = useEventCallback_useEventCallback(e => {
13745
13995
  if (e.keyCode === escapeKeyCode) {
13746
13996
  onClose(e);
13747
13997
  }
@@ -13795,7 +14045,7 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
13795
14045
  } = props;
13796
14046
  const [rootElement, attachRef] = useCallbackRef();
13797
14047
  const [arrowElement, attachArrowRef] = useCallbackRef();
13798
- const mergedRef = esm_useMergedRefs(attachRef, outerRef);
14048
+ const mergedRef = hooks_esm_useMergedRefs(attachRef, outerRef);
13799
14049
  const container = useWaitForDOMRef(props.container);
13800
14050
  const target = useWaitForDOMRef(props.target);
13801
14051
  const [exited, setExited] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(!props.show);
@@ -14038,6 +14288,9 @@ var Overlay_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/
14038
14288
 
14039
14289
 
14040
14290
 
14291
+
14292
+
14293
+
14041
14294
  const Overlay_propTypes = {
14042
14295
  /**
14043
14296
  * A component instance, DOM node, or function that returns either.
@@ -14145,13 +14398,24 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
14145
14398
  ...outerProps
14146
14399
  }, outerRef) => {
14147
14400
  const popperRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({});
14401
+ const [firstRenderedState, setFirstRenderedState] = useCallbackRef_useCallbackRef();
14148
14402
  const [ref, modifiers] = useOverlayOffset(outerProps.offset);
14149
14403
  const mergedRef = esm_useMergedRefs(outerRef, ref);
14150
14404
  const actualTransition = transition === true ? src_Fade : transition || undefined;
14405
+ const handleFirstUpdate = useEventCallback(state => {
14406
+ setFirstRenderedState(state);
14407
+ popperConfig == null ? void 0 : popperConfig.onFirstUpdate == null ? void 0 : popperConfig.onFirstUpdate(state);
14408
+ });
14409
+ esm_useIsomorphicEffect(() => {
14410
+ if (firstRenderedState) {
14411
+ popperRef.current.scheduleUpdate == null ? void 0 : popperRef.current.scheduleUpdate();
14412
+ }
14413
+ }, [firstRenderedState]);
14151
14414
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Overlay, { ...outerProps,
14152
14415
  ref: mergedRef,
14153
14416
  popperConfig: { ...popperConfig,
14154
- modifiers: modifiers.concat(popperConfig.modifiers || [])
14417
+ modifiers: modifiers.concat(popperConfig.modifiers || []),
14418
+ onFirstUpdate: handleFirstUpdate
14155
14419
  },
14156
14420
  transition: actualTransition,
14157
14421
  children: (overlayProps, {
@@ -14191,7 +14455,7 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
14191
14455
  }
14192
14456
  }, void 0, false, {
14193
14457
  fileName: Overlay_jsxFileName,
14194
- lineNumber: 173,
14458
+ lineNumber: 184,
14195
14459
  columnNumber: 7
14196
14460
  }, undefined);
14197
14461
  });
@@ -14243,6 +14507,8 @@ const OverlayTrigger_propTypes = {
14243
14507
  /**
14244
14508
  * Specify which action or actions trigger Overlay visibility
14245
14509
  *
14510
+ * The `click` trigger ignores the configured `delay`.
14511
+ *
14246
14512
  * @type {'hover' | 'click' |'focus' | Array<'hover' | 'click' |'focus'>}
14247
14513
  */
14248
14514
  trigger: prop_types_default().oneOfType([triggerType, prop_types_default().arrayOf(triggerType)]),
@@ -14420,7 +14686,7 @@ function OverlayTrigger({
14420
14686
  children: overlay
14421
14687
  }, void 0, false, {
14422
14688
  fileName: OverlayTrigger_jsxFileName,
14423
- lineNumber: 300,
14689
+ lineNumber: 302,
14424
14690
  columnNumber: 7
14425
14691
  }, this)]
14426
14692
  }, void 0, true);
@@ -15062,6 +15328,7 @@ const Row = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
15062
15328
  }, ref) => {
15063
15329
  const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
15064
15330
  const breakpoints = useBootstrapBreakpoints();
15331
+ const minBreakpoint = useBootstrapMinBreakpoint();
15065
15332
  const sizePrefix = `${decoratedBsPrefix}-cols`;
15066
15333
  const classes = [];
15067
15334
  breakpoints.forEach(brkPoint => {
@@ -15077,7 +15344,7 @@ const Row = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
15077
15344
  cols = propValue;
15078
15345
  }
15079
15346
 
15080
- const infix = brkPoint !== 'xs' ? `-${brkPoint}` : '';
15347
+ const infix = brkPoint !== minBreakpoint ? `-${brkPoint}` : '';
15081
15348
  if (cols != null) classes.push(`${sizePrefix}${infix}-${cols}`);
15082
15349
  });
15083
15350
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
@@ -15086,7 +15353,7 @@ const Row = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
15086
15353
  className: classnames_default()(className, decoratedBsPrefix, ...classes)
15087
15354
  }, void 0, false, {
15088
15355
  fileName: Row_jsxFileName,
15089
- lineNumber: 141,
15356
+ lineNumber: 146,
15090
15357
  columnNumber: 7
15091
15358
  }, undefined);
15092
15359
  });
@@ -15230,6 +15497,13 @@ const SplitButton_propTypes = {
15230
15497
  */
15231
15498
  rootCloseEvent: (prop_types_default()).string,
15232
15499
 
15500
+ /**
15501
+ * Allow Dropdown to flip in case of an overlapping on the reference element. For more information refer to
15502
+ * Popper.js's flip [docs](https://popper.js.org/docs/v2/modifiers/flip/).
15503
+ *
15504
+ */
15505
+ flip: (prop_types_default()).bool,
15506
+
15233
15507
  /** @ignore */
15234
15508
  bsPrefix: (prop_types_default()).string,
15235
15509
 
@@ -15269,6 +15543,7 @@ const SplitButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
15269
15543
  menuRole,
15270
15544
  renderMenuOnMount,
15271
15545
  rootCloseEvent,
15546
+ flip,
15272
15547
  ...props
15273
15548
  }, ref) => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown, {
15274
15549
  ref: ref,
@@ -15286,7 +15561,7 @@ const SplitButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
15286
15561
  children: title
15287
15562
  }, void 0, false, {
15288
15563
  fileName: SplitButton_jsxFileName,
15289
- lineNumber: 122,
15564
+ lineNumber: 131,
15290
15565
  columnNumber: 7
15291
15566
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Toggle, {
15292
15567
  split: true,
@@ -15300,26 +15575,27 @@ const SplitButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
15300
15575
  children: toggleLabel
15301
15576
  }, void 0, false, {
15302
15577
  fileName: SplitButton_jsxFileName,
15303
- lineNumber: 142,
15578
+ lineNumber: 151,
15304
15579
  columnNumber: 9
15305
15580
  }, undefined)
15306
15581
  }, void 0, false, {
15307
15582
  fileName: SplitButton_jsxFileName,
15308
- lineNumber: 134,
15583
+ lineNumber: 143,
15309
15584
  columnNumber: 7
15310
15585
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Menu, {
15311
15586
  role: menuRole,
15312
15587
  renderOnMount: renderMenuOnMount,
15313
15588
  rootCloseEvent: rootCloseEvent,
15589
+ flip: flip,
15314
15590
  children: children
15315
15591
  }, void 0, false, {
15316
15592
  fileName: SplitButton_jsxFileName,
15317
- lineNumber: 145,
15593
+ lineNumber: 154,
15318
15594
  columnNumber: 7
15319
15595
  }, undefined)]
15320
15596
  }, void 0, true, {
15321
15597
  fileName: SplitButton_jsxFileName,
15322
- lineNumber: 121,
15598
+ lineNumber: 130,
15323
15599
  columnNumber: 5
15324
15600
  }, undefined));
15325
15601
  SplitButton.propTypes = SplitButton_propTypes;
@@ -15328,7 +15604,7 @@ SplitButton.displayName = 'SplitButton';
15328
15604
  /* harmony default export */ const src_SplitButton = (SplitButton);
15329
15605
  ;// CONCATENATED MODULE: ./src/SSRProvider.ts
15330
15606
 
15331
- /* harmony default export */ const src_SSRProvider = (SSRProvider);
15607
+ /* harmony default export */ const SSRProvider = ($704cf1d3b684cc5c$export$9f8ac96af4b1b2ae);
15332
15608
  ;// CONCATENATED MODULE: ./src/createUtilityClasses.ts
15333
15609
 
15334
15610
 
@@ -15342,7 +15618,7 @@ function responsivePropType(propType) {
15342
15618
  xxl: propType
15343
15619
  })]);
15344
15620
  }
15345
- function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS) {
15621
+ function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS, minBreakpoint = DEFAULT_MIN_BREAKPOINT) {
15346
15622
  const classes = [];
15347
15623
  Object.entries(utilityValues).forEach(([utilName, utilValue]) => {
15348
15624
  if (utilValue != null) {
@@ -15351,7 +15627,7 @@ function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS
15351
15627
  const bpValue = utilValue[brkPoint];
15352
15628
 
15353
15629
  if (bpValue != null) {
15354
- const infix = brkPoint !== 'xs' ? `-${brkPoint}` : '';
15630
+ const infix = brkPoint !== minBreakpoint ? `-${brkPoint}` : '';
15355
15631
  classes.push(`${utilName}${infix}-${bpValue}`);
15356
15632
  }
15357
15633
  });
@@ -15397,15 +15673,17 @@ const Stack = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
15397
15673
  }, ref) => {
15398
15674
  bsPrefix = useBootstrapPrefix(bsPrefix, direction === 'horizontal' ? 'hstack' : 'vstack');
15399
15675
  const breakpoints = useBootstrapBreakpoints();
15676
+ const minBreakpoint = useBootstrapMinBreakpoint();
15400
15677
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, { ...props,
15401
15678
  ref: ref,
15402
15679
  className: classnames_default()(className, bsPrefix, ...createUtilityClassName({
15403
15680
  gap,
15404
- breakpoints
15681
+ breakpoints,
15682
+ minBreakpoint
15405
15683
  }))
15406
15684
  }, void 0, false, {
15407
15685
  fileName: Stack_jsxFileName,
15408
- lineNumber: 52,
15686
+ lineNumber: 57,
15409
15687
  columnNumber: 9
15410
15688
  }, undefined);
15411
15689
  });
@@ -15598,7 +15876,7 @@ const Tabs = props => {
15598
15876
  children
15599
15877
  } = props;
15600
15878
  const [activeKey, onSelect] = useUncontrolledProp(propsActiveKey, defaultActiveKey, propsOnSelect);
15601
- const id = useSSRSafeId(userId);
15879
+ const id = $704cf1d3b684cc5c$export$619500959fc48b26(userId);
15602
15880
  const generateChildId = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => generateCustomChildId || ((key, type) => id ? `${id}-${type}-${key}` : null), [id, generateCustomChildId]);
15603
15881
  const tabContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
15604
15882
  onSelect,
@@ -15923,8 +16201,9 @@ const Table_propTypes = {
15923
16201
 
15924
16202
  /**
15925
16203
  * Adds zebra-striping to any table row within the `<tbody>`.
16204
+ * Use `columns` to add zebra-striping to any table column.
15926
16205
  */
15927
- striped: (prop_types_default()).bool,
16206
+ striped: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string]),
15928
16207
 
15929
16208
  /**
15930
16209
  * Adds borders on all sides of the table and cells.
@@ -15977,14 +16256,14 @@ const Table = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
15977
16256
  ...props
15978
16257
  }, ref) => {
15979
16258
  const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
15980
- const classes = classnames_default()(className, decoratedBsPrefix, variant && `${decoratedBsPrefix}-${variant}`, size && `${decoratedBsPrefix}-${size}`, striped && `${decoratedBsPrefix}-striped`, bordered && `${decoratedBsPrefix}-bordered`, borderless && `${decoratedBsPrefix}-borderless`, hover && `${decoratedBsPrefix}-hover`);
16259
+ 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`);
15981
16260
 
15982
16261
  const table = /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("table", { ...props,
15983
16262
  className: classes,
15984
16263
  ref: ref
15985
16264
  }, void 0, false, {
15986
16265
  fileName: Table_jsxFileName,
15987
- lineNumber: 98,
16266
+ lineNumber: 103,
15988
16267
  columnNumber: 19
15989
16268
  }, undefined);
15990
16269
 
@@ -16000,7 +16279,7 @@ const Table = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
16000
16279
  children: table
16001
16280
  }, void 0, false, {
16002
16281
  fileName: Table_jsxFileName,
16003
- lineNumber: 105,
16282
+ lineNumber: 110,
16004
16283
  columnNumber: 14
16005
16284
  }, undefined);
16006
16285
  }
@@ -16082,7 +16361,17 @@ const Tabs_propTypes = {
16082
16361
  /**
16083
16362
  * Unmount tabs (remove it from the DOM) when it is no longer visible
16084
16363
  */
16085
- unmountOnExit: (prop_types_default()).bool
16364
+ unmountOnExit: (prop_types_default()).bool,
16365
+
16366
+ /**
16367
+ * Have all `Tabs`s proportionately fill all available width.
16368
+ */
16369
+ fill: (prop_types_default()).bool,
16370
+
16371
+ /**
16372
+ * Have all `Tab`s evenly fill all available width.
16373
+ */
16374
+ justify: (prop_types_default()).bool
16086
16375
  };
16087
16376
  const Tabs_defaultProps = {
16088
16377
  variant: 'tabs',
@@ -16128,12 +16417,12 @@ function renderTab(child) {
16128
16417
  children: title
16129
16418
  }, void 0, false, {
16130
16419
  fileName: Tabs_jsxFileName,
16131
- lineNumber: 112,
16420
+ lineNumber: 122,
16132
16421
  columnNumber: 7
16133
16422
  }, this)
16134
16423
  }, void 0, false, {
16135
16424
  fileName: Tabs_jsxFileName,
16136
- lineNumber: 111,
16425
+ lineNumber: 121,
16137
16426
  columnNumber: 5
16138
16427
  }, this);
16139
16428
  }
@@ -16164,7 +16453,7 @@ const Tabs_Tabs = props => {
16164
16453
  children: map(children, renderTab)
16165
16454
  }, void 0, false, {
16166
16455
  fileName: Tabs_jsxFileName,
16167
- lineNumber: 150,
16456
+ lineNumber: 160,
16168
16457
  columnNumber: 7
16169
16458
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(TabContent, {
16170
16459
  children: map(children, child => {
@@ -16177,18 +16466,18 @@ const Tabs_Tabs = props => {
16177
16466
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_TabPane, { ...childProps
16178
16467
  }, void 0, false, {
16179
16468
  fileName: Tabs_jsxFileName,
16180
- lineNumber: 163,
16469
+ lineNumber: 173,
16181
16470
  columnNumber: 18
16182
16471
  }, undefined);
16183
16472
  })
16184
16473
  }, void 0, false, {
16185
16474
  fileName: Tabs_jsxFileName,
16186
- lineNumber: 154,
16475
+ lineNumber: 164,
16187
16476
  columnNumber: 7
16188
16477
  }, undefined)]
16189
16478
  }, void 0, true, {
16190
16479
  fileName: Tabs_jsxFileName,
16191
- lineNumber: 142,
16480
+ lineNumber: 152,
16192
16481
  columnNumber: 5
16193
16482
  }, undefined);
16194
16483
  };
@@ -16675,7 +16964,7 @@ const ToggleButtonGroup = /*#__PURE__*/external_root_React_commonjs2_react_commo
16675
16964
  const isActive = values.indexOf(inputVal) !== -1;
16676
16965
 
16677
16966
  if (type === 'radio') {
16678
- if (!isActive && onChange) onChange(inputVal, event);
16967
+ if (!isActive) onChange(inputVal, event);
16679
16968
  return;
16680
16969
  }
16681
16970