react-bootstrap 2.10.6 → 2.10.8

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.
@@ -2582,12 +2582,12 @@ const AccordionCollapse = /*#__PURE__*/external_root_React_commonjs2_react_commo
2582
2582
  children: external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.only(children)
2583
2583
  }, void 0, false, {
2584
2584
  fileName: AccordionCollapse_jsxFileName,
2585
- lineNumber: 56,
2585
+ lineNumber: 59,
2586
2586
  columnNumber: 9
2587
2587
  }, undefined)
2588
2588
  }, void 0, false, {
2589
2589
  fileName: AccordionCollapse_jsxFileName,
2590
- lineNumber: 50,
2590
+ lineNumber: 53,
2591
2591
  columnNumber: 7
2592
2592
  }, undefined);
2593
2593
  });
@@ -3023,7 +3023,7 @@ const AlertHeading = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_r
3023
3023
  });
3024
3024
  AlertHeading.displayName = 'AlertHeading';
3025
3025
  /* harmony default export */ const src_AlertHeading = (AlertHeading);
3026
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
3026
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCallbackRef.js
3027
3027
 
3028
3028
 
3029
3029
  /**
@@ -3053,7 +3053,36 @@ AlertHeading.displayName = 'AlertHeading';
3053
3053
  function useCallbackRef() {
3054
3054
  return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
3055
3055
  }
3056
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useEventListener.js
3056
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCommittedRef.js
3057
+
3058
+
3059
+ /**
3060
+ * Creates a `Ref` whose value is updated in an effect, ensuring the most recent
3061
+ * value is the one rendered with. Generally only required for Concurrent mode usage
3062
+ * where previous work in `render()` may be discarded before being used.
3063
+ *
3064
+ * This is safe to access in an event handler.
3065
+ *
3066
+ * @param value The `Ref` value
3067
+ */
3068
+ function esm_useCommittedRef_useCommittedRef(value) {
3069
+ const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
3070
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
3071
+ ref.current = value;
3072
+ }, [value]);
3073
+ return ref;
3074
+ }
3075
+ /* harmony default export */ const hooks_esm_useCommittedRef = (esm_useCommittedRef_useCommittedRef);
3076
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useEventCallback.js
3077
+
3078
+
3079
+ function useEventCallback_useEventCallback(fn) {
3080
+ const ref = hooks_esm_useCommittedRef(fn);
3081
+ return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function (...args) {
3082
+ return ref.current && ref.current(...args);
3083
+ }, [ref]);
3084
+ }
3085
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useEventListener.js
3057
3086
 
3058
3087
 
3059
3088
  /**
@@ -3066,14 +3095,14 @@ function useCallbackRef() {
3066
3095
  * @param capture Whether or not to listen during the capture event phase
3067
3096
  */
3068
3097
  function useEventListener_useEventListener(eventTarget, event, listener, capture = false) {
3069
- const handler = useEventCallback(listener);
3098
+ const handler = useEventCallback_useEventCallback(listener);
3070
3099
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
3071
3100
  const target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
3072
3101
  target.addEventListener(event, handler, capture);
3073
3102
  return () => target.removeEventListener(event, handler, capture);
3074
3103
  }, [eventTarget]);
3075
3104
  }
3076
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useGlobalListener.js
3105
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useGlobalListener.js
3077
3106
 
3078
3107
 
3079
3108
  /**
@@ -3094,7 +3123,7 @@ function useGlobalListener(event, handler, capture = false) {
3094
3123
  const documentTarget = useCallback(() => document, []);
3095
3124
  return useEventListener(documentTarget, event, handler, capture);
3096
3125
  }
3097
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useInterval.js
3126
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useInterval.js
3098
3127
 
3099
3128
 
3100
3129
 
@@ -3183,7 +3212,7 @@ function useInterval(fn, ms, paused = false, runImmediately = false) {
3183
3212
  }, [paused, runImmediately]);
3184
3213
  }
3185
3214
  /* harmony default export */ const esm_useInterval = ((/* unused pure expression or super */ null && (useInterval)));
3186
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useRafInterval.js
3215
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useRafInterval.js
3187
3216
 
3188
3217
 
3189
3218
  function useRafInterval(fn, ms, paused = false) {
@@ -3210,7 +3239,7 @@ function useRafInterval(fn, ms, paused = false) {
3210
3239
  }, []);
3211
3240
  }
3212
3241
  /* harmony default export */ const esm_useRafInterval = ((/* unused pure expression or super */ null && (useRafInterval)));
3213
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeState.js
3242
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeState.js
3214
3243
 
3215
3244
 
3216
3245
  /**
@@ -3247,7 +3276,7 @@ function useMergeState_useMergeState(initialState) {
3247
3276
  }, [setState]);
3248
3277
  return [state, updater];
3249
3278
  }
3250
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3279
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3251
3280
 
3252
3281
  function useMergeStateFromProps(props, gDSFP, initialState) {
3253
3282
  const [state, setState] = useMergeState(initialState);
@@ -3255,7 +3284,7 @@ function useMergeStateFromProps(props, gDSFP, initialState) {
3255
3284
  if (nextState !== null) setState(nextState);
3256
3285
  return [state, setState];
3257
3286
  }
3258
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
3287
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMounted.js
3259
3288
 
3260
3289
 
3261
3290
  /**
@@ -3289,7 +3318,7 @@ function useMounted() {
3289
3318
  }, []);
3290
3319
  return isMounted.current;
3291
3320
  }
3292
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/usePrevious.js
3321
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/usePrevious.js
3293
3322
 
3294
3323
 
3295
3324
  /**
@@ -3316,7 +3345,7 @@ function usePrevious(value) {
3316
3345
  });
3317
3346
  return ref.current;
3318
3347
  }
3319
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useImage.js
3348
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useImage.js
3320
3349
 
3321
3350
  /**
3322
3351
  * Fetch and load an image for programatic use such as in a `<canvas>` element.
@@ -3386,7 +3415,7 @@ function useImage(imageOrUrl, crossOrigin) {
3386
3415
  }, [imageOrUrl, crossOrigin]);
3387
3416
  return state;
3388
3417
  }
3389
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3418
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3390
3419
 
3391
3420
  const isReactNative = typeof __webpack_require__.g !== 'undefined' &&
3392
3421
  // @ts-ignore
@@ -3404,7 +3433,7 @@ const isDOM = typeof document !== 'undefined';
3404
3433
  * @category effects
3405
3434
  */
3406
3435
  /* 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);
3407
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useResizeObserver.js
3436
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useResizeObserver.js
3408
3437
 
3409
3438
 
3410
3439
  const targetMap = new WeakMap();
@@ -3452,7 +3481,7 @@ function useResizeObserver(element) {
3452
3481
  }, [element]);
3453
3482
  return rect;
3454
3483
  }
3455
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/index.js
3484
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/index.js
3456
3485
 
3457
3486
 
3458
3487
 
@@ -3600,7 +3629,7 @@ const Anchor = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
3600
3629
  const [buttonProps] = useButtonProps(Object.assign({
3601
3630
  tagName: 'a'
3602
3631
  }, props));
3603
- const handleKeyDown = useEventCallback(e => {
3632
+ const handleKeyDown = useEventCallback_useEventCallback(e => {
3604
3633
  buttonProps.onKeyDown(e);
3605
3634
  onKeyDown == null ? void 0 : onKeyDown(e);
3606
3635
  });
@@ -4714,6 +4743,40 @@ function useUpdateEffect(fn, deps) {
4714
4743
  }, deps);
4715
4744
  }
4716
4745
  /* harmony default export */ const esm_useUpdateEffect = (useUpdateEffect);
4746
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
4747
+
4748
+
4749
+ /**
4750
+ * Track whether a component is current mounted. Generally less preferable than
4751
+ * properlly canceling effects so they don't run after a component is unmounted,
4752
+ * but helpful in cases where that isn't feasible, such as a `Promise` resolution.
4753
+ *
4754
+ * @returns a function that returns the current isMounted state of the component
4755
+ *
4756
+ * ```ts
4757
+ * const [data, setData] = useState(null)
4758
+ * const isMounted = useMounted()
4759
+ *
4760
+ * useEffect(() => {
4761
+ * fetchdata().then((newData) => {
4762
+ * if (isMounted()) {
4763
+ * setData(newData);
4764
+ * }
4765
+ * })
4766
+ * })
4767
+ * ```
4768
+ */
4769
+ function useMounted_useMounted() {
4770
+ const mounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
4771
+ const isMounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(() => mounted.current);
4772
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
4773
+ mounted.current = true;
4774
+ return () => {
4775
+ mounted.current = false;
4776
+ };
4777
+ }, []);
4778
+ return isMounted.current;
4779
+ }
4717
4780
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useUpdatedRef.js
4718
4781
 
4719
4782
 
@@ -4780,7 +4843,7 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
4780
4843
  * ```
4781
4844
  */
4782
4845
  function useTimeout() {
4783
- const isMounted = useMounted();
4846
+ const isMounted = useMounted_useMounted();
4784
4847
 
4785
4848
  // types are confused between node and web here IDK
4786
4849
  const handleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
@@ -5624,7 +5687,7 @@ function esm_useUncontrolled(props, config) {
5624
5687
  });
5625
5688
  }, props);
5626
5689
  }
5627
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useForceUpdate.js
5690
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useForceUpdate.js
5628
5691
 
5629
5692
 
5630
5693
  /**
@@ -5646,7 +5709,7 @@ function esm_useUncontrolled(props, config) {
5646
5709
  function useForceUpdate() {
5647
5710
  // The toggling state value is designed to defeat React optimizations for skipping
5648
5711
  // updates when they are strictly equal to the last state value
5649
- const [, dispatch] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useReducer)(state => !state, false);
5712
+ const [, dispatch] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useReducer)(revision => revision + 1, 0);
5650
5713
  return dispatch;
5651
5714
  }
5652
5715
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/DropdownContext.js
@@ -5739,7 +5802,7 @@ function dequal(foo, bar) {
5739
5802
  return foo !== foo && bar !== bar;
5740
5803
  }
5741
5804
 
5742
- ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useSafeState.js
5805
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useSafeState.js
5743
5806
 
5744
5807
 
5745
5808
 
@@ -7697,7 +7760,7 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
7697
7760
  preventMouseClickOutsideRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains_contains(currentTarget, e.target) || waitingForTrigger.current;
7698
7761
  waitingForTrigger.current = false;
7699
7762
  }, [ref]);
7700
- const handleInitialMouse = useEventCallback(e => {
7763
+ const handleInitialMouse = useEventCallback_useEventCallback(e => {
7701
7764
  const currentTarget = getRefTarget(ref);
7702
7765
  if (currentTarget && contains_contains(currentTarget, e.target)) {
7703
7766
  waitingForTrigger.current = true;
@@ -7708,7 +7771,7 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
7708
7771
  waitingForTrigger.current = false;
7709
7772
  }
7710
7773
  });
7711
- const handleMouse = useEventCallback(e => {
7774
+ const handleMouse = useEventCallback_useEventCallback(e => {
7712
7775
  if (!preventMouseClickOutsideRef.current) {
7713
7776
  onClickOutside(e);
7714
7777
  }
@@ -8215,7 +8278,7 @@ function useDropdownItem({
8215
8278
  } = navContext || {};
8216
8279
  const eventKey = makeEventKey(key, href);
8217
8280
  const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;
8218
- const handleClick = useEventCallback(event => {
8281
+ const handleClick = useEventCallback_useEventCallback(event => {
8219
8282
  if (disabled) return;
8220
8283
  onClick == null ? void 0 : onClick(event);
8221
8284
  if (onSelectCtx && !event.isPropagationStopped()) {
@@ -8331,7 +8394,7 @@ function Dropdown({
8331
8394
  source
8332
8395
  });
8333
8396
  }, [onToggle]);
8334
- const handleSelect = useEventCallback((key, event) => {
8397
+ const handleSelect = useEventCallback_useEventCallback((key, event) => {
8335
8398
  onSelect == null ? void 0 : onSelect(key, event);
8336
8399
  toggle(false, event, 'select');
8337
8400
  if (!event.isPropagationStopped()) {
@@ -8350,12 +8413,12 @@ function Dropdown({
8350
8413
  if (menuElement && lastShow && !show) {
8351
8414
  focusInDropdown.current = menuElement.contains(menuElement.ownerDocument.activeElement);
8352
8415
  }
8353
- const focusToggle = useEventCallback(() => {
8416
+ const focusToggle = useEventCallback_useEventCallback(() => {
8354
8417
  if (toggleElement && toggleElement.focus) {
8355
8418
  toggleElement.focus();
8356
8419
  }
8357
8420
  });
8358
- const maybeFocusFirst = useEventCallback(() => {
8421
+ const maybeFocusFirst = useEventCallback_useEventCallback(() => {
8359
8422
  const type = lastSourceEvent.current;
8360
8423
  let focusType = focusFirstItemOnShow;
8361
8424
  if (focusType == null) {
@@ -8614,6 +8677,24 @@ const DropdownItemText = /*#__PURE__*/external_root_React_commonjs2_react_common
8614
8677
  });
8615
8678
  DropdownItemText.displayName = 'DropdownItemText';
8616
8679
  /* harmony default export */ const src_DropdownItemText = (DropdownItemText);
8680
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
8681
+
8682
+ const useIsomorphicEffect_isReactNative = typeof __webpack_require__.g !== 'undefined' &&
8683
+ // @ts-ignore
8684
+ __webpack_require__.g.navigator &&
8685
+ // @ts-ignore
8686
+ __webpack_require__.g.navigator.product === 'ReactNative';
8687
+ const useIsomorphicEffect_isDOM = typeof document !== 'undefined';
8688
+
8689
+ /**
8690
+ * Is `useLayoutEffect` in a DOM or React Native environment, otherwise resolves to useEffect
8691
+ * Only useful to avoid the console warning.
8692
+ *
8693
+ * PREFER `useEffect` UNLESS YOU KNOW WHAT YOU ARE DOING.
8694
+ *
8695
+ * @category effects
8696
+ */
8697
+ /* 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);
8617
8698
  ;// CONCATENATED MODULE: ./src/InputGroupContext.tsx
8618
8699
 
8619
8700
  const InputGroupContext_context = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -8792,7 +8873,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
8792
8873
  placement
8793
8874
  });
8794
8875
  menuProps.ref = esm_useMergedRefs(useWrappedRefWithWarning(ref, 'DropdownMenu'), menuProps.ref);
8795
- useIsomorphicEffect(() => {
8876
+ esm_useIsomorphicEffect(() => {
8796
8877
  // Popper's initial position for the menu is incorrect when
8797
8878
  // renderOnMount=true. Need to call update() to correct it.
8798
8879
  if (show) popper == null || popper.update();
@@ -8858,6 +8939,9 @@ const DropdownToggle_propTypes = {
8858
8939
  */
8859
8940
  id: (prop_types_default()).string,
8860
8941
  split: (prop_types_default()).bool,
8942
+ /**
8943
+ * @default Button
8944
+ */
8861
8945
  as: (prop_types_default()).elementType,
8862
8946
  /**
8863
8947
  * to passthrough to the underlying button or whatever from DropdownButton
@@ -8890,7 +8974,7 @@ const DropdownToggle_DropdownToggle = /*#__PURE__*/external_root_React_commonjs2
8890
8974
  ...props
8891
8975
  }, void 0, false, {
8892
8976
  fileName: DropdownToggle_jsxFileName,
8893
- lineNumber: 81,
8977
+ lineNumber: 84,
8894
8978
  columnNumber: 7
8895
8979
  }, undefined);
8896
8980
  });
@@ -9054,17 +9138,17 @@ const Dropdown_Dropdown = /*#__PURE__*/external_root_React_commonjs2_react_commo
9054
9138
  className: classnames_default()(className, show && 'show', directionClasses[drop])
9055
9139
  }, void 0, false, {
9056
9140
  fileName: Dropdown_jsxFileName,
9057
- lineNumber: 206,
9141
+ lineNumber: 209,
9058
9142
  columnNumber: 13
9059
9143
  }, undefined)
9060
9144
  }, void 0, false, {
9061
9145
  fileName: Dropdown_jsxFileName,
9062
- lineNumber: 195,
9146
+ lineNumber: 198,
9063
9147
  columnNumber: 9
9064
9148
  }, undefined)
9065
9149
  }, void 0, false, {
9066
9150
  fileName: Dropdown_jsxFileName,
9067
- lineNumber: 194,
9151
+ lineNumber: 197,
9068
9152
  columnNumber: 7
9069
9153
  }, undefined);
9070
9154
  });
@@ -10352,6 +10436,40 @@ InputGroup.displayName = 'InputGroup';
10352
10436
  Radio: InputGroupRadio,
10353
10437
  Checkbox: InputGroupCheckbox
10354
10438
  }));
10439
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergedRefs.js
10440
+
10441
+ const useMergedRefs_toFnRef = ref => !ref || typeof ref === 'function' ? ref : value => {
10442
+ ref.current = value;
10443
+ };
10444
+ function useMergedRefs_mergeRefs(refA, refB) {
10445
+ const a = useMergedRefs_toFnRef(refA);
10446
+ const b = useMergedRefs_toFnRef(refB);
10447
+ return value => {
10448
+ if (a) a(value);
10449
+ if (b) b(value);
10450
+ };
10451
+ }
10452
+
10453
+ /**
10454
+ * Create and returns a single callback ref composed from two other Refs.
10455
+ *
10456
+ * ```tsx
10457
+ * const Button = React.forwardRef((props, ref) => {
10458
+ * const [element, attachRef] = useCallbackRef<HTMLButtonElement>();
10459
+ * const mergedRef = useMergedRefs(ref, attachRef);
10460
+ *
10461
+ * return <button ref={mergedRef} {...props}/>
10462
+ * })
10463
+ * ```
10464
+ *
10465
+ * @param refA A Callback or mutable Ref
10466
+ * @param refB A Callback or mutable Ref
10467
+ * @category refs
10468
+ */
10469
+ function useMergedRefs_useMergedRefs(refA, refB) {
10470
+ return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => useMergedRefs_mergeRefs(refA, refB), [refA, refB]);
10471
+ }
10472
+ /* harmony default export */ const hooks_esm_useMergedRefs = (useMergedRefs_useMergedRefs);
10355
10473
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/TabContext.js
10356
10474
 
10357
10475
  const TabContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
@@ -10422,7 +10540,7 @@ function useNavItem({
10422
10540
  props['aria-disabled'] = true;
10423
10541
  }
10424
10542
  }
10425
- props.onClick = useEventCallback(e => {
10543
+ props.onClick = useEventCallback_useEventCallback(e => {
10426
10544
  if (disabled) return;
10427
10545
  onClick == null ? void 0 : onClick(e);
10428
10546
  if (key == null) {
@@ -10555,7 +10673,7 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
10555
10673
  }
10556
10674
  needsRefocusRef.current = false;
10557
10675
  });
10558
- const mergedRef = esm_useMergedRefs(ref, listNode);
10676
+ const mergedRef = hooks_esm_useMergedRefs(ref, listNode);
10559
10677
  return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_SelectableContext.Provider, {
10560
10678
  value: handleSelect,
10561
10679
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_NavContext.Provider, {
@@ -10766,6 +10884,36 @@ function scrollbarSize(recalc) {
10766
10884
  }
10767
10885
  return size;
10768
10886
  }
10887
+ ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
10888
+
10889
+
10890
+ /**
10891
+ * A convenience hook around `useState` designed to be paired with
10892
+ * the component [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) api.
10893
+ * Callback refs are useful over `useRef()` when you need to respond to the ref being set
10894
+ * instead of lazily accessing it in an effect.
10895
+ *
10896
+ * ```ts
10897
+ * const [element, attachRef] = useCallbackRef<HTMLDivElement>()
10898
+ *
10899
+ * useEffect(() => {
10900
+ * if (!element) return
10901
+ *
10902
+ * const calendar = new FullCalendar.Calendar(element)
10903
+ *
10904
+ * return () => {
10905
+ * calendar.destroy()
10906
+ * }
10907
+ * }, [element])
10908
+ *
10909
+ * return <div ref={attachRef} />
10910
+ * ```
10911
+ *
10912
+ * @category refs
10913
+ */
10914
+ function useCallbackRef_useCallbackRef() {
10915
+ return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
10916
+ }
10769
10917
  ;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/activeElement.js
10770
10918
 
10771
10919
  /**
@@ -10792,6 +10940,35 @@ function activeElement(doc) {
10792
10940
  return doc.body;
10793
10941
  }
10794
10942
  }
10943
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useUpdatedRef.js
10944
+
10945
+
10946
+ /**
10947
+ * Returns a ref that is immediately updated with the new value
10948
+ *
10949
+ * @param value The Ref value
10950
+ * @category refs
10951
+ */
10952
+ function useUpdatedRef_useUpdatedRef(value) {
10953
+ const valueRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
10954
+ valueRef.current = value;
10955
+ return valueRef;
10956
+ }
10957
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useWillUnmount.js
10958
+
10959
+
10960
+
10961
+ /**
10962
+ * Attach a callback that fires when a component unmounts
10963
+ *
10964
+ * @param fn Handler to run when the component unmounts
10965
+ * @deprecated Use `useMounted` and normal effects, this is not StrictMode safe
10966
+ * @category effects
10967
+ */
10968
+ function useWillUnmount_useWillUnmount(fn) {
10969
+ const onUnmount = useUpdatedRef_useUpdatedRef(fn);
10970
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => () => onUnmount.current(), []);
10971
+ }
10795
10972
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/getScrollbarWidth.js
10796
10973
  /**
10797
10974
  * Get the width of the vertical window scrollbar if it's visible
@@ -10947,13 +11124,13 @@ function NoopTransition({
10947
11124
  }) {
10948
11125
  const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
10949
11126
  const hasEnteredRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(inProp);
10950
- const handleExited = useEventCallback(onExited);
11127
+ const handleExited = useEventCallback_useEventCallback(onExited);
10951
11128
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
10952
11129
  if (inProp) hasEnteredRef.current = true;else {
10953
11130
  handleExited(ref.current);
10954
11131
  }
10955
11132
  }, [inProp, handleExited]);
10956
- const combinedRef = esm_useMergedRefs(ref, children.ref);
11133
+ const combinedRef = hooks_esm_useMergedRefs(ref, children.ref);
10957
11134
  const child = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
10958
11135
  ref: combinedRef
10959
11136
  });
@@ -11001,7 +11178,7 @@ function useRTGTransitionProps(_ref) {
11001
11178
  } = _ref,
11002
11179
  props = useRTGTransitionProps_objectWithoutPropertiesLoose(_ref, useRTGTransitionProps_excluded);
11003
11180
  const nodeRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
11004
- const mergedRef = esm_useMergedRefs(nodeRef, getChildRef(children));
11181
+ const mergedRef = hooks_esm_useMergedRefs(nodeRef, getChildRef(children));
11005
11182
  const normalize = callback => param => {
11006
11183
  if (callback && nodeRef.current) {
11007
11184
  callback(nodeRef.current, param);
@@ -11084,7 +11261,7 @@ function useTransition({
11084
11261
  }) {
11085
11262
  const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
11086
11263
  const isInitialRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
11087
- const handleTransition = useEventCallback(onTransition);
11264
+ const handleTransition = useEventCallback_useEventCallback(onTransition);
11088
11265
  useIsomorphicEffect(() => {
11089
11266
  if (!ref.current) {
11090
11267
  return undefined;
@@ -11146,7 +11323,7 @@ function ImperativeTransition({
11146
11323
  });
11147
11324
  }
11148
11325
  });
11149
- const combinedRef = esm_useMergedRefs(ref, children.ref);
11326
+ const combinedRef = hooks_esm_useMergedRefs(ref, children.ref);
11150
11327
  return exited && !inProp ? null : /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
11151
11328
  ref: combinedRef
11152
11329
  });
@@ -11275,7 +11452,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11275
11452
  if (show && exited) {
11276
11453
  setExited(false);
11277
11454
  }
11278
- const handleShow = useEventCallback(() => {
11455
+ const handleShow = useEventCallback_useEventCallback(() => {
11279
11456
  modal.add();
11280
11457
  removeKeydownListenerRef.current = esm_listen(document, 'keydown', handleDocumentKeyDown);
11281
11458
  removeFocusListenerRef.current = esm_listen(document, 'focus',
@@ -11297,7 +11474,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11297
11474
  }
11298
11475
  }
11299
11476
  });
11300
- const handleHide = useEventCallback(() => {
11477
+ const handleHide = useEventCallback_useEventCallback(() => {
11301
11478
  modal.remove();
11302
11479
  removeKeydownListenerRef.current == null ? void 0 : removeKeydownListenerRef.current();
11303
11480
  removeFocusListenerRef.current == null ? void 0 : removeFocusListenerRef.current();
@@ -11325,13 +11502,13 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11325
11502
  if (!exited) return;
11326
11503
  handleHide();
11327
11504
  }, [exited, handleHide]);
11328
- useWillUnmount(() => {
11505
+ useWillUnmount_useWillUnmount(() => {
11329
11506
  handleHide();
11330
11507
  });
11331
11508
 
11332
11509
  // --------------------------------
11333
11510
 
11334
- const handleEnforceFocus = useEventCallback(() => {
11511
+ const handleEnforceFocus = useEventCallback_useEventCallback(() => {
11335
11512
  if (!enforceFocus || !isMounted() || !modal.isTopModal()) {
11336
11513
  return;
11337
11514
  }
@@ -11340,7 +11517,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11340
11517
  modal.dialog.focus();
11341
11518
  }
11342
11519
  });
11343
- const handleBackdropClick = useEventCallback(e => {
11520
+ const handleBackdropClick = useEventCallback_useEventCallback(e => {
11344
11521
  if (e.target !== e.currentTarget) {
11345
11522
  return;
11346
11523
  }
@@ -11349,7 +11526,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
11349
11526
  onHide();
11350
11527
  }
11351
11528
  });
11352
- const handleDocumentKeyDown = useEventCallback(e => {
11529
+ const handleDocumentKeyDown = useEventCallback_useEventCallback(e => {
11353
11530
  if (keyboard && isEscKey(e) && modal.isTopModal()) {
11354
11531
  onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);
11355
11532
  if (!e.defaultPrevented) {
@@ -12023,7 +12200,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12023
12200
  const waitingForMouseUpRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12024
12201
  const ignoreBackdropClickRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
12025
12202
  const removeStaticModalAnimationRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
12026
- const [modal, setModalRef] = useCallbackRef();
12203
+ const [modal, setModalRef] = useCallbackRef_useCallbackRef();
12027
12204
  const mergedRef = esm_useMergedRefs(ref, setModalRef);
12028
12205
  const handleHide = useEventCallback(onHide);
12029
12206
  const isRTL = useIsRTL();
@@ -12641,7 +12818,7 @@ const getMatcher = (query, targetWindow) => {
12641
12818
  function useMediaQuery(query, targetWindow = typeof window === 'undefined' ? undefined : window) {
12642
12819
  const mql = getMatcher(query, targetWindow);
12643
12820
  const [matches, setMatches] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(() => mql ? mql.matches : false);
12644
- useIsomorphicEffect(() => {
12821
+ esm_useIsomorphicEffect(() => {
12645
12822
  let mql = getMatcher(query, targetWindow);
12646
12823
  if (!mql) {
12647
12824
  return setMatches(false);
@@ -13631,7 +13808,7 @@ function useRootClose(ref, onRootClose, {
13631
13808
  disabled,
13632
13809
  clickTrigger
13633
13810
  });
13634
- const handleKeyUp = useEventCallback(e => {
13811
+ const handleKeyUp = useEventCallback_useEventCallback(e => {
13635
13812
  if (isEscKey(e)) {
13636
13813
  onClose(e);
13637
13814
  }
@@ -13684,7 +13861,7 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
13684
13861
  } = props;
13685
13862
  const [rootElement, attachRef] = useCallbackRef();
13686
13863
  const [arrowElement, attachArrowRef] = useCallbackRef();
13687
- const mergedRef = esm_useMergedRefs(attachRef, outerRef);
13864
+ const mergedRef = hooks_esm_useMergedRefs(attachRef, outerRef);
13688
13865
  const container = useWaitForDOMRef(props.container);
13689
13866
  const target = useWaitForDOMRef(props.target);
13690
13867
  const [exited, setExited] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(!props.show);
@@ -14187,7 +14364,7 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
14187
14364
  setFirstRenderedState(state);
14188
14365
  popperConfig == null || popperConfig.onFirstUpdate == null || popperConfig.onFirstUpdate(state);
14189
14366
  });
14190
- useIsomorphicEffect(() => {
14367
+ esm_useIsomorphicEffect(() => {
14191
14368
  if (firstRenderedState && outerProps.target) {
14192
14369
  // Must wait for target element to resolve before updating popper.
14193
14370
  popperRef.current.scheduleUpdate == null || popperRef.current.scheduleUpdate();