react-bootstrap 2.10.4 → 2.10.6
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/Fade.js +2 -1
- package/cjs/Form.d.ts +18 -18
- package/cjs/Nav.js +0 -1
- package/cjs/NavbarOffcanvas.js +11 -2
- package/cjs/Offcanvas.js +1 -8
- package/cjs/OffcanvasToggling.js +2 -1
- package/cjs/OverlayTrigger.js +2 -1
- package/cjs/ThemeProvider.d.ts +1 -1
- package/cjs/TransitionWrapper.d.ts +2 -2
- package/cjs/getInitialPopperStyles.d.ts +0 -1
- package/cjs/safeFindDOMNode.d.ts +0 -1
- package/cjs/useOverlayOffset.d.ts +0 -1
- package/dist/react-bootstrap.js +149 -164
- package/dist/react-bootstrap.min.js +1 -1
- package/esm/AccordionHeader.js +2 -0
- package/esm/Collapse.js +2 -1
- package/esm/Fade.js +2 -1
- package/esm/Form.d.ts +18 -18
- package/esm/Nav.js +0 -1
- package/esm/NavbarOffcanvas.js +11 -2
- package/esm/Offcanvas.js +2 -9
- package/esm/OffcanvasToggling.js +2 -1
- package/esm/OverlayTrigger.js +2 -1
- package/esm/ThemeProvider.d.ts +1 -1
- package/esm/TransitionWrapper.d.ts +2 -2
- package/esm/getInitialPopperStyles.d.ts +0 -1
- package/esm/safeFindDOMNode.d.ts +0 -1
- package/esm/useOverlayOffset.d.ts +0 -1
- package/package.json +4 -3
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
|
});
|
|
@@ -3445,17 +3471,14 @@ function useResizeObserver(element) {
|
|
|
3445
3471
|
var jsx_runtime = __webpack_require__(74);
|
|
3446
3472
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Button.js
|
|
3447
3473
|
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];
|
|
3474
|
+
function Button_objectWithoutPropertiesLoose(r, e) {
|
|
3475
|
+
if (null == r) return {};
|
|
3476
|
+
var t = {};
|
|
3477
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
3478
|
+
if (e.indexOf(n) >= 0) continue;
|
|
3479
|
+
t[n] = r[n];
|
|
3457
3480
|
}
|
|
3458
|
-
return
|
|
3481
|
+
return t;
|
|
3459
3482
|
}
|
|
3460
3483
|
|
|
3461
3484
|
|
|
@@ -3546,17 +3569,14 @@ Button.displayName = 'Button';
|
|
|
3546
3569
|
/* harmony default export */ const esm_Button = (Button);
|
|
3547
3570
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Anchor.js
|
|
3548
3571
|
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];
|
|
3572
|
+
function Anchor_objectWithoutPropertiesLoose(r, e) {
|
|
3573
|
+
if (null == r) return {};
|
|
3574
|
+
var t = {};
|
|
3575
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
3576
|
+
if (e.indexOf(n) >= 0) continue;
|
|
3577
|
+
t[n] = r[n];
|
|
3558
3578
|
}
|
|
3559
|
-
return
|
|
3579
|
+
return t;
|
|
3560
3580
|
}
|
|
3561
3581
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
3562
3582
|
/* eslint-disable jsx-a11y/anchor-has-content */
|
|
@@ -3636,6 +3656,7 @@ var Fade_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src
|
|
|
3636
3656
|
|
|
3637
3657
|
|
|
3638
3658
|
|
|
3659
|
+
|
|
3639
3660
|
const Fade_propTypes = {
|
|
3640
3661
|
/**
|
|
3641
3662
|
* Show the component; triggers the fade in or fade out animation
|
|
@@ -3722,14 +3743,14 @@ const Fade = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd
|
|
|
3722
3743
|
addEndListener: transitionEndListener,
|
|
3723
3744
|
...props,
|
|
3724
3745
|
onEnter: handleEnter,
|
|
3725
|
-
childRef: children
|
|
3746
|
+
childRef: getChildRef(children),
|
|
3726
3747
|
children: (status, innerProps) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement(children, {
|
|
3727
3748
|
...innerProps,
|
|
3728
3749
|
className: classnames_default()('fade', className, children.props.className, fadeStyles[status], transitionClasses[status])
|
|
3729
3750
|
})
|
|
3730
3751
|
}, void 0, false, {
|
|
3731
3752
|
fileName: Fade_jsxFileName,
|
|
3732
|
-
lineNumber:
|
|
3753
|
+
lineNumber: 118,
|
|
3733
3754
|
columnNumber: 7
|
|
3734
3755
|
}, undefined);
|
|
3735
3756
|
});
|
|
@@ -7450,17 +7471,14 @@ const popper_createPopper = popperGenerator({
|
|
|
7450
7471
|
|
|
7451
7472
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/usePopper.js
|
|
7452
7473
|
const usePopper_excluded = ["enabled", "placement", "strategy", "modifiers"];
|
|
7453
|
-
function usePopper_objectWithoutPropertiesLoose(
|
|
7454
|
-
if (
|
|
7455
|
-
var
|
|
7456
|
-
var
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
key = sourceKeys[i];
|
|
7460
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
7461
|
-
target[key] = source[key];
|
|
7474
|
+
function usePopper_objectWithoutPropertiesLoose(r, e) {
|
|
7475
|
+
if (null == r) return {};
|
|
7476
|
+
var t = {};
|
|
7477
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
7478
|
+
if (e.indexOf(n) >= 0) continue;
|
|
7479
|
+
t[n] = r[n];
|
|
7462
7480
|
}
|
|
7463
|
-
return
|
|
7481
|
+
return t;
|
|
7464
7482
|
}
|
|
7465
7483
|
|
|
7466
7484
|
|
|
@@ -7683,6 +7701,11 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
|
|
|
7683
7701
|
const currentTarget = getRefTarget(ref);
|
|
7684
7702
|
if (currentTarget && contains_contains(currentTarget, e.target)) {
|
|
7685
7703
|
waitingForTrigger.current = true;
|
|
7704
|
+
} else {
|
|
7705
|
+
// When clicking on scrollbars within current target, click events are not triggered, so this ref
|
|
7706
|
+
// is never reset inside `handleMouseCapture`. This would cause a bug where it requires 2 clicks
|
|
7707
|
+
// to close the overlay.
|
|
7708
|
+
waitingForTrigger.current = false;
|
|
7686
7709
|
}
|
|
7687
7710
|
});
|
|
7688
7711
|
const handleMouse = useEventCallback(e => {
|
|
@@ -7797,17 +7820,14 @@ function mergeOptionsWithPopperConfig({
|
|
|
7797
7820
|
}
|
|
7798
7821
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/DropdownMenu.js
|
|
7799
7822
|
const DropdownMenu_excluded = ["children", "usePopper"];
|
|
7800
|
-
function DropdownMenu_objectWithoutPropertiesLoose(
|
|
7801
|
-
if (
|
|
7802
|
-
var
|
|
7803
|
-
var
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
key = sourceKeys[i];
|
|
7807
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
7808
|
-
target[key] = source[key];
|
|
7823
|
+
function DropdownMenu_objectWithoutPropertiesLoose(r, e) {
|
|
7824
|
+
if (null == r) return {};
|
|
7825
|
+
var t = {};
|
|
7826
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
7827
|
+
if (e.indexOf(n) >= 0) continue;
|
|
7828
|
+
t[n] = r[n];
|
|
7809
7829
|
}
|
|
7810
|
-
return
|
|
7830
|
+
return t;
|
|
7811
7831
|
}
|
|
7812
7832
|
|
|
7813
7833
|
|
|
@@ -7817,7 +7837,6 @@ function DropdownMenu_objectWithoutPropertiesLoose(source, excluded) {
|
|
|
7817
7837
|
|
|
7818
7838
|
|
|
7819
7839
|
|
|
7820
|
-
|
|
7821
7840
|
const DropdownMenu_noop = () => {};
|
|
7822
7841
|
|
|
7823
7842
|
/**
|
|
@@ -8078,7 +8097,6 @@ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
|
8078
8097
|
|
|
8079
8098
|
|
|
8080
8099
|
|
|
8081
|
-
|
|
8082
8100
|
const isRoleMenu = el => {
|
|
8083
8101
|
var _el$getAttribute;
|
|
8084
8102
|
return ((_el$getAttribute = el.getAttribute('role')) == null ? void 0 : _el$getAttribute.toLowerCase()) === 'menu';
|
|
@@ -8162,17 +8180,14 @@ function dataProp(property) {
|
|
|
8162
8180
|
}
|
|
8163
8181
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/DropdownItem.js
|
|
8164
8182
|
const DropdownItem_excluded = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
8165
|
-
function DropdownItem_objectWithoutPropertiesLoose(
|
|
8166
|
-
if (
|
|
8167
|
-
var
|
|
8168
|
-
var
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
key = sourceKeys[i];
|
|
8172
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
8173
|
-
target[key] = source[key];
|
|
8183
|
+
function DropdownItem_objectWithoutPropertiesLoose(r, e) {
|
|
8184
|
+
if (null == r) return {};
|
|
8185
|
+
var t = {};
|
|
8186
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
8187
|
+
if (e.indexOf(n) >= 0) continue;
|
|
8188
|
+
t[n] = r[n];
|
|
8174
8189
|
}
|
|
8175
|
-
return
|
|
8190
|
+
return t;
|
|
8176
8191
|
}
|
|
8177
8192
|
|
|
8178
8193
|
|
|
@@ -10343,17 +10358,14 @@ const TabContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_rea
|
|
|
10343
10358
|
/* harmony default export */ const esm_TabContext = (TabContext);
|
|
10344
10359
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/NavItem.js
|
|
10345
10360
|
const NavItem_excluded = ["as", "active", "eventKey"];
|
|
10346
|
-
function NavItem_objectWithoutPropertiesLoose(
|
|
10347
|
-
if (
|
|
10348
|
-
var
|
|
10349
|
-
var
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
key = sourceKeys[i];
|
|
10353
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
10354
|
-
target[key] = source[key];
|
|
10361
|
+
function NavItem_objectWithoutPropertiesLoose(r, e) {
|
|
10362
|
+
if (null == r) return {};
|
|
10363
|
+
var t = {};
|
|
10364
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
10365
|
+
if (e.indexOf(n) >= 0) continue;
|
|
10366
|
+
t[n] = r[n];
|
|
10355
10367
|
}
|
|
10356
|
-
return
|
|
10368
|
+
return t;
|
|
10357
10369
|
}
|
|
10358
10370
|
|
|
10359
10371
|
|
|
@@ -10446,17 +10458,14 @@ NavItem.displayName = 'NavItem';
|
|
|
10446
10458
|
/* harmony default export */ const esm_NavItem = (NavItem);
|
|
10447
10459
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Nav.js
|
|
10448
10460
|
const Nav_excluded = ["as", "onSelect", "activeKey", "role", "onKeyDown"];
|
|
10449
|
-
function Nav_objectWithoutPropertiesLoose(
|
|
10450
|
-
if (
|
|
10451
|
-
var
|
|
10452
|
-
var
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
key = sourceKeys[i];
|
|
10456
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
10457
|
-
target[key] = source[key];
|
|
10461
|
+
function Nav_objectWithoutPropertiesLoose(r, e) {
|
|
10462
|
+
if (null == r) return {};
|
|
10463
|
+
var t = {};
|
|
10464
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
10465
|
+
if (e.indexOf(n) >= 0) continue;
|
|
10466
|
+
t[n] = r[n];
|
|
10458
10467
|
}
|
|
10459
|
-
return
|
|
10468
|
+
return t;
|
|
10460
10469
|
}
|
|
10461
10470
|
|
|
10462
10471
|
|
|
@@ -10958,32 +10967,16 @@ function NoopTransition({
|
|
|
10958
10967
|
return child;
|
|
10959
10968
|
}
|
|
10960
10969
|
/* harmony default export */ const esm_NoopTransition = (NoopTransition);
|
|
10961
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/utils.js
|
|
10962
|
-
|
|
10963
|
-
function isEscKey(e) {
|
|
10964
|
-
return e.code === 'Escape' || e.keyCode === 27;
|
|
10965
|
-
}
|
|
10966
|
-
function getReactVersion() {
|
|
10967
|
-
const parts = external_root_React_commonjs2_react_commonjs_react_amd_react_.version.split('.');
|
|
10968
|
-
return {
|
|
10969
|
-
major: +parts[0],
|
|
10970
|
-
minor: +parts[1],
|
|
10971
|
-
patch: +parts[2]
|
|
10972
|
-
};
|
|
10973
|
-
}
|
|
10974
10970
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/useRTGTransitionProps.js
|
|
10975
10971
|
const useRTGTransitionProps_excluded = ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "addEndListener", "children"];
|
|
10976
|
-
function useRTGTransitionProps_objectWithoutPropertiesLoose(
|
|
10977
|
-
if (
|
|
10978
|
-
var
|
|
10979
|
-
var
|
|
10980
|
-
|
|
10981
|
-
|
|
10982
|
-
key = sourceKeys[i];
|
|
10983
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
10984
|
-
target[key] = source[key];
|
|
10972
|
+
function useRTGTransitionProps_objectWithoutPropertiesLoose(r, e) {
|
|
10973
|
+
if (null == r) return {};
|
|
10974
|
+
var t = {};
|
|
10975
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
10976
|
+
if (e.indexOf(n) >= 0) continue;
|
|
10977
|
+
t[n] = r[n];
|
|
10985
10978
|
}
|
|
10986
|
-
return
|
|
10979
|
+
return t;
|
|
10987
10980
|
}
|
|
10988
10981
|
|
|
10989
10982
|
|
|
@@ -11007,12 +11000,8 @@ function useRTGTransitionProps(_ref) {
|
|
|
11007
11000
|
children
|
|
11008
11001
|
} = _ref,
|
|
11009
11002
|
props = useRTGTransitionProps_objectWithoutPropertiesLoose(_ref, useRTGTransitionProps_excluded);
|
|
11010
|
-
const {
|
|
11011
|
-
major
|
|
11012
|
-
} = getReactVersion();
|
|
11013
|
-
const childRef = major >= 19 ? children.props.ref : children.ref;
|
|
11014
11003
|
const nodeRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
11015
|
-
const mergedRef = esm_useMergedRefs(nodeRef,
|
|
11004
|
+
const mergedRef = esm_useMergedRefs(nodeRef, getChildRef(children));
|
|
11016
11005
|
const normalize = callback => param => {
|
|
11017
11006
|
if (callback && nodeRef.current) {
|
|
11018
11007
|
callback(nodeRef.current, param);
|
|
@@ -11057,17 +11046,14 @@ function useRTGTransitionProps(_ref) {
|
|
|
11057
11046
|
}
|
|
11058
11047
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/RTGTransition.js
|
|
11059
11048
|
const RTGTransition_excluded = ["component"];
|
|
11060
|
-
function RTGTransition_objectWithoutPropertiesLoose(
|
|
11061
|
-
if (
|
|
11062
|
-
var
|
|
11063
|
-
var
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
key = sourceKeys[i];
|
|
11067
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
11068
|
-
target[key] = source[key];
|
|
11049
|
+
function RTGTransition_objectWithoutPropertiesLoose(r, e) {
|
|
11050
|
+
if (null == r) return {};
|
|
11051
|
+
var t = {};
|
|
11052
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
11053
|
+
if (e.indexOf(n) >= 0) continue;
|
|
11054
|
+
t[n] = r[n];
|
|
11069
11055
|
}
|
|
11070
|
-
return
|
|
11056
|
+
return t;
|
|
11071
11057
|
}
|
|
11072
11058
|
|
|
11073
11059
|
|
|
@@ -11180,17 +11166,14 @@ function renderTransition(component, runTransition, props) {
|
|
|
11180
11166
|
}
|
|
11181
11167
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Modal.js
|
|
11182
11168
|
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"];
|
|
11183
|
-
function Modal_objectWithoutPropertiesLoose(
|
|
11184
|
-
if (
|
|
11185
|
-
var
|
|
11186
|
-
var
|
|
11187
|
-
|
|
11188
|
-
|
|
11189
|
-
key = sourceKeys[i];
|
|
11190
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
11191
|
-
target[key] = source[key];
|
|
11169
|
+
function Modal_objectWithoutPropertiesLoose(r, e) {
|
|
11170
|
+
if (null == r) return {};
|
|
11171
|
+
var t = {};
|
|
11172
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
11173
|
+
if (e.indexOf(n) >= 0) continue;
|
|
11174
|
+
t[n] = r[n];
|
|
11192
11175
|
}
|
|
11193
|
-
return
|
|
11176
|
+
return t;
|
|
11194
11177
|
}
|
|
11195
11178
|
/* eslint-disable @typescript-eslint/no-use-before-define, react/prop-types */
|
|
11196
11179
|
|
|
@@ -11211,9 +11194,13 @@ function Modal_objectWithoutPropertiesLoose(source, excluded) {
|
|
|
11211
11194
|
|
|
11212
11195
|
|
|
11213
11196
|
|
|
11197
|
+
let manager;
|
|
11214
11198
|
|
|
11199
|
+
/*
|
|
11200
|
+
Modal props are split into a version with and without index signature so that you can fully use them in another projects
|
|
11201
|
+
This is due to Typescript not playing well with index signatures e.g. when using Omit
|
|
11202
|
+
*/
|
|
11215
11203
|
|
|
11216
|
-
let manager;
|
|
11217
11204
|
function getManager(window) {
|
|
11218
11205
|
if (!manager) manager = new esm_ModalManager({
|
|
11219
11206
|
ownerDocument: window == null ? void 0 : window.document
|
|
@@ -12231,9 +12218,6 @@ Modal_Modal.propTypes = Modal_propTypes;
|
|
|
12231
12218
|
TRANSITION_DURATION: 300,
|
|
12232
12219
|
BACKDROP_TRANSITION_DURATION: 150
|
|
12233
12220
|
}));
|
|
12234
|
-
// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/all.js
|
|
12235
|
-
var lib_all = __webpack_require__(526);
|
|
12236
|
-
var all_default = /*#__PURE__*/__webpack_require__.n(lib_all);
|
|
12237
12221
|
;// CONCATENATED MODULE: ./src/NavItem.tsx
|
|
12238
12222
|
var NavItem_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/NavItem.tsx";
|
|
12239
12223
|
|
|
@@ -12379,7 +12363,7 @@ const Nav_propTypes = {
|
|
|
12379
12363
|
*
|
|
12380
12364
|
* @type {boolean}
|
|
12381
12365
|
*/
|
|
12382
|
-
justify:
|
|
12366
|
+
justify: (0,lib/* all */.Q7)((prop_types_default()).bool, ({
|
|
12383
12367
|
justify,
|
|
12384
12368
|
navbar
|
|
12385
12369
|
}) => justify && navbar ? Error('justify navbar `Nav`s are not supported') : null),
|
|
@@ -12832,6 +12816,7 @@ var OffcanvasToggling_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-
|
|
|
12832
12816
|
|
|
12833
12817
|
|
|
12834
12818
|
|
|
12819
|
+
|
|
12835
12820
|
const OffcanvasToggling_propTypes = {
|
|
12836
12821
|
/**
|
|
12837
12822
|
* Show the component; triggers the fade in or fade out animation
|
|
@@ -12904,14 +12889,14 @@ const OffcanvasToggling = /*#__PURE__*/external_root_React_commonjs2_react_commo
|
|
|
12904
12889
|
unmountOnExit: unmountOnExit,
|
|
12905
12890
|
appear: appear,
|
|
12906
12891
|
...props,
|
|
12907
|
-
childRef: children
|
|
12892
|
+
childRef: getChildRef(children),
|
|
12908
12893
|
children: (status, innerProps) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement(children, {
|
|
12909
12894
|
...innerProps,
|
|
12910
12895
|
className: classnames_default()(className, children.props.className, (status === ENTERING || status === EXITING) && `${bsPrefix}-toggling`, transitionStyles[status])
|
|
12911
12896
|
})
|
|
12912
12897
|
}, void 0, false, {
|
|
12913
12898
|
fileName: OffcanvasToggling_jsxFileName,
|
|
12914
|
-
lineNumber:
|
|
12899
|
+
lineNumber: 109,
|
|
12915
12900
|
columnNumber: 7
|
|
12916
12901
|
}, undefined);
|
|
12917
12902
|
});
|
|
@@ -13021,7 +13006,6 @@ var Offcanvas_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstra
|
|
|
13021
13006
|
|
|
13022
13007
|
|
|
13023
13008
|
|
|
13024
|
-
|
|
13025
13009
|
const Offcanvas_propTypes = {
|
|
13026
13010
|
/**
|
|
13027
13011
|
* @default 'offcanvas'
|
|
@@ -13137,7 +13121,7 @@ function Offcanvas_DialogTransition(props) {
|
|
|
13137
13121
|
...props
|
|
13138
13122
|
}, void 0, false, {
|
|
13139
13123
|
fileName: Offcanvas_jsxFileName,
|
|
13140
|
-
lineNumber:
|
|
13124
|
+
lineNumber: 183,
|
|
13141
13125
|
columnNumber: 10
|
|
13142
13126
|
}, this);
|
|
13143
13127
|
}
|
|
@@ -13146,7 +13130,7 @@ function Offcanvas_BackdropTransition(props) {
|
|
|
13146
13130
|
...props
|
|
13147
13131
|
}, void 0, false, {
|
|
13148
13132
|
fileName: Offcanvas_jsxFileName,
|
|
13149
|
-
lineNumber:
|
|
13133
|
+
lineNumber: 187,
|
|
13150
13134
|
columnNumber: 10
|
|
13151
13135
|
}, this);
|
|
13152
13136
|
}
|
|
@@ -13184,20 +13168,14 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
13184
13168
|
}, ref) => {
|
|
13185
13169
|
const modalManager = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
|
|
13186
13170
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas');
|
|
13187
|
-
const {
|
|
13188
|
-
onToggle
|
|
13189
|
-
} = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(NavbarContext) || {};
|
|
13190
13171
|
const [showOffcanvas, setShowOffcanvas] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
|
|
13172
|
+
const handleHide = useEventCallback(onHide);
|
|
13191
13173
|
const hideResponsiveOffcanvas = esm_useBreakpoint(responsive || 'xs', 'up');
|
|
13192
13174
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
13193
13175
|
// Handles the case where screen is resized while the responsive
|
|
13194
13176
|
// offcanvas is shown. If `responsive` not provided, just use `show`.
|
|
13195
13177
|
setShowOffcanvas(responsive ? show && !hideResponsiveOffcanvas : show);
|
|
13196
13178
|
}, [show, responsive, hideResponsiveOffcanvas]);
|
|
13197
|
-
const handleHide = useEventCallback(() => {
|
|
13198
|
-
onToggle == null || onToggle();
|
|
13199
|
-
onHide == null || onHide();
|
|
13200
|
-
});
|
|
13201
13179
|
const modalContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
|
|
13202
13180
|
onHide: handleHide
|
|
13203
13181
|
}), [handleHide]);
|
|
@@ -13226,7 +13204,7 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
13226
13204
|
className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName)
|
|
13227
13205
|
}, void 0, false, {
|
|
13228
13206
|
fileName: Offcanvas_jsxFileName,
|
|
13229
|
-
lineNumber:
|
|
13207
|
+
lineNumber: 278,
|
|
13230
13208
|
columnNumber: 11
|
|
13231
13209
|
}, undefined), [backdropClassName, bsPrefix]);
|
|
13232
13210
|
const renderDialog = dialogProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
@@ -13237,7 +13215,7 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
13237
13215
|
children: children
|
|
13238
13216
|
}, void 0, false, {
|
|
13239
13217
|
fileName: Offcanvas_jsxFileName,
|
|
13240
|
-
lineNumber:
|
|
13218
|
+
lineNumber: 287,
|
|
13241
13219
|
columnNumber: 9
|
|
13242
13220
|
}, undefined);
|
|
13243
13221
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(jsx_dev_runtime.Fragment, {
|
|
@@ -13269,12 +13247,12 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
13269
13247
|
renderDialog: renderDialog
|
|
13270
13248
|
}, void 0, false, {
|
|
13271
13249
|
fileName: Offcanvas_jsxFileName,
|
|
13272
|
-
lineNumber:
|
|
13250
|
+
lineNumber: 315,
|
|
13273
13251
|
columnNumber: 13
|
|
13274
13252
|
}, undefined)
|
|
13275
13253
|
}, void 0, false, {
|
|
13276
13254
|
fileName: Offcanvas_jsxFileName,
|
|
13277
|
-
lineNumber:
|
|
13255
|
+
lineNumber: 314,
|
|
13278
13256
|
columnNumber: 11
|
|
13279
13257
|
}, undefined)]
|
|
13280
13258
|
}, void 0, true);
|
|
@@ -13293,16 +13271,25 @@ var NavbarOffcanvas_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bo
|
|
|
13293
13271
|
|
|
13294
13272
|
|
|
13295
13273
|
|
|
13296
|
-
|
|
13274
|
+
|
|
13275
|
+
const NavbarOffcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
13276
|
+
onHide,
|
|
13277
|
+
...props
|
|
13278
|
+
}, ref) => {
|
|
13297
13279
|
const context = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(NavbarContext);
|
|
13280
|
+
const handleHide = useEventCallback(() => {
|
|
13281
|
+
context == null || context.onToggle == null || context.onToggle();
|
|
13282
|
+
onHide == null || onHide();
|
|
13283
|
+
});
|
|
13298
13284
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Offcanvas, {
|
|
13299
13285
|
ref: ref,
|
|
13300
13286
|
show: !!(context != null && context.expanded),
|
|
13301
13287
|
...props,
|
|
13302
|
-
renderStaticNode: true
|
|
13288
|
+
renderStaticNode: true,
|
|
13289
|
+
onHide: handleHide
|
|
13303
13290
|
}, void 0, false, {
|
|
13304
13291
|
fileName: NavbarOffcanvas_jsxFileName,
|
|
13305
|
-
lineNumber:
|
|
13292
|
+
lineNumber: 19,
|
|
13306
13293
|
columnNumber: 7
|
|
13307
13294
|
}, undefined);
|
|
13308
13295
|
});
|
|
@@ -14287,6 +14274,7 @@ var OverlayTrigger_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-boo
|
|
|
14287
14274
|
|
|
14288
14275
|
|
|
14289
14276
|
|
|
14277
|
+
|
|
14290
14278
|
function normalizeDelay(delay) {
|
|
14291
14279
|
return delay && typeof delay === 'object' ? delay : {
|
|
14292
14280
|
show: delay,
|
|
@@ -14388,7 +14376,7 @@ const OverlayTrigger = ({
|
|
|
14388
14376
|
...props
|
|
14389
14377
|
}) => {
|
|
14390
14378
|
const triggerNodeRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
14391
|
-
const mergedRef = esm_useMergedRefs(triggerNodeRef, children
|
|
14379
|
+
const mergedRef = esm_useMergedRefs(triggerNodeRef, getChildRef(children));
|
|
14392
14380
|
const timeout = useTimeout();
|
|
14393
14381
|
const hoverStateRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)('');
|
|
14394
14382
|
const [show, setShow] = useUncontrolledProp(propsShow, defaultShow, onToggle);
|
|
@@ -14469,7 +14457,7 @@ const OverlayTrigger = ({
|
|
|
14469
14457
|
children: overlay
|
|
14470
14458
|
}, void 0, false, {
|
|
14471
14459
|
fileName: OverlayTrigger_jsxFileName,
|
|
14472
|
-
lineNumber:
|
|
14460
|
+
lineNumber: 308,
|
|
14473
14461
|
columnNumber: 7
|
|
14474
14462
|
}, undefined)]
|
|
14475
14463
|
}, void 0, true);
|
|
@@ -15396,17 +15384,14 @@ Stack.propTypes = Stack_propTypes;
|
|
|
15396
15384
|
const TabPanel_excluded = ["active", "eventKey", "mountOnEnter", "transition", "unmountOnExit", "role", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited"],
|
|
15397
15385
|
_excluded2 = ["activeKey", "getControlledId", "getControllerId"],
|
|
15398
15386
|
_excluded3 = ["as"];
|
|
15399
|
-
function TabPanel_objectWithoutPropertiesLoose(
|
|
15400
|
-
if (
|
|
15401
|
-
var
|
|
15402
|
-
var
|
|
15403
|
-
|
|
15404
|
-
|
|
15405
|
-
key = sourceKeys[i];
|
|
15406
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
15407
|
-
target[key] = source[key];
|
|
15387
|
+
function TabPanel_objectWithoutPropertiesLoose(r, e) {
|
|
15388
|
+
if (null == r) return {};
|
|
15389
|
+
var t = {};
|
|
15390
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
15391
|
+
if (e.indexOf(n) >= 0) continue;
|
|
15392
|
+
t[n] = r[n];
|
|
15408
15393
|
}
|
|
15409
|
-
return
|
|
15394
|
+
return t;
|
|
15410
15395
|
}
|
|
15411
15396
|
|
|
15412
15397
|
|