@coreui/react 4.3.1 → 4.4.1
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/README.md +1 -1
- package/dist/components/Types.d.ts +6 -6
- package/dist/components/button/CButton.d.ts +4 -3
- package/dist/components/dropdown/CDropdown.d.ts +4 -6
- package/dist/components/dropdown/CDropdownItem.d.ts +1 -1
- package/dist/components/form/CFormCheck.d.ts +1 -1
- package/dist/components/form/CFormLabel.d.ts +2 -2
- package/dist/components/form/CFormRange.d.ts +1 -1
- package/dist/components/form/CFormSelect.d.ts +1 -1
- package/dist/components/form/CInputGroupText.d.ts +2 -2
- package/dist/components/form/index.d.ts +3 -1
- package/dist/components/grid/CCol.d.ts +3 -3
- package/dist/components/grid/CRow.d.ts +1 -1
- package/dist/components/header/CHeaderBrand.d.ts +2 -2
- package/dist/components/link/CLink.d.ts +2 -2
- package/dist/components/list-group/CListGroupItem.d.ts +3 -3
- package/dist/components/nav/CNavLink.d.ts +1 -1
- package/dist/components/toast/CToastClose.d.ts +4 -1
- package/dist/components/widgets/CWidgetStatsD.d.ts +1 -1
- package/dist/index.es.js +107 -70
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +404 -372
- package/dist/index.js.map +1 -1
- package/dist/utils/hooks/useForkedRef.d.ts +1 -1
- package/package.json +12 -13
- package/src/components/button/CButton.tsx +3 -3
- package/src/components/carousel/CCarousel.tsx +1 -1
- package/src/components/dropdown/CDropdown.tsx +7 -5
- package/src/components/dropdown/CDropdownMenu.tsx +8 -0
- package/src/components/dropdown/CDropdownToggle.tsx +1 -1
- package/src/components/form/CFormLabel.tsx +2 -2
- package/src/components/form/CFormRange.tsx +1 -1
- package/src/components/form/CInputGroupText.tsx +3 -2
- package/src/components/form/__tests__/CFormRange.spec.tsx +2 -2
- package/src/components/form/__tests__/CInputGroupText.spec.tsx +9 -0
- package/src/components/form/__tests__/__snapshots__/CInputGroupText.spec.tsx.snap +11 -0
- package/src/components/form/index.ts +4 -0
- package/src/components/header/CHeaderBrand.tsx +3 -2
- package/src/components/link/CLink.tsx +2 -2
- package/src/components/list-group/CListGroupItem.tsx +2 -2
- package/src/components/modal/CModal.tsx +18 -1
- package/src/components/nav/CNavGroup.tsx +4 -1
- package/src/components/sidebar/CSidebarNav.tsx +4 -1
- package/src/components/toast/CToastClose.tsx +4 -1
- package/src/components/toast/__tests__/__snapshots__/CToast.spec.tsx.snap +13 -0
package/dist/index.js
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var React = require('react');
|
|
6
4
|
var ReactDOM = require('react-dom');
|
|
7
5
|
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
function _interopNamespace(e) {
|
|
11
|
-
if (e && e.__esModule) return e;
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
12
7
|
var n = Object.create(null);
|
|
13
8
|
if (e) {
|
|
14
9
|
Object.keys(e).forEach(function (k) {
|
|
@@ -21,14 +16,12 @@ function _interopNamespace(e) {
|
|
|
21
16
|
}
|
|
22
17
|
});
|
|
23
18
|
}
|
|
24
|
-
n
|
|
19
|
+
n.default = e;
|
|
25
20
|
return Object.freeze(n);
|
|
26
21
|
}
|
|
27
22
|
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
31
|
-
var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
23
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
24
|
+
var ReactDOM__namespace = /*#__PURE__*/_interopNamespaceDefault(ReactDOM);
|
|
32
25
|
|
|
33
26
|
/******************************************************************************
|
|
34
27
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1263,9 +1256,9 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1263
1256
|
var classnames = {exports: {}};
|
|
1264
1257
|
|
|
1265
1258
|
/*!
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1259
|
+
Copyright (c) 2018 Jed Watson.
|
|
1260
|
+
Licensed under the MIT License (MIT), see
|
|
1261
|
+
http://jedwatson.github.io/classnames
|
|
1269
1262
|
*/
|
|
1270
1263
|
|
|
1271
1264
|
(function (module) {
|
|
@@ -1294,14 +1287,15 @@ var classnames = {exports: {}};
|
|
|
1294
1287
|
}
|
|
1295
1288
|
}
|
|
1296
1289
|
} else if (argType === 'object') {
|
|
1297
|
-
if (arg.toString
|
|
1298
|
-
for (var key in arg) {
|
|
1299
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
1300
|
-
classes.push(key);
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
} else {
|
|
1290
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
1304
1291
|
classes.push(arg.toString());
|
|
1292
|
+
continue;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
for (var key in arg) {
|
|
1296
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
1297
|
+
classes.push(key);
|
|
1298
|
+
}
|
|
1305
1299
|
}
|
|
1306
1300
|
}
|
|
1307
1301
|
}
|
|
@@ -1325,8 +1319,8 @@ var CAccordion = React.forwardRef(function (_a, ref) {
|
|
|
1325
1319
|
var children = _a.children, _b = _a.activeItemKey, activeItemKey = _b === void 0 ? undefined : _b, _c = _a.alwaysOpen, alwaysOpen = _c === void 0 ? false : _c, className = _a.className, flush = _a.flush, rest = __rest(_a, ["children", "activeItemKey", "alwaysOpen", "className", "flush"]);
|
|
1326
1320
|
var _d = React.useState(activeItemKey), _activeItemKey = _d[0], setActiveKey = _d[1];
|
|
1327
1321
|
var _className = classNames('accordion', { 'accordion-flush': flush }, className);
|
|
1328
|
-
return (
|
|
1329
|
-
|
|
1322
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
1323
|
+
React.createElement(CAccordionContext.Provider, { value: { _activeItemKey: _activeItemKey, alwaysOpen: alwaysOpen, setActiveKey: setActiveKey } }, children)));
|
|
1330
1324
|
});
|
|
1331
1325
|
CAccordion.propTypes = {
|
|
1332
1326
|
alwaysOpen: propTypes.exports.bool,
|
|
@@ -1350,8 +1344,8 @@ var CAccordionItem = React.forwardRef(function (_a, ref) {
|
|
|
1350
1344
|
setVisible(Boolean(_activeItemKey === _itemKey.current));
|
|
1351
1345
|
}, [_activeItemKey]);
|
|
1352
1346
|
var _className = classNames('accordion-item', className);
|
|
1353
|
-
return (
|
|
1354
|
-
|
|
1347
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
1348
|
+
React.createElement(CAccordionItemContext.Provider, { value: { setVisible: setVisible, visible: visible } }, children)));
|
|
1355
1349
|
});
|
|
1356
1350
|
CAccordionItem.propTypes = {
|
|
1357
1351
|
children: propTypes.exports.node,
|
|
@@ -1364,14 +1358,12 @@ function _extends() {
|
|
|
1364
1358
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
1365
1359
|
for (var i = 1; i < arguments.length; i++) {
|
|
1366
1360
|
var source = arguments[i];
|
|
1367
|
-
|
|
1368
1361
|
for (var key in source) {
|
|
1369
1362
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1370
1363
|
target[key] = source[key];
|
|
1371
1364
|
}
|
|
1372
1365
|
}
|
|
1373
1366
|
}
|
|
1374
|
-
|
|
1375
1367
|
return target;
|
|
1376
1368
|
};
|
|
1377
1369
|
return _extends.apply(this, arguments);
|
|
@@ -1382,13 +1374,11 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
1382
1374
|
var target = {};
|
|
1383
1375
|
var sourceKeys = Object.keys(source);
|
|
1384
1376
|
var key, i;
|
|
1385
|
-
|
|
1386
1377
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
1387
1378
|
key = sourceKeys[i];
|
|
1388
1379
|
if (excluded.indexOf(key) >= 0) continue;
|
|
1389
1380
|
target[key] = source[key];
|
|
1390
1381
|
}
|
|
1391
|
-
|
|
1392
1382
|
return target;
|
|
1393
1383
|
}
|
|
1394
1384
|
|
|
@@ -1471,7 +1461,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? propTypes.exports.
|
|
|
1471
1461
|
exitActive: propTypes.exports.string
|
|
1472
1462
|
})]) : null;
|
|
1473
1463
|
|
|
1474
|
-
var TransitionGroupContext =
|
|
1464
|
+
var TransitionGroupContext = React.createContext(null);
|
|
1475
1465
|
|
|
1476
1466
|
var forceReflow = function forceReflow(node) {
|
|
1477
1467
|
return node.scrollTop;
|
|
@@ -1697,7 +1687,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
1697
1687
|
|
|
1698
1688
|
if (nextStatus === ENTERING) {
|
|
1699
1689
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
1700
|
-
var node = this.props.nodeRef ? this.props.nodeRef.current :
|
|
1690
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749
|
|
1701
1691
|
// With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.
|
|
1702
1692
|
// To make the animation happen, we have to separate each rendering and avoid being processed as batched.
|
|
1703
1693
|
|
|
@@ -1721,7 +1711,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
1721
1711
|
var enter = this.props.enter;
|
|
1722
1712
|
var appearing = this.context ? this.context.isMounting : mounting;
|
|
1723
1713
|
|
|
1724
|
-
var _ref2 = this.props.nodeRef ? [appearing] : [
|
|
1714
|
+
var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],
|
|
1725
1715
|
maybeNode = _ref2[0],
|
|
1726
1716
|
maybeAppearing = _ref2[1];
|
|
1727
1717
|
|
|
@@ -1759,7 +1749,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
1759
1749
|
|
|
1760
1750
|
var exit = this.props.exit;
|
|
1761
1751
|
var timeouts = this.getTimeouts();
|
|
1762
|
-
var maybeNode = this.props.nodeRef ? undefined :
|
|
1752
|
+
var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED
|
|
1763
1753
|
|
|
1764
1754
|
if (!exit || config.disabled) {
|
|
1765
1755
|
this.safeSetState({
|
|
@@ -1823,7 +1813,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
1823
1813
|
|
|
1824
1814
|
_proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
|
|
1825
1815
|
this.setNextCallback(handler);
|
|
1826
|
-
var node = this.props.nodeRef ? this.props.nodeRef.current :
|
|
1816
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
|
|
1827
1817
|
var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
|
|
1828
1818
|
|
|
1829
1819
|
if (!node || doesNotHaveTimeoutOrListener) {
|
|
@@ -1873,14 +1863,14 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
1873
1863
|
return (
|
|
1874
1864
|
/*#__PURE__*/
|
|
1875
1865
|
// allows for nested Transitions
|
|
1876
|
-
|
|
1866
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
1877
1867
|
value: null
|
|
1878
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
1868
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
1879
1869
|
);
|
|
1880
1870
|
};
|
|
1881
1871
|
|
|
1882
1872
|
return Transition;
|
|
1883
|
-
}(
|
|
1873
|
+
}(React.Component);
|
|
1884
1874
|
|
|
1885
1875
|
Transition.contextType = TransitionGroupContext;
|
|
1886
1876
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -2347,7 +2337,7 @@ var CSSTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
2347
2337
|
_this$props.classNames;
|
|
2348
2338
|
var props = _objectWithoutPropertiesLoose(_this$props, ["classNames"]);
|
|
2349
2339
|
|
|
2350
|
-
return /*#__PURE__*/
|
|
2340
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({}, props, {
|
|
2351
2341
|
onEnter: this.onEnter,
|
|
2352
2342
|
onEntered: this.onEntered,
|
|
2353
2343
|
onEntering: this.onEntering,
|
|
@@ -2358,7 +2348,7 @@ var CSSTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
2358
2348
|
};
|
|
2359
2349
|
|
|
2360
2350
|
return CSSTransition;
|
|
2361
|
-
}(
|
|
2351
|
+
}(React.Component);
|
|
2362
2352
|
|
|
2363
2353
|
CSSTransition.defaultProps = {
|
|
2364
2354
|
classNames: ''
|
|
@@ -2498,7 +2488,6 @@ function _assertThisInitialized(self) {
|
|
|
2498
2488
|
if (self === void 0) {
|
|
2499
2489
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2500
2490
|
}
|
|
2501
|
-
|
|
2502
2491
|
return self;
|
|
2503
2492
|
}
|
|
2504
2493
|
|
|
@@ -2749,18 +2738,18 @@ var TransitionGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
2749
2738
|
delete props.exit;
|
|
2750
2739
|
|
|
2751
2740
|
if (Component === null) {
|
|
2752
|
-
return /*#__PURE__*/
|
|
2741
|
+
return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {
|
|
2753
2742
|
value: contextValue
|
|
2754
2743
|
}, children);
|
|
2755
2744
|
}
|
|
2756
2745
|
|
|
2757
|
-
return /*#__PURE__*/
|
|
2746
|
+
return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {
|
|
2758
2747
|
value: contextValue
|
|
2759
|
-
}, /*#__PURE__*/
|
|
2748
|
+
}, /*#__PURE__*/React.createElement(Component, props, children));
|
|
2760
2749
|
};
|
|
2761
2750
|
|
|
2762
2751
|
return TransitionGroup;
|
|
2763
|
-
}(
|
|
2752
|
+
}(React.Component);
|
|
2764
2753
|
|
|
2765
2754
|
TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
2766
2755
|
/**
|
|
@@ -2903,11 +2892,11 @@ var ReplaceTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
2903
2892
|
var _child$props;
|
|
2904
2893
|
|
|
2905
2894
|
var children = this.props.children;
|
|
2906
|
-
var child =
|
|
2895
|
+
var child = React.Children.toArray(children)[idx];
|
|
2907
2896
|
if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);
|
|
2908
2897
|
|
|
2909
2898
|
if (this.props[handler]) {
|
|
2910
|
-
var maybeNode = child.props.nodeRef ? undefined :
|
|
2899
|
+
var maybeNode = child.props.nodeRef ? undefined : ReactDOM.findDOMNode(this);
|
|
2911
2900
|
this.props[handler](maybeNode);
|
|
2912
2901
|
}
|
|
2913
2902
|
};
|
|
@@ -2918,7 +2907,7 @@ var ReplaceTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
2918
2907
|
inProp = _this$props.in,
|
|
2919
2908
|
props = _objectWithoutPropertiesLoose(_this$props, ["children", "in"]);
|
|
2920
2909
|
|
|
2921
|
-
var _React$Children$toArr =
|
|
2910
|
+
var _React$Children$toArr = React.Children.toArray(children),
|
|
2922
2911
|
first = _React$Children$toArr[0],
|
|
2923
2912
|
second = _React$Children$toArr[1];
|
|
2924
2913
|
|
|
@@ -2928,12 +2917,12 @@ var ReplaceTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
2928
2917
|
delete props.onExit;
|
|
2929
2918
|
delete props.onExiting;
|
|
2930
2919
|
delete props.onExited;
|
|
2931
|
-
return /*#__PURE__*/
|
|
2920
|
+
return /*#__PURE__*/React.createElement(TransitionGroup, props, inProp ? React.cloneElement(first, {
|
|
2932
2921
|
key: 'first',
|
|
2933
2922
|
onEnter: this.handleEnter,
|
|
2934
2923
|
onEntering: this.handleEntering,
|
|
2935
2924
|
onEntered: this.handleEntered
|
|
2936
|
-
}) :
|
|
2925
|
+
}) : React.cloneElement(second, {
|
|
2937
2926
|
key: 'second',
|
|
2938
2927
|
onEnter: this.handleExit,
|
|
2939
2928
|
onEntering: this.handleExiting,
|
|
@@ -2942,12 +2931,12 @@ var ReplaceTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
2942
2931
|
};
|
|
2943
2932
|
|
|
2944
2933
|
return ReplaceTransition;
|
|
2945
|
-
}(
|
|
2934
|
+
}(React.Component);
|
|
2946
2935
|
|
|
2947
2936
|
ReplaceTransition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
2948
2937
|
in: propTypes.exports.bool.isRequired,
|
|
2949
2938
|
children: function children(props, propName) {
|
|
2950
|
-
if (
|
|
2939
|
+
if (React.Children.count(props[propName]) !== 2) return new Error("\"" + propName + "\" must be exactly two transition components.");
|
|
2951
2940
|
return null;
|
|
2952
2941
|
}
|
|
2953
2942
|
} : {};
|
|
@@ -2957,7 +2946,7 @@ var _leaveRenders, _enterRenders;
|
|
|
2957
2946
|
function areChildrenDifferent(oldChildren, newChildren) {
|
|
2958
2947
|
if (oldChildren === newChildren) return false;
|
|
2959
2948
|
|
|
2960
|
-
if (
|
|
2949
|
+
if (React.isValidElement(oldChildren) && React.isValidElement(newChildren) && oldChildren.key != null && oldChildren.key === newChildren.key) {
|
|
2961
2950
|
return false;
|
|
2962
2951
|
}
|
|
2963
2952
|
|
|
@@ -2986,7 +2975,7 @@ var callHook = function callHook(element, name, cb) {
|
|
|
2986
2975
|
var leaveRenders = (_leaveRenders = {}, _leaveRenders[modes.out] = function (_ref) {
|
|
2987
2976
|
var current = _ref.current,
|
|
2988
2977
|
changeState = _ref.changeState;
|
|
2989
|
-
return
|
|
2978
|
+
return React.cloneElement(current, {
|
|
2990
2979
|
in: false,
|
|
2991
2980
|
onExited: callHook(current, 'onExited', function () {
|
|
2992
2981
|
changeState(ENTERING, null);
|
|
@@ -2996,7 +2985,7 @@ var leaveRenders = (_leaveRenders = {}, _leaveRenders[modes.out] = function (_re
|
|
|
2996
2985
|
var current = _ref2.current,
|
|
2997
2986
|
changeState = _ref2.changeState,
|
|
2998
2987
|
children = _ref2.children;
|
|
2999
|
-
return [current,
|
|
2988
|
+
return [current, React.cloneElement(children, {
|
|
3000
2989
|
in: true,
|
|
3001
2990
|
onEntered: callHook(children, 'onEntered', function () {
|
|
3002
2991
|
changeState(ENTERING);
|
|
@@ -3006,10 +2995,10 @@ var leaveRenders = (_leaveRenders = {}, _leaveRenders[modes.out] = function (_re
|
|
|
3006
2995
|
var enterRenders = (_enterRenders = {}, _enterRenders[modes.out] = function (_ref3) {
|
|
3007
2996
|
var children = _ref3.children,
|
|
3008
2997
|
changeState = _ref3.changeState;
|
|
3009
|
-
return
|
|
2998
|
+
return React.cloneElement(children, {
|
|
3010
2999
|
in: true,
|
|
3011
3000
|
onEntered: callHook(children, 'onEntered', function () {
|
|
3012
|
-
changeState(ENTERED,
|
|
3001
|
+
changeState(ENTERED, React.cloneElement(children, {
|
|
3013
3002
|
in: true
|
|
3014
3003
|
}));
|
|
3015
3004
|
})
|
|
@@ -3018,14 +3007,14 @@ var enterRenders = (_enterRenders = {}, _enterRenders[modes.out] = function (_re
|
|
|
3018
3007
|
var current = _ref4.current,
|
|
3019
3008
|
children = _ref4.children,
|
|
3020
3009
|
changeState = _ref4.changeState;
|
|
3021
|
-
return [
|
|
3010
|
+
return [React.cloneElement(current, {
|
|
3022
3011
|
in: false,
|
|
3023
3012
|
onExited: callHook(current, 'onExited', function () {
|
|
3024
|
-
changeState(ENTERED,
|
|
3013
|
+
changeState(ENTERED, React.cloneElement(children, {
|
|
3025
3014
|
in: true
|
|
3026
3015
|
}));
|
|
3027
3016
|
})
|
|
3028
|
-
}),
|
|
3017
|
+
}), React.cloneElement(children, {
|
|
3029
3018
|
in: true
|
|
3030
3019
|
})];
|
|
3031
3020
|
}, _enterRenders);
|
|
@@ -3139,7 +3128,7 @@ var SwitchTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
3139
3128
|
}
|
|
3140
3129
|
|
|
3141
3130
|
return {
|
|
3142
|
-
current:
|
|
3131
|
+
current: React.cloneElement(props.children, {
|
|
3143
3132
|
in: true
|
|
3144
3133
|
})
|
|
3145
3134
|
};
|
|
@@ -3173,7 +3162,7 @@ var SwitchTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
3173
3162
|
component = current;
|
|
3174
3163
|
}
|
|
3175
3164
|
|
|
3176
|
-
return /*#__PURE__*/
|
|
3165
|
+
return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {
|
|
3177
3166
|
value: {
|
|
3178
3167
|
isMounting: !this.appeared
|
|
3179
3168
|
}
|
|
@@ -3181,7 +3170,7 @@ var SwitchTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
3181
3170
|
};
|
|
3182
3171
|
|
|
3183
3172
|
return SwitchTransition;
|
|
3184
|
-
}(
|
|
3173
|
+
}(React.Component);
|
|
3185
3174
|
|
|
3186
3175
|
SwitchTransition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
3187
3176
|
/**
|
|
@@ -3299,11 +3288,11 @@ var CCollapse = React.forwardRef(function (_a, ref) {
|
|
|
3299
3288
|
var _className = classNames({
|
|
3300
3289
|
'collapse-horizontal': horizontal,
|
|
3301
3290
|
}, className);
|
|
3302
|
-
return (
|
|
3291
|
+
return (React.createElement(CSSTransition, { in: visible, nodeRef: collapseRef, onEntering: onEntering, onEntered: onEntered, onExit: onExit, onExiting: onExiting, onExited: onExited, timeout: 350 }, function (state) {
|
|
3303
3292
|
var transitionClass = getTransitionClass(state);
|
|
3304
3293
|
var currentHeight = height === 0 ? null : { height: height };
|
|
3305
3294
|
var currentWidth = width === 0 ? null : { width: width };
|
|
3306
|
-
return (
|
|
3295
|
+
return (React.createElement("div", __assign({ className: classNames(_className, transitionClass), style: __assign(__assign({}, currentHeight), currentWidth) }, rest, { ref: forkedRef }), children));
|
|
3307
3296
|
}));
|
|
3308
3297
|
});
|
|
3309
3298
|
CCollapse.propTypes = {
|
|
@@ -3320,8 +3309,8 @@ var CAccordionBody = React.forwardRef(function (_a, ref) {
|
|
|
3320
3309
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3321
3310
|
var visible = React.useContext(CAccordionItemContext).visible;
|
|
3322
3311
|
var _className = classNames('accordion-body', className);
|
|
3323
|
-
return (
|
|
3324
|
-
|
|
3312
|
+
return (React.createElement(CCollapse, { className: "accordion-collpase", visible: visible },
|
|
3313
|
+
React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children)));
|
|
3325
3314
|
});
|
|
3326
3315
|
CAccordionBody.propTypes = {
|
|
3327
3316
|
children: propTypes.exports.node,
|
|
@@ -3333,7 +3322,7 @@ var CAccordionButton = React.forwardRef(function (_a, ref) {
|
|
|
3333
3322
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3334
3323
|
var _b = React.useContext(CAccordionItemContext), visible = _b.visible, setVisible = _b.setVisible;
|
|
3335
3324
|
var _className = classNames('accordion-button', { collapsed: !visible }, className);
|
|
3336
|
-
return (
|
|
3325
|
+
return (React.createElement("button", __assign({ type: "button", className: _className, "aria-expanded": !visible, onClick: function () { return setVisible(!visible); } }, rest, { ref: ref }), children));
|
|
3337
3326
|
});
|
|
3338
3327
|
CAccordionButton.propTypes = {
|
|
3339
3328
|
children: propTypes.exports.node,
|
|
@@ -3343,7 +3332,7 @@ CAccordionButton.displayName = 'CAccordionButton';
|
|
|
3343
3332
|
|
|
3344
3333
|
var CAccordionCollapse = React.forwardRef(function (_a, ref) {
|
|
3345
3334
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
3346
|
-
return (
|
|
3335
|
+
return (React.createElement(CCollapse, __assign({ className: "accordion-collapse" }, props, { ref: ref }), children));
|
|
3347
3336
|
});
|
|
3348
3337
|
CAccordionCollapse.propTypes = {
|
|
3349
3338
|
children: propTypes.exports.node,
|
|
@@ -3353,8 +3342,8 @@ CAccordionCollapse.displayName = 'CAccordionCollapse';
|
|
|
3353
3342
|
var CAccordionHeader = React.forwardRef(function (_a, ref) {
|
|
3354
3343
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3355
3344
|
var _className = classNames('accordion-header', className);
|
|
3356
|
-
return (
|
|
3357
|
-
|
|
3345
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
3346
|
+
React.createElement(CAccordionButton, null, children)));
|
|
3358
3347
|
});
|
|
3359
3348
|
CAccordionHeader.propTypes = {
|
|
3360
3349
|
children: propTypes.exports.node,
|
|
@@ -3420,7 +3409,7 @@ var CCloseButton = React.forwardRef(function (_a, ref) {
|
|
|
3420
3409
|
var _className = classNames('btn', 'btn-close', {
|
|
3421
3410
|
'btn-close-white': white,
|
|
3422
3411
|
}, disabled, className);
|
|
3423
|
-
return (
|
|
3412
|
+
return (React.createElement("button", __assign({ type: "button", className: _className, "aria-label": "Close", disabled: disabled }, rest, { ref: ref })));
|
|
3424
3413
|
});
|
|
3425
3414
|
CCloseButton.propTypes = {
|
|
3426
3415
|
className: propTypes.exports.string,
|
|
@@ -3443,11 +3432,11 @@ var CAlert = React.forwardRef(function (_a, ref) {
|
|
|
3443
3432
|
var getTransitionClass = function (state) {
|
|
3444
3433
|
return state === 'entered' && 'show';
|
|
3445
3434
|
};
|
|
3446
|
-
return (
|
|
3435
|
+
return (React.createElement(Transition, { in: _visible, mountOnEnter: true, nodeRef: alertRef, onExit: onClose, timeout: 150, unmountOnExit: true }, function (state) {
|
|
3447
3436
|
var transitionClass = getTransitionClass(state);
|
|
3448
|
-
return (
|
|
3437
|
+
return (React.createElement("div", __assign({ className: classNames(_className, transitionClass), role: "alert" }, rest, { ref: forkedRef }),
|
|
3449
3438
|
children,
|
|
3450
|
-
dismissible &&
|
|
3439
|
+
dismissible && React.createElement(CCloseButton, { onClick: function () { return setVisible(false); } })));
|
|
3451
3440
|
}));
|
|
3452
3441
|
});
|
|
3453
3442
|
CAlert.propTypes = {
|
|
@@ -3464,7 +3453,7 @@ CAlert.displayName = 'CAlert';
|
|
|
3464
3453
|
var CAlertHeading = React.forwardRef(function (_a, ref) {
|
|
3465
3454
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'h4' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
3466
3455
|
var _className = classNames('alert-heading', className);
|
|
3467
|
-
return (
|
|
3456
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3468
3457
|
});
|
|
3469
3458
|
CAlertHeading.propTypes = {
|
|
3470
3459
|
children: propTypes.exports.node,
|
|
@@ -3477,7 +3466,7 @@ var CLink = React.forwardRef(function (_a, ref) {
|
|
|
3477
3466
|
var children = _a.children, active = _a.active, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'a' : _b, disabled = _a.disabled, rest = __rest(_a, ["children", "active", "className", "component", "disabled"]);
|
|
3478
3467
|
// TODO: remove duplicated classes ex. `active active` in `<CListGroupItem>`
|
|
3479
3468
|
var _className = classNames(className, { active: active, disabled: disabled });
|
|
3480
|
-
return (
|
|
3469
|
+
return (React.createElement(Component, __assign({ className: _className }, (active && { 'aria-current': 'page' }), (Component === 'a' && disabled && { 'aria-disabled': true, tabIndex: -1 }), ((Component === 'a' || Component === 'button') && {
|
|
3481
3470
|
onClick: function (event) {
|
|
3482
3471
|
event.preventDefault;
|
|
3483
3472
|
!disabled && rest.onClick && rest.onClick(event);
|
|
@@ -3496,7 +3485,7 @@ CLink.displayName = 'CLink';
|
|
|
3496
3485
|
var CAlertLink = React.forwardRef(function (_a, ref) {
|
|
3497
3486
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3498
3487
|
var _className = classNames('alert-link', className);
|
|
3499
|
-
return (
|
|
3488
|
+
return (React.createElement(CLink, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3500
3489
|
});
|
|
3501
3490
|
CAlertLink.propTypes = {
|
|
3502
3491
|
children: propTypes.exports.node,
|
|
@@ -3513,9 +3502,9 @@ var CAvatar = React.forwardRef(function (_a, ref) {
|
|
|
3513
3502
|
_b["text-".concat(textColor)] = textColor,
|
|
3514
3503
|
_b), shape, className);
|
|
3515
3504
|
var statusClassName = status && classNames('avatar-status', "bg-".concat(status));
|
|
3516
|
-
return (
|
|
3517
|
-
src ?
|
|
3518
|
-
status &&
|
|
3505
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
3506
|
+
src ? React.createElement("img", { src: src, className: "avatar-img" }) : children,
|
|
3507
|
+
status && React.createElement("span", { className: statusClassName })));
|
|
3519
3508
|
});
|
|
3520
3509
|
CAvatar.propTypes = {
|
|
3521
3510
|
children: propTypes.exports.node,
|
|
@@ -3537,9 +3526,9 @@ var CBackdrop = React.forwardRef(function (_a, ref) {
|
|
|
3537
3526
|
var getTransitionClass = function (state) {
|
|
3538
3527
|
return state === 'entered' && 'show';
|
|
3539
3528
|
};
|
|
3540
|
-
return (
|
|
3529
|
+
return (React.createElement(Transition, { in: visible, mountOnEnter: true, nodeRef: backdropRef, timeout: 150, unmountOnExit: true }, function (state) {
|
|
3541
3530
|
var transitionClass = getTransitionClass(state);
|
|
3542
|
-
return (
|
|
3531
|
+
return (React.createElement("div", __assign({ className: classNames(_className, transitionClass) }, rest, { ref: forkedRef })));
|
|
3543
3532
|
}));
|
|
3544
3533
|
});
|
|
3545
3534
|
CBackdrop.propTypes = {
|
|
@@ -3561,7 +3550,7 @@ var CBadge = React.forwardRef(function (_a, ref) {
|
|
|
3561
3550
|
_b["badge-".concat(size)] = size,
|
|
3562
3551
|
_b["text-".concat(textColor)] = textColor,
|
|
3563
3552
|
_b), shape, className);
|
|
3564
|
-
return (
|
|
3553
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3565
3554
|
});
|
|
3566
3555
|
CBadge.propTypes = {
|
|
3567
3556
|
children: propTypes.exports.node,
|
|
@@ -3578,8 +3567,8 @@ CBadge.displayName = 'CBadge';
|
|
|
3578
3567
|
var CBreadcrumb = React.forwardRef(function (_a, ref) {
|
|
3579
3568
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3580
3569
|
var _className = classNames('breadcrumb', className);
|
|
3581
|
-
return (
|
|
3582
|
-
|
|
3570
|
+
return (React.createElement("nav", { "aria-label": "breadcrumb" },
|
|
3571
|
+
React.createElement("ol", __assign({ className: _className }, rest, { ref: ref }), children)));
|
|
3583
3572
|
});
|
|
3584
3573
|
CBreadcrumb.propTypes = {
|
|
3585
3574
|
children: propTypes.exports.node,
|
|
@@ -3592,7 +3581,7 @@ var CBreadcrumbItem = React.forwardRef(function (_a, ref) {
|
|
|
3592
3581
|
var _className = classNames('breadcrumb-item', {
|
|
3593
3582
|
active: active,
|
|
3594
3583
|
}, className);
|
|
3595
|
-
return (
|
|
3584
|
+
return (React.createElement("li", __assign({ className: _className }, (active && { 'aria-current': 'page' }), rest, { ref: ref }), href ? React.createElement(CLink, { href: href }, children) : children));
|
|
3596
3585
|
});
|
|
3597
3586
|
CBreadcrumbItem.propTypes = {
|
|
3598
3587
|
active: propTypes.exports.bool,
|
|
@@ -3606,7 +3595,7 @@ var CButton = React.forwardRef(function (_a, ref) {
|
|
|
3606
3595
|
var _b;
|
|
3607
3596
|
var children = _a.children, className = _a.className, _c = _a.color, color = _c === void 0 ? 'primary' : _c, _d = _a.component, component = _d === void 0 ? 'button' : _d, shape = _a.shape, size = _a.size, _e = _a.type, type = _e === void 0 ? 'button' : _e, variant = _a.variant, rest = __rest(_a, ["children", "className", "color", "component", "shape", "size", "type", "variant"]);
|
|
3608
3597
|
var _className = classNames('btn', variant ? "btn-".concat(variant, "-").concat(color) : "btn-".concat(color), (_b = {}, _b["btn-".concat(size)] = size, _b), shape, className);
|
|
3609
|
-
return (
|
|
3598
|
+
return (React.createElement(CLink, __assign({ component: rest.href ? 'a' : component, type: type, className: _className }, rest, { ref: ref }), children));
|
|
3610
3599
|
});
|
|
3611
3600
|
CButton.propTypes = {
|
|
3612
3601
|
children: propTypes.exports.node,
|
|
@@ -3623,7 +3612,7 @@ CButton.displayName = 'CButton';
|
|
|
3623
3612
|
var CButtonToolbar = React.forwardRef(function (_a, ref) {
|
|
3624
3613
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3625
3614
|
var _className = classNames('btn-toolbar', className);
|
|
3626
|
-
return (
|
|
3615
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3627
3616
|
});
|
|
3628
3617
|
CButtonToolbar.propTypes = {
|
|
3629
3618
|
children: propTypes.exports.node,
|
|
@@ -3635,7 +3624,7 @@ var CButtonGroup = React.forwardRef(function (_a, ref) {
|
|
|
3635
3624
|
var _b;
|
|
3636
3625
|
var children = _a.children, className = _a.className, size = _a.size, vertical = _a.vertical, rest = __rest(_a, ["children", "className", "size", "vertical"]);
|
|
3637
3626
|
var _className = classNames(vertical ? 'btn-group-vertical' : 'btn-group', (_b = {}, _b["btn-group-".concat(size)] = size, _b), className);
|
|
3638
|
-
return (
|
|
3627
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3639
3628
|
});
|
|
3640
3629
|
CButtonGroup.propTypes = {
|
|
3641
3630
|
children: propTypes.exports.node,
|
|
@@ -3651,7 +3640,7 @@ var CCallout = React.forwardRef(function (_a, ref) {
|
|
|
3651
3640
|
var _className = classNames('callout', (_b = {},
|
|
3652
3641
|
_b["callout-".concat(color)] = color,
|
|
3653
3642
|
_b), className);
|
|
3654
|
-
return (
|
|
3643
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3655
3644
|
});
|
|
3656
3645
|
CCallout.propTypes = {
|
|
3657
3646
|
children: propTypes.exports.node,
|
|
@@ -3667,7 +3656,7 @@ var CCard = React.forwardRef(function (_a, ref) {
|
|
|
3667
3656
|
_b["bg-".concat(color)] = color,
|
|
3668
3657
|
_b["text-".concat(textColor)] = textColor,
|
|
3669
3658
|
_b), className);
|
|
3670
|
-
return (
|
|
3659
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3671
3660
|
});
|
|
3672
3661
|
CCard.propTypes = {
|
|
3673
3662
|
children: propTypes.exports.node,
|
|
@@ -3680,7 +3669,7 @@ CCard.displayName = 'CCard';
|
|
|
3680
3669
|
var CCardBody = React.forwardRef(function (_a, ref) {
|
|
3681
3670
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3682
3671
|
var _className = classNames('card-body', className);
|
|
3683
|
-
return (
|
|
3672
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3684
3673
|
});
|
|
3685
3674
|
CCardBody.propTypes = {
|
|
3686
3675
|
children: propTypes.exports.node,
|
|
@@ -3691,7 +3680,7 @@ CCardBody.displayName = 'CCardBody';
|
|
|
3691
3680
|
var CCardFooter = React.forwardRef(function (_a, ref) {
|
|
3692
3681
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3693
3682
|
var _className = classNames('card-footer', className);
|
|
3694
|
-
return (
|
|
3683
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3695
3684
|
});
|
|
3696
3685
|
CCardFooter.propTypes = {
|
|
3697
3686
|
children: propTypes.exports.node,
|
|
@@ -3702,7 +3691,7 @@ CCardFooter.displayName = 'CCardFooter';
|
|
|
3702
3691
|
var CCardGroup = React.forwardRef(function (_a, ref) {
|
|
3703
3692
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3704
3693
|
var _className = classNames('card-group', className);
|
|
3705
|
-
return (
|
|
3694
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3706
3695
|
});
|
|
3707
3696
|
CCardGroup.propTypes = {
|
|
3708
3697
|
children: propTypes.exports.node,
|
|
@@ -3713,7 +3702,7 @@ CCardGroup.displayName = 'CCardGroup';
|
|
|
3713
3702
|
var CCardHeader = React.forwardRef(function (_a, ref) {
|
|
3714
3703
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'div' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
3715
3704
|
var _className = classNames('card-header', className);
|
|
3716
|
-
return (
|
|
3705
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3717
3706
|
});
|
|
3718
3707
|
CCardHeader.propTypes = {
|
|
3719
3708
|
children: propTypes.exports.node,
|
|
@@ -3725,7 +3714,7 @@ CCardHeader.displayName = 'CCardHeader';
|
|
|
3725
3714
|
var CCardImage = React.forwardRef(function (_a, ref) {
|
|
3726
3715
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'img' : _b, orientation = _a.orientation, rest = __rest(_a, ["children", "className", "component", "orientation"]);
|
|
3727
3716
|
var _className = classNames(orientation ? "card-img-".concat(orientation) : 'card-img', className);
|
|
3728
|
-
return (
|
|
3717
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3729
3718
|
});
|
|
3730
3719
|
CCardImage.propTypes = {
|
|
3731
3720
|
children: propTypes.exports.node,
|
|
@@ -3738,7 +3727,7 @@ CCardImage.displayName = 'CCardImage';
|
|
|
3738
3727
|
var CCardImageOverlay = React.forwardRef(function (_a, ref) {
|
|
3739
3728
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3740
3729
|
var _className = classNames('card-img-overlay', className);
|
|
3741
|
-
return (
|
|
3730
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3742
3731
|
});
|
|
3743
3732
|
CCardImageOverlay.propTypes = {
|
|
3744
3733
|
children: propTypes.exports.node,
|
|
@@ -3749,7 +3738,7 @@ CCardImageOverlay.displayName = 'CCardImageOverlay';
|
|
|
3749
3738
|
var CCardLink = React.forwardRef(function (_a, ref) {
|
|
3750
3739
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3751
3740
|
var _className = classNames('card-link', className);
|
|
3752
|
-
return (
|
|
3741
|
+
return (React.createElement(CLink, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3753
3742
|
});
|
|
3754
3743
|
CCardLink.propTypes = {
|
|
3755
3744
|
children: propTypes.exports.node,
|
|
@@ -3760,7 +3749,7 @@ CCardLink.displayName = 'CCardLink';
|
|
|
3760
3749
|
var CCardSubtitle = React.forwardRef(function (_a, ref) {
|
|
3761
3750
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'h6' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
3762
3751
|
var _className = classNames('card-subtitle', className);
|
|
3763
|
-
return (
|
|
3752
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3764
3753
|
});
|
|
3765
3754
|
CCardSubtitle.propTypes = {
|
|
3766
3755
|
children: propTypes.exports.node,
|
|
@@ -3772,7 +3761,7 @@ CCardSubtitle.displayName = 'CCardSubtitle';
|
|
|
3772
3761
|
var CCardText = React.forwardRef(function (_a, ref) {
|
|
3773
3762
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'p' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
3774
3763
|
var _className = classNames('card-text', className);
|
|
3775
|
-
return (
|
|
3764
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3776
3765
|
});
|
|
3777
3766
|
CCardText.propTypes = {
|
|
3778
3767
|
children: propTypes.exports.node,
|
|
@@ -3784,7 +3773,7 @@ CCardText.displayName = 'CCardText';
|
|
|
3784
3773
|
var CCardTitle = React.forwardRef(function (_a, ref) {
|
|
3785
3774
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'h5' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
3786
3775
|
var _className = classNames('card-title', className);
|
|
3787
|
-
return (
|
|
3776
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3788
3777
|
});
|
|
3789
3778
|
CCardTitle.propTypes = {
|
|
3790
3779
|
children: propTypes.exports.node,
|
|
@@ -3884,19 +3873,19 @@ var CCarousel = React.forwardRef(function (_a, ref) {
|
|
|
3884
3873
|
setVisible(false);
|
|
3885
3874
|
}
|
|
3886
3875
|
};
|
|
3887
|
-
return (
|
|
3888
|
-
|
|
3876
|
+
return (React.createElement("div", __assign({ className: _className, onMouseEnter: _pause, onMouseLeave: cycle }, rest, { ref: forkedRef }),
|
|
3877
|
+
React.createElement(CCarouselContext.Provider, { value: {
|
|
3889
3878
|
setAnimating: setAnimating,
|
|
3890
3879
|
setCustomInterval: setCustomInterval,
|
|
3891
3880
|
} },
|
|
3892
|
-
indicators && (
|
|
3893
|
-
return (
|
|
3881
|
+
indicators && (React.createElement("ol", { className: "carousel-indicators" }, Array.from({ length: itemsNumber }, function (_, i) { return i; }).map(function (index) {
|
|
3882
|
+
return (React.createElement("li", { key: "indicator".concat(index), onClick: function () {
|
|
3894
3883
|
!animating && handleIndicatorClick(index);
|
|
3895
3884
|
}, className: active === index ? 'active' : '', "data-coreui-target": "" }));
|
|
3896
3885
|
}))),
|
|
3897
|
-
|
|
3898
|
-
if (
|
|
3899
|
-
return
|
|
3886
|
+
React.createElement("div", { className: "carousel-inner" }, React.Children.map(children, function (child, index) {
|
|
3887
|
+
if (React.isValidElement(child)) {
|
|
3888
|
+
return React.cloneElement(child, {
|
|
3900
3889
|
active: active === index ? true : false,
|
|
3901
3890
|
direction: direction,
|
|
3902
3891
|
key: index,
|
|
@@ -3904,11 +3893,11 @@ var CCarousel = React.forwardRef(function (_a, ref) {
|
|
|
3904
3893
|
}
|
|
3905
3894
|
return;
|
|
3906
3895
|
})),
|
|
3907
|
-
controls && (
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3896
|
+
controls && (React.createElement(React.Fragment, null,
|
|
3897
|
+
React.createElement("button", { className: "carousel-control-prev", onClick: function () { return handleControlClick('prev'); } },
|
|
3898
|
+
React.createElement("span", { className: "carousel-control-prev-icon", "aria-label": "prev" })),
|
|
3899
|
+
React.createElement("button", { className: "carousel-control-next", onClick: function () { return handleControlClick('next'); } },
|
|
3900
|
+
React.createElement("span", { className: "carousel-control-next-icon", "aria-label": "next" })))))));
|
|
3912
3901
|
});
|
|
3913
3902
|
CCarousel.propTypes = {
|
|
3914
3903
|
activeIndex: propTypes.exports.number,
|
|
@@ -3929,7 +3918,7 @@ CCarousel.displayName = 'CCarousel';
|
|
|
3929
3918
|
var CCarouselCaption = React.forwardRef(function (_a, ref) {
|
|
3930
3919
|
var className = _a.className, rest = __rest(_a, ["className"]);
|
|
3931
3920
|
var _className = classNames('carousel-caption', className);
|
|
3932
|
-
return
|
|
3921
|
+
return React.createElement("div", __assign({ className: _className }, rest, { ref: ref }));
|
|
3933
3922
|
});
|
|
3934
3923
|
CCarouselCaption.propTypes = {
|
|
3935
3924
|
className: propTypes.exports.string,
|
|
@@ -4005,7 +3994,7 @@ var CCarouselItem = React.forwardRef(function (_a, ref) {
|
|
|
4005
3994
|
};
|
|
4006
3995
|
});
|
|
4007
3996
|
var _className = classNames('carousel-item', activeClassName, directionClassName, orderClassName, className);
|
|
4008
|
-
return (
|
|
3997
|
+
return (React.createElement("div", __assign({ className: _className, ref: forkedRef }, rest), children));
|
|
4009
3998
|
});
|
|
4010
3999
|
CCarouselItem.propTypes = {
|
|
4011
4000
|
active: propTypes.exports.bool,
|
|
@@ -4255,38 +4244,57 @@ var max = Math.max;
|
|
|
4255
4244
|
var min = Math.min;
|
|
4256
4245
|
var round = Math.round;
|
|
4257
4246
|
|
|
4258
|
-
function
|
|
4247
|
+
function getUAString() {
|
|
4248
|
+
var uaData = navigator.userAgentData;
|
|
4249
|
+
|
|
4250
|
+
if (uaData != null && uaData.brands) {
|
|
4251
|
+
return uaData.brands.map(function (item) {
|
|
4252
|
+
return item.brand + "/" + item.version;
|
|
4253
|
+
}).join(' ');
|
|
4254
|
+
}
|
|
4255
|
+
|
|
4256
|
+
return navigator.userAgent;
|
|
4257
|
+
}
|
|
4258
|
+
|
|
4259
|
+
function isLayoutViewport() {
|
|
4260
|
+
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
4261
|
+
}
|
|
4262
|
+
|
|
4263
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
4259
4264
|
if (includeScale === void 0) {
|
|
4260
4265
|
includeScale = false;
|
|
4261
4266
|
}
|
|
4262
4267
|
|
|
4263
|
-
|
|
4268
|
+
if (isFixedStrategy === void 0) {
|
|
4269
|
+
isFixedStrategy = false;
|
|
4270
|
+
}
|
|
4271
|
+
|
|
4272
|
+
var clientRect = element.getBoundingClientRect();
|
|
4264
4273
|
var scaleX = 1;
|
|
4265
4274
|
var scaleY = 1;
|
|
4266
4275
|
|
|
4267
|
-
if (isHTMLElement(element)
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
// Fallback to 1 in case both values are `0`
|
|
4271
|
-
|
|
4272
|
-
if (offsetWidth > 0) {
|
|
4273
|
-
scaleX = round(rect.width) / offsetWidth || 1;
|
|
4274
|
-
}
|
|
4275
|
-
|
|
4276
|
-
if (offsetHeight > 0) {
|
|
4277
|
-
scaleY = round(rect.height) / offsetHeight || 1;
|
|
4278
|
-
}
|
|
4276
|
+
if (includeScale && isHTMLElement(element)) {
|
|
4277
|
+
scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
|
|
4278
|
+
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
4279
4279
|
}
|
|
4280
4280
|
|
|
4281
|
+
var _ref = isElement(element) ? getWindow(element) : window,
|
|
4282
|
+
visualViewport = _ref.visualViewport;
|
|
4283
|
+
|
|
4284
|
+
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
4285
|
+
var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
4286
|
+
var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
4287
|
+
var width = clientRect.width / scaleX;
|
|
4288
|
+
var height = clientRect.height / scaleY;
|
|
4281
4289
|
return {
|
|
4282
|
-
width:
|
|
4283
|
-
height:
|
|
4284
|
-
top:
|
|
4285
|
-
right:
|
|
4286
|
-
bottom:
|
|
4287
|
-
left:
|
|
4288
|
-
x:
|
|
4289
|
-
y:
|
|
4290
|
+
width: width,
|
|
4291
|
+
height: height,
|
|
4292
|
+
top: y,
|
|
4293
|
+
right: x + width,
|
|
4294
|
+
bottom: y + height,
|
|
4295
|
+
left: x,
|
|
4296
|
+
x: x,
|
|
4297
|
+
y: y
|
|
4290
4298
|
};
|
|
4291
4299
|
}
|
|
4292
4300
|
|
|
@@ -4381,8 +4389,8 @@ function getTrueOffsetParent(element) {
|
|
|
4381
4389
|
|
|
4382
4390
|
|
|
4383
4391
|
function getContainingBlock(element) {
|
|
4384
|
-
var isFirefox =
|
|
4385
|
-
var isIE =
|
|
4392
|
+
var isFirefox = /firefox/i.test(getUAString());
|
|
4393
|
+
var isIE = /Trident/i.test(getUAString());
|
|
4386
4394
|
|
|
4387
4395
|
if (isIE && isHTMLElement(element)) {
|
|
4388
4396
|
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
@@ -4822,31 +4830,21 @@ function getWindowScrollBarX(element) {
|
|
|
4822
4830
|
return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
|
|
4823
4831
|
}
|
|
4824
4832
|
|
|
4825
|
-
function getViewportRect(element) {
|
|
4833
|
+
function getViewportRect(element, strategy) {
|
|
4826
4834
|
var win = getWindow(element);
|
|
4827
4835
|
var html = getDocumentElement(element);
|
|
4828
4836
|
var visualViewport = win.visualViewport;
|
|
4829
4837
|
var width = html.clientWidth;
|
|
4830
4838
|
var height = html.clientHeight;
|
|
4831
4839
|
var x = 0;
|
|
4832
|
-
var y = 0;
|
|
4833
|
-
// can be obscured underneath it.
|
|
4834
|
-
// Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
|
|
4835
|
-
// if it isn't open, so if this isn't available, the popper will be detected
|
|
4836
|
-
// to overflow the bottom of the screen too early.
|
|
4840
|
+
var y = 0;
|
|
4837
4841
|
|
|
4838
4842
|
if (visualViewport) {
|
|
4839
4843
|
width = visualViewport.width;
|
|
4840
|
-
height = visualViewport.height;
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
// Feature detection fails in mobile emulation mode in Chrome.
|
|
4845
|
-
// Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
|
|
4846
|
-
// 0.001
|
|
4847
|
-
// Fallback here: "Not Safari" userAgent
|
|
4848
|
-
|
|
4849
|
-
if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
|
|
4844
|
+
height = visualViewport.height;
|
|
4845
|
+
var layoutViewport = isLayoutViewport();
|
|
4846
|
+
|
|
4847
|
+
if (layoutViewport || !layoutViewport && strategy === 'fixed') {
|
|
4850
4848
|
x = visualViewport.offsetLeft;
|
|
4851
4849
|
y = visualViewport.offsetTop;
|
|
4852
4850
|
}
|
|
@@ -4940,8 +4938,8 @@ function rectToClientRect(rect) {
|
|
|
4940
4938
|
});
|
|
4941
4939
|
}
|
|
4942
4940
|
|
|
4943
|
-
function getInnerBoundingClientRect(element) {
|
|
4944
|
-
var rect = getBoundingClientRect(element);
|
|
4941
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
4942
|
+
var rect = getBoundingClientRect(element, false, strategy === 'fixed');
|
|
4945
4943
|
rect.top = rect.top + element.clientTop;
|
|
4946
4944
|
rect.left = rect.left + element.clientLeft;
|
|
4947
4945
|
rect.bottom = rect.top + element.clientHeight;
|
|
@@ -4953,8 +4951,8 @@ function getInnerBoundingClientRect(element) {
|
|
|
4953
4951
|
return rect;
|
|
4954
4952
|
}
|
|
4955
4953
|
|
|
4956
|
-
function getClientRectFromMixedType(element, clippingParent) {
|
|
4957
|
-
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
4954
|
+
function getClientRectFromMixedType(element, clippingParent, strategy) {
|
|
4955
|
+
return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
4958
4956
|
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
4959
4957
|
// clipping (or hiding) overflowing elements with a position different from
|
|
4960
4958
|
// `initial`
|
|
@@ -4977,18 +4975,18 @@ function getClippingParents(element) {
|
|
|
4977
4975
|
// clipping parents
|
|
4978
4976
|
|
|
4979
4977
|
|
|
4980
|
-
function getClippingRect(element, boundary, rootBoundary) {
|
|
4978
|
+
function getClippingRect(element, boundary, rootBoundary, strategy) {
|
|
4981
4979
|
var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
|
|
4982
4980
|
var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
|
|
4983
4981
|
var firstClippingParent = clippingParents[0];
|
|
4984
4982
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
4985
|
-
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
4983
|
+
var rect = getClientRectFromMixedType(element, clippingParent, strategy);
|
|
4986
4984
|
accRect.top = max(rect.top, accRect.top);
|
|
4987
4985
|
accRect.right = min(rect.right, accRect.right);
|
|
4988
4986
|
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
4989
4987
|
accRect.left = max(rect.left, accRect.left);
|
|
4990
4988
|
return accRect;
|
|
4991
|
-
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
4989
|
+
}, getClientRectFromMixedType(element, firstClippingParent, strategy));
|
|
4992
4990
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
4993
4991
|
clippingRect.height = clippingRect.bottom - clippingRect.top;
|
|
4994
4992
|
clippingRect.x = clippingRect.left;
|
|
@@ -5069,6 +5067,8 @@ function detectOverflow(state, options) {
|
|
|
5069
5067
|
var _options = options,
|
|
5070
5068
|
_options$placement = _options.placement,
|
|
5071
5069
|
placement = _options$placement === void 0 ? state.placement : _options$placement,
|
|
5070
|
+
_options$strategy = _options.strategy,
|
|
5071
|
+
strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
|
|
5072
5072
|
_options$boundary = _options.boundary,
|
|
5073
5073
|
boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
|
|
5074
5074
|
_options$rootBoundary = _options.rootBoundary,
|
|
@@ -5083,7 +5083,7 @@ function detectOverflow(state, options) {
|
|
|
5083
5083
|
var altContext = elementContext === popper ? reference : popper;
|
|
5084
5084
|
var popperRect = state.rects.popper;
|
|
5085
5085
|
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
5086
|
-
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
|
|
5086
|
+
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
|
|
5087
5087
|
var referenceClientRect = getBoundingClientRect(state.elements.reference);
|
|
5088
5088
|
var popperOffsets = computeOffsets({
|
|
5089
5089
|
reference: referenceClientRect,
|
|
@@ -5601,7 +5601,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
5601
5601
|
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
5602
5602
|
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
5603
5603
|
var documentElement = getDocumentElement(offsetParent);
|
|
5604
|
-
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
5604
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
|
|
5605
5605
|
var scroll = {
|
|
5606
5606
|
scrollLeft: 0,
|
|
5607
5607
|
scrollTop: 0
|
|
@@ -6473,7 +6473,11 @@ var CDropdown = React.forwardRef(function (_a, ref) {
|
|
|
6473
6473
|
};
|
|
6474
6474
|
var _className = classNames(variant === 'nav-item' ? 'nav-item dropdown' : variant, {
|
|
6475
6475
|
show: _visible,
|
|
6476
|
-
}, direction
|
|
6476
|
+
}, direction === 'center'
|
|
6477
|
+
? 'dropdown-center'
|
|
6478
|
+
: direction === 'dropup-center'
|
|
6479
|
+
? 'dropup dropup-center'
|
|
6480
|
+
: direction, className);
|
|
6477
6481
|
React.useEffect(function () {
|
|
6478
6482
|
setVisible(visible);
|
|
6479
6483
|
}, [visible]);
|
|
@@ -6482,10 +6486,10 @@ var CDropdown = React.forwardRef(function (_a, ref) {
|
|
|
6482
6486
|
!_visible && onHide && onHide();
|
|
6483
6487
|
}, [_visible]);
|
|
6484
6488
|
var dropdownContent = function () {
|
|
6485
|
-
return variant === 'input-group' ? (
|
|
6489
|
+
return variant === 'input-group' ? (React.createElement(React.Fragment, null, children)) : (React.createElement(Component, __assign({ className: _className }, rest, { ref: forkedRef }), children));
|
|
6486
6490
|
};
|
|
6487
|
-
return popper ? (
|
|
6488
|
-
|
|
6491
|
+
return popper ? (React.createElement(CDropdownContext.Provider, { value: contextValues },
|
|
6492
|
+
React.createElement(Manager, null, dropdownContent()))) : (React.createElement(CDropdownContext.Provider, { value: contextValues }, dropdownContent()));
|
|
6489
6493
|
});
|
|
6490
6494
|
var alignmentDirection = propTypes.exports.oneOf(['start', 'end']);
|
|
6491
6495
|
CDropdown.propTypes = {
|
|
@@ -6507,7 +6511,7 @@ CDropdown.propTypes = {
|
|
|
6507
6511
|
className: propTypes.exports.string,
|
|
6508
6512
|
component: propTypes.exports.elementType,
|
|
6509
6513
|
dark: propTypes.exports.bool,
|
|
6510
|
-
direction: propTypes.exports.oneOf(['dropup', 'dropend', 'dropstart']),
|
|
6514
|
+
direction: propTypes.exports.oneOf(['center', 'dropup', 'dropup-center', 'dropend', 'dropstart']),
|
|
6511
6515
|
onHide: propTypes.exports.func,
|
|
6512
6516
|
onShow: propTypes.exports.func,
|
|
6513
6517
|
placement: placementPropType,
|
|
@@ -6520,7 +6524,7 @@ CDropdown.displayName = 'CDropdown';
|
|
|
6520
6524
|
var CDropdownDivider = React.forwardRef(function (_a, ref) {
|
|
6521
6525
|
var className = _a.className, rest = __rest(_a, ["className"]);
|
|
6522
6526
|
var _className = classNames('dropdown-divider', className);
|
|
6523
|
-
return
|
|
6527
|
+
return React.createElement("hr", __assign({ className: _className }, rest, { ref: ref }));
|
|
6524
6528
|
});
|
|
6525
6529
|
CDropdownDivider.propTypes = {
|
|
6526
6530
|
className: propTypes.exports.string,
|
|
@@ -6530,7 +6534,7 @@ CDropdownDivider.displayName = 'CDropdownDivider';
|
|
|
6530
6534
|
var CDropdownHeader = React.forwardRef(function (_a, ref) {
|
|
6531
6535
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'h6' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
6532
6536
|
var _className = classNames('dropdown-header', className);
|
|
6533
|
-
return (
|
|
6537
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6534
6538
|
});
|
|
6535
6539
|
CDropdownHeader.propTypes = {
|
|
6536
6540
|
children: propTypes.exports.node,
|
|
@@ -6542,7 +6546,7 @@ CDropdownHeader.displayName = 'CDropdownHeader';
|
|
|
6542
6546
|
var CDropdownItem = React.forwardRef(function (_a, ref) {
|
|
6543
6547
|
var children = _a.children, className = _a.className, _b = _a.component, component = _b === void 0 ? 'a' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
6544
6548
|
var _className = classNames('dropdown-item', className);
|
|
6545
|
-
return (
|
|
6549
|
+
return (React.createElement(CLink, __assign({ className: _className, component: component }, rest, { ref: ref }), children));
|
|
6546
6550
|
});
|
|
6547
6551
|
CDropdownItem.propTypes = {
|
|
6548
6552
|
children: propTypes.exports.node,
|
|
@@ -6554,7 +6558,7 @@ CDropdownItem.displayName = 'CDropdownItem';
|
|
|
6554
6558
|
var CDropdownItemPlain = React.forwardRef(function (_a, ref) {
|
|
6555
6559
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'span' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
6556
6560
|
var _className = classNames('dropdown-item-text', className);
|
|
6557
|
-
return (
|
|
6561
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6558
6562
|
});
|
|
6559
6563
|
CDropdownItemPlain.propTypes = {
|
|
6560
6564
|
children: propTypes.exports.node,
|
|
@@ -6596,9 +6600,15 @@ var CDropdownMenu = function (_a) {
|
|
|
6596
6600
|
}
|
|
6597
6601
|
};
|
|
6598
6602
|
var _placement = placement;
|
|
6603
|
+
if (direction === 'center') {
|
|
6604
|
+
_placement = 'bottom';
|
|
6605
|
+
}
|
|
6599
6606
|
if (direction === 'dropup') {
|
|
6600
6607
|
_placement = 'top-start';
|
|
6601
6608
|
}
|
|
6609
|
+
if (direction === 'dropup-center') {
|
|
6610
|
+
_placement = 'top';
|
|
6611
|
+
}
|
|
6602
6612
|
if (direction === 'dropend') {
|
|
6603
6613
|
_placement = 'right-start';
|
|
6604
6614
|
}
|
|
@@ -6625,16 +6635,16 @@ var CDropdownMenu = function (_a) {
|
|
|
6625
6635
|
show: visible,
|
|
6626
6636
|
}, alignment && alignmentClassNames(alignment), className);
|
|
6627
6637
|
var dropdownMenuComponent = function (style, ref) {
|
|
6628
|
-
return (
|
|
6629
|
-
?
|
|
6630
|
-
if (
|
|
6631
|
-
return
|
|
6638
|
+
return (React.createElement(Component, __assign({ className: _className, ref: ref, style: style, role: "menu", "aria-hidden": !visible }, (!popper && { 'data-coreui-popper': 'static' }), rest), Component === 'ul'
|
|
6639
|
+
? React.Children.map(children, function (child, index) {
|
|
6640
|
+
if (React.isValidElement(child)) {
|
|
6641
|
+
return React.createElement("li", { key: index }, React.cloneElement(child));
|
|
6632
6642
|
}
|
|
6633
6643
|
return;
|
|
6634
6644
|
})
|
|
6635
6645
|
: children));
|
|
6636
6646
|
};
|
|
6637
|
-
return popper && visible ? (
|
|
6647
|
+
return popper && visible ? (React.createElement(Popper, { innerRef: dropdownMenuRef, placement: _placement }, function (_a) {
|
|
6638
6648
|
var ref = _a.ref, style = _a.style;
|
|
6639
6649
|
return dropdownMenuComponent(style, ref);
|
|
6640
6650
|
})) : (dropdownMenuComponent());
|
|
@@ -6667,11 +6677,11 @@ var CDropdownToggle = function (_a) {
|
|
|
6667
6677
|
// We use any because Toggler can be `a` as well as `button`.
|
|
6668
6678
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6669
6679
|
var Toggler = function (ref) {
|
|
6670
|
-
return custom &&
|
|
6680
|
+
return custom && React.isValidElement(children) ? (React.createElement(React.Fragment, null, React.cloneElement(children, __assign(__assign({ 'aria-expanded': visible }, (!rest.disabled && __assign({}, triggers))), { ref: useForkedRef(ref, dropdownToggleRef) })))) : variant === 'nav-item' ? (React.createElement("a", __assign({ href: "#" }, togglerProps, { ref: useForkedRef(ref, dropdownToggleRef) }), children)) : (React.createElement(CButton, __assign({ type: "button" }, togglerProps, { tabIndex: 0 }, rest, { ref: useForkedRef(ref, dropdownToggleRef) }),
|
|
6671
6681
|
children,
|
|
6672
|
-
split &&
|
|
6682
|
+
split && React.createElement("span", { className: "visually-hidden" }, "Toggle Dropdown")));
|
|
6673
6683
|
};
|
|
6674
|
-
return popper ?
|
|
6684
|
+
return popper ? React.createElement(Reference, null, function (_a) {
|
|
6675
6685
|
var ref = _a.ref;
|
|
6676
6686
|
return Toggler(ref);
|
|
6677
6687
|
}) : Toggler(dropdownToggleRef);
|
|
@@ -6690,7 +6700,7 @@ var CFooter = React.forwardRef(function (_a, ref) {
|
|
|
6690
6700
|
var _b;
|
|
6691
6701
|
var children = _a.children, className = _a.className, position = _a.position, rest = __rest(_a, ["children", "className", "position"]);
|
|
6692
6702
|
var _className = classNames('footer', (_b = {}, _b["footer-".concat(position)] = position, _b), className);
|
|
6693
|
-
return (
|
|
6703
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6694
6704
|
});
|
|
6695
6705
|
CFooter.propTypes = {
|
|
6696
6706
|
children: propTypes.exports.node,
|
|
@@ -6702,7 +6712,7 @@ CFooter.displayName = 'CFooter';
|
|
|
6702
6712
|
var CForm = React.forwardRef(function (_a, ref) {
|
|
6703
6713
|
var children = _a.children, className = _a.className, validated = _a.validated, rest = __rest(_a, ["children", "className", "validated"]);
|
|
6704
6714
|
var _className = classNames({ 'was-validated': validated }, className);
|
|
6705
|
-
return (
|
|
6715
|
+
return (React.createElement("form", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6706
6716
|
});
|
|
6707
6717
|
CForm.propTypes = {
|
|
6708
6718
|
children: propTypes.exports.node,
|
|
@@ -6718,7 +6728,7 @@ var CFormFeedback = React.forwardRef(function (_a, ref) {
|
|
|
6718
6728
|
_b["invalid-".concat(tooltip ? 'tooltip' : 'feedback')] = invalid,
|
|
6719
6729
|
_b["valid-".concat(tooltip ? 'tooltip' : 'feedback')] = valid,
|
|
6720
6730
|
_b), className);
|
|
6721
|
-
return (
|
|
6731
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6722
6732
|
});
|
|
6723
6733
|
CFormFeedback.propTypes = {
|
|
6724
6734
|
children: propTypes.exports.node,
|
|
@@ -6732,10 +6742,10 @@ CFormFeedback.displayName = 'CFormFeedback';
|
|
|
6732
6742
|
|
|
6733
6743
|
var CFormControlValidation = function (_a) {
|
|
6734
6744
|
var describedby = _a.describedby, feedback = _a.feedback, feedbackInvalid = _a.feedbackInvalid, feedbackValid = _a.feedbackValid, invalid = _a.invalid, tooltipFeedback = _a.tooltipFeedback, valid = _a.valid;
|
|
6735
|
-
return (
|
|
6736
|
-
feedback && (valid || invalid) && (
|
|
6737
|
-
feedbackInvalid && (
|
|
6738
|
-
feedbackValid && (
|
|
6745
|
+
return (React.createElement(React.Fragment, null,
|
|
6746
|
+
feedback && (valid || invalid) && (React.createElement(CFormFeedback, __assign({}, (invalid && { id: describedby }), { invalid: invalid, tooltip: tooltipFeedback, valid: valid }), feedback)),
|
|
6747
|
+
feedbackInvalid && (React.createElement(CFormFeedback, { id: describedby, invalid: true, tooltip: tooltipFeedback }, feedbackInvalid)),
|
|
6748
|
+
feedbackValid && (React.createElement(CFormFeedback, { valid: true, tooltip: tooltipFeedback }, feedbackValid))));
|
|
6739
6749
|
};
|
|
6740
6750
|
CFormControlValidation.propTypes = {
|
|
6741
6751
|
describedby: propTypes.exports.string,
|
|
@@ -6751,7 +6761,7 @@ CFormControlValidation.displayName = 'CFormControlValidation';
|
|
|
6751
6761
|
var CFormLabel = React.forwardRef(function (_a, ref) {
|
|
6752
6762
|
var children = _a.children, className = _a.className, customClassName = _a.customClassName, rest = __rest(_a, ["children", "className", "customClassName"]);
|
|
6753
6763
|
var _className = customClassName ? customClassName : classNames('form-label', className);
|
|
6754
|
-
return (
|
|
6764
|
+
return (React.createElement("label", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6755
6765
|
});
|
|
6756
6766
|
CFormLabel.propTypes = {
|
|
6757
6767
|
children: propTypes.exports.node,
|
|
@@ -6786,20 +6796,20 @@ var CFormCheck = React.forwardRef(function (_a, ref) {
|
|
|
6786
6796
|
_b), "".concat(button.shape))
|
|
6787
6797
|
: 'form-check-label');
|
|
6788
6798
|
var formControl = function () {
|
|
6789
|
-
return
|
|
6799
|
+
return React.createElement("input", __assign({ type: type, className: inputClassName, id: id }, rest, { ref: forkedRef }));
|
|
6790
6800
|
};
|
|
6791
|
-
var formValidation = function () { return (
|
|
6801
|
+
var formValidation = function () { return (React.createElement(CFormControlValidation, { describedby: rest['aria-describedby'], feedback: feedback, feedbackInvalid: feedbackInvalid, feedbackValid: feedbackValid, floatingLabel: floatingLabel, invalid: invalid, tooltipFeedback: tooltipFeedback, valid: valid })); };
|
|
6792
6802
|
var formLabel = function () {
|
|
6793
|
-
return (
|
|
6803
|
+
return (React.createElement(CFormLabel, __assign({ customClassName: labelClassName }, (id && { htmlFor: id })), label));
|
|
6794
6804
|
};
|
|
6795
|
-
return button ? (
|
|
6805
|
+
return button ? (React.createElement(React.Fragment, null,
|
|
6796
6806
|
formControl(),
|
|
6797
6807
|
label && formLabel(),
|
|
6798
|
-
formValidation())) : label ? (hitArea ? (
|
|
6799
|
-
|
|
6808
|
+
formValidation())) : label ? (hitArea ? (React.createElement(React.Fragment, null,
|
|
6809
|
+
React.createElement(CFormLabel, __assign({ customClassName: className }, (id && { htmlFor: id })),
|
|
6800
6810
|
formControl(),
|
|
6801
6811
|
label),
|
|
6802
|
-
formValidation())) : (
|
|
6812
|
+
formValidation())) : (React.createElement("div", { className: _className },
|
|
6803
6813
|
formControl(),
|
|
6804
6814
|
formLabel(),
|
|
6805
6815
|
formValidation()))) : (formControl());
|
|
@@ -6810,7 +6820,7 @@ CFormCheck.displayName = 'CFormCheck';
|
|
|
6810
6820
|
var CFormFloating = React.forwardRef(function (_a, ref) {
|
|
6811
6821
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
6812
6822
|
var _className = classNames('form-floating', className);
|
|
6813
|
-
return (
|
|
6823
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6814
6824
|
});
|
|
6815
6825
|
CFormFloating.propTypes = {
|
|
6816
6826
|
children: propTypes.exports.node,
|
|
@@ -6821,7 +6831,7 @@ CFormFloating.displayName = 'CFormFloating';
|
|
|
6821
6831
|
var CFormText = React.forwardRef(function (_a, ref) {
|
|
6822
6832
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'div' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
6823
6833
|
var _className = classNames('form-text', className);
|
|
6824
|
-
return (
|
|
6834
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6825
6835
|
});
|
|
6826
6836
|
CFormText.propTypes = {
|
|
6827
6837
|
children: propTypes.exports.node,
|
|
@@ -6832,13 +6842,13 @@ CFormText.displayName = 'CFormText';
|
|
|
6832
6842
|
|
|
6833
6843
|
var CFormControlWrapper = function (_a) {
|
|
6834
6844
|
var children = _a.children, describedby = _a.describedby, feedback = _a.feedback, feedbackInvalid = _a.feedbackInvalid, feedbackValid = _a.feedbackValid, floatingLabel = _a.floatingLabel, id = _a.id, invalid = _a.invalid, label = _a.label, text = _a.text, tooltipFeedback = _a.tooltipFeedback, valid = _a.valid;
|
|
6835
|
-
return floatingLabel ? (
|
|
6845
|
+
return floatingLabel ? (React.createElement(CFormFloating, null,
|
|
6836
6846
|
children,
|
|
6837
|
-
|
|
6838
|
-
label &&
|
|
6847
|
+
React.createElement(CFormLabel, { htmlFor: id }, label || floatingLabel))) : (React.createElement(React.Fragment, null,
|
|
6848
|
+
label && React.createElement(CFormLabel, { htmlFor: id }, label),
|
|
6839
6849
|
children,
|
|
6840
|
-
text &&
|
|
6841
|
-
|
|
6850
|
+
text && React.createElement(CFormText, { id: describedby }, text),
|
|
6851
|
+
React.createElement(CFormControlValidation, { describedby: describedby, feedback: feedback, feedbackInvalid: feedbackInvalid, feedbackValid: feedbackValid, floatingLabel: floatingLabel, invalid: invalid, tooltipFeedback: tooltipFeedback, valid: valid })));
|
|
6842
6852
|
};
|
|
6843
6853
|
CFormControlWrapper.propTypes = __assign({ children: propTypes.exports.node, floatingLabel: propTypes.exports.oneOfType([propTypes.exports.node, propTypes.exports.string]), label: propTypes.exports.oneOfType([propTypes.exports.node, propTypes.exports.string]), text: propTypes.exports.oneOfType([propTypes.exports.node, propTypes.exports.string]) }, CFormControlValidation.propTypes);
|
|
6844
6854
|
CFormControlWrapper.displayName = 'CFormControlWrapper';
|
|
@@ -6857,8 +6867,8 @@ var CFormInput = React.forwardRef(function (_a, ref) {
|
|
|
6857
6867
|
_b['is-invalid'] = invalid,
|
|
6858
6868
|
_b['is-valid'] = valid,
|
|
6859
6869
|
_b), className);
|
|
6860
|
-
return (
|
|
6861
|
-
|
|
6870
|
+
return (React.createElement(CFormControlWrapper, { describedby: rest['aria-describedby'], feedback: feedback, feedbackInvalid: feedbackInvalid, feedbackValid: feedbackValid, floatingLabel: floatingLabel, id: id, invalid: invalid, label: label, text: text, tooltipFeedback: tooltipFeedback, valid: valid },
|
|
6871
|
+
React.createElement("input", __assign({ className: _className, id: id, type: type, onChange: function (event) { return (delay ? setValue(event) : onChange && onChange(event)); } }, rest, { ref: ref }), children)));
|
|
6862
6872
|
});
|
|
6863
6873
|
CFormInput.propTypes = __assign({ className: propTypes.exports.string, id: propTypes.exports.string, delay: propTypes.exports.oneOfType([propTypes.exports.bool, propTypes.exports.number]), plainText: propTypes.exports.bool, size: propTypes.exports.oneOf(['sm', 'lg']), type: propTypes.exports.oneOfType([propTypes.exports.oneOf(['color', 'file', 'text']), propTypes.exports.string]) }, CFormControlWrapper.propTypes);
|
|
6864
6874
|
CFormInput.displayName = 'CFormInput';
|
|
@@ -6866,9 +6876,9 @@ CFormInput.displayName = 'CFormInput';
|
|
|
6866
6876
|
var CFormRange = React.forwardRef(function (_a, ref) {
|
|
6867
6877
|
var className = _a.className, label = _a.label, rest = __rest(_a, ["className", "label"]);
|
|
6868
6878
|
var _className = classNames('form-range', className);
|
|
6869
|
-
return (
|
|
6870
|
-
label &&
|
|
6871
|
-
|
|
6879
|
+
return (React.createElement(React.Fragment, null,
|
|
6880
|
+
label && React.createElement(CFormLabel, { htmlFor: rest.id }, label),
|
|
6881
|
+
React.createElement("input", __assign({ type: "range", className: _className }, rest, { ref: ref }))));
|
|
6872
6882
|
});
|
|
6873
6883
|
CFormRange.propTypes = {
|
|
6874
6884
|
className: propTypes.exports.string,
|
|
@@ -6884,10 +6894,10 @@ var CFormSelect = React.forwardRef(function (_a, ref) {
|
|
|
6884
6894
|
_b['is-invalid'] = invalid,
|
|
6885
6895
|
_b['is-valid'] = valid,
|
|
6886
6896
|
_b), className);
|
|
6887
|
-
return (
|
|
6888
|
-
|
|
6897
|
+
return (React.createElement(CFormControlWrapper, { describedby: rest['aria-describedby'], feedback: feedback, feedbackInvalid: feedbackInvalid, feedbackValid: feedbackValid, floatingLabel: floatingLabel, id: id, invalid: invalid, label: label, text: text, tooltipFeedback: tooltipFeedback, valid: valid },
|
|
6898
|
+
React.createElement("select", __assign({ id: id, className: _className, size: htmlSize }, rest, { ref: ref }), options
|
|
6889
6899
|
? options.map(function (option, index) {
|
|
6890
|
-
return (
|
|
6900
|
+
return (React.createElement("option", __assign({}, (typeof option === 'object' &&
|
|
6891
6901
|
option.disabled && { disabled: option.disabled }), (typeof option === 'object' && option.value && { value: option.value }), { key: index }), typeof option === 'string' ? option : option.label));
|
|
6892
6902
|
})
|
|
6893
6903
|
: children)));
|
|
@@ -6908,9 +6918,9 @@ var CFormSwitch = React.forwardRef(function (_a, ref) {
|
|
|
6908
6918
|
'is-valid': valid,
|
|
6909
6919
|
});
|
|
6910
6920
|
var labelClassName = classNames('form-check-label');
|
|
6911
|
-
return (
|
|
6912
|
-
|
|
6913
|
-
label && (
|
|
6921
|
+
return (React.createElement("div", { className: _className },
|
|
6922
|
+
React.createElement("input", __assign({ type: type, className: inputClassName, id: id }, rest, { ref: ref })),
|
|
6923
|
+
label && (React.createElement(CFormLabel, __assign({ customClassName: labelClassName }, (id && { htmlFor: id })), label))));
|
|
6914
6924
|
});
|
|
6915
6925
|
CFormSwitch.propTypes = {
|
|
6916
6926
|
className: propTypes.exports.string,
|
|
@@ -6929,8 +6939,8 @@ var CFormTextarea = React.forwardRef(function (_a, ref) {
|
|
|
6929
6939
|
'is-invalid': invalid,
|
|
6930
6940
|
'is-valid': valid,
|
|
6931
6941
|
}, className);
|
|
6932
|
-
return (
|
|
6933
|
-
|
|
6942
|
+
return (React.createElement(CFormControlWrapper, { describedby: rest['aria-describedby'], feedback: feedback, feedbackInvalid: feedbackInvalid, feedbackValid: feedbackValid, floatingLabel: floatingLabel, id: id, invalid: invalid, label: label, text: text, tooltipFeedback: tooltipFeedback, valid: valid },
|
|
6943
|
+
React.createElement("textarea", __assign({ className: _className, id: id }, rest, { ref: ref }), children)));
|
|
6934
6944
|
});
|
|
6935
6945
|
CFormTextarea.propTypes = __assign({ className: propTypes.exports.string, id: propTypes.exports.string, plainText: propTypes.exports.bool }, CFormControlWrapper.propTypes);
|
|
6936
6946
|
CFormTextarea.displayName = 'CFormTextarea';
|
|
@@ -6941,7 +6951,7 @@ var CInputGroup = React.forwardRef(function (_a, ref) {
|
|
|
6941
6951
|
var _className = classNames('input-group', (_b = {},
|
|
6942
6952
|
_b["input-group-".concat(size)] = size,
|
|
6943
6953
|
_b), className);
|
|
6944
|
-
return (
|
|
6954
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6945
6955
|
});
|
|
6946
6956
|
CInputGroup.propTypes = {
|
|
6947
6957
|
children: propTypes.exports.node,
|
|
@@ -6953,7 +6963,7 @@ CInputGroup.displayName = 'CInputGroup';
|
|
|
6953
6963
|
var CInputGroupText = React.forwardRef(function (_a, ref) {
|
|
6954
6964
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'span' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
6955
6965
|
var _className = classNames('input-group-text', className);
|
|
6956
|
-
return (
|
|
6966
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6957
6967
|
});
|
|
6958
6968
|
CInputGroupText.propTypes = {
|
|
6959
6969
|
children: propTypes.exports.node,
|
|
@@ -6999,7 +7009,7 @@ var CCol = React.forwardRef(function (_a, ref) {
|
|
|
6999
7009
|
}
|
|
7000
7010
|
});
|
|
7001
7011
|
var _className = classNames(repsonsiveClassNames.length ? repsonsiveClassNames : 'col', className);
|
|
7002
|
-
return (
|
|
7012
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7003
7013
|
});
|
|
7004
7014
|
var span = propTypes.exports.oneOfType([
|
|
7005
7015
|
propTypes.exports.bool,
|
|
@@ -7044,7 +7054,7 @@ var CContainer = React.forwardRef(function (_a, ref) {
|
|
|
7044
7054
|
breakpoint && repsonsiveClassNames.push("container-".concat(bp));
|
|
7045
7055
|
});
|
|
7046
7056
|
var _className = classNames(repsonsiveClassNames.length ? repsonsiveClassNames : 'container', className);
|
|
7047
|
-
return (
|
|
7057
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7048
7058
|
});
|
|
7049
7059
|
CContainer.propTypes = {
|
|
7050
7060
|
children: propTypes.exports.node,
|
|
@@ -7089,7 +7099,7 @@ var CRow = React.forwardRef(function (_a, ref) {
|
|
|
7089
7099
|
}
|
|
7090
7100
|
});
|
|
7091
7101
|
var _className = classNames('row', repsonsiveClassNames, className);
|
|
7092
|
-
return (
|
|
7102
|
+
return (React.createElement("div", { className: _className, ref: ref }, children));
|
|
7093
7103
|
});
|
|
7094
7104
|
var bp = propTypes.exports.shape({
|
|
7095
7105
|
cols: propTypes.exports.oneOfType([propTypes.exports.oneOf(['auto']), propTypes.exports.number, propTypes.exports.string]),
|
|
@@ -7115,12 +7125,12 @@ var CHeader = React.forwardRef(function (_a, ref) {
|
|
|
7115
7125
|
var _className = classNames('header', (_b = {}, _b["header-".concat(position)] = position, _b), className);
|
|
7116
7126
|
var content;
|
|
7117
7127
|
if (container) {
|
|
7118
|
-
content = (
|
|
7128
|
+
content = (React.createElement("div", { className: "container".concat(container !== true ? '-' + container : '') }, children));
|
|
7119
7129
|
}
|
|
7120
7130
|
else {
|
|
7121
7131
|
content = children;
|
|
7122
7132
|
}
|
|
7123
|
-
return (
|
|
7133
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), content));
|
|
7124
7134
|
});
|
|
7125
7135
|
CHeader.propTypes = {
|
|
7126
7136
|
children: propTypes.exports.node,
|
|
@@ -7143,7 +7153,7 @@ CHeader.displayName = 'CHeader';
|
|
|
7143
7153
|
var CHeaderBrand = React.forwardRef(function (_a, ref) {
|
|
7144
7154
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'a' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
7145
7155
|
var _className = classNames('header-brand', className);
|
|
7146
|
-
return (
|
|
7156
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7147
7157
|
});
|
|
7148
7158
|
CHeaderBrand.propTypes = {
|
|
7149
7159
|
children: propTypes.exports.node,
|
|
@@ -7155,7 +7165,7 @@ CHeaderBrand.displayName = 'CHeaderBrand';
|
|
|
7155
7165
|
var CHeaderDivider = React.forwardRef(function (_a, ref) {
|
|
7156
7166
|
var className = _a.className, rest = __rest(_a, ["className"]);
|
|
7157
7167
|
var _className = classNames('header-divider', className);
|
|
7158
|
-
return
|
|
7168
|
+
return React.createElement("div", __assign({ className: _className }, rest, { ref: ref }));
|
|
7159
7169
|
});
|
|
7160
7170
|
CHeaderDivider.propTypes = {
|
|
7161
7171
|
className: propTypes.exports.string,
|
|
@@ -7165,7 +7175,7 @@ CHeaderDivider.displayName = 'CHeaderDivider';
|
|
|
7165
7175
|
var CHeaderNav = React.forwardRef(function (_a, ref) {
|
|
7166
7176
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'ul' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
7167
7177
|
var _className = classNames('header-nav', className);
|
|
7168
|
-
return (
|
|
7178
|
+
return (React.createElement(Component, __assign({ className: _className, role: "navigation" }, rest, { ref: ref }), children));
|
|
7169
7179
|
});
|
|
7170
7180
|
CHeaderNav.propTypes = {
|
|
7171
7181
|
children: propTypes.exports.node,
|
|
@@ -7177,7 +7187,7 @@ CHeaderNav.displayName = 'CHeaderNav';
|
|
|
7177
7187
|
var CHeaderText = React.forwardRef(function (_a, ref) {
|
|
7178
7188
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7179
7189
|
var _className = classNames('header-text', className);
|
|
7180
|
-
return (
|
|
7190
|
+
return (React.createElement("span", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7181
7191
|
});
|
|
7182
7192
|
CHeaderText.propTypes = {
|
|
7183
7193
|
children: propTypes.exports.node,
|
|
@@ -7188,7 +7198,7 @@ CHeaderText.displayName = 'CHeaderText';
|
|
|
7188
7198
|
var CHeaderToggler = React.forwardRef(function (_a, ref) {
|
|
7189
7199
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7190
7200
|
var _className = classNames('header-toggler', className);
|
|
7191
|
-
return (
|
|
7201
|
+
return (React.createElement("button", __assign({ type: "button", className: _className }, rest, { ref: ref }), children ? children : React.createElement("span", { className: "header-toggler-icon" })));
|
|
7192
7202
|
});
|
|
7193
7203
|
CHeaderToggler.propTypes = {
|
|
7194
7204
|
children: propTypes.exports.node,
|
|
@@ -7206,7 +7216,7 @@ var CImage = React.forwardRef(function (_a, ref) {
|
|
|
7206
7216
|
_b.rounded = rounded,
|
|
7207
7217
|
_b['img-thumbnail'] = thumbnail,
|
|
7208
7218
|
_b), className);
|
|
7209
|
-
return
|
|
7219
|
+
return React.createElement("img", __assign({ className: _className }, rest, { ref: ref }));
|
|
7210
7220
|
});
|
|
7211
7221
|
CImage.propTypes = {
|
|
7212
7222
|
align: propTypes.exports.oneOf(['start', 'center', 'end']),
|
|
@@ -7225,7 +7235,7 @@ var CListGroup = React.forwardRef(function (_a, ref) {
|
|
|
7225
7235
|
},
|
|
7226
7236
|
_b["list-group-".concat(layout)] = layout,
|
|
7227
7237
|
_b), className);
|
|
7228
|
-
return (
|
|
7238
|
+
return (React.createElement(Component, { className: _className, ref: ref }, children));
|
|
7229
7239
|
});
|
|
7230
7240
|
CListGroup.propTypes = {
|
|
7231
7241
|
children: propTypes.exports.node,
|
|
@@ -7259,7 +7269,7 @@ var CListGroupItem = React.forwardRef(function (_a, ref) {
|
|
|
7259
7269
|
component: component,
|
|
7260
7270
|
ref: ref,
|
|
7261
7271
|
})), (active && { 'aria-current': true })), (disabled && { 'aria-disabled': true })), rest);
|
|
7262
|
-
return (
|
|
7272
|
+
return (React.createElement(Component, __assign({ className: _className }, rest), children));
|
|
7263
7273
|
});
|
|
7264
7274
|
CListGroupItem.propTypes = {
|
|
7265
7275
|
active: propTypes.exports.bool,
|
|
@@ -7274,7 +7284,7 @@ CListGroupItem.displayName = 'CListGroupItem';
|
|
|
7274
7284
|
var CModalContent = React.forwardRef(function (_a, ref) {
|
|
7275
7285
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7276
7286
|
var _className = classNames('modal-content', className);
|
|
7277
|
-
return (
|
|
7287
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7278
7288
|
});
|
|
7279
7289
|
CModalContent.propTypes = {
|
|
7280
7290
|
children: propTypes.exports.node,
|
|
@@ -7294,7 +7304,7 @@ var CModalDialog = React.forwardRef(function (_a, ref) {
|
|
|
7294
7304
|
_b['modal-dialog-scrollable'] = scrollable,
|
|
7295
7305
|
_b["modal-".concat(size)] = size,
|
|
7296
7306
|
_b), className);
|
|
7297
|
-
return (
|
|
7307
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7298
7308
|
});
|
|
7299
7309
|
CModalDialog.propTypes = {
|
|
7300
7310
|
alignment: propTypes.exports.oneOf(['top', 'center']),
|
|
@@ -7359,6 +7369,10 @@ var CModal = React.forwardRef(function (_a, ref) {
|
|
|
7359
7369
|
React.useLayoutEffect(function () {
|
|
7360
7370
|
if (_visible) {
|
|
7361
7371
|
document.body.classList.add('modal-open');
|
|
7372
|
+
if (backdrop) {
|
|
7373
|
+
document.body.style.overflow = 'hidden';
|
|
7374
|
+
document.body.style.paddingRight = '0px';
|
|
7375
|
+
}
|
|
7362
7376
|
setTimeout(function () {
|
|
7363
7377
|
var _a;
|
|
7364
7378
|
(_a = modalRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -7366,8 +7380,18 @@ var CModal = React.forwardRef(function (_a, ref) {
|
|
|
7366
7380
|
}
|
|
7367
7381
|
else {
|
|
7368
7382
|
document.body.classList.remove('modal-open');
|
|
7383
|
+
if (backdrop) {
|
|
7384
|
+
document.body.style.removeProperty('overflow');
|
|
7385
|
+
document.body.style.removeProperty('padding-right');
|
|
7386
|
+
}
|
|
7369
7387
|
}
|
|
7370
|
-
return function () {
|
|
7388
|
+
return function () {
|
|
7389
|
+
document.body.classList.remove('modal-open');
|
|
7390
|
+
if (backdrop) {
|
|
7391
|
+
document.body.style.removeProperty('overflow');
|
|
7392
|
+
document.body.style.removeProperty('padding-right');
|
|
7393
|
+
}
|
|
7394
|
+
};
|
|
7371
7395
|
}, [_visible]);
|
|
7372
7396
|
var handleClickOutside = function (event) {
|
|
7373
7397
|
if (modalContentRef.current &&
|
|
@@ -7381,21 +7405,21 @@ var CModal = React.forwardRef(function (_a, ref) {
|
|
|
7381
7405
|
}
|
|
7382
7406
|
}, [modalRef, handleDismiss]);
|
|
7383
7407
|
var modal = function (ref, transitionClass) {
|
|
7384
|
-
return (
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7408
|
+
return (React.createElement(CModalContext.Provider, { value: contextValues },
|
|
7409
|
+
React.createElement("div", { className: classNames(_className, transitionClass), tabIndex: -1, role: "dialog", ref: ref },
|
|
7410
|
+
React.createElement(CModalDialog, { alignment: alignment, fullscreen: fullscreen, scrollable: scrollable, size: size },
|
|
7411
|
+
React.createElement(CModalContent, { ref: modalContentRef }, children)))));
|
|
7388
7412
|
};
|
|
7389
|
-
return (
|
|
7390
|
-
|
|
7413
|
+
return (React.createElement(React.Fragment, null,
|
|
7414
|
+
React.createElement(Transition, { in: _visible, mountOnEnter: true, nodeRef: modalRef, onEnter: onShow, onExit: onClose, unmountOnExit: unmountOnClose, timeout: !transition ? 0 : duration }, function (state) {
|
|
7391
7415
|
var transitionClass = getTransitionClass(state);
|
|
7392
7416
|
return typeof window !== 'undefined' && portal
|
|
7393
7417
|
? ReactDOM.createPortal(modal(forkedRef, transitionClass), document.body)
|
|
7394
7418
|
: modal(forkedRef, transitionClass);
|
|
7395
7419
|
}),
|
|
7396
7420
|
typeof window !== 'undefined' && portal
|
|
7397
|
-
? backdrop && ReactDOM.createPortal(
|
|
7398
|
-
: backdrop &&
|
|
7421
|
+
? backdrop && ReactDOM.createPortal(React.createElement(CBackdrop, { visible: _visible }), document.body)
|
|
7422
|
+
: backdrop && React.createElement(CBackdrop, { visible: _visible })));
|
|
7399
7423
|
});
|
|
7400
7424
|
CModal.propTypes = {
|
|
7401
7425
|
alignment: propTypes.exports.oneOf(['top', 'center']),
|
|
@@ -7423,7 +7447,7 @@ CModal.displayName = 'CModal';
|
|
|
7423
7447
|
var CModalBody = React.forwardRef(function (_a, ref) {
|
|
7424
7448
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7425
7449
|
var _className = classNames('modal-body', className);
|
|
7426
|
-
return (
|
|
7450
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7427
7451
|
});
|
|
7428
7452
|
CModalBody.propTypes = {
|
|
7429
7453
|
children: propTypes.exports.node,
|
|
@@ -7434,7 +7458,7 @@ CModalBody.displayName = 'CModalBody';
|
|
|
7434
7458
|
var CModalFooter = React.forwardRef(function (_a, ref) {
|
|
7435
7459
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7436
7460
|
var _className = classNames('modal-footer', className);
|
|
7437
|
-
return (
|
|
7461
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7438
7462
|
});
|
|
7439
7463
|
CModalFooter.propTypes = {
|
|
7440
7464
|
children: propTypes.exports.node,
|
|
@@ -7446,9 +7470,9 @@ var CModalHeader = React.forwardRef(function (_a, ref) {
|
|
|
7446
7470
|
var children = _a.children, className = _a.className, _b = _a.closeButton, closeButton = _b === void 0 ? true : _b, rest = __rest(_a, ["children", "className", "closeButton"]);
|
|
7447
7471
|
var setVisible = React.useContext(CModalContext).setVisible;
|
|
7448
7472
|
var _className = classNames('modal-header', className);
|
|
7449
|
-
return (
|
|
7473
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
7450
7474
|
children,
|
|
7451
|
-
closeButton &&
|
|
7475
|
+
closeButton && React.createElement(CCloseButton, { onClick: function () { return setVisible(false); } })));
|
|
7452
7476
|
});
|
|
7453
7477
|
CModalHeader.propTypes = {
|
|
7454
7478
|
children: propTypes.exports.node,
|
|
@@ -7460,7 +7484,7 @@ CModalHeader.displayName = 'CModalHeader';
|
|
|
7460
7484
|
var CModalTitle = React.forwardRef(function (_a, ref) {
|
|
7461
7485
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'h5' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
7462
7486
|
var _className = classNames('modal-title', className);
|
|
7463
|
-
return (
|
|
7487
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7464
7488
|
});
|
|
7465
7489
|
CModalTitle.propTypes = {
|
|
7466
7490
|
children: propTypes.exports.node,
|
|
@@ -7476,7 +7500,7 @@ var CNav = React.forwardRef(function (_a, ref) {
|
|
|
7476
7500
|
_b["nav-".concat(layout)] = layout,
|
|
7477
7501
|
_b["nav-".concat(variant)] = variant,
|
|
7478
7502
|
_b), className);
|
|
7479
|
-
return (
|
|
7503
|
+
return (React.createElement(Component, __assign({ className: _className, role: "navigation" }, rest, { ref: ref }), children));
|
|
7480
7504
|
});
|
|
7481
7505
|
CNav.propTypes = {
|
|
7482
7506
|
children: propTypes.exports.node,
|
|
@@ -7490,7 +7514,7 @@ CNav.displayName = 'CNav';
|
|
|
7490
7514
|
var CNavGroupItems = React.forwardRef(function (_a, ref) {
|
|
7491
7515
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7492
7516
|
var _className = classNames('nav-group-items', className);
|
|
7493
|
-
return (
|
|
7517
|
+
return (React.createElement("ul", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7494
7518
|
});
|
|
7495
7519
|
CNavGroupItems.propTypes = {
|
|
7496
7520
|
children: propTypes.exports.node,
|
|
@@ -7507,10 +7531,13 @@ var CSidebarNav = React.forwardRef(function (_a, ref) {
|
|
|
7507
7531
|
setVisibleGroup: setVisibleGroup,
|
|
7508
7532
|
};
|
|
7509
7533
|
var classes = classNames('sidebar-nav', className);
|
|
7510
|
-
return (
|
|
7511
|
-
|
|
7512
|
-
if (
|
|
7513
|
-
return
|
|
7534
|
+
return (React.createElement("ul", __assign({ className: classes, ref: ref }, rest),
|
|
7535
|
+
React.createElement(CNavContext.Provider, { value: CNavContextValues }, React.Children.map(children, function (child, index) {
|
|
7536
|
+
if (React.isValidElement(child)) {
|
|
7537
|
+
return React.cloneElement(child, {
|
|
7538
|
+
key: index,
|
|
7539
|
+
idx: "".concat(index),
|
|
7540
|
+
});
|
|
7514
7541
|
}
|
|
7515
7542
|
return;
|
|
7516
7543
|
}))));
|
|
@@ -7564,13 +7591,16 @@ var CNavGroup = React.forwardRef(function (_a, ref) {
|
|
|
7564
7591
|
exited: { height: height },
|
|
7565
7592
|
};
|
|
7566
7593
|
var _className = classNames('nav-group', { show: _visible }, className);
|
|
7567
|
-
return (
|
|
7568
|
-
toggler && (
|
|
7569
|
-
|
|
7594
|
+
return (React.createElement("li", __assign({ className: _className }, rest, { ref: ref }),
|
|
7595
|
+
toggler && (React.createElement("a", { className: "nav-link nav-group-toggle", onClick: function (event) { return handleTogglerOnCLick(event); } }, toggler)),
|
|
7596
|
+
React.createElement(Transition, { in: _visible, nodeRef: navItemsRef, onEntering: onEntering, onEntered: onEntered, onExit: onExit, onExiting: onExiting, onExited: onExited, timeout: 300 }, function (state) { return (React.createElement("ul", { className: classNames('nav-group-items', {
|
|
7570
7597
|
compact: compact,
|
|
7571
|
-
}), style: __assign(__assign({}, style), transitionStyles[state]), ref: navItemsRef },
|
|
7572
|
-
if (
|
|
7573
|
-
return
|
|
7598
|
+
}), style: __assign(__assign({}, style), transitionStyles[state]), ref: navItemsRef }, React.Children.map(children, function (child, index) {
|
|
7599
|
+
if (React.isValidElement(child)) {
|
|
7600
|
+
return React.cloneElement(child, {
|
|
7601
|
+
key: index,
|
|
7602
|
+
idx: "".concat(idx, ".").concat(index),
|
|
7603
|
+
});
|
|
7574
7604
|
}
|
|
7575
7605
|
return;
|
|
7576
7606
|
}))); })));
|
|
@@ -7596,7 +7626,7 @@ var CNavLink = React.forwardRef(function (_a, ref) {
|
|
|
7596
7626
|
rest.active = (_a = navLinkRef.current) === null || _a === void 0 ? void 0 : _a.classList.contains('active');
|
|
7597
7627
|
idx && rest.active && setVisibleGroup(idx);
|
|
7598
7628
|
}, [rest.active, className]);
|
|
7599
|
-
return (
|
|
7629
|
+
return (React.createElement(CLink, __assign({ className: _className }, rest, { ref: forkedRef }), children));
|
|
7600
7630
|
});
|
|
7601
7631
|
CNavLink.propTypes = {
|
|
7602
7632
|
children: propTypes.exports.node,
|
|
@@ -7609,9 +7639,9 @@ var CNavItem = React.forwardRef(function (_a, ref) {
|
|
|
7609
7639
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7610
7640
|
var _className = classNames('nav-item', className);
|
|
7611
7641
|
if (rest.href || rest.to) {
|
|
7612
|
-
children = (
|
|
7642
|
+
children = (React.createElement(CNavLink, __assign({ className: className }, rest), children));
|
|
7613
7643
|
}
|
|
7614
|
-
return (
|
|
7644
|
+
return (React.createElement("li", { className: _className, ref: ref }, children));
|
|
7615
7645
|
});
|
|
7616
7646
|
CNavItem.propTypes = {
|
|
7617
7647
|
children: propTypes.exports.node,
|
|
@@ -7622,7 +7652,7 @@ CNavItem.displayName = 'CNavItem';
|
|
|
7622
7652
|
var CNavTitle = React.forwardRef(function (_a, ref) {
|
|
7623
7653
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7624
7654
|
var _className = classNames('nav-title', className);
|
|
7625
|
-
return (
|
|
7655
|
+
return (React.createElement("li", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7626
7656
|
});
|
|
7627
7657
|
CNavTitle.propTypes = {
|
|
7628
7658
|
children: propTypes.exports.node,
|
|
@@ -7640,12 +7670,12 @@ var CNavbar = React.forwardRef(function (_a, ref) {
|
|
|
7640
7670
|
_b), placement, className);
|
|
7641
7671
|
var content;
|
|
7642
7672
|
if (container) {
|
|
7643
|
-
content = (
|
|
7673
|
+
content = (React.createElement("div", { className: "container".concat(container !== true ? '-' + container : '') }, children));
|
|
7644
7674
|
}
|
|
7645
7675
|
else {
|
|
7646
7676
|
content = children;
|
|
7647
7677
|
}
|
|
7648
|
-
return (
|
|
7678
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), content));
|
|
7649
7679
|
});
|
|
7650
7680
|
CNavbar.propTypes = {
|
|
7651
7681
|
children: propTypes.exports.node,
|
|
@@ -7676,7 +7706,7 @@ var CNavbarBrand = React.forwardRef(function (_a, ref) {
|
|
|
7676
7706
|
var children = _a.children, component = _a.component, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
7677
7707
|
var Component = component ? component : rest.href ? 'a' : 'span';
|
|
7678
7708
|
var _className = classNames('navbar-brand', className);
|
|
7679
|
-
return (
|
|
7709
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7680
7710
|
});
|
|
7681
7711
|
CNavbarBrand.propTypes = {
|
|
7682
7712
|
children: propTypes.exports.node,
|
|
@@ -7688,7 +7718,7 @@ CNavbarBrand.displayName = 'CNavbarBrand';
|
|
|
7688
7718
|
var CNavbarNav = React.forwardRef(function (_a, ref) {
|
|
7689
7719
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'ul' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
7690
7720
|
var _className = classNames('navbar-nav', className);
|
|
7691
|
-
return (
|
|
7721
|
+
return (React.createElement(Component, __assign({ className: _className, role: "navigation" }, rest, { ref: ref }), children));
|
|
7692
7722
|
});
|
|
7693
7723
|
CNavbarNav.propTypes = {
|
|
7694
7724
|
children: propTypes.exports.node,
|
|
@@ -7700,7 +7730,7 @@ CNavbarNav.displayName = 'CNavbarNav';
|
|
|
7700
7730
|
var CNavbarText = React.forwardRef(function (_a, ref) {
|
|
7701
7731
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7702
7732
|
var _className = classNames('navbar-text', className);
|
|
7703
|
-
return (
|
|
7733
|
+
return (React.createElement("span", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7704
7734
|
});
|
|
7705
7735
|
CNavbarText.propTypes = {
|
|
7706
7736
|
children: propTypes.exports.node,
|
|
@@ -7711,7 +7741,7 @@ CNavbarText.displayName = 'CNavbarText';
|
|
|
7711
7741
|
var CNavbarToggler = React.forwardRef(function (_a, ref) {
|
|
7712
7742
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7713
7743
|
var _className = classNames('navbar-toggler', className);
|
|
7714
|
-
return (
|
|
7744
|
+
return (React.createElement("button", __assign({ type: "button", className: _className }, rest, { ref: ref }), children ? children : React.createElement("span", { className: "navbar-toggler-icon" })));
|
|
7715
7745
|
});
|
|
7716
7746
|
CNavbarToggler.propTypes = {
|
|
7717
7747
|
children: propTypes.exports.node,
|
|
@@ -7760,19 +7790,19 @@ var COffcanvas = React.forwardRef(function (_a, ref) {
|
|
|
7760
7790
|
}
|
|
7761
7791
|
}, [ref, handleDismiss]);
|
|
7762
7792
|
var offcanvas = function (ref, state) {
|
|
7763
|
-
return (
|
|
7764
|
-
|
|
7793
|
+
return (React.createElement(React.Fragment, null,
|
|
7794
|
+
React.createElement("div", __assign({ className: _className, role: "dialog", style: __assign({}, transitionStyles[state]), tabIndex: -1, onKeyDown: handleKeyDown }, rest, { ref: ref }), children)));
|
|
7765
7795
|
};
|
|
7766
|
-
return (
|
|
7767
|
-
|
|
7796
|
+
return (React.createElement(React.Fragment, null,
|
|
7797
|
+
React.createElement(Transition, { in: _visible, nodeRef: offcanvasRef, onEnter: onShow, onEntered: function () { var _a; return (_a = offcanvasRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }, onExit: onHide, timeout: 300 }, function (state) {
|
|
7768
7798
|
return typeof window !== 'undefined' && portal
|
|
7769
7799
|
? ReactDOM.createPortal(offcanvas(forkedRef, state), document.body)
|
|
7770
7800
|
: offcanvas(forkedRef, state);
|
|
7771
7801
|
}),
|
|
7772
7802
|
typeof window !== 'undefined' && portal
|
|
7773
7803
|
? backdrop &&
|
|
7774
|
-
ReactDOM.createPortal(
|
|
7775
|
-
: backdrop && (
|
|
7804
|
+
ReactDOM.createPortal(React.createElement(CBackdrop, { className: "offcanvas-backdrop", onClick: handleDismiss, visible: _visible }), document.body)
|
|
7805
|
+
: backdrop && (React.createElement(CBackdrop, { className: "offcanvas-backdrop", onClick: handleDismiss, visible: _visible }))));
|
|
7776
7806
|
});
|
|
7777
7807
|
COffcanvas.propTypes = {
|
|
7778
7808
|
backdrop: propTypes.exports.bool,
|
|
@@ -7792,7 +7822,7 @@ COffcanvas.displayName = 'COffcanvas';
|
|
|
7792
7822
|
var COffcanvasBody = React.forwardRef(function (_a, ref) {
|
|
7793
7823
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7794
7824
|
var _className = classNames('offcanvas-body', className);
|
|
7795
|
-
return (
|
|
7825
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7796
7826
|
});
|
|
7797
7827
|
COffcanvasBody.propTypes = {
|
|
7798
7828
|
children: propTypes.exports.node,
|
|
@@ -7803,7 +7833,7 @@ COffcanvasBody.displayName = 'COffcanvasBody';
|
|
|
7803
7833
|
var COffcanvasHeader = React.forwardRef(function (_a, ref) {
|
|
7804
7834
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7805
7835
|
var _className = classNames('offcanvas-header', className);
|
|
7806
|
-
return (
|
|
7836
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7807
7837
|
});
|
|
7808
7838
|
COffcanvasHeader.propTypes = {
|
|
7809
7839
|
children: propTypes.exports.node,
|
|
@@ -7814,7 +7844,7 @@ COffcanvasHeader.displayName = 'COffcanvasHeader';
|
|
|
7814
7844
|
var COffcanvasTitle = React.forwardRef(function (_a, ref) {
|
|
7815
7845
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'h5' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
7816
7846
|
var _className = classNames('offcanvas-title', className);
|
|
7817
|
-
return (
|
|
7847
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7818
7848
|
});
|
|
7819
7849
|
COffcanvasTitle.propTypes = {
|
|
7820
7850
|
children: propTypes.exports.node,
|
|
@@ -7830,8 +7860,8 @@ var CPagination = React.forwardRef(function (_a, ref) {
|
|
|
7830
7860
|
_b["justify-content-".concat(align)] = align,
|
|
7831
7861
|
_b["pagination-".concat(size)] = size,
|
|
7832
7862
|
_b), className);
|
|
7833
|
-
return (
|
|
7834
|
-
|
|
7863
|
+
return (React.createElement("nav", __assign({ ref: ref }, rest),
|
|
7864
|
+
React.createElement("ul", { className: _className }, children)));
|
|
7835
7865
|
});
|
|
7836
7866
|
CPagination.propTypes = {
|
|
7837
7867
|
align: propTypes.exports.oneOf(['start', 'center', 'end']),
|
|
@@ -7848,7 +7878,7 @@ var CPaginationItem = React.forwardRef(function (_a, ref) {
|
|
|
7848
7878
|
disabled: rest.disabled,
|
|
7849
7879
|
}, className);
|
|
7850
7880
|
var Component = component ? component : rest.active ? 'span' : 'a';
|
|
7851
|
-
return (
|
|
7881
|
+
return (React.createElement("li", __assign({ className: _className }, (rest.active && { 'aria-current': 'page' })), Component === 'a' ? (React.createElement(CLink, __assign({ className: "page-link", component: Component }, rest, { ref: ref }), children)) : (React.createElement(Component, { className: "page-link", ref: ref }, children))));
|
|
7852
7882
|
});
|
|
7853
7883
|
CPaginationItem.propTypes = {
|
|
7854
7884
|
children: propTypes.exports.node,
|
|
@@ -7884,7 +7914,7 @@ var CPlaceholder = React.forwardRef(function (_a, ref) {
|
|
|
7884
7914
|
_b["bg-".concat(color)] = color,
|
|
7885
7915
|
_b["placeholder-".concat(size)] = size,
|
|
7886
7916
|
_b), repsonsiveClassNames, className);
|
|
7887
|
-
return (
|
|
7917
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7888
7918
|
});
|
|
7889
7919
|
CPlaceholder.propTypes = {
|
|
7890
7920
|
animation: propTypes.exports.oneOf(['glow', 'wave']),
|
|
@@ -7904,7 +7934,7 @@ var CProgressBar = React.forwardRef(function (_a, ref) {
|
|
|
7904
7934
|
_b["progress-bar-".concat(variant)] = variant,
|
|
7905
7935
|
_b['progress-bar-animated'] = animated,
|
|
7906
7936
|
_b), className);
|
|
7907
|
-
return (
|
|
7937
|
+
return (React.createElement("div", __assign({ className: _className, role: "progressbar", style: { width: "".concat(value, "%") }, "aria-valuenow": value, "aria-valuemin": 0, "aria-valuemax": 100 }, rest, { ref: ref }), children));
|
|
7908
7938
|
});
|
|
7909
7939
|
CProgressBar.propTypes = {
|
|
7910
7940
|
animated: propTypes.exports.bool,
|
|
@@ -7922,7 +7952,7 @@ var CProgress = React.forwardRef(function (_a, ref) {
|
|
|
7922
7952
|
'progress-thin': thin,
|
|
7923
7953
|
'progress-white': white,
|
|
7924
7954
|
}, className);
|
|
7925
|
-
return (
|
|
7955
|
+
return (React.createElement("div", { className: _className, style: height ? { height: "".concat(height, "px") } : {}, ref: ref }, value ? (React.createElement(CProgressBar, __assign({ value: value }, rest), children)) : (children)));
|
|
7926
7956
|
});
|
|
7927
7957
|
CProgress.propTypes = {
|
|
7928
7958
|
children: propTypes.exports.node,
|
|
@@ -7965,8 +7995,8 @@ var CPopover = function (_a) {
|
|
|
7965
7995
|
? 'fade'
|
|
7966
7996
|
: 'fade';
|
|
7967
7997
|
};
|
|
7968
|
-
return (
|
|
7969
|
-
|
|
7998
|
+
return (React.createElement(React.Fragment, null,
|
|
7999
|
+
React.cloneElement(children, __assign(__assign(__assign({ ref: setReferenceElement }, ((trigger === 'click' || trigger.includes('click')) && {
|
|
7970
8000
|
onClick: function () { return setVisible(!_visible); },
|
|
7971
8001
|
})), ((trigger === 'focus' || trigger.includes('focus')) && {
|
|
7972
8002
|
onFocus: function () { return setVisible(true); },
|
|
@@ -7976,15 +8006,15 @@ var CPopover = function (_a) {
|
|
|
7976
8006
|
onMouseLeave: function () { return setVisible(false); },
|
|
7977
8007
|
}))),
|
|
7978
8008
|
typeof window !== 'undefined' &&
|
|
7979
|
-
ReactDOM.createPortal(
|
|
8009
|
+
ReactDOM.createPortal(React.createElement(Transition, { in: _visible, mountOnEnter: true, nodeRef: popoverRef, onEnter: onShow, onExit: onHide, timeout: {
|
|
7980
8010
|
enter: 0,
|
|
7981
8011
|
exit: 200,
|
|
7982
8012
|
}, unmountOnExit: true }, function (state) {
|
|
7983
8013
|
var transitionClass = getTransitionClass(state);
|
|
7984
|
-
return (
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
8014
|
+
return (React.createElement("div", __assign({ className: classNames("popover bs-popover-".concat(placement === 'left' ? 'start' : placement === 'right' ? 'end' : placement), transitionClass), ref: setPopperElement, role: "tooltip", style: styles.popper }, attributes.popper, rest),
|
|
8015
|
+
React.createElement("div", { className: "popover-arrow", style: styles.arrow, ref: setArrowElement }),
|
|
8016
|
+
React.createElement("div", { className: "popover-header" }, title),
|
|
8017
|
+
React.createElement("div", { className: "popover-body" }, content)));
|
|
7988
8018
|
}), document.body)));
|
|
7989
8019
|
};
|
|
7990
8020
|
CPopover.propTypes = {
|
|
@@ -8091,11 +8121,11 @@ var CSidebar = React.forwardRef(function (_a, ref) {
|
|
|
8091
8121
|
_b.show = _visible === true && mobile,
|
|
8092
8122
|
_b.hide = _visible === false && !mobile,
|
|
8093
8123
|
_b), className);
|
|
8094
|
-
return (
|
|
8095
|
-
|
|
8124
|
+
return (React.createElement(React.Fragment, null,
|
|
8125
|
+
React.createElement("div", __assign({ className: _className }, rest, { ref: forkedRef }), children),
|
|
8096
8126
|
typeof window !== 'undefined' &&
|
|
8097
8127
|
mobile &&
|
|
8098
|
-
ReactDOM.createPortal(
|
|
8128
|
+
ReactDOM.createPortal(React.createElement(CBackdrop, { className: "sidebar-backdrop", visible: _visible }), document.body)));
|
|
8099
8129
|
});
|
|
8100
8130
|
CSidebar.propTypes = {
|
|
8101
8131
|
children: propTypes.exports.node,
|
|
@@ -8115,7 +8145,7 @@ CSidebar.displayName = 'CSidebar';
|
|
|
8115
8145
|
var CSidebarBrand = React.forwardRef(function (_a, ref) {
|
|
8116
8146
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
8117
8147
|
var _className = classNames('sidebar-brand', className);
|
|
8118
|
-
return (
|
|
8148
|
+
return (React.createElement("div", __assign({ className: _className, ref: ref }, rest), children));
|
|
8119
8149
|
});
|
|
8120
8150
|
CSidebarBrand.propTypes = {
|
|
8121
8151
|
children: propTypes.exports.node,
|
|
@@ -8126,7 +8156,7 @@ CSidebarBrand.displayName = 'CSidebarBrand';
|
|
|
8126
8156
|
var CSidebarFooter = React.forwardRef(function (_a, ref) {
|
|
8127
8157
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
8128
8158
|
var _className = classNames('sidebar-footer', className);
|
|
8129
|
-
return (
|
|
8159
|
+
return (React.createElement("div", __assign({ className: _className, ref: ref }, rest), children));
|
|
8130
8160
|
});
|
|
8131
8161
|
CSidebarFooter.propTypes = {
|
|
8132
8162
|
children: propTypes.exports.node,
|
|
@@ -8137,7 +8167,7 @@ CSidebarFooter.displayName = 'CSidebarFooter';
|
|
|
8137
8167
|
var CSidebarToggler = React.forwardRef(function (_a, ref) {
|
|
8138
8168
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
8139
8169
|
var _className = classNames('sidebar-toggler', className);
|
|
8140
|
-
return (
|
|
8170
|
+
return (React.createElement("button", __assign({ className: _className, ref: ref }, rest), children));
|
|
8141
8171
|
});
|
|
8142
8172
|
CSidebarToggler.propTypes = {
|
|
8143
8173
|
children: propTypes.exports.node,
|
|
@@ -8148,7 +8178,7 @@ CSidebarToggler.displayName = 'CSidebarToggler';
|
|
|
8148
8178
|
var CSidebarHeader = React.forwardRef(function (_a, ref) {
|
|
8149
8179
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
8150
8180
|
var _className = classNames('sidebar-header', className);
|
|
8151
|
-
return (
|
|
8181
|
+
return (React.createElement("div", __assign({ className: _className, ref: ref }, rest), children));
|
|
8152
8182
|
});
|
|
8153
8183
|
CSidebarHeader.propTypes = {
|
|
8154
8184
|
children: propTypes.exports.node,
|
|
@@ -8159,8 +8189,8 @@ CSidebarHeader.displayName = 'CSidebarHeader';
|
|
|
8159
8189
|
var CSpinner = React.forwardRef(function (_a, ref) {
|
|
8160
8190
|
var className = _a.className, color = _a.color, _b = _a.component, Component = _b === void 0 ? 'div' : _b, size = _a.size, _c = _a.variant, variant = _c === void 0 ? 'border' : _c, _d = _a.visuallyHiddenLabel, visuallyHiddenLabel = _d === void 0 ? 'Loading...' : _d, rest = __rest(_a, ["className", "color", "component", "size", "variant", "visuallyHiddenLabel"]);
|
|
8161
8191
|
var _className = classNames("spinner-".concat(variant), "text-".concat(color), size && "spinner-".concat(variant, "-").concat(size), className);
|
|
8162
|
-
return (
|
|
8163
|
-
|
|
8192
|
+
return (React.createElement(Component, __assign({ className: _className, role: "status" }, rest, { ref: ref }),
|
|
8193
|
+
React.createElement("span", { className: "visually-hidden" }, visuallyHiddenLabel)));
|
|
8164
8194
|
});
|
|
8165
8195
|
CSpinner.propTypes = {
|
|
8166
8196
|
className: propTypes.exports.string,
|
|
@@ -8178,7 +8208,7 @@ var CTableHead = React.forwardRef(function (_a, ref) {
|
|
|
8178
8208
|
var _className = classNames((_b = {},
|
|
8179
8209
|
_b["table-".concat(color)] = color,
|
|
8180
8210
|
_b), className);
|
|
8181
|
-
return (
|
|
8211
|
+
return (React.createElement("thead", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
8182
8212
|
});
|
|
8183
8213
|
CTableHead.propTypes = {
|
|
8184
8214
|
children: propTypes.exports.node,
|
|
@@ -8193,7 +8223,7 @@ var CTableHeaderCell = React.forwardRef(function (_a, ref) {
|
|
|
8193
8223
|
var _className = classNames((_b = {},
|
|
8194
8224
|
_b["table-".concat(color)] = color,
|
|
8195
8225
|
_b), className);
|
|
8196
|
-
return (
|
|
8226
|
+
return (React.createElement("th", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
8197
8227
|
});
|
|
8198
8228
|
CTableHeaderCell.propTypes = {
|
|
8199
8229
|
children: propTypes.exports.node,
|
|
@@ -8208,7 +8238,7 @@ var CTableBody = React.forwardRef(function (_a, ref) {
|
|
|
8208
8238
|
var _className = classNames((_b = {},
|
|
8209
8239
|
_b["table-".concat(color)] = color,
|
|
8210
8240
|
_b), className);
|
|
8211
|
-
return (
|
|
8241
|
+
return (React.createElement("tbody", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
8212
8242
|
});
|
|
8213
8243
|
CTableBody.propTypes = {
|
|
8214
8244
|
children: propTypes.exports.node,
|
|
@@ -8226,7 +8256,7 @@ var CTableDataCell = React.forwardRef(function (_a, ref) {
|
|
|
8226
8256
|
_b["table-".concat(color)] = color,
|
|
8227
8257
|
_b), className);
|
|
8228
8258
|
var Component = rest.scope ? 'th' : 'td';
|
|
8229
|
-
return (
|
|
8259
|
+
return (React.createElement(Component, __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
8230
8260
|
});
|
|
8231
8261
|
CTableDataCell.propTypes = {
|
|
8232
8262
|
active: propTypes.exports.bool,
|
|
@@ -8245,7 +8275,7 @@ var CTableRow = React.forwardRef(function (_a, ref) {
|
|
|
8245
8275
|
_b['table-active'] = active,
|
|
8246
8276
|
_b["table-".concat(color)] = color,
|
|
8247
8277
|
_b), className);
|
|
8248
|
-
return (
|
|
8278
|
+
return (React.createElement("tr", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
8249
8279
|
});
|
|
8250
8280
|
CTableRow.propTypes = {
|
|
8251
8281
|
active: propTypes.exports.bool,
|
|
@@ -8262,7 +8292,7 @@ var CTableFoot = React.forwardRef(function (_a, ref) {
|
|
|
8262
8292
|
var _className = classNames((_b = {},
|
|
8263
8293
|
_b["table-".concat(color)] = color,
|
|
8264
8294
|
_b), className);
|
|
8265
|
-
return (
|
|
8295
|
+
return (React.createElement("tfoot", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
8266
8296
|
});
|
|
8267
8297
|
CTableFoot.propTypes = {
|
|
8268
8298
|
children: propTypes.exports.node,
|
|
@@ -8273,7 +8303,7 @@ CTableFoot.displayName = 'CTableFoot';
|
|
|
8273
8303
|
|
|
8274
8304
|
var CTableCaption = React.forwardRef(function (_a, ref) {
|
|
8275
8305
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
8276
|
-
return (
|
|
8306
|
+
return (React.createElement("caption", __assign({}, props, { ref: ref }), children));
|
|
8277
8307
|
});
|
|
8278
8308
|
CTableCaption.propTypes = {
|
|
8279
8309
|
children: propTypes.exports.node,
|
|
@@ -8282,7 +8312,7 @@ CTableCaption.displayName = 'CTableCaption';
|
|
|
8282
8312
|
|
|
8283
8313
|
var CTableResponsiveWrapper = function (_a) {
|
|
8284
8314
|
var children = _a.children, responsive = _a.responsive, rest = __rest(_a, ["children", "responsive"]);
|
|
8285
|
-
return responsive ? (
|
|
8315
|
+
return responsive ? (React.createElement("div", __assign({ className: typeof responsive === 'boolean' ? 'table-responsive' : "table-responsive-".concat(responsive) }, rest), children)) : (children);
|
|
8286
8316
|
};
|
|
8287
8317
|
CTableResponsiveWrapper.propTypes = {
|
|
8288
8318
|
children: propTypes.exports.any,
|
|
@@ -8332,17 +8362,17 @@ var CTable = React.forwardRef(function (_a, ref) {
|
|
|
8332
8362
|
: pretifyName(column.key)
|
|
8333
8363
|
: pretifyName(column);
|
|
8334
8364
|
};
|
|
8335
|
-
return (
|
|
8336
|
-
|
|
8337
|
-
((caption && caption !== 'top') || captionTop) && (
|
|
8338
|
-
columns && (
|
|
8339
|
-
|
|
8340
|
-
items && (
|
|
8341
|
-
return item[colName] ? (
|
|
8365
|
+
return (React.createElement(CTableResponsiveWrapper, { responsive: responsive },
|
|
8366
|
+
React.createElement("table", __assign({ className: _className }, rest, { ref: ref }),
|
|
8367
|
+
((caption && caption !== 'top') || captionTop) && (React.createElement(CTableCaption, null, caption || captionTop)),
|
|
8368
|
+
columns && (React.createElement(CTableHead, __assign({}, tableHeadProps),
|
|
8369
|
+
React.createElement(CTableRow, null, columns.map(function (column, index) { return (React.createElement(CTableHeaderCell, __assign({}, (column._props && __assign({}, column._props)), (column._style && { style: __assign({}, column._style) }), { key: index }), label(column))); })))),
|
|
8370
|
+
items && (React.createElement(CTableBody, null, items.map(function (item, index) { return (React.createElement(CTableRow, __assign({}, (item._props && __assign({}, item._props)), { key: index }), rawColumnNames.map(function (colName, index) {
|
|
8371
|
+
return item[colName] ? (React.createElement(CTableDataCell, __assign({}, (item._cellProps && __assign(__assign({}, (item._cellProps['all'] && __assign({}, item._cellProps['all']))), (item._cellProps[colName] && __assign({}, item._cellProps[colName])))), { key: index }), item[colName])) : null;
|
|
8342
8372
|
}))); }))),
|
|
8343
8373
|
children,
|
|
8344
|
-
footer && (
|
|
8345
|
-
|
|
8374
|
+
footer && (React.createElement(CTableFoot, __assign({}, tableFootProps),
|
|
8375
|
+
React.createElement(CTableRow, null, footer.map(function (item, index) { return (React.createElement(CTableDataCell, __assign({}, (item._props && __assign({}, item._props)), { key: index }), typeof item === 'object' ? item.label : item)); })))))));
|
|
8346
8376
|
});
|
|
8347
8377
|
CTable.propTypes = {
|
|
8348
8378
|
align: propTypes.exports.oneOf(['bottom', 'middle', 'top']),
|
|
@@ -8373,7 +8403,7 @@ CTable.displayName = 'CTable';
|
|
|
8373
8403
|
var CTabContent = React.forwardRef(function (_a, ref) {
|
|
8374
8404
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
8375
8405
|
var _className = classNames('tab-content', className);
|
|
8376
|
-
return (
|
|
8406
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
8377
8407
|
});
|
|
8378
8408
|
CTabContent.propTypes = {
|
|
8379
8409
|
children: propTypes.exports.node,
|
|
@@ -8391,9 +8421,9 @@ var CTabPane = React.forwardRef(function (_a, ref) {
|
|
|
8391
8421
|
var _className = classNames('tab-pane', 'fade', {
|
|
8392
8422
|
active: visible,
|
|
8393
8423
|
}, className);
|
|
8394
|
-
return (
|
|
8424
|
+
return (React.createElement(Transition, { in: visible, nodeRef: tabPaneRef, onEnter: onShow, onExit: onHide, timeout: 150 }, function (state) {
|
|
8395
8425
|
var transitionClass = getTransitionClass(state);
|
|
8396
|
-
return (
|
|
8426
|
+
return (React.createElement("div", __assign({ className: classNames(_className, transitionClass) }, rest, { ref: forkedRef }), children));
|
|
8397
8427
|
}));
|
|
8398
8428
|
});
|
|
8399
8429
|
CTabPane.propTypes = {
|
|
@@ -8448,10 +8478,10 @@ var CToast = React.forwardRef(function (_a, ref) {
|
|
|
8448
8478
|
? 'showing'
|
|
8449
8479
|
: 'fade';
|
|
8450
8480
|
};
|
|
8451
|
-
return (
|
|
8481
|
+
return (React.createElement(Transition, { in: _visible, nodeRef: toastRef, onEnter: function () { return onShow && onShow(index ? index : null); }, onExited: function () { return onClose && onClose(index ? index : null); }, timeout: 250, unmountOnExit: true }, function (state) {
|
|
8452
8482
|
var transitionClass = getTransitionClass(state);
|
|
8453
|
-
return (
|
|
8454
|
-
|
|
8483
|
+
return (React.createElement(CToastContext.Provider, { value: contextValues },
|
|
8484
|
+
React.createElement("div", __assign({ className: classNames(_className, transitionClass), "aria-live": "assertive", "aria-atomic": "true", role: "alert", onMouseEnter: function () { return clearTimeout(timeout.current); }, onMouseLeave: function () { return _autohide(); } }, rest, { key: key, ref: forkedRef }), children)));
|
|
8455
8485
|
}));
|
|
8456
8486
|
});
|
|
8457
8487
|
CToast.propTypes = {
|
|
@@ -8472,7 +8502,7 @@ CToast.displayName = 'CToast';
|
|
|
8472
8502
|
var CToastBody = React.forwardRef(function (_a, ref) {
|
|
8473
8503
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
8474
8504
|
var _className = classNames('toast-body', className);
|
|
8475
|
-
return (
|
|
8505
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
8476
8506
|
});
|
|
8477
8507
|
CToastBody.propTypes = {
|
|
8478
8508
|
children: propTypes.exports.node,
|
|
@@ -8483,7 +8513,7 @@ CToastBody.displayName = 'CToastBody';
|
|
|
8483
8513
|
var CToastClose = React.forwardRef(function (_a, ref) {
|
|
8484
8514
|
var children = _a.children, Component = _a.component, rest = __rest(_a, ["children", "component"]);
|
|
8485
8515
|
var setVisible = React.useContext(CToastContext).setVisible;
|
|
8486
|
-
return Component ? (
|
|
8516
|
+
return Component ? (React.createElement(Component, __assign({ onClick: function () { return setVisible(false); } }, rest, { ref: ref }), children)) : (React.createElement(CCloseButton, __assign({ onClick: function () { return setVisible(false); } }, rest, { ref: ref })));
|
|
8487
8517
|
});
|
|
8488
8518
|
CToastClose.propTypes = __assign(__assign({}, CCloseButton.propTypes), { component: propTypes.exports.elementType });
|
|
8489
8519
|
CToastClose.displayName = 'CToastClose';
|
|
@@ -8491,9 +8521,9 @@ CToastClose.displayName = 'CToastClose';
|
|
|
8491
8521
|
var CToastHeader = React.forwardRef(function (_a, ref) {
|
|
8492
8522
|
var children = _a.children, className = _a.className, closeButton = _a.closeButton, rest = __rest(_a, ["children", "className", "closeButton"]);
|
|
8493
8523
|
var _className = classNames('toast-header', className);
|
|
8494
|
-
return (
|
|
8524
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
8495
8525
|
children,
|
|
8496
|
-
closeButton &&
|
|
8526
|
+
closeButton && React.createElement(CToastClose, null)));
|
|
8497
8527
|
});
|
|
8498
8528
|
CToastHeader.propTypes = {
|
|
8499
8529
|
children: propTypes.exports.node,
|
|
@@ -8512,7 +8542,7 @@ var CToaster = React.forwardRef(function (_a, ref) {
|
|
|
8512
8542
|
}, [push]);
|
|
8513
8543
|
var addToast = function (push) {
|
|
8514
8544
|
setToasts(function (state) { return __spreadArray(__spreadArray([], state, true), [
|
|
8515
|
-
|
|
8545
|
+
React.cloneElement(push, {
|
|
8516
8546
|
index: index.current,
|
|
8517
8547
|
key: index.current,
|
|
8518
8548
|
onClose: function (index) {
|
|
@@ -8531,9 +8561,9 @@ var CToaster = React.forwardRef(function (_a, ref) {
|
|
|
8531
8561
|
'end-0': placement && placement.includes('end'),
|
|
8532
8562
|
}, className);
|
|
8533
8563
|
var toaster = function (ref) {
|
|
8534
|
-
return toasts.length > 0 || children ? (
|
|
8564
|
+
return toasts.length > 0 || children ? (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
8535
8565
|
children,
|
|
8536
|
-
toasts.map(function (toast) { return
|
|
8566
|
+
toasts.map(function (toast) { return React.cloneElement(toast, { visible: true }); }))) : null;
|
|
8537
8567
|
};
|
|
8538
8568
|
return typeof window !== 'undefined' && placement
|
|
8539
8569
|
? ReactDOM.createPortal(toaster(ref), document.body)
|
|
@@ -8588,8 +8618,8 @@ var CTooltip = function (_a) {
|
|
|
8588
8618
|
? 'fade'
|
|
8589
8619
|
: 'fade';
|
|
8590
8620
|
};
|
|
8591
|
-
return (
|
|
8592
|
-
|
|
8621
|
+
return (React.createElement(React.Fragment, null,
|
|
8622
|
+
React.cloneElement(children, __assign(__assign(__assign({ ref: setReferenceElement }, ((trigger === 'click' || trigger.includes('click')) && {
|
|
8593
8623
|
onClick: function () { return setVisible(!_visible); },
|
|
8594
8624
|
})), ((trigger === 'focus' || trigger.includes('focus')) && {
|
|
8595
8625
|
onFocus: function () { return setVisible(true); },
|
|
@@ -8599,14 +8629,14 @@ var CTooltip = function (_a) {
|
|
|
8599
8629
|
onMouseLeave: function () { return setVisible(false); },
|
|
8600
8630
|
}))),
|
|
8601
8631
|
typeof window !== 'undefined' &&
|
|
8602
|
-
ReactDOM.createPortal(
|
|
8632
|
+
ReactDOM.createPortal(React.createElement(Transition, { in: _visible, mountOnEnter: true, nodeRef: tooltipRef, onEnter: onShow, onExit: onHide, timeout: {
|
|
8603
8633
|
enter: 0,
|
|
8604
8634
|
exit: 200,
|
|
8605
8635
|
}, unmountOnExit: true }, function (state) {
|
|
8606
8636
|
var transitionClass = getTransitionClass(state);
|
|
8607
|
-
return (
|
|
8608
|
-
|
|
8609
|
-
|
|
8637
|
+
return (React.createElement("div", __assign({ className: classNames("tooltip bs-tooltip-".concat(placement === 'left' ? 'start' : placement === 'right' ? 'end' : placement), transitionClass), ref: setPopperElement, role: "tooltip", style: styles.popper }, attributes.popper, rest),
|
|
8638
|
+
React.createElement("div", { className: "tooltip-arrow", style: styles.arrow, ref: setArrowElement }),
|
|
8639
|
+
React.createElement("div", { className: "tooltip-inner" }, content)));
|
|
8610
8640
|
}), document.body)));
|
|
8611
8641
|
};
|
|
8612
8642
|
CTooltip.propTypes = {
|
|
@@ -8625,11 +8655,11 @@ var CWidgetStatsA = React.forwardRef(function (_a, ref) {
|
|
|
8625
8655
|
var _b;
|
|
8626
8656
|
var action = _a.action, chart = _a.chart, className = _a.className, color = _a.color, title = _a.title, value = _a.value, rest = __rest(_a, ["action", "chart", "className", "color", "title", "value"]);
|
|
8627
8657
|
var _className = classNames((_b = {}, _b["bg-".concat(color)] = color, _b['text-high-emphasis-inverse'] = color, _b), className);
|
|
8628
|
-
return (
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
value &&
|
|
8632
|
-
title &&
|
|
8658
|
+
return (React.createElement(CCard, __assign({ className: _className }, rest, { ref: ref }),
|
|
8659
|
+
React.createElement(CCardBody, { className: "pb-0 d-flex justify-content-between align-items-start" },
|
|
8660
|
+
React.createElement("div", null,
|
|
8661
|
+
value && React.createElement("div", { className: "fs-4 fw-semibold" }, value),
|
|
8662
|
+
title && React.createElement("div", null, title)),
|
|
8633
8663
|
action),
|
|
8634
8664
|
chart));
|
|
8635
8665
|
});
|
|
@@ -8645,12 +8675,12 @@ CWidgetStatsA.displayName = 'CWidgetStatsA';
|
|
|
8645
8675
|
|
|
8646
8676
|
var CWidgetStatsB = React.forwardRef(function (_a, ref) {
|
|
8647
8677
|
var className = _a.className, color = _a.color, inverse = _a.inverse, progress = _a.progress, text = _a.text, title = _a.title, value = _a.value, rest = __rest(_a, ["className", "color", "inverse", "progress", "text", "title", "value"]);
|
|
8648
|
-
return (
|
|
8649
|
-
|
|
8650
|
-
value &&
|
|
8651
|
-
title &&
|
|
8652
|
-
|
|
8653
|
-
text && (
|
|
8678
|
+
return (React.createElement(CCard, __assign({ className: className, color: color }, (inverse && { textColor: 'high-emphasis-inverse' }), rest, { ref: ref }),
|
|
8679
|
+
React.createElement(CCardBody, null,
|
|
8680
|
+
value && React.createElement("div", { className: "fs-4 fw-semibold" }, value),
|
|
8681
|
+
title && React.createElement("div", null, title),
|
|
8682
|
+
React.createElement(CProgress, __assign({ className: "my-2", height: 4 }, (inverse && { white: true }), progress)),
|
|
8683
|
+
text && (React.createElement("small", { className: inverse ? 'text-medium-emphasis-inverse' : 'text-medium-emphasis' }, text)))));
|
|
8654
8684
|
});
|
|
8655
8685
|
CWidgetStatsB.propTypes = {
|
|
8656
8686
|
className: propTypes.exports.string,
|
|
@@ -8665,12 +8695,12 @@ CWidgetStatsB.displayName = 'CWidgetCWidgetStatsB';
|
|
|
8665
8695
|
|
|
8666
8696
|
var CWidgetStatsC = React.forwardRef(function (_a, ref) {
|
|
8667
8697
|
var className = _a.className, color = _a.color, icon = _a.icon, inverse = _a.inverse, progress = _a.progress, title = _a.title, value = _a.value, rest = __rest(_a, ["className", "color", "icon", "inverse", "progress", "title", "value"]);
|
|
8668
|
-
return (
|
|
8669
|
-
|
|
8670
|
-
icon && (
|
|
8671
|
-
value && (
|
|
8672
|
-
title && (
|
|
8673
|
-
|
|
8698
|
+
return (React.createElement(CCard, __assign({ className: className, color: color }, (inverse && { textColor: 'high-emphasis-inverse' }), rest, { ref: ref }),
|
|
8699
|
+
React.createElement(CCardBody, null,
|
|
8700
|
+
icon && (React.createElement("div", { className: "text-medium-emphasis".concat(inverse ? '-inverse' : '', " text-end mb-4") }, icon)),
|
|
8701
|
+
value && (React.createElement("div", { className: "text-high-emphasis".concat(inverse ? '-inverse' : '', " fs-4 fw-semibold") }, value)),
|
|
8702
|
+
title && (React.createElement("div", { className: inverse ? 'text-medium-emphasis-inverse' : 'text-medium-emphasis' }, title)),
|
|
8703
|
+
React.createElement(CProgress, __assign({ className: "mt-3 mb-0", height: 4 }, (inverse && { white: true }), progress)))));
|
|
8674
8704
|
});
|
|
8675
8705
|
CWidgetStatsC.propTypes = {
|
|
8676
8706
|
className: propTypes.exports.string,
|
|
@@ -8690,17 +8720,17 @@ var CWidgetStatsD = React.forwardRef(function (_a, ref) {
|
|
|
8690
8720
|
var classNameHeader = classNames('position-relative d-flex justify-content-center align-items-center', (_b = {},
|
|
8691
8721
|
_b["bg-".concat(color)] = color,
|
|
8692
8722
|
_b));
|
|
8693
|
-
return (
|
|
8694
|
-
|
|
8723
|
+
return (React.createElement(CCard, __assign({ className: _className }, rest, { ref: ref }),
|
|
8724
|
+
React.createElement(CCardHeader, { className: classNameHeader },
|
|
8695
8725
|
icon,
|
|
8696
8726
|
chart),
|
|
8697
|
-
|
|
8727
|
+
React.createElement(CCardBody, { className: "row text-center" }, values &&
|
|
8698
8728
|
values.map(function (value, index) {
|
|
8699
|
-
return (
|
|
8700
|
-
index % 2 !== 0 &&
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8729
|
+
return (React.createElement(React.Fragment, { key: index },
|
|
8730
|
+
index % 2 !== 0 && React.createElement("div", { className: "vr" }),
|
|
8731
|
+
React.createElement(CCol, null,
|
|
8732
|
+
React.createElement("div", { className: "fs-5 fw-semibold" }, value.value),
|
|
8733
|
+
React.createElement("div", { className: "text-uppercase text-medium-emphasis small" }, value.title))));
|
|
8704
8734
|
}))));
|
|
8705
8735
|
});
|
|
8706
8736
|
CWidgetStatsD.propTypes = {
|
|
@@ -8715,10 +8745,10 @@ CWidgetStatsD.displayName = 'CWidgetStatsD';
|
|
|
8715
8745
|
var CWidgetStatsE = React.forwardRef(function (_a, ref) {
|
|
8716
8746
|
var chart = _a.chart, className = _a.className, title = _a.title, value = _a.value, rest = __rest(_a, ["chart", "className", "title", "value"]);
|
|
8717
8747
|
var _className = classNames(className);
|
|
8718
|
-
return (
|
|
8719
|
-
|
|
8720
|
-
title && (
|
|
8721
|
-
value &&
|
|
8748
|
+
return (React.createElement(CCard, __assign({ className: _className }, rest, { ref: ref }),
|
|
8749
|
+
React.createElement(CCardBody, { className: "text-center" },
|
|
8750
|
+
title && (React.createElement("div", { className: "text-medium-emphasis small text-uppercase fw-semibold" }, title)),
|
|
8751
|
+
value && React.createElement("div", { className: "fs-6 fw-semibold py-3" }, value),
|
|
8722
8752
|
chart)));
|
|
8723
8753
|
});
|
|
8724
8754
|
CWidgetStatsE.propTypes = {
|
|
@@ -8733,13 +8763,13 @@ CWidgetStatsE.displayName = 'CWidgetStatsE';
|
|
|
8733
8763
|
var CWidgetStatsF = React.forwardRef(function (_a, ref) {
|
|
8734
8764
|
var className = _a.className, color = _a.color, footer = _a.footer, icon = _a.icon, _b = _a.padding, padding = _b === void 0 ? true : _b, title = _a.title, value = _a.value, rest = __rest(_a, ["className", "color", "footer", "icon", "padding", "title", "value"]);
|
|
8735
8765
|
var _className = classNames(className);
|
|
8736
|
-
return (
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
footer &&
|
|
8766
|
+
return (React.createElement(CCard, __assign({ className: _className }, rest, { ref: ref }),
|
|
8767
|
+
React.createElement(CCardBody, { className: "d-flex align-items-center ".concat(padding === false && 'p-0') },
|
|
8768
|
+
React.createElement("div", { className: "me-3 text-white bg-".concat(color, " ").concat(padding ? 'p-3' : 'p-4') }, icon),
|
|
8769
|
+
React.createElement("div", null,
|
|
8770
|
+
React.createElement("div", { className: "fs-6 fw-semibold text-".concat(color) }, value),
|
|
8771
|
+
React.createElement("div", { className: "text-medium-emphasis text-uppercase fw-semibold small" }, title))),
|
|
8772
|
+
footer && React.createElement(CCardFooter, null, footer)));
|
|
8743
8773
|
});
|
|
8744
8774
|
CWidgetStatsF.propTypes = {
|
|
8745
8775
|
className: propTypes.exports.string,
|
|
@@ -8798,6 +8828,8 @@ exports.CDropdownToggle = CDropdownToggle;
|
|
|
8798
8828
|
exports.CFooter = CFooter;
|
|
8799
8829
|
exports.CForm = CForm;
|
|
8800
8830
|
exports.CFormCheck = CFormCheck;
|
|
8831
|
+
exports.CFormControlValidation = CFormControlValidation;
|
|
8832
|
+
exports.CFormControlWrapper = CFormControlWrapper;
|
|
8801
8833
|
exports.CFormFeedback = CFormFeedback;
|
|
8802
8834
|
exports.CFormFloating = CFormFloating;
|
|
8803
8835
|
exports.CFormInput = CFormInput;
|