@coreui/react 4.4.0 → 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 +3 -3
- 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 +1 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +300 -310
- package/dist/index.js.map +1 -1
- package/dist/utils/hooks/useForkedRef.d.ts +1 -1
- package/package.json +9 -10
- package/src/components/button/CButton.tsx +3 -3
- 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/toast/CToastClose.tsx +4 -1
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.
|
|
@@ -1326,8 +1319,8 @@ var CAccordion = React.forwardRef(function (_a, ref) {
|
|
|
1326
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"]);
|
|
1327
1320
|
var _d = React.useState(activeItemKey), _activeItemKey = _d[0], setActiveKey = _d[1];
|
|
1328
1321
|
var _className = classNames('accordion', { 'accordion-flush': flush }, className);
|
|
1329
|
-
return (
|
|
1330
|
-
|
|
1322
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
1323
|
+
React.createElement(CAccordionContext.Provider, { value: { _activeItemKey: _activeItemKey, alwaysOpen: alwaysOpen, setActiveKey: setActiveKey } }, children)));
|
|
1331
1324
|
});
|
|
1332
1325
|
CAccordion.propTypes = {
|
|
1333
1326
|
alwaysOpen: propTypes.exports.bool,
|
|
@@ -1351,8 +1344,8 @@ var CAccordionItem = React.forwardRef(function (_a, ref) {
|
|
|
1351
1344
|
setVisible(Boolean(_activeItemKey === _itemKey.current));
|
|
1352
1345
|
}, [_activeItemKey]);
|
|
1353
1346
|
var _className = classNames('accordion-item', className);
|
|
1354
|
-
return (
|
|
1355
|
-
|
|
1347
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
1348
|
+
React.createElement(CAccordionItemContext.Provider, { value: { setVisible: setVisible, visible: visible } }, children)));
|
|
1356
1349
|
});
|
|
1357
1350
|
CAccordionItem.propTypes = {
|
|
1358
1351
|
children: propTypes.exports.node,
|
|
@@ -1365,14 +1358,12 @@ function _extends() {
|
|
|
1365
1358
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
1366
1359
|
for (var i = 1; i < arguments.length; i++) {
|
|
1367
1360
|
var source = arguments[i];
|
|
1368
|
-
|
|
1369
1361
|
for (var key in source) {
|
|
1370
1362
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1371
1363
|
target[key] = source[key];
|
|
1372
1364
|
}
|
|
1373
1365
|
}
|
|
1374
1366
|
}
|
|
1375
|
-
|
|
1376
1367
|
return target;
|
|
1377
1368
|
};
|
|
1378
1369
|
return _extends.apply(this, arguments);
|
|
@@ -1383,13 +1374,11 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
1383
1374
|
var target = {};
|
|
1384
1375
|
var sourceKeys = Object.keys(source);
|
|
1385
1376
|
var key, i;
|
|
1386
|
-
|
|
1387
1377
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
1388
1378
|
key = sourceKeys[i];
|
|
1389
1379
|
if (excluded.indexOf(key) >= 0) continue;
|
|
1390
1380
|
target[key] = source[key];
|
|
1391
1381
|
}
|
|
1392
|
-
|
|
1393
1382
|
return target;
|
|
1394
1383
|
}
|
|
1395
1384
|
|
|
@@ -1472,7 +1461,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? propTypes.exports.
|
|
|
1472
1461
|
exitActive: propTypes.exports.string
|
|
1473
1462
|
})]) : null;
|
|
1474
1463
|
|
|
1475
|
-
var TransitionGroupContext =
|
|
1464
|
+
var TransitionGroupContext = React.createContext(null);
|
|
1476
1465
|
|
|
1477
1466
|
var forceReflow = function forceReflow(node) {
|
|
1478
1467
|
return node.scrollTop;
|
|
@@ -1698,7 +1687,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
1698
1687
|
|
|
1699
1688
|
if (nextStatus === ENTERING) {
|
|
1700
1689
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
1701
|
-
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
|
|
1702
1691
|
// With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.
|
|
1703
1692
|
// To make the animation happen, we have to separate each rendering and avoid being processed as batched.
|
|
1704
1693
|
|
|
@@ -1722,7 +1711,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
1722
1711
|
var enter = this.props.enter;
|
|
1723
1712
|
var appearing = this.context ? this.context.isMounting : mounting;
|
|
1724
1713
|
|
|
1725
|
-
var _ref2 = this.props.nodeRef ? [appearing] : [
|
|
1714
|
+
var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],
|
|
1726
1715
|
maybeNode = _ref2[0],
|
|
1727
1716
|
maybeAppearing = _ref2[1];
|
|
1728
1717
|
|
|
@@ -1760,7 +1749,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
1760
1749
|
|
|
1761
1750
|
var exit = this.props.exit;
|
|
1762
1751
|
var timeouts = this.getTimeouts();
|
|
1763
|
-
var maybeNode = this.props.nodeRef ? undefined :
|
|
1752
|
+
var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED
|
|
1764
1753
|
|
|
1765
1754
|
if (!exit || config.disabled) {
|
|
1766
1755
|
this.safeSetState({
|
|
@@ -1824,7 +1813,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
1824
1813
|
|
|
1825
1814
|
_proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
|
|
1826
1815
|
this.setNextCallback(handler);
|
|
1827
|
-
var node = this.props.nodeRef ? this.props.nodeRef.current :
|
|
1816
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
|
|
1828
1817
|
var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
|
|
1829
1818
|
|
|
1830
1819
|
if (!node || doesNotHaveTimeoutOrListener) {
|
|
@@ -1874,14 +1863,14 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
1874
1863
|
return (
|
|
1875
1864
|
/*#__PURE__*/
|
|
1876
1865
|
// allows for nested Transitions
|
|
1877
|
-
|
|
1866
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
1878
1867
|
value: null
|
|
1879
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
1868
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
1880
1869
|
);
|
|
1881
1870
|
};
|
|
1882
1871
|
|
|
1883
1872
|
return Transition;
|
|
1884
|
-
}(
|
|
1873
|
+
}(React.Component);
|
|
1885
1874
|
|
|
1886
1875
|
Transition.contextType = TransitionGroupContext;
|
|
1887
1876
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -2348,7 +2337,7 @@ var CSSTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
2348
2337
|
_this$props.classNames;
|
|
2349
2338
|
var props = _objectWithoutPropertiesLoose(_this$props, ["classNames"]);
|
|
2350
2339
|
|
|
2351
|
-
return /*#__PURE__*/
|
|
2340
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({}, props, {
|
|
2352
2341
|
onEnter: this.onEnter,
|
|
2353
2342
|
onEntered: this.onEntered,
|
|
2354
2343
|
onEntering: this.onEntering,
|
|
@@ -2359,7 +2348,7 @@ var CSSTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
2359
2348
|
};
|
|
2360
2349
|
|
|
2361
2350
|
return CSSTransition;
|
|
2362
|
-
}(
|
|
2351
|
+
}(React.Component);
|
|
2363
2352
|
|
|
2364
2353
|
CSSTransition.defaultProps = {
|
|
2365
2354
|
classNames: ''
|
|
@@ -2499,7 +2488,6 @@ function _assertThisInitialized(self) {
|
|
|
2499
2488
|
if (self === void 0) {
|
|
2500
2489
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2501
2490
|
}
|
|
2502
|
-
|
|
2503
2491
|
return self;
|
|
2504
2492
|
}
|
|
2505
2493
|
|
|
@@ -2750,18 +2738,18 @@ var TransitionGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
2750
2738
|
delete props.exit;
|
|
2751
2739
|
|
|
2752
2740
|
if (Component === null) {
|
|
2753
|
-
return /*#__PURE__*/
|
|
2741
|
+
return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {
|
|
2754
2742
|
value: contextValue
|
|
2755
2743
|
}, children);
|
|
2756
2744
|
}
|
|
2757
2745
|
|
|
2758
|
-
return /*#__PURE__*/
|
|
2746
|
+
return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {
|
|
2759
2747
|
value: contextValue
|
|
2760
|
-
}, /*#__PURE__*/
|
|
2748
|
+
}, /*#__PURE__*/React.createElement(Component, props, children));
|
|
2761
2749
|
};
|
|
2762
2750
|
|
|
2763
2751
|
return TransitionGroup;
|
|
2764
|
-
}(
|
|
2752
|
+
}(React.Component);
|
|
2765
2753
|
|
|
2766
2754
|
TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
2767
2755
|
/**
|
|
@@ -2904,11 +2892,11 @@ var ReplaceTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
2904
2892
|
var _child$props;
|
|
2905
2893
|
|
|
2906
2894
|
var children = this.props.children;
|
|
2907
|
-
var child =
|
|
2895
|
+
var child = React.Children.toArray(children)[idx];
|
|
2908
2896
|
if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);
|
|
2909
2897
|
|
|
2910
2898
|
if (this.props[handler]) {
|
|
2911
|
-
var maybeNode = child.props.nodeRef ? undefined :
|
|
2899
|
+
var maybeNode = child.props.nodeRef ? undefined : ReactDOM.findDOMNode(this);
|
|
2912
2900
|
this.props[handler](maybeNode);
|
|
2913
2901
|
}
|
|
2914
2902
|
};
|
|
@@ -2919,7 +2907,7 @@ var ReplaceTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
2919
2907
|
inProp = _this$props.in,
|
|
2920
2908
|
props = _objectWithoutPropertiesLoose(_this$props, ["children", "in"]);
|
|
2921
2909
|
|
|
2922
|
-
var _React$Children$toArr =
|
|
2910
|
+
var _React$Children$toArr = React.Children.toArray(children),
|
|
2923
2911
|
first = _React$Children$toArr[0],
|
|
2924
2912
|
second = _React$Children$toArr[1];
|
|
2925
2913
|
|
|
@@ -2929,12 +2917,12 @@ var ReplaceTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
2929
2917
|
delete props.onExit;
|
|
2930
2918
|
delete props.onExiting;
|
|
2931
2919
|
delete props.onExited;
|
|
2932
|
-
return /*#__PURE__*/
|
|
2920
|
+
return /*#__PURE__*/React.createElement(TransitionGroup, props, inProp ? React.cloneElement(first, {
|
|
2933
2921
|
key: 'first',
|
|
2934
2922
|
onEnter: this.handleEnter,
|
|
2935
2923
|
onEntering: this.handleEntering,
|
|
2936
2924
|
onEntered: this.handleEntered
|
|
2937
|
-
}) :
|
|
2925
|
+
}) : React.cloneElement(second, {
|
|
2938
2926
|
key: 'second',
|
|
2939
2927
|
onEnter: this.handleExit,
|
|
2940
2928
|
onEntering: this.handleExiting,
|
|
@@ -2943,12 +2931,12 @@ var ReplaceTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
2943
2931
|
};
|
|
2944
2932
|
|
|
2945
2933
|
return ReplaceTransition;
|
|
2946
|
-
}(
|
|
2934
|
+
}(React.Component);
|
|
2947
2935
|
|
|
2948
2936
|
ReplaceTransition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
2949
2937
|
in: propTypes.exports.bool.isRequired,
|
|
2950
2938
|
children: function children(props, propName) {
|
|
2951
|
-
if (
|
|
2939
|
+
if (React.Children.count(props[propName]) !== 2) return new Error("\"" + propName + "\" must be exactly two transition components.");
|
|
2952
2940
|
return null;
|
|
2953
2941
|
}
|
|
2954
2942
|
} : {};
|
|
@@ -2958,7 +2946,7 @@ var _leaveRenders, _enterRenders;
|
|
|
2958
2946
|
function areChildrenDifferent(oldChildren, newChildren) {
|
|
2959
2947
|
if (oldChildren === newChildren) return false;
|
|
2960
2948
|
|
|
2961
|
-
if (
|
|
2949
|
+
if (React.isValidElement(oldChildren) && React.isValidElement(newChildren) && oldChildren.key != null && oldChildren.key === newChildren.key) {
|
|
2962
2950
|
return false;
|
|
2963
2951
|
}
|
|
2964
2952
|
|
|
@@ -2987,7 +2975,7 @@ var callHook = function callHook(element, name, cb) {
|
|
|
2987
2975
|
var leaveRenders = (_leaveRenders = {}, _leaveRenders[modes.out] = function (_ref) {
|
|
2988
2976
|
var current = _ref.current,
|
|
2989
2977
|
changeState = _ref.changeState;
|
|
2990
|
-
return
|
|
2978
|
+
return React.cloneElement(current, {
|
|
2991
2979
|
in: false,
|
|
2992
2980
|
onExited: callHook(current, 'onExited', function () {
|
|
2993
2981
|
changeState(ENTERING, null);
|
|
@@ -2997,7 +2985,7 @@ var leaveRenders = (_leaveRenders = {}, _leaveRenders[modes.out] = function (_re
|
|
|
2997
2985
|
var current = _ref2.current,
|
|
2998
2986
|
changeState = _ref2.changeState,
|
|
2999
2987
|
children = _ref2.children;
|
|
3000
|
-
return [current,
|
|
2988
|
+
return [current, React.cloneElement(children, {
|
|
3001
2989
|
in: true,
|
|
3002
2990
|
onEntered: callHook(children, 'onEntered', function () {
|
|
3003
2991
|
changeState(ENTERING);
|
|
@@ -3007,10 +2995,10 @@ var leaveRenders = (_leaveRenders = {}, _leaveRenders[modes.out] = function (_re
|
|
|
3007
2995
|
var enterRenders = (_enterRenders = {}, _enterRenders[modes.out] = function (_ref3) {
|
|
3008
2996
|
var children = _ref3.children,
|
|
3009
2997
|
changeState = _ref3.changeState;
|
|
3010
|
-
return
|
|
2998
|
+
return React.cloneElement(children, {
|
|
3011
2999
|
in: true,
|
|
3012
3000
|
onEntered: callHook(children, 'onEntered', function () {
|
|
3013
|
-
changeState(ENTERED,
|
|
3001
|
+
changeState(ENTERED, React.cloneElement(children, {
|
|
3014
3002
|
in: true
|
|
3015
3003
|
}));
|
|
3016
3004
|
})
|
|
@@ -3019,14 +3007,14 @@ var enterRenders = (_enterRenders = {}, _enterRenders[modes.out] = function (_re
|
|
|
3019
3007
|
var current = _ref4.current,
|
|
3020
3008
|
children = _ref4.children,
|
|
3021
3009
|
changeState = _ref4.changeState;
|
|
3022
|
-
return [
|
|
3010
|
+
return [React.cloneElement(current, {
|
|
3023
3011
|
in: false,
|
|
3024
3012
|
onExited: callHook(current, 'onExited', function () {
|
|
3025
|
-
changeState(ENTERED,
|
|
3013
|
+
changeState(ENTERED, React.cloneElement(children, {
|
|
3026
3014
|
in: true
|
|
3027
3015
|
}));
|
|
3028
3016
|
})
|
|
3029
|
-
}),
|
|
3017
|
+
}), React.cloneElement(children, {
|
|
3030
3018
|
in: true
|
|
3031
3019
|
})];
|
|
3032
3020
|
}, _enterRenders);
|
|
@@ -3140,7 +3128,7 @@ var SwitchTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
3140
3128
|
}
|
|
3141
3129
|
|
|
3142
3130
|
return {
|
|
3143
|
-
current:
|
|
3131
|
+
current: React.cloneElement(props.children, {
|
|
3144
3132
|
in: true
|
|
3145
3133
|
})
|
|
3146
3134
|
};
|
|
@@ -3174,7 +3162,7 @@ var SwitchTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
3174
3162
|
component = current;
|
|
3175
3163
|
}
|
|
3176
3164
|
|
|
3177
|
-
return /*#__PURE__*/
|
|
3165
|
+
return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {
|
|
3178
3166
|
value: {
|
|
3179
3167
|
isMounting: !this.appeared
|
|
3180
3168
|
}
|
|
@@ -3182,7 +3170,7 @@ var SwitchTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
3182
3170
|
};
|
|
3183
3171
|
|
|
3184
3172
|
return SwitchTransition;
|
|
3185
|
-
}(
|
|
3173
|
+
}(React.Component);
|
|
3186
3174
|
|
|
3187
3175
|
SwitchTransition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
3188
3176
|
/**
|
|
@@ -3300,11 +3288,11 @@ var CCollapse = React.forwardRef(function (_a, ref) {
|
|
|
3300
3288
|
var _className = classNames({
|
|
3301
3289
|
'collapse-horizontal': horizontal,
|
|
3302
3290
|
}, className);
|
|
3303
|
-
return (
|
|
3291
|
+
return (React.createElement(CSSTransition, { in: visible, nodeRef: collapseRef, onEntering: onEntering, onEntered: onEntered, onExit: onExit, onExiting: onExiting, onExited: onExited, timeout: 350 }, function (state) {
|
|
3304
3292
|
var transitionClass = getTransitionClass(state);
|
|
3305
3293
|
var currentHeight = height === 0 ? null : { height: height };
|
|
3306
3294
|
var currentWidth = width === 0 ? null : { width: width };
|
|
3307
|
-
return (
|
|
3295
|
+
return (React.createElement("div", __assign({ className: classNames(_className, transitionClass), style: __assign(__assign({}, currentHeight), currentWidth) }, rest, { ref: forkedRef }), children));
|
|
3308
3296
|
}));
|
|
3309
3297
|
});
|
|
3310
3298
|
CCollapse.propTypes = {
|
|
@@ -3321,8 +3309,8 @@ var CAccordionBody = React.forwardRef(function (_a, ref) {
|
|
|
3321
3309
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3322
3310
|
var visible = React.useContext(CAccordionItemContext).visible;
|
|
3323
3311
|
var _className = classNames('accordion-body', className);
|
|
3324
|
-
return (
|
|
3325
|
-
|
|
3312
|
+
return (React.createElement(CCollapse, { className: "accordion-collpase", visible: visible },
|
|
3313
|
+
React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children)));
|
|
3326
3314
|
});
|
|
3327
3315
|
CAccordionBody.propTypes = {
|
|
3328
3316
|
children: propTypes.exports.node,
|
|
@@ -3334,7 +3322,7 @@ var CAccordionButton = React.forwardRef(function (_a, ref) {
|
|
|
3334
3322
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3335
3323
|
var _b = React.useContext(CAccordionItemContext), visible = _b.visible, setVisible = _b.setVisible;
|
|
3336
3324
|
var _className = classNames('accordion-button', { collapsed: !visible }, className);
|
|
3337
|
-
return (
|
|
3325
|
+
return (React.createElement("button", __assign({ type: "button", className: _className, "aria-expanded": !visible, onClick: function () { return setVisible(!visible); } }, rest, { ref: ref }), children));
|
|
3338
3326
|
});
|
|
3339
3327
|
CAccordionButton.propTypes = {
|
|
3340
3328
|
children: propTypes.exports.node,
|
|
@@ -3344,7 +3332,7 @@ CAccordionButton.displayName = 'CAccordionButton';
|
|
|
3344
3332
|
|
|
3345
3333
|
var CAccordionCollapse = React.forwardRef(function (_a, ref) {
|
|
3346
3334
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
3347
|
-
return (
|
|
3335
|
+
return (React.createElement(CCollapse, __assign({ className: "accordion-collapse" }, props, { ref: ref }), children));
|
|
3348
3336
|
});
|
|
3349
3337
|
CAccordionCollapse.propTypes = {
|
|
3350
3338
|
children: propTypes.exports.node,
|
|
@@ -3354,8 +3342,8 @@ CAccordionCollapse.displayName = 'CAccordionCollapse';
|
|
|
3354
3342
|
var CAccordionHeader = React.forwardRef(function (_a, ref) {
|
|
3355
3343
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3356
3344
|
var _className = classNames('accordion-header', className);
|
|
3357
|
-
return (
|
|
3358
|
-
|
|
3345
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
3346
|
+
React.createElement(CAccordionButton, null, children)));
|
|
3359
3347
|
});
|
|
3360
3348
|
CAccordionHeader.propTypes = {
|
|
3361
3349
|
children: propTypes.exports.node,
|
|
@@ -3421,7 +3409,7 @@ var CCloseButton = React.forwardRef(function (_a, ref) {
|
|
|
3421
3409
|
var _className = classNames('btn', 'btn-close', {
|
|
3422
3410
|
'btn-close-white': white,
|
|
3423
3411
|
}, disabled, className);
|
|
3424
|
-
return (
|
|
3412
|
+
return (React.createElement("button", __assign({ type: "button", className: _className, "aria-label": "Close", disabled: disabled }, rest, { ref: ref })));
|
|
3425
3413
|
});
|
|
3426
3414
|
CCloseButton.propTypes = {
|
|
3427
3415
|
className: propTypes.exports.string,
|
|
@@ -3444,11 +3432,11 @@ var CAlert = React.forwardRef(function (_a, ref) {
|
|
|
3444
3432
|
var getTransitionClass = function (state) {
|
|
3445
3433
|
return state === 'entered' && 'show';
|
|
3446
3434
|
};
|
|
3447
|
-
return (
|
|
3435
|
+
return (React.createElement(Transition, { in: _visible, mountOnEnter: true, nodeRef: alertRef, onExit: onClose, timeout: 150, unmountOnExit: true }, function (state) {
|
|
3448
3436
|
var transitionClass = getTransitionClass(state);
|
|
3449
|
-
return (
|
|
3437
|
+
return (React.createElement("div", __assign({ className: classNames(_className, transitionClass), role: "alert" }, rest, { ref: forkedRef }),
|
|
3450
3438
|
children,
|
|
3451
|
-
dismissible &&
|
|
3439
|
+
dismissible && React.createElement(CCloseButton, { onClick: function () { return setVisible(false); } })));
|
|
3452
3440
|
}));
|
|
3453
3441
|
});
|
|
3454
3442
|
CAlert.propTypes = {
|
|
@@ -3465,7 +3453,7 @@ CAlert.displayName = 'CAlert';
|
|
|
3465
3453
|
var CAlertHeading = React.forwardRef(function (_a, ref) {
|
|
3466
3454
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'h4' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
3467
3455
|
var _className = classNames('alert-heading', className);
|
|
3468
|
-
return (
|
|
3456
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3469
3457
|
});
|
|
3470
3458
|
CAlertHeading.propTypes = {
|
|
3471
3459
|
children: propTypes.exports.node,
|
|
@@ -3478,7 +3466,7 @@ var CLink = React.forwardRef(function (_a, ref) {
|
|
|
3478
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"]);
|
|
3479
3467
|
// TODO: remove duplicated classes ex. `active active` in `<CListGroupItem>`
|
|
3480
3468
|
var _className = classNames(className, { active: active, disabled: disabled });
|
|
3481
|
-
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') && {
|
|
3482
3470
|
onClick: function (event) {
|
|
3483
3471
|
event.preventDefault;
|
|
3484
3472
|
!disabled && rest.onClick && rest.onClick(event);
|
|
@@ -3497,7 +3485,7 @@ CLink.displayName = 'CLink';
|
|
|
3497
3485
|
var CAlertLink = React.forwardRef(function (_a, ref) {
|
|
3498
3486
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3499
3487
|
var _className = classNames('alert-link', className);
|
|
3500
|
-
return (
|
|
3488
|
+
return (React.createElement(CLink, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3501
3489
|
});
|
|
3502
3490
|
CAlertLink.propTypes = {
|
|
3503
3491
|
children: propTypes.exports.node,
|
|
@@ -3514,9 +3502,9 @@ var CAvatar = React.forwardRef(function (_a, ref) {
|
|
|
3514
3502
|
_b["text-".concat(textColor)] = textColor,
|
|
3515
3503
|
_b), shape, className);
|
|
3516
3504
|
var statusClassName = status && classNames('avatar-status', "bg-".concat(status));
|
|
3517
|
-
return (
|
|
3518
|
-
src ?
|
|
3519
|
-
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 })));
|
|
3520
3508
|
});
|
|
3521
3509
|
CAvatar.propTypes = {
|
|
3522
3510
|
children: propTypes.exports.node,
|
|
@@ -3538,9 +3526,9 @@ var CBackdrop = React.forwardRef(function (_a, ref) {
|
|
|
3538
3526
|
var getTransitionClass = function (state) {
|
|
3539
3527
|
return state === 'entered' && 'show';
|
|
3540
3528
|
};
|
|
3541
|
-
return (
|
|
3529
|
+
return (React.createElement(Transition, { in: visible, mountOnEnter: true, nodeRef: backdropRef, timeout: 150, unmountOnExit: true }, function (state) {
|
|
3542
3530
|
var transitionClass = getTransitionClass(state);
|
|
3543
|
-
return (
|
|
3531
|
+
return (React.createElement("div", __assign({ className: classNames(_className, transitionClass) }, rest, { ref: forkedRef })));
|
|
3544
3532
|
}));
|
|
3545
3533
|
});
|
|
3546
3534
|
CBackdrop.propTypes = {
|
|
@@ -3562,7 +3550,7 @@ var CBadge = React.forwardRef(function (_a, ref) {
|
|
|
3562
3550
|
_b["badge-".concat(size)] = size,
|
|
3563
3551
|
_b["text-".concat(textColor)] = textColor,
|
|
3564
3552
|
_b), shape, className);
|
|
3565
|
-
return (
|
|
3553
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3566
3554
|
});
|
|
3567
3555
|
CBadge.propTypes = {
|
|
3568
3556
|
children: propTypes.exports.node,
|
|
@@ -3579,8 +3567,8 @@ CBadge.displayName = 'CBadge';
|
|
|
3579
3567
|
var CBreadcrumb = React.forwardRef(function (_a, ref) {
|
|
3580
3568
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3581
3569
|
var _className = classNames('breadcrumb', className);
|
|
3582
|
-
return (
|
|
3583
|
-
|
|
3570
|
+
return (React.createElement("nav", { "aria-label": "breadcrumb" },
|
|
3571
|
+
React.createElement("ol", __assign({ className: _className }, rest, { ref: ref }), children)));
|
|
3584
3572
|
});
|
|
3585
3573
|
CBreadcrumb.propTypes = {
|
|
3586
3574
|
children: propTypes.exports.node,
|
|
@@ -3593,7 +3581,7 @@ var CBreadcrumbItem = React.forwardRef(function (_a, ref) {
|
|
|
3593
3581
|
var _className = classNames('breadcrumb-item', {
|
|
3594
3582
|
active: active,
|
|
3595
3583
|
}, className);
|
|
3596
|
-
return (
|
|
3584
|
+
return (React.createElement("li", __assign({ className: _className }, (active && { 'aria-current': 'page' }), rest, { ref: ref }), href ? React.createElement(CLink, { href: href }, children) : children));
|
|
3597
3585
|
});
|
|
3598
3586
|
CBreadcrumbItem.propTypes = {
|
|
3599
3587
|
active: propTypes.exports.bool,
|
|
@@ -3607,7 +3595,7 @@ var CButton = React.forwardRef(function (_a, ref) {
|
|
|
3607
3595
|
var _b;
|
|
3608
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"]);
|
|
3609
3597
|
var _className = classNames('btn', variant ? "btn-".concat(variant, "-").concat(color) : "btn-".concat(color), (_b = {}, _b["btn-".concat(size)] = size, _b), shape, className);
|
|
3610
|
-
return (
|
|
3598
|
+
return (React.createElement(CLink, __assign({ component: rest.href ? 'a' : component, type: type, className: _className }, rest, { ref: ref }), children));
|
|
3611
3599
|
});
|
|
3612
3600
|
CButton.propTypes = {
|
|
3613
3601
|
children: propTypes.exports.node,
|
|
@@ -3624,7 +3612,7 @@ CButton.displayName = 'CButton';
|
|
|
3624
3612
|
var CButtonToolbar = React.forwardRef(function (_a, ref) {
|
|
3625
3613
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3626
3614
|
var _className = classNames('btn-toolbar', className);
|
|
3627
|
-
return (
|
|
3615
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3628
3616
|
});
|
|
3629
3617
|
CButtonToolbar.propTypes = {
|
|
3630
3618
|
children: propTypes.exports.node,
|
|
@@ -3636,7 +3624,7 @@ var CButtonGroup = React.forwardRef(function (_a, ref) {
|
|
|
3636
3624
|
var _b;
|
|
3637
3625
|
var children = _a.children, className = _a.className, size = _a.size, vertical = _a.vertical, rest = __rest(_a, ["children", "className", "size", "vertical"]);
|
|
3638
3626
|
var _className = classNames(vertical ? 'btn-group-vertical' : 'btn-group', (_b = {}, _b["btn-group-".concat(size)] = size, _b), className);
|
|
3639
|
-
return (
|
|
3627
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3640
3628
|
});
|
|
3641
3629
|
CButtonGroup.propTypes = {
|
|
3642
3630
|
children: propTypes.exports.node,
|
|
@@ -3652,7 +3640,7 @@ var CCallout = React.forwardRef(function (_a, ref) {
|
|
|
3652
3640
|
var _className = classNames('callout', (_b = {},
|
|
3653
3641
|
_b["callout-".concat(color)] = color,
|
|
3654
3642
|
_b), className);
|
|
3655
|
-
return (
|
|
3643
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3656
3644
|
});
|
|
3657
3645
|
CCallout.propTypes = {
|
|
3658
3646
|
children: propTypes.exports.node,
|
|
@@ -3668,7 +3656,7 @@ var CCard = React.forwardRef(function (_a, ref) {
|
|
|
3668
3656
|
_b["bg-".concat(color)] = color,
|
|
3669
3657
|
_b["text-".concat(textColor)] = textColor,
|
|
3670
3658
|
_b), className);
|
|
3671
|
-
return (
|
|
3659
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3672
3660
|
});
|
|
3673
3661
|
CCard.propTypes = {
|
|
3674
3662
|
children: propTypes.exports.node,
|
|
@@ -3681,7 +3669,7 @@ CCard.displayName = 'CCard';
|
|
|
3681
3669
|
var CCardBody = React.forwardRef(function (_a, ref) {
|
|
3682
3670
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3683
3671
|
var _className = classNames('card-body', className);
|
|
3684
|
-
return (
|
|
3672
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3685
3673
|
});
|
|
3686
3674
|
CCardBody.propTypes = {
|
|
3687
3675
|
children: propTypes.exports.node,
|
|
@@ -3692,7 +3680,7 @@ CCardBody.displayName = 'CCardBody';
|
|
|
3692
3680
|
var CCardFooter = React.forwardRef(function (_a, ref) {
|
|
3693
3681
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3694
3682
|
var _className = classNames('card-footer', className);
|
|
3695
|
-
return (
|
|
3683
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3696
3684
|
});
|
|
3697
3685
|
CCardFooter.propTypes = {
|
|
3698
3686
|
children: propTypes.exports.node,
|
|
@@ -3703,7 +3691,7 @@ CCardFooter.displayName = 'CCardFooter';
|
|
|
3703
3691
|
var CCardGroup = React.forwardRef(function (_a, ref) {
|
|
3704
3692
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3705
3693
|
var _className = classNames('card-group', className);
|
|
3706
|
-
return (
|
|
3694
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3707
3695
|
});
|
|
3708
3696
|
CCardGroup.propTypes = {
|
|
3709
3697
|
children: propTypes.exports.node,
|
|
@@ -3714,7 +3702,7 @@ CCardGroup.displayName = 'CCardGroup';
|
|
|
3714
3702
|
var CCardHeader = React.forwardRef(function (_a, ref) {
|
|
3715
3703
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'div' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
3716
3704
|
var _className = classNames('card-header', className);
|
|
3717
|
-
return (
|
|
3705
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3718
3706
|
});
|
|
3719
3707
|
CCardHeader.propTypes = {
|
|
3720
3708
|
children: propTypes.exports.node,
|
|
@@ -3726,7 +3714,7 @@ CCardHeader.displayName = 'CCardHeader';
|
|
|
3726
3714
|
var CCardImage = React.forwardRef(function (_a, ref) {
|
|
3727
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"]);
|
|
3728
3716
|
var _className = classNames(orientation ? "card-img-".concat(orientation) : 'card-img', className);
|
|
3729
|
-
return (
|
|
3717
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3730
3718
|
});
|
|
3731
3719
|
CCardImage.propTypes = {
|
|
3732
3720
|
children: propTypes.exports.node,
|
|
@@ -3739,7 +3727,7 @@ CCardImage.displayName = 'CCardImage';
|
|
|
3739
3727
|
var CCardImageOverlay = React.forwardRef(function (_a, ref) {
|
|
3740
3728
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3741
3729
|
var _className = classNames('card-img-overlay', className);
|
|
3742
|
-
return (
|
|
3730
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3743
3731
|
});
|
|
3744
3732
|
CCardImageOverlay.propTypes = {
|
|
3745
3733
|
children: propTypes.exports.node,
|
|
@@ -3750,7 +3738,7 @@ CCardImageOverlay.displayName = 'CCardImageOverlay';
|
|
|
3750
3738
|
var CCardLink = React.forwardRef(function (_a, ref) {
|
|
3751
3739
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3752
3740
|
var _className = classNames('card-link', className);
|
|
3753
|
-
return (
|
|
3741
|
+
return (React.createElement(CLink, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3754
3742
|
});
|
|
3755
3743
|
CCardLink.propTypes = {
|
|
3756
3744
|
children: propTypes.exports.node,
|
|
@@ -3761,7 +3749,7 @@ CCardLink.displayName = 'CCardLink';
|
|
|
3761
3749
|
var CCardSubtitle = React.forwardRef(function (_a, ref) {
|
|
3762
3750
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'h6' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
3763
3751
|
var _className = classNames('card-subtitle', className);
|
|
3764
|
-
return (
|
|
3752
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3765
3753
|
});
|
|
3766
3754
|
CCardSubtitle.propTypes = {
|
|
3767
3755
|
children: propTypes.exports.node,
|
|
@@ -3773,7 +3761,7 @@ CCardSubtitle.displayName = 'CCardSubtitle';
|
|
|
3773
3761
|
var CCardText = React.forwardRef(function (_a, ref) {
|
|
3774
3762
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'p' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
3775
3763
|
var _className = classNames('card-text', className);
|
|
3776
|
-
return (
|
|
3764
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3777
3765
|
});
|
|
3778
3766
|
CCardText.propTypes = {
|
|
3779
3767
|
children: propTypes.exports.node,
|
|
@@ -3785,7 +3773,7 @@ CCardText.displayName = 'CCardText';
|
|
|
3785
3773
|
var CCardTitle = React.forwardRef(function (_a, ref) {
|
|
3786
3774
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'h5' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
3787
3775
|
var _className = classNames('card-title', className);
|
|
3788
|
-
return (
|
|
3776
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3789
3777
|
});
|
|
3790
3778
|
CCardTitle.propTypes = {
|
|
3791
3779
|
children: propTypes.exports.node,
|
|
@@ -3885,19 +3873,19 @@ var CCarousel = React.forwardRef(function (_a, ref) {
|
|
|
3885
3873
|
setVisible(false);
|
|
3886
3874
|
}
|
|
3887
3875
|
};
|
|
3888
|
-
return (
|
|
3889
|
-
|
|
3876
|
+
return (React.createElement("div", __assign({ className: _className, onMouseEnter: _pause, onMouseLeave: cycle }, rest, { ref: forkedRef }),
|
|
3877
|
+
React.createElement(CCarouselContext.Provider, { value: {
|
|
3890
3878
|
setAnimating: setAnimating,
|
|
3891
3879
|
setCustomInterval: setCustomInterval,
|
|
3892
3880
|
} },
|
|
3893
|
-
indicators && (
|
|
3894
|
-
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 () {
|
|
3895
3883
|
!animating && handleIndicatorClick(index);
|
|
3896
3884
|
}, className: active === index ? 'active' : '', "data-coreui-target": "" }));
|
|
3897
3885
|
}))),
|
|
3898
|
-
|
|
3899
|
-
if (
|
|
3900
|
-
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, {
|
|
3901
3889
|
active: active === index ? true : false,
|
|
3902
3890
|
direction: direction,
|
|
3903
3891
|
key: index,
|
|
@@ -3905,11 +3893,11 @@ var CCarousel = React.forwardRef(function (_a, ref) {
|
|
|
3905
3893
|
}
|
|
3906
3894
|
return;
|
|
3907
3895
|
})),
|
|
3908
|
-
controls && (
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
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" })))))));
|
|
3913
3901
|
});
|
|
3914
3902
|
CCarousel.propTypes = {
|
|
3915
3903
|
activeIndex: propTypes.exports.number,
|
|
@@ -3930,7 +3918,7 @@ CCarousel.displayName = 'CCarousel';
|
|
|
3930
3918
|
var CCarouselCaption = React.forwardRef(function (_a, ref) {
|
|
3931
3919
|
var className = _a.className, rest = __rest(_a, ["className"]);
|
|
3932
3920
|
var _className = classNames('carousel-caption', className);
|
|
3933
|
-
return
|
|
3921
|
+
return React.createElement("div", __assign({ className: _className }, rest, { ref: ref }));
|
|
3934
3922
|
});
|
|
3935
3923
|
CCarouselCaption.propTypes = {
|
|
3936
3924
|
className: propTypes.exports.string,
|
|
@@ -4006,7 +3994,7 @@ var CCarouselItem = React.forwardRef(function (_a, ref) {
|
|
|
4006
3994
|
};
|
|
4007
3995
|
});
|
|
4008
3996
|
var _className = classNames('carousel-item', activeClassName, directionClassName, orderClassName, className);
|
|
4009
|
-
return (
|
|
3997
|
+
return (React.createElement("div", __assign({ className: _className, ref: forkedRef }, rest), children));
|
|
4010
3998
|
});
|
|
4011
3999
|
CCarouselItem.propTypes = {
|
|
4012
4000
|
active: propTypes.exports.bool,
|
|
@@ -6498,10 +6486,10 @@ var CDropdown = React.forwardRef(function (_a, ref) {
|
|
|
6498
6486
|
!_visible && onHide && onHide();
|
|
6499
6487
|
}, [_visible]);
|
|
6500
6488
|
var dropdownContent = function () {
|
|
6501
|
-
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));
|
|
6502
6490
|
};
|
|
6503
|
-
return popper ? (
|
|
6504
|
-
|
|
6491
|
+
return popper ? (React.createElement(CDropdownContext.Provider, { value: contextValues },
|
|
6492
|
+
React.createElement(Manager, null, dropdownContent()))) : (React.createElement(CDropdownContext.Provider, { value: contextValues }, dropdownContent()));
|
|
6505
6493
|
});
|
|
6506
6494
|
var alignmentDirection = propTypes.exports.oneOf(['start', 'end']);
|
|
6507
6495
|
CDropdown.propTypes = {
|
|
@@ -6536,7 +6524,7 @@ CDropdown.displayName = 'CDropdown';
|
|
|
6536
6524
|
var CDropdownDivider = React.forwardRef(function (_a, ref) {
|
|
6537
6525
|
var className = _a.className, rest = __rest(_a, ["className"]);
|
|
6538
6526
|
var _className = classNames('dropdown-divider', className);
|
|
6539
|
-
return
|
|
6527
|
+
return React.createElement("hr", __assign({ className: _className }, rest, { ref: ref }));
|
|
6540
6528
|
});
|
|
6541
6529
|
CDropdownDivider.propTypes = {
|
|
6542
6530
|
className: propTypes.exports.string,
|
|
@@ -6546,7 +6534,7 @@ CDropdownDivider.displayName = 'CDropdownDivider';
|
|
|
6546
6534
|
var CDropdownHeader = React.forwardRef(function (_a, ref) {
|
|
6547
6535
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'h6' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
6548
6536
|
var _className = classNames('dropdown-header', className);
|
|
6549
|
-
return (
|
|
6537
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6550
6538
|
});
|
|
6551
6539
|
CDropdownHeader.propTypes = {
|
|
6552
6540
|
children: propTypes.exports.node,
|
|
@@ -6558,7 +6546,7 @@ CDropdownHeader.displayName = 'CDropdownHeader';
|
|
|
6558
6546
|
var CDropdownItem = React.forwardRef(function (_a, ref) {
|
|
6559
6547
|
var children = _a.children, className = _a.className, _b = _a.component, component = _b === void 0 ? 'a' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
6560
6548
|
var _className = classNames('dropdown-item', className);
|
|
6561
|
-
return (
|
|
6549
|
+
return (React.createElement(CLink, __assign({ className: _className, component: component }, rest, { ref: ref }), children));
|
|
6562
6550
|
});
|
|
6563
6551
|
CDropdownItem.propTypes = {
|
|
6564
6552
|
children: propTypes.exports.node,
|
|
@@ -6570,7 +6558,7 @@ CDropdownItem.displayName = 'CDropdownItem';
|
|
|
6570
6558
|
var CDropdownItemPlain = React.forwardRef(function (_a, ref) {
|
|
6571
6559
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'span' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
6572
6560
|
var _className = classNames('dropdown-item-text', className);
|
|
6573
|
-
return (
|
|
6561
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6574
6562
|
});
|
|
6575
6563
|
CDropdownItemPlain.propTypes = {
|
|
6576
6564
|
children: propTypes.exports.node,
|
|
@@ -6647,16 +6635,16 @@ var CDropdownMenu = function (_a) {
|
|
|
6647
6635
|
show: visible,
|
|
6648
6636
|
}, alignment && alignmentClassNames(alignment), className);
|
|
6649
6637
|
var dropdownMenuComponent = function (style, ref) {
|
|
6650
|
-
return (
|
|
6651
|
-
?
|
|
6652
|
-
if (
|
|
6653
|
-
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));
|
|
6654
6642
|
}
|
|
6655
6643
|
return;
|
|
6656
6644
|
})
|
|
6657
6645
|
: children));
|
|
6658
6646
|
};
|
|
6659
|
-
return popper && visible ? (
|
|
6647
|
+
return popper && visible ? (React.createElement(Popper, { innerRef: dropdownMenuRef, placement: _placement }, function (_a) {
|
|
6660
6648
|
var ref = _a.ref, style = _a.style;
|
|
6661
6649
|
return dropdownMenuComponent(style, ref);
|
|
6662
6650
|
})) : (dropdownMenuComponent());
|
|
@@ -6689,11 +6677,11 @@ var CDropdownToggle = function (_a) {
|
|
|
6689
6677
|
// We use any because Toggler can be `a` as well as `button`.
|
|
6690
6678
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6691
6679
|
var Toggler = function (ref) {
|
|
6692
|
-
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) }),
|
|
6693
6681
|
children,
|
|
6694
|
-
split &&
|
|
6682
|
+
split && React.createElement("span", { className: "visually-hidden" }, "Toggle Dropdown")));
|
|
6695
6683
|
};
|
|
6696
|
-
return popper ?
|
|
6684
|
+
return popper ? React.createElement(Reference, null, function (_a) {
|
|
6697
6685
|
var ref = _a.ref;
|
|
6698
6686
|
return Toggler(ref);
|
|
6699
6687
|
}) : Toggler(dropdownToggleRef);
|
|
@@ -6712,7 +6700,7 @@ var CFooter = React.forwardRef(function (_a, ref) {
|
|
|
6712
6700
|
var _b;
|
|
6713
6701
|
var children = _a.children, className = _a.className, position = _a.position, rest = __rest(_a, ["children", "className", "position"]);
|
|
6714
6702
|
var _className = classNames('footer', (_b = {}, _b["footer-".concat(position)] = position, _b), className);
|
|
6715
|
-
return (
|
|
6703
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6716
6704
|
});
|
|
6717
6705
|
CFooter.propTypes = {
|
|
6718
6706
|
children: propTypes.exports.node,
|
|
@@ -6724,7 +6712,7 @@ CFooter.displayName = 'CFooter';
|
|
|
6724
6712
|
var CForm = React.forwardRef(function (_a, ref) {
|
|
6725
6713
|
var children = _a.children, className = _a.className, validated = _a.validated, rest = __rest(_a, ["children", "className", "validated"]);
|
|
6726
6714
|
var _className = classNames({ 'was-validated': validated }, className);
|
|
6727
|
-
return (
|
|
6715
|
+
return (React.createElement("form", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6728
6716
|
});
|
|
6729
6717
|
CForm.propTypes = {
|
|
6730
6718
|
children: propTypes.exports.node,
|
|
@@ -6740,7 +6728,7 @@ var CFormFeedback = React.forwardRef(function (_a, ref) {
|
|
|
6740
6728
|
_b["invalid-".concat(tooltip ? 'tooltip' : 'feedback')] = invalid,
|
|
6741
6729
|
_b["valid-".concat(tooltip ? 'tooltip' : 'feedback')] = valid,
|
|
6742
6730
|
_b), className);
|
|
6743
|
-
return (
|
|
6731
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6744
6732
|
});
|
|
6745
6733
|
CFormFeedback.propTypes = {
|
|
6746
6734
|
children: propTypes.exports.node,
|
|
@@ -6754,10 +6742,10 @@ CFormFeedback.displayName = 'CFormFeedback';
|
|
|
6754
6742
|
|
|
6755
6743
|
var CFormControlValidation = function (_a) {
|
|
6756
6744
|
var describedby = _a.describedby, feedback = _a.feedback, feedbackInvalid = _a.feedbackInvalid, feedbackValid = _a.feedbackValid, invalid = _a.invalid, tooltipFeedback = _a.tooltipFeedback, valid = _a.valid;
|
|
6757
|
-
return (
|
|
6758
|
-
feedback && (valid || invalid) && (
|
|
6759
|
-
feedbackInvalid && (
|
|
6760
|
-
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))));
|
|
6761
6749
|
};
|
|
6762
6750
|
CFormControlValidation.propTypes = {
|
|
6763
6751
|
describedby: propTypes.exports.string,
|
|
@@ -6773,7 +6761,7 @@ CFormControlValidation.displayName = 'CFormControlValidation';
|
|
|
6773
6761
|
var CFormLabel = React.forwardRef(function (_a, ref) {
|
|
6774
6762
|
var children = _a.children, className = _a.className, customClassName = _a.customClassName, rest = __rest(_a, ["children", "className", "customClassName"]);
|
|
6775
6763
|
var _className = customClassName ? customClassName : classNames('form-label', className);
|
|
6776
|
-
return (
|
|
6764
|
+
return (React.createElement("label", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6777
6765
|
});
|
|
6778
6766
|
CFormLabel.propTypes = {
|
|
6779
6767
|
children: propTypes.exports.node,
|
|
@@ -6808,20 +6796,20 @@ var CFormCheck = React.forwardRef(function (_a, ref) {
|
|
|
6808
6796
|
_b), "".concat(button.shape))
|
|
6809
6797
|
: 'form-check-label');
|
|
6810
6798
|
var formControl = function () {
|
|
6811
|
-
return
|
|
6799
|
+
return React.createElement("input", __assign({ type: type, className: inputClassName, id: id }, rest, { ref: forkedRef }));
|
|
6812
6800
|
};
|
|
6813
|
-
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 })); };
|
|
6814
6802
|
var formLabel = function () {
|
|
6815
|
-
return (
|
|
6803
|
+
return (React.createElement(CFormLabel, __assign({ customClassName: labelClassName }, (id && { htmlFor: id })), label));
|
|
6816
6804
|
};
|
|
6817
|
-
return button ? (
|
|
6805
|
+
return button ? (React.createElement(React.Fragment, null,
|
|
6818
6806
|
formControl(),
|
|
6819
6807
|
label && formLabel(),
|
|
6820
|
-
formValidation())) : label ? (hitArea ? (
|
|
6821
|
-
|
|
6808
|
+
formValidation())) : label ? (hitArea ? (React.createElement(React.Fragment, null,
|
|
6809
|
+
React.createElement(CFormLabel, __assign({ customClassName: className }, (id && { htmlFor: id })),
|
|
6822
6810
|
formControl(),
|
|
6823
6811
|
label),
|
|
6824
|
-
formValidation())) : (
|
|
6812
|
+
formValidation())) : (React.createElement("div", { className: _className },
|
|
6825
6813
|
formControl(),
|
|
6826
6814
|
formLabel(),
|
|
6827
6815
|
formValidation()))) : (formControl());
|
|
@@ -6832,7 +6820,7 @@ CFormCheck.displayName = 'CFormCheck';
|
|
|
6832
6820
|
var CFormFloating = React.forwardRef(function (_a, ref) {
|
|
6833
6821
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
6834
6822
|
var _className = classNames('form-floating', className);
|
|
6835
|
-
return (
|
|
6823
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6836
6824
|
});
|
|
6837
6825
|
CFormFloating.propTypes = {
|
|
6838
6826
|
children: propTypes.exports.node,
|
|
@@ -6843,7 +6831,7 @@ CFormFloating.displayName = 'CFormFloating';
|
|
|
6843
6831
|
var CFormText = React.forwardRef(function (_a, ref) {
|
|
6844
6832
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'div' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
6845
6833
|
var _className = classNames('form-text', className);
|
|
6846
|
-
return (
|
|
6834
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6847
6835
|
});
|
|
6848
6836
|
CFormText.propTypes = {
|
|
6849
6837
|
children: propTypes.exports.node,
|
|
@@ -6854,13 +6842,13 @@ CFormText.displayName = 'CFormText';
|
|
|
6854
6842
|
|
|
6855
6843
|
var CFormControlWrapper = function (_a) {
|
|
6856
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;
|
|
6857
|
-
return floatingLabel ? (
|
|
6845
|
+
return floatingLabel ? (React.createElement(CFormFloating, null,
|
|
6858
6846
|
children,
|
|
6859
|
-
|
|
6860
|
-
label &&
|
|
6847
|
+
React.createElement(CFormLabel, { htmlFor: id }, label || floatingLabel))) : (React.createElement(React.Fragment, null,
|
|
6848
|
+
label && React.createElement(CFormLabel, { htmlFor: id }, label),
|
|
6861
6849
|
children,
|
|
6862
|
-
text &&
|
|
6863
|
-
|
|
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 })));
|
|
6864
6852
|
};
|
|
6865
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);
|
|
6866
6854
|
CFormControlWrapper.displayName = 'CFormControlWrapper';
|
|
@@ -6879,8 +6867,8 @@ var CFormInput = React.forwardRef(function (_a, ref) {
|
|
|
6879
6867
|
_b['is-invalid'] = invalid,
|
|
6880
6868
|
_b['is-valid'] = valid,
|
|
6881
6869
|
_b), className);
|
|
6882
|
-
return (
|
|
6883
|
-
|
|
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)));
|
|
6884
6872
|
});
|
|
6885
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);
|
|
6886
6874
|
CFormInput.displayName = 'CFormInput';
|
|
@@ -6888,9 +6876,9 @@ CFormInput.displayName = 'CFormInput';
|
|
|
6888
6876
|
var CFormRange = React.forwardRef(function (_a, ref) {
|
|
6889
6877
|
var className = _a.className, label = _a.label, rest = __rest(_a, ["className", "label"]);
|
|
6890
6878
|
var _className = classNames('form-range', className);
|
|
6891
|
-
return (
|
|
6892
|
-
label &&
|
|
6893
|
-
|
|
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 }))));
|
|
6894
6882
|
});
|
|
6895
6883
|
CFormRange.propTypes = {
|
|
6896
6884
|
className: propTypes.exports.string,
|
|
@@ -6906,10 +6894,10 @@ var CFormSelect = React.forwardRef(function (_a, ref) {
|
|
|
6906
6894
|
_b['is-invalid'] = invalid,
|
|
6907
6895
|
_b['is-valid'] = valid,
|
|
6908
6896
|
_b), className);
|
|
6909
|
-
return (
|
|
6910
|
-
|
|
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
|
|
6911
6899
|
? options.map(function (option, index) {
|
|
6912
|
-
return (
|
|
6900
|
+
return (React.createElement("option", __assign({}, (typeof option === 'object' &&
|
|
6913
6901
|
option.disabled && { disabled: option.disabled }), (typeof option === 'object' && option.value && { value: option.value }), { key: index }), typeof option === 'string' ? option : option.label));
|
|
6914
6902
|
})
|
|
6915
6903
|
: children)));
|
|
@@ -6930,9 +6918,9 @@ var CFormSwitch = React.forwardRef(function (_a, ref) {
|
|
|
6930
6918
|
'is-valid': valid,
|
|
6931
6919
|
});
|
|
6932
6920
|
var labelClassName = classNames('form-check-label');
|
|
6933
|
-
return (
|
|
6934
|
-
|
|
6935
|
-
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))));
|
|
6936
6924
|
});
|
|
6937
6925
|
CFormSwitch.propTypes = {
|
|
6938
6926
|
className: propTypes.exports.string,
|
|
@@ -6951,8 +6939,8 @@ var CFormTextarea = React.forwardRef(function (_a, ref) {
|
|
|
6951
6939
|
'is-invalid': invalid,
|
|
6952
6940
|
'is-valid': valid,
|
|
6953
6941
|
}, className);
|
|
6954
|
-
return (
|
|
6955
|
-
|
|
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)));
|
|
6956
6944
|
});
|
|
6957
6945
|
CFormTextarea.propTypes = __assign({ className: propTypes.exports.string, id: propTypes.exports.string, plainText: propTypes.exports.bool }, CFormControlWrapper.propTypes);
|
|
6958
6946
|
CFormTextarea.displayName = 'CFormTextarea';
|
|
@@ -6963,7 +6951,7 @@ var CInputGroup = React.forwardRef(function (_a, ref) {
|
|
|
6963
6951
|
var _className = classNames('input-group', (_b = {},
|
|
6964
6952
|
_b["input-group-".concat(size)] = size,
|
|
6965
6953
|
_b), className);
|
|
6966
|
-
return (
|
|
6954
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6967
6955
|
});
|
|
6968
6956
|
CInputGroup.propTypes = {
|
|
6969
6957
|
children: propTypes.exports.node,
|
|
@@ -6975,7 +6963,7 @@ CInputGroup.displayName = 'CInputGroup';
|
|
|
6975
6963
|
var CInputGroupText = React.forwardRef(function (_a, ref) {
|
|
6976
6964
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'span' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
6977
6965
|
var _className = classNames('input-group-text', className);
|
|
6978
|
-
return (
|
|
6966
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6979
6967
|
});
|
|
6980
6968
|
CInputGroupText.propTypes = {
|
|
6981
6969
|
children: propTypes.exports.node,
|
|
@@ -7021,7 +7009,7 @@ var CCol = React.forwardRef(function (_a, ref) {
|
|
|
7021
7009
|
}
|
|
7022
7010
|
});
|
|
7023
7011
|
var _className = classNames(repsonsiveClassNames.length ? repsonsiveClassNames : 'col', className);
|
|
7024
|
-
return (
|
|
7012
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7025
7013
|
});
|
|
7026
7014
|
var span = propTypes.exports.oneOfType([
|
|
7027
7015
|
propTypes.exports.bool,
|
|
@@ -7066,7 +7054,7 @@ var CContainer = React.forwardRef(function (_a, ref) {
|
|
|
7066
7054
|
breakpoint && repsonsiveClassNames.push("container-".concat(bp));
|
|
7067
7055
|
});
|
|
7068
7056
|
var _className = classNames(repsonsiveClassNames.length ? repsonsiveClassNames : 'container', className);
|
|
7069
|
-
return (
|
|
7057
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7070
7058
|
});
|
|
7071
7059
|
CContainer.propTypes = {
|
|
7072
7060
|
children: propTypes.exports.node,
|
|
@@ -7111,7 +7099,7 @@ var CRow = React.forwardRef(function (_a, ref) {
|
|
|
7111
7099
|
}
|
|
7112
7100
|
});
|
|
7113
7101
|
var _className = classNames('row', repsonsiveClassNames, className);
|
|
7114
|
-
return (
|
|
7102
|
+
return (React.createElement("div", { className: _className, ref: ref }, children));
|
|
7115
7103
|
});
|
|
7116
7104
|
var bp = propTypes.exports.shape({
|
|
7117
7105
|
cols: propTypes.exports.oneOfType([propTypes.exports.oneOf(['auto']), propTypes.exports.number, propTypes.exports.string]),
|
|
@@ -7137,12 +7125,12 @@ var CHeader = React.forwardRef(function (_a, ref) {
|
|
|
7137
7125
|
var _className = classNames('header', (_b = {}, _b["header-".concat(position)] = position, _b), className);
|
|
7138
7126
|
var content;
|
|
7139
7127
|
if (container) {
|
|
7140
|
-
content = (
|
|
7128
|
+
content = (React.createElement("div", { className: "container".concat(container !== true ? '-' + container : '') }, children));
|
|
7141
7129
|
}
|
|
7142
7130
|
else {
|
|
7143
7131
|
content = children;
|
|
7144
7132
|
}
|
|
7145
|
-
return (
|
|
7133
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), content));
|
|
7146
7134
|
});
|
|
7147
7135
|
CHeader.propTypes = {
|
|
7148
7136
|
children: propTypes.exports.node,
|
|
@@ -7165,7 +7153,7 @@ CHeader.displayName = 'CHeader';
|
|
|
7165
7153
|
var CHeaderBrand = React.forwardRef(function (_a, ref) {
|
|
7166
7154
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'a' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
7167
7155
|
var _className = classNames('header-brand', className);
|
|
7168
|
-
return (
|
|
7156
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7169
7157
|
});
|
|
7170
7158
|
CHeaderBrand.propTypes = {
|
|
7171
7159
|
children: propTypes.exports.node,
|
|
@@ -7177,7 +7165,7 @@ CHeaderBrand.displayName = 'CHeaderBrand';
|
|
|
7177
7165
|
var CHeaderDivider = React.forwardRef(function (_a, ref) {
|
|
7178
7166
|
var className = _a.className, rest = __rest(_a, ["className"]);
|
|
7179
7167
|
var _className = classNames('header-divider', className);
|
|
7180
|
-
return
|
|
7168
|
+
return React.createElement("div", __assign({ className: _className }, rest, { ref: ref }));
|
|
7181
7169
|
});
|
|
7182
7170
|
CHeaderDivider.propTypes = {
|
|
7183
7171
|
className: propTypes.exports.string,
|
|
@@ -7187,7 +7175,7 @@ CHeaderDivider.displayName = 'CHeaderDivider';
|
|
|
7187
7175
|
var CHeaderNav = React.forwardRef(function (_a, ref) {
|
|
7188
7176
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'ul' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
7189
7177
|
var _className = classNames('header-nav', className);
|
|
7190
|
-
return (
|
|
7178
|
+
return (React.createElement(Component, __assign({ className: _className, role: "navigation" }, rest, { ref: ref }), children));
|
|
7191
7179
|
});
|
|
7192
7180
|
CHeaderNav.propTypes = {
|
|
7193
7181
|
children: propTypes.exports.node,
|
|
@@ -7199,7 +7187,7 @@ CHeaderNav.displayName = 'CHeaderNav';
|
|
|
7199
7187
|
var CHeaderText = React.forwardRef(function (_a, ref) {
|
|
7200
7188
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7201
7189
|
var _className = classNames('header-text', className);
|
|
7202
|
-
return (
|
|
7190
|
+
return (React.createElement("span", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7203
7191
|
});
|
|
7204
7192
|
CHeaderText.propTypes = {
|
|
7205
7193
|
children: propTypes.exports.node,
|
|
@@ -7210,7 +7198,7 @@ CHeaderText.displayName = 'CHeaderText';
|
|
|
7210
7198
|
var CHeaderToggler = React.forwardRef(function (_a, ref) {
|
|
7211
7199
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7212
7200
|
var _className = classNames('header-toggler', className);
|
|
7213
|
-
return (
|
|
7201
|
+
return (React.createElement("button", __assign({ type: "button", className: _className }, rest, { ref: ref }), children ? children : React.createElement("span", { className: "header-toggler-icon" })));
|
|
7214
7202
|
});
|
|
7215
7203
|
CHeaderToggler.propTypes = {
|
|
7216
7204
|
children: propTypes.exports.node,
|
|
@@ -7228,7 +7216,7 @@ var CImage = React.forwardRef(function (_a, ref) {
|
|
|
7228
7216
|
_b.rounded = rounded,
|
|
7229
7217
|
_b['img-thumbnail'] = thumbnail,
|
|
7230
7218
|
_b), className);
|
|
7231
|
-
return
|
|
7219
|
+
return React.createElement("img", __assign({ className: _className }, rest, { ref: ref }));
|
|
7232
7220
|
});
|
|
7233
7221
|
CImage.propTypes = {
|
|
7234
7222
|
align: propTypes.exports.oneOf(['start', 'center', 'end']),
|
|
@@ -7247,7 +7235,7 @@ var CListGroup = React.forwardRef(function (_a, ref) {
|
|
|
7247
7235
|
},
|
|
7248
7236
|
_b["list-group-".concat(layout)] = layout,
|
|
7249
7237
|
_b), className);
|
|
7250
|
-
return (
|
|
7238
|
+
return (React.createElement(Component, { className: _className, ref: ref }, children));
|
|
7251
7239
|
});
|
|
7252
7240
|
CListGroup.propTypes = {
|
|
7253
7241
|
children: propTypes.exports.node,
|
|
@@ -7281,7 +7269,7 @@ var CListGroupItem = React.forwardRef(function (_a, ref) {
|
|
|
7281
7269
|
component: component,
|
|
7282
7270
|
ref: ref,
|
|
7283
7271
|
})), (active && { 'aria-current': true })), (disabled && { 'aria-disabled': true })), rest);
|
|
7284
|
-
return (
|
|
7272
|
+
return (React.createElement(Component, __assign({ className: _className }, rest), children));
|
|
7285
7273
|
});
|
|
7286
7274
|
CListGroupItem.propTypes = {
|
|
7287
7275
|
active: propTypes.exports.bool,
|
|
@@ -7296,7 +7284,7 @@ CListGroupItem.displayName = 'CListGroupItem';
|
|
|
7296
7284
|
var CModalContent = React.forwardRef(function (_a, ref) {
|
|
7297
7285
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7298
7286
|
var _className = classNames('modal-content', className);
|
|
7299
|
-
return (
|
|
7287
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7300
7288
|
});
|
|
7301
7289
|
CModalContent.propTypes = {
|
|
7302
7290
|
children: propTypes.exports.node,
|
|
@@ -7316,7 +7304,7 @@ var CModalDialog = React.forwardRef(function (_a, ref) {
|
|
|
7316
7304
|
_b['modal-dialog-scrollable'] = scrollable,
|
|
7317
7305
|
_b["modal-".concat(size)] = size,
|
|
7318
7306
|
_b), className);
|
|
7319
|
-
return (
|
|
7307
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7320
7308
|
});
|
|
7321
7309
|
CModalDialog.propTypes = {
|
|
7322
7310
|
alignment: propTypes.exports.oneOf(['top', 'center']),
|
|
@@ -7417,21 +7405,21 @@ var CModal = React.forwardRef(function (_a, ref) {
|
|
|
7417
7405
|
}
|
|
7418
7406
|
}, [modalRef, handleDismiss]);
|
|
7419
7407
|
var modal = function (ref, transitionClass) {
|
|
7420
|
-
return (
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
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)))));
|
|
7424
7412
|
};
|
|
7425
|
-
return (
|
|
7426
|
-
|
|
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) {
|
|
7427
7415
|
var transitionClass = getTransitionClass(state);
|
|
7428
7416
|
return typeof window !== 'undefined' && portal
|
|
7429
7417
|
? ReactDOM.createPortal(modal(forkedRef, transitionClass), document.body)
|
|
7430
7418
|
: modal(forkedRef, transitionClass);
|
|
7431
7419
|
}),
|
|
7432
7420
|
typeof window !== 'undefined' && portal
|
|
7433
|
-
? backdrop && ReactDOM.createPortal(
|
|
7434
|
-
: backdrop &&
|
|
7421
|
+
? backdrop && ReactDOM.createPortal(React.createElement(CBackdrop, { visible: _visible }), document.body)
|
|
7422
|
+
: backdrop && React.createElement(CBackdrop, { visible: _visible })));
|
|
7435
7423
|
});
|
|
7436
7424
|
CModal.propTypes = {
|
|
7437
7425
|
alignment: propTypes.exports.oneOf(['top', 'center']),
|
|
@@ -7459,7 +7447,7 @@ CModal.displayName = 'CModal';
|
|
|
7459
7447
|
var CModalBody = React.forwardRef(function (_a, ref) {
|
|
7460
7448
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7461
7449
|
var _className = classNames('modal-body', className);
|
|
7462
|
-
return (
|
|
7450
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7463
7451
|
});
|
|
7464
7452
|
CModalBody.propTypes = {
|
|
7465
7453
|
children: propTypes.exports.node,
|
|
@@ -7470,7 +7458,7 @@ CModalBody.displayName = 'CModalBody';
|
|
|
7470
7458
|
var CModalFooter = React.forwardRef(function (_a, ref) {
|
|
7471
7459
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7472
7460
|
var _className = classNames('modal-footer', className);
|
|
7473
|
-
return (
|
|
7461
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7474
7462
|
});
|
|
7475
7463
|
CModalFooter.propTypes = {
|
|
7476
7464
|
children: propTypes.exports.node,
|
|
@@ -7482,9 +7470,9 @@ var CModalHeader = React.forwardRef(function (_a, ref) {
|
|
|
7482
7470
|
var children = _a.children, className = _a.className, _b = _a.closeButton, closeButton = _b === void 0 ? true : _b, rest = __rest(_a, ["children", "className", "closeButton"]);
|
|
7483
7471
|
var setVisible = React.useContext(CModalContext).setVisible;
|
|
7484
7472
|
var _className = classNames('modal-header', className);
|
|
7485
|
-
return (
|
|
7473
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
7486
7474
|
children,
|
|
7487
|
-
closeButton &&
|
|
7475
|
+
closeButton && React.createElement(CCloseButton, { onClick: function () { return setVisible(false); } })));
|
|
7488
7476
|
});
|
|
7489
7477
|
CModalHeader.propTypes = {
|
|
7490
7478
|
children: propTypes.exports.node,
|
|
@@ -7496,7 +7484,7 @@ CModalHeader.displayName = 'CModalHeader';
|
|
|
7496
7484
|
var CModalTitle = React.forwardRef(function (_a, ref) {
|
|
7497
7485
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'h5' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
7498
7486
|
var _className = classNames('modal-title', className);
|
|
7499
|
-
return (
|
|
7487
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7500
7488
|
});
|
|
7501
7489
|
CModalTitle.propTypes = {
|
|
7502
7490
|
children: propTypes.exports.node,
|
|
@@ -7512,7 +7500,7 @@ var CNav = React.forwardRef(function (_a, ref) {
|
|
|
7512
7500
|
_b["nav-".concat(layout)] = layout,
|
|
7513
7501
|
_b["nav-".concat(variant)] = variant,
|
|
7514
7502
|
_b), className);
|
|
7515
|
-
return (
|
|
7503
|
+
return (React.createElement(Component, __assign({ className: _className, role: "navigation" }, rest, { ref: ref }), children));
|
|
7516
7504
|
});
|
|
7517
7505
|
CNav.propTypes = {
|
|
7518
7506
|
children: propTypes.exports.node,
|
|
@@ -7526,7 +7514,7 @@ CNav.displayName = 'CNav';
|
|
|
7526
7514
|
var CNavGroupItems = React.forwardRef(function (_a, ref) {
|
|
7527
7515
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7528
7516
|
var _className = classNames('nav-group-items', className);
|
|
7529
|
-
return (
|
|
7517
|
+
return (React.createElement("ul", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7530
7518
|
});
|
|
7531
7519
|
CNavGroupItems.propTypes = {
|
|
7532
7520
|
children: propTypes.exports.node,
|
|
@@ -7543,10 +7531,10 @@ var CSidebarNav = React.forwardRef(function (_a, ref) {
|
|
|
7543
7531
|
setVisibleGroup: setVisibleGroup,
|
|
7544
7532
|
};
|
|
7545
7533
|
var classes = classNames('sidebar-nav', className);
|
|
7546
|
-
return (
|
|
7547
|
-
|
|
7548
|
-
if (
|
|
7549
|
-
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, {
|
|
7550
7538
|
key: index,
|
|
7551
7539
|
idx: "".concat(index),
|
|
7552
7540
|
});
|
|
@@ -7603,13 +7591,13 @@ var CNavGroup = React.forwardRef(function (_a, ref) {
|
|
|
7603
7591
|
exited: { height: height },
|
|
7604
7592
|
};
|
|
7605
7593
|
var _className = classNames('nav-group', { show: _visible }, className);
|
|
7606
|
-
return (
|
|
7607
|
-
toggler && (
|
|
7608
|
-
|
|
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', {
|
|
7609
7597
|
compact: compact,
|
|
7610
|
-
}), style: __assign(__assign({}, style), transitionStyles[state]), ref: navItemsRef },
|
|
7611
|
-
if (
|
|
7612
|
-
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, {
|
|
7613
7601
|
key: index,
|
|
7614
7602
|
idx: "".concat(idx, ".").concat(index),
|
|
7615
7603
|
});
|
|
@@ -7638,7 +7626,7 @@ var CNavLink = React.forwardRef(function (_a, ref) {
|
|
|
7638
7626
|
rest.active = (_a = navLinkRef.current) === null || _a === void 0 ? void 0 : _a.classList.contains('active');
|
|
7639
7627
|
idx && rest.active && setVisibleGroup(idx);
|
|
7640
7628
|
}, [rest.active, className]);
|
|
7641
|
-
return (
|
|
7629
|
+
return (React.createElement(CLink, __assign({ className: _className }, rest, { ref: forkedRef }), children));
|
|
7642
7630
|
});
|
|
7643
7631
|
CNavLink.propTypes = {
|
|
7644
7632
|
children: propTypes.exports.node,
|
|
@@ -7651,9 +7639,9 @@ var CNavItem = React.forwardRef(function (_a, ref) {
|
|
|
7651
7639
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7652
7640
|
var _className = classNames('nav-item', className);
|
|
7653
7641
|
if (rest.href || rest.to) {
|
|
7654
|
-
children = (
|
|
7642
|
+
children = (React.createElement(CNavLink, __assign({ className: className }, rest), children));
|
|
7655
7643
|
}
|
|
7656
|
-
return (
|
|
7644
|
+
return (React.createElement("li", { className: _className, ref: ref }, children));
|
|
7657
7645
|
});
|
|
7658
7646
|
CNavItem.propTypes = {
|
|
7659
7647
|
children: propTypes.exports.node,
|
|
@@ -7664,7 +7652,7 @@ CNavItem.displayName = 'CNavItem';
|
|
|
7664
7652
|
var CNavTitle = React.forwardRef(function (_a, ref) {
|
|
7665
7653
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7666
7654
|
var _className = classNames('nav-title', className);
|
|
7667
|
-
return (
|
|
7655
|
+
return (React.createElement("li", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7668
7656
|
});
|
|
7669
7657
|
CNavTitle.propTypes = {
|
|
7670
7658
|
children: propTypes.exports.node,
|
|
@@ -7682,12 +7670,12 @@ var CNavbar = React.forwardRef(function (_a, ref) {
|
|
|
7682
7670
|
_b), placement, className);
|
|
7683
7671
|
var content;
|
|
7684
7672
|
if (container) {
|
|
7685
|
-
content = (
|
|
7673
|
+
content = (React.createElement("div", { className: "container".concat(container !== true ? '-' + container : '') }, children));
|
|
7686
7674
|
}
|
|
7687
7675
|
else {
|
|
7688
7676
|
content = children;
|
|
7689
7677
|
}
|
|
7690
|
-
return (
|
|
7678
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), content));
|
|
7691
7679
|
});
|
|
7692
7680
|
CNavbar.propTypes = {
|
|
7693
7681
|
children: propTypes.exports.node,
|
|
@@ -7718,7 +7706,7 @@ var CNavbarBrand = React.forwardRef(function (_a, ref) {
|
|
|
7718
7706
|
var children = _a.children, component = _a.component, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
7719
7707
|
var Component = component ? component : rest.href ? 'a' : 'span';
|
|
7720
7708
|
var _className = classNames('navbar-brand', className);
|
|
7721
|
-
return (
|
|
7709
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7722
7710
|
});
|
|
7723
7711
|
CNavbarBrand.propTypes = {
|
|
7724
7712
|
children: propTypes.exports.node,
|
|
@@ -7730,7 +7718,7 @@ CNavbarBrand.displayName = 'CNavbarBrand';
|
|
|
7730
7718
|
var CNavbarNav = React.forwardRef(function (_a, ref) {
|
|
7731
7719
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'ul' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
7732
7720
|
var _className = classNames('navbar-nav', className);
|
|
7733
|
-
return (
|
|
7721
|
+
return (React.createElement(Component, __assign({ className: _className, role: "navigation" }, rest, { ref: ref }), children));
|
|
7734
7722
|
});
|
|
7735
7723
|
CNavbarNav.propTypes = {
|
|
7736
7724
|
children: propTypes.exports.node,
|
|
@@ -7742,7 +7730,7 @@ CNavbarNav.displayName = 'CNavbarNav';
|
|
|
7742
7730
|
var CNavbarText = React.forwardRef(function (_a, ref) {
|
|
7743
7731
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7744
7732
|
var _className = classNames('navbar-text', className);
|
|
7745
|
-
return (
|
|
7733
|
+
return (React.createElement("span", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7746
7734
|
});
|
|
7747
7735
|
CNavbarText.propTypes = {
|
|
7748
7736
|
children: propTypes.exports.node,
|
|
@@ -7753,7 +7741,7 @@ CNavbarText.displayName = 'CNavbarText';
|
|
|
7753
7741
|
var CNavbarToggler = React.forwardRef(function (_a, ref) {
|
|
7754
7742
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7755
7743
|
var _className = classNames('navbar-toggler', className);
|
|
7756
|
-
return (
|
|
7744
|
+
return (React.createElement("button", __assign({ type: "button", className: _className }, rest, { ref: ref }), children ? children : React.createElement("span", { className: "navbar-toggler-icon" })));
|
|
7757
7745
|
});
|
|
7758
7746
|
CNavbarToggler.propTypes = {
|
|
7759
7747
|
children: propTypes.exports.node,
|
|
@@ -7802,19 +7790,19 @@ var COffcanvas = React.forwardRef(function (_a, ref) {
|
|
|
7802
7790
|
}
|
|
7803
7791
|
}, [ref, handleDismiss]);
|
|
7804
7792
|
var offcanvas = function (ref, state) {
|
|
7805
|
-
return (
|
|
7806
|
-
|
|
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)));
|
|
7807
7795
|
};
|
|
7808
|
-
return (
|
|
7809
|
-
|
|
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) {
|
|
7810
7798
|
return typeof window !== 'undefined' && portal
|
|
7811
7799
|
? ReactDOM.createPortal(offcanvas(forkedRef, state), document.body)
|
|
7812
7800
|
: offcanvas(forkedRef, state);
|
|
7813
7801
|
}),
|
|
7814
7802
|
typeof window !== 'undefined' && portal
|
|
7815
7803
|
? backdrop &&
|
|
7816
|
-
ReactDOM.createPortal(
|
|
7817
|
-
: 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 }))));
|
|
7818
7806
|
});
|
|
7819
7807
|
COffcanvas.propTypes = {
|
|
7820
7808
|
backdrop: propTypes.exports.bool,
|
|
@@ -7834,7 +7822,7 @@ COffcanvas.displayName = 'COffcanvas';
|
|
|
7834
7822
|
var COffcanvasBody = React.forwardRef(function (_a, ref) {
|
|
7835
7823
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7836
7824
|
var _className = classNames('offcanvas-body', className);
|
|
7837
|
-
return (
|
|
7825
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7838
7826
|
});
|
|
7839
7827
|
COffcanvasBody.propTypes = {
|
|
7840
7828
|
children: propTypes.exports.node,
|
|
@@ -7845,7 +7833,7 @@ COffcanvasBody.displayName = 'COffcanvasBody';
|
|
|
7845
7833
|
var COffcanvasHeader = React.forwardRef(function (_a, ref) {
|
|
7846
7834
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7847
7835
|
var _className = classNames('offcanvas-header', className);
|
|
7848
|
-
return (
|
|
7836
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7849
7837
|
});
|
|
7850
7838
|
COffcanvasHeader.propTypes = {
|
|
7851
7839
|
children: propTypes.exports.node,
|
|
@@ -7856,7 +7844,7 @@ COffcanvasHeader.displayName = 'COffcanvasHeader';
|
|
|
7856
7844
|
var COffcanvasTitle = React.forwardRef(function (_a, ref) {
|
|
7857
7845
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'h5' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
7858
7846
|
var _className = classNames('offcanvas-title', className);
|
|
7859
|
-
return (
|
|
7847
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7860
7848
|
});
|
|
7861
7849
|
COffcanvasTitle.propTypes = {
|
|
7862
7850
|
children: propTypes.exports.node,
|
|
@@ -7872,8 +7860,8 @@ var CPagination = React.forwardRef(function (_a, ref) {
|
|
|
7872
7860
|
_b["justify-content-".concat(align)] = align,
|
|
7873
7861
|
_b["pagination-".concat(size)] = size,
|
|
7874
7862
|
_b), className);
|
|
7875
|
-
return (
|
|
7876
|
-
|
|
7863
|
+
return (React.createElement("nav", __assign({ ref: ref }, rest),
|
|
7864
|
+
React.createElement("ul", { className: _className }, children)));
|
|
7877
7865
|
});
|
|
7878
7866
|
CPagination.propTypes = {
|
|
7879
7867
|
align: propTypes.exports.oneOf(['start', 'center', 'end']),
|
|
@@ -7890,7 +7878,7 @@ var CPaginationItem = React.forwardRef(function (_a, ref) {
|
|
|
7890
7878
|
disabled: rest.disabled,
|
|
7891
7879
|
}, className);
|
|
7892
7880
|
var Component = component ? component : rest.active ? 'span' : 'a';
|
|
7893
|
-
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))));
|
|
7894
7882
|
});
|
|
7895
7883
|
CPaginationItem.propTypes = {
|
|
7896
7884
|
children: propTypes.exports.node,
|
|
@@ -7926,7 +7914,7 @@ var CPlaceholder = React.forwardRef(function (_a, ref) {
|
|
|
7926
7914
|
_b["bg-".concat(color)] = color,
|
|
7927
7915
|
_b["placeholder-".concat(size)] = size,
|
|
7928
7916
|
_b), repsonsiveClassNames, className);
|
|
7929
|
-
return (
|
|
7917
|
+
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7930
7918
|
});
|
|
7931
7919
|
CPlaceholder.propTypes = {
|
|
7932
7920
|
animation: propTypes.exports.oneOf(['glow', 'wave']),
|
|
@@ -7946,7 +7934,7 @@ var CProgressBar = React.forwardRef(function (_a, ref) {
|
|
|
7946
7934
|
_b["progress-bar-".concat(variant)] = variant,
|
|
7947
7935
|
_b['progress-bar-animated'] = animated,
|
|
7948
7936
|
_b), className);
|
|
7949
|
-
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));
|
|
7950
7938
|
});
|
|
7951
7939
|
CProgressBar.propTypes = {
|
|
7952
7940
|
animated: propTypes.exports.bool,
|
|
@@ -7964,7 +7952,7 @@ var CProgress = React.forwardRef(function (_a, ref) {
|
|
|
7964
7952
|
'progress-thin': thin,
|
|
7965
7953
|
'progress-white': white,
|
|
7966
7954
|
}, className);
|
|
7967
|
-
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)));
|
|
7968
7956
|
});
|
|
7969
7957
|
CProgress.propTypes = {
|
|
7970
7958
|
children: propTypes.exports.node,
|
|
@@ -8007,8 +7995,8 @@ var CPopover = function (_a) {
|
|
|
8007
7995
|
? 'fade'
|
|
8008
7996
|
: 'fade';
|
|
8009
7997
|
};
|
|
8010
|
-
return (
|
|
8011
|
-
|
|
7998
|
+
return (React.createElement(React.Fragment, null,
|
|
7999
|
+
React.cloneElement(children, __assign(__assign(__assign({ ref: setReferenceElement }, ((trigger === 'click' || trigger.includes('click')) && {
|
|
8012
8000
|
onClick: function () { return setVisible(!_visible); },
|
|
8013
8001
|
})), ((trigger === 'focus' || trigger.includes('focus')) && {
|
|
8014
8002
|
onFocus: function () { return setVisible(true); },
|
|
@@ -8018,15 +8006,15 @@ var CPopover = function (_a) {
|
|
|
8018
8006
|
onMouseLeave: function () { return setVisible(false); },
|
|
8019
8007
|
}))),
|
|
8020
8008
|
typeof window !== 'undefined' &&
|
|
8021
|
-
ReactDOM.createPortal(
|
|
8009
|
+
ReactDOM.createPortal(React.createElement(Transition, { in: _visible, mountOnEnter: true, nodeRef: popoverRef, onEnter: onShow, onExit: onHide, timeout: {
|
|
8022
8010
|
enter: 0,
|
|
8023
8011
|
exit: 200,
|
|
8024
8012
|
}, unmountOnExit: true }, function (state) {
|
|
8025
8013
|
var transitionClass = getTransitionClass(state);
|
|
8026
|
-
return (
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
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)));
|
|
8030
8018
|
}), document.body)));
|
|
8031
8019
|
};
|
|
8032
8020
|
CPopover.propTypes = {
|
|
@@ -8133,11 +8121,11 @@ var CSidebar = React.forwardRef(function (_a, ref) {
|
|
|
8133
8121
|
_b.show = _visible === true && mobile,
|
|
8134
8122
|
_b.hide = _visible === false && !mobile,
|
|
8135
8123
|
_b), className);
|
|
8136
|
-
return (
|
|
8137
|
-
|
|
8124
|
+
return (React.createElement(React.Fragment, null,
|
|
8125
|
+
React.createElement("div", __assign({ className: _className }, rest, { ref: forkedRef }), children),
|
|
8138
8126
|
typeof window !== 'undefined' &&
|
|
8139
8127
|
mobile &&
|
|
8140
|
-
ReactDOM.createPortal(
|
|
8128
|
+
ReactDOM.createPortal(React.createElement(CBackdrop, { className: "sidebar-backdrop", visible: _visible }), document.body)));
|
|
8141
8129
|
});
|
|
8142
8130
|
CSidebar.propTypes = {
|
|
8143
8131
|
children: propTypes.exports.node,
|
|
@@ -8157,7 +8145,7 @@ CSidebar.displayName = 'CSidebar';
|
|
|
8157
8145
|
var CSidebarBrand = React.forwardRef(function (_a, ref) {
|
|
8158
8146
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
8159
8147
|
var _className = classNames('sidebar-brand', className);
|
|
8160
|
-
return (
|
|
8148
|
+
return (React.createElement("div", __assign({ className: _className, ref: ref }, rest), children));
|
|
8161
8149
|
});
|
|
8162
8150
|
CSidebarBrand.propTypes = {
|
|
8163
8151
|
children: propTypes.exports.node,
|
|
@@ -8168,7 +8156,7 @@ CSidebarBrand.displayName = 'CSidebarBrand';
|
|
|
8168
8156
|
var CSidebarFooter = React.forwardRef(function (_a, ref) {
|
|
8169
8157
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
8170
8158
|
var _className = classNames('sidebar-footer', className);
|
|
8171
|
-
return (
|
|
8159
|
+
return (React.createElement("div", __assign({ className: _className, ref: ref }, rest), children));
|
|
8172
8160
|
});
|
|
8173
8161
|
CSidebarFooter.propTypes = {
|
|
8174
8162
|
children: propTypes.exports.node,
|
|
@@ -8179,7 +8167,7 @@ CSidebarFooter.displayName = 'CSidebarFooter';
|
|
|
8179
8167
|
var CSidebarToggler = React.forwardRef(function (_a, ref) {
|
|
8180
8168
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
8181
8169
|
var _className = classNames('sidebar-toggler', className);
|
|
8182
|
-
return (
|
|
8170
|
+
return (React.createElement("button", __assign({ className: _className, ref: ref }, rest), children));
|
|
8183
8171
|
});
|
|
8184
8172
|
CSidebarToggler.propTypes = {
|
|
8185
8173
|
children: propTypes.exports.node,
|
|
@@ -8190,7 +8178,7 @@ CSidebarToggler.displayName = 'CSidebarToggler';
|
|
|
8190
8178
|
var CSidebarHeader = React.forwardRef(function (_a, ref) {
|
|
8191
8179
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
8192
8180
|
var _className = classNames('sidebar-header', className);
|
|
8193
|
-
return (
|
|
8181
|
+
return (React.createElement("div", __assign({ className: _className, ref: ref }, rest), children));
|
|
8194
8182
|
});
|
|
8195
8183
|
CSidebarHeader.propTypes = {
|
|
8196
8184
|
children: propTypes.exports.node,
|
|
@@ -8201,8 +8189,8 @@ CSidebarHeader.displayName = 'CSidebarHeader';
|
|
|
8201
8189
|
var CSpinner = React.forwardRef(function (_a, ref) {
|
|
8202
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"]);
|
|
8203
8191
|
var _className = classNames("spinner-".concat(variant), "text-".concat(color), size && "spinner-".concat(variant, "-").concat(size), className);
|
|
8204
|
-
return (
|
|
8205
|
-
|
|
8192
|
+
return (React.createElement(Component, __assign({ className: _className, role: "status" }, rest, { ref: ref }),
|
|
8193
|
+
React.createElement("span", { className: "visually-hidden" }, visuallyHiddenLabel)));
|
|
8206
8194
|
});
|
|
8207
8195
|
CSpinner.propTypes = {
|
|
8208
8196
|
className: propTypes.exports.string,
|
|
@@ -8220,7 +8208,7 @@ var CTableHead = React.forwardRef(function (_a, ref) {
|
|
|
8220
8208
|
var _className = classNames((_b = {},
|
|
8221
8209
|
_b["table-".concat(color)] = color,
|
|
8222
8210
|
_b), className);
|
|
8223
|
-
return (
|
|
8211
|
+
return (React.createElement("thead", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
8224
8212
|
});
|
|
8225
8213
|
CTableHead.propTypes = {
|
|
8226
8214
|
children: propTypes.exports.node,
|
|
@@ -8235,7 +8223,7 @@ var CTableHeaderCell = React.forwardRef(function (_a, ref) {
|
|
|
8235
8223
|
var _className = classNames((_b = {},
|
|
8236
8224
|
_b["table-".concat(color)] = color,
|
|
8237
8225
|
_b), className);
|
|
8238
|
-
return (
|
|
8226
|
+
return (React.createElement("th", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
8239
8227
|
});
|
|
8240
8228
|
CTableHeaderCell.propTypes = {
|
|
8241
8229
|
children: propTypes.exports.node,
|
|
@@ -8250,7 +8238,7 @@ var CTableBody = React.forwardRef(function (_a, ref) {
|
|
|
8250
8238
|
var _className = classNames((_b = {},
|
|
8251
8239
|
_b["table-".concat(color)] = color,
|
|
8252
8240
|
_b), className);
|
|
8253
|
-
return (
|
|
8241
|
+
return (React.createElement("tbody", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
8254
8242
|
});
|
|
8255
8243
|
CTableBody.propTypes = {
|
|
8256
8244
|
children: propTypes.exports.node,
|
|
@@ -8268,7 +8256,7 @@ var CTableDataCell = React.forwardRef(function (_a, ref) {
|
|
|
8268
8256
|
_b["table-".concat(color)] = color,
|
|
8269
8257
|
_b), className);
|
|
8270
8258
|
var Component = rest.scope ? 'th' : 'td';
|
|
8271
|
-
return (
|
|
8259
|
+
return (React.createElement(Component, __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
8272
8260
|
});
|
|
8273
8261
|
CTableDataCell.propTypes = {
|
|
8274
8262
|
active: propTypes.exports.bool,
|
|
@@ -8287,7 +8275,7 @@ var CTableRow = React.forwardRef(function (_a, ref) {
|
|
|
8287
8275
|
_b['table-active'] = active,
|
|
8288
8276
|
_b["table-".concat(color)] = color,
|
|
8289
8277
|
_b), className);
|
|
8290
|
-
return (
|
|
8278
|
+
return (React.createElement("tr", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
8291
8279
|
});
|
|
8292
8280
|
CTableRow.propTypes = {
|
|
8293
8281
|
active: propTypes.exports.bool,
|
|
@@ -8304,7 +8292,7 @@ var CTableFoot = React.forwardRef(function (_a, ref) {
|
|
|
8304
8292
|
var _className = classNames((_b = {},
|
|
8305
8293
|
_b["table-".concat(color)] = color,
|
|
8306
8294
|
_b), className);
|
|
8307
|
-
return (
|
|
8295
|
+
return (React.createElement("tfoot", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
8308
8296
|
});
|
|
8309
8297
|
CTableFoot.propTypes = {
|
|
8310
8298
|
children: propTypes.exports.node,
|
|
@@ -8315,7 +8303,7 @@ CTableFoot.displayName = 'CTableFoot';
|
|
|
8315
8303
|
|
|
8316
8304
|
var CTableCaption = React.forwardRef(function (_a, ref) {
|
|
8317
8305
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
8318
|
-
return (
|
|
8306
|
+
return (React.createElement("caption", __assign({}, props, { ref: ref }), children));
|
|
8319
8307
|
});
|
|
8320
8308
|
CTableCaption.propTypes = {
|
|
8321
8309
|
children: propTypes.exports.node,
|
|
@@ -8324,7 +8312,7 @@ CTableCaption.displayName = 'CTableCaption';
|
|
|
8324
8312
|
|
|
8325
8313
|
var CTableResponsiveWrapper = function (_a) {
|
|
8326
8314
|
var children = _a.children, responsive = _a.responsive, rest = __rest(_a, ["children", "responsive"]);
|
|
8327
|
-
return responsive ? (
|
|
8315
|
+
return responsive ? (React.createElement("div", __assign({ className: typeof responsive === 'boolean' ? 'table-responsive' : "table-responsive-".concat(responsive) }, rest), children)) : (children);
|
|
8328
8316
|
};
|
|
8329
8317
|
CTableResponsiveWrapper.propTypes = {
|
|
8330
8318
|
children: propTypes.exports.any,
|
|
@@ -8374,17 +8362,17 @@ var CTable = React.forwardRef(function (_a, ref) {
|
|
|
8374
8362
|
: pretifyName(column.key)
|
|
8375
8363
|
: pretifyName(column);
|
|
8376
8364
|
};
|
|
8377
|
-
return (
|
|
8378
|
-
|
|
8379
|
-
((caption && caption !== 'top') || captionTop) && (
|
|
8380
|
-
columns && (
|
|
8381
|
-
|
|
8382
|
-
items && (
|
|
8383
|
-
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;
|
|
8384
8372
|
}))); }))),
|
|
8385
8373
|
children,
|
|
8386
|
-
footer && (
|
|
8387
|
-
|
|
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)); })))))));
|
|
8388
8376
|
});
|
|
8389
8377
|
CTable.propTypes = {
|
|
8390
8378
|
align: propTypes.exports.oneOf(['bottom', 'middle', 'top']),
|
|
@@ -8415,7 +8403,7 @@ CTable.displayName = 'CTable';
|
|
|
8415
8403
|
var CTabContent = React.forwardRef(function (_a, ref) {
|
|
8416
8404
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
8417
8405
|
var _className = classNames('tab-content', className);
|
|
8418
|
-
return (
|
|
8406
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
8419
8407
|
});
|
|
8420
8408
|
CTabContent.propTypes = {
|
|
8421
8409
|
children: propTypes.exports.node,
|
|
@@ -8433,9 +8421,9 @@ var CTabPane = React.forwardRef(function (_a, ref) {
|
|
|
8433
8421
|
var _className = classNames('tab-pane', 'fade', {
|
|
8434
8422
|
active: visible,
|
|
8435
8423
|
}, className);
|
|
8436
|
-
return (
|
|
8424
|
+
return (React.createElement(Transition, { in: visible, nodeRef: tabPaneRef, onEnter: onShow, onExit: onHide, timeout: 150 }, function (state) {
|
|
8437
8425
|
var transitionClass = getTransitionClass(state);
|
|
8438
|
-
return (
|
|
8426
|
+
return (React.createElement("div", __assign({ className: classNames(_className, transitionClass) }, rest, { ref: forkedRef }), children));
|
|
8439
8427
|
}));
|
|
8440
8428
|
});
|
|
8441
8429
|
CTabPane.propTypes = {
|
|
@@ -8490,10 +8478,10 @@ var CToast = React.forwardRef(function (_a, ref) {
|
|
|
8490
8478
|
? 'showing'
|
|
8491
8479
|
: 'fade';
|
|
8492
8480
|
};
|
|
8493
|
-
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) {
|
|
8494
8482
|
var transitionClass = getTransitionClass(state);
|
|
8495
|
-
return (
|
|
8496
|
-
|
|
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)));
|
|
8497
8485
|
}));
|
|
8498
8486
|
});
|
|
8499
8487
|
CToast.propTypes = {
|
|
@@ -8514,7 +8502,7 @@ CToast.displayName = 'CToast';
|
|
|
8514
8502
|
var CToastBody = React.forwardRef(function (_a, ref) {
|
|
8515
8503
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
8516
8504
|
var _className = classNames('toast-body', className);
|
|
8517
|
-
return (
|
|
8505
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
8518
8506
|
});
|
|
8519
8507
|
CToastBody.propTypes = {
|
|
8520
8508
|
children: propTypes.exports.node,
|
|
@@ -8525,7 +8513,7 @@ CToastBody.displayName = 'CToastBody';
|
|
|
8525
8513
|
var CToastClose = React.forwardRef(function (_a, ref) {
|
|
8526
8514
|
var children = _a.children, Component = _a.component, rest = __rest(_a, ["children", "component"]);
|
|
8527
8515
|
var setVisible = React.useContext(CToastContext).setVisible;
|
|
8528
|
-
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 })));
|
|
8529
8517
|
});
|
|
8530
8518
|
CToastClose.propTypes = __assign(__assign({}, CCloseButton.propTypes), { component: propTypes.exports.elementType });
|
|
8531
8519
|
CToastClose.displayName = 'CToastClose';
|
|
@@ -8533,9 +8521,9 @@ CToastClose.displayName = 'CToastClose';
|
|
|
8533
8521
|
var CToastHeader = React.forwardRef(function (_a, ref) {
|
|
8534
8522
|
var children = _a.children, className = _a.className, closeButton = _a.closeButton, rest = __rest(_a, ["children", "className", "closeButton"]);
|
|
8535
8523
|
var _className = classNames('toast-header', className);
|
|
8536
|
-
return (
|
|
8524
|
+
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
8537
8525
|
children,
|
|
8538
|
-
closeButton &&
|
|
8526
|
+
closeButton && React.createElement(CToastClose, null)));
|
|
8539
8527
|
});
|
|
8540
8528
|
CToastHeader.propTypes = {
|
|
8541
8529
|
children: propTypes.exports.node,
|
|
@@ -8554,7 +8542,7 @@ var CToaster = React.forwardRef(function (_a, ref) {
|
|
|
8554
8542
|
}, [push]);
|
|
8555
8543
|
var addToast = function (push) {
|
|
8556
8544
|
setToasts(function (state) { return __spreadArray(__spreadArray([], state, true), [
|
|
8557
|
-
|
|
8545
|
+
React.cloneElement(push, {
|
|
8558
8546
|
index: index.current,
|
|
8559
8547
|
key: index.current,
|
|
8560
8548
|
onClose: function (index) {
|
|
@@ -8573,9 +8561,9 @@ var CToaster = React.forwardRef(function (_a, ref) {
|
|
|
8573
8561
|
'end-0': placement && placement.includes('end'),
|
|
8574
8562
|
}, className);
|
|
8575
8563
|
var toaster = function (ref) {
|
|
8576
|
-
return toasts.length > 0 || children ? (
|
|
8564
|
+
return toasts.length > 0 || children ? (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
8577
8565
|
children,
|
|
8578
|
-
toasts.map(function (toast) { return
|
|
8566
|
+
toasts.map(function (toast) { return React.cloneElement(toast, { visible: true }); }))) : null;
|
|
8579
8567
|
};
|
|
8580
8568
|
return typeof window !== 'undefined' && placement
|
|
8581
8569
|
? ReactDOM.createPortal(toaster(ref), document.body)
|
|
@@ -8630,8 +8618,8 @@ var CTooltip = function (_a) {
|
|
|
8630
8618
|
? 'fade'
|
|
8631
8619
|
: 'fade';
|
|
8632
8620
|
};
|
|
8633
|
-
return (
|
|
8634
|
-
|
|
8621
|
+
return (React.createElement(React.Fragment, null,
|
|
8622
|
+
React.cloneElement(children, __assign(__assign(__assign({ ref: setReferenceElement }, ((trigger === 'click' || trigger.includes('click')) && {
|
|
8635
8623
|
onClick: function () { return setVisible(!_visible); },
|
|
8636
8624
|
})), ((trigger === 'focus' || trigger.includes('focus')) && {
|
|
8637
8625
|
onFocus: function () { return setVisible(true); },
|
|
@@ -8641,14 +8629,14 @@ var CTooltip = function (_a) {
|
|
|
8641
8629
|
onMouseLeave: function () { return setVisible(false); },
|
|
8642
8630
|
}))),
|
|
8643
8631
|
typeof window !== 'undefined' &&
|
|
8644
|
-
ReactDOM.createPortal(
|
|
8632
|
+
ReactDOM.createPortal(React.createElement(Transition, { in: _visible, mountOnEnter: true, nodeRef: tooltipRef, onEnter: onShow, onExit: onHide, timeout: {
|
|
8645
8633
|
enter: 0,
|
|
8646
8634
|
exit: 200,
|
|
8647
8635
|
}, unmountOnExit: true }, function (state) {
|
|
8648
8636
|
var transitionClass = getTransitionClass(state);
|
|
8649
|
-
return (
|
|
8650
|
-
|
|
8651
|
-
|
|
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)));
|
|
8652
8640
|
}), document.body)));
|
|
8653
8641
|
};
|
|
8654
8642
|
CTooltip.propTypes = {
|
|
@@ -8667,11 +8655,11 @@ var CWidgetStatsA = React.forwardRef(function (_a, ref) {
|
|
|
8667
8655
|
var _b;
|
|
8668
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"]);
|
|
8669
8657
|
var _className = classNames((_b = {}, _b["bg-".concat(color)] = color, _b['text-high-emphasis-inverse'] = color, _b), className);
|
|
8670
|
-
return (
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
value &&
|
|
8674
|
-
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)),
|
|
8675
8663
|
action),
|
|
8676
8664
|
chart));
|
|
8677
8665
|
});
|
|
@@ -8687,12 +8675,12 @@ CWidgetStatsA.displayName = 'CWidgetStatsA';
|
|
|
8687
8675
|
|
|
8688
8676
|
var CWidgetStatsB = React.forwardRef(function (_a, ref) {
|
|
8689
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"]);
|
|
8690
|
-
return (
|
|
8691
|
-
|
|
8692
|
-
value &&
|
|
8693
|
-
title &&
|
|
8694
|
-
|
|
8695
|
-
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)))));
|
|
8696
8684
|
});
|
|
8697
8685
|
CWidgetStatsB.propTypes = {
|
|
8698
8686
|
className: propTypes.exports.string,
|
|
@@ -8707,12 +8695,12 @@ CWidgetStatsB.displayName = 'CWidgetCWidgetStatsB';
|
|
|
8707
8695
|
|
|
8708
8696
|
var CWidgetStatsC = React.forwardRef(function (_a, ref) {
|
|
8709
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"]);
|
|
8710
|
-
return (
|
|
8711
|
-
|
|
8712
|
-
icon && (
|
|
8713
|
-
value && (
|
|
8714
|
-
title && (
|
|
8715
|
-
|
|
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)))));
|
|
8716
8704
|
});
|
|
8717
8705
|
CWidgetStatsC.propTypes = {
|
|
8718
8706
|
className: propTypes.exports.string,
|
|
@@ -8732,17 +8720,17 @@ var CWidgetStatsD = React.forwardRef(function (_a, ref) {
|
|
|
8732
8720
|
var classNameHeader = classNames('position-relative d-flex justify-content-center align-items-center', (_b = {},
|
|
8733
8721
|
_b["bg-".concat(color)] = color,
|
|
8734
8722
|
_b));
|
|
8735
|
-
return (
|
|
8736
|
-
|
|
8723
|
+
return (React.createElement(CCard, __assign({ className: _className }, rest, { ref: ref }),
|
|
8724
|
+
React.createElement(CCardHeader, { className: classNameHeader },
|
|
8737
8725
|
icon,
|
|
8738
8726
|
chart),
|
|
8739
|
-
|
|
8727
|
+
React.createElement(CCardBody, { className: "row text-center" }, values &&
|
|
8740
8728
|
values.map(function (value, index) {
|
|
8741
|
-
return (
|
|
8742
|
-
index % 2 !== 0 &&
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
|
|
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))));
|
|
8746
8734
|
}))));
|
|
8747
8735
|
});
|
|
8748
8736
|
CWidgetStatsD.propTypes = {
|
|
@@ -8757,10 +8745,10 @@ CWidgetStatsD.displayName = 'CWidgetStatsD';
|
|
|
8757
8745
|
var CWidgetStatsE = React.forwardRef(function (_a, ref) {
|
|
8758
8746
|
var chart = _a.chart, className = _a.className, title = _a.title, value = _a.value, rest = __rest(_a, ["chart", "className", "title", "value"]);
|
|
8759
8747
|
var _className = classNames(className);
|
|
8760
|
-
return (
|
|
8761
|
-
|
|
8762
|
-
title && (
|
|
8763
|
-
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),
|
|
8764
8752
|
chart)));
|
|
8765
8753
|
});
|
|
8766
8754
|
CWidgetStatsE.propTypes = {
|
|
@@ -8775,13 +8763,13 @@ CWidgetStatsE.displayName = 'CWidgetStatsE';
|
|
|
8775
8763
|
var CWidgetStatsF = React.forwardRef(function (_a, ref) {
|
|
8776
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"]);
|
|
8777
8765
|
var _className = classNames(className);
|
|
8778
|
-
return (
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
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)));
|
|
8785
8773
|
});
|
|
8786
8774
|
CWidgetStatsF.propTypes = {
|
|
8787
8775
|
className: propTypes.exports.string,
|
|
@@ -8840,6 +8828,8 @@ exports.CDropdownToggle = CDropdownToggle;
|
|
|
8840
8828
|
exports.CFooter = CFooter;
|
|
8841
8829
|
exports.CForm = CForm;
|
|
8842
8830
|
exports.CFormCheck = CFormCheck;
|
|
8831
|
+
exports.CFormControlValidation = CFormControlValidation;
|
|
8832
|
+
exports.CFormControlWrapper = CFormControlWrapper;
|
|
8843
8833
|
exports.CFormFeedback = CFormFeedback;
|
|
8844
8834
|
exports.CFormFloating = CFormFloating;
|
|
8845
8835
|
exports.CFormInput = CFormInput;
|