react-bootstrap 2.10.5 → 2.10.7
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.
- package/cjs/AccordionHeader.js +2 -0
- package/cjs/Collapse.js +2 -1
- package/cjs/Dropdown.d.ts +1 -1
- package/cjs/Fade.js +1 -5
- package/cjs/Nav.js +0 -1
- package/cjs/OffcanvasToggling.js +2 -1
- package/cjs/OverlayTrigger.js +2 -1
- package/cjs/Ratio.d.ts +1 -1
- package/cjs/Tabs.d.ts +1 -67
- package/dist/react-bootstrap.js +349 -197
- package/dist/react-bootstrap.min.js +1 -1
- package/esm/AccordionHeader.js +2 -0
- package/esm/Collapse.js +2 -1
- package/esm/Dropdown.d.ts +1 -1
- package/esm/Fade.js +2 -6
- package/esm/Nav.js +0 -1
- package/esm/OffcanvasToggling.js +2 -1
- package/esm/OverlayTrigger.js +2 -1
- package/esm/Ratio.d.ts +1 -1
- package/esm/Tabs.d.ts +1 -67
- package/package.json +3 -2
package/dist/react-bootstrap.js
CHANGED
|
@@ -227,7 +227,7 @@ var __webpack_unused_export__;
|
|
|
227
227
|
__webpack_unused_export__ = ({
|
|
228
228
|
value: true
|
|
229
229
|
});
|
|
230
|
-
__webpack_unused_export__ = exports.rk = __webpack_unused_export__ = exports.NP =
|
|
230
|
+
__webpack_unused_export__ = exports.rk = __webpack_unused_export__ = exports.NP = exports.Q7 = undefined;
|
|
231
231
|
var _all = __webpack_require__(526);
|
|
232
232
|
var _all2 = _interopRequireDefault(_all);
|
|
233
233
|
var _componentOrElement = __webpack_require__(387);
|
|
@@ -243,7 +243,7 @@ function _interopRequireDefault(obj) {
|
|
|
243
243
|
default: obj
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
-
|
|
246
|
+
exports.Q7 = _all2.default;
|
|
247
247
|
exports.NP = _componentOrElement2.default;
|
|
248
248
|
__webpack_unused_export__ = _deprecated2.default;
|
|
249
249
|
exports.rk = _elementType2.default;
|
|
@@ -2037,6 +2037,29 @@ Transition.ENTERING = ENTERING;
|
|
|
2037
2037
|
Transition.ENTERED = ENTERED;
|
|
2038
2038
|
Transition.EXITING = EXITING;
|
|
2039
2039
|
/* harmony default export */ const esm_Transition = (Transition);
|
|
2040
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/utils.js
|
|
2041
|
+
|
|
2042
|
+
function isEscKey(e) {
|
|
2043
|
+
return e.code === 'Escape' || e.keyCode === 27;
|
|
2044
|
+
}
|
|
2045
|
+
function getReactVersion() {
|
|
2046
|
+
const parts = external_root_React_commonjs2_react_commonjs_react_amd_react_.version.split('.');
|
|
2047
|
+
return {
|
|
2048
|
+
major: +parts[0],
|
|
2049
|
+
minor: +parts[1],
|
|
2050
|
+
patch: +parts[2]
|
|
2051
|
+
};
|
|
2052
|
+
}
|
|
2053
|
+
function getChildRef(element) {
|
|
2054
|
+
if (!element || typeof element === 'function') {
|
|
2055
|
+
return null;
|
|
2056
|
+
}
|
|
2057
|
+
const {
|
|
2058
|
+
major
|
|
2059
|
+
} = getReactVersion();
|
|
2060
|
+
const childRef = major >= 19 ? element.props.ref : element.ref;
|
|
2061
|
+
return childRef;
|
|
2062
|
+
}
|
|
2040
2063
|
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/canUseDOM.js
|
|
2041
2064
|
/* harmony default export */ const canUseDOM = (!!(typeof window !== 'undefined' && window.document && window.document.createElement));
|
|
2042
2065
|
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/addEventListener.js
|
|
@@ -2343,6 +2366,7 @@ var Collapse_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap
|
|
|
2343
2366
|
|
|
2344
2367
|
|
|
2345
2368
|
|
|
2369
|
+
|
|
2346
2370
|
const MARGINS = {
|
|
2347
2371
|
height: ['marginTop', 'marginBottom'],
|
|
2348
2372
|
width: ['marginLeft', 'marginRight']
|
|
@@ -2485,7 +2509,7 @@ const Collapse = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
2485
2509
|
onEntered: handleEntered,
|
|
2486
2510
|
onExit: handleExit,
|
|
2487
2511
|
onExiting: handleExiting,
|
|
2488
|
-
childRef: children
|
|
2512
|
+
childRef: getChildRef(children),
|
|
2489
2513
|
in: inProp,
|
|
2490
2514
|
timeout: timeout,
|
|
2491
2515
|
mountOnEnter: mountOnEnter,
|
|
@@ -2497,7 +2521,7 @@ const Collapse = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
2497
2521
|
})
|
|
2498
2522
|
}, void 0, false, {
|
|
2499
2523
|
fileName: Collapse_jsxFileName,
|
|
2500
|
-
lineNumber:
|
|
2524
|
+
lineNumber: 223,
|
|
2501
2525
|
columnNumber: 7
|
|
2502
2526
|
}, undefined);
|
|
2503
2527
|
});
|
|
@@ -2759,6 +2783,7 @@ const AccordionHeader_propTypes = {
|
|
|
2759
2783
|
const AccordionHeader = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
2760
2784
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2761
2785
|
as: Component = 'h2',
|
|
2786
|
+
'aria-controls': ariaControls,
|
|
2762
2787
|
bsPrefix,
|
|
2763
2788
|
className,
|
|
2764
2789
|
children,
|
|
@@ -2772,15 +2797,16 @@ const AccordionHeader = /*#__PURE__*/external_root_React_commonjs2_react_commonj
|
|
|
2772
2797
|
className: classnames_default()(className, bsPrefix),
|
|
2773
2798
|
children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_AccordionButton, {
|
|
2774
2799
|
onClick: onClick,
|
|
2800
|
+
"aria-controls": ariaControls,
|
|
2775
2801
|
children: children
|
|
2776
2802
|
}, void 0, false, {
|
|
2777
2803
|
fileName: AccordionHeader_jsxFileName,
|
|
2778
|
-
lineNumber:
|
|
2804
|
+
lineNumber: 48,
|
|
2779
2805
|
columnNumber: 9
|
|
2780
2806
|
}, undefined)
|
|
2781
2807
|
}, void 0, false, {
|
|
2782
2808
|
fileName: AccordionHeader_jsxFileName,
|
|
2783
|
-
lineNumber:
|
|
2809
|
+
lineNumber: 43,
|
|
2784
2810
|
columnNumber: 7
|
|
2785
2811
|
}, undefined);
|
|
2786
2812
|
});
|
|
@@ -2997,7 +3023,7 @@ const AlertHeading = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_r
|
|
|
2997
3023
|
});
|
|
2998
3024
|
AlertHeading.displayName = 'AlertHeading';
|
|
2999
3025
|
/* harmony default export */ const src_AlertHeading = (AlertHeading);
|
|
3000
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
|
|
3026
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCallbackRef.js
|
|
3001
3027
|
|
|
3002
3028
|
|
|
3003
3029
|
/**
|
|
@@ -3027,7 +3053,36 @@ AlertHeading.displayName = 'AlertHeading';
|
|
|
3027
3053
|
function useCallbackRef() {
|
|
3028
3054
|
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
|
|
3029
3055
|
}
|
|
3030
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/
|
|
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
|
|
3031
3086
|
|
|
3032
3087
|
|
|
3033
3088
|
/**
|
|
@@ -3040,14 +3095,14 @@ function useCallbackRef() {
|
|
|
3040
3095
|
* @param capture Whether or not to listen during the capture event phase
|
|
3041
3096
|
*/
|
|
3042
3097
|
function useEventListener_useEventListener(eventTarget, event, listener, capture = false) {
|
|
3043
|
-
const handler =
|
|
3098
|
+
const handler = useEventCallback_useEventCallback(listener);
|
|
3044
3099
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
3045
3100
|
const target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
|
|
3046
3101
|
target.addEventListener(event, handler, capture);
|
|
3047
3102
|
return () => target.removeEventListener(event, handler, capture);
|
|
3048
3103
|
}, [eventTarget]);
|
|
3049
3104
|
}
|
|
3050
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useGlobalListener.js
|
|
3105
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useGlobalListener.js
|
|
3051
3106
|
|
|
3052
3107
|
|
|
3053
3108
|
/**
|
|
@@ -3068,7 +3123,7 @@ function useGlobalListener(event, handler, capture = false) {
|
|
|
3068
3123
|
const documentTarget = useCallback(() => document, []);
|
|
3069
3124
|
return useEventListener(documentTarget, event, handler, capture);
|
|
3070
3125
|
}
|
|
3071
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useInterval.js
|
|
3126
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useInterval.js
|
|
3072
3127
|
|
|
3073
3128
|
|
|
3074
3129
|
|
|
@@ -3157,7 +3212,7 @@ function useInterval(fn, ms, paused = false, runImmediately = false) {
|
|
|
3157
3212
|
}, [paused, runImmediately]);
|
|
3158
3213
|
}
|
|
3159
3214
|
/* harmony default export */ const esm_useInterval = ((/* unused pure expression or super */ null && (useInterval)));
|
|
3160
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useRafInterval.js
|
|
3215
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useRafInterval.js
|
|
3161
3216
|
|
|
3162
3217
|
|
|
3163
3218
|
function useRafInterval(fn, ms, paused = false) {
|
|
@@ -3184,7 +3239,7 @@ function useRafInterval(fn, ms, paused = false) {
|
|
|
3184
3239
|
}, []);
|
|
3185
3240
|
}
|
|
3186
3241
|
/* harmony default export */ const esm_useRafInterval = ((/* unused pure expression or super */ null && (useRafInterval)));
|
|
3187
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeState.js
|
|
3242
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeState.js
|
|
3188
3243
|
|
|
3189
3244
|
|
|
3190
3245
|
/**
|
|
@@ -3221,7 +3276,7 @@ function useMergeState_useMergeState(initialState) {
|
|
|
3221
3276
|
}, [setState]);
|
|
3222
3277
|
return [state, updater];
|
|
3223
3278
|
}
|
|
3224
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeStateFromProps.js
|
|
3279
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergeStateFromProps.js
|
|
3225
3280
|
|
|
3226
3281
|
function useMergeStateFromProps(props, gDSFP, initialState) {
|
|
3227
3282
|
const [state, setState] = useMergeState(initialState);
|
|
@@ -3229,7 +3284,7 @@ function useMergeStateFromProps(props, gDSFP, initialState) {
|
|
|
3229
3284
|
if (nextState !== null) setState(nextState);
|
|
3230
3285
|
return [state, setState];
|
|
3231
3286
|
}
|
|
3232
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
|
|
3287
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMounted.js
|
|
3233
3288
|
|
|
3234
3289
|
|
|
3235
3290
|
/**
|
|
@@ -3263,7 +3318,7 @@ function useMounted() {
|
|
|
3263
3318
|
}, []);
|
|
3264
3319
|
return isMounted.current;
|
|
3265
3320
|
}
|
|
3266
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/usePrevious.js
|
|
3321
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/usePrevious.js
|
|
3267
3322
|
|
|
3268
3323
|
|
|
3269
3324
|
/**
|
|
@@ -3290,7 +3345,7 @@ function usePrevious(value) {
|
|
|
3290
3345
|
});
|
|
3291
3346
|
return ref.current;
|
|
3292
3347
|
}
|
|
3293
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useImage.js
|
|
3348
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useImage.js
|
|
3294
3349
|
|
|
3295
3350
|
/**
|
|
3296
3351
|
* Fetch and load an image for programatic use such as in a `<canvas>` element.
|
|
@@ -3360,7 +3415,7 @@ function useImage(imageOrUrl, crossOrigin) {
|
|
|
3360
3415
|
}, [imageOrUrl, crossOrigin]);
|
|
3361
3416
|
return state;
|
|
3362
3417
|
}
|
|
3363
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
|
|
3418
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useIsomorphicEffect.js
|
|
3364
3419
|
|
|
3365
3420
|
const isReactNative = typeof __webpack_require__.g !== 'undefined' &&
|
|
3366
3421
|
// @ts-ignore
|
|
@@ -3378,7 +3433,7 @@ const isDOM = typeof document !== 'undefined';
|
|
|
3378
3433
|
* @category effects
|
|
3379
3434
|
*/
|
|
3380
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);
|
|
3381
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useResizeObserver.js
|
|
3436
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useResizeObserver.js
|
|
3382
3437
|
|
|
3383
3438
|
|
|
3384
3439
|
const targetMap = new WeakMap();
|
|
@@ -3426,7 +3481,7 @@ function useResizeObserver(element) {
|
|
|
3426
3481
|
}, [element]);
|
|
3427
3482
|
return rect;
|
|
3428
3483
|
}
|
|
3429
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/index.js
|
|
3484
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/index.js
|
|
3430
3485
|
|
|
3431
3486
|
|
|
3432
3487
|
|
|
@@ -3445,17 +3500,14 @@ function useResizeObserver(element) {
|
|
|
3445
3500
|
var jsx_runtime = __webpack_require__(74);
|
|
3446
3501
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Button.js
|
|
3447
3502
|
const _excluded = ["as", "disabled"];
|
|
3448
|
-
function Button_objectWithoutPropertiesLoose(
|
|
3449
|
-
if (
|
|
3450
|
-
var
|
|
3451
|
-
var
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
key = sourceKeys[i];
|
|
3455
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
3456
|
-
target[key] = source[key];
|
|
3503
|
+
function Button_objectWithoutPropertiesLoose(r, e) {
|
|
3504
|
+
if (null == r) return {};
|
|
3505
|
+
var t = {};
|
|
3506
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
3507
|
+
if (e.indexOf(n) >= 0) continue;
|
|
3508
|
+
t[n] = r[n];
|
|
3457
3509
|
}
|
|
3458
|
-
return
|
|
3510
|
+
return t;
|
|
3459
3511
|
}
|
|
3460
3512
|
|
|
3461
3513
|
|
|
@@ -3546,17 +3598,14 @@ Button.displayName = 'Button';
|
|
|
3546
3598
|
/* harmony default export */ const esm_Button = (Button);
|
|
3547
3599
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Anchor.js
|
|
3548
3600
|
const Anchor_excluded = ["onKeyDown"];
|
|
3549
|
-
function Anchor_objectWithoutPropertiesLoose(
|
|
3550
|
-
if (
|
|
3551
|
-
var
|
|
3552
|
-
var
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
key = sourceKeys[i];
|
|
3556
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
3557
|
-
target[key] = source[key];
|
|
3601
|
+
function Anchor_objectWithoutPropertiesLoose(r, e) {
|
|
3602
|
+
if (null == r) return {};
|
|
3603
|
+
var t = {};
|
|
3604
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
3605
|
+
if (e.indexOf(n) >= 0) continue;
|
|
3606
|
+
t[n] = r[n];
|
|
3558
3607
|
}
|
|
3559
|
-
return
|
|
3608
|
+
return t;
|
|
3560
3609
|
}
|
|
3561
3610
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
3562
3611
|
/* eslint-disable jsx-a11y/anchor-has-content */
|
|
@@ -3580,7 +3629,7 @@ const Anchor = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
|
|
|
3580
3629
|
const [buttonProps] = useButtonProps(Object.assign({
|
|
3581
3630
|
tagName: 'a'
|
|
3582
3631
|
}, props));
|
|
3583
|
-
const handleKeyDown =
|
|
3632
|
+
const handleKeyDown = useEventCallback_useEventCallback(e => {
|
|
3584
3633
|
buttonProps.onKeyDown(e);
|
|
3585
3634
|
onKeyDown == null ? void 0 : onKeyDown(e);
|
|
3586
3635
|
});
|
|
@@ -3625,19 +3674,6 @@ const AlertLink = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
3625
3674
|
});
|
|
3626
3675
|
AlertLink.displayName = 'AlertLink';
|
|
3627
3676
|
/* harmony default export */ const src_AlertLink = (AlertLink);
|
|
3628
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/utils.js
|
|
3629
|
-
|
|
3630
|
-
function isEscKey(e) {
|
|
3631
|
-
return e.code === 'Escape' || e.keyCode === 27;
|
|
3632
|
-
}
|
|
3633
|
-
function getReactVersion() {
|
|
3634
|
-
const parts = external_root_React_commonjs2_react_commonjs_react_amd_react_.version.split('.');
|
|
3635
|
-
return {
|
|
3636
|
-
major: +parts[0],
|
|
3637
|
-
minor: +parts[1],
|
|
3638
|
-
patch: +parts[2]
|
|
3639
|
-
};
|
|
3640
|
-
}
|
|
3641
3677
|
;// CONCATENATED MODULE: ./src/Fade.tsx
|
|
3642
3678
|
var Fade_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Fade.tsx";
|
|
3643
3679
|
|
|
@@ -3731,23 +3767,19 @@ const Fade = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd
|
|
|
3731
3767
|
triggerBrowserReflow(node);
|
|
3732
3768
|
onEnter == null || onEnter(node, isAppearing);
|
|
3733
3769
|
}, [onEnter]);
|
|
3734
|
-
const {
|
|
3735
|
-
major
|
|
3736
|
-
} = getReactVersion();
|
|
3737
|
-
const childRef = major >= 19 ? children.props.ref : children.ref;
|
|
3738
3770
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_TransitionWrapper, {
|
|
3739
3771
|
ref: ref,
|
|
3740
3772
|
addEndListener: transitionEndListener,
|
|
3741
3773
|
...props,
|
|
3742
3774
|
onEnter: handleEnter,
|
|
3743
|
-
childRef:
|
|
3775
|
+
childRef: getChildRef(children),
|
|
3744
3776
|
children: (status, innerProps) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement(children, {
|
|
3745
3777
|
...innerProps,
|
|
3746
3778
|
className: classnames_default()('fade', className, children.props.className, fadeStyles[status], transitionClasses[status])
|
|
3747
3779
|
})
|
|
3748
3780
|
}, void 0, false, {
|
|
3749
3781
|
fileName: Fade_jsxFileName,
|
|
3750
|
-
lineNumber:
|
|
3782
|
+
lineNumber: 118,
|
|
3751
3783
|
columnNumber: 7
|
|
3752
3784
|
}, undefined);
|
|
3753
3785
|
});
|
|
@@ -4711,6 +4743,40 @@ function useUpdateEffect(fn, deps) {
|
|
|
4711
4743
|
}, deps);
|
|
4712
4744
|
}
|
|
4713
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
|
+
}
|
|
4714
4780
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useUpdatedRef.js
|
|
4715
4781
|
|
|
4716
4782
|
|
|
@@ -4777,7 +4843,7 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
4777
4843
|
* ```
|
|
4778
4844
|
*/
|
|
4779
4845
|
function useTimeout() {
|
|
4780
|
-
const isMounted =
|
|
4846
|
+
const isMounted = useMounted_useMounted();
|
|
4781
4847
|
|
|
4782
4848
|
// types are confused between node and web here IDK
|
|
4783
4849
|
const handleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
|
|
@@ -5621,7 +5687,7 @@ function esm_useUncontrolled(props, config) {
|
|
|
5621
5687
|
});
|
|
5622
5688
|
}, props);
|
|
5623
5689
|
}
|
|
5624
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useForceUpdate.js
|
|
5690
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useForceUpdate.js
|
|
5625
5691
|
|
|
5626
5692
|
|
|
5627
5693
|
/**
|
|
@@ -5643,7 +5709,7 @@ function esm_useUncontrolled(props, config) {
|
|
|
5643
5709
|
function useForceUpdate() {
|
|
5644
5710
|
// The toggling state value is designed to defeat React optimizations for skipping
|
|
5645
5711
|
// updates when they are strictly equal to the last state value
|
|
5646
|
-
const [, dispatch] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useReducer)(
|
|
5712
|
+
const [, dispatch] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useReducer)(revision => revision + 1, 0);
|
|
5647
5713
|
return dispatch;
|
|
5648
5714
|
}
|
|
5649
5715
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/DropdownContext.js
|
|
@@ -5736,7 +5802,7 @@ function dequal(foo, bar) {
|
|
|
5736
5802
|
return foo !== foo && bar !== bar;
|
|
5737
5803
|
}
|
|
5738
5804
|
|
|
5739
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useSafeState.js
|
|
5805
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useSafeState.js
|
|
5740
5806
|
|
|
5741
5807
|
|
|
5742
5808
|
|
|
@@ -7468,17 +7534,14 @@ const popper_createPopper = popperGenerator({
|
|
|
7468
7534
|
|
|
7469
7535
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/usePopper.js
|
|
7470
7536
|
const usePopper_excluded = ["enabled", "placement", "strategy", "modifiers"];
|
|
7471
|
-
function usePopper_objectWithoutPropertiesLoose(
|
|
7472
|
-
if (
|
|
7473
|
-
var
|
|
7474
|
-
var
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
key = sourceKeys[i];
|
|
7478
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
7479
|
-
target[key] = source[key];
|
|
7537
|
+
function usePopper_objectWithoutPropertiesLoose(r, e) {
|
|
7538
|
+
if (null == r) return {};
|
|
7539
|
+
var t = {};
|
|
7540
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
7541
|
+
if (e.indexOf(n) >= 0) continue;
|
|
7542
|
+
t[n] = r[n];
|
|
7480
7543
|
}
|
|
7481
|
-
return
|
|
7544
|
+
return t;
|
|
7482
7545
|
}
|
|
7483
7546
|
|
|
7484
7547
|
|
|
@@ -7697,13 +7760,18 @@ 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 =
|
|
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;
|
|
7767
|
+
} else {
|
|
7768
|
+
// When clicking on scrollbars within current target, click events are not triggered, so this ref
|
|
7769
|
+
// is never reset inside `handleMouseCapture`. This would cause a bug where it requires 2 clicks
|
|
7770
|
+
// to close the overlay.
|
|
7771
|
+
waitingForTrigger.current = false;
|
|
7704
7772
|
}
|
|
7705
7773
|
});
|
|
7706
|
-
const handleMouse =
|
|
7774
|
+
const handleMouse = useEventCallback_useEventCallback(e => {
|
|
7707
7775
|
if (!preventMouseClickOutsideRef.current) {
|
|
7708
7776
|
onClickOutside(e);
|
|
7709
7777
|
}
|
|
@@ -7815,17 +7883,14 @@ function mergeOptionsWithPopperConfig({
|
|
|
7815
7883
|
}
|
|
7816
7884
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/DropdownMenu.js
|
|
7817
7885
|
const DropdownMenu_excluded = ["children", "usePopper"];
|
|
7818
|
-
function DropdownMenu_objectWithoutPropertiesLoose(
|
|
7819
|
-
if (
|
|
7820
|
-
var
|
|
7821
|
-
var
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
key = sourceKeys[i];
|
|
7825
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
7826
|
-
target[key] = source[key];
|
|
7886
|
+
function DropdownMenu_objectWithoutPropertiesLoose(r, e) {
|
|
7887
|
+
if (null == r) return {};
|
|
7888
|
+
var t = {};
|
|
7889
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
7890
|
+
if (e.indexOf(n) >= 0) continue;
|
|
7891
|
+
t[n] = r[n];
|
|
7827
7892
|
}
|
|
7828
|
-
return
|
|
7893
|
+
return t;
|
|
7829
7894
|
}
|
|
7830
7895
|
|
|
7831
7896
|
|
|
@@ -7835,7 +7900,6 @@ function DropdownMenu_objectWithoutPropertiesLoose(source, excluded) {
|
|
|
7835
7900
|
|
|
7836
7901
|
|
|
7837
7902
|
|
|
7838
|
-
|
|
7839
7903
|
const DropdownMenu_noop = () => {};
|
|
7840
7904
|
|
|
7841
7905
|
/**
|
|
@@ -8096,7 +8160,6 @@ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
|
8096
8160
|
|
|
8097
8161
|
|
|
8098
8162
|
|
|
8099
|
-
|
|
8100
8163
|
const isRoleMenu = el => {
|
|
8101
8164
|
var _el$getAttribute;
|
|
8102
8165
|
return ((_el$getAttribute = el.getAttribute('role')) == null ? void 0 : _el$getAttribute.toLowerCase()) === 'menu';
|
|
@@ -8180,17 +8243,14 @@ function dataProp(property) {
|
|
|
8180
8243
|
}
|
|
8181
8244
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/DropdownItem.js
|
|
8182
8245
|
const DropdownItem_excluded = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
8183
|
-
function DropdownItem_objectWithoutPropertiesLoose(
|
|
8184
|
-
if (
|
|
8185
|
-
var
|
|
8186
|
-
var
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
key = sourceKeys[i];
|
|
8190
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
8191
|
-
target[key] = source[key];
|
|
8246
|
+
function DropdownItem_objectWithoutPropertiesLoose(r, e) {
|
|
8247
|
+
if (null == r) return {};
|
|
8248
|
+
var t = {};
|
|
8249
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
8250
|
+
if (e.indexOf(n) >= 0) continue;
|
|
8251
|
+
t[n] = r[n];
|
|
8192
8252
|
}
|
|
8193
|
-
return
|
|
8253
|
+
return t;
|
|
8194
8254
|
}
|
|
8195
8255
|
|
|
8196
8256
|
|
|
@@ -8218,7 +8278,7 @@ function useDropdownItem({
|
|
|
8218
8278
|
} = navContext || {};
|
|
8219
8279
|
const eventKey = makeEventKey(key, href);
|
|
8220
8280
|
const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;
|
|
8221
|
-
const handleClick =
|
|
8281
|
+
const handleClick = useEventCallback_useEventCallback(event => {
|
|
8222
8282
|
if (disabled) return;
|
|
8223
8283
|
onClick == null ? void 0 : onClick(event);
|
|
8224
8284
|
if (onSelectCtx && !event.isPropagationStopped()) {
|
|
@@ -8334,7 +8394,7 @@ function Dropdown({
|
|
|
8334
8394
|
source
|
|
8335
8395
|
});
|
|
8336
8396
|
}, [onToggle]);
|
|
8337
|
-
const handleSelect =
|
|
8397
|
+
const handleSelect = useEventCallback_useEventCallback((key, event) => {
|
|
8338
8398
|
onSelect == null ? void 0 : onSelect(key, event);
|
|
8339
8399
|
toggle(false, event, 'select');
|
|
8340
8400
|
if (!event.isPropagationStopped()) {
|
|
@@ -8353,12 +8413,12 @@ function Dropdown({
|
|
|
8353
8413
|
if (menuElement && lastShow && !show) {
|
|
8354
8414
|
focusInDropdown.current = menuElement.contains(menuElement.ownerDocument.activeElement);
|
|
8355
8415
|
}
|
|
8356
|
-
const focusToggle =
|
|
8416
|
+
const focusToggle = useEventCallback_useEventCallback(() => {
|
|
8357
8417
|
if (toggleElement && toggleElement.focus) {
|
|
8358
8418
|
toggleElement.focus();
|
|
8359
8419
|
}
|
|
8360
8420
|
});
|
|
8361
|
-
const maybeFocusFirst =
|
|
8421
|
+
const maybeFocusFirst = useEventCallback_useEventCallback(() => {
|
|
8362
8422
|
const type = lastSourceEvent.current;
|
|
8363
8423
|
let focusType = focusFirstItemOnShow;
|
|
8364
8424
|
if (focusType == null) {
|
|
@@ -8617,6 +8677,24 @@ const DropdownItemText = /*#__PURE__*/external_root_React_commonjs2_react_common
|
|
|
8617
8677
|
});
|
|
8618
8678
|
DropdownItemText.displayName = 'DropdownItemText';
|
|
8619
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);
|
|
8620
8698
|
;// CONCATENATED MODULE: ./src/InputGroupContext.tsx
|
|
8621
8699
|
|
|
8622
8700
|
const InputGroupContext_context = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
|
|
@@ -8795,7 +8873,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
|
|
|
8795
8873
|
placement
|
|
8796
8874
|
});
|
|
8797
8875
|
menuProps.ref = esm_useMergedRefs(useWrappedRefWithWarning(ref, 'DropdownMenu'), menuProps.ref);
|
|
8798
|
-
|
|
8876
|
+
esm_useIsomorphicEffect(() => {
|
|
8799
8877
|
// Popper's initial position for the menu is incorrect when
|
|
8800
8878
|
// renderOnMount=true. Need to call update() to correct it.
|
|
8801
8879
|
if (show) popper == null || popper.update();
|
|
@@ -9057,17 +9135,17 @@ const Dropdown_Dropdown = /*#__PURE__*/external_root_React_commonjs2_react_commo
|
|
|
9057
9135
|
className: classnames_default()(className, show && 'show', directionClasses[drop])
|
|
9058
9136
|
}, void 0, false, {
|
|
9059
9137
|
fileName: Dropdown_jsxFileName,
|
|
9060
|
-
lineNumber:
|
|
9138
|
+
lineNumber: 209,
|
|
9061
9139
|
columnNumber: 13
|
|
9062
9140
|
}, undefined)
|
|
9063
9141
|
}, void 0, false, {
|
|
9064
9142
|
fileName: Dropdown_jsxFileName,
|
|
9065
|
-
lineNumber:
|
|
9143
|
+
lineNumber: 198,
|
|
9066
9144
|
columnNumber: 9
|
|
9067
9145
|
}, undefined)
|
|
9068
9146
|
}, void 0, false, {
|
|
9069
9147
|
fileName: Dropdown_jsxFileName,
|
|
9070
|
-
lineNumber:
|
|
9148
|
+
lineNumber: 197,
|
|
9071
9149
|
columnNumber: 7
|
|
9072
9150
|
}, undefined);
|
|
9073
9151
|
});
|
|
@@ -10355,23 +10433,54 @@ InputGroup.displayName = 'InputGroup';
|
|
|
10355
10433
|
Radio: InputGroupRadio,
|
|
10356
10434
|
Checkbox: InputGroupCheckbox
|
|
10357
10435
|
}));
|
|
10436
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergedRefs.js
|
|
10437
|
+
|
|
10438
|
+
const useMergedRefs_toFnRef = ref => !ref || typeof ref === 'function' ? ref : value => {
|
|
10439
|
+
ref.current = value;
|
|
10440
|
+
};
|
|
10441
|
+
function useMergedRefs_mergeRefs(refA, refB) {
|
|
10442
|
+
const a = useMergedRefs_toFnRef(refA);
|
|
10443
|
+
const b = useMergedRefs_toFnRef(refB);
|
|
10444
|
+
return value => {
|
|
10445
|
+
if (a) a(value);
|
|
10446
|
+
if (b) b(value);
|
|
10447
|
+
};
|
|
10448
|
+
}
|
|
10449
|
+
|
|
10450
|
+
/**
|
|
10451
|
+
* Create and returns a single callback ref composed from two other Refs.
|
|
10452
|
+
*
|
|
10453
|
+
* ```tsx
|
|
10454
|
+
* const Button = React.forwardRef((props, ref) => {
|
|
10455
|
+
* const [element, attachRef] = useCallbackRef<HTMLButtonElement>();
|
|
10456
|
+
* const mergedRef = useMergedRefs(ref, attachRef);
|
|
10457
|
+
*
|
|
10458
|
+
* return <button ref={mergedRef} {...props}/>
|
|
10459
|
+
* })
|
|
10460
|
+
* ```
|
|
10461
|
+
*
|
|
10462
|
+
* @param refA A Callback or mutable Ref
|
|
10463
|
+
* @param refB A Callback or mutable Ref
|
|
10464
|
+
* @category refs
|
|
10465
|
+
*/
|
|
10466
|
+
function useMergedRefs_useMergedRefs(refA, refB) {
|
|
10467
|
+
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => useMergedRefs_mergeRefs(refA, refB), [refA, refB]);
|
|
10468
|
+
}
|
|
10469
|
+
/* harmony default export */ const hooks_esm_useMergedRefs = (useMergedRefs_useMergedRefs);
|
|
10358
10470
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/TabContext.js
|
|
10359
10471
|
|
|
10360
10472
|
const TabContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
|
|
10361
10473
|
/* harmony default export */ const esm_TabContext = (TabContext);
|
|
10362
10474
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/NavItem.js
|
|
10363
10475
|
const NavItem_excluded = ["as", "active", "eventKey"];
|
|
10364
|
-
function NavItem_objectWithoutPropertiesLoose(
|
|
10365
|
-
if (
|
|
10366
|
-
var
|
|
10367
|
-
var
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
key = sourceKeys[i];
|
|
10371
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
10372
|
-
target[key] = source[key];
|
|
10476
|
+
function NavItem_objectWithoutPropertiesLoose(r, e) {
|
|
10477
|
+
if (null == r) return {};
|
|
10478
|
+
var t = {};
|
|
10479
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
10480
|
+
if (e.indexOf(n) >= 0) continue;
|
|
10481
|
+
t[n] = r[n];
|
|
10373
10482
|
}
|
|
10374
|
-
return
|
|
10483
|
+
return t;
|
|
10375
10484
|
}
|
|
10376
10485
|
|
|
10377
10486
|
|
|
@@ -10428,7 +10537,7 @@ function useNavItem({
|
|
|
10428
10537
|
props['aria-disabled'] = true;
|
|
10429
10538
|
}
|
|
10430
10539
|
}
|
|
10431
|
-
props.onClick =
|
|
10540
|
+
props.onClick = useEventCallback_useEventCallback(e => {
|
|
10432
10541
|
if (disabled) return;
|
|
10433
10542
|
onClick == null ? void 0 : onClick(e);
|
|
10434
10543
|
if (key == null) {
|
|
@@ -10464,17 +10573,14 @@ NavItem.displayName = 'NavItem';
|
|
|
10464
10573
|
/* harmony default export */ const esm_NavItem = (NavItem);
|
|
10465
10574
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Nav.js
|
|
10466
10575
|
const Nav_excluded = ["as", "onSelect", "activeKey", "role", "onKeyDown"];
|
|
10467
|
-
function Nav_objectWithoutPropertiesLoose(
|
|
10468
|
-
if (
|
|
10469
|
-
var
|
|
10470
|
-
var
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
key = sourceKeys[i];
|
|
10474
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
10475
|
-
target[key] = source[key];
|
|
10576
|
+
function Nav_objectWithoutPropertiesLoose(r, e) {
|
|
10577
|
+
if (null == r) return {};
|
|
10578
|
+
var t = {};
|
|
10579
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
10580
|
+
if (e.indexOf(n) >= 0) continue;
|
|
10581
|
+
t[n] = r[n];
|
|
10476
10582
|
}
|
|
10477
|
-
return
|
|
10583
|
+
return t;
|
|
10478
10584
|
}
|
|
10479
10585
|
|
|
10480
10586
|
|
|
@@ -10564,7 +10670,7 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
|
|
|
10564
10670
|
}
|
|
10565
10671
|
needsRefocusRef.current = false;
|
|
10566
10672
|
});
|
|
10567
|
-
const mergedRef =
|
|
10673
|
+
const mergedRef = hooks_esm_useMergedRefs(ref, listNode);
|
|
10568
10674
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_SelectableContext.Provider, {
|
|
10569
10675
|
value: handleSelect,
|
|
10570
10676
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_NavContext.Provider, {
|
|
@@ -10775,6 +10881,36 @@ function scrollbarSize(recalc) {
|
|
|
10775
10881
|
}
|
|
10776
10882
|
return size;
|
|
10777
10883
|
}
|
|
10884
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
|
|
10885
|
+
|
|
10886
|
+
|
|
10887
|
+
/**
|
|
10888
|
+
* A convenience hook around `useState` designed to be paired with
|
|
10889
|
+
* the component [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) api.
|
|
10890
|
+
* Callback refs are useful over `useRef()` when you need to respond to the ref being set
|
|
10891
|
+
* instead of lazily accessing it in an effect.
|
|
10892
|
+
*
|
|
10893
|
+
* ```ts
|
|
10894
|
+
* const [element, attachRef] = useCallbackRef<HTMLDivElement>()
|
|
10895
|
+
*
|
|
10896
|
+
* useEffect(() => {
|
|
10897
|
+
* if (!element) return
|
|
10898
|
+
*
|
|
10899
|
+
* const calendar = new FullCalendar.Calendar(element)
|
|
10900
|
+
*
|
|
10901
|
+
* return () => {
|
|
10902
|
+
* calendar.destroy()
|
|
10903
|
+
* }
|
|
10904
|
+
* }, [element])
|
|
10905
|
+
*
|
|
10906
|
+
* return <div ref={attachRef} />
|
|
10907
|
+
* ```
|
|
10908
|
+
*
|
|
10909
|
+
* @category refs
|
|
10910
|
+
*/
|
|
10911
|
+
function useCallbackRef_useCallbackRef() {
|
|
10912
|
+
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
|
|
10913
|
+
}
|
|
10778
10914
|
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/activeElement.js
|
|
10779
10915
|
|
|
10780
10916
|
/**
|
|
@@ -10801,6 +10937,35 @@ function activeElement(doc) {
|
|
|
10801
10937
|
return doc.body;
|
|
10802
10938
|
}
|
|
10803
10939
|
}
|
|
10940
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useUpdatedRef.js
|
|
10941
|
+
|
|
10942
|
+
|
|
10943
|
+
/**
|
|
10944
|
+
* Returns a ref that is immediately updated with the new value
|
|
10945
|
+
*
|
|
10946
|
+
* @param value The Ref value
|
|
10947
|
+
* @category refs
|
|
10948
|
+
*/
|
|
10949
|
+
function useUpdatedRef_useUpdatedRef(value) {
|
|
10950
|
+
const valueRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
|
|
10951
|
+
valueRef.current = value;
|
|
10952
|
+
return valueRef;
|
|
10953
|
+
}
|
|
10954
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useWillUnmount.js
|
|
10955
|
+
|
|
10956
|
+
|
|
10957
|
+
|
|
10958
|
+
/**
|
|
10959
|
+
* Attach a callback that fires when a component unmounts
|
|
10960
|
+
*
|
|
10961
|
+
* @param fn Handler to run when the component unmounts
|
|
10962
|
+
* @deprecated Use `useMounted` and normal effects, this is not StrictMode safe
|
|
10963
|
+
* @category effects
|
|
10964
|
+
*/
|
|
10965
|
+
function useWillUnmount_useWillUnmount(fn) {
|
|
10966
|
+
const onUnmount = useUpdatedRef_useUpdatedRef(fn);
|
|
10967
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => () => onUnmount.current(), []);
|
|
10968
|
+
}
|
|
10804
10969
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/getScrollbarWidth.js
|
|
10805
10970
|
/**
|
|
10806
10971
|
* Get the width of the vertical window scrollbar if it's visible
|
|
@@ -10956,13 +11121,13 @@ function NoopTransition({
|
|
|
10956
11121
|
}) {
|
|
10957
11122
|
const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
10958
11123
|
const hasEnteredRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(inProp);
|
|
10959
|
-
const handleExited =
|
|
11124
|
+
const handleExited = useEventCallback_useEventCallback(onExited);
|
|
10960
11125
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
10961
11126
|
if (inProp) hasEnteredRef.current = true;else {
|
|
10962
11127
|
handleExited(ref.current);
|
|
10963
11128
|
}
|
|
10964
11129
|
}, [inProp, handleExited]);
|
|
10965
|
-
const combinedRef =
|
|
11130
|
+
const combinedRef = hooks_esm_useMergedRefs(ref, children.ref);
|
|
10966
11131
|
const child = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
|
|
10967
11132
|
ref: combinedRef
|
|
10968
11133
|
});
|
|
@@ -10978,17 +11143,14 @@ function NoopTransition({
|
|
|
10978
11143
|
/* harmony default export */ const esm_NoopTransition = (NoopTransition);
|
|
10979
11144
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/useRTGTransitionProps.js
|
|
10980
11145
|
const useRTGTransitionProps_excluded = ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "addEndListener", "children"];
|
|
10981
|
-
function useRTGTransitionProps_objectWithoutPropertiesLoose(
|
|
10982
|
-
if (
|
|
10983
|
-
var
|
|
10984
|
-
var
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
key = sourceKeys[i];
|
|
10988
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
10989
|
-
target[key] = source[key];
|
|
11146
|
+
function useRTGTransitionProps_objectWithoutPropertiesLoose(r, e) {
|
|
11147
|
+
if (null == r) return {};
|
|
11148
|
+
var t = {};
|
|
11149
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
11150
|
+
if (e.indexOf(n) >= 0) continue;
|
|
11151
|
+
t[n] = r[n];
|
|
10990
11152
|
}
|
|
10991
|
-
return
|
|
11153
|
+
return t;
|
|
10992
11154
|
}
|
|
10993
11155
|
|
|
10994
11156
|
|
|
@@ -11012,12 +11174,8 @@ function useRTGTransitionProps(_ref) {
|
|
|
11012
11174
|
children
|
|
11013
11175
|
} = _ref,
|
|
11014
11176
|
props = useRTGTransitionProps_objectWithoutPropertiesLoose(_ref, useRTGTransitionProps_excluded);
|
|
11015
|
-
const {
|
|
11016
|
-
major
|
|
11017
|
-
} = getReactVersion();
|
|
11018
|
-
const childRef = major >= 19 ? children.props.ref : children.ref;
|
|
11019
11177
|
const nodeRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
11020
|
-
const mergedRef =
|
|
11178
|
+
const mergedRef = hooks_esm_useMergedRefs(nodeRef, getChildRef(children));
|
|
11021
11179
|
const normalize = callback => param => {
|
|
11022
11180
|
if (callback && nodeRef.current) {
|
|
11023
11181
|
callback(nodeRef.current, param);
|
|
@@ -11062,17 +11220,14 @@ function useRTGTransitionProps(_ref) {
|
|
|
11062
11220
|
}
|
|
11063
11221
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/RTGTransition.js
|
|
11064
11222
|
const RTGTransition_excluded = ["component"];
|
|
11065
|
-
function RTGTransition_objectWithoutPropertiesLoose(
|
|
11066
|
-
if (
|
|
11067
|
-
var
|
|
11068
|
-
var
|
|
11069
|
-
|
|
11070
|
-
|
|
11071
|
-
key = sourceKeys[i];
|
|
11072
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
11073
|
-
target[key] = source[key];
|
|
11223
|
+
function RTGTransition_objectWithoutPropertiesLoose(r, e) {
|
|
11224
|
+
if (null == r) return {};
|
|
11225
|
+
var t = {};
|
|
11226
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
11227
|
+
if (e.indexOf(n) >= 0) continue;
|
|
11228
|
+
t[n] = r[n];
|
|
11074
11229
|
}
|
|
11075
|
-
return
|
|
11230
|
+
return t;
|
|
11076
11231
|
}
|
|
11077
11232
|
|
|
11078
11233
|
|
|
@@ -11103,7 +11258,7 @@ function useTransition({
|
|
|
11103
11258
|
}) {
|
|
11104
11259
|
const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
11105
11260
|
const isInitialRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
|
|
11106
|
-
const handleTransition =
|
|
11261
|
+
const handleTransition = useEventCallback_useEventCallback(onTransition);
|
|
11107
11262
|
useIsomorphicEffect(() => {
|
|
11108
11263
|
if (!ref.current) {
|
|
11109
11264
|
return undefined;
|
|
@@ -11165,7 +11320,7 @@ function ImperativeTransition({
|
|
|
11165
11320
|
});
|
|
11166
11321
|
}
|
|
11167
11322
|
});
|
|
11168
|
-
const combinedRef =
|
|
11323
|
+
const combinedRef = hooks_esm_useMergedRefs(ref, children.ref);
|
|
11169
11324
|
return exited && !inProp ? null : /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
|
|
11170
11325
|
ref: combinedRef
|
|
11171
11326
|
});
|
|
@@ -11185,17 +11340,14 @@ function renderTransition(component, runTransition, props) {
|
|
|
11185
11340
|
}
|
|
11186
11341
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Modal.js
|
|
11187
11342
|
const Modal_excluded = ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "runTransition", "backdropTransition", "runBackdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"];
|
|
11188
|
-
function Modal_objectWithoutPropertiesLoose(
|
|
11189
|
-
if (
|
|
11190
|
-
var
|
|
11191
|
-
var
|
|
11192
|
-
|
|
11193
|
-
|
|
11194
|
-
key = sourceKeys[i];
|
|
11195
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
11196
|
-
target[key] = source[key];
|
|
11343
|
+
function Modal_objectWithoutPropertiesLoose(r, e) {
|
|
11344
|
+
if (null == r) return {};
|
|
11345
|
+
var t = {};
|
|
11346
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
11347
|
+
if (e.indexOf(n) >= 0) continue;
|
|
11348
|
+
t[n] = r[n];
|
|
11197
11349
|
}
|
|
11198
|
-
return
|
|
11350
|
+
return t;
|
|
11199
11351
|
}
|
|
11200
11352
|
/* eslint-disable @typescript-eslint/no-use-before-define, react/prop-types */
|
|
11201
11353
|
|
|
@@ -11216,9 +11368,13 @@ function Modal_objectWithoutPropertiesLoose(source, excluded) {
|
|
|
11216
11368
|
|
|
11217
11369
|
|
|
11218
11370
|
|
|
11371
|
+
let manager;
|
|
11219
11372
|
|
|
11373
|
+
/*
|
|
11374
|
+
Modal props are split into a version with and without index signature so that you can fully use them in another projects
|
|
11375
|
+
This is due to Typescript not playing well with index signatures e.g. when using Omit
|
|
11376
|
+
*/
|
|
11220
11377
|
|
|
11221
|
-
let manager;
|
|
11222
11378
|
function getManager(window) {
|
|
11223
11379
|
if (!manager) manager = new esm_ModalManager({
|
|
11224
11380
|
ownerDocument: window == null ? void 0 : window.document
|
|
@@ -11293,7 +11449,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
|
|
|
11293
11449
|
if (show && exited) {
|
|
11294
11450
|
setExited(false);
|
|
11295
11451
|
}
|
|
11296
|
-
const handleShow =
|
|
11452
|
+
const handleShow = useEventCallback_useEventCallback(() => {
|
|
11297
11453
|
modal.add();
|
|
11298
11454
|
removeKeydownListenerRef.current = esm_listen(document, 'keydown', handleDocumentKeyDown);
|
|
11299
11455
|
removeFocusListenerRef.current = esm_listen(document, 'focus',
|
|
@@ -11315,7 +11471,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
|
|
|
11315
11471
|
}
|
|
11316
11472
|
}
|
|
11317
11473
|
});
|
|
11318
|
-
const handleHide =
|
|
11474
|
+
const handleHide = useEventCallback_useEventCallback(() => {
|
|
11319
11475
|
modal.remove();
|
|
11320
11476
|
removeKeydownListenerRef.current == null ? void 0 : removeKeydownListenerRef.current();
|
|
11321
11477
|
removeFocusListenerRef.current == null ? void 0 : removeFocusListenerRef.current();
|
|
@@ -11343,13 +11499,13 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
|
|
|
11343
11499
|
if (!exited) return;
|
|
11344
11500
|
handleHide();
|
|
11345
11501
|
}, [exited, handleHide]);
|
|
11346
|
-
|
|
11502
|
+
useWillUnmount_useWillUnmount(() => {
|
|
11347
11503
|
handleHide();
|
|
11348
11504
|
});
|
|
11349
11505
|
|
|
11350
11506
|
// --------------------------------
|
|
11351
11507
|
|
|
11352
|
-
const handleEnforceFocus =
|
|
11508
|
+
const handleEnforceFocus = useEventCallback_useEventCallback(() => {
|
|
11353
11509
|
if (!enforceFocus || !isMounted() || !modal.isTopModal()) {
|
|
11354
11510
|
return;
|
|
11355
11511
|
}
|
|
@@ -11358,7 +11514,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
|
|
|
11358
11514
|
modal.dialog.focus();
|
|
11359
11515
|
}
|
|
11360
11516
|
});
|
|
11361
|
-
const handleBackdropClick =
|
|
11517
|
+
const handleBackdropClick = useEventCallback_useEventCallback(e => {
|
|
11362
11518
|
if (e.target !== e.currentTarget) {
|
|
11363
11519
|
return;
|
|
11364
11520
|
}
|
|
@@ -11367,7 +11523,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
|
|
|
11367
11523
|
onHide();
|
|
11368
11524
|
}
|
|
11369
11525
|
});
|
|
11370
|
-
const handleDocumentKeyDown =
|
|
11526
|
+
const handleDocumentKeyDown = useEventCallback_useEventCallback(e => {
|
|
11371
11527
|
if (keyboard && isEscKey(e) && modal.isTopModal()) {
|
|
11372
11528
|
onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);
|
|
11373
11529
|
if (!e.defaultPrevented) {
|
|
@@ -12041,7 +12197,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
12041
12197
|
const waitingForMouseUpRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
|
|
12042
12198
|
const ignoreBackdropClickRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
|
|
12043
12199
|
const removeStaticModalAnimationRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
12044
|
-
const [modal, setModalRef] =
|
|
12200
|
+
const [modal, setModalRef] = useCallbackRef_useCallbackRef();
|
|
12045
12201
|
const mergedRef = esm_useMergedRefs(ref, setModalRef);
|
|
12046
12202
|
const handleHide = useEventCallback(onHide);
|
|
12047
12203
|
const isRTL = useIsRTL();
|
|
@@ -12236,9 +12392,6 @@ Modal_Modal.propTypes = Modal_propTypes;
|
|
|
12236
12392
|
TRANSITION_DURATION: 300,
|
|
12237
12393
|
BACKDROP_TRANSITION_DURATION: 150
|
|
12238
12394
|
}));
|
|
12239
|
-
// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/all.js
|
|
12240
|
-
var lib_all = __webpack_require__(526);
|
|
12241
|
-
var all_default = /*#__PURE__*/__webpack_require__.n(lib_all);
|
|
12242
12395
|
;// CONCATENATED MODULE: ./src/NavItem.tsx
|
|
12243
12396
|
var NavItem_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/NavItem.tsx";
|
|
12244
12397
|
|
|
@@ -12384,7 +12537,7 @@ const Nav_propTypes = {
|
|
|
12384
12537
|
*
|
|
12385
12538
|
* @type {boolean}
|
|
12386
12539
|
*/
|
|
12387
|
-
justify:
|
|
12540
|
+
justify: (0,lib/* all */.Q7)((prop_types_default()).bool, ({
|
|
12388
12541
|
justify,
|
|
12389
12542
|
navbar
|
|
12390
12543
|
}) => justify && navbar ? Error('justify navbar `Nav`s are not supported') : null),
|
|
@@ -12662,7 +12815,7 @@ const getMatcher = (query, targetWindow) => {
|
|
|
12662
12815
|
function useMediaQuery(query, targetWindow = typeof window === 'undefined' ? undefined : window) {
|
|
12663
12816
|
const mql = getMatcher(query, targetWindow);
|
|
12664
12817
|
const [matches, setMatches] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(() => mql ? mql.matches : false);
|
|
12665
|
-
|
|
12818
|
+
esm_useIsomorphicEffect(() => {
|
|
12666
12819
|
let mql = getMatcher(query, targetWindow);
|
|
12667
12820
|
if (!mql) {
|
|
12668
12821
|
return setMatches(false);
|
|
@@ -12837,6 +12990,7 @@ var OffcanvasToggling_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-
|
|
|
12837
12990
|
|
|
12838
12991
|
|
|
12839
12992
|
|
|
12993
|
+
|
|
12840
12994
|
const OffcanvasToggling_propTypes = {
|
|
12841
12995
|
/**
|
|
12842
12996
|
* Show the component; triggers the fade in or fade out animation
|
|
@@ -12909,14 +13063,14 @@ const OffcanvasToggling = /*#__PURE__*/external_root_React_commonjs2_react_commo
|
|
|
12909
13063
|
unmountOnExit: unmountOnExit,
|
|
12910
13064
|
appear: appear,
|
|
12911
13065
|
...props,
|
|
12912
|
-
childRef: children
|
|
13066
|
+
childRef: getChildRef(children),
|
|
12913
13067
|
children: (status, innerProps) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement(children, {
|
|
12914
13068
|
...innerProps,
|
|
12915
13069
|
className: classnames_default()(className, children.props.className, (status === ENTERING || status === EXITING) && `${bsPrefix}-toggling`, transitionStyles[status])
|
|
12916
13070
|
})
|
|
12917
13071
|
}, void 0, false, {
|
|
12918
13072
|
fileName: OffcanvasToggling_jsxFileName,
|
|
12919
|
-
lineNumber:
|
|
13073
|
+
lineNumber: 109,
|
|
12920
13074
|
columnNumber: 7
|
|
12921
13075
|
}, undefined);
|
|
12922
13076
|
});
|
|
@@ -13651,7 +13805,7 @@ function useRootClose(ref, onRootClose, {
|
|
|
13651
13805
|
disabled,
|
|
13652
13806
|
clickTrigger
|
|
13653
13807
|
});
|
|
13654
|
-
const handleKeyUp =
|
|
13808
|
+
const handleKeyUp = useEventCallback_useEventCallback(e => {
|
|
13655
13809
|
if (isEscKey(e)) {
|
|
13656
13810
|
onClose(e);
|
|
13657
13811
|
}
|
|
@@ -13704,7 +13858,7 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
|
|
|
13704
13858
|
} = props;
|
|
13705
13859
|
const [rootElement, attachRef] = useCallbackRef();
|
|
13706
13860
|
const [arrowElement, attachArrowRef] = useCallbackRef();
|
|
13707
|
-
const mergedRef =
|
|
13861
|
+
const mergedRef = hooks_esm_useMergedRefs(attachRef, outerRef);
|
|
13708
13862
|
const container = useWaitForDOMRef(props.container);
|
|
13709
13863
|
const target = useWaitForDOMRef(props.target);
|
|
13710
13864
|
const [exited, setExited] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(!props.show);
|
|
@@ -14207,7 +14361,7 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
|
|
|
14207
14361
|
setFirstRenderedState(state);
|
|
14208
14362
|
popperConfig == null || popperConfig.onFirstUpdate == null || popperConfig.onFirstUpdate(state);
|
|
14209
14363
|
});
|
|
14210
|
-
|
|
14364
|
+
esm_useIsomorphicEffect(() => {
|
|
14211
14365
|
if (firstRenderedState && outerProps.target) {
|
|
14212
14366
|
// Must wait for target element to resolve before updating popper.
|
|
14213
14367
|
popperRef.current.scheduleUpdate == null || popperRef.current.scheduleUpdate();
|
|
@@ -14294,6 +14448,7 @@ var OverlayTrigger_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-boo
|
|
|
14294
14448
|
|
|
14295
14449
|
|
|
14296
14450
|
|
|
14451
|
+
|
|
14297
14452
|
function normalizeDelay(delay) {
|
|
14298
14453
|
return delay && typeof delay === 'object' ? delay : {
|
|
14299
14454
|
show: delay,
|
|
@@ -14395,7 +14550,7 @@ const OverlayTrigger = ({
|
|
|
14395
14550
|
...props
|
|
14396
14551
|
}) => {
|
|
14397
14552
|
const triggerNodeRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
14398
|
-
const mergedRef = esm_useMergedRefs(triggerNodeRef, children
|
|
14553
|
+
const mergedRef = esm_useMergedRefs(triggerNodeRef, getChildRef(children));
|
|
14399
14554
|
const timeout = useTimeout();
|
|
14400
14555
|
const hoverStateRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)('');
|
|
14401
14556
|
const [show, setShow] = useUncontrolledProp(propsShow, defaultShow, onToggle);
|
|
@@ -14476,7 +14631,7 @@ const OverlayTrigger = ({
|
|
|
14476
14631
|
children: overlay
|
|
14477
14632
|
}, void 0, false, {
|
|
14478
14633
|
fileName: OverlayTrigger_jsxFileName,
|
|
14479
|
-
lineNumber:
|
|
14634
|
+
lineNumber: 308,
|
|
14480
14635
|
columnNumber: 7
|
|
14481
14636
|
}, undefined)]
|
|
14482
14637
|
}, void 0, true);
|
|
@@ -15403,17 +15558,14 @@ Stack.propTypes = Stack_propTypes;
|
|
|
15403
15558
|
const TabPanel_excluded = ["active", "eventKey", "mountOnEnter", "transition", "unmountOnExit", "role", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited"],
|
|
15404
15559
|
_excluded2 = ["activeKey", "getControlledId", "getControllerId"],
|
|
15405
15560
|
_excluded3 = ["as"];
|
|
15406
|
-
function TabPanel_objectWithoutPropertiesLoose(
|
|
15407
|
-
if (
|
|
15408
|
-
var
|
|
15409
|
-
var
|
|
15410
|
-
|
|
15411
|
-
|
|
15412
|
-
key = sourceKeys[i];
|
|
15413
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
15414
|
-
target[key] = source[key];
|
|
15561
|
+
function TabPanel_objectWithoutPropertiesLoose(r, e) {
|
|
15562
|
+
if (null == r) return {};
|
|
15563
|
+
var t = {};
|
|
15564
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
15565
|
+
if (e.indexOf(n) >= 0) continue;
|
|
15566
|
+
t[n] = r[n];
|
|
15415
15567
|
}
|
|
15416
|
-
return
|
|
15568
|
+
return t;
|
|
15417
15569
|
}
|
|
15418
15570
|
|
|
15419
15571
|
|