react-bootstrap 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/Button.js +2 -2
- package/cjs/Col.d.ts +1 -0
- package/cjs/Col.js +2 -3
- package/cjs/Container.d.ts +1 -1
- package/cjs/ListGroup.d.ts +1 -1
- package/cjs/Modal.d.ts +1 -1
- package/cjs/ModalDialog.d.ts +1 -1
- package/cjs/Navbar.d.ts +1 -1
- package/cjs/Overlay.js +6 -5
- package/cjs/Row.d.ts +1 -0
- package/cjs/Row.js +2 -2
- package/cjs/Stack.js +3 -1
- package/cjs/Tab.d.ts +1 -0
- package/cjs/Tab.js +6 -1
- package/cjs/TabContainer.d.ts +0 -1
- package/cjs/TabPane.js +3 -3
- package/cjs/Tabs.js +3 -0
- package/cjs/ThemeProvider.d.ts +8 -3
- package/cjs/ThemeProvider.js +16 -3
- package/cjs/ToggleButton.js +1 -0
- package/cjs/createUtilityClasses.d.ts +1 -2
- package/cjs/createUtilityClasses.js +4 -6
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +5 -1
- package/cjs/safeFindDOMNode.d.ts +1 -1
- package/cjs/types.d.ts +2 -12
- package/cjs/types.js +1 -1
- package/dist/react-bootstrap.js +364 -314
- package/dist/react-bootstrap.min.js +1 -1
- package/esm/Button.js +2 -2
- package/esm/Col.d.ts +1 -0
- package/esm/Col.js +3 -3
- package/esm/Container.d.ts +1 -1
- package/esm/ListGroup.d.ts +1 -1
- package/esm/Modal.d.ts +1 -1
- package/esm/ModalDialog.d.ts +1 -1
- package/esm/Navbar.d.ts +1 -1
- package/esm/Overlay.js +6 -5
- package/esm/Row.d.ts +1 -0
- package/esm/Row.js +3 -3
- package/esm/Stack.js +4 -2
- package/esm/Tab.d.ts +1 -0
- package/esm/Tab.js +6 -1
- package/esm/TabContainer.d.ts +0 -1
- package/esm/TabPane.js +2 -2
- package/esm/Tabs.js +3 -0
- package/esm/ThemeProvider.d.ts +8 -3
- package/esm/ThemeProvider.js +12 -2
- package/esm/ToggleButton.js +1 -0
- package/esm/createUtilityClasses.d.ts +1 -2
- package/esm/createUtilityClasses.js +3 -3
- package/esm/index.d.ts +2 -0
- package/esm/index.js +1 -0
- package/esm/safeFindDOMNode.d.ts +1 -1
- package/esm/types.d.ts +2 -12
- package/esm/types.js +1 -1
- package/package.json +8 -8
package/dist/react-bootstrap.js
CHANGED
|
@@ -497,6 +497,7 @@ module.exports = function () {
|
|
|
497
497
|
|
|
498
498
|
var ReactPropTypes = {
|
|
499
499
|
array: shim,
|
|
500
|
+
bigint: shim,
|
|
500
501
|
bool: shim,
|
|
501
502
|
func: shim,
|
|
502
503
|
number: shim,
|
|
@@ -715,6 +716,110 @@ if (true) {
|
|
|
715
716
|
|
|
716
717
|
/***/ }),
|
|
717
718
|
|
|
719
|
+
/***/ 926:
|
|
720
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
721
|
+
|
|
722
|
+
"use strict";
|
|
723
|
+
/**
|
|
724
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
725
|
+
*
|
|
726
|
+
* This source code is licensed under the MIT license found in the
|
|
727
|
+
* LICENSE file in the root directory of this source tree.
|
|
728
|
+
*/
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
var ReactPropTypesSecret = __webpack_require__(765);
|
|
732
|
+
|
|
733
|
+
function emptyFunction() {}
|
|
734
|
+
|
|
735
|
+
function emptyFunctionWithReset() {}
|
|
736
|
+
|
|
737
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
738
|
+
|
|
739
|
+
module.exports = function () {
|
|
740
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
741
|
+
if (secret === ReactPropTypesSecret) {
|
|
742
|
+
// It is still safe when called from React.
|
|
743
|
+
return;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
747
|
+
err.name = 'Invariant Violation';
|
|
748
|
+
throw err;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
;
|
|
752
|
+
shim.isRequired = shim;
|
|
753
|
+
|
|
754
|
+
function getShim() {
|
|
755
|
+
return shim;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
; // Important!
|
|
759
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
760
|
+
|
|
761
|
+
var ReactPropTypes = {
|
|
762
|
+
array: shim,
|
|
763
|
+
bool: shim,
|
|
764
|
+
func: shim,
|
|
765
|
+
number: shim,
|
|
766
|
+
object: shim,
|
|
767
|
+
string: shim,
|
|
768
|
+
symbol: shim,
|
|
769
|
+
any: shim,
|
|
770
|
+
arrayOf: getShim,
|
|
771
|
+
element: shim,
|
|
772
|
+
elementType: shim,
|
|
773
|
+
instanceOf: getShim,
|
|
774
|
+
node: shim,
|
|
775
|
+
objectOf: getShim,
|
|
776
|
+
oneOf: getShim,
|
|
777
|
+
oneOfType: getShim,
|
|
778
|
+
shape: getShim,
|
|
779
|
+
exact: getShim,
|
|
780
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
781
|
+
resetWarningCache: emptyFunction
|
|
782
|
+
};
|
|
783
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
784
|
+
return ReactPropTypes;
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
/***/ }),
|
|
788
|
+
|
|
789
|
+
/***/ 628:
|
|
790
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
794
|
+
*
|
|
795
|
+
* This source code is licensed under the MIT license found in the
|
|
796
|
+
* LICENSE file in the root directory of this source tree.
|
|
797
|
+
*/
|
|
798
|
+
if (false) { var throwOnDirectAccess, ReactIs; } else {
|
|
799
|
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
800
|
+
// http://fb.me/prop-types-in-prod
|
|
801
|
+
module.exports = __webpack_require__(926)();
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
/***/ }),
|
|
805
|
+
|
|
806
|
+
/***/ 765:
|
|
807
|
+
/***/ ((module) => {
|
|
808
|
+
|
|
809
|
+
"use strict";
|
|
810
|
+
/**
|
|
811
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
812
|
+
*
|
|
813
|
+
* This source code is licensed under the MIT license found in the
|
|
814
|
+
* LICENSE file in the root directory of this source tree.
|
|
815
|
+
*/
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
819
|
+
module.exports = ReactPropTypesSecret;
|
|
820
|
+
|
|
821
|
+
/***/ }),
|
|
822
|
+
|
|
718
823
|
/***/ 955:
|
|
719
824
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
720
825
|
|
|
@@ -1044,6 +1149,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1044
1149
|
"ModalBody": () => (/* reexport */ ModalBody),
|
|
1045
1150
|
"ModalDialog": () => (/* reexport */ src_ModalDialog),
|
|
1046
1151
|
"ModalFooter": () => (/* reexport */ ModalFooter),
|
|
1152
|
+
"ModalHeader": () => (/* reexport */ src_ModalHeader),
|
|
1047
1153
|
"ModalTitle": () => (/* reexport */ ModalTitle),
|
|
1048
1154
|
"Nav": () => (/* reexport */ src_Nav),
|
|
1049
1155
|
"NavDropdown": () => (/* reexport */ src_NavDropdown),
|
|
@@ -1097,7 +1203,7 @@ var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__
|
|
|
1097
1203
|
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
|
1098
1204
|
var prop_types = __webpack_require__(526);
|
|
1099
1205
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
1100
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
1206
|
+
;// CONCATENATED MODULE: ./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
1101
1207
|
function extends_extends() {
|
|
1102
1208
|
extends_extends = Object.assign || function (target) {
|
|
1103
1209
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -1115,7 +1221,7 @@ function extends_extends() {
|
|
|
1115
1221
|
|
|
1116
1222
|
return extends_extends.apply(this, arguments);
|
|
1117
1223
|
}
|
|
1118
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
1224
|
+
;// CONCATENATED MODULE: ./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
1119
1225
|
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
1120
1226
|
if (source == null) return {};
|
|
1121
1227
|
var target = {};
|
|
@@ -1563,8 +1669,10 @@ var ThemeProvider_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-boot
|
|
|
1563
1669
|
|
|
1564
1670
|
|
|
1565
1671
|
|
|
1672
|
+
const DEFAULT_BREAKPOINTS = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
|
|
1566
1673
|
const ThemeContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext({
|
|
1567
|
-
prefixes: {}
|
|
1674
|
+
prefixes: {},
|
|
1675
|
+
breakpoints: DEFAULT_BREAKPOINTS
|
|
1568
1676
|
});
|
|
1569
1677
|
const {
|
|
1570
1678
|
Consumer,
|
|
@@ -1573,26 +1681,49 @@ const {
|
|
|
1573
1681
|
|
|
1574
1682
|
function ThemeProvider({
|
|
1575
1683
|
prefixes = {},
|
|
1684
|
+
breakpoints = DEFAULT_BREAKPOINTS,
|
|
1576
1685
|
dir,
|
|
1577
1686
|
children
|
|
1578
1687
|
}) {
|
|
1579
1688
|
const contextValue = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
|
|
1580
1689
|
prefixes: { ...prefixes
|
|
1581
1690
|
},
|
|
1691
|
+
breakpoints,
|
|
1582
1692
|
dir
|
|
1583
|
-
}), [prefixes, dir]);
|
|
1693
|
+
}), [prefixes, breakpoints, dir]);
|
|
1584
1694
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Provider, {
|
|
1585
1695
|
value: contextValue,
|
|
1586
1696
|
children: children
|
|
1587
1697
|
}, void 0, false, {
|
|
1588
1698
|
fileName: ThemeProvider_jsxFileName,
|
|
1589
|
-
lineNumber:
|
|
1699
|
+
lineNumber: 38,
|
|
1590
1700
|
columnNumber: 10
|
|
1591
1701
|
}, this);
|
|
1592
1702
|
}
|
|
1593
1703
|
|
|
1594
1704
|
ThemeProvider.propTypes = {
|
|
1705
|
+
/**
|
|
1706
|
+
* An object mapping of Bootstrap component classes that
|
|
1707
|
+
* map to a custom class.
|
|
1708
|
+
*
|
|
1709
|
+
* **Note: Changing prefixes is an escape hatch and generally
|
|
1710
|
+
* shouldn't be used.**
|
|
1711
|
+
*
|
|
1712
|
+
* For more information, see [here](/getting-started/theming/#prefixing-components).
|
|
1713
|
+
*/
|
|
1595
1714
|
prefixes: (prop_types_default()).object,
|
|
1715
|
+
|
|
1716
|
+
/**
|
|
1717
|
+
* An array of breakpoints that your application supports.
|
|
1718
|
+
* Defaults to the standard Bootstrap breakpoints.
|
|
1719
|
+
*/
|
|
1720
|
+
breakpoints: prop_types_default().arrayOf((prop_types_default()).string),
|
|
1721
|
+
|
|
1722
|
+
/**
|
|
1723
|
+
* Indicates the directionality of the application's text.
|
|
1724
|
+
*
|
|
1725
|
+
* Use `rtl` to set text as "right to left".
|
|
1726
|
+
*/
|
|
1596
1727
|
dir: (prop_types_default()).string
|
|
1597
1728
|
};
|
|
1598
1729
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
@@ -1601,6 +1732,12 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
|
1601
1732
|
} = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(ThemeContext);
|
|
1602
1733
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
1603
1734
|
}
|
|
1735
|
+
function useBootstrapBreakpoints() {
|
|
1736
|
+
const {
|
|
1737
|
+
breakpoints
|
|
1738
|
+
} = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(ThemeContext);
|
|
1739
|
+
return breakpoints;
|
|
1740
|
+
}
|
|
1604
1741
|
function useIsRTL() {
|
|
1605
1742
|
const {
|
|
1606
1743
|
dir
|
|
@@ -1626,8 +1763,8 @@ function createBootstrapComponent(Component, opts) {
|
|
|
1626
1763
|
bsPrefix: bsPrefix
|
|
1627
1764
|
}, void 0, false, {
|
|
1628
1765
|
fileName: ThemeProvider_jsxFileName,
|
|
1629
|
-
lineNumber:
|
|
1630
|
-
columnNumber:
|
|
1766
|
+
lineNumber: 95,
|
|
1767
|
+
columnNumber: 14
|
|
1631
1768
|
}, this);
|
|
1632
1769
|
});
|
|
1633
1770
|
Wrapped.displayName = `Bootstrap(${Component.displayName || Component.name})`;
|
|
@@ -1723,7 +1860,22 @@ function style(node, property) {
|
|
|
1723
1860
|
}
|
|
1724
1861
|
|
|
1725
1862
|
/* harmony default export */ const css = (style);
|
|
1726
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/
|
|
1863
|
+
;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
1864
|
+
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
1865
|
+
if (source == null) return {};
|
|
1866
|
+
var target = {};
|
|
1867
|
+
var sourceKeys = Object.keys(source);
|
|
1868
|
+
var key, i;
|
|
1869
|
+
|
|
1870
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
1871
|
+
key = sourceKeys[i];
|
|
1872
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
1873
|
+
target[key] = source[key];
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
return target;
|
|
1877
|
+
}
|
|
1878
|
+
;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
1727
1879
|
function _setPrototypeOf(o, p) {
|
|
1728
1880
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
1729
1881
|
o.__proto__ = p;
|
|
@@ -1732,13 +1884,15 @@ function _setPrototypeOf(o, p) {
|
|
|
1732
1884
|
|
|
1733
1885
|
return _setPrototypeOf(o, p);
|
|
1734
1886
|
}
|
|
1735
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
1887
|
+
;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
1736
1888
|
|
|
1737
1889
|
function inheritsLoose_inheritsLoose(subClass, superClass) {
|
|
1738
1890
|
subClass.prototype = Object.create(superClass.prototype);
|
|
1739
1891
|
subClass.prototype.constructor = subClass;
|
|
1740
1892
|
_setPrototypeOf(subClass, superClass);
|
|
1741
1893
|
}
|
|
1894
|
+
// EXTERNAL MODULE: ./node_modules/react-transition-group/node_modules/prop-types/index.js
|
|
1895
|
+
var node_modules_prop_types = __webpack_require__(628);
|
|
1742
1896
|
// EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
|
|
1743
1897
|
var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(156);
|
|
1744
1898
|
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_);
|
|
@@ -2141,7 +2295,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
2141
2295
|
_onExiting = _this$props.onExiting,
|
|
2142
2296
|
_onExited = _this$props.onExited,
|
|
2143
2297
|
_nodeRef = _this$props.nodeRef,
|
|
2144
|
-
childProps =
|
|
2298
|
+
childProps = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
2145
2299
|
|
|
2146
2300
|
return (
|
|
2147
2301
|
/*#__PURE__*/
|
|
@@ -3111,7 +3265,7 @@ function useEventCallback(fn) {
|
|
|
3111
3265
|
return ref.current && ref.current.apply(ref, arguments);
|
|
3112
3266
|
}, [ref]);
|
|
3113
3267
|
}
|
|
3114
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/
|
|
3268
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
|
|
3115
3269
|
|
|
3116
3270
|
/**
|
|
3117
3271
|
* A convenience hook around `useState` designed to be paired with
|
|
@@ -3141,37 +3295,7 @@ function useEventCallback(fn) {
|
|
|
3141
3295
|
function useCallbackRef() {
|
|
3142
3296
|
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
|
|
3143
3297
|
}
|
|
3144
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/
|
|
3145
|
-
|
|
3146
|
-
/**
|
|
3147
|
-
* Creates a `Ref` whose value is updated in an effect, ensuring the most recent
|
|
3148
|
-
* value is the one rendered with. Generally only required for Concurrent mode usage
|
|
3149
|
-
* where previous work in `render()` may be discarded befor being used.
|
|
3150
|
-
*
|
|
3151
|
-
* This is safe to access in an event handler.
|
|
3152
|
-
*
|
|
3153
|
-
* @param value The `Ref` value
|
|
3154
|
-
*/
|
|
3155
|
-
|
|
3156
|
-
function esm_useCommittedRef_useCommittedRef(value) {
|
|
3157
|
-
var ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
|
|
3158
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
3159
|
-
ref.current = value;
|
|
3160
|
-
}, [value]);
|
|
3161
|
-
return ref;
|
|
3162
|
-
}
|
|
3163
|
-
|
|
3164
|
-
/* harmony default export */ const hooks_esm_useCommittedRef = (esm_useCommittedRef_useCommittedRef);
|
|
3165
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useEventCallback.js
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
function useEventCallback_useEventCallback(fn) {
|
|
3169
|
-
var ref = hooks_esm_useCommittedRef(fn);
|
|
3170
|
-
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function () {
|
|
3171
|
-
return ref.current && ref.current.apply(ref, arguments);
|
|
3172
|
-
}, [ref]);
|
|
3173
|
-
}
|
|
3174
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useEventListener.js
|
|
3298
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useEventListener.js
|
|
3175
3299
|
|
|
3176
3300
|
|
|
3177
3301
|
/**
|
|
@@ -3189,7 +3313,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
|
|
|
3189
3313
|
capture = false;
|
|
3190
3314
|
}
|
|
3191
3315
|
|
|
3192
|
-
var handler =
|
|
3316
|
+
var handler = useEventCallback(listener);
|
|
3193
3317
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
3194
3318
|
var target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
|
|
3195
3319
|
target.addEventListener(event, handler, capture);
|
|
@@ -3198,7 +3322,7 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
|
|
|
3198
3322
|
};
|
|
3199
3323
|
}, [eventTarget]);
|
|
3200
3324
|
}
|
|
3201
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/
|
|
3325
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useGlobalListener.js
|
|
3202
3326
|
|
|
3203
3327
|
|
|
3204
3328
|
/**
|
|
@@ -3226,7 +3350,7 @@ function useGlobalListener(event, handler, capture) {
|
|
|
3226
3350
|
}, []);
|
|
3227
3351
|
return useEventListener(documentTarget, event, handler, capture);
|
|
3228
3352
|
}
|
|
3229
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/
|
|
3353
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useInterval.js
|
|
3230
3354
|
|
|
3231
3355
|
|
|
3232
3356
|
/**
|
|
@@ -3285,7 +3409,7 @@ function useInterval(fn, ms, paused, runImmediately) {
|
|
|
3285
3409
|
}
|
|
3286
3410
|
|
|
3287
3411
|
/* harmony default export */ const esm_useInterval = ((/* unused pure expression or super */ null && (useInterval)));
|
|
3288
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/
|
|
3412
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useRafInterval.js
|
|
3289
3413
|
|
|
3290
3414
|
|
|
3291
3415
|
|
|
@@ -3324,7 +3448,7 @@ function useRafInterval(fn, ms, paused) {
|
|
|
3324
3448
|
}
|
|
3325
3449
|
|
|
3326
3450
|
/* harmony default export */ const esm_useRafInterval = ((/* unused pure expression or super */ null && (useRafInterval)));
|
|
3327
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/
|
|
3451
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeState.js
|
|
3328
3452
|
function useMergeState_extends() {
|
|
3329
3453
|
useMergeState_extends = Object.assign || function (target) {
|
|
3330
3454
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -3381,7 +3505,7 @@ function useMergeState_useMergeState(initialState) {
|
|
|
3381
3505
|
}, [setState]);
|
|
3382
3506
|
return [state, updater];
|
|
3383
3507
|
}
|
|
3384
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/
|
|
3508
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeStateFromProps.js
|
|
3385
3509
|
|
|
3386
3510
|
function useMergeStateFromProps(props, gDSFP, initialState) {
|
|
3387
3511
|
var _useMergeState = useMergeState(initialState),
|
|
@@ -3392,7 +3516,7 @@ function useMergeStateFromProps(props, gDSFP, initialState) {
|
|
|
3392
3516
|
if (nextState !== null) setState(nextState);
|
|
3393
3517
|
return [state, setState];
|
|
3394
3518
|
}
|
|
3395
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/
|
|
3519
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
|
|
3396
3520
|
|
|
3397
3521
|
/**
|
|
3398
3522
|
* Track whether a component is current mounted. Generally less preferable than
|
|
@@ -3427,7 +3551,7 @@ function useMounted() {
|
|
|
3427
3551
|
}, []);
|
|
3428
3552
|
return isMounted.current;
|
|
3429
3553
|
}
|
|
3430
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/
|
|
3554
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/usePrevious.js
|
|
3431
3555
|
|
|
3432
3556
|
/**
|
|
3433
3557
|
* Store the last of some value. Tracked via a `Ref` only updating it
|
|
@@ -3454,7 +3578,7 @@ function usePrevious(value) {
|
|
|
3454
3578
|
});
|
|
3455
3579
|
return ref.current;
|
|
3456
3580
|
}
|
|
3457
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/
|
|
3581
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useImage.js
|
|
3458
3582
|
|
|
3459
3583
|
/**
|
|
3460
3584
|
* Fetch and load an image for programatic use such as in a `<canvas>` element.
|
|
@@ -3533,7 +3657,7 @@ function useImage(imageOrUrl, crossOrigin) {
|
|
|
3533
3657
|
}, [imageOrUrl, crossOrigin]);
|
|
3534
3658
|
return state;
|
|
3535
3659
|
}
|
|
3536
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/
|
|
3660
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
|
|
3537
3661
|
|
|
3538
3662
|
var isReactNative = typeof __webpack_require__.g !== 'undefined' && // @ts-ignore
|
|
3539
3663
|
__webpack_require__.g.navigator && // @ts-ignore
|
|
@@ -3549,7 +3673,7 @@ var isDOM = typeof document !== 'undefined';
|
|
|
3549
3673
|
*/
|
|
3550
3674
|
|
|
3551
3675
|
/* 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);
|
|
3552
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/
|
|
3676
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useResizeObserver.js
|
|
3553
3677
|
|
|
3554
3678
|
|
|
3555
3679
|
var targetMap = new WeakMap();
|
|
@@ -3602,7 +3726,7 @@ function useResizeObserver(element) {
|
|
|
3602
3726
|
}, [element]);
|
|
3603
3727
|
return rect;
|
|
3604
3728
|
}
|
|
3605
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/
|
|
3729
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/index.js
|
|
3606
3730
|
|
|
3607
3731
|
|
|
3608
3732
|
|
|
@@ -3691,13 +3815,22 @@ function useButtonProps({
|
|
|
3691
3815
|
}
|
|
3692
3816
|
};
|
|
3693
3817
|
|
|
3818
|
+
if (tagName === 'a') {
|
|
3819
|
+
// Ensure there's a href so Enter can trigger anchor button.
|
|
3820
|
+
href || (href = '#');
|
|
3821
|
+
|
|
3822
|
+
if (disabled) {
|
|
3823
|
+
href = undefined;
|
|
3824
|
+
}
|
|
3825
|
+
}
|
|
3826
|
+
|
|
3694
3827
|
return [{
|
|
3695
3828
|
role: 'button',
|
|
3696
3829
|
// explicitly undefined so that it overrides the props disabled in a spread
|
|
3697
3830
|
// e.g. <Tag {...props} {...hookProps} />
|
|
3698
3831
|
disabled: undefined,
|
|
3699
3832
|
tabIndex: disabled ? undefined : tabIndex,
|
|
3700
|
-
href
|
|
3833
|
+
href,
|
|
3701
3834
|
target: tagName === 'a' ? target : undefined,
|
|
3702
3835
|
'aria-disabled': !disabled ? undefined : disabled,
|
|
3703
3836
|
rel: tagName === 'a' ? rel : undefined,
|
|
@@ -3767,7 +3900,7 @@ const Anchor = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
|
|
|
3767
3900
|
const [buttonProps] = useButtonProps(Object.assign({
|
|
3768
3901
|
tagName: 'a'
|
|
3769
3902
|
}, props));
|
|
3770
|
-
const handleKeyDown =
|
|
3903
|
+
const handleKeyDown = useEventCallback(e => {
|
|
3771
3904
|
buttonProps.onKeyDown(e);
|
|
3772
3905
|
onKeyDown == null ? void 0 : onKeyDown(e);
|
|
3773
3906
|
});
|
|
@@ -4446,8 +4579,8 @@ const Button_Button = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_
|
|
|
4446
4579
|
...props
|
|
4447
4580
|
});
|
|
4448
4581
|
const Component = tagName;
|
|
4449
|
-
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, { ...
|
|
4450
|
-
...
|
|
4582
|
+
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, { ...buttonProps,
|
|
4583
|
+
...props,
|
|
4451
4584
|
ref: ref,
|
|
4452
4585
|
className: classnames_default()(className, prefix, active && 'active', variant && `${prefix}-${variant}`, size && `${prefix}-${size}`, props.href && props.disabled && 'disabled')
|
|
4453
4586
|
}, void 0, false, {
|
|
@@ -4806,41 +4939,6 @@ function useUpdateEffect(fn, deps) {
|
|
|
4806
4939
|
}
|
|
4807
4940
|
|
|
4808
4941
|
/* harmony default export */ const esm_useUpdateEffect = (useUpdateEffect);
|
|
4809
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
|
|
4810
|
-
|
|
4811
|
-
/**
|
|
4812
|
-
* Track whether a component is current mounted. Generally less preferable than
|
|
4813
|
-
* properlly canceling effects so they don't run after a component is unmounted,
|
|
4814
|
-
* but helpful in cases where that isn't feasible, such as a `Promise` resolution.
|
|
4815
|
-
*
|
|
4816
|
-
* @returns a function that returns the current isMounted state of the component
|
|
4817
|
-
*
|
|
4818
|
-
* ```ts
|
|
4819
|
-
* const [data, setData] = useState(null)
|
|
4820
|
-
* const isMounted = useMounted()
|
|
4821
|
-
*
|
|
4822
|
-
* useEffect(() => {
|
|
4823
|
-
* fetchdata().then((newData) => {
|
|
4824
|
-
* if (isMounted()) {
|
|
4825
|
-
* setData(newData);
|
|
4826
|
-
* }
|
|
4827
|
-
* })
|
|
4828
|
-
* })
|
|
4829
|
-
* ```
|
|
4830
|
-
*/
|
|
4831
|
-
|
|
4832
|
-
function useMounted_useMounted() {
|
|
4833
|
-
var mounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
|
|
4834
|
-
var isMounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(function () {
|
|
4835
|
-
return mounted.current;
|
|
4836
|
-
});
|
|
4837
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
4838
|
-
return function () {
|
|
4839
|
-
mounted.current = false;
|
|
4840
|
-
};
|
|
4841
|
-
}, []);
|
|
4842
|
-
return isMounted.current;
|
|
4843
|
-
}
|
|
4844
4942
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useUpdatedRef.js
|
|
4845
4943
|
|
|
4846
4944
|
/**
|
|
@@ -4915,7 +5013,7 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
4915
5013
|
|
|
4916
5014
|
|
|
4917
5015
|
function useTimeout() {
|
|
4918
|
-
var isMounted =
|
|
5016
|
+
var isMounted = useMounted(); // types are confused between node and web here IDK
|
|
4919
5017
|
|
|
4920
5018
|
var handleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
|
|
4921
5019
|
useWillUnmount(function () {
|
|
@@ -5566,7 +5664,6 @@ var Col_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/
|
|
|
5566
5664
|
|
|
5567
5665
|
|
|
5568
5666
|
|
|
5569
|
-
const DEVICE_SIZES = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
|
|
5570
5667
|
const colSize = prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).number, (prop_types_default()).string, prop_types_default().oneOf(['auto'])]);
|
|
5571
5668
|
const stringOrNumber = prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]);
|
|
5572
5669
|
const column = prop_types_default().oneOfType([colSize, prop_types_default().shape({
|
|
@@ -5630,9 +5727,10 @@ function useCol({
|
|
|
5630
5727
|
...props
|
|
5631
5728
|
}) {
|
|
5632
5729
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
5730
|
+
const breakpoints = useBootstrapBreakpoints();
|
|
5633
5731
|
const spans = [];
|
|
5634
5732
|
const classes = [];
|
|
5635
|
-
|
|
5733
|
+
breakpoints.forEach(brkPoint => {
|
|
5636
5734
|
const propValue = props[brkPoint];
|
|
5637
5735
|
delete props[brkPoint];
|
|
5638
5736
|
let span;
|
|
@@ -5677,7 +5775,7 @@ const Col = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
|
|
|
5677
5775
|
className: classnames_default()(className, !spans.length && bsPrefix)
|
|
5678
5776
|
}, void 0, false, {
|
|
5679
5777
|
fileName: Col_jsxFileName,
|
|
5680
|
-
lineNumber:
|
|
5778
|
+
lineNumber: 179,
|
|
5681
5779
|
columnNumber: 7
|
|
5682
5780
|
}, undefined);
|
|
5683
5781
|
});
|
|
@@ -5696,7 +5794,7 @@ var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
|
5696
5794
|
function qsa(element, selector) {
|
|
5697
5795
|
return toArray(element.querySelectorAll(selector));
|
|
5698
5796
|
}
|
|
5699
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/
|
|
5797
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useForceUpdate.js
|
|
5700
5798
|
|
|
5701
5799
|
/**
|
|
5702
5800
|
* Returns a function that triggers a component update. the hook equivalent to
|
|
@@ -5815,7 +5913,7 @@ function dequal(foo, bar) {
|
|
|
5815
5913
|
return foo !== foo && bar !== bar;
|
|
5816
5914
|
}
|
|
5817
5915
|
|
|
5818
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/
|
|
5916
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useSafeState.js
|
|
5819
5917
|
|
|
5820
5918
|
|
|
5821
5919
|
|
|
@@ -7871,16 +7969,15 @@ function contains_contains(context, node) {
|
|
|
7871
7969
|
// EXTERNAL MODULE: ./node_modules/warning/warning.js
|
|
7872
7970
|
var warning = __webpack_require__(459);
|
|
7873
7971
|
var warning_default = /*#__PURE__*/__webpack_require__.n(warning);
|
|
7874
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/
|
|
7972
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/useClickOutside.js
|
|
7875
7973
|
|
|
7876
7974
|
|
|
7877
7975
|
|
|
7878
7976
|
|
|
7879
7977
|
|
|
7880
7978
|
|
|
7881
|
-
const escapeKeyCode = 27;
|
|
7882
7979
|
|
|
7883
|
-
const
|
|
7980
|
+
const useClickOutside_noop = () => {};
|
|
7884
7981
|
|
|
7885
7982
|
function isLeftClickEvent(event) {
|
|
7886
7983
|
return event.button === 0;
|
|
@@ -7892,38 +7989,29 @@ function isModifiedEvent(event) {
|
|
|
7892
7989
|
|
|
7893
7990
|
const getRefTarget = ref => ref && ('current' in ref ? ref.current : ref);
|
|
7894
7991
|
/**
|
|
7895
|
-
* The `
|
|
7896
|
-
* when
|
|
7897
|
-
* style behavior where your callback is triggered when the user tries to
|
|
7898
|
-
* interact with the rest of the document or hits the `esc` key.
|
|
7992
|
+
* The `useClickOutside` hook registers your callback on the document that fires
|
|
7993
|
+
* when a pointer event is registered outside of the provided ref or element.
|
|
7899
7994
|
*
|
|
7900
7995
|
* @param {Ref<HTMLElement>| HTMLElement} ref The element boundary
|
|
7901
|
-
* @param {function}
|
|
7996
|
+
* @param {function} onClickOutside
|
|
7902
7997
|
* @param {object=} options
|
|
7903
7998
|
* @param {boolean=} options.disabled
|
|
7904
7999
|
* @param {string=} options.clickTrigger The DOM event name (click, mousedown, etc) to attach listeners on
|
|
7905
8000
|
*/
|
|
7906
8001
|
|
|
7907
|
-
|
|
7908
|
-
function useRootClose(ref, onRootClose, {
|
|
8002
|
+
function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
|
|
7909
8003
|
disabled,
|
|
7910
8004
|
clickTrigger = 'click'
|
|
7911
8005
|
} = {}) {
|
|
7912
|
-
const
|
|
7913
|
-
const onClose = onRootClose || useRootClose_noop;
|
|
8006
|
+
const preventMouseClickOutsideRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
|
|
7914
8007
|
const handleMouseCapture = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(e => {
|
|
7915
8008
|
const currentTarget = getRefTarget(ref);
|
|
7916
|
-
warning_default()(!!currentTarget, '
|
|
7917
|
-
|
|
8009
|
+
warning_default()(!!currentTarget, 'ClickOutside captured a close event but does not have a ref to compare it to. ' + 'useClickOutside(), should be passed a ref that resolves to a DOM node');
|
|
8010
|
+
preventMouseClickOutsideRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains_contains(currentTarget, e.target);
|
|
7918
8011
|
}, [ref]);
|
|
7919
|
-
const handleMouse =
|
|
7920
|
-
if (!
|
|
7921
|
-
|
|
7922
|
-
}
|
|
7923
|
-
});
|
|
7924
|
-
const handleKeyUp = useEventCallback_useEventCallback(e => {
|
|
7925
|
-
if (e.keyCode === escapeKeyCode) {
|
|
7926
|
-
onClose(e);
|
|
8012
|
+
const handleMouse = useEventCallback(e => {
|
|
8013
|
+
if (!preventMouseClickOutsideRef.current) {
|
|
8014
|
+
onClickOutside(e);
|
|
7927
8015
|
}
|
|
7928
8016
|
});
|
|
7929
8017
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
@@ -7945,31 +8033,21 @@ function useRootClose(ref, onRootClose, {
|
|
|
7945
8033
|
|
|
7946
8034
|
handleMouse(e);
|
|
7947
8035
|
});
|
|
7948
|
-
const removeKeyupListener = esm_listen(doc, 'keyup', e => {
|
|
7949
|
-
// skip if this event is the same as the one running when we added the handlers
|
|
7950
|
-
if (e === currentEvent) {
|
|
7951
|
-
currentEvent = undefined;
|
|
7952
|
-
return;
|
|
7953
|
-
}
|
|
7954
|
-
|
|
7955
|
-
handleKeyUp(e);
|
|
7956
|
-
});
|
|
7957
8036
|
let mobileSafariHackListeners = [];
|
|
7958
8037
|
|
|
7959
8038
|
if ('ontouchstart' in doc.documentElement) {
|
|
7960
|
-
mobileSafariHackListeners = [].slice.call(doc.body.children).map(el => esm_listen(el, 'mousemove',
|
|
8039
|
+
mobileSafariHackListeners = [].slice.call(doc.body.children).map(el => esm_listen(el, 'mousemove', useClickOutside_noop));
|
|
7961
8040
|
}
|
|
7962
8041
|
|
|
7963
8042
|
return () => {
|
|
7964
8043
|
removeMouseCaptureListener();
|
|
7965
8044
|
removeMouseListener();
|
|
7966
|
-
removeKeyupListener();
|
|
7967
8045
|
mobileSafariHackListeners.forEach(remove => remove());
|
|
7968
8046
|
};
|
|
7969
|
-
}, [ref, disabled, clickTrigger, handleMouseCapture, handleMouse
|
|
8047
|
+
}, [ref, disabled, clickTrigger, handleMouseCapture, handleMouse]);
|
|
7970
8048
|
}
|
|
7971
8049
|
|
|
7972
|
-
/* harmony default export */ const
|
|
8050
|
+
/* harmony default export */ const esm_useClickOutside = (useClickOutside);
|
|
7973
8051
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/mergeOptionsWithPopperConfig.js
|
|
7974
8052
|
function toModifierMap(modifiers) {
|
|
7975
8053
|
const result = {};
|
|
@@ -8134,7 +8212,7 @@ function useDropdownMenu(options = {}) {
|
|
|
8134
8212
|
style: popper.styles.arrow
|
|
8135
8213
|
}) : {}
|
|
8136
8214
|
};
|
|
8137
|
-
|
|
8215
|
+
esm_useClickOutside(menuElement, handleClose, {
|
|
8138
8216
|
clickTrigger: rootCloseEvent,
|
|
8139
8217
|
disabled: !show
|
|
8140
8218
|
});
|
|
@@ -8371,7 +8449,7 @@ function useDropdownItem({
|
|
|
8371
8449
|
} = navContext || {};
|
|
8372
8450
|
const eventKey = makeEventKey(key, href);
|
|
8373
8451
|
const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;
|
|
8374
|
-
const handleClick =
|
|
8452
|
+
const handleClick = useEventCallback(event => {
|
|
8375
8453
|
if (disabled) return;
|
|
8376
8454
|
onClick == null ? void 0 : onClick(event);
|
|
8377
8455
|
|
|
@@ -8490,7 +8568,7 @@ function Dropdown({
|
|
|
8490
8568
|
source
|
|
8491
8569
|
});
|
|
8492
8570
|
}, [onToggle]);
|
|
8493
|
-
const handleSelect =
|
|
8571
|
+
const handleSelect = useEventCallback((key, event) => {
|
|
8494
8572
|
onSelect == null ? void 0 : onSelect(key, event);
|
|
8495
8573
|
toggle(false, event, 'select');
|
|
8496
8574
|
|
|
@@ -8512,12 +8590,12 @@ function Dropdown({
|
|
|
8512
8590
|
focusInDropdown.current = menuElement.contains(menuElement.ownerDocument.activeElement);
|
|
8513
8591
|
}
|
|
8514
8592
|
|
|
8515
|
-
const focusToggle =
|
|
8593
|
+
const focusToggle = useEventCallback(() => {
|
|
8516
8594
|
if (toggleElement && toggleElement.focus) {
|
|
8517
8595
|
toggleElement.focus();
|
|
8518
8596
|
}
|
|
8519
8597
|
});
|
|
8520
|
-
const maybeFocusFirst =
|
|
8598
|
+
const maybeFocusFirst = useEventCallback(() => {
|
|
8521
8599
|
const type = lastSourceEvent.current;
|
|
8522
8600
|
let focusType = focusFirstItemOnShow;
|
|
8523
8601
|
|
|
@@ -8563,7 +8641,7 @@ function Dropdown({
|
|
|
8563
8641
|
|
|
8564
8642
|
const isInput = /input|textarea/i.test(target.tagName);
|
|
8565
8643
|
|
|
8566
|
-
if (isInput && (key === ' ' || key !== 'Escape' && fromMenu)) {
|
|
8644
|
+
if (isInput && (key === ' ' || key !== 'Escape' && fromMenu || key === 'Escape' && target.type === 'search')) {
|
|
8567
8645
|
return;
|
|
8568
8646
|
}
|
|
8569
8647
|
|
|
@@ -8719,22 +8797,6 @@ const DropdownItem_DropdownItem = /*#__PURE__*/external_root_React_commonjs2_rea
|
|
|
8719
8797
|
DropdownItem_DropdownItem.displayName = 'DropdownItem';
|
|
8720
8798
|
DropdownItem_DropdownItem.propTypes = DropdownItem_propTypes;
|
|
8721
8799
|
/* harmony default export */ const src_DropdownItem = (DropdownItem_DropdownItem);
|
|
8722
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
|
|
8723
|
-
|
|
8724
|
-
var useIsomorphicEffect_isReactNative = typeof __webpack_require__.g !== 'undefined' && // @ts-ignore
|
|
8725
|
-
__webpack_require__.g.navigator && // @ts-ignore
|
|
8726
|
-
__webpack_require__.g.navigator.product === 'ReactNative';
|
|
8727
|
-
var useIsomorphicEffect_isDOM = typeof document !== 'undefined';
|
|
8728
|
-
/**
|
|
8729
|
-
* Is `useLayoutEffect` in a DOM or React Native environment, otherwise resolves to useEffect
|
|
8730
|
-
* Only useful to avoid the console warning.
|
|
8731
|
-
*
|
|
8732
|
-
* PREFER `useEffect` UNLESS YOU KNOW WHAT YOU ARE DOING.
|
|
8733
|
-
*
|
|
8734
|
-
* @category effects
|
|
8735
|
-
*/
|
|
8736
|
-
|
|
8737
|
-
/* harmony default export */ const esm_useIsomorphicEffect = (useIsomorphicEffect_isDOM || useIsomorphicEffect_isReactNative ? external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect : external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect);
|
|
8738
8800
|
;// CONCATENATED MODULE: ./src/InputGroupContext.tsx
|
|
8739
8801
|
|
|
8740
8802
|
const InputGroupContext_context = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
|
|
@@ -8773,7 +8835,7 @@ const alignPropType = prop_types_default().oneOfType([alignDirection, prop_types
|
|
|
8773
8835
|
xl: alignDirection
|
|
8774
8836
|
}), prop_types_default().shape({
|
|
8775
8837
|
xxl: alignDirection
|
|
8776
|
-
})]);
|
|
8838
|
+
}), (prop_types_default()).object]);
|
|
8777
8839
|
;// CONCATENATED MODULE: ./src/DropdownMenu.tsx
|
|
8778
8840
|
var DropdownMenu_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/DropdownMenu.tsx";
|
|
8779
8841
|
|
|
@@ -8924,7 +8986,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
|
|
|
8924
8986
|
placement
|
|
8925
8987
|
});
|
|
8926
8988
|
menuProps.ref = esm_useMergedRefs(useWrappedRefWithWarning(ref, 'DropdownMenu'), menuProps.ref);
|
|
8927
|
-
|
|
8989
|
+
useIsomorphicEffect(() => {
|
|
8928
8990
|
// Popper's initial position for the menu is incorrect when
|
|
8929
8991
|
// renderOnMount=true. Need to call update() to correct it.
|
|
8930
8992
|
if (show) popper == null ? void 0 : popper.update();
|
|
@@ -10301,7 +10363,6 @@ var Container_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstra
|
|
|
10301
10363
|
|
|
10302
10364
|
|
|
10303
10365
|
|
|
10304
|
-
const containerSizes = prop_types_default().oneOfType([(prop_types_default()).bool, prop_types_default().oneOf(['sm', 'md', 'lg', 'xl', 'xxl'])]);
|
|
10305
10366
|
const Container_propTypes = {
|
|
10306
10367
|
/**
|
|
10307
10368
|
* @default 'container'
|
|
@@ -10312,7 +10373,7 @@ const Container_propTypes = {
|
|
|
10312
10373
|
* Allow the Container to fill all of its available horizontal space.
|
|
10313
10374
|
* @type {(true|"sm"|"md"|"lg"|"xl"|"xxl")}
|
|
10314
10375
|
*/
|
|
10315
|
-
fluid:
|
|
10376
|
+
fluid: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string]),
|
|
10316
10377
|
|
|
10317
10378
|
/**
|
|
10318
10379
|
* You can use a custom element for this component
|
|
@@ -10338,7 +10399,7 @@ const Container = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
10338
10399
|
className: classnames_default()(className, fluid ? `${prefix}${suffix}` : prefix)
|
|
10339
10400
|
}, void 0, false, {
|
|
10340
10401
|
fileName: Container_jsxFileName,
|
|
10341
|
-
lineNumber:
|
|
10402
|
+
lineNumber: 51,
|
|
10342
10403
|
columnNumber: 9
|
|
10343
10404
|
}, undefined);
|
|
10344
10405
|
});
|
|
@@ -10560,47 +10621,6 @@ InputGroup.displayName = 'InputGroup';
|
|
|
10560
10621
|
Radio: InputGroupRadio,
|
|
10561
10622
|
Checkbox: InputGroupCheckbox
|
|
10562
10623
|
}));
|
|
10563
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergedRefs.js
|
|
10564
|
-
|
|
10565
|
-
|
|
10566
|
-
var useMergedRefs_toFnRef = function toFnRef(ref) {
|
|
10567
|
-
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
10568
|
-
ref.current = value;
|
|
10569
|
-
};
|
|
10570
|
-
};
|
|
10571
|
-
|
|
10572
|
-
function useMergedRefs_mergeRefs(refA, refB) {
|
|
10573
|
-
var a = useMergedRefs_toFnRef(refA);
|
|
10574
|
-
var b = useMergedRefs_toFnRef(refB);
|
|
10575
|
-
return function (value) {
|
|
10576
|
-
if (a) a(value);
|
|
10577
|
-
if (b) b(value);
|
|
10578
|
-
};
|
|
10579
|
-
}
|
|
10580
|
-
/**
|
|
10581
|
-
* Create and returns a single callback ref composed from two other Refs.
|
|
10582
|
-
*
|
|
10583
|
-
* ```tsx
|
|
10584
|
-
* const Button = React.forwardRef((props, ref) => {
|
|
10585
|
-
* const [element, attachRef] = useCallbackRef<HTMLButtonElement>();
|
|
10586
|
-
* const mergedRef = useMergedRefs(ref, attachRef);
|
|
10587
|
-
*
|
|
10588
|
-
* return <button ref={mergedRef} {...props}/>
|
|
10589
|
-
* })
|
|
10590
|
-
* ```
|
|
10591
|
-
*
|
|
10592
|
-
* @param refA A Callback or mutable Ref
|
|
10593
|
-
* @param refB A Callback or mutable Ref
|
|
10594
|
-
* @category refs
|
|
10595
|
-
*/
|
|
10596
|
-
|
|
10597
|
-
function useMergedRefs_useMergedRefs(refA, refB) {
|
|
10598
|
-
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
10599
|
-
return useMergedRefs_mergeRefs(refA, refB);
|
|
10600
|
-
}, [refA, refB]);
|
|
10601
|
-
}
|
|
10602
|
-
|
|
10603
|
-
/* harmony default export */ const hooks_esm_useMergedRefs = (useMergedRefs_useMergedRefs);
|
|
10604
10624
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/TabContext.js
|
|
10605
10625
|
|
|
10606
10626
|
const TabContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
|
|
@@ -10631,6 +10651,7 @@ function NavItem_objectWithoutPropertiesLoose(source, excluded) {
|
|
|
10631
10651
|
|
|
10632
10652
|
|
|
10633
10653
|
|
|
10654
|
+
|
|
10634
10655
|
function useNavItem({
|
|
10635
10656
|
key,
|
|
10636
10657
|
onClick,
|
|
@@ -10641,6 +10662,7 @@ function useNavItem({
|
|
|
10641
10662
|
}) {
|
|
10642
10663
|
const parentOnSelect = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(esm_SelectableContext);
|
|
10643
10664
|
const navContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(esm_NavContext);
|
|
10665
|
+
const tabContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(esm_TabContext);
|
|
10644
10666
|
let isActive = active;
|
|
10645
10667
|
const props = {
|
|
10646
10668
|
role
|
|
@@ -10653,8 +10675,18 @@ function useNavItem({
|
|
|
10653
10675
|
|
|
10654
10676
|
props[dataAttr('event-key')] = key;
|
|
10655
10677
|
props.id = contextControllerId || id;
|
|
10656
|
-
props['aria-controls'] = contextControlledId;
|
|
10657
10678
|
isActive = active == null && key != null ? navContext.activeKey === key : active;
|
|
10679
|
+
/**
|
|
10680
|
+
* Simplified scenario for `mountOnEnter`.
|
|
10681
|
+
*
|
|
10682
|
+
* While it would make sense to keep 'aria-controls' for tabs that have been mounted at least
|
|
10683
|
+
* once, it would also complicate the code quite a bit, for very little gain.
|
|
10684
|
+
* The following implementation is probably good enough.
|
|
10685
|
+
*
|
|
10686
|
+
* @see https://github.com/react-restart/ui/pull/40#issuecomment-1009971561
|
|
10687
|
+
*/
|
|
10688
|
+
|
|
10689
|
+
if (isActive || !(tabContext != null && tabContext.unmountOnExit) && !(tabContext != null && tabContext.mountOnEnter)) props['aria-controls'] = contextControlledId;
|
|
10658
10690
|
}
|
|
10659
10691
|
|
|
10660
10692
|
if (props.role === 'tab') {
|
|
@@ -10670,7 +10702,7 @@ function useNavItem({
|
|
|
10670
10702
|
}
|
|
10671
10703
|
}
|
|
10672
10704
|
|
|
10673
|
-
props.onClick =
|
|
10705
|
+
props.onClick = useEventCallback(e => {
|
|
10674
10706
|
if (disabled) return;
|
|
10675
10707
|
onClick == null ? void 0 : onClick(e);
|
|
10676
10708
|
|
|
@@ -10773,7 +10805,7 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
|
|
|
10773
10805
|
if (!currentListNode) return null;
|
|
10774
10806
|
const items = qsa(currentListNode, `[${EVENT_KEY_ATTR}]:not([aria-disabled=true])`);
|
|
10775
10807
|
const activeChild = currentListNode.querySelector('[aria-selected=true]');
|
|
10776
|
-
if (!activeChild) return null;
|
|
10808
|
+
if (!activeChild || activeChild !== document.activeElement) return null;
|
|
10777
10809
|
const index = items.indexOf(activeChild);
|
|
10778
10810
|
if (index === -1) return null;
|
|
10779
10811
|
let nextIndex = index + offset;
|
|
@@ -10827,7 +10859,7 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
|
|
|
10827
10859
|
|
|
10828
10860
|
needsRefocusRef.current = false;
|
|
10829
10861
|
});
|
|
10830
|
-
const mergedRef =
|
|
10862
|
+
const mergedRef = esm_useMergedRefs(ref, listNode);
|
|
10831
10863
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_SelectableContext.Provider, {
|
|
10832
10864
|
value: handleSelect,
|
|
10833
10865
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_NavContext.Provider, {
|
|
@@ -10979,7 +11011,7 @@ const ListGroup_propTypes = {
|
|
|
10979
11011
|
* makes the list group horizontal starting at that breakpoint’s `min-width`.
|
|
10980
11012
|
* @type {(true|'sm'|'md'|'lg'|'xl'|'xxl')}
|
|
10981
11013
|
*/
|
|
10982
|
-
horizontal: prop_types_default().
|
|
11014
|
+
horizontal: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string]),
|
|
10983
11015
|
|
|
10984
11016
|
/**
|
|
10985
11017
|
* Generate numbered list items.
|
|
@@ -11048,36 +11080,6 @@ function scrollbarSize(recalc) {
|
|
|
11048
11080
|
|
|
11049
11081
|
return size;
|
|
11050
11082
|
}
|
|
11051
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
|
|
11052
|
-
|
|
11053
|
-
/**
|
|
11054
|
-
* A convenience hook around `useState` designed to be paired with
|
|
11055
|
-
* the component [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) api.
|
|
11056
|
-
* Callback refs are useful over `useRef()` when you need to respond to the ref being set
|
|
11057
|
-
* instead of lazily accessing it in an effect.
|
|
11058
|
-
*
|
|
11059
|
-
* ```ts
|
|
11060
|
-
* const [element, attachRef] = useCallbackRef<HTMLDivElement>()
|
|
11061
|
-
*
|
|
11062
|
-
* useEffect(() => {
|
|
11063
|
-
* if (!element) return
|
|
11064
|
-
*
|
|
11065
|
-
* const calendar = new FullCalendar.Calendar(element)
|
|
11066
|
-
*
|
|
11067
|
-
* return () => {
|
|
11068
|
-
* calendar.destroy()
|
|
11069
|
-
* }
|
|
11070
|
-
* }, [element])
|
|
11071
|
-
*
|
|
11072
|
-
* return <div ref={attachRef} />
|
|
11073
|
-
* ```
|
|
11074
|
-
*
|
|
11075
|
-
* @category refs
|
|
11076
|
-
*/
|
|
11077
|
-
|
|
11078
|
-
function useCallbackRef_useCallbackRef() {
|
|
11079
|
-
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
|
|
11080
|
-
}
|
|
11081
11083
|
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/activeElement.js
|
|
11082
11084
|
|
|
11083
11085
|
/**
|
|
@@ -11104,38 +11106,6 @@ function activeElement(doc) {
|
|
|
11104
11106
|
return doc.body;
|
|
11105
11107
|
}
|
|
11106
11108
|
}
|
|
11107
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useUpdatedRef.js
|
|
11108
|
-
|
|
11109
|
-
/**
|
|
11110
|
-
* Returns a ref that is immediately updated with the new value
|
|
11111
|
-
*
|
|
11112
|
-
* @param value The Ref value
|
|
11113
|
-
* @category refs
|
|
11114
|
-
*/
|
|
11115
|
-
|
|
11116
|
-
function useUpdatedRef_useUpdatedRef(value) {
|
|
11117
|
-
var valueRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
|
|
11118
|
-
valueRef.current = value;
|
|
11119
|
-
return valueRef;
|
|
11120
|
-
}
|
|
11121
|
-
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/@restart/hooks/esm/useWillUnmount.js
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
/**
|
|
11125
|
-
* Attach a callback that fires when a component unmounts
|
|
11126
|
-
*
|
|
11127
|
-
* @param fn Handler to run when the component unmounts
|
|
11128
|
-
* @category effects
|
|
11129
|
-
*/
|
|
11130
|
-
|
|
11131
|
-
function useWillUnmount_useWillUnmount(fn) {
|
|
11132
|
-
var onUnmount = useUpdatedRef_useUpdatedRef(fn);
|
|
11133
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
11134
|
-
return function () {
|
|
11135
|
-
return onUnmount.current();
|
|
11136
|
-
};
|
|
11137
|
-
}, []);
|
|
11138
|
-
}
|
|
11139
11109
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/getScrollbarWidth.js
|
|
11140
11110
|
/**
|
|
11141
11111
|
* Get the width of the vertical window scrollbar if it's visible
|
|
@@ -11418,7 +11388,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
|
|
|
11418
11388
|
setExited(false);
|
|
11419
11389
|
}
|
|
11420
11390
|
|
|
11421
|
-
const handleShow =
|
|
11391
|
+
const handleShow = useEventCallback(() => {
|
|
11422
11392
|
modal.add();
|
|
11423
11393
|
removeKeydownListenerRef.current = esm_listen(document, 'keydown', handleDocumentKeyDown);
|
|
11424
11394
|
removeFocusListenerRef.current = esm_listen(document, 'focus', // the timeout is necessary b/c this will run before the new modal is mounted
|
|
@@ -11440,7 +11410,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
|
|
|
11440
11410
|
}
|
|
11441
11411
|
}
|
|
11442
11412
|
});
|
|
11443
|
-
const handleHide =
|
|
11413
|
+
const handleHide = useEventCallback(() => {
|
|
11444
11414
|
modal.remove();
|
|
11445
11415
|
removeKeydownListenerRef.current == null ? void 0 : removeKeydownListenerRef.current();
|
|
11446
11416
|
removeFocusListenerRef.current == null ? void 0 : removeFocusListenerRef.current();
|
|
@@ -11469,11 +11439,11 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
|
|
|
11469
11439
|
if (!exited) return;
|
|
11470
11440
|
handleHide();
|
|
11471
11441
|
}, [exited, handleHide]);
|
|
11472
|
-
|
|
11442
|
+
useWillUnmount(() => {
|
|
11473
11443
|
handleHide();
|
|
11474
11444
|
}); // --------------------------------
|
|
11475
11445
|
|
|
11476
|
-
const handleEnforceFocus =
|
|
11446
|
+
const handleEnforceFocus = useEventCallback(() => {
|
|
11477
11447
|
if (!enforceFocus || !isMounted() || !modal.isTopModal()) {
|
|
11478
11448
|
return;
|
|
11479
11449
|
}
|
|
@@ -11484,7 +11454,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
|
|
|
11484
11454
|
modal.dialog.focus();
|
|
11485
11455
|
}
|
|
11486
11456
|
});
|
|
11487
|
-
const handleBackdropClick =
|
|
11457
|
+
const handleBackdropClick = useEventCallback(e => {
|
|
11488
11458
|
if (e.target !== e.currentTarget) {
|
|
11489
11459
|
return;
|
|
11490
11460
|
}
|
|
@@ -11495,7 +11465,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
|
|
|
11495
11465
|
onHide();
|
|
11496
11466
|
}
|
|
11497
11467
|
});
|
|
11498
|
-
const handleDocumentKeyDown =
|
|
11468
|
+
const handleDocumentKeyDown = useEventCallback(e => {
|
|
11499
11469
|
if (keyboard && e.keyCode === 27 && modal.isTopModal()) {
|
|
11500
11470
|
onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);
|
|
11501
11471
|
|
|
@@ -11756,12 +11726,12 @@ const ModalDialog = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
11756
11726
|
children: children
|
|
11757
11727
|
}, void 0, false, {
|
|
11758
11728
|
fileName: ModalDialog_jsxFileName,
|
|
11759
|
-
lineNumber:
|
|
11729
|
+
lineNumber: 93,
|
|
11760
11730
|
columnNumber: 9
|
|
11761
11731
|
}, undefined)
|
|
11762
11732
|
}, void 0, false, {
|
|
11763
11733
|
fileName: ModalDialog_jsxFileName,
|
|
11764
|
-
lineNumber:
|
|
11734
|
+
lineNumber: 81,
|
|
11765
11735
|
columnNumber: 7
|
|
11766
11736
|
}, undefined);
|
|
11767
11737
|
});
|
|
@@ -12119,7 +12089,7 @@ function DialogTransition(props) {
|
|
|
12119
12089
|
timeout: null
|
|
12120
12090
|
}, void 0, false, {
|
|
12121
12091
|
fileName: Modal_jsxFileName,
|
|
12122
|
-
lineNumber:
|
|
12092
|
+
lineNumber: 236,
|
|
12123
12093
|
columnNumber: 10
|
|
12124
12094
|
}, this);
|
|
12125
12095
|
}
|
|
@@ -12129,7 +12099,7 @@ function BackdropTransition(props) {
|
|
|
12129
12099
|
timeout: null
|
|
12130
12100
|
}, void 0, false, {
|
|
12131
12101
|
fileName: Modal_jsxFileName,
|
|
12132
|
-
lineNumber:
|
|
12102
|
+
lineNumber: 240,
|
|
12133
12103
|
columnNumber: 10
|
|
12134
12104
|
}, this);
|
|
12135
12105
|
}
|
|
@@ -12174,7 +12144,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
12174
12144
|
const waitingForMouseUpRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
|
|
12175
12145
|
const ignoreBackdropClickRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
|
|
12176
12146
|
const removeStaticModalAnimationRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
12177
|
-
const [modal, setModalRef] =
|
|
12147
|
+
const [modal, setModalRef] = useCallbackRef();
|
|
12178
12148
|
const mergedRef = esm_useMergedRefs(ref, setModalRef);
|
|
12179
12149
|
const handleHide = useEventCallback(onHide);
|
|
12180
12150
|
const isRTL = useIsRTL();
|
|
@@ -12296,7 +12266,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
12296
12266
|
className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName, !animation && 'show')
|
|
12297
12267
|
}, void 0, false, {
|
|
12298
12268
|
fileName: Modal_jsxFileName,
|
|
12299
|
-
lineNumber:
|
|
12269
|
+
lineNumber: 431,
|
|
12300
12270
|
columnNumber: 11
|
|
12301
12271
|
}, undefined), [animation, backdropClassName, bsPrefix]);
|
|
12302
12272
|
const baseModalStyle = { ...style,
|
|
@@ -12322,12 +12292,12 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
12322
12292
|
children: children
|
|
12323
12293
|
}, void 0, false, {
|
|
12324
12294
|
fileName: Modal_jsxFileName,
|
|
12325
|
-
lineNumber:
|
|
12295
|
+
lineNumber: 466,
|
|
12326
12296
|
columnNumber: 11
|
|
12327
12297
|
}, undefined)
|
|
12328
12298
|
}, void 0, false, {
|
|
12329
12299
|
fileName: Modal_jsxFileName,
|
|
12330
|
-
lineNumber:
|
|
12300
|
+
lineNumber: 451,
|
|
12331
12301
|
columnNumber: 9
|
|
12332
12302
|
}, undefined);
|
|
12333
12303
|
|
|
@@ -12360,12 +12330,12 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
12360
12330
|
renderDialog: renderDialog
|
|
12361
12331
|
}, void 0, false, {
|
|
12362
12332
|
fileName: Modal_jsxFileName,
|
|
12363
|
-
lineNumber:
|
|
12333
|
+
lineNumber: 479,
|
|
12364
12334
|
columnNumber: 11
|
|
12365
12335
|
}, undefined)
|
|
12366
12336
|
}, void 0, false, {
|
|
12367
12337
|
fileName: Modal_jsxFileName,
|
|
12368
|
-
lineNumber:
|
|
12338
|
+
lineNumber: 478,
|
|
12369
12339
|
columnNumber: 9
|
|
12370
12340
|
}, undefined);
|
|
12371
12341
|
});
|
|
@@ -12501,6 +12471,11 @@ const Nav_propTypes = {
|
|
|
12501
12471
|
*/
|
|
12502
12472
|
activeKey: prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]),
|
|
12503
12473
|
|
|
12474
|
+
/**
|
|
12475
|
+
* The default active key that is selected on start.
|
|
12476
|
+
*/
|
|
12477
|
+
defaultActiveKey: prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]),
|
|
12478
|
+
|
|
12504
12479
|
/**
|
|
12505
12480
|
* Have all `NavItem`s proportionately fill all available width.
|
|
12506
12481
|
*/
|
|
@@ -12604,7 +12579,7 @@ const Nav_Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
|
|
|
12604
12579
|
...props
|
|
12605
12580
|
}, void 0, false, {
|
|
12606
12581
|
fileName: Nav_jsxFileName,
|
|
12607
|
-
lineNumber:
|
|
12582
|
+
lineNumber: 148,
|
|
12608
12583
|
columnNumber: 5
|
|
12609
12584
|
}, undefined);
|
|
12610
12585
|
});
|
|
@@ -13304,7 +13279,7 @@ const Navbar_propTypes = {
|
|
|
13304
13279
|
* The breakpoint, below which, the Navbar will collapse.
|
|
13305
13280
|
* When `true` the Navbar will always be expanded regardless of screen size.
|
|
13306
13281
|
*/
|
|
13307
|
-
expand: prop_types_default().
|
|
13282
|
+
expand: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string]).isRequired,
|
|
13308
13283
|
|
|
13309
13284
|
/**
|
|
13310
13285
|
* A convenience prop for adding `bg-*` utility classes since they are so commonly used here.
|
|
@@ -13446,17 +13421,17 @@ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
|
|
|
13446
13421
|
className: classnames_default()(className, bsPrefix, expand && expandClass, variant && `${bsPrefix}-${variant}`, bg && `bg-${bg}`, sticky && `sticky-${sticky}`, fixed && `fixed-${fixed}`)
|
|
13447
13422
|
}, void 0, false, {
|
|
13448
13423
|
fileName: Navbar_jsxFileName,
|
|
13449
|
-
lineNumber:
|
|
13424
|
+
lineNumber: 200,
|
|
13450
13425
|
columnNumber: 11
|
|
13451
13426
|
}, undefined)
|
|
13452
13427
|
}, void 0, false, {
|
|
13453
13428
|
fileName: Navbar_jsxFileName,
|
|
13454
|
-
lineNumber:
|
|
13429
|
+
lineNumber: 199,
|
|
13455
13430
|
columnNumber: 9
|
|
13456
13431
|
}, undefined)
|
|
13457
13432
|
}, void 0, false, {
|
|
13458
13433
|
fileName: Navbar_jsxFileName,
|
|
13459
|
-
lineNumber:
|
|
13434
|
+
lineNumber: 198,
|
|
13460
13435
|
columnNumber: 7
|
|
13461
13436
|
}, undefined);
|
|
13462
13437
|
});
|
|
@@ -13578,6 +13553,65 @@ NavDropdown.propTypes = NavDropdown_propTypes;
|
|
|
13578
13553
|
Divider: src_Dropdown.Divider,
|
|
13579
13554
|
Header: src_Dropdown.Header
|
|
13580
13555
|
}));
|
|
13556
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/useRootClose.js
|
|
13557
|
+
|
|
13558
|
+
|
|
13559
|
+
|
|
13560
|
+
|
|
13561
|
+
|
|
13562
|
+
const escapeKeyCode = 27;
|
|
13563
|
+
|
|
13564
|
+
const useRootClose_noop = () => {};
|
|
13565
|
+
/**
|
|
13566
|
+
* The `useRootClose` hook registers your callback on the document
|
|
13567
|
+
* when rendered. Powers the `<Overlay/>` component. This is used achieve modal
|
|
13568
|
+
* style behavior where your callback is triggered when the user tries to
|
|
13569
|
+
* interact with the rest of the document or hits the `esc` key.
|
|
13570
|
+
*
|
|
13571
|
+
* @param {Ref<HTMLElement>| HTMLElement} ref The element boundary
|
|
13572
|
+
* @param {function} onRootClose
|
|
13573
|
+
* @param {object=} options
|
|
13574
|
+
* @param {boolean=} options.disabled
|
|
13575
|
+
* @param {string=} options.clickTrigger The DOM event name (click, mousedown, etc) to attach listeners on
|
|
13576
|
+
*/
|
|
13577
|
+
|
|
13578
|
+
|
|
13579
|
+
function useRootClose(ref, onRootClose, {
|
|
13580
|
+
disabled,
|
|
13581
|
+
clickTrigger
|
|
13582
|
+
} = {}) {
|
|
13583
|
+
const onClose = onRootClose || useRootClose_noop;
|
|
13584
|
+
esm_useClickOutside(ref, onClose, {
|
|
13585
|
+
disabled,
|
|
13586
|
+
clickTrigger
|
|
13587
|
+
});
|
|
13588
|
+
const handleKeyUp = useEventCallback(e => {
|
|
13589
|
+
if (e.keyCode === escapeKeyCode) {
|
|
13590
|
+
onClose(e);
|
|
13591
|
+
}
|
|
13592
|
+
});
|
|
13593
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
13594
|
+
if (disabled || ref == null) return undefined;
|
|
13595
|
+
const doc = ownerDocument(getRefTarget(ref)); // Store the current event to avoid triggering handlers immediately
|
|
13596
|
+
// https://github.com/facebook/react/issues/20074
|
|
13597
|
+
|
|
13598
|
+
let currentEvent = (doc.defaultView || window).event;
|
|
13599
|
+
const removeKeyupListener = esm_listen(doc, 'keyup', e => {
|
|
13600
|
+
// skip if this event is the same as the one running when we added the handlers
|
|
13601
|
+
if (e === currentEvent) {
|
|
13602
|
+
currentEvent = undefined;
|
|
13603
|
+
return;
|
|
13604
|
+
}
|
|
13605
|
+
|
|
13606
|
+
handleKeyUp(e);
|
|
13607
|
+
});
|
|
13608
|
+
return () => {
|
|
13609
|
+
removeKeyupListener();
|
|
13610
|
+
};
|
|
13611
|
+
}, [ref, disabled, handleKeyUp]);
|
|
13612
|
+
}
|
|
13613
|
+
|
|
13614
|
+
/* harmony default export */ const esm_useRootClose = (useRootClose);
|
|
13581
13615
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Overlay.js
|
|
13582
13616
|
|
|
13583
13617
|
|
|
@@ -13605,7 +13639,7 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
|
|
|
13605
13639
|
} = props;
|
|
13606
13640
|
const [rootElement, attachRef] = useCallbackRef();
|
|
13607
13641
|
const [arrowElement, attachArrowRef] = useCallbackRef();
|
|
13608
|
-
const mergedRef =
|
|
13642
|
+
const mergedRef = esm_useMergedRefs(attachRef, outerRef);
|
|
13609
13643
|
const container = useWaitForDOMRef(props.container);
|
|
13610
13644
|
const target = useWaitForDOMRef(props.target);
|
|
13611
13645
|
const [exited, setExited] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(!props.show);
|
|
@@ -13966,21 +14000,22 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
|
|
|
13966
14000
|
transition: actualTransition,
|
|
13967
14001
|
children: (overlayProps, {
|
|
13968
14002
|
arrowProps,
|
|
13969
|
-
placement,
|
|
13970
14003
|
popper: popperObj,
|
|
13971
14004
|
show
|
|
13972
14005
|
}) => {
|
|
13973
14006
|
var _popperObj$state, _popperObj$state$modi;
|
|
13974
14007
|
|
|
13975
|
-
wrapRefs(overlayProps, arrowProps);
|
|
14008
|
+
wrapRefs(overlayProps, arrowProps); // Need to get placement from popper object, handling case when overlay is flipped using 'flip' prop
|
|
14009
|
+
|
|
14010
|
+
const updatedPlacement = popperObj == null ? void 0 : popperObj.placement;
|
|
13976
14011
|
const popper = Object.assign(popperRef.current, {
|
|
13977
14012
|
state: popperObj == null ? void 0 : popperObj.state,
|
|
13978
14013
|
scheduleUpdate: popperObj == null ? void 0 : popperObj.update,
|
|
13979
|
-
placement,
|
|
14014
|
+
placement: updatedPlacement,
|
|
13980
14015
|
outOfBoundaries: (popperObj == null ? void 0 : (_popperObj$state = popperObj.state) == null ? void 0 : (_popperObj$state$modi = _popperObj$state.modifiersData.hide) == null ? void 0 : _popperObj$state$modi.isReferenceHidden) || false
|
|
13981
14016
|
});
|
|
13982
14017
|
if (typeof overlay === 'function') return overlay({ ...overlayProps,
|
|
13983
|
-
placement,
|
|
14018
|
+
placement: updatedPlacement,
|
|
13984
14019
|
show,
|
|
13985
14020
|
...(!transition && show && {
|
|
13986
14021
|
className: 'show'
|
|
@@ -13989,7 +14024,7 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
|
|
|
13989
14024
|
arrowProps
|
|
13990
14025
|
});
|
|
13991
14026
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement(overlay, { ...overlayProps,
|
|
13992
|
-
placement,
|
|
14027
|
+
placement: updatedPlacement,
|
|
13993
14028
|
arrowProps,
|
|
13994
14029
|
popper,
|
|
13995
14030
|
className: classnames_default()(overlay.props.className, !transition && show && 'show'),
|
|
@@ -14805,7 +14840,6 @@ var Row_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/
|
|
|
14805
14840
|
|
|
14806
14841
|
|
|
14807
14842
|
|
|
14808
|
-
const Row_DEVICE_SIZES = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
|
|
14809
14843
|
const rowColWidth = prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]);
|
|
14810
14844
|
const rowColumns = prop_types_default().oneOfType([rowColWidth, prop_types_default().shape({
|
|
14811
14845
|
cols: rowColWidth
|
|
@@ -14873,9 +14907,10 @@ const Row = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
|
|
|
14873
14907
|
...props
|
|
14874
14908
|
}, ref) => {
|
|
14875
14909
|
const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
14910
|
+
const breakpoints = useBootstrapBreakpoints();
|
|
14876
14911
|
const sizePrefix = `${decoratedBsPrefix}-cols`;
|
|
14877
14912
|
const classes = [];
|
|
14878
|
-
|
|
14913
|
+
breakpoints.forEach(brkPoint => {
|
|
14879
14914
|
const propValue = props[brkPoint];
|
|
14880
14915
|
delete props[brkPoint];
|
|
14881
14916
|
let cols;
|
|
@@ -14897,7 +14932,7 @@ const Row = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
|
|
|
14897
14932
|
className: classnames_default()(className, decoratedBsPrefix, ...classes)
|
|
14898
14933
|
}, void 0, false, {
|
|
14899
14934
|
fileName: Row_jsxFileName,
|
|
14900
|
-
lineNumber:
|
|
14935
|
+
lineNumber: 141,
|
|
14901
14936
|
columnNumber: 7
|
|
14902
14937
|
}, undefined);
|
|
14903
14938
|
});
|
|
@@ -15142,6 +15177,7 @@ SplitButton.displayName = 'SplitButton';
|
|
|
15142
15177
|
/* harmony default export */ const src_SSRProvider = (SSRProvider);
|
|
15143
15178
|
;// CONCATENATED MODULE: ./src/createUtilityClasses.ts
|
|
15144
15179
|
|
|
15180
|
+
|
|
15145
15181
|
function responsivePropType(propType) {
|
|
15146
15182
|
return prop_types_default().oneOfType([propType, prop_types_default().shape({
|
|
15147
15183
|
xs: propType,
|
|
@@ -15152,13 +15188,12 @@ function responsivePropType(propType) {
|
|
|
15152
15188
|
xxl: propType
|
|
15153
15189
|
})]);
|
|
15154
15190
|
}
|
|
15155
|
-
|
|
15156
|
-
function createUtilityClassName(utilityValues) {
|
|
15191
|
+
function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS) {
|
|
15157
15192
|
const classes = [];
|
|
15158
15193
|
Object.entries(utilityValues).forEach(([utilName, utilValue]) => {
|
|
15159
15194
|
if (utilValue != null) {
|
|
15160
15195
|
if (typeof utilValue === 'object') {
|
|
15161
|
-
|
|
15196
|
+
breakpoints.forEach(brkPoint => {
|
|
15162
15197
|
const bpValue = utilValue[brkPoint];
|
|
15163
15198
|
|
|
15164
15199
|
if (bpValue != null) {
|
|
@@ -15207,14 +15242,16 @@ const Stack = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
15207
15242
|
...props
|
|
15208
15243
|
}, ref) => {
|
|
15209
15244
|
bsPrefix = useBootstrapPrefix(bsPrefix, direction === 'horizontal' ? 'hstack' : 'vstack');
|
|
15245
|
+
const breakpoints = useBootstrapBreakpoints();
|
|
15210
15246
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, { ...props,
|
|
15211
15247
|
ref: ref,
|
|
15212
15248
|
className: classnames_default()(className, bsPrefix, ...createUtilityClassName({
|
|
15213
|
-
gap
|
|
15249
|
+
gap,
|
|
15250
|
+
breakpoints
|
|
15214
15251
|
}))
|
|
15215
15252
|
}, void 0, false, {
|
|
15216
15253
|
fileName: Stack_jsxFileName,
|
|
15217
|
-
lineNumber:
|
|
15254
|
+
lineNumber: 52,
|
|
15218
15255
|
columnNumber: 9
|
|
15219
15256
|
}, undefined);
|
|
15220
15257
|
});
|
|
@@ -15253,7 +15290,7 @@ function NoopTransition({
|
|
|
15253
15290
|
|
|
15254
15291
|
/* harmony default export */ const esm_NoopTransition = (NoopTransition);
|
|
15255
15292
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/TabPanel.js
|
|
15256
|
-
const TabPanel_excluded = ["active", "eventKey", "mountOnEnter", "transition", "unmountOnExit"],
|
|
15293
|
+
const TabPanel_excluded = ["active", "eventKey", "mountOnEnter", "transition", "unmountOnExit", "role"],
|
|
15257
15294
|
_excluded2 = ["activeKey", "getControlledId", "getControllerId"],
|
|
15258
15295
|
_excluded3 = ["as"];
|
|
15259
15296
|
|
|
@@ -15284,12 +15321,15 @@ function useTabPanel(_ref) {
|
|
|
15284
15321
|
eventKey,
|
|
15285
15322
|
mountOnEnter,
|
|
15286
15323
|
transition,
|
|
15287
|
-
unmountOnExit
|
|
15324
|
+
unmountOnExit,
|
|
15325
|
+
role = 'tabpanel'
|
|
15288
15326
|
} = _ref,
|
|
15289
15327
|
props = TabPanel_objectWithoutPropertiesLoose(_ref, TabPanel_excluded);
|
|
15290
15328
|
|
|
15291
15329
|
const context = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(esm_TabContext);
|
|
15292
|
-
if (!context) return [props, {
|
|
15330
|
+
if (!context) return [Object.assign({}, props, {
|
|
15331
|
+
role
|
|
15332
|
+
}), {
|
|
15293
15333
|
eventKey,
|
|
15294
15334
|
isActive: active,
|
|
15295
15335
|
mountOnEnter,
|
|
@@ -15306,6 +15346,7 @@ function useTabPanel(_ref) {
|
|
|
15306
15346
|
|
|
15307
15347
|
const key = makeEventKey(eventKey);
|
|
15308
15348
|
return [Object.assign({}, props, {
|
|
15349
|
+
role,
|
|
15309
15350
|
id: getControlledId(eventKey),
|
|
15310
15351
|
'aria-labelledby': getControllerId(eventKey)
|
|
15311
15352
|
}), {
|
|
@@ -15353,7 +15394,6 @@ const TabPanel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
15353
15394
|
unmountOnExit: unmountOnExit,
|
|
15354
15395
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Component, Object.assign({}, tabPanelProps, {
|
|
15355
15396
|
ref: ref,
|
|
15356
|
-
role: "tabpanel",
|
|
15357
15397
|
hidden: !isActive,
|
|
15358
15398
|
"aria-hidden": !isActive
|
|
15359
15399
|
}))
|
|
@@ -15601,7 +15641,7 @@ const TabPane = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
|
|
|
15601
15641
|
onExited,
|
|
15602
15642
|
mountOnEnter,
|
|
15603
15643
|
unmountOnExit,
|
|
15604
|
-
transition: Transition =
|
|
15644
|
+
transition: Transition = src_Fade
|
|
15605
15645
|
}] = useTabPanel({ ...props,
|
|
15606
15646
|
transition: getTabTransitionComponent(transition)
|
|
15607
15647
|
});
|
|
@@ -15675,7 +15715,12 @@ const Tab_propTypes = {
|
|
|
15675
15715
|
/**
|
|
15676
15716
|
* Class to pass to the underlying nav link.
|
|
15677
15717
|
*/
|
|
15678
|
-
tabClassName: (prop_types_default()).string
|
|
15718
|
+
tabClassName: (prop_types_default()).string,
|
|
15719
|
+
|
|
15720
|
+
/**
|
|
15721
|
+
* Object containing attributes to pass to underlying nav link.
|
|
15722
|
+
*/
|
|
15723
|
+
tabAttrs: (prop_types_default()).object
|
|
15679
15724
|
};
|
|
15680
15725
|
|
|
15681
15726
|
const Tab = () => {
|
|
@@ -15888,6 +15933,7 @@ function renderTab(child) {
|
|
|
15888
15933
|
eventKey,
|
|
15889
15934
|
disabled,
|
|
15890
15935
|
tabClassName,
|
|
15936
|
+
tabAttrs,
|
|
15891
15937
|
id
|
|
15892
15938
|
} = child.props;
|
|
15893
15939
|
|
|
@@ -15905,6 +15951,7 @@ function renderTab(child) {
|
|
|
15905
15951
|
disabled: disabled,
|
|
15906
15952
|
id: id,
|
|
15907
15953
|
className: tabClassName,
|
|
15954
|
+
...tabAttrs,
|
|
15908
15955
|
children: title
|
|
15909
15956
|
}, void 0, false, {
|
|
15910
15957
|
fileName: Tabs_jsxFileName,
|
|
@@ -15944,7 +15991,7 @@ const Tabs_Tabs = props => {
|
|
|
15944
15991
|
children: map(children, renderTab)
|
|
15945
15992
|
}, void 0, false, {
|
|
15946
15993
|
fileName: Tabs_jsxFileName,
|
|
15947
|
-
lineNumber:
|
|
15994
|
+
lineNumber: 150,
|
|
15948
15995
|
columnNumber: 7
|
|
15949
15996
|
}, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(TabContent, {
|
|
15950
15997
|
children: map(children, child => {
|
|
@@ -15953,21 +16000,22 @@ const Tabs_Tabs = props => {
|
|
|
15953
16000
|
delete childProps.title;
|
|
15954
16001
|
delete childProps.disabled;
|
|
15955
16002
|
delete childProps.tabClassName;
|
|
16003
|
+
delete childProps.tabAttrs;
|
|
15956
16004
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_TabPane, { ...childProps
|
|
15957
16005
|
}, void 0, false, {
|
|
15958
16006
|
fileName: Tabs_jsxFileName,
|
|
15959
|
-
lineNumber:
|
|
16007
|
+
lineNumber: 163,
|
|
15960
16008
|
columnNumber: 18
|
|
15961
16009
|
}, undefined);
|
|
15962
16010
|
})
|
|
15963
16011
|
}, void 0, false, {
|
|
15964
16012
|
fileName: Tabs_jsxFileName,
|
|
15965
|
-
lineNumber:
|
|
16013
|
+
lineNumber: 154,
|
|
15966
16014
|
columnNumber: 7
|
|
15967
16015
|
}, undefined)]
|
|
15968
16016
|
}, void 0, true, {
|
|
15969
16017
|
fileName: Tabs_jsxFileName,
|
|
15970
|
-
lineNumber:
|
|
16018
|
+
lineNumber: 142,
|
|
15971
16019
|
columnNumber: 5
|
|
15972
16020
|
}, undefined);
|
|
15973
16021
|
};
|
|
@@ -16355,6 +16403,7 @@ const ToggleButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_r
|
|
|
16355
16403
|
ref: ref,
|
|
16356
16404
|
className: classnames_default()(className, disabled && 'disabled'),
|
|
16357
16405
|
type: undefined,
|
|
16406
|
+
role: undefined,
|
|
16358
16407
|
as: "label",
|
|
16359
16408
|
htmlFor: id
|
|
16360
16409
|
}, void 0, false, {
|
|
@@ -16664,6 +16713,7 @@ Tooltip.displayName = 'Tooltip';
|
|
|
16664
16713
|
|
|
16665
16714
|
|
|
16666
16715
|
|
|
16716
|
+
|
|
16667
16717
|
|
|
16668
16718
|
|
|
16669
16719
|
})();
|