react-bootstrap 2.10.1 → 2.10.3
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/AbstractModalHeader.js +2 -2
- package/cjs/AccordionButton.js +2 -2
- package/cjs/Carousel.d.ts +1 -1
- package/cjs/Carousel.js +13 -13
- package/cjs/Dropdown.js +3 -3
- package/cjs/DropdownMenu.js +1 -1
- package/cjs/Fade.js +1 -1
- package/cjs/Form.d.ts +60 -58
- package/cjs/InputGroup.d.ts +2 -2
- package/cjs/Modal.js +8 -8
- package/cjs/Navbar.js +2 -2
- package/cjs/Offcanvas.js +4 -4
- package/cjs/Overlay.js +4 -4
- package/cjs/OverlayTrigger.js +3 -3
- package/cjs/Tab.d.ts +1 -1
- package/cjs/TabContainer.d.ts +2 -1
- package/cjs/Tabs.d.ts +1 -1
- package/cjs/Tabs.js +1 -0
- package/cjs/ThemeProvider.d.ts +1 -1
- package/cjs/Toast.js +1 -1
- package/cjs/ToastHeader.js +1 -1
- package/cjs/ToggleButtonGroup.js +1 -1
- package/cjs/TransitionWrapper.d.ts +2 -2
- package/cjs/helpers.d.ts +1 -1
- package/cjs/useWrappedRefWithWarning.js +1 -1
- package/dist/react-bootstrap.js +666 -500
- package/dist/react-bootstrap.min.js +1 -1
- package/dist/react-bootstrap.min.js.LICENSE.txt +2 -1
- package/esm/AbstractModalHeader.js +2 -2
- package/esm/AccordionButton.js +2 -2
- package/esm/Carousel.d.ts +1 -1
- package/esm/Carousel.js +13 -13
- package/esm/Dropdown.js +3 -3
- package/esm/DropdownMenu.js +1 -1
- package/esm/Fade.js +1 -1
- package/esm/Form.d.ts +60 -58
- package/esm/InputGroup.d.ts +2 -2
- package/esm/Modal.js +8 -8
- package/esm/Navbar.js +2 -2
- package/esm/Offcanvas.js +4 -4
- package/esm/Overlay.js +4 -4
- package/esm/OverlayTrigger.js +3 -3
- package/esm/Tab.d.ts +1 -1
- package/esm/TabContainer.d.ts +2 -1
- package/esm/Tabs.d.ts +1 -1
- package/esm/Tabs.js +1 -0
- package/esm/ThemeProvider.d.ts +1 -1
- package/esm/Toast.js +1 -1
- package/esm/ToastHeader.js +1 -1
- package/esm/TransitionWrapper.d.ts +2 -2
- package/esm/helpers.d.ts +1 -1
- package/package.json +4 -5
package/dist/react-bootstrap.js
CHANGED
|
@@ -7,69 +7,11 @@
|
|
|
7
7
|
exports["ReactBootstrap"] = factory(require("react"), require("react-dom"));
|
|
8
8
|
else
|
|
9
9
|
root["ReactBootstrap"] = factory(root["React"], root["ReactDOM"]);
|
|
10
|
-
})(self, (
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE__442__, __WEBPACK_EXTERNAL_MODULE__3__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
-
/***/
|
|
15
|
-
/***/ ((module, exports) => {
|
|
16
|
-
|
|
17
|
-
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
18
|
-
Copyright (c) 2018 Jed Watson.
|
|
19
|
-
Licensed under the MIT License (MIT), see
|
|
20
|
-
http://jedwatson.github.io/classnames
|
|
21
|
-
*/
|
|
22
|
-
/* global define */
|
|
23
|
-
|
|
24
|
-
(function () {
|
|
25
|
-
'use strict';
|
|
26
|
-
|
|
27
|
-
var hasOwn = {}.hasOwnProperty;
|
|
28
|
-
var nativeCodeString = '[native code]';
|
|
29
|
-
function classNames() {
|
|
30
|
-
var classes = [];
|
|
31
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
32
|
-
var arg = arguments[i];
|
|
33
|
-
if (!arg) continue;
|
|
34
|
-
var argType = typeof arg;
|
|
35
|
-
if (argType === 'string' || argType === 'number') {
|
|
36
|
-
classes.push(arg);
|
|
37
|
-
} else if (Array.isArray(arg)) {
|
|
38
|
-
if (arg.length) {
|
|
39
|
-
var inner = classNames.apply(null, arg);
|
|
40
|
-
if (inner) {
|
|
41
|
-
classes.push(inner);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
} else if (argType === 'object') {
|
|
45
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
46
|
-
classes.push(arg.toString());
|
|
47
|
-
continue;
|
|
48
|
-
}
|
|
49
|
-
for (var key in arg) {
|
|
50
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
51
|
-
classes.push(key);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return classes.join(' ');
|
|
57
|
-
}
|
|
58
|
-
if ( true && module.exports) {
|
|
59
|
-
classNames.default = classNames;
|
|
60
|
-
module.exports = classNames;
|
|
61
|
-
} else if (true) {
|
|
62
|
-
// register as 'classnames', consistent with npm package name
|
|
63
|
-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
|
|
64
|
-
return classNames;
|
|
65
|
-
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
|
|
66
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
67
|
-
} else {}
|
|
68
|
-
})();
|
|
69
|
-
|
|
70
|
-
/***/ }),
|
|
71
|
-
|
|
72
|
-
/***/ 286:
|
|
14
|
+
/***/ 737:
|
|
73
15
|
/***/ ((module) => {
|
|
74
16
|
|
|
75
17
|
"use strict";
|
|
@@ -114,7 +56,7 @@ module.exports = invariant;
|
|
|
114
56
|
|
|
115
57
|
/***/ }),
|
|
116
58
|
|
|
117
|
-
/***/
|
|
59
|
+
/***/ 526:
|
|
118
60
|
/***/ ((module, exports, __webpack_require__) => {
|
|
119
61
|
|
|
120
62
|
"use strict";
|
|
@@ -124,7 +66,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
124
66
|
value: true
|
|
125
67
|
}));
|
|
126
68
|
exports["default"] = all;
|
|
127
|
-
var _createChainableTypeChecker = __webpack_require__(
|
|
69
|
+
var _createChainableTypeChecker = __webpack_require__(663);
|
|
128
70
|
var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
|
|
129
71
|
function _interopRequireDefault(obj) {
|
|
130
72
|
return obj && obj.__esModule ? obj : {
|
|
@@ -157,7 +99,7 @@ module.exports = exports['default'];
|
|
|
157
99
|
|
|
158
100
|
/***/ }),
|
|
159
101
|
|
|
160
|
-
/***/
|
|
102
|
+
/***/ 387:
|
|
161
103
|
/***/ ((module, exports, __webpack_require__) => {
|
|
162
104
|
|
|
163
105
|
"use strict";
|
|
@@ -171,9 +113,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
171
113
|
} : function (obj) {
|
|
172
114
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
173
115
|
};
|
|
174
|
-
var _react = __webpack_require__(
|
|
116
|
+
var _react = __webpack_require__(442);
|
|
175
117
|
var _react2 = _interopRequireDefault(_react);
|
|
176
|
-
var _createChainableTypeChecker = __webpack_require__(
|
|
118
|
+
var _createChainableTypeChecker = __webpack_require__(663);
|
|
177
119
|
var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
|
|
178
120
|
function _interopRequireDefault(obj) {
|
|
179
121
|
return obj && obj.__esModule ? obj : {
|
|
@@ -196,7 +138,7 @@ module.exports = exports['default'];
|
|
|
196
138
|
|
|
197
139
|
/***/ }),
|
|
198
140
|
|
|
199
|
-
/***/
|
|
141
|
+
/***/ 748:
|
|
200
142
|
/***/ ((module, exports, __webpack_require__) => {
|
|
201
143
|
|
|
202
144
|
"use strict";
|
|
@@ -206,7 +148,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
206
148
|
value: true
|
|
207
149
|
}));
|
|
208
150
|
exports["default"] = deprecated;
|
|
209
|
-
var _warning = __webpack_require__(
|
|
151
|
+
var _warning = __webpack_require__(773);
|
|
210
152
|
var _warning2 = _interopRequireDefault(_warning);
|
|
211
153
|
function _interopRequireDefault(obj) {
|
|
212
154
|
return obj && obj.__esModule ? obj : {
|
|
@@ -241,7 +183,7 @@ module.exports = exports['default'];
|
|
|
241
183
|
|
|
242
184
|
/***/ }),
|
|
243
185
|
|
|
244
|
-
/***/
|
|
186
|
+
/***/ 105:
|
|
245
187
|
/***/ ((module, exports, __webpack_require__) => {
|
|
246
188
|
|
|
247
189
|
"use strict";
|
|
@@ -250,10 +192,10 @@ module.exports = exports['default'];
|
|
|
250
192
|
Object.defineProperty(exports, "__esModule", ({
|
|
251
193
|
value: true
|
|
252
194
|
}));
|
|
253
|
-
var _react = __webpack_require__(
|
|
195
|
+
var _react = __webpack_require__(442);
|
|
254
196
|
var _react2 = _interopRequireDefault(_react);
|
|
255
|
-
var _reactIs = __webpack_require__(
|
|
256
|
-
var _createChainableTypeChecker = __webpack_require__(
|
|
197
|
+
var _reactIs = __webpack_require__(409);
|
|
198
|
+
var _createChainableTypeChecker = __webpack_require__(663);
|
|
257
199
|
var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
|
|
258
200
|
function _interopRequireDefault(obj) {
|
|
259
201
|
return obj && obj.__esModule ? obj : {
|
|
@@ -275,7 +217,7 @@ module.exports = exports['default'];
|
|
|
275
217
|
|
|
276
218
|
/***/ }),
|
|
277
219
|
|
|
278
|
-
/***/
|
|
220
|
+
/***/ 173:
|
|
279
221
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
280
222
|
|
|
281
223
|
"use strict";
|
|
@@ -285,16 +227,16 @@ var __webpack_unused_export__;
|
|
|
285
227
|
__webpack_unused_export__ = ({
|
|
286
228
|
value: true
|
|
287
229
|
});
|
|
288
|
-
__webpack_unused_export__ = exports.
|
|
289
|
-
var _all = __webpack_require__(
|
|
230
|
+
__webpack_unused_export__ = exports.rk = __webpack_unused_export__ = exports.NP = __webpack_unused_export__ = undefined;
|
|
231
|
+
var _all = __webpack_require__(526);
|
|
290
232
|
var _all2 = _interopRequireDefault(_all);
|
|
291
|
-
var _componentOrElement = __webpack_require__(
|
|
233
|
+
var _componentOrElement = __webpack_require__(387);
|
|
292
234
|
var _componentOrElement2 = _interopRequireDefault(_componentOrElement);
|
|
293
|
-
var _deprecated = __webpack_require__(
|
|
235
|
+
var _deprecated = __webpack_require__(748);
|
|
294
236
|
var _deprecated2 = _interopRequireDefault(_deprecated);
|
|
295
|
-
var _elementType = __webpack_require__(
|
|
237
|
+
var _elementType = __webpack_require__(105);
|
|
296
238
|
var _elementType2 = _interopRequireDefault(_elementType);
|
|
297
|
-
var _isRequiredForA11y = __webpack_require__(
|
|
239
|
+
var _isRequiredForA11y = __webpack_require__(861);
|
|
298
240
|
var _isRequiredForA11y2 = _interopRequireDefault(_isRequiredForA11y);
|
|
299
241
|
function _interopRequireDefault(obj) {
|
|
300
242
|
return obj && obj.__esModule ? obj : {
|
|
@@ -302,14 +244,14 @@ function _interopRequireDefault(obj) {
|
|
|
302
244
|
};
|
|
303
245
|
}
|
|
304
246
|
__webpack_unused_export__ = _all2.default;
|
|
305
|
-
exports.
|
|
247
|
+
exports.NP = _componentOrElement2.default;
|
|
306
248
|
__webpack_unused_export__ = _deprecated2.default;
|
|
307
|
-
exports.
|
|
249
|
+
exports.rk = _elementType2.default;
|
|
308
250
|
__webpack_unused_export__ = _isRequiredForA11y2.default;
|
|
309
251
|
|
|
310
252
|
/***/ }),
|
|
311
253
|
|
|
312
|
-
/***/
|
|
254
|
+
/***/ 861:
|
|
313
255
|
/***/ ((module, exports) => {
|
|
314
256
|
|
|
315
257
|
"use strict";
|
|
@@ -336,7 +278,7 @@ module.exports = exports['default'];
|
|
|
336
278
|
|
|
337
279
|
/***/ }),
|
|
338
280
|
|
|
339
|
-
/***/
|
|
281
|
+
/***/ 663:
|
|
340
282
|
/***/ ((module, exports) => {
|
|
341
283
|
|
|
342
284
|
"use strict";
|
|
@@ -380,7 +322,7 @@ module.exports = exports['default'];
|
|
|
380
322
|
|
|
381
323
|
/***/ }),
|
|
382
324
|
|
|
383
|
-
/***/
|
|
325
|
+
/***/ 948:
|
|
384
326
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
385
327
|
|
|
386
328
|
"use strict";
|
|
@@ -393,7 +335,7 @@ module.exports = exports['default'];
|
|
|
393
335
|
|
|
394
336
|
|
|
395
337
|
|
|
396
|
-
var ReactPropTypesSecret = __webpack_require__(
|
|
338
|
+
var ReactPropTypesSecret = __webpack_require__(643);
|
|
397
339
|
function emptyFunction() {}
|
|
398
340
|
function emptyFunctionWithReset() {}
|
|
399
341
|
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
@@ -444,7 +386,7 @@ module.exports = function () {
|
|
|
444
386
|
|
|
445
387
|
/***/ }),
|
|
446
388
|
|
|
447
|
-
/***/
|
|
389
|
+
/***/ 762:
|
|
448
390
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
449
391
|
|
|
450
392
|
/**
|
|
@@ -457,12 +399,12 @@ module.exports = function () {
|
|
|
457
399
|
if (false) { var throwOnDirectAccess, ReactIs; } else {
|
|
458
400
|
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
459
401
|
// http://fb.me/prop-types-in-prod
|
|
460
|
-
module.exports = __webpack_require__(
|
|
402
|
+
module.exports = __webpack_require__(948)();
|
|
461
403
|
}
|
|
462
404
|
|
|
463
405
|
/***/ }),
|
|
464
406
|
|
|
465
|
-
/***/
|
|
407
|
+
/***/ 643:
|
|
466
408
|
/***/ ((module) => {
|
|
467
409
|
|
|
468
410
|
"use strict";
|
|
@@ -480,7 +422,7 @@ module.exports = ReactPropTypesSecret;
|
|
|
480
422
|
|
|
481
423
|
/***/ }),
|
|
482
424
|
|
|
483
|
-
/***/
|
|
425
|
+
/***/ 493:
|
|
484
426
|
/***/ ((__unused_webpack_module, exports) => {
|
|
485
427
|
|
|
486
428
|
"use strict";
|
|
@@ -604,23 +546,24 @@ exports.typeOf = z;
|
|
|
604
546
|
|
|
605
547
|
/***/ }),
|
|
606
548
|
|
|
607
|
-
/***/
|
|
549
|
+
/***/ 409:
|
|
608
550
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
609
551
|
|
|
610
552
|
"use strict";
|
|
611
553
|
|
|
612
554
|
|
|
613
555
|
if (true) {
|
|
614
|
-
module.exports = __webpack_require__(
|
|
556
|
+
module.exports = __webpack_require__(493);
|
|
615
557
|
} else {}
|
|
616
558
|
|
|
617
559
|
/***/ }),
|
|
618
560
|
|
|
619
|
-
/***/
|
|
620
|
-
/***/ ((__unused_webpack_module, exports
|
|
561
|
+
/***/ 864:
|
|
562
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
621
563
|
|
|
622
564
|
"use strict";
|
|
623
|
-
/**
|
|
565
|
+
/**
|
|
566
|
+
* @license React
|
|
624
567
|
* react-jsx-dev-runtime.production.min.js
|
|
625
568
|
*
|
|
626
569
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -630,21 +573,18 @@ if (true) {
|
|
|
630
573
|
*/
|
|
631
574
|
|
|
632
575
|
|
|
633
|
-
|
|
634
|
-
exports.Fragment =
|
|
635
|
-
if ("function" === typeof Symbol && Symbol.for) {
|
|
636
|
-
var a = Symbol.for;
|
|
637
|
-
exports.Fragment = a("react.fragment");
|
|
638
|
-
}
|
|
576
|
+
var a = Symbol.for("react.fragment");
|
|
577
|
+
exports.Fragment = a;
|
|
639
578
|
exports.jsxDEV = void 0;
|
|
640
579
|
|
|
641
580
|
/***/ }),
|
|
642
581
|
|
|
643
|
-
/***/
|
|
582
|
+
/***/ 706:
|
|
644
583
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
645
584
|
|
|
646
585
|
"use strict";
|
|
647
|
-
/**
|
|
586
|
+
/**
|
|
587
|
+
* @license React
|
|
648
588
|
* react-jsx-runtime.production.min.js
|
|
649
589
|
*
|
|
650
590
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -654,71 +594,67 @@ exports.jsxDEV = void 0;
|
|
|
654
594
|
*/
|
|
655
595
|
|
|
656
596
|
|
|
657
|
-
var f = __webpack_require__(
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
g = h("react.element");
|
|
663
|
-
exports.Fragment = h("react.fragment");
|
|
664
|
-
}
|
|
665
|
-
var m = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
666
|
-
n = Object.prototype.hasOwnProperty,
|
|
597
|
+
var f = __webpack_require__(442),
|
|
598
|
+
k = Symbol.for("react.element"),
|
|
599
|
+
l = Symbol.for("react.fragment"),
|
|
600
|
+
m = Object.prototype.hasOwnProperty,
|
|
601
|
+
n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
667
602
|
p = {
|
|
668
603
|
key: !0,
|
|
669
604
|
ref: !0,
|
|
670
605
|
__self: !0,
|
|
671
606
|
__source: !0
|
|
672
607
|
};
|
|
673
|
-
function q(c, a,
|
|
608
|
+
function q(c, a, g) {
|
|
674
609
|
var b,
|
|
675
610
|
d = {},
|
|
676
611
|
e = null,
|
|
677
|
-
|
|
678
|
-
void 0 !==
|
|
612
|
+
h = null;
|
|
613
|
+
void 0 !== g && (e = "" + g);
|
|
679
614
|
void 0 !== a.key && (e = "" + a.key);
|
|
680
|
-
void 0 !== a.ref && (
|
|
681
|
-
for (b in a)
|
|
615
|
+
void 0 !== a.ref && (h = a.ref);
|
|
616
|
+
for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
|
682
617
|
if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
|
|
683
618
|
return {
|
|
684
|
-
$$typeof:
|
|
619
|
+
$$typeof: k,
|
|
685
620
|
type: c,
|
|
686
621
|
key: e,
|
|
687
|
-
ref:
|
|
622
|
+
ref: h,
|
|
688
623
|
props: d,
|
|
689
|
-
_owner:
|
|
624
|
+
_owner: n.current
|
|
690
625
|
};
|
|
691
626
|
}
|
|
627
|
+
exports.Fragment = l;
|
|
692
628
|
exports.jsx = q;
|
|
693
629
|
exports.jsxs = q;
|
|
694
630
|
|
|
695
631
|
/***/ }),
|
|
696
632
|
|
|
697
|
-
/***/
|
|
633
|
+
/***/ 148:
|
|
698
634
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
699
635
|
|
|
700
636
|
"use strict";
|
|
701
637
|
|
|
702
638
|
|
|
703
639
|
if (true) {
|
|
704
|
-
module.exports = __webpack_require__(
|
|
640
|
+
module.exports = __webpack_require__(864);
|
|
705
641
|
} else {}
|
|
706
642
|
|
|
707
643
|
/***/ }),
|
|
708
644
|
|
|
709
|
-
/***/
|
|
645
|
+
/***/ 74:
|
|
710
646
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
711
647
|
|
|
712
648
|
"use strict";
|
|
713
649
|
|
|
714
650
|
|
|
715
651
|
if (true) {
|
|
716
|
-
module.exports = __webpack_require__(
|
|
652
|
+
module.exports = __webpack_require__(706);
|
|
717
653
|
} else {}
|
|
718
654
|
|
|
719
655
|
/***/ }),
|
|
720
656
|
|
|
721
|
-
/***/
|
|
657
|
+
/***/ 773:
|
|
722
658
|
/***/ ((module) => {
|
|
723
659
|
|
|
724
660
|
"use strict";
|
|
@@ -778,19 +714,87 @@ module.exports = warning;
|
|
|
778
714
|
|
|
779
715
|
/***/ }),
|
|
780
716
|
|
|
781
|
-
/***/
|
|
717
|
+
/***/ 442:
|
|
782
718
|
/***/ ((module) => {
|
|
783
719
|
|
|
784
720
|
"use strict";
|
|
785
|
-
module.exports =
|
|
721
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__442__;
|
|
786
722
|
|
|
787
723
|
/***/ }),
|
|
788
724
|
|
|
789
|
-
/***/
|
|
725
|
+
/***/ 3:
|
|
790
726
|
/***/ ((module) => {
|
|
791
727
|
|
|
792
728
|
"use strict";
|
|
793
|
-
module.exports =
|
|
729
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__3__;
|
|
730
|
+
|
|
731
|
+
/***/ }),
|
|
732
|
+
|
|
733
|
+
/***/ 368:
|
|
734
|
+
/***/ ((module, exports) => {
|
|
735
|
+
|
|
736
|
+
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
737
|
+
Copyright (c) 2018 Jed Watson.
|
|
738
|
+
Licensed under the MIT License (MIT), see
|
|
739
|
+
http://jedwatson.github.io/classnames
|
|
740
|
+
*/
|
|
741
|
+
/* global define */
|
|
742
|
+
|
|
743
|
+
(function () {
|
|
744
|
+
'use strict';
|
|
745
|
+
|
|
746
|
+
var hasOwn = {}.hasOwnProperty;
|
|
747
|
+
function classNames() {
|
|
748
|
+
var classes = '';
|
|
749
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
750
|
+
var arg = arguments[i];
|
|
751
|
+
if (arg) {
|
|
752
|
+
classes = appendClass(classes, parseValue(arg));
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
return classes;
|
|
756
|
+
}
|
|
757
|
+
function parseValue(arg) {
|
|
758
|
+
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
759
|
+
return arg;
|
|
760
|
+
}
|
|
761
|
+
if (typeof arg !== 'object') {
|
|
762
|
+
return '';
|
|
763
|
+
}
|
|
764
|
+
if (Array.isArray(arg)) {
|
|
765
|
+
return classNames.apply(null, arg);
|
|
766
|
+
}
|
|
767
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
768
|
+
return arg.toString();
|
|
769
|
+
}
|
|
770
|
+
var classes = '';
|
|
771
|
+
for (var key in arg) {
|
|
772
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
773
|
+
classes = appendClass(classes, key);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
return classes;
|
|
777
|
+
}
|
|
778
|
+
function appendClass(value, newClass) {
|
|
779
|
+
if (!newClass) {
|
|
780
|
+
return value;
|
|
781
|
+
}
|
|
782
|
+
if (value) {
|
|
783
|
+
return value + ' ' + newClass;
|
|
784
|
+
}
|
|
785
|
+
return value + newClass;
|
|
786
|
+
}
|
|
787
|
+
if ( true && module.exports) {
|
|
788
|
+
classNames.default = classNames;
|
|
789
|
+
module.exports = classNames;
|
|
790
|
+
} else if (true) {
|
|
791
|
+
// register as 'classnames', consistent with npm package name
|
|
792
|
+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
|
|
793
|
+
return classNames;
|
|
794
|
+
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
|
|
795
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
796
|
+
} else {}
|
|
797
|
+
})();
|
|
794
798
|
|
|
795
799
|
/***/ })
|
|
796
800
|
|
|
@@ -998,15 +1002,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
998
1002
|
});
|
|
999
1003
|
|
|
1000
1004
|
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
|
1001
|
-
var classnames = __webpack_require__(
|
|
1005
|
+
var classnames = __webpack_require__(368);
|
|
1002
1006
|
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
1003
1007
|
// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"}
|
|
1004
|
-
var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(
|
|
1008
|
+
var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(442);
|
|
1005
1009
|
var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__PURE__*/__webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_);
|
|
1006
1010
|
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
|
1007
|
-
var prop_types = __webpack_require__(
|
|
1011
|
+
var prop_types = __webpack_require__(762);
|
|
1008
1012
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
1009
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
1013
|
+
;// CONCATENATED MODULE: ./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
1010
1014
|
function extends_extends() {
|
|
1011
1015
|
extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
1012
1016
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -1021,7 +1025,7 @@ function extends_extends() {
|
|
|
1021
1025
|
};
|
|
1022
1026
|
return extends_extends.apply(this, arguments);
|
|
1023
1027
|
}
|
|
1024
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
1028
|
+
;// CONCATENATED MODULE: ./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
1025
1029
|
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
1026
1030
|
if (source == null) return {};
|
|
1027
1031
|
var target = {};
|
|
@@ -1035,7 +1039,7 @@ function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, exclu
|
|
|
1035
1039
|
return target;
|
|
1036
1040
|
}
|
|
1037
1041
|
// EXTERNAL MODULE: ./node_modules/invariant/browser.js
|
|
1038
|
-
var browser = __webpack_require__(
|
|
1042
|
+
var browser = __webpack_require__(737);
|
|
1039
1043
|
var browser_default = /*#__PURE__*/__webpack_require__.n(browser);
|
|
1040
1044
|
;// CONCATENATED MODULE: ./node_modules/uncontrollable/lib/esm/utils.js
|
|
1041
1045
|
|
|
@@ -1399,7 +1403,7 @@ function uncontrollable(Component, controlledValues, methods) {
|
|
|
1399
1403
|
|
|
1400
1404
|
|
|
1401
1405
|
// EXTERNAL MODULE: ./node_modules/react/jsx-dev-runtime.js
|
|
1402
|
-
var jsx_dev_runtime = __webpack_require__(
|
|
1406
|
+
var jsx_dev_runtime = __webpack_require__(148);
|
|
1403
1407
|
;// CONCATENATED MODULE: ./src/ThemeProvider.tsx
|
|
1404
1408
|
var ThemeProvider_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/ThemeProvider.tsx";
|
|
1405
1409
|
|
|
@@ -1602,7 +1606,20 @@ function style(node, property) {
|
|
|
1602
1606
|
node.style.cssText += ";" + css;
|
|
1603
1607
|
}
|
|
1604
1608
|
/* harmony default export */ const css = (style);
|
|
1605
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/
|
|
1609
|
+
;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
1610
|
+
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
1611
|
+
if (source == null) return {};
|
|
1612
|
+
var target = {};
|
|
1613
|
+
var sourceKeys = Object.keys(source);
|
|
1614
|
+
var key, i;
|
|
1615
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
1616
|
+
key = sourceKeys[i];
|
|
1617
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
1618
|
+
target[key] = source[key];
|
|
1619
|
+
}
|
|
1620
|
+
return target;
|
|
1621
|
+
}
|
|
1622
|
+
;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
1606
1623
|
function _setPrototypeOf(o, p) {
|
|
1607
1624
|
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
1608
1625
|
o.__proto__ = p;
|
|
@@ -1610,7 +1627,7 @@ function _setPrototypeOf(o, p) {
|
|
|
1610
1627
|
};
|
|
1611
1628
|
return _setPrototypeOf(o, p);
|
|
1612
1629
|
}
|
|
1613
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
1630
|
+
;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
1614
1631
|
|
|
1615
1632
|
function inheritsLoose_inheritsLoose(subClass, superClass) {
|
|
1616
1633
|
subClass.prototype = Object.create(superClass.prototype);
|
|
@@ -1618,7 +1635,7 @@ function inheritsLoose_inheritsLoose(subClass, superClass) {
|
|
|
1618
1635
|
_setPrototypeOf(subClass, superClass);
|
|
1619
1636
|
}
|
|
1620
1637
|
// EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
|
|
1621
|
-
var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(
|
|
1638
|
+
var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(3);
|
|
1622
1639
|
var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default = /*#__PURE__*/__webpack_require__.n(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_);
|
|
1623
1640
|
;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/config.js
|
|
1624
1641
|
/* harmony default export */ const config = ({
|
|
@@ -1986,7 +2003,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
1986
2003
|
_onExiting = _this$props.onExiting,
|
|
1987
2004
|
_onExited = _this$props.onExited,
|
|
1988
2005
|
_nodeRef = _this$props.nodeRef,
|
|
1989
|
-
childProps =
|
|
2006
|
+
childProps = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
1990
2007
|
return /*#__PURE__*/(
|
|
1991
2008
|
// allows for nested Transitions
|
|
1992
2009
|
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(TransitionGroupContext.Provider, {
|
|
@@ -2207,19 +2224,18 @@ function triggerBrowserReflow(node) {
|
|
|
2207
2224
|
}
|
|
2208
2225
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergedRefs.js
|
|
2209
2226
|
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
ref.current = value;
|
|
2213
|
-
};
|
|
2227
|
+
const toFnRef = ref => !ref || typeof ref === 'function' ? ref : value => {
|
|
2228
|
+
ref.current = value;
|
|
2214
2229
|
};
|
|
2215
2230
|
function mergeRefs(refA, refB) {
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
return
|
|
2231
|
+
const a = toFnRef(refA);
|
|
2232
|
+
const b = toFnRef(refB);
|
|
2233
|
+
return value => {
|
|
2219
2234
|
if (a) a(value);
|
|
2220
2235
|
if (b) b(value);
|
|
2221
2236
|
};
|
|
2222
2237
|
}
|
|
2238
|
+
|
|
2223
2239
|
/**
|
|
2224
2240
|
* Create and returns a single callback ref composed from two other Refs.
|
|
2225
2241
|
*
|
|
@@ -2236,11 +2252,8 @@ function mergeRefs(refA, refB) {
|
|
|
2236
2252
|
* @param refB A Callback or mutable Ref
|
|
2237
2253
|
* @category refs
|
|
2238
2254
|
*/
|
|
2239
|
-
|
|
2240
2255
|
function useMergedRefs(refA, refB) {
|
|
2241
|
-
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(
|
|
2242
|
-
return mergeRefs(refA, refB);
|
|
2243
|
-
}, [refA, refB]);
|
|
2256
|
+
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => mergeRefs(refA, refB), [refA, refB]);
|
|
2244
2257
|
}
|
|
2245
2258
|
/* harmony default export */ const esm_useMergedRefs = (useMergedRefs);
|
|
2246
2259
|
;// CONCATENATED MODULE: ./src/safeFindDOMNode.ts
|
|
@@ -2689,8 +2702,8 @@ function useAccordionButton(eventKey, onClick) {
|
|
|
2689
2702
|
eventKeyPassed = [eventKey];
|
|
2690
2703
|
}
|
|
2691
2704
|
}
|
|
2692
|
-
onSelect == null
|
|
2693
|
-
onClick == null
|
|
2705
|
+
onSelect == null || onSelect(eventKeyPassed, e);
|
|
2706
|
+
onClick == null || onClick(e);
|
|
2694
2707
|
};
|
|
2695
2708
|
}
|
|
2696
2709
|
const AccordionButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
@@ -2912,9 +2925,10 @@ Accordion.propTypes = Accordion_propTypes;
|
|
|
2912
2925
|
Body: src_AccordionBody
|
|
2913
2926
|
}));
|
|
2914
2927
|
// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/index.js
|
|
2915
|
-
var lib = __webpack_require__(
|
|
2928
|
+
var lib = __webpack_require__(173);
|
|
2916
2929
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCommittedRef.js
|
|
2917
2930
|
|
|
2931
|
+
|
|
2918
2932
|
/**
|
|
2919
2933
|
* Creates a `Ref` whose value is updated in an effect, ensuring the most recent
|
|
2920
2934
|
* value is the one rendered with. Generally only required for Concurrent mode usage
|
|
@@ -2924,10 +2938,9 @@ var lib = __webpack_require__(517);
|
|
|
2924
2938
|
*
|
|
2925
2939
|
* @param value The `Ref` value
|
|
2926
2940
|
*/
|
|
2927
|
-
|
|
2928
2941
|
function useCommittedRef_useCommittedRef(value) {
|
|
2929
|
-
|
|
2930
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(
|
|
2942
|
+
const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
|
|
2943
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
2931
2944
|
ref.current = value;
|
|
2932
2945
|
}, [value]);
|
|
2933
2946
|
return ref;
|
|
@@ -2937,9 +2950,9 @@ function useCommittedRef_useCommittedRef(value) {
|
|
|
2937
2950
|
|
|
2938
2951
|
|
|
2939
2952
|
function useEventCallback(fn) {
|
|
2940
|
-
|
|
2941
|
-
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function () {
|
|
2942
|
-
return ref.current && ref.current
|
|
2953
|
+
const ref = esm_useCommittedRef(fn);
|
|
2954
|
+
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function (...args) {
|
|
2955
|
+
return ref.current && ref.current(...args);
|
|
2943
2956
|
}, [ref]);
|
|
2944
2957
|
}
|
|
2945
2958
|
;// CONCATENATED MODULE: ./src/divWithClassName.tsx
|
|
@@ -2986,6 +2999,7 @@ AlertHeading.displayName = 'AlertHeading';
|
|
|
2986
2999
|
/* harmony default export */ const src_AlertHeading = (AlertHeading);
|
|
2987
3000
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
|
|
2988
3001
|
|
|
3002
|
+
|
|
2989
3003
|
/**
|
|
2990
3004
|
* A convenience hook around `useState` designed to be paired with
|
|
2991
3005
|
* the component [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) api.
|
|
@@ -3010,14 +3024,12 @@ AlertHeading.displayName = 'AlertHeading';
|
|
|
3010
3024
|
*
|
|
3011
3025
|
* @category refs
|
|
3012
3026
|
*/
|
|
3013
|
-
|
|
3014
3027
|
function useCallbackRef() {
|
|
3015
3028
|
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
|
|
3016
3029
|
}
|
|
3017
3030
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useEventListener.js
|
|
3018
3031
|
|
|
3019
3032
|
|
|
3020
|
-
|
|
3021
3033
|
/**
|
|
3022
3034
|
* Attaches an event handler outside directly to specified DOM element
|
|
3023
3035
|
* bypassing the react synthetic event system.
|
|
@@ -3027,23 +3039,17 @@ function useCallbackRef() {
|
|
|
3027
3039
|
* @param handler An event handler
|
|
3028
3040
|
* @param capture Whether or not to listen during the capture event phase
|
|
3029
3041
|
*/
|
|
3030
|
-
function useEventListener_useEventListener(eventTarget, event, listener, capture) {
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
var handler = useEventCallback(listener);
|
|
3035
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
3036
|
-
var target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
|
|
3042
|
+
function useEventListener_useEventListener(eventTarget, event, listener, capture = false) {
|
|
3043
|
+
const handler = useEventCallback(listener);
|
|
3044
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
3045
|
+
const target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
|
|
3037
3046
|
target.addEventListener(event, handler, capture);
|
|
3038
|
-
return
|
|
3039
|
-
return target.removeEventListener(event, handler, capture);
|
|
3040
|
-
};
|
|
3047
|
+
return () => target.removeEventListener(event, handler, capture);
|
|
3041
3048
|
}, [eventTarget]);
|
|
3042
3049
|
}
|
|
3043
3050
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useGlobalListener.js
|
|
3044
3051
|
|
|
3045
3052
|
|
|
3046
|
-
|
|
3047
3053
|
/**
|
|
3048
3054
|
* Attaches an event handler outside directly to the `document`,
|
|
3049
3055
|
* bypassing the react synthetic event system.
|
|
@@ -3058,18 +3064,14 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
|
|
|
3058
3064
|
* @param handler An event handler
|
|
3059
3065
|
* @param capture Whether or not to listen during the capture event phase
|
|
3060
3066
|
*/
|
|
3061
|
-
function useGlobalListener(event, handler, capture) {
|
|
3062
|
-
|
|
3063
|
-
capture = false;
|
|
3064
|
-
}
|
|
3065
|
-
var documentTarget = useCallback(function () {
|
|
3066
|
-
return document;
|
|
3067
|
-
}, []);
|
|
3067
|
+
function useGlobalListener(event, handler, capture = false) {
|
|
3068
|
+
const documentTarget = useCallback(() => document, []);
|
|
3068
3069
|
return useEventListener(documentTarget, event, handler, capture);
|
|
3069
3070
|
}
|
|
3070
3071
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useInterval.js
|
|
3071
3072
|
|
|
3072
3073
|
|
|
3074
|
+
|
|
3073
3075
|
/**
|
|
3074
3076
|
* Creates a `setInterval` that is properly cleaned up when a component unmounted
|
|
3075
3077
|
*
|
|
@@ -3086,55 +3088,88 @@ function useGlobalListener(event, handler, capture) {
|
|
|
3086
3088
|
* @param ms The milliseconds duration of the interval
|
|
3087
3089
|
*/
|
|
3088
3090
|
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3091
|
+
/**
|
|
3092
|
+
* Creates a pausable `setInterval` that is properly cleaned up when a component unmounted
|
|
3093
|
+
*
|
|
3094
|
+
* ```tsx
|
|
3095
|
+
* const [paused, setPaused] = useState(false)
|
|
3096
|
+
* const [timer, setTimer] = useState(0)
|
|
3097
|
+
*
|
|
3098
|
+
* useInterval(() => setTimer(i => i + 1), 1000, paused)
|
|
3099
|
+
*
|
|
3100
|
+
* return (
|
|
3101
|
+
* <span>
|
|
3102
|
+
* {timer} seconds past
|
|
3103
|
+
*
|
|
3104
|
+
* <button onClick={() => setPaused(p => !p)}>{paused ? 'Play' : 'Pause' }</button>
|
|
3105
|
+
* </span>
|
|
3106
|
+
* )
|
|
3107
|
+
* ```
|
|
3108
|
+
*
|
|
3109
|
+
* @param fn an function run on each interval
|
|
3110
|
+
* @param ms The milliseconds duration of the interval
|
|
3111
|
+
* @param paused Whether or not the interval is currently running
|
|
3112
|
+
*/
|
|
3113
|
+
|
|
3114
|
+
/**
|
|
3115
|
+
* Creates a pausable `setInterval` that _fires_ immediately and is
|
|
3116
|
+
* properly cleaned up when a component unmounted
|
|
3117
|
+
*
|
|
3118
|
+
* ```tsx
|
|
3119
|
+
* const [timer, setTimer] = useState(-1)
|
|
3120
|
+
* useInterval(() => setTimer(i => i + 1), 1000, false, true)
|
|
3121
|
+
*
|
|
3122
|
+
* // will update to 0 on the first effect
|
|
3123
|
+
* return <span>{timer} seconds past</span>
|
|
3124
|
+
* ```
|
|
3125
|
+
*
|
|
3126
|
+
* @param fn an function run on each interval
|
|
3127
|
+
* @param ms The milliseconds duration of the interval
|
|
3128
|
+
* @param paused Whether or not the interval is currently running
|
|
3129
|
+
* @param runImmediately Whether to run the function immediately on mount or unpause
|
|
3130
|
+
* rather than waiting for the first interval to elapse
|
|
3131
|
+
*
|
|
3099
3132
|
|
|
3100
|
-
|
|
3101
|
-
|
|
3133
|
+
*/
|
|
3134
|
+
|
|
3135
|
+
function useInterval(fn, ms, paused = false, runImmediately = false) {
|
|
3136
|
+
let handle;
|
|
3137
|
+
const fnRef = useCommittedRef(fn);
|
|
3138
|
+
// this ref is necessary b/c useEffect will sometimes miss a paused toggle
|
|
3139
|
+
// orphaning a setTimeout chain in the aether, so relying on it's refresh logic is not reliable.
|
|
3140
|
+
const pausedRef = useCommittedRef(paused);
|
|
3141
|
+
const tick = () => {
|
|
3102
3142
|
if (pausedRef.current) return;
|
|
3103
3143
|
fnRef.current();
|
|
3104
3144
|
schedule(); // eslint-disable-line no-use-before-define
|
|
3105
3145
|
};
|
|
3106
|
-
|
|
3146
|
+
const schedule = () => {
|
|
3107
3147
|
clearTimeout(handle);
|
|
3108
3148
|
handle = setTimeout(tick, ms);
|
|
3109
3149
|
};
|
|
3110
|
-
useEffect(
|
|
3150
|
+
useEffect(() => {
|
|
3111
3151
|
if (runImmediately) {
|
|
3112
3152
|
tick();
|
|
3113
3153
|
} else {
|
|
3114
3154
|
schedule();
|
|
3115
3155
|
}
|
|
3116
|
-
return
|
|
3117
|
-
return clearTimeout(handle);
|
|
3118
|
-
};
|
|
3156
|
+
return () => clearTimeout(handle);
|
|
3119
3157
|
}, [paused, runImmediately]);
|
|
3120
3158
|
}
|
|
3121
3159
|
/* harmony default export */ const esm_useInterval = ((/* unused pure expression or super */ null && (useInterval)));
|
|
3122
3160
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useRafInterval.js
|
|
3123
3161
|
|
|
3124
3162
|
|
|
3125
|
-
function useRafInterval(fn, ms, paused) {
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
var start = new Date().getTime();
|
|
3131
|
-
var fnRef = useCommittedRef(fn); // this ref is necessary b/c useEffect will sometimes miss a paused toggle
|
|
3163
|
+
function useRafInterval(fn, ms, paused = false) {
|
|
3164
|
+
let handle;
|
|
3165
|
+
let start = new Date().getTime();
|
|
3166
|
+
const fnRef = useCommittedRef(fn);
|
|
3167
|
+
// this ref is necessary b/c useEffect will sometimes miss a paused toggle
|
|
3132
3168
|
// orphaning a setTimeout chain in the aether, so relying on it's refresh logic is not reliable.
|
|
3133
|
-
|
|
3134
|
-
var pausedRef = useCommittedRef(paused);
|
|
3169
|
+
const pausedRef = useCommittedRef(paused);
|
|
3135
3170
|
function loop() {
|
|
3136
|
-
|
|
3137
|
-
|
|
3171
|
+
const current = new Date().getTime();
|
|
3172
|
+
const delta = current - start;
|
|
3138
3173
|
if (pausedRef.current) return;
|
|
3139
3174
|
if (delta >= ms && fnRef.current) {
|
|
3140
3175
|
fnRef.current();
|
|
@@ -3143,31 +3178,19 @@ function useRafInterval(fn, ms, paused) {
|
|
|
3143
3178
|
cancelAnimationFrame(handle);
|
|
3144
3179
|
handle = requestAnimationFrame(loop);
|
|
3145
3180
|
}
|
|
3146
|
-
useEffect(
|
|
3181
|
+
useEffect(() => {
|
|
3147
3182
|
handle = requestAnimationFrame(loop);
|
|
3148
|
-
return
|
|
3149
|
-
return cancelAnimationFrame(handle);
|
|
3150
|
-
};
|
|
3183
|
+
return () => cancelAnimationFrame(handle);
|
|
3151
3184
|
}, []);
|
|
3152
3185
|
}
|
|
3153
3186
|
/* harmony default export */ const esm_useRafInterval = ((/* unused pure expression or super */ null && (useRafInterval)));
|
|
3154
3187
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeState.js
|
|
3155
|
-
function useMergeState_extends() {
|
|
3156
|
-
useMergeState_extends = Object.assign || function (target) {
|
|
3157
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
3158
|
-
var source = arguments[i];
|
|
3159
|
-
for (var key in source) {
|
|
3160
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
3161
|
-
target[key] = source[key];
|
|
3162
|
-
}
|
|
3163
|
-
}
|
|
3164
|
-
}
|
|
3165
|
-
return target;
|
|
3166
|
-
};
|
|
3167
|
-
return useMergeState_extends.apply(this, arguments);
|
|
3168
|
-
}
|
|
3169
3188
|
|
|
3170
3189
|
|
|
3190
|
+
/**
|
|
3191
|
+
* Updates state, partial updates are merged into existing state values
|
|
3192
|
+
*/
|
|
3193
|
+
|
|
3171
3194
|
/**
|
|
3172
3195
|
* Mimics a React class component's state model, of having a single unified
|
|
3173
3196
|
* `state` object and an updater that merges updates into the existing state, as
|
|
@@ -3184,20 +3207,16 @@ function useMergeState_extends() {
|
|
|
3184
3207
|
* @param initialState The initial state object
|
|
3185
3208
|
*/
|
|
3186
3209
|
function useMergeState_useMergeState(initialState) {
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
setState = _useState[1];
|
|
3190
|
-
var updater = useCallback(function (update) {
|
|
3210
|
+
const [state, setState] = useState(initialState);
|
|
3211
|
+
const updater = useCallback(update => {
|
|
3191
3212
|
if (update === null) return;
|
|
3192
3213
|
if (typeof update === 'function') {
|
|
3193
|
-
setState(
|
|
3194
|
-
|
|
3195
|
-
return nextState == null ? state :
|
|
3214
|
+
setState(state => {
|
|
3215
|
+
const nextState = update(state);
|
|
3216
|
+
return nextState == null ? state : Object.assign({}, state, nextState);
|
|
3196
3217
|
});
|
|
3197
3218
|
} else {
|
|
3198
|
-
setState(
|
|
3199
|
-
return useMergeState_extends({}, state, update);
|
|
3200
|
-
});
|
|
3219
|
+
setState(state => Object.assign({}, state, update));
|
|
3201
3220
|
}
|
|
3202
3221
|
}, [setState]);
|
|
3203
3222
|
return [state, updater];
|
|
@@ -3205,15 +3224,14 @@ function useMergeState_useMergeState(initialState) {
|
|
|
3205
3224
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeStateFromProps.js
|
|
3206
3225
|
|
|
3207
3226
|
function useMergeStateFromProps(props, gDSFP, initialState) {
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
setState = _useMergeState[1];
|
|
3211
|
-
var nextState = gDSFP(props, state);
|
|
3227
|
+
const [state, setState] = useMergeState(initialState);
|
|
3228
|
+
const nextState = gDSFP(props, state);
|
|
3212
3229
|
if (nextState !== null) setState(nextState);
|
|
3213
3230
|
return [state, setState];
|
|
3214
3231
|
}
|
|
3215
3232
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
|
|
3216
3233
|
|
|
3234
|
+
|
|
3217
3235
|
/**
|
|
3218
3236
|
* Track whether a component is current mounted. Generally less preferable than
|
|
3219
3237
|
* properlly canceling effects so they don't run after a component is unmounted,
|
|
@@ -3234,15 +3252,12 @@ function useMergeStateFromProps(props, gDSFP, initialState) {
|
|
|
3234
3252
|
* })
|
|
3235
3253
|
* ```
|
|
3236
3254
|
*/
|
|
3237
|
-
|
|
3238
3255
|
function useMounted() {
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
});
|
|
3243
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
3256
|
+
const mounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
|
|
3257
|
+
const isMounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(() => mounted.current);
|
|
3258
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
3244
3259
|
mounted.current = true;
|
|
3245
|
-
return
|
|
3260
|
+
return () => {
|
|
3246
3261
|
mounted.current = false;
|
|
3247
3262
|
};
|
|
3248
3263
|
}, []);
|
|
@@ -3250,6 +3265,7 @@ function useMounted() {
|
|
|
3250
3265
|
}
|
|
3251
3266
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/usePrevious.js
|
|
3252
3267
|
|
|
3268
|
+
|
|
3253
3269
|
/**
|
|
3254
3270
|
* Store the last of some value. Tracked via a `Ref` only updating it
|
|
3255
3271
|
* after the component renders.
|
|
@@ -3267,17 +3283,15 @@ function useMounted() {
|
|
|
3267
3283
|
*
|
|
3268
3284
|
* @param value the value to track
|
|
3269
3285
|
*/
|
|
3270
|
-
|
|
3271
3286
|
function usePrevious(value) {
|
|
3272
|
-
|
|
3273
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(
|
|
3287
|
+
const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
3288
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
3274
3289
|
ref.current = value;
|
|
3275
3290
|
});
|
|
3276
3291
|
return ref.current;
|
|
3277
3292
|
}
|
|
3278
3293
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useImage.js
|
|
3279
3294
|
|
|
3280
|
-
|
|
3281
3295
|
/**
|
|
3282
3296
|
* Fetch and load an image for programatic use such as in a `<canvas>` element.
|
|
3283
3297
|
*
|
|
@@ -3304,15 +3318,13 @@ function usePrevious(value) {
|
|
|
3304
3318
|
* ```
|
|
3305
3319
|
*/
|
|
3306
3320
|
function useImage(imageOrUrl, crossOrigin) {
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
setState = _useState[1];
|
|
3313
|
-
useEffect(function () {
|
|
3321
|
+
const [state, setState] = useState({
|
|
3322
|
+
image: null,
|
|
3323
|
+
error: null
|
|
3324
|
+
});
|
|
3325
|
+
useEffect(() => {
|
|
3314
3326
|
if (!imageOrUrl) return undefined;
|
|
3315
|
-
|
|
3327
|
+
let image;
|
|
3316
3328
|
if (typeof imageOrUrl === 'string') {
|
|
3317
3329
|
image = new Image();
|
|
3318
3330
|
if (crossOrigin) image.crossOrigin = crossOrigin;
|
|
@@ -3321,7 +3333,7 @@ function useImage(imageOrUrl, crossOrigin) {
|
|
|
3321
3333
|
image = imageOrUrl;
|
|
3322
3334
|
if (image.complete && image.naturalHeight > 0) {
|
|
3323
3335
|
setState({
|
|
3324
|
-
image
|
|
3336
|
+
image,
|
|
3325
3337
|
error: null
|
|
3326
3338
|
});
|
|
3327
3339
|
return;
|
|
@@ -3329,19 +3341,19 @@ function useImage(imageOrUrl, crossOrigin) {
|
|
|
3329
3341
|
}
|
|
3330
3342
|
function onLoad() {
|
|
3331
3343
|
setState({
|
|
3332
|
-
image
|
|
3344
|
+
image,
|
|
3333
3345
|
error: null
|
|
3334
3346
|
});
|
|
3335
3347
|
}
|
|
3336
3348
|
function onError(error) {
|
|
3337
3349
|
setState({
|
|
3338
|
-
image
|
|
3339
|
-
error
|
|
3350
|
+
image,
|
|
3351
|
+
error
|
|
3340
3352
|
});
|
|
3341
3353
|
}
|
|
3342
3354
|
image.addEventListener('load', onLoad);
|
|
3343
3355
|
image.addEventListener('error', onError);
|
|
3344
|
-
return
|
|
3356
|
+
return () => {
|
|
3345
3357
|
image.removeEventListener('load', onLoad);
|
|
3346
3358
|
image.removeEventListener('error', onError);
|
|
3347
3359
|
};
|
|
@@ -3350,12 +3362,13 @@ function useImage(imageOrUrl, crossOrigin) {
|
|
|
3350
3362
|
}
|
|
3351
3363
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
|
|
3352
3364
|
|
|
3353
|
-
|
|
3365
|
+
const isReactNative = typeof __webpack_require__.g !== 'undefined' &&
|
|
3354
3366
|
// @ts-ignore
|
|
3355
3367
|
__webpack_require__.g.navigator &&
|
|
3356
3368
|
// @ts-ignore
|
|
3357
3369
|
__webpack_require__.g.navigator.product === 'ReactNative';
|
|
3358
|
-
|
|
3370
|
+
const isDOM = typeof document !== 'undefined';
|
|
3371
|
+
|
|
3359
3372
|
/**
|
|
3360
3373
|
* Is `useLayoutEffect` in a DOM or React Native environment, otherwise resolves to useEffect
|
|
3361
3374
|
* Only useful to avoid the console warning.
|
|
@@ -3364,22 +3377,22 @@ var isDOM = typeof document !== 'undefined';
|
|
|
3364
3377
|
*
|
|
3365
3378
|
* @category effects
|
|
3366
3379
|
*/
|
|
3367
|
-
|
|
3368
3380
|
/* 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);
|
|
3369
3381
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useResizeObserver.js
|
|
3370
3382
|
|
|
3371
3383
|
|
|
3372
|
-
|
|
3373
|
-
|
|
3384
|
+
const targetMap = new WeakMap();
|
|
3385
|
+
let resizeObserver;
|
|
3374
3386
|
function getResizeObserver() {
|
|
3375
3387
|
// eslint-disable-next-line no-return-assign
|
|
3376
|
-
return resizeObserver = resizeObserver || new window.ResizeObserver(
|
|
3377
|
-
entries.forEach(
|
|
3378
|
-
|
|
3388
|
+
return resizeObserver = resizeObserver || new window.ResizeObserver(entries => {
|
|
3389
|
+
entries.forEach(entry => {
|
|
3390
|
+
const handler = targetMap.get(entry.target);
|
|
3379
3391
|
if (handler) handler(entry.contentRect);
|
|
3380
3392
|
});
|
|
3381
3393
|
});
|
|
3382
3394
|
}
|
|
3395
|
+
|
|
3383
3396
|
/**
|
|
3384
3397
|
* Efficiently observe size changes on an element. Depends on the `ResizeObserver` api,
|
|
3385
3398
|
* and polyfills are needed in older browsers.
|
|
@@ -3398,19 +3411,16 @@ function getResizeObserver() {
|
|
|
3398
3411
|
*
|
|
3399
3412
|
* @param element The DOM element to observe
|
|
3400
3413
|
*/
|
|
3401
|
-
|
|
3402
3414
|
function useResizeObserver(element) {
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
setRect = _useState[1];
|
|
3406
|
-
useEffect(function () {
|
|
3415
|
+
const [rect, setRect] = useState(null);
|
|
3416
|
+
useEffect(() => {
|
|
3407
3417
|
if (!element) return;
|
|
3408
3418
|
getResizeObserver().observe(element);
|
|
3409
3419
|
setRect(element.getBoundingClientRect());
|
|
3410
|
-
targetMap.set(element,
|
|
3420
|
+
targetMap.set(element, rect => {
|
|
3411
3421
|
setRect(rect);
|
|
3412
3422
|
});
|
|
3413
|
-
return
|
|
3423
|
+
return () => {
|
|
3414
3424
|
targetMap.delete(element);
|
|
3415
3425
|
};
|
|
3416
3426
|
}, [element]);
|
|
@@ -3432,7 +3442,7 @@ function useResizeObserver(element) {
|
|
|
3432
3442
|
|
|
3433
3443
|
|
|
3434
3444
|
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
|
|
3435
|
-
var jsx_runtime = __webpack_require__(
|
|
3445
|
+
var jsx_runtime = __webpack_require__(74);
|
|
3436
3446
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Button.js
|
|
3437
3447
|
const _excluded = ["as", "disabled"];
|
|
3438
3448
|
function Button_objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -3705,7 +3715,7 @@ const Fade = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd
|
|
|
3705
3715
|
};
|
|
3706
3716
|
const handleEnter = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((node, isAppearing) => {
|
|
3707
3717
|
triggerBrowserReflow(node);
|
|
3708
|
-
onEnter == null
|
|
3718
|
+
onEnter == null || onEnter(node, isAppearing);
|
|
3709
3719
|
}, [onEnter]);
|
|
3710
3720
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_TransitionWrapper, {
|
|
3711
3721
|
ref: ref,
|
|
@@ -3818,7 +3828,7 @@ const Alert_propTypes = {
|
|
|
3818
3828
|
* `false` to disable. A custom `react-transition-group` Transition can also
|
|
3819
3829
|
* be provided.
|
|
3820
3830
|
*/
|
|
3821
|
-
transition: prop_types_default().oneOfType([(prop_types_default()).bool, lib/* elementType */.
|
|
3831
|
+
transition: prop_types_default().oneOfType([(prop_types_default()).bool, lib/* elementType */.rk])
|
|
3822
3832
|
};
|
|
3823
3833
|
const Alert = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((uncontrolledProps, ref) => {
|
|
3824
3834
|
const {
|
|
@@ -4651,6 +4661,7 @@ CardGroup.displayName = 'CardGroup';
|
|
|
4651
4661
|
/* harmony default export */ const src_CardGroup = (CardGroup);
|
|
4652
4662
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useUpdateEffect.js
|
|
4653
4663
|
|
|
4664
|
+
|
|
4654
4665
|
/**
|
|
4655
4666
|
* Runs an effect only when the dependencies have changed, skipping the
|
|
4656
4667
|
* initial "on mount" run. Caution, if the dependency list never changes,
|
|
@@ -4671,10 +4682,9 @@ CardGroup.displayName = 'CardGroup';
|
|
|
4671
4682
|
*
|
|
4672
4683
|
* @category effects
|
|
4673
4684
|
*/
|
|
4674
|
-
|
|
4675
4685
|
function useUpdateEffect(fn, deps) {
|
|
4676
|
-
|
|
4677
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(
|
|
4686
|
+
const isFirst = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
|
|
4687
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
4678
4688
|
if (isFirst.current) {
|
|
4679
4689
|
isFirst.current = false;
|
|
4680
4690
|
return;
|
|
@@ -4685,40 +4695,37 @@ function useUpdateEffect(fn, deps) {
|
|
|
4685
4695
|
/* harmony default export */ const esm_useUpdateEffect = (useUpdateEffect);
|
|
4686
4696
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useUpdatedRef.js
|
|
4687
4697
|
|
|
4698
|
+
|
|
4688
4699
|
/**
|
|
4689
4700
|
* Returns a ref that is immediately updated with the new value
|
|
4690
4701
|
*
|
|
4691
4702
|
* @param value The Ref value
|
|
4692
4703
|
* @category refs
|
|
4693
4704
|
*/
|
|
4694
|
-
|
|
4695
4705
|
function useUpdatedRef(value) {
|
|
4696
|
-
|
|
4706
|
+
const valueRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
|
|
4697
4707
|
valueRef.current = value;
|
|
4698
4708
|
return valueRef;
|
|
4699
4709
|
}
|
|
4700
4710
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useWillUnmount.js
|
|
4701
4711
|
|
|
4702
4712
|
|
|
4713
|
+
|
|
4703
4714
|
/**
|
|
4704
4715
|
* Attach a callback that fires when a component unmounts
|
|
4705
4716
|
*
|
|
4706
4717
|
* @param fn Handler to run when the component unmounts
|
|
4707
4718
|
* @category effects
|
|
4708
4719
|
*/
|
|
4709
|
-
|
|
4710
4720
|
function useWillUnmount(fn) {
|
|
4711
|
-
|
|
4712
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(
|
|
4713
|
-
return function () {
|
|
4714
|
-
return onUnmount.current();
|
|
4715
|
-
};
|
|
4716
|
-
}, []);
|
|
4721
|
+
const onUnmount = useUpdatedRef(fn);
|
|
4722
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => () => onUnmount.current(), []);
|
|
4717
4723
|
}
|
|
4718
4724
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useTimeout.js
|
|
4719
4725
|
|
|
4720
4726
|
|
|
4721
4727
|
|
|
4728
|
+
|
|
4722
4729
|
/*
|
|
4723
4730
|
* Browsers including Internet Explorer, Chrome, Safari, and Firefox store the
|
|
4724
4731
|
* delay as a 32-bit signed integer internally. This causes an integer overflow
|
|
@@ -4727,14 +4734,12 @@ function useWillUnmount(fn) {
|
|
|
4727
4734
|
*
|
|
4728
4735
|
* via: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout
|
|
4729
4736
|
*/
|
|
4730
|
-
|
|
4731
|
-
var MAX_DELAY_MS = Math.pow(2, 31) - 1;
|
|
4737
|
+
const MAX_DELAY_MS = 2 ** 31 - 1;
|
|
4732
4738
|
function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
4733
|
-
|
|
4734
|
-
handleRef.current = delayMs <= MAX_DELAY_MS ? setTimeout(fn, delayMs) : setTimeout(
|
|
4735
|
-
return setChainedTimeout(handleRef, fn, timeoutAtMs);
|
|
4736
|
-
}, MAX_DELAY_MS);
|
|
4739
|
+
const delayMs = timeoutAtMs - Date.now();
|
|
4740
|
+
handleRef.current = delayMs <= MAX_DELAY_MS ? setTimeout(fn, delayMs) : setTimeout(() => setChainedTimeout(handleRef, fn, timeoutAtMs), MAX_DELAY_MS);
|
|
4737
4741
|
}
|
|
4742
|
+
|
|
4738
4743
|
/**
|
|
4739
4744
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
4740
4745
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
@@ -4753,22 +4758,15 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
4753
4758
|
* );
|
|
4754
4759
|
* ```
|
|
4755
4760
|
*/
|
|
4756
|
-
|
|
4757
4761
|
function useTimeout() {
|
|
4758
|
-
|
|
4762
|
+
const isMounted = useMounted();
|
|
4759
4763
|
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
return clearTimeout(handleRef.current);
|
|
4767
|
-
};
|
|
4768
|
-
function set(fn, delayMs) {
|
|
4769
|
-
if (delayMs === void 0) {
|
|
4770
|
-
delayMs = 0;
|
|
4771
|
-
}
|
|
4764
|
+
// types are confused between node and web here IDK
|
|
4765
|
+
const handleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
|
|
4766
|
+
useWillUnmount(() => clearTimeout(handleRef.current));
|
|
4767
|
+
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
4768
|
+
const clear = () => clearTimeout(handleRef.current);
|
|
4769
|
+
function set(fn, delayMs = 0) {
|
|
4772
4770
|
if (!isMounted()) return;
|
|
4773
4771
|
clear();
|
|
4774
4772
|
if (delayMs <= MAX_DELAY_MS) {
|
|
@@ -4779,8 +4777,9 @@ function useTimeout() {
|
|
|
4779
4777
|
}
|
|
4780
4778
|
}
|
|
4781
4779
|
return {
|
|
4782
|
-
set
|
|
4783
|
-
clear
|
|
4780
|
+
set,
|
|
4781
|
+
clear,
|
|
4782
|
+
handleRef
|
|
4784
4783
|
};
|
|
4785
4784
|
}, []);
|
|
4786
4785
|
}
|
|
@@ -5112,7 +5111,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
5112
5111
|
nextActiveIndex = numChildren - 1;
|
|
5113
5112
|
}
|
|
5114
5113
|
nextDirectionRef.current = 'prev';
|
|
5115
|
-
onSelect == null
|
|
5114
|
+
onSelect == null || onSelect(nextActiveIndex, event);
|
|
5116
5115
|
}, [isSliding, renderedActiveIndex, onSelect, wrap, numChildren]);
|
|
5117
5116
|
|
|
5118
5117
|
// This is used in the setInterval, so it should not invalidate.
|
|
@@ -5128,7 +5127,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
5128
5127
|
nextActiveIndex = 0;
|
|
5129
5128
|
}
|
|
5130
5129
|
nextDirectionRef.current = 'next';
|
|
5131
|
-
onSelect == null
|
|
5130
|
+
onSelect == null || onSelect(nextActiveIndex, event);
|
|
5132
5131
|
});
|
|
5133
5132
|
const elementRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
|
|
5134
5133
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useImperativeHandle)(ref, () => ({
|
|
@@ -5153,18 +5152,18 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
5153
5152
|
// These callbacks will be handled by the <Transition> callbacks.
|
|
5154
5153
|
return;
|
|
5155
5154
|
}
|
|
5156
|
-
onSlide == null
|
|
5157
|
-
onSlid == null
|
|
5155
|
+
onSlide == null || onSlide(renderedActiveIndex, slideDirection);
|
|
5156
|
+
onSlid == null || onSlid(renderedActiveIndex, slideDirection);
|
|
5158
5157
|
}, [renderedActiveIndex]);
|
|
5159
5158
|
const orderClassName = `${prefix}-item-${direction}`;
|
|
5160
5159
|
const directionalClassName = `${prefix}-item-${slideDirection}`;
|
|
5161
5160
|
const handleEnter = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(node => {
|
|
5162
5161
|
triggerBrowserReflow(node);
|
|
5163
|
-
onSlide == null
|
|
5162
|
+
onSlide == null || onSlide(renderedActiveIndex, slideDirection);
|
|
5164
5163
|
}, [onSlide, renderedActiveIndex, slideDirection]);
|
|
5165
5164
|
const handleEntered = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(() => {
|
|
5166
5165
|
setIsSliding(false);
|
|
5167
|
-
onSlid == null
|
|
5166
|
+
onSlid == null || onSlid(renderedActiveIndex, slideDirection);
|
|
5168
5167
|
}, [onSlid, renderedActiveIndex, slideDirection]);
|
|
5169
5168
|
const handleKeyDown = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(event => {
|
|
5170
5169
|
if (keyboard && !/input|textarea/i.test(event.target.tagName)) {
|
|
@@ -5188,17 +5187,17 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
5188
5187
|
default:
|
|
5189
5188
|
}
|
|
5190
5189
|
}
|
|
5191
|
-
onKeyDown == null
|
|
5190
|
+
onKeyDown == null || onKeyDown(event);
|
|
5192
5191
|
}, [keyboard, onKeyDown, prev, next, isRTL]);
|
|
5193
5192
|
const handleMouseOver = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(event => {
|
|
5194
5193
|
if (pause === 'hover') {
|
|
5195
5194
|
setPaused(true);
|
|
5196
5195
|
}
|
|
5197
|
-
onMouseOver == null
|
|
5196
|
+
onMouseOver == null || onMouseOver(event);
|
|
5198
5197
|
}, [pause, onMouseOver]);
|
|
5199
5198
|
const handleMouseOut = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(event => {
|
|
5200
5199
|
setPaused(false);
|
|
5201
|
-
onMouseOut == null
|
|
5200
|
+
onMouseOut == null || onMouseOut(event);
|
|
5202
5201
|
}, [onMouseOut]);
|
|
5203
5202
|
const touchStartXRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(0);
|
|
5204
5203
|
const touchDeltaXRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(0);
|
|
@@ -5209,7 +5208,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
5209
5208
|
if (pause === 'hover') {
|
|
5210
5209
|
setPaused(true);
|
|
5211
5210
|
}
|
|
5212
|
-
onTouchStart == null
|
|
5211
|
+
onTouchStart == null || onTouchStart(event);
|
|
5213
5212
|
}, [pause, onTouchStart]);
|
|
5214
5213
|
const handleTouchMove = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(event => {
|
|
5215
5214
|
if (event.touches && event.touches.length > 1) {
|
|
@@ -5217,7 +5216,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
5217
5216
|
} else {
|
|
5218
5217
|
touchDeltaXRef.current = event.touches[0].clientX - touchStartXRef.current;
|
|
5219
5218
|
}
|
|
5220
|
-
onTouchMove == null
|
|
5219
|
+
onTouchMove == null || onTouchMove(event);
|
|
5221
5220
|
}, [onTouchMove]);
|
|
5222
5221
|
const handleTouchEnd = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(event => {
|
|
5223
5222
|
if (touch) {
|
|
@@ -5235,7 +5234,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
5235
5234
|
setPaused(false);
|
|
5236
5235
|
}, interval || undefined);
|
|
5237
5236
|
}
|
|
5238
|
-
onTouchEnd == null
|
|
5237
|
+
onTouchEnd == null || onTouchEnd(event);
|
|
5239
5238
|
}, [touch, pause, prev, next, touchUnpauseTimeout, interval, onTouchEnd]);
|
|
5240
5239
|
const shouldPlay = interval != null && !paused && !isSliding;
|
|
5241
5240
|
const intervalHandleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
|
|
@@ -5255,7 +5254,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
5255
5254
|
const indicatorOnClicks = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => indicators && Array.from({
|
|
5256
5255
|
length: numChildren
|
|
5257
5256
|
}, (_, index) => event => {
|
|
5258
|
-
onSelect == null
|
|
5257
|
+
onSelect == null || onSelect(index, event);
|
|
5259
5258
|
}), [indicators, numChildren, onSelect]);
|
|
5260
5259
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
|
|
5261
5260
|
ref: elementRef,
|
|
@@ -5579,9 +5578,11 @@ function esm_useUncontrolledProp(propValue, defaultValue, handler) {
|
|
|
5579
5578
|
if (!isProp && wasProp && stateValue !== defaultValue) {
|
|
5580
5579
|
setState(defaultValue);
|
|
5581
5580
|
}
|
|
5582
|
-
return [isProp ? propValue : stateValue, (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((
|
|
5583
|
-
|
|
5581
|
+
return [isProp ? propValue : stateValue, (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
|
|
5582
|
+
const [value, ...rest] = args;
|
|
5583
|
+
let returnValue = handler == null ? void 0 : handler(value, ...rest);
|
|
5584
5584
|
setState(value);
|
|
5585
|
+
return returnValue;
|
|
5585
5586
|
}, [handler])];
|
|
5586
5587
|
}
|
|
5587
5588
|
|
|
@@ -5604,6 +5605,7 @@ function esm_useUncontrolled(props, config) {
|
|
|
5604
5605
|
}
|
|
5605
5606
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useForceUpdate.js
|
|
5606
5607
|
|
|
5608
|
+
|
|
5607
5609
|
/**
|
|
5608
5610
|
* Returns a function that triggers a component update. the hook equivalent to
|
|
5609
5611
|
* `this.forceUpdate()` in a class component. In most cases using a state value directly
|
|
@@ -5620,14 +5622,10 @@ function esm_useUncontrolled(props, config) {
|
|
|
5620
5622
|
* return <button type="button" onClick={updateOnClick}>Hi there</button>
|
|
5621
5623
|
* ```
|
|
5622
5624
|
*/
|
|
5623
|
-
|
|
5624
5625
|
function useForceUpdate() {
|
|
5625
5626
|
// The toggling state value is designed to defeat React optimizations for skipping
|
|
5626
|
-
// updates when they are
|
|
5627
|
-
|
|
5628
|
-
return !state;
|
|
5629
|
-
}, false),
|
|
5630
|
-
dispatch = _useReducer[1];
|
|
5627
|
+
// updates when they are strictly equal to the last state value
|
|
5628
|
+
const [, dispatch] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useReducer)(state => !state, false);
|
|
5631
5629
|
return dispatch;
|
|
5632
5630
|
}
|
|
5633
5631
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/DropdownContext.js
|
|
@@ -5723,9 +5721,22 @@ function dequal(foo, bar) {
|
|
|
5723
5721
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useSafeState.js
|
|
5724
5722
|
|
|
5725
5723
|
|
|
5724
|
+
|
|
5725
|
+
/**
|
|
5726
|
+
* `useSafeState` takes the return value of a `useState` hook and wraps the
|
|
5727
|
+
* setter to prevent updates onces the component has unmounted. Can used
|
|
5728
|
+
* with `useMergeState` and `useStateAsync` as well
|
|
5729
|
+
*
|
|
5730
|
+
* @param state The return value of a useStateHook
|
|
5731
|
+
*
|
|
5732
|
+
* ```ts
|
|
5733
|
+
* const [show, setShow] = useSafeState(useState(true));
|
|
5734
|
+
* ```
|
|
5735
|
+
*/
|
|
5736
|
+
|
|
5726
5737
|
function useSafeState(state) {
|
|
5727
|
-
|
|
5728
|
-
return [state[0], (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(
|
|
5738
|
+
const isMounted = useMounted();
|
|
5739
|
+
return [state[0], (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(nextState => {
|
|
5729
5740
|
if (!isMounted()) return;
|
|
5730
5741
|
return state[1](nextState);
|
|
5731
5742
|
}, [isMounted, state[1]])];
|
|
@@ -6043,7 +6054,6 @@ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain,
|
|
|
6043
6054
|
|
|
6044
6055
|
|
|
6045
6056
|
|
|
6046
|
-
|
|
6047
6057
|
// eslint-disable-next-line import/no-unused-modules
|
|
6048
6058
|
|
|
6049
6059
|
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
@@ -6100,9 +6110,7 @@ function effect(_ref2) {
|
|
|
6100
6110
|
return;
|
|
6101
6111
|
}
|
|
6102
6112
|
}
|
|
6103
|
-
if (false) {}
|
|
6104
6113
|
if (!contains(state.elements.popper, arrowElement)) {
|
|
6105
|
-
if (false) {}
|
|
6106
6114
|
return;
|
|
6107
6115
|
}
|
|
6108
6116
|
state.elements.arrow = arrowElement;
|
|
@@ -6236,7 +6244,6 @@ function computeStyles(_ref5) {
|
|
|
6236
6244
|
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
6237
6245
|
_options$roundOffsets = options.roundOffsets,
|
|
6238
6246
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
6239
|
-
if (false) { var transitionProperty; }
|
|
6240
6247
|
var commonStyles = {
|
|
6241
6248
|
placement: getBasePlacement(state.placement),
|
|
6242
6249
|
variation: getVariation(state.placement),
|
|
@@ -6695,7 +6702,6 @@ function computeAutoPlacement(state, options) {
|
|
|
6695
6702
|
});
|
|
6696
6703
|
if (allowedPlacements.length === 0) {
|
|
6697
6704
|
allowedPlacements = placements;
|
|
6698
|
-
if (false) {}
|
|
6699
6705
|
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
6700
6706
|
|
|
6701
6707
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -7251,13 +7257,6 @@ function mergeByName(modifiers) {
|
|
|
7251
7257
|
|
|
7252
7258
|
|
|
7253
7259
|
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
|
|
7260
|
-
var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
|
|
7261
7260
|
var DEFAULT_OPTIONS = {
|
|
7262
7261
|
placement: 'bottom',
|
|
7263
7262
|
modifiers: [],
|
|
@@ -7314,10 +7313,7 @@ function popperGenerator(generatorOptions) {
|
|
|
7314
7313
|
|
|
7315
7314
|
state.orderedModifiers = orderedModifiers.filter(function (m) {
|
|
7316
7315
|
return m.enabled;
|
|
7317
|
-
});
|
|
7318
|
-
// if one of the modifiers is invalid for any reason
|
|
7319
|
-
|
|
7320
|
-
if (false) { var _getComputedStyle, marginTop, marginRight, marginBottom, marginLeft, flipModifier, modifiers; }
|
|
7316
|
+
});
|
|
7321
7317
|
runModifierEffects();
|
|
7322
7318
|
return instance.update();
|
|
7323
7319
|
},
|
|
@@ -7336,7 +7332,6 @@ function popperGenerator(generatorOptions) {
|
|
|
7336
7332
|
// anymore
|
|
7337
7333
|
|
|
7338
7334
|
if (!areValidElements(reference, popper)) {
|
|
7339
|
-
if (false) {}
|
|
7340
7335
|
return;
|
|
7341
7336
|
} // Store the reference and popper rects to be read by modifiers
|
|
7342
7337
|
|
|
@@ -7358,9 +7353,7 @@ function popperGenerator(generatorOptions) {
|
|
|
7358
7353
|
state.orderedModifiers.forEach(function (modifier) {
|
|
7359
7354
|
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
7360
7355
|
});
|
|
7361
|
-
var __debug_loops__ = 0;
|
|
7362
7356
|
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
7363
|
-
if (false) {}
|
|
7364
7357
|
if (state.reset === true) {
|
|
7365
7358
|
state.reset = false;
|
|
7366
7359
|
index = -1;
|
|
@@ -7395,7 +7388,6 @@ function popperGenerator(generatorOptions) {
|
|
|
7395
7388
|
}
|
|
7396
7389
|
};
|
|
7397
7390
|
if (!areValidElements(reference, popper)) {
|
|
7398
|
-
if (false) {}
|
|
7399
7391
|
return instance;
|
|
7400
7392
|
}
|
|
7401
7393
|
instance.setOptions(options).then(function (state) {
|
|
@@ -7409,11 +7401,11 @@ function popperGenerator(generatorOptions) {
|
|
|
7409
7401
|
// one.
|
|
7410
7402
|
|
|
7411
7403
|
function runModifierEffects() {
|
|
7412
|
-
state.orderedModifiers.forEach(function (
|
|
7413
|
-
var name =
|
|
7414
|
-
|
|
7415
|
-
options =
|
|
7416
|
-
effect =
|
|
7404
|
+
state.orderedModifiers.forEach(function (_ref) {
|
|
7405
|
+
var name = _ref.name,
|
|
7406
|
+
_ref$options = _ref.options,
|
|
7407
|
+
options = _ref$options === void 0 ? {} : _ref$options,
|
|
7408
|
+
effect = _ref.effect;
|
|
7417
7409
|
if (typeof effect === 'function') {
|
|
7418
7410
|
var cleanupFn = effect({
|
|
7419
7411
|
state: state,
|
|
@@ -7642,7 +7634,7 @@ function contains_contains(context, node) {
|
|
|
7642
7634
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
7643
7635
|
}
|
|
7644
7636
|
// EXTERNAL MODULE: ./node_modules/warning/warning.js
|
|
7645
|
-
var warning = __webpack_require__(
|
|
7637
|
+
var warning = __webpack_require__(773);
|
|
7646
7638
|
var warning_default = /*#__PURE__*/__webpack_require__.n(warning);
|
|
7647
7639
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/useClickOutside.js
|
|
7648
7640
|
|
|
@@ -7804,7 +7796,7 @@ function mergeOptionsWithPopperConfig({
|
|
|
7804
7796
|
});
|
|
7805
7797
|
}
|
|
7806
7798
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/DropdownMenu.js
|
|
7807
|
-
const DropdownMenu_excluded = ["children"];
|
|
7799
|
+
const DropdownMenu_excluded = ["children", "usePopper"];
|
|
7808
7800
|
function DropdownMenu_objectWithoutPropertiesLoose(source, excluded) {
|
|
7809
7801
|
if (source == null) return {};
|
|
7810
7802
|
var target = {};
|
|
@@ -7899,9 +7891,6 @@ function useDropdownMenu(options = {}) {
|
|
|
7899
7891
|
});
|
|
7900
7892
|
return [menuProps, metadata];
|
|
7901
7893
|
}
|
|
7902
|
-
const defaultProps = {
|
|
7903
|
-
usePopper: true
|
|
7904
|
-
};
|
|
7905
7894
|
/**
|
|
7906
7895
|
* Also exported as `<Dropdown.Menu>` from `Dropdown`.
|
|
7907
7896
|
*
|
|
@@ -7910,16 +7899,18 @@ const defaultProps = {
|
|
|
7910
7899
|
*/
|
|
7911
7900
|
function DropdownMenu(_ref) {
|
|
7912
7901
|
let {
|
|
7913
|
-
children
|
|
7902
|
+
children,
|
|
7903
|
+
usePopper: usePopperProp = true
|
|
7914
7904
|
} = _ref,
|
|
7915
7905
|
options = DropdownMenu_objectWithoutPropertiesLoose(_ref, DropdownMenu_excluded);
|
|
7916
|
-
const [props, meta] = useDropdownMenu(options
|
|
7906
|
+
const [props, meta] = useDropdownMenu(Object.assign({}, options, {
|
|
7907
|
+
usePopper: usePopperProp
|
|
7908
|
+
}));
|
|
7917
7909
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
7918
7910
|
children: children(props, meta)
|
|
7919
7911
|
});
|
|
7920
7912
|
}
|
|
7921
7913
|
DropdownMenu.displayName = 'DropdownMenu';
|
|
7922
|
-
DropdownMenu.defaultProps = defaultProps;
|
|
7923
7914
|
|
|
7924
7915
|
/** @component */
|
|
7925
7916
|
/* harmony default export */ const esm_DropdownMenu = (DropdownMenu);
|
|
@@ -7955,46 +7946,59 @@ DropdownMenu.defaultProps = defaultProps;
|
|
|
7955
7946
|
// being on the page at once, the prefix is set to a random number. SSRProvider
|
|
7956
7947
|
// will reset this to zero for consistency between server and client, so in the
|
|
7957
7948
|
// SSR case multiple copies of React Aria is not supported.
|
|
7958
|
-
const $
|
|
7949
|
+
const $b5e257d569688ac6$var$defaultContext = {
|
|
7959
7950
|
prefix: String(Math.round(Math.random() * 10000000000)),
|
|
7960
|
-
current: 0
|
|
7961
|
-
isSSR: false
|
|
7951
|
+
current: 0
|
|
7962
7952
|
};
|
|
7963
|
-
const $
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7953
|
+
const $b5e257d569688ac6$var$SSRContext = /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createContext($b5e257d569688ac6$var$defaultContext);
|
|
7954
|
+
const $b5e257d569688ac6$var$IsSSRContext = /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createContext(false);
|
|
7955
|
+
// This is only used in React < 18.
|
|
7956
|
+
function $b5e257d569688ac6$var$LegacySSRProvider(props) {
|
|
7957
|
+
let cur = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($b5e257d569688ac6$var$SSRContext);
|
|
7958
|
+
let counter = $b5e257d569688ac6$var$useCounter(cur === $b5e257d569688ac6$var$defaultContext);
|
|
7967
7959
|
let [isSSR, setIsSSR] = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(true);
|
|
7968
7960
|
let value = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(()=>({
|
|
7969
7961
|
// If this is the first SSRProvider, start with an empty string prefix, otherwise
|
|
7970
7962
|
// append and increment the counter.
|
|
7971
|
-
prefix: cur === $
|
|
7972
|
-
current: 0
|
|
7973
|
-
isSSR: isSSR
|
|
7963
|
+
prefix: cur === $b5e257d569688ac6$var$defaultContext ? "" : `${cur.prefix}-${counter}`,
|
|
7964
|
+
current: 0
|
|
7974
7965
|
}), [
|
|
7975
7966
|
cur,
|
|
7976
|
-
counter
|
|
7977
|
-
isSSR
|
|
7967
|
+
counter
|
|
7978
7968
|
]);
|
|
7979
7969
|
// If on the client, and the component was initially server rendered,
|
|
7980
7970
|
// then schedule a layout effect to update the component after hydration.
|
|
7981
|
-
if (typeof
|
|
7971
|
+
if (typeof document !== "undefined") // This if statement technically breaks the rules of hooks, but is safe
|
|
7982
7972
|
// because the condition never changes after mounting.
|
|
7983
7973
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
7984
7974
|
(0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(()=>{
|
|
7985
7975
|
setIsSSR(false);
|
|
7986
7976
|
}, []);
|
|
7987
|
-
return /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createElement($
|
|
7977
|
+
return /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createElement($b5e257d569688ac6$var$SSRContext.Provider, {
|
|
7988
7978
|
value: value
|
|
7989
|
-
},
|
|
7979
|
+
}, /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createElement($b5e257d569688ac6$var$IsSSRContext.Provider, {
|
|
7980
|
+
value: isSSR
|
|
7981
|
+
}, props.children));
|
|
7990
7982
|
}
|
|
7991
|
-
let $
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7983
|
+
let $b5e257d569688ac6$var$warnedAboutSSRProvider = false;
|
|
7984
|
+
function $b5e257d569688ac6$export$9f8ac96af4b1b2ae(props) {
|
|
7985
|
+
if (typeof (0, external_root_React_commonjs2_react_commonjs_react_amd_react_)["useId"] === "function") {
|
|
7986
|
+
if ( true && !$b5e257d569688ac6$var$warnedAboutSSRProvider) {
|
|
7987
|
+
console.warn("In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app.");
|
|
7988
|
+
$b5e257d569688ac6$var$warnedAboutSSRProvider = true;
|
|
7989
|
+
}
|
|
7990
|
+
return /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createElement((0, external_root_React_commonjs2_react_commonjs_react_amd_react_).Fragment, null, props.children);
|
|
7991
|
+
}
|
|
7992
|
+
return /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createElement($b5e257d569688ac6$var$LegacySSRProvider, props);
|
|
7993
|
+
}
|
|
7994
|
+
let $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
7995
|
+
let $b5e257d569688ac6$var$componentIds = new WeakMap();
|
|
7996
|
+
function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
|
|
7997
|
+
let ctx = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($b5e257d569688ac6$var$SSRContext);
|
|
7995
7998
|
let ref = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
7999
|
+
// eslint-disable-next-line rulesdir/pure-render
|
|
7996
8000
|
if (ref.current === null && !isDisabled) {
|
|
7997
|
-
var
|
|
8001
|
+
var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
7998
8002
|
// In strict mode, React renders components twice, and the ref will be reset to null on the second render.
|
|
7999
8003
|
// This means our id counter will be incremented twice instead of once. This is a problem because on the
|
|
8000
8004
|
// server, components are only rendered once and so ids generated on the server won't match the client.
|
|
@@ -8007,9 +8011,9 @@ function $704cf1d3b684cc5c$var$useCounter(isDisabled = false) {
|
|
|
8007
8011
|
// @ts-ignore
|
|
8008
8012
|
let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
|
|
8009
8013
|
if (currentOwner) {
|
|
8010
|
-
let prevComponentValue = $
|
|
8014
|
+
let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
|
|
8011
8015
|
if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.
|
|
8012
|
-
$
|
|
8016
|
+
$b5e257d569688ac6$var$componentIds.set(currentOwner, {
|
|
8013
8017
|
id: ctx.current,
|
|
8014
8018
|
state: currentOwner.memoizedState
|
|
8015
8019
|
});
|
|
@@ -8018,24 +8022,48 @@ function $704cf1d3b684cc5c$var$useCounter(isDisabled = false) {
|
|
|
8018
8022
|
// Reset the counter, and remove from the weak map so we don't
|
|
8019
8023
|
// do this for subsequent useId calls.
|
|
8020
8024
|
ctx.current = prevComponentValue.id;
|
|
8021
|
-
$
|
|
8025
|
+
$b5e257d569688ac6$var$componentIds.delete(currentOwner);
|
|
8022
8026
|
}
|
|
8023
8027
|
}
|
|
8028
|
+
// eslint-disable-next-line rulesdir/pure-render
|
|
8024
8029
|
ref.current = ++ctx.current;
|
|
8025
8030
|
}
|
|
8031
|
+
// eslint-disable-next-line rulesdir/pure-render
|
|
8026
8032
|
return ref.current;
|
|
8027
8033
|
}
|
|
8028
|
-
function $
|
|
8029
|
-
let ctx = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($
|
|
8034
|
+
function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
|
|
8035
|
+
let ctx = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($b5e257d569688ac6$var$SSRContext);
|
|
8030
8036
|
// If we are rendering in a non-DOM environment, and there's no SSRProvider,
|
|
8031
8037
|
// provide a warning to hint to the developer to add one.
|
|
8032
|
-
if (ctx === $
|
|
8033
|
-
let counter = $
|
|
8034
|
-
|
|
8038
|
+
if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
8039
|
+
let counter = $b5e257d569688ac6$var$useCounter(!!defaultId);
|
|
8040
|
+
let prefix = ctx === $b5e257d569688ac6$var$defaultContext && "production" === "test" ? 0 : `react-aria${ctx.prefix}`;
|
|
8041
|
+
return defaultId || `${prefix}-${counter}`;
|
|
8042
|
+
}
|
|
8043
|
+
function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
|
|
8044
|
+
// @ts-ignore
|
|
8045
|
+
let id = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).useId();
|
|
8046
|
+
let [didSSR] = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)($b5e257d569688ac6$export$535bd6ca7f90a273());
|
|
8047
|
+
let prefix = didSSR || "production" === "test" ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
|
|
8048
|
+
return defaultId || `${prefix}-${id}`;
|
|
8049
|
+
}
|
|
8050
|
+
const $b5e257d569688ac6$export$619500959fc48b26 = typeof (0, external_root_React_commonjs2_react_commonjs_react_amd_react_)["useId"] === "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
|
|
8051
|
+
function $b5e257d569688ac6$var$getSnapshot() {
|
|
8052
|
+
return false;
|
|
8035
8053
|
}
|
|
8036
|
-
function $
|
|
8037
|
-
|
|
8038
|
-
|
|
8054
|
+
function $b5e257d569688ac6$var$getServerSnapshot() {
|
|
8055
|
+
return true;
|
|
8056
|
+
}
|
|
8057
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8058
|
+
function $b5e257d569688ac6$var$subscribe(onStoreChange) {
|
|
8059
|
+
// noop
|
|
8060
|
+
return ()=>{};
|
|
8061
|
+
}
|
|
8062
|
+
function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
8063
|
+
// In React 18, we can use useSyncExternalStore to detect if we're server rendering or hydrating.
|
|
8064
|
+
if (typeof (0, external_root_React_commonjs2_react_commonjs_react_amd_react_)["useSyncExternalStore"] === "function") return (0, external_root_React_commonjs2_react_commonjs_react_amd_react_)["useSyncExternalStore"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
|
|
8065
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
8066
|
+
return (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($b5e257d569688ac6$var$IsSSRContext);
|
|
8039
8067
|
}
|
|
8040
8068
|
|
|
8041
8069
|
|
|
@@ -8064,7 +8092,7 @@ const DropdownToggle_noop = () => {};
|
|
|
8064
8092
|
* @memberOf Dropdown
|
|
8065
8093
|
*/
|
|
8066
8094
|
function useDropdownToggle() {
|
|
8067
|
-
const id = $
|
|
8095
|
+
const id = $b5e257d569688ac6$export$619500959fc48b26();
|
|
8068
8096
|
const {
|
|
8069
8097
|
show = false,
|
|
8070
8098
|
toggle = DropdownToggle_noop,
|
|
@@ -8752,7 +8780,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
|
|
|
8752
8780
|
useIsomorphicEffect(() => {
|
|
8753
8781
|
// Popper's initial position for the menu is incorrect when
|
|
8754
8782
|
// renderOnMount=true. Need to call update() to correct it.
|
|
8755
|
-
if (show) popper == null
|
|
8783
|
+
if (show) popper == null || popper.update();
|
|
8756
8784
|
}, [show]);
|
|
8757
8785
|
if (!hasShown && !renderOnMount && !isInputGroup) return null;
|
|
8758
8786
|
|
|
@@ -8970,16 +8998,16 @@ const Dropdown_Dropdown = /*#__PURE__*/external_root_React_commonjs2_react_commo
|
|
|
8970
8998
|
return true;
|
|
8971
8999
|
};
|
|
8972
9000
|
const handleToggle = useEventCallback((nextShow, meta) => {
|
|
8973
|
-
var _meta$originalEvent
|
|
9001
|
+
var _meta$originalEvent;
|
|
8974
9002
|
/** Checking if target of event is ToggleButton,
|
|
8975
9003
|
* if it is then nullify mousedown event
|
|
8976
9004
|
*/
|
|
8977
|
-
const isToggleButton = (_meta$originalEvent = meta.originalEvent) == null
|
|
9005
|
+
const isToggleButton = (_meta$originalEvent = meta.originalEvent) == null || (_meta$originalEvent = _meta$originalEvent.target) == null ? void 0 : _meta$originalEvent.classList.contains('dropdown-toggle');
|
|
8978
9006
|
if (isToggleButton && meta.source === 'mousedown') {
|
|
8979
9007
|
return;
|
|
8980
9008
|
}
|
|
8981
9009
|
if (meta.originalEvent.currentTarget === document && (meta.source !== 'keydown' || meta.originalEvent.key === 'Escape')) meta.source = 'rootClose';
|
|
8982
|
-
if (isClosingPermitted(meta.source)) onToggle == null
|
|
9010
|
+
if (isClosingPermitted(meta.source)) onToggle == null || onToggle(nextShow, meta);
|
|
8983
9011
|
});
|
|
8984
9012
|
const alignEnd = align === 'end';
|
|
8985
9013
|
const placement = getDropdownMenuPlacement(alignEnd, drop, isRTL);
|
|
@@ -10930,6 +10958,132 @@ function NoopTransition({
|
|
|
10930
10958
|
return child;
|
|
10931
10959
|
}
|
|
10932
10960
|
/* 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
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/useRTGTransitionProps.js
|
|
10975
|
+
const useRTGTransitionProps_excluded = ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "addEndListener", "children"];
|
|
10976
|
+
function useRTGTransitionProps_objectWithoutPropertiesLoose(source, excluded) {
|
|
10977
|
+
if (source == null) return {};
|
|
10978
|
+
var target = {};
|
|
10979
|
+
var sourceKeys = Object.keys(source);
|
|
10980
|
+
var key, i;
|
|
10981
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
10982
|
+
key = sourceKeys[i];
|
|
10983
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
10984
|
+
target[key] = source[key];
|
|
10985
|
+
}
|
|
10986
|
+
return target;
|
|
10987
|
+
}
|
|
10988
|
+
|
|
10989
|
+
|
|
10990
|
+
|
|
10991
|
+
/**
|
|
10992
|
+
* Normalizes RTG transition callbacks with nodeRef to better support
|
|
10993
|
+
* strict mode.
|
|
10994
|
+
*
|
|
10995
|
+
* @param props Transition props.
|
|
10996
|
+
* @returns Normalized transition props.
|
|
10997
|
+
*/
|
|
10998
|
+
function useRTGTransitionProps(_ref) {
|
|
10999
|
+
let {
|
|
11000
|
+
onEnter,
|
|
11001
|
+
onEntering,
|
|
11002
|
+
onEntered,
|
|
11003
|
+
onExit,
|
|
11004
|
+
onExiting,
|
|
11005
|
+
onExited,
|
|
11006
|
+
addEndListener,
|
|
11007
|
+
children
|
|
11008
|
+
} = _ref,
|
|
11009
|
+
props = useRTGTransitionProps_objectWithoutPropertiesLoose(_ref, useRTGTransitionProps_excluded);
|
|
11010
|
+
const {
|
|
11011
|
+
major
|
|
11012
|
+
} = getReactVersion();
|
|
11013
|
+
const childRef = major >= 19 ? children.props.ref : children.ref;
|
|
11014
|
+
const nodeRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
11015
|
+
const mergedRef = esm_useMergedRefs(nodeRef, typeof children === 'function' ? null : childRef);
|
|
11016
|
+
const normalize = callback => param => {
|
|
11017
|
+
if (callback && nodeRef.current) {
|
|
11018
|
+
callback(nodeRef.current, param);
|
|
11019
|
+
}
|
|
11020
|
+
};
|
|
11021
|
+
|
|
11022
|
+
/* eslint-disable react-hooks/exhaustive-deps */
|
|
11023
|
+
const handleEnter = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(normalize(onEnter), [onEnter]);
|
|
11024
|
+
const handleEntering = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(normalize(onEntering), [onEntering]);
|
|
11025
|
+
const handleEntered = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(normalize(onEntered), [onEntered]);
|
|
11026
|
+
const handleExit = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(normalize(onExit), [onExit]);
|
|
11027
|
+
const handleExiting = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(normalize(onExiting), [onExiting]);
|
|
11028
|
+
const handleExited = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(normalize(onExited), [onExited]);
|
|
11029
|
+
const handleAddEndListener = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(normalize(addEndListener), [addEndListener]);
|
|
11030
|
+
/* eslint-enable react-hooks/exhaustive-deps */
|
|
11031
|
+
|
|
11032
|
+
return Object.assign({}, props, {
|
|
11033
|
+
nodeRef
|
|
11034
|
+
}, onEnter && {
|
|
11035
|
+
onEnter: handleEnter
|
|
11036
|
+
}, onEntering && {
|
|
11037
|
+
onEntering: handleEntering
|
|
11038
|
+
}, onEntered && {
|
|
11039
|
+
onEntered: handleEntered
|
|
11040
|
+
}, onExit && {
|
|
11041
|
+
onExit: handleExit
|
|
11042
|
+
}, onExiting && {
|
|
11043
|
+
onExiting: handleExiting
|
|
11044
|
+
}, onExited && {
|
|
11045
|
+
onExited: handleExited
|
|
11046
|
+
}, addEndListener && {
|
|
11047
|
+
addEndListener: handleAddEndListener
|
|
11048
|
+
}, {
|
|
11049
|
+
children: typeof children === 'function' ? (status, innerProps) =>
|
|
11050
|
+
// TODO: Types for RTG missing innerProps, so need to cast.
|
|
11051
|
+
children(status, Object.assign({}, innerProps, {
|
|
11052
|
+
ref: mergedRef
|
|
11053
|
+
})) : /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
|
|
11054
|
+
ref: mergedRef
|
|
11055
|
+
})
|
|
11056
|
+
});
|
|
11057
|
+
}
|
|
11058
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/RTGTransition.js
|
|
11059
|
+
const RTGTransition_excluded = ["component"];
|
|
11060
|
+
function RTGTransition_objectWithoutPropertiesLoose(source, excluded) {
|
|
11061
|
+
if (source == null) return {};
|
|
11062
|
+
var target = {};
|
|
11063
|
+
var sourceKeys = Object.keys(source);
|
|
11064
|
+
var key, i;
|
|
11065
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
11066
|
+
key = sourceKeys[i];
|
|
11067
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
11068
|
+
target[key] = source[key];
|
|
11069
|
+
}
|
|
11070
|
+
return target;
|
|
11071
|
+
}
|
|
11072
|
+
|
|
11073
|
+
|
|
11074
|
+
|
|
11075
|
+
// Normalizes Transition callbacks when nodeRef is used.
|
|
11076
|
+
const RTGTransition = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((_ref, ref) => {
|
|
11077
|
+
let {
|
|
11078
|
+
component: Component
|
|
11079
|
+
} = _ref,
|
|
11080
|
+
props = RTGTransition_objectWithoutPropertiesLoose(_ref, RTGTransition_excluded);
|
|
11081
|
+
const transitionProps = useRTGTransitionProps(props);
|
|
11082
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Component, Object.assign({
|
|
11083
|
+
ref: ref
|
|
11084
|
+
}, transitionProps));
|
|
11085
|
+
});
|
|
11086
|
+
/* harmony default export */ const esm_RTGTransition = (RTGTransition);
|
|
10933
11087
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/ImperativeTransition.js
|
|
10934
11088
|
|
|
10935
11089
|
|
|
@@ -10937,6 +11091,7 @@ function NoopTransition({
|
|
|
10937
11091
|
|
|
10938
11092
|
|
|
10939
11093
|
|
|
11094
|
+
|
|
10940
11095
|
function useTransition({
|
|
10941
11096
|
in: inProp,
|
|
10942
11097
|
onTransition
|
|
@@ -11010,9 +11165,11 @@ function ImperativeTransition({
|
|
|
11010
11165
|
ref: combinedRef
|
|
11011
11166
|
});
|
|
11012
11167
|
}
|
|
11013
|
-
function renderTransition(
|
|
11014
|
-
if (
|
|
11015
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
11168
|
+
function renderTransition(component, runTransition, props) {
|
|
11169
|
+
if (component) {
|
|
11170
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_RTGTransition, Object.assign({}, props, {
|
|
11171
|
+
component: component
|
|
11172
|
+
}));
|
|
11016
11173
|
}
|
|
11017
11174
|
if (runTransition) {
|
|
11018
11175
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(ImperativeTransition, Object.assign({}, props, {
|
|
@@ -11021,11 +11178,6 @@ function renderTransition(Component, runTransition, props) {
|
|
|
11021
11178
|
}
|
|
11022
11179
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_NoopTransition, Object.assign({}, props));
|
|
11023
11180
|
}
|
|
11024
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/utils.js
|
|
11025
|
-
/* eslint-disable import/prefer-default-export */
|
|
11026
|
-
function isEscKey(e) {
|
|
11027
|
-
return e.code === 'Escape' || e.keyCode === 27;
|
|
11028
|
-
}
|
|
11029
11181
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Modal.js
|
|
11030
11182
|
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"];
|
|
11031
11183
|
function Modal_objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -11546,8 +11698,8 @@ const AbstractModalHeader = /*#__PURE__*/external_root_React_commonjs2_react_com
|
|
|
11546
11698
|
}, ref) => {
|
|
11547
11699
|
const context = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(src_ModalContext);
|
|
11548
11700
|
const handleClick = useEventCallback(() => {
|
|
11549
|
-
context == null
|
|
11550
|
-
onHide == null
|
|
11701
|
+
context == null || context.onHide();
|
|
11702
|
+
onHide == null || onHide();
|
|
11551
11703
|
});
|
|
11552
11704
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
11553
11705
|
ref: ref,
|
|
@@ -11914,7 +12066,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
11914
12066
|
});
|
|
11915
12067
|
useWillUnmount(() => {
|
|
11916
12068
|
esm_removeEventListener(window, 'resize', handleWindowResize);
|
|
11917
|
-
removeStaticModalAnimationRef.current == null
|
|
12069
|
+
removeStaticModalAnimationRef.current == null || removeStaticModalAnimationRef.current();
|
|
11918
12070
|
});
|
|
11919
12071
|
|
|
11920
12072
|
// We prevent the modal from closing during a drag by detecting where the
|
|
@@ -11950,11 +12102,11 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
11950
12102
|
ignoreBackdropClickRef.current = false;
|
|
11951
12103
|
return;
|
|
11952
12104
|
}
|
|
11953
|
-
onHide == null
|
|
12105
|
+
onHide == null || onHide();
|
|
11954
12106
|
};
|
|
11955
12107
|
const handleEscapeKeyDown = e => {
|
|
11956
12108
|
if (keyboard) {
|
|
11957
|
-
onEscapeKeyDown == null
|
|
12109
|
+
onEscapeKeyDown == null || onEscapeKeyDown(e);
|
|
11958
12110
|
} else {
|
|
11959
12111
|
// Call preventDefault to stop modal from closing in @restart/ui.
|
|
11960
12112
|
e.preventDefault();
|
|
@@ -11968,21 +12120,21 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
11968
12120
|
if (node) {
|
|
11969
12121
|
updateDialogStyle(node);
|
|
11970
12122
|
}
|
|
11971
|
-
onEnter == null
|
|
12123
|
+
onEnter == null || onEnter(node, isAppearing);
|
|
11972
12124
|
};
|
|
11973
12125
|
const handleExit = node => {
|
|
11974
|
-
removeStaticModalAnimationRef.current == null
|
|
11975
|
-
onExit == null
|
|
12126
|
+
removeStaticModalAnimationRef.current == null || removeStaticModalAnimationRef.current();
|
|
12127
|
+
onExit == null || onExit(node);
|
|
11976
12128
|
};
|
|
11977
12129
|
const handleEntering = (node, isAppearing) => {
|
|
11978
|
-
onEntering == null
|
|
12130
|
+
onEntering == null || onEntering(node, isAppearing);
|
|
11979
12131
|
|
|
11980
12132
|
// FIXME: This should work even when animation is disabled.
|
|
11981
12133
|
esm_addEventListener(window, 'resize', handleWindowResize);
|
|
11982
12134
|
};
|
|
11983
12135
|
const handleExited = node => {
|
|
11984
12136
|
if (node) node.style.display = ''; // RHL removes it sometimes
|
|
11985
|
-
onExited == null
|
|
12137
|
+
onExited == null || onExited(node);
|
|
11986
12138
|
|
|
11987
12139
|
// FIXME: This should work even when animation is disabled.
|
|
11988
12140
|
esm_removeEventListener(window, 'resize', handleWindowResize);
|
|
@@ -12080,7 +12232,7 @@ Modal_Modal.propTypes = Modal_propTypes;
|
|
|
12080
12232
|
BACKDROP_TRANSITION_DURATION: 150
|
|
12081
12233
|
}));
|
|
12082
12234
|
// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/all.js
|
|
12083
|
-
var lib_all = __webpack_require__(
|
|
12235
|
+
var lib_all = __webpack_require__(526);
|
|
12084
12236
|
var all_default = /*#__PURE__*/__webpack_require__.n(lib_all);
|
|
12085
12237
|
;// CONCATENATED MODULE: ./src/NavItem.tsx
|
|
12086
12238
|
var NavItem_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/NavItem.tsx";
|
|
@@ -12135,11 +12287,15 @@ const NavLink_propTypes = {
|
|
|
12135
12287
|
* the role defaults to 'tab'
|
|
12136
12288
|
* */
|
|
12137
12289
|
role: (prop_types_default()).string,
|
|
12138
|
-
/**
|
|
12290
|
+
/**
|
|
12291
|
+
* The HTML href attribute for the `NavLink`. Used as the unique identifier
|
|
12292
|
+
* for the `NavLink` if an `eventKey` is not provided.
|
|
12293
|
+
*/
|
|
12139
12294
|
href: (prop_types_default()).string,
|
|
12140
12295
|
/**
|
|
12141
12296
|
* Uniquely identifies the `NavItem` amongst its siblings,
|
|
12142
12297
|
* used to determine and control the active state of the parent `Nav`
|
|
12298
|
+
* as well as onSelect behavior of a parent `Navbar`.
|
|
12143
12299
|
*/
|
|
12144
12300
|
eventKey: prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]),
|
|
12145
12301
|
/** @default 'a' */
|
|
@@ -12169,7 +12325,7 @@ const NavLink = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
|
|
|
12169
12325
|
className: classnames_default()(className, bsPrefix, disabled && 'disabled', meta.isActive && 'active')
|
|
12170
12326
|
}, void 0, false, {
|
|
12171
12327
|
fileName: NavLink_jsxFileName,
|
|
12172
|
-
lineNumber:
|
|
12328
|
+
lineNumber: 80,
|
|
12173
12329
|
columnNumber: 9
|
|
12174
12330
|
}, undefined);
|
|
12175
12331
|
});
|
|
@@ -12466,12 +12622,12 @@ NavbarToggle.propTypes = NavbarToggle_propTypes;
|
|
|
12466
12622
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMediaQuery.js
|
|
12467
12623
|
|
|
12468
12624
|
|
|
12469
|
-
|
|
12470
|
-
|
|
12625
|
+
const matchersByWindow = new WeakMap();
|
|
12626
|
+
const getMatcher = (query, targetWindow) => {
|
|
12471
12627
|
if (!query || !targetWindow) return undefined;
|
|
12472
|
-
|
|
12628
|
+
const matchers = matchersByWindow.get(targetWindow) || new Map();
|
|
12473
12629
|
matchersByWindow.set(targetWindow, matchers);
|
|
12474
|
-
|
|
12630
|
+
let mql = matchers.get(query);
|
|
12475
12631
|
if (!mql) {
|
|
12476
12632
|
mql = targetWindow.matchMedia(query);
|
|
12477
12633
|
mql.refCount = 0;
|
|
@@ -12498,30 +12654,22 @@ var getMatcher = function getMatcher(query, targetWindow) {
|
|
|
12498
12654
|
* @param query A media query
|
|
12499
12655
|
* @param targetWindow The window to match against, uses the globally available one as a default.
|
|
12500
12656
|
*/
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
var mql = getMatcher(query, targetWindow);
|
|
12507
|
-
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(function () {
|
|
12508
|
-
return mql ? mql.matches : false;
|
|
12509
|
-
}),
|
|
12510
|
-
matches = _useState[0],
|
|
12511
|
-
setMatches = _useState[1];
|
|
12512
|
-
useIsomorphicEffect(function () {
|
|
12513
|
-
var mql = getMatcher(query, targetWindow);
|
|
12657
|
+
function useMediaQuery(query, targetWindow = typeof window === 'undefined' ? undefined : window) {
|
|
12658
|
+
const mql = getMatcher(query, targetWindow);
|
|
12659
|
+
const [matches, setMatches] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(() => mql ? mql.matches : false);
|
|
12660
|
+
useIsomorphicEffect(() => {
|
|
12661
|
+
let mql = getMatcher(query, targetWindow);
|
|
12514
12662
|
if (!mql) {
|
|
12515
12663
|
return setMatches(false);
|
|
12516
12664
|
}
|
|
12517
|
-
|
|
12518
|
-
|
|
12665
|
+
let matchers = matchersByWindow.get(targetWindow);
|
|
12666
|
+
const handleChange = () => {
|
|
12519
12667
|
setMatches(mql.matches);
|
|
12520
12668
|
};
|
|
12521
12669
|
mql.refCount++;
|
|
12522
12670
|
mql.addListener(handleChange);
|
|
12523
12671
|
handleChange();
|
|
12524
|
-
return
|
|
12672
|
+
return () => {
|
|
12525
12673
|
mql.removeListener(handleChange);
|
|
12526
12674
|
mql.refCount--;
|
|
12527
12675
|
if (mql.refCount <= 0) {
|
|
@@ -12535,7 +12683,6 @@ function useMediaQuery(query, targetWindow) {
|
|
|
12535
12683
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useBreakpoint.js
|
|
12536
12684
|
|
|
12537
12685
|
|
|
12538
|
-
|
|
12539
12686
|
/**
|
|
12540
12687
|
* Create a responsive hook we a set of breakpoint names and widths.
|
|
12541
12688
|
* You can use any valid css units as well as a numbers (for pixels).
|
|
@@ -12559,29 +12706,30 @@ function useMediaQuery(query, targetWindow) {
|
|
|
12559
12706
|
* @param breakpointValues A object hash of names to breakpoint dimensions
|
|
12560
12707
|
*/
|
|
12561
12708
|
function createBreakpointHook(breakpointValues) {
|
|
12562
|
-
|
|
12709
|
+
const names = Object.keys(breakpointValues);
|
|
12563
12710
|
function and(query, next) {
|
|
12564
12711
|
if (query === next) {
|
|
12565
12712
|
return next;
|
|
12566
12713
|
}
|
|
12567
|
-
return query ? query
|
|
12714
|
+
return query ? `${query} and ${next}` : next;
|
|
12568
12715
|
}
|
|
12569
12716
|
function getNext(breakpoint) {
|
|
12570
12717
|
return names[Math.min(names.indexOf(breakpoint) + 1, names.length - 1)];
|
|
12571
12718
|
}
|
|
12572
12719
|
function getMaxQuery(breakpoint) {
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
if (typeof value === 'number') value = value - 0.2
|
|
12576
|
-
return
|
|
12720
|
+
const next = getNext(breakpoint);
|
|
12721
|
+
let value = breakpointValues[next];
|
|
12722
|
+
if (typeof value === 'number') value = `${value - 0.2}px`;else value = `calc(${value} - 0.2px)`;
|
|
12723
|
+
return `(max-width: ${value})`;
|
|
12577
12724
|
}
|
|
12578
12725
|
function getMinQuery(breakpoint) {
|
|
12579
|
-
|
|
12726
|
+
let value = breakpointValues[breakpoint];
|
|
12580
12727
|
if (typeof value === 'number') {
|
|
12581
|
-
value = value
|
|
12728
|
+
value = `${value}px`;
|
|
12582
12729
|
}
|
|
12583
|
-
return
|
|
12730
|
+
return `(min-width: ${value})`;
|
|
12584
12731
|
}
|
|
12732
|
+
|
|
12585
12733
|
/**
|
|
12586
12734
|
* Match a set of breakpoints
|
|
12587
12735
|
*
|
|
@@ -12598,35 +12746,49 @@ function createBreakpointHook(breakpointValues) {
|
|
|
12598
12746
|
* @param window Optionally specify the target window to match against (useful when rendering into iframes)
|
|
12599
12747
|
*/
|
|
12600
12748
|
|
|
12749
|
+
/**
|
|
12750
|
+
* Match a single breakpoint exactly, up, or down.
|
|
12751
|
+
*
|
|
12752
|
+
* ```tsx
|
|
12753
|
+
* const PhoneOnly = () => {
|
|
12754
|
+
* const isSmall = useBreakpoint('sm', 'down');
|
|
12755
|
+
*
|
|
12756
|
+
* if (isSmall) return <div>On a Small Screen!</div>
|
|
12757
|
+
* return null;
|
|
12758
|
+
* }
|
|
12759
|
+
* ```
|
|
12760
|
+
*
|
|
12761
|
+
* @param breakpoint The breakpoint key
|
|
12762
|
+
* @param direction A direction 'up' for a max, 'down' for min, true to match only the breakpoint
|
|
12763
|
+
* @param window Optionally specify the target window to match against (useful when rendering into iframes)
|
|
12764
|
+
*/
|
|
12765
|
+
|
|
12601
12766
|
function useBreakpoint(breakpointOrMap, direction, window) {
|
|
12602
|
-
|
|
12767
|
+
let breakpointMap;
|
|
12603
12768
|
if (typeof breakpointOrMap === 'object') {
|
|
12604
12769
|
breakpointMap = breakpointOrMap;
|
|
12605
12770
|
window = direction;
|
|
12606
12771
|
direction = true;
|
|
12607
12772
|
} else {
|
|
12608
|
-
var _breakpointMap;
|
|
12609
12773
|
direction = direction || true;
|
|
12610
|
-
breakpointMap =
|
|
12774
|
+
breakpointMap = {
|
|
12775
|
+
[breakpointOrMap]: direction
|
|
12776
|
+
};
|
|
12611
12777
|
}
|
|
12612
|
-
|
|
12613
|
-
|
|
12614
|
-
|
|
12615
|
-
|
|
12616
|
-
|
|
12617
|
-
|
|
12618
|
-
|
|
12619
|
-
|
|
12620
|
-
|
|
12621
|
-
}
|
|
12622
|
-
return query;
|
|
12623
|
-
}, '');
|
|
12624
|
-
}, [JSON.stringify(breakpointMap)]);
|
|
12778
|
+
let query = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => Object.entries(breakpointMap).reduce((query, [key, direction]) => {
|
|
12779
|
+
if (direction === 'up' || direction === true) {
|
|
12780
|
+
query = and(query, getMinQuery(key));
|
|
12781
|
+
}
|
|
12782
|
+
if (direction === 'down' || direction === true) {
|
|
12783
|
+
query = and(query, getMaxQuery(key));
|
|
12784
|
+
}
|
|
12785
|
+
return query;
|
|
12786
|
+
}, ''), [JSON.stringify(breakpointMap)]);
|
|
12625
12787
|
return useMediaQuery(query, window);
|
|
12626
12788
|
}
|
|
12627
12789
|
return useBreakpoint;
|
|
12628
12790
|
}
|
|
12629
|
-
|
|
12791
|
+
const useBreakpoint = createBreakpointHook({
|
|
12630
12792
|
xs: 0,
|
|
12631
12793
|
sm: 576,
|
|
12632
12794
|
md: 768,
|
|
@@ -13033,8 +13195,8 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
13033
13195
|
setShowOffcanvas(responsive ? show && !hideResponsiveOffcanvas : show);
|
|
13034
13196
|
}, [show, responsive, hideResponsiveOffcanvas]);
|
|
13035
13197
|
const handleHide = useEventCallback(() => {
|
|
13036
|
-
onToggle == null
|
|
13037
|
-
onHide == null
|
|
13198
|
+
onToggle == null || onToggle();
|
|
13199
|
+
onHide == null || onHide();
|
|
13038
13200
|
});
|
|
13039
13201
|
const modalContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
|
|
13040
13202
|
onHide: handleHide
|
|
@@ -13053,11 +13215,11 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
13053
13215
|
}
|
|
13054
13216
|
const handleEnter = (node, ...args) => {
|
|
13055
13217
|
if (node) node.style.visibility = 'visible';
|
|
13056
|
-
onEnter == null
|
|
13218
|
+
onEnter == null || onEnter(node, ...args);
|
|
13057
13219
|
};
|
|
13058
13220
|
const handleExited = (node, ...args) => {
|
|
13059
13221
|
if (node) node.style.visibility = '';
|
|
13060
|
-
onExited == null
|
|
13222
|
+
onExited == null || onExited(...args);
|
|
13061
13223
|
};
|
|
13062
13224
|
const renderBackdrop = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(backdropProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
13063
13225
|
...backdropProps,
|
|
@@ -13258,6 +13420,9 @@ const Navbar_propTypes = {
|
|
|
13258
13420
|
* Toggles `expanded` to `false` after the onSelect event of a descendant of a
|
|
13259
13421
|
* child `<Nav>` fires. Does nothing if no `<Nav>` or `<Nav>` descendants exist.
|
|
13260
13422
|
*
|
|
13423
|
+
* `<NavLink>` descendants of `<Nav>` will not trigger the `onSelect` event unless
|
|
13424
|
+
* an `eventKey` or `href` prop is defined.
|
|
13425
|
+
*
|
|
13261
13426
|
* Manually controlling `expanded` via the onSelect callback is recommended instead,
|
|
13262
13427
|
* for more complex operations that need to be executed after
|
|
13263
13428
|
* the `select` event of `<Nav>` descendants.
|
|
@@ -13298,9 +13463,9 @@ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
|
|
|
13298
13463
|
});
|
|
13299
13464
|
const bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
13300
13465
|
const handleCollapse = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
|
|
13301
|
-
onSelect == null
|
|
13466
|
+
onSelect == null || onSelect(...args);
|
|
13302
13467
|
if (collapseOnSelect && expanded) {
|
|
13303
|
-
onToggle == null
|
|
13468
|
+
onToggle == null || onToggle(false);
|
|
13304
13469
|
}
|
|
13305
13470
|
}, [onSelect, collapseOnSelect, expanded, onToggle]);
|
|
13306
13471
|
|
|
@@ -13328,17 +13493,17 @@ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
|
|
|
13328
13493
|
className: classnames_default()(className, bsPrefix, expand && expandClass, variant && `${bsPrefix}-${variant}`, bg && `bg-${bg}`, sticky && `sticky-${sticky}`, fixed && `fixed-${fixed}`)
|
|
13329
13494
|
}, void 0, false, {
|
|
13330
13495
|
fileName: Navbar_jsxFileName,
|
|
13331
|
-
lineNumber:
|
|
13496
|
+
lineNumber: 192,
|
|
13332
13497
|
columnNumber: 11
|
|
13333
13498
|
}, undefined)
|
|
13334
13499
|
}, void 0, false, {
|
|
13335
13500
|
fileName: Navbar_jsxFileName,
|
|
13336
|
-
lineNumber:
|
|
13501
|
+
lineNumber: 191,
|
|
13337
13502
|
columnNumber: 9
|
|
13338
13503
|
}, undefined)
|
|
13339
13504
|
}, void 0, false, {
|
|
13340
13505
|
fileName: Navbar_jsxFileName,
|
|
13341
|
-
lineNumber:
|
|
13506
|
+
lineNumber: 190,
|
|
13342
13507
|
columnNumber: 7
|
|
13343
13508
|
}, undefined);
|
|
13344
13509
|
});
|
|
@@ -13946,12 +14111,12 @@ const Overlay_propTypes = {
|
|
|
13946
14111
|
* A component instance, DOM node, or function that returns either.
|
|
13947
14112
|
* The `container` element will have the Overlay appended to it via a React portal.
|
|
13948
14113
|
*/
|
|
13949
|
-
container: prop_types_default().oneOfType([lib/* componentOrElement */.
|
|
14114
|
+
container: prop_types_default().oneOfType([lib/* componentOrElement */.NP, (prop_types_default()).func]),
|
|
13950
14115
|
/**
|
|
13951
14116
|
* A component instance, DOM node, or function that returns either.
|
|
13952
14117
|
* The overlay will be positioned in relation to the `target`
|
|
13953
14118
|
*/
|
|
13954
|
-
target: prop_types_default().oneOfType([lib/* componentOrElement */.
|
|
14119
|
+
target: prop_types_default().oneOfType([lib/* componentOrElement */.NP, (prop_types_default()).func]),
|
|
13955
14120
|
/**
|
|
13956
14121
|
* Set the visibility of the Overlay
|
|
13957
14122
|
*/
|
|
@@ -13977,7 +14142,7 @@ const Overlay_propTypes = {
|
|
|
13977
14142
|
* Animate the entering and exiting of the Overlay. `true` will use the `<Fade>` transition,
|
|
13978
14143
|
* or a custom react-transition-group `<Transition>` component can be provided.
|
|
13979
14144
|
*/
|
|
13980
|
-
transition: prop_types_default().oneOfType([(prop_types_default()).bool, lib/* elementType */.
|
|
14145
|
+
transition: prop_types_default().oneOfType([(prop_types_default()).bool, lib/* elementType */.rk]),
|
|
13981
14146
|
/**
|
|
13982
14147
|
* Callback fired before the Overlay transitions in
|
|
13983
14148
|
*/
|
|
@@ -14033,12 +14198,12 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
|
|
|
14033
14198
|
const actualTransition = transition === true ? src_Fade : transition || undefined;
|
|
14034
14199
|
const handleFirstUpdate = useEventCallback(state => {
|
|
14035
14200
|
setFirstRenderedState(state);
|
|
14036
|
-
popperConfig == null
|
|
14201
|
+
popperConfig == null || popperConfig.onFirstUpdate == null || popperConfig.onFirstUpdate(state);
|
|
14037
14202
|
});
|
|
14038
14203
|
useIsomorphicEffect(() => {
|
|
14039
14204
|
if (firstRenderedState && outerProps.target) {
|
|
14040
14205
|
// Must wait for target element to resolve before updating popper.
|
|
14041
|
-
popperRef.current.scheduleUpdate == null
|
|
14206
|
+
popperRef.current.scheduleUpdate == null || popperRef.current.scheduleUpdate();
|
|
14042
14207
|
}
|
|
14043
14208
|
}, [firstRenderedState, outerProps.target]);
|
|
14044
14209
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
@@ -14063,7 +14228,7 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
|
|
|
14063
14228
|
popper: popperObj,
|
|
14064
14229
|
show
|
|
14065
14230
|
}) => {
|
|
14066
|
-
var _popperObj$state
|
|
14231
|
+
var _popperObj$state;
|
|
14067
14232
|
wrapRefs(overlayProps, arrowProps);
|
|
14068
14233
|
// Need to get placement from popper object, handling case when overlay is flipped using 'flip' prop
|
|
14069
14234
|
const updatedPlacement = popperObj == null ? void 0 : popperObj.placement;
|
|
@@ -14071,7 +14236,7 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
|
|
|
14071
14236
|
state: popperObj == null ? void 0 : popperObj.state,
|
|
14072
14237
|
scheduleUpdate: popperObj == null ? void 0 : popperObj.update,
|
|
14073
14238
|
placement: updatedPlacement,
|
|
14074
|
-
outOfBoundaries: (popperObj == null
|
|
14239
|
+
outOfBoundaries: (popperObj == null || (_popperObj$state = popperObj.state) == null || (_popperObj$state = _popperObj$state.modifiersData.hide) == null ? void 0 : _popperObj$state.isReferenceHidden) || false,
|
|
14075
14240
|
strategy: popperConfig.strategy
|
|
14076
14241
|
});
|
|
14077
14242
|
const hasDoneInitialMeasure = !!firstRenderedState;
|
|
@@ -14260,15 +14425,15 @@ const OverlayTrigger = ({
|
|
|
14260
14425
|
}, [delay.hide, setShow, timeout]);
|
|
14261
14426
|
const handleFocus = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
|
|
14262
14427
|
handleShow();
|
|
14263
|
-
onFocus == null
|
|
14428
|
+
onFocus == null || onFocus(...args);
|
|
14264
14429
|
}, [handleShow, onFocus]);
|
|
14265
14430
|
const handleBlur = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
|
|
14266
14431
|
handleHide();
|
|
14267
|
-
onBlur == null
|
|
14432
|
+
onBlur == null || onBlur(...args);
|
|
14268
14433
|
}, [handleHide, onBlur]);
|
|
14269
14434
|
const handleClick = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
|
|
14270
14435
|
setShow(!show);
|
|
14271
|
-
onClick == null
|
|
14436
|
+
onClick == null || onClick(...args);
|
|
14272
14437
|
}, [onClick, setShow, show]);
|
|
14273
14438
|
const handleMouseOver = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
|
|
14274
14439
|
handleMouseOverOut(handleShow, args, 'fromElement');
|
|
@@ -15144,7 +15309,7 @@ SplitButton.displayName = 'SplitButton';
|
|
|
15144
15309
|
/* harmony default export */ const src_SplitButton = (SplitButton);
|
|
15145
15310
|
;// CONCATENATED MODULE: ./src/SSRProvider.ts
|
|
15146
15311
|
|
|
15147
|
-
/* harmony default export */ const SSRProvider = ($
|
|
15312
|
+
/* harmony default export */ const SSRProvider = ($b5e257d569688ac6$export$9f8ac96af4b1b2ae);
|
|
15148
15313
|
;// CONCATENATED MODULE: ./src/createUtilityClasses.ts
|
|
15149
15314
|
|
|
15150
15315
|
|
|
@@ -15374,7 +15539,7 @@ const Tabs = props => {
|
|
|
15374
15539
|
children
|
|
15375
15540
|
} = props;
|
|
15376
15541
|
const [activeKey, onSelect] = esm_useUncontrolledProp(propsActiveKey, defaultActiveKey, propsOnSelect);
|
|
15377
|
-
const id = $
|
|
15542
|
+
const id = $b5e257d569688ac6$export$619500959fc48b26(userId);
|
|
15378
15543
|
const generateChildId = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => generateCustomChildId || ((key, type) => id ? `${id}-${type}-${key}` : null), [id, generateCustomChildId]);
|
|
15379
15544
|
const tabContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
|
|
15380
15545
|
onSelect,
|
|
@@ -15908,6 +16073,7 @@ const Tabs_Tabs = props => {
|
|
|
15908
16073
|
mountOnEnter: mountOnEnter,
|
|
15909
16074
|
unmountOnExit: unmountOnExit,
|
|
15910
16075
|
children: [/*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Nav, {
|
|
16076
|
+
id: id,
|
|
15911
16077
|
...controlledProps,
|
|
15912
16078
|
role: "tablist",
|
|
15913
16079
|
as: "ul",
|
|
@@ -15930,13 +16096,13 @@ const Tabs_Tabs = props => {
|
|
|
15930
16096
|
...childProps
|
|
15931
16097
|
}, void 0, false, {
|
|
15932
16098
|
fileName: Tabs_jsxFileName,
|
|
15933
|
-
lineNumber:
|
|
16099
|
+
lineNumber: 174,
|
|
15934
16100
|
columnNumber: 18
|
|
15935
16101
|
}, undefined);
|
|
15936
16102
|
})
|
|
15937
16103
|
}, void 0, false, {
|
|
15938
16104
|
fileName: Tabs_jsxFileName,
|
|
15939
|
-
lineNumber:
|
|
16105
|
+
lineNumber: 165,
|
|
15940
16106
|
columnNumber: 7
|
|
15941
16107
|
}, undefined)]
|
|
15942
16108
|
}, void 0, true, {
|
|
@@ -16016,7 +16182,7 @@ const ToastHeader = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
16016
16182
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
16017
16183
|
const context = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(src_ToastContext);
|
|
16018
16184
|
const handleClick = useEventCallback(e => {
|
|
16019
|
-
context == null
|
|
16185
|
+
context == null || context.onClose == null || context.onClose(e);
|
|
16020
16186
|
});
|
|
16021
16187
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
16022
16188
|
ref: ref,
|
|
@@ -16171,7 +16337,7 @@ const Toast = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
16171
16337
|
const autohideToast = !!(autohide && show);
|
|
16172
16338
|
const autohideFunc = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(() => {
|
|
16173
16339
|
if (autohideToast) {
|
|
16174
|
-
onCloseRef.current == null
|
|
16340
|
+
onCloseRef.current == null || onCloseRef.current();
|
|
16175
16341
|
}
|
|
16176
16342
|
}, [autohideToast]);
|
|
16177
16343
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|