@coreui/react 4.8.0 → 4.9.0-alpha.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/popover/CPopover.d.ts +1 -1
- package/dist/components/tooltip/CTooltip.d.ts +3 -3
- package/dist/index.es.js +739 -665
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +739 -665
- package/dist/index.js.map +1 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/isRTL.d.ts +2 -0
- package/package.json +11 -10
- package/src/components/dropdown/CDropdownMenu.tsx +5 -4
- package/src/components/form/CFormCheck.tsx +1 -1
- package/src/components/popover/CPopover.tsx +62 -26
- package/src/components/tooltip/CTooltip.tsx +66 -31
- package/src/utils/index.ts +2 -1
- package/src/utils/isRTL.ts +13 -0
package/dist/index.js
CHANGED
|
@@ -37,6 +37,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
37
37
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
38
38
|
PERFORMANCE OF THIS SOFTWARE.
|
|
39
39
|
***************************************************************************** */
|
|
40
|
+
/* global Reflect, Promise */
|
|
41
|
+
|
|
40
42
|
|
|
41
43
|
var __assign = function() {
|
|
42
44
|
__assign = Object.assign || function __assign(t) {
|
|
@@ -71,17 +73,13 @@ function __spreadArray(to, from, pack) {
|
|
|
71
73
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
72
74
|
}
|
|
73
75
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
set exports(v){ propTypesExports = v; },
|
|
78
|
-
};
|
|
76
|
+
function getDefaultExportFromCjs (x) {
|
|
77
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
78
|
+
}
|
|
79
79
|
|
|
80
|
-
var
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
set exports(v){ reactIsExports = v; },
|
|
84
|
-
};
|
|
80
|
+
var propTypes = {exports: {}};
|
|
81
|
+
|
|
82
|
+
var reactIs = {exports: {}};
|
|
85
83
|
|
|
86
84
|
var reactIs_production_min = {};
|
|
87
85
|
|
|
@@ -300,17 +298,15 @@ function requireReactIs_development () {
|
|
|
300
298
|
var hasRequiredReactIs;
|
|
301
299
|
|
|
302
300
|
function requireReactIs () {
|
|
303
|
-
if (hasRequiredReactIs) return
|
|
301
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
|
304
302
|
hasRequiredReactIs = 1;
|
|
305
|
-
(function (module) {
|
|
306
303
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
return reactIsExports;
|
|
304
|
+
if (process.env.NODE_ENV === 'production') {
|
|
305
|
+
reactIs.exports = requireReactIs_production_min();
|
|
306
|
+
} else {
|
|
307
|
+
reactIs.exports = requireReactIs_development();
|
|
308
|
+
}
|
|
309
|
+
return reactIs.exports;
|
|
314
310
|
}
|
|
315
311
|
|
|
316
312
|
/*
|
|
@@ -1261,11 +1257,10 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1261
1257
|
propTypes.exports = requireFactoryWithThrowingShims()();
|
|
1262
1258
|
}
|
|
1263
1259
|
|
|
1264
|
-
var
|
|
1265
|
-
var
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
};
|
|
1260
|
+
var propTypesExports = propTypes.exports;
|
|
1261
|
+
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
1262
|
+
|
|
1263
|
+
var classnames = {exports: {}};
|
|
1269
1264
|
|
|
1270
1265
|
/*!
|
|
1271
1266
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -1321,10 +1316,11 @@ var classnames = {
|
|
|
1321
1316
|
} else {
|
|
1322
1317
|
window.classNames = classNames;
|
|
1323
1318
|
}
|
|
1324
|
-
}());
|
|
1319
|
+
}());
|
|
1325
1320
|
} (classnames));
|
|
1326
1321
|
|
|
1327
|
-
var
|
|
1322
|
+
var classnamesExports = classnames.exports;
|
|
1323
|
+
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
1328
1324
|
|
|
1329
1325
|
var CAccordionContext = React.createContext({});
|
|
1330
1326
|
var CAccordion = React.forwardRef(function (_a, ref) {
|
|
@@ -1334,11 +1330,11 @@ var CAccordion = React.forwardRef(function (_a, ref) {
|
|
|
1334
1330
|
React.createElement(CAccordionContext.Provider, { value: { _activeItemKey: _activeItemKey, alwaysOpen: alwaysOpen, setActiveKey: setActiveKey } }, children)));
|
|
1335
1331
|
});
|
|
1336
1332
|
CAccordion.propTypes = {
|
|
1337
|
-
alwaysOpen:
|
|
1338
|
-
activeItemKey:
|
|
1339
|
-
children:
|
|
1340
|
-
className:
|
|
1341
|
-
flush:
|
|
1333
|
+
alwaysOpen: PropTypes.bool,
|
|
1334
|
+
activeItemKey: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
1335
|
+
children: PropTypes.node,
|
|
1336
|
+
className: PropTypes.string,
|
|
1337
|
+
flush: PropTypes.bool,
|
|
1342
1338
|
};
|
|
1343
1339
|
CAccordion.displayName = 'CAccordion';
|
|
1344
1340
|
|
|
@@ -1358,9 +1354,9 @@ var CAccordionItem = React.forwardRef(function (_a, ref) {
|
|
|
1358
1354
|
React.createElement(CAccordionItemContext.Provider, { value: { setVisible: setVisible, visible: visible } }, children)));
|
|
1359
1355
|
});
|
|
1360
1356
|
CAccordionItem.propTypes = {
|
|
1361
|
-
children:
|
|
1362
|
-
className:
|
|
1363
|
-
itemKey:
|
|
1357
|
+
children: PropTypes.node,
|
|
1358
|
+
className: PropTypes.string,
|
|
1359
|
+
itemKey: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
1364
1360
|
};
|
|
1365
1361
|
CAccordionItem.displayName = 'CAccordionItem';
|
|
1366
1362
|
|
|
@@ -1453,22 +1449,22 @@ var config = {
|
|
|
1453
1449
|
disabled: false
|
|
1454
1450
|
};
|
|
1455
1451
|
|
|
1456
|
-
var timeoutsShape = process.env.NODE_ENV !== 'production' ?
|
|
1457
|
-
enter:
|
|
1458
|
-
exit:
|
|
1459
|
-
appear:
|
|
1452
|
+
var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
1453
|
+
enter: PropTypes.number,
|
|
1454
|
+
exit: PropTypes.number,
|
|
1455
|
+
appear: PropTypes.number
|
|
1460
1456
|
}).isRequired]) : null;
|
|
1461
|
-
var classNamesShape = process.env.NODE_ENV !== 'production' ?
|
|
1462
|
-
enter:
|
|
1463
|
-
exit:
|
|
1464
|
-
active:
|
|
1465
|
-
}),
|
|
1466
|
-
enter:
|
|
1467
|
-
enterDone:
|
|
1468
|
-
enterActive:
|
|
1469
|
-
exit:
|
|
1470
|
-
exitDone:
|
|
1471
|
-
exitActive:
|
|
1457
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
1458
|
+
enter: PropTypes.string,
|
|
1459
|
+
exit: PropTypes.string,
|
|
1460
|
+
active: PropTypes.string
|
|
1461
|
+
}), PropTypes.shape({
|
|
1462
|
+
enter: PropTypes.string,
|
|
1463
|
+
enterDone: PropTypes.string,
|
|
1464
|
+
enterActive: PropTypes.string,
|
|
1465
|
+
exit: PropTypes.string,
|
|
1466
|
+
exitDone: PropTypes.string,
|
|
1467
|
+
exitActive: PropTypes.string
|
|
1472
1468
|
})]) : null;
|
|
1473
1469
|
|
|
1474
1470
|
var TransitionGroupContext = React.createContext(null);
|
|
@@ -1895,10 +1891,10 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1895
1891
|
* (see
|
|
1896
1892
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
1897
1893
|
*/
|
|
1898
|
-
nodeRef:
|
|
1899
|
-
current: typeof Element === 'undefined' ?
|
|
1894
|
+
nodeRef: PropTypes.shape({
|
|
1895
|
+
current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {
|
|
1900
1896
|
var value = propValue[key];
|
|
1901
|
-
return
|
|
1897
|
+
return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
|
|
1902
1898
|
}
|
|
1903
1899
|
}),
|
|
1904
1900
|
|
|
@@ -1916,12 +1912,12 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1916
1912
|
* </Transition>
|
|
1917
1913
|
* ```
|
|
1918
1914
|
*/
|
|
1919
|
-
children:
|
|
1915
|
+
children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
|
|
1920
1916
|
|
|
1921
1917
|
/**
|
|
1922
1918
|
* Show the component; triggers the enter or exit states
|
|
1923
1919
|
*/
|
|
1924
|
-
in:
|
|
1920
|
+
in: PropTypes.bool,
|
|
1925
1921
|
|
|
1926
1922
|
/**
|
|
1927
1923
|
* By default the child component is mounted immediately along with
|
|
@@ -1929,13 +1925,13 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1929
1925
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
1930
1926
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
1931
1927
|
*/
|
|
1932
|
-
mountOnEnter:
|
|
1928
|
+
mountOnEnter: PropTypes.bool,
|
|
1933
1929
|
|
|
1934
1930
|
/**
|
|
1935
1931
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
1936
1932
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
1937
1933
|
*/
|
|
1938
|
-
unmountOnExit:
|
|
1934
|
+
unmountOnExit: PropTypes.bool,
|
|
1939
1935
|
|
|
1940
1936
|
/**
|
|
1941
1937
|
* By default the child component does not perform the enter transition when
|
|
@@ -1948,17 +1944,17 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1948
1944
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
1949
1945
|
* > differently.
|
|
1950
1946
|
*/
|
|
1951
|
-
appear:
|
|
1947
|
+
appear: PropTypes.bool,
|
|
1952
1948
|
|
|
1953
1949
|
/**
|
|
1954
1950
|
* Enable or disable enter transitions.
|
|
1955
1951
|
*/
|
|
1956
|
-
enter:
|
|
1952
|
+
enter: PropTypes.bool,
|
|
1957
1953
|
|
|
1958
1954
|
/**
|
|
1959
1955
|
* Enable or disable exit transitions.
|
|
1960
1956
|
*/
|
|
1961
|
-
exit:
|
|
1957
|
+
exit: PropTypes.bool,
|
|
1962
1958
|
|
|
1963
1959
|
/**
|
|
1964
1960
|
* The duration of the transition, in milliseconds.
|
|
@@ -2011,7 +2007,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2011
2007
|
* }}
|
|
2012
2008
|
* ```
|
|
2013
2009
|
*/
|
|
2014
|
-
addEndListener:
|
|
2010
|
+
addEndListener: PropTypes.func,
|
|
2015
2011
|
|
|
2016
2012
|
/**
|
|
2017
2013
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
@@ -2021,7 +2017,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2021
2017
|
*
|
|
2022
2018
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
2023
2019
|
*/
|
|
2024
|
-
onEnter:
|
|
2020
|
+
onEnter: PropTypes.func,
|
|
2025
2021
|
|
|
2026
2022
|
/**
|
|
2027
2023
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
@@ -2031,7 +2027,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2031
2027
|
*
|
|
2032
2028
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2033
2029
|
*/
|
|
2034
|
-
onEntering:
|
|
2030
|
+
onEntering: PropTypes.func,
|
|
2035
2031
|
|
|
2036
2032
|
/**
|
|
2037
2033
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
@@ -2041,7 +2037,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2041
2037
|
*
|
|
2042
2038
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
2043
2039
|
*/
|
|
2044
|
-
onEntered:
|
|
2040
|
+
onEntered: PropTypes.func,
|
|
2045
2041
|
|
|
2046
2042
|
/**
|
|
2047
2043
|
* Callback fired before the "exiting" status is applied.
|
|
@@ -2050,7 +2046,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2050
2046
|
*
|
|
2051
2047
|
* @type Function(node: HtmlElement) -> void
|
|
2052
2048
|
*/
|
|
2053
|
-
onExit:
|
|
2049
|
+
onExit: PropTypes.func,
|
|
2054
2050
|
|
|
2055
2051
|
/**
|
|
2056
2052
|
* Callback fired after the "exiting" status is applied.
|
|
@@ -2059,7 +2055,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2059
2055
|
*
|
|
2060
2056
|
* @type Function(node: HtmlElement) -> void
|
|
2061
2057
|
*/
|
|
2062
|
-
onExiting:
|
|
2058
|
+
onExiting: PropTypes.func,
|
|
2063
2059
|
|
|
2064
2060
|
/**
|
|
2065
2061
|
* Callback fired after the "exited" status is applied.
|
|
@@ -2068,7 +2064,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2068
2064
|
*
|
|
2069
2065
|
* @type Function(node: HtmlElement) -> void
|
|
2070
2066
|
*/
|
|
2071
|
-
onExited:
|
|
2067
|
+
onExited: PropTypes.func
|
|
2072
2068
|
} : {}; // Name the function so it is clearer in the documentation
|
|
2073
2069
|
|
|
2074
2070
|
function noop() {}
|
|
@@ -2443,7 +2439,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
|
|
|
2443
2439
|
*
|
|
2444
2440
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2445
2441
|
*/
|
|
2446
|
-
onEnter:
|
|
2442
|
+
onEnter: PropTypes.func,
|
|
2447
2443
|
|
|
2448
2444
|
/**
|
|
2449
2445
|
* A `<Transition>` callback fired immediately after the 'enter-active' or
|
|
@@ -2453,7 +2449,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
|
|
|
2453
2449
|
*
|
|
2454
2450
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2455
2451
|
*/
|
|
2456
|
-
onEntering:
|
|
2452
|
+
onEntering: PropTypes.func,
|
|
2457
2453
|
|
|
2458
2454
|
/**
|
|
2459
2455
|
* A `<Transition>` callback fired immediately after the 'enter' or
|
|
@@ -2463,7 +2459,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
|
|
|
2463
2459
|
*
|
|
2464
2460
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2465
2461
|
*/
|
|
2466
|
-
onEntered:
|
|
2462
|
+
onEntered: PropTypes.func,
|
|
2467
2463
|
|
|
2468
2464
|
/**
|
|
2469
2465
|
* A `<Transition>` callback fired immediately after the 'exit' class is
|
|
@@ -2473,7 +2469,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
|
|
|
2473
2469
|
*
|
|
2474
2470
|
* @type Function(node: HtmlElement)
|
|
2475
2471
|
*/
|
|
2476
|
-
onExit:
|
|
2472
|
+
onExit: PropTypes.func,
|
|
2477
2473
|
|
|
2478
2474
|
/**
|
|
2479
2475
|
* A `<Transition>` callback fired immediately after the 'exit-active' is applied.
|
|
@@ -2482,7 +2478,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
|
|
|
2482
2478
|
*
|
|
2483
2479
|
* @type Function(node: HtmlElement)
|
|
2484
2480
|
*/
|
|
2485
|
-
onExiting:
|
|
2481
|
+
onExiting: PropTypes.func,
|
|
2486
2482
|
|
|
2487
2483
|
/**
|
|
2488
2484
|
* A `<Transition>` callback fired immediately after the 'exit' classes
|
|
@@ -2492,11 +2488,12 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
|
|
|
2492
2488
|
*
|
|
2493
2489
|
* @type Function(node: HtmlElement)
|
|
2494
2490
|
*/
|
|
2495
|
-
onExited:
|
|
2491
|
+
onExited: PropTypes.func
|
|
2496
2492
|
}) : {};
|
|
2497
2493
|
var CSSTransition$1 = CSSTransition;
|
|
2498
2494
|
|
|
2499
2495
|
// code borrowed from https://github.com/reach/reach-ui
|
|
2496
|
+
// problem described https://github.com/facebook/react/issues/13029
|
|
2500
2497
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2501
2498
|
function useForkedRef() {
|
|
2502
2499
|
var refs = [];
|
|
@@ -2593,12 +2590,12 @@ var CCollapse = React.forwardRef(function (_a, ref) {
|
|
|
2593
2590
|
}));
|
|
2594
2591
|
});
|
|
2595
2592
|
CCollapse.propTypes = {
|
|
2596
|
-
children:
|
|
2597
|
-
className:
|
|
2598
|
-
horizontal:
|
|
2599
|
-
onHide:
|
|
2600
|
-
onShow:
|
|
2601
|
-
visible:
|
|
2593
|
+
children: PropTypes.node,
|
|
2594
|
+
className: PropTypes.string,
|
|
2595
|
+
horizontal: PropTypes.bool,
|
|
2596
|
+
onHide: PropTypes.func,
|
|
2597
|
+
onShow: PropTypes.func,
|
|
2598
|
+
visible: PropTypes.bool,
|
|
2602
2599
|
};
|
|
2603
2600
|
CCollapse.displayName = 'CCollapse';
|
|
2604
2601
|
|
|
@@ -2609,8 +2606,8 @@ var CAccordionBody = React.forwardRef(function (_a, ref) {
|
|
|
2609
2606
|
React.createElement("div", __assign({ className: classNames('accordion-body', className) }, rest, { ref: ref }), children)));
|
|
2610
2607
|
});
|
|
2611
2608
|
CAccordionBody.propTypes = {
|
|
2612
|
-
children:
|
|
2613
|
-
className:
|
|
2609
|
+
children: PropTypes.node,
|
|
2610
|
+
className: PropTypes.string,
|
|
2614
2611
|
};
|
|
2615
2612
|
CAccordionBody.displayName = 'CAccordionBody';
|
|
2616
2613
|
|
|
@@ -2620,8 +2617,8 @@ var CAccordionButton = React.forwardRef(function (_a, ref) {
|
|
|
2620
2617
|
return (React.createElement("button", __assign({ type: "button", className: classNames('accordion-button', { collapsed: !visible }, className), "aria-expanded": !visible, onClick: function () { return setVisible(!visible); } }, rest, { ref: ref }), children));
|
|
2621
2618
|
});
|
|
2622
2619
|
CAccordionButton.propTypes = {
|
|
2623
|
-
children:
|
|
2624
|
-
className:
|
|
2620
|
+
children: PropTypes.node,
|
|
2621
|
+
className: PropTypes.string,
|
|
2625
2622
|
};
|
|
2626
2623
|
CAccordionButton.displayName = 'CAccordionButton';
|
|
2627
2624
|
|
|
@@ -2631,8 +2628,8 @@ var CAccordionHeader = React.forwardRef(function (_a, ref) {
|
|
|
2631
2628
|
React.createElement(CAccordionButton, null, children)));
|
|
2632
2629
|
});
|
|
2633
2630
|
CAccordionHeader.propTypes = {
|
|
2634
|
-
children:
|
|
2635
|
-
className:
|
|
2631
|
+
children: PropTypes.node,
|
|
2632
|
+
className: PropTypes.string,
|
|
2636
2633
|
};
|
|
2637
2634
|
CAccordionHeader.displayName = 'CAccordionHeader';
|
|
2638
2635
|
|
|
@@ -2643,14 +2640,14 @@ var CCloseButton = React.forwardRef(function (_a, ref) {
|
|
|
2643
2640
|
}, disabled, className), "aria-label": "Close", disabled: disabled }, rest, { ref: ref })));
|
|
2644
2641
|
});
|
|
2645
2642
|
CCloseButton.propTypes = {
|
|
2646
|
-
className:
|
|
2647
|
-
disabled:
|
|
2648
|
-
white:
|
|
2643
|
+
className: PropTypes.string,
|
|
2644
|
+
disabled: PropTypes.bool,
|
|
2645
|
+
white: PropTypes.bool,
|
|
2649
2646
|
};
|
|
2650
2647
|
CCloseButton.displayName = 'CCloseButton';
|
|
2651
2648
|
|
|
2652
|
-
var colorPropType =
|
|
2653
|
-
|
|
2649
|
+
var colorPropType = PropTypes.oneOfType([
|
|
2650
|
+
PropTypes.oneOf([
|
|
2654
2651
|
'primary',
|
|
2655
2652
|
'secondary',
|
|
2656
2653
|
'success',
|
|
@@ -2660,9 +2657,9 @@ var colorPropType = propTypesExports.oneOfType([
|
|
|
2660
2657
|
'dark',
|
|
2661
2658
|
'light',
|
|
2662
2659
|
]),
|
|
2663
|
-
|
|
2660
|
+
PropTypes.string,
|
|
2664
2661
|
]);
|
|
2665
|
-
var placementPropType =
|
|
2662
|
+
var placementPropType = PropTypes.oneOf([
|
|
2666
2663
|
'auto',
|
|
2667
2664
|
'auto-start',
|
|
2668
2665
|
'auto-end',
|
|
@@ -2679,8 +2676,8 @@ var placementPropType = propTypesExports.oneOf([
|
|
|
2679
2676
|
'left',
|
|
2680
2677
|
'left-end',
|
|
2681
2678
|
]);
|
|
2682
|
-
var shapePropType =
|
|
2683
|
-
|
|
2679
|
+
var shapePropType = PropTypes.oneOfType([
|
|
2680
|
+
PropTypes.oneOf([
|
|
2684
2681
|
'rounded',
|
|
2685
2682
|
'rounded-top',
|
|
2686
2683
|
'rounded-end',
|
|
@@ -2693,14 +2690,14 @@ var shapePropType = propTypesExports.oneOfType([
|
|
|
2693
2690
|
'rounded-2',
|
|
2694
2691
|
'rounded-3',
|
|
2695
2692
|
]),
|
|
2696
|
-
|
|
2693
|
+
PropTypes.string,
|
|
2697
2694
|
]);
|
|
2698
|
-
var textColorsPropType =
|
|
2695
|
+
var textColorsPropType = PropTypes.oneOfType([
|
|
2699
2696
|
colorPropType,
|
|
2700
|
-
|
|
2701
|
-
|
|
2697
|
+
PropTypes.oneOf(['white', 'muted']),
|
|
2698
|
+
PropTypes.string,
|
|
2702
2699
|
]);
|
|
2703
|
-
var triggerPropType =
|
|
2700
|
+
var triggerPropType = PropTypes.oneOf(['hover', 'focus', 'click']);
|
|
2704
2701
|
|
|
2705
2702
|
var CAlert = React.forwardRef(function (_a, ref) {
|
|
2706
2703
|
var children = _a.children, className = _a.className, _b = _a.color, color = _b === void 0 ? 'primary' : _b, dismissible = _a.dismissible, variant = _a.variant, _c = _a.visible, visible = _c === void 0 ? true : _c, onClose = _a.onClose, rest = __rest(_a, ["children", "className", "color", "dismissible", "variant", "visible", "onClose"]);
|
|
@@ -2718,13 +2715,13 @@ var CAlert = React.forwardRef(function (_a, ref) {
|
|
|
2718
2715
|
dismissible && React.createElement(CCloseButton, { onClick: function () { return setVisible(false); } }))); }));
|
|
2719
2716
|
});
|
|
2720
2717
|
CAlert.propTypes = {
|
|
2721
|
-
children:
|
|
2722
|
-
className:
|
|
2718
|
+
children: PropTypes.node,
|
|
2719
|
+
className: PropTypes.string,
|
|
2723
2720
|
color: colorPropType.isRequired,
|
|
2724
|
-
dismissible:
|
|
2725
|
-
onClose:
|
|
2726
|
-
variant:
|
|
2727
|
-
visible:
|
|
2721
|
+
dismissible: PropTypes.bool,
|
|
2722
|
+
onClose: PropTypes.func,
|
|
2723
|
+
variant: PropTypes.string,
|
|
2724
|
+
visible: PropTypes.bool,
|
|
2728
2725
|
};
|
|
2729
2726
|
CAlert.displayName = 'CAlert';
|
|
2730
2727
|
|
|
@@ -2733,9 +2730,9 @@ var CAlertHeading = React.forwardRef(function (_a, ref) {
|
|
|
2733
2730
|
return (React.createElement(Component, __assign({ className: classNames('alert-heading', className) }, rest, { ref: ref }), children));
|
|
2734
2731
|
});
|
|
2735
2732
|
CAlertHeading.propTypes = {
|
|
2736
|
-
children:
|
|
2737
|
-
className:
|
|
2738
|
-
component:
|
|
2733
|
+
children: PropTypes.node,
|
|
2734
|
+
className: PropTypes.string,
|
|
2735
|
+
component: PropTypes.elementType,
|
|
2739
2736
|
};
|
|
2740
2737
|
CAlertHeading.displayName = 'CAlertHeading';
|
|
2741
2738
|
|
|
@@ -2753,11 +2750,11 @@ var CLink = React.forwardRef(function (_a, ref) {
|
|
|
2753
2750
|
}), { disabled: disabled }, rest, { ref: ref }), children));
|
|
2754
2751
|
});
|
|
2755
2752
|
CLink.propTypes = {
|
|
2756
|
-
active:
|
|
2757
|
-
children:
|
|
2758
|
-
className:
|
|
2759
|
-
component:
|
|
2760
|
-
disabled:
|
|
2753
|
+
active: PropTypes.bool,
|
|
2754
|
+
children: PropTypes.node,
|
|
2755
|
+
className: PropTypes.string,
|
|
2756
|
+
component: PropTypes.elementType,
|
|
2757
|
+
disabled: PropTypes.bool,
|
|
2761
2758
|
};
|
|
2762
2759
|
CLink.displayName = 'CLink';
|
|
2763
2760
|
|
|
@@ -2766,8 +2763,8 @@ var CAlertLink = React.forwardRef(function (_a, ref) {
|
|
|
2766
2763
|
return (React.createElement(CLink, __assign({ className: classNames('alert-link', className) }, rest, { ref: ref }), children));
|
|
2767
2764
|
});
|
|
2768
2765
|
CAlertLink.propTypes = {
|
|
2769
|
-
children:
|
|
2770
|
-
className:
|
|
2766
|
+
children: PropTypes.node,
|
|
2767
|
+
className: PropTypes.string,
|
|
2771
2768
|
};
|
|
2772
2769
|
CAlertLink.displayName = 'CAlertLink';
|
|
2773
2770
|
|
|
@@ -2784,13 +2781,13 @@ var CAvatar = React.forwardRef(function (_a, ref) {
|
|
|
2784
2781
|
status && React.createElement("span", { className: statusClassName })));
|
|
2785
2782
|
});
|
|
2786
2783
|
CAvatar.propTypes = {
|
|
2787
|
-
children:
|
|
2788
|
-
className:
|
|
2784
|
+
children: PropTypes.node,
|
|
2785
|
+
className: PropTypes.string,
|
|
2789
2786
|
color: colorPropType,
|
|
2790
2787
|
shape: shapePropType,
|
|
2791
|
-
size:
|
|
2792
|
-
src:
|
|
2793
|
-
status:
|
|
2788
|
+
size: PropTypes.string,
|
|
2789
|
+
src: PropTypes.string,
|
|
2790
|
+
status: PropTypes.string,
|
|
2794
2791
|
textColor: textColorsPropType,
|
|
2795
2792
|
};
|
|
2796
2793
|
CAvatar.displayName = 'CAvatar';
|
|
@@ -2804,8 +2801,8 @@ var CBackdrop = React.forwardRef(function (_a, ref) {
|
|
|
2804
2801
|
}) }, rest, { ref: forkedRef }))); }));
|
|
2805
2802
|
});
|
|
2806
2803
|
CBackdrop.propTypes = {
|
|
2807
|
-
className:
|
|
2808
|
-
visible:
|
|
2804
|
+
className: PropTypes.string,
|
|
2805
|
+
visible: PropTypes.bool,
|
|
2809
2806
|
};
|
|
2810
2807
|
CBackdrop.displayName = 'CBackdrop';
|
|
2811
2808
|
|
|
@@ -2824,13 +2821,13 @@ var CBadge = React.forwardRef(function (_a, ref) {
|
|
|
2824
2821
|
_b), shape, className) }, rest, { ref: ref }), children));
|
|
2825
2822
|
});
|
|
2826
2823
|
CBadge.propTypes = {
|
|
2827
|
-
children:
|
|
2828
|
-
className:
|
|
2824
|
+
children: PropTypes.node,
|
|
2825
|
+
className: PropTypes.string,
|
|
2829
2826
|
color: colorPropType,
|
|
2830
|
-
component:
|
|
2831
|
-
position:
|
|
2827
|
+
component: PropTypes.string,
|
|
2828
|
+
position: PropTypes.oneOf(['top-start', 'top-end', 'bottom-end', 'bottom-start']),
|
|
2832
2829
|
shape: shapePropType,
|
|
2833
|
-
size:
|
|
2830
|
+
size: PropTypes.oneOf(['sm']),
|
|
2834
2831
|
textColor: textColorsPropType,
|
|
2835
2832
|
};
|
|
2836
2833
|
CBadge.displayName = 'CBadge';
|
|
@@ -2841,8 +2838,8 @@ var CBreadcrumb = React.forwardRef(function (_a, ref) {
|
|
|
2841
2838
|
React.createElement("ol", __assign({ className: classNames('breadcrumb', className) }, rest, { ref: ref }), children)));
|
|
2842
2839
|
});
|
|
2843
2840
|
CBreadcrumb.propTypes = {
|
|
2844
|
-
children:
|
|
2845
|
-
className:
|
|
2841
|
+
children: PropTypes.node,
|
|
2842
|
+
className: PropTypes.string,
|
|
2846
2843
|
};
|
|
2847
2844
|
CBreadcrumb.displayName = 'CBreadcrumb';
|
|
2848
2845
|
|
|
@@ -2853,10 +2850,10 @@ var CBreadcrumbItem = React.forwardRef(function (_a, ref) {
|
|
|
2853
2850
|
}, className) }, (active && { 'aria-current': 'page' }), rest, { ref: ref }), href ? React.createElement(CLink, { href: href }, children) : children));
|
|
2854
2851
|
});
|
|
2855
2852
|
CBreadcrumbItem.propTypes = {
|
|
2856
|
-
active:
|
|
2857
|
-
children:
|
|
2858
|
-
className:
|
|
2859
|
-
href:
|
|
2853
|
+
active: PropTypes.bool,
|
|
2854
|
+
children: PropTypes.node,
|
|
2855
|
+
className: PropTypes.string,
|
|
2856
|
+
href: PropTypes.string,
|
|
2860
2857
|
};
|
|
2861
2858
|
CBreadcrumbItem.displayName = 'CBreadcrumbItem';
|
|
2862
2859
|
|
|
@@ -2866,14 +2863,14 @@ var CButton = React.forwardRef(function (_a, ref) {
|
|
|
2866
2863
|
return (React.createElement(CLink, __assign({ component: rest.href ? 'a' : component, type: type, className: classNames('btn', variant ? "btn-".concat(variant, "-").concat(color) : "btn-".concat(color), (_b = {}, _b["btn-".concat(size)] = size, _b), shape, className) }, rest, { ref: ref }), children));
|
|
2867
2864
|
});
|
|
2868
2865
|
CButton.propTypes = {
|
|
2869
|
-
children:
|
|
2870
|
-
className:
|
|
2866
|
+
children: PropTypes.node,
|
|
2867
|
+
className: PropTypes.string,
|
|
2871
2868
|
color: colorPropType,
|
|
2872
|
-
component:
|
|
2873
|
-
shape:
|
|
2874
|
-
size:
|
|
2875
|
-
type:
|
|
2876
|
-
variant:
|
|
2869
|
+
component: PropTypes.elementType,
|
|
2870
|
+
shape: PropTypes.string,
|
|
2871
|
+
size: PropTypes.oneOf(['sm', 'lg']),
|
|
2872
|
+
type: PropTypes.oneOf(['button', 'submit', 'reset']),
|
|
2873
|
+
variant: PropTypes.oneOf(['outline', 'ghost']),
|
|
2877
2874
|
};
|
|
2878
2875
|
CButton.displayName = 'CButton';
|
|
2879
2876
|
|
|
@@ -2882,8 +2879,8 @@ var CButtonToolbar = React.forwardRef(function (_a, ref) {
|
|
|
2882
2879
|
return (React.createElement("div", __assign({ className: classNames('btn-toolbar', className) }, rest, { ref: ref }), children));
|
|
2883
2880
|
});
|
|
2884
2881
|
CButtonToolbar.propTypes = {
|
|
2885
|
-
children:
|
|
2886
|
-
className:
|
|
2882
|
+
children: PropTypes.node,
|
|
2883
|
+
className: PropTypes.string,
|
|
2887
2884
|
};
|
|
2888
2885
|
CButtonToolbar.displayName = 'CButtonToolbar';
|
|
2889
2886
|
|
|
@@ -2893,10 +2890,10 @@ var CButtonGroup = React.forwardRef(function (_a, ref) {
|
|
|
2893
2890
|
return (React.createElement("div", __assign({ className: classNames(vertical ? 'btn-group-vertical' : 'btn-group', (_b = {}, _b["btn-group-".concat(size)] = size, _b), className) }, rest, { ref: ref }), children));
|
|
2894
2891
|
});
|
|
2895
2892
|
CButtonGroup.propTypes = {
|
|
2896
|
-
children:
|
|
2897
|
-
className:
|
|
2898
|
-
size:
|
|
2899
|
-
vertical:
|
|
2893
|
+
children: PropTypes.node,
|
|
2894
|
+
className: PropTypes.string,
|
|
2895
|
+
size: PropTypes.oneOf(['sm', 'lg']),
|
|
2896
|
+
vertical: PropTypes.bool,
|
|
2900
2897
|
};
|
|
2901
2898
|
CButtonGroup.displayName = 'CButtonGroup';
|
|
2902
2899
|
|
|
@@ -2908,8 +2905,8 @@ var CCallout = React.forwardRef(function (_a, ref) {
|
|
|
2908
2905
|
_b), className) }, rest, { ref: ref }), children));
|
|
2909
2906
|
});
|
|
2910
2907
|
CCallout.propTypes = {
|
|
2911
|
-
children:
|
|
2912
|
-
className:
|
|
2908
|
+
children: PropTypes.node,
|
|
2909
|
+
className: PropTypes.string,
|
|
2913
2910
|
color: colorPropType,
|
|
2914
2911
|
};
|
|
2915
2912
|
CCallout.displayName = 'CCallout';
|
|
@@ -2923,10 +2920,10 @@ var CCard = React.forwardRef(function (_a, ref) {
|
|
|
2923
2920
|
_b), className) }, rest, { ref: ref }), children));
|
|
2924
2921
|
});
|
|
2925
2922
|
CCard.propTypes = {
|
|
2926
|
-
children:
|
|
2927
|
-
className:
|
|
2923
|
+
children: PropTypes.node,
|
|
2924
|
+
className: PropTypes.string,
|
|
2928
2925
|
color: colorPropType,
|
|
2929
|
-
textColor:
|
|
2926
|
+
textColor: PropTypes.string,
|
|
2930
2927
|
};
|
|
2931
2928
|
CCard.displayName = 'CCard';
|
|
2932
2929
|
|
|
@@ -2935,8 +2932,8 @@ var CCardBody = React.forwardRef(function (_a, ref) {
|
|
|
2935
2932
|
return (React.createElement("div", __assign({ className: classNames('card-body', className) }, rest, { ref: ref }), children));
|
|
2936
2933
|
});
|
|
2937
2934
|
CCardBody.propTypes = {
|
|
2938
|
-
children:
|
|
2939
|
-
className:
|
|
2935
|
+
children: PropTypes.node,
|
|
2936
|
+
className: PropTypes.string,
|
|
2940
2937
|
};
|
|
2941
2938
|
CCardBody.displayName = 'CCardBody';
|
|
2942
2939
|
|
|
@@ -2945,8 +2942,8 @@ var CCardFooter = React.forwardRef(function (_a, ref) {
|
|
|
2945
2942
|
return (React.createElement("div", __assign({ className: classNames('card-footer', className) }, rest, { ref: ref }), children));
|
|
2946
2943
|
});
|
|
2947
2944
|
CCardFooter.propTypes = {
|
|
2948
|
-
children:
|
|
2949
|
-
className:
|
|
2945
|
+
children: PropTypes.node,
|
|
2946
|
+
className: PropTypes.string,
|
|
2950
2947
|
};
|
|
2951
2948
|
CCardFooter.displayName = 'CCardFooter';
|
|
2952
2949
|
|
|
@@ -2955,8 +2952,8 @@ var CCardGroup = React.forwardRef(function (_a, ref) {
|
|
|
2955
2952
|
return (React.createElement("div", __assign({ className: classNames('card-group', className) }, rest, { ref: ref }), children));
|
|
2956
2953
|
});
|
|
2957
2954
|
CCardGroup.propTypes = {
|
|
2958
|
-
children:
|
|
2959
|
-
className:
|
|
2955
|
+
children: PropTypes.node,
|
|
2956
|
+
className: PropTypes.string,
|
|
2960
2957
|
};
|
|
2961
2958
|
CCardGroup.displayName = 'CCardGroup';
|
|
2962
2959
|
|
|
@@ -2965,9 +2962,9 @@ var CCardHeader = React.forwardRef(function (_a, ref) {
|
|
|
2965
2962
|
return (React.createElement(Component, __assign({ className: classNames('card-header', className) }, rest, { ref: ref }), children));
|
|
2966
2963
|
});
|
|
2967
2964
|
CCardHeader.propTypes = {
|
|
2968
|
-
children:
|
|
2969
|
-
className:
|
|
2970
|
-
component:
|
|
2965
|
+
children: PropTypes.node,
|
|
2966
|
+
className: PropTypes.string,
|
|
2967
|
+
component: PropTypes.elementType,
|
|
2971
2968
|
};
|
|
2972
2969
|
CCardHeader.displayName = 'CCardHeader';
|
|
2973
2970
|
|
|
@@ -2976,10 +2973,10 @@ var CCardImage = React.forwardRef(function (_a, ref) {
|
|
|
2976
2973
|
return (React.createElement(Component, __assign({ className: classNames(orientation ? "card-img-".concat(orientation) : 'card-img', className) }, rest, { ref: ref }), children));
|
|
2977
2974
|
});
|
|
2978
2975
|
CCardImage.propTypes = {
|
|
2979
|
-
children:
|
|
2980
|
-
className:
|
|
2981
|
-
component:
|
|
2982
|
-
orientation:
|
|
2976
|
+
children: PropTypes.node,
|
|
2977
|
+
className: PropTypes.string,
|
|
2978
|
+
component: PropTypes.elementType,
|
|
2979
|
+
orientation: PropTypes.oneOf(['top', 'bottom']),
|
|
2983
2980
|
};
|
|
2984
2981
|
CCardImage.displayName = 'CCardImage';
|
|
2985
2982
|
|
|
@@ -2988,8 +2985,8 @@ var CCardImageOverlay = React.forwardRef(function (_a, ref) {
|
|
|
2988
2985
|
return (React.createElement("div", __assign({ className: classNames('card-img-overlay', className) }, rest, { ref: ref }), children));
|
|
2989
2986
|
});
|
|
2990
2987
|
CCardImageOverlay.propTypes = {
|
|
2991
|
-
children:
|
|
2992
|
-
className:
|
|
2988
|
+
children: PropTypes.node,
|
|
2989
|
+
className: PropTypes.string,
|
|
2993
2990
|
};
|
|
2994
2991
|
CCardImageOverlay.displayName = 'CCardImageOverlay';
|
|
2995
2992
|
|
|
@@ -2998,8 +2995,8 @@ var CCardLink = React.forwardRef(function (_a, ref) {
|
|
|
2998
2995
|
return (React.createElement(CLink, __assign({ className: classNames('card-link', className) }, rest, { ref: ref }), children));
|
|
2999
2996
|
});
|
|
3000
2997
|
CCardLink.propTypes = {
|
|
3001
|
-
children:
|
|
3002
|
-
className:
|
|
2998
|
+
children: PropTypes.node,
|
|
2999
|
+
className: PropTypes.string,
|
|
3003
3000
|
};
|
|
3004
3001
|
CCardLink.displayName = 'CCardLink';
|
|
3005
3002
|
|
|
@@ -3008,9 +3005,9 @@ var CCardSubtitle = React.forwardRef(function (_a, ref) {
|
|
|
3008
3005
|
return (React.createElement(Component, __assign({ className: classNames('card-subtitle', className) }, rest, { ref: ref }), children));
|
|
3009
3006
|
});
|
|
3010
3007
|
CCardSubtitle.propTypes = {
|
|
3011
|
-
children:
|
|
3012
|
-
className:
|
|
3013
|
-
component:
|
|
3008
|
+
children: PropTypes.node,
|
|
3009
|
+
className: PropTypes.string,
|
|
3010
|
+
component: PropTypes.elementType,
|
|
3014
3011
|
};
|
|
3015
3012
|
CCardSubtitle.displayName = 'CCardSubtitle';
|
|
3016
3013
|
|
|
@@ -3019,9 +3016,9 @@ var CCardText = React.forwardRef(function (_a, ref) {
|
|
|
3019
3016
|
return (React.createElement(Component, __assign({ className: classNames('card-text', className) }, rest, { ref: ref }), children));
|
|
3020
3017
|
});
|
|
3021
3018
|
CCardText.propTypes = {
|
|
3022
|
-
children:
|
|
3023
|
-
className:
|
|
3024
|
-
component:
|
|
3019
|
+
children: PropTypes.node,
|
|
3020
|
+
className: PropTypes.string,
|
|
3021
|
+
component: PropTypes.elementType,
|
|
3025
3022
|
};
|
|
3026
3023
|
CCardText.displayName = 'CCardText';
|
|
3027
3024
|
|
|
@@ -3030,9 +3027,9 @@ var CCardTitle = React.forwardRef(function (_a, ref) {
|
|
|
3030
3027
|
return (React.createElement(Component, __assign({ className: classNames('card-title', className) }, rest, { ref: ref }), children));
|
|
3031
3028
|
});
|
|
3032
3029
|
CCardTitle.propTypes = {
|
|
3033
|
-
children:
|
|
3034
|
-
className:
|
|
3035
|
-
component:
|
|
3030
|
+
children: PropTypes.node,
|
|
3031
|
+
className: PropTypes.string,
|
|
3032
|
+
component: PropTypes.elementType,
|
|
3036
3033
|
};
|
|
3037
3034
|
CCardTitle.displayName = 'CCardTitle';
|
|
3038
3035
|
|
|
@@ -3044,6 +3041,16 @@ var isInViewport = function (element) {
|
|
|
3044
3041
|
Math.floor(rect.right) <= (window.innerWidth || document.documentElement.clientWidth));
|
|
3045
3042
|
};
|
|
3046
3043
|
|
|
3044
|
+
var isRTL = function (element) {
|
|
3045
|
+
if (document.documentElement.dir === 'rtl') {
|
|
3046
|
+
return true;
|
|
3047
|
+
}
|
|
3048
|
+
if (element) {
|
|
3049
|
+
return element.closest('[dir="rtl"]') !== null;
|
|
3050
|
+
}
|
|
3051
|
+
return false;
|
|
3052
|
+
};
|
|
3053
|
+
|
|
3047
3054
|
var CCarouselContext = React.createContext({});
|
|
3048
3055
|
var CCarousel = React.forwardRef(function (_a, ref) {
|
|
3049
3056
|
var children = _a.children, _b = _a.activeIndex, activeIndex = _b === void 0 ? 0 : _b, className = _a.className, controls = _a.controls, dark = _a.dark, indicators = _a.indicators, _c = _a.interval, interval = _c === void 0 ? 5000 : _c, onSlid = _a.onSlid, onSlide = _a.onSlide, _d = _a.pause, pause = _d === void 0 ? 'hover' : _d, _e = _a.touch, touch = _e === void 0 ? true : _e, transition = _a.transition, _f = _a.wrap, wrap = _f === void 0 ? true : _f, rest = __rest(_a, ["children", "activeIndex", "className", "controls", "dark", "indicators", "interval", "onSlid", "onSlide", "pause", "touch", "transition", "wrap"]);
|
|
@@ -3177,19 +3184,19 @@ var CCarousel = React.forwardRef(function (_a, ref) {
|
|
|
3177
3184
|
React.createElement("span", { className: "carousel-control-next-icon", "aria-label": "next" })))))));
|
|
3178
3185
|
});
|
|
3179
3186
|
CCarousel.propTypes = {
|
|
3180
|
-
activeIndex:
|
|
3181
|
-
children:
|
|
3182
|
-
className:
|
|
3183
|
-
controls:
|
|
3184
|
-
dark:
|
|
3185
|
-
indicators:
|
|
3186
|
-
interval:
|
|
3187
|
-
onSlid:
|
|
3188
|
-
onSlide:
|
|
3189
|
-
pause:
|
|
3190
|
-
touch:
|
|
3191
|
-
transition:
|
|
3192
|
-
wrap:
|
|
3187
|
+
activeIndex: PropTypes.number,
|
|
3188
|
+
children: PropTypes.node,
|
|
3189
|
+
className: PropTypes.string,
|
|
3190
|
+
controls: PropTypes.bool,
|
|
3191
|
+
dark: PropTypes.bool,
|
|
3192
|
+
indicators: PropTypes.bool,
|
|
3193
|
+
interval: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),
|
|
3194
|
+
onSlid: PropTypes.func,
|
|
3195
|
+
onSlide: PropTypes.func,
|
|
3196
|
+
pause: PropTypes.oneOf([false, 'hover']),
|
|
3197
|
+
touch: PropTypes.bool,
|
|
3198
|
+
transition: PropTypes.oneOf(['slide', 'crossfade']),
|
|
3199
|
+
wrap: PropTypes.bool,
|
|
3193
3200
|
};
|
|
3194
3201
|
CCarousel.displayName = 'CCarousel';
|
|
3195
3202
|
|
|
@@ -3198,7 +3205,7 @@ var CCarouselCaption = React.forwardRef(function (_a, ref) {
|
|
|
3198
3205
|
return React.createElement("div", __assign({ className: classNames('carousel-caption', className) }, rest, { ref: ref }));
|
|
3199
3206
|
});
|
|
3200
3207
|
CCarouselCaption.propTypes = {
|
|
3201
|
-
className:
|
|
3208
|
+
className: PropTypes.string,
|
|
3202
3209
|
};
|
|
3203
3210
|
CCarouselCaption.displayName = 'CCarouselCaption';
|
|
3204
3211
|
|
|
@@ -3273,11 +3280,11 @@ var CCarouselItem = React.forwardRef(function (_a, ref) {
|
|
|
3273
3280
|
return (React.createElement("div", __assign({ className: classNames('carousel-item', activeClassName, directionClassName, orderClassName, className), ref: forkedRef }, rest), children));
|
|
3274
3281
|
});
|
|
3275
3282
|
CCarouselItem.propTypes = {
|
|
3276
|
-
active:
|
|
3277
|
-
children:
|
|
3278
|
-
className:
|
|
3279
|
-
direction:
|
|
3280
|
-
interval:
|
|
3283
|
+
active: PropTypes.bool,
|
|
3284
|
+
children: PropTypes.node,
|
|
3285
|
+
className: PropTypes.string,
|
|
3286
|
+
direction: PropTypes.string,
|
|
3287
|
+
interval: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),
|
|
3281
3288
|
};
|
|
3282
3289
|
CCarouselItem.displayName = 'CCarouselItem';
|
|
3283
3290
|
|
|
@@ -3286,8 +3293,8 @@ var CConditionalPortal = function (_a) {
|
|
|
3286
3293
|
return typeof window !== 'undefined' && portal ? (ReactDOM.createPortal(children, document.body)) : (React.createElement(React.Fragment, null, children));
|
|
3287
3294
|
};
|
|
3288
3295
|
CConditionalPortal.propTypes = {
|
|
3289
|
-
children:
|
|
3290
|
-
portal:
|
|
3296
|
+
children: PropTypes.node,
|
|
3297
|
+
portal: PropTypes.bool.isRequired,
|
|
3291
3298
|
};
|
|
3292
3299
|
CConditionalPortal.displayName = 'CConditionalPortal';
|
|
3293
3300
|
|
|
@@ -3533,7 +3540,7 @@ var round = Math.round;
|
|
|
3533
3540
|
function getUAString() {
|
|
3534
3541
|
var uaData = navigator.userAgentData;
|
|
3535
3542
|
|
|
3536
|
-
if (uaData != null && uaData.brands) {
|
|
3543
|
+
if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
|
|
3537
3544
|
return uaData.brands.map(function (item) {
|
|
3538
3545
|
return item.brand + "/" + item.version;
|
|
3539
3546
|
}).join(' ');
|
|
@@ -3861,10 +3868,9 @@ var unsetSides = {
|
|
|
3861
3868
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
3862
3869
|
// cleanly divide the values into the appropriate subpixels.
|
|
3863
3870
|
|
|
3864
|
-
function roundOffsetsByDPR(_ref) {
|
|
3871
|
+
function roundOffsetsByDPR(_ref, win) {
|
|
3865
3872
|
var x = _ref.x,
|
|
3866
3873
|
y = _ref.y;
|
|
3867
|
-
var win = window;
|
|
3868
3874
|
var dpr = win.devicePixelRatio || 1;
|
|
3869
3875
|
return {
|
|
3870
3876
|
x: round(x * dpr) / dpr || 0,
|
|
@@ -3947,7 +3953,7 @@ function mapToStyles(_ref2) {
|
|
|
3947
3953
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
3948
3954
|
x: x,
|
|
3949
3955
|
y: y
|
|
3950
|
-
}) : {
|
|
3956
|
+
}, getWindow(popper)) : {
|
|
3951
3957
|
x: x,
|
|
3952
3958
|
y: y
|
|
3953
3959
|
};
|
|
@@ -5484,6 +5490,8 @@ var reactFastCompare = function isEqual(a, b) {
|
|
|
5484
5490
|
}
|
|
5485
5491
|
};
|
|
5486
5492
|
|
|
5493
|
+
var isEqual = /*@__PURE__*/getDefaultExportFromCjs(reactFastCompare);
|
|
5494
|
+
|
|
5487
5495
|
var EMPTY_MODIFIERS$1 = [];
|
|
5488
5496
|
var usePopper = function usePopper(referenceElement, popperElement, options) {
|
|
5489
5497
|
if (options === void 0) {
|
|
@@ -5547,7 +5555,7 @@ var usePopper = function usePopper(referenceElement, popperElement, options) {
|
|
|
5547
5555
|
}])
|
|
5548
5556
|
};
|
|
5549
5557
|
|
|
5550
|
-
if (
|
|
5558
|
+
if (isEqual(prevOptions.current, newOptions)) {
|
|
5551
5559
|
return prevOptions.current || newOptions;
|
|
5552
5560
|
} else {
|
|
5553
5561
|
prevOptions.current = newOptions;
|
|
@@ -5715,6 +5723,8 @@ if (__DEV__) {
|
|
|
5715
5723
|
|
|
5716
5724
|
var warning_1 = warning;
|
|
5717
5725
|
|
|
5726
|
+
var warning$1 = /*@__PURE__*/getDefaultExportFromCjs(warning_1);
|
|
5727
|
+
|
|
5718
5728
|
function Reference(_ref) {
|
|
5719
5729
|
var children = _ref.children,
|
|
5720
5730
|
innerRef = _ref.innerRef;
|
|
@@ -5731,7 +5741,7 @@ function Reference(_ref) {
|
|
|
5731
5741
|
};
|
|
5732
5742
|
}, []);
|
|
5733
5743
|
React__namespace.useEffect(function () {
|
|
5734
|
-
|
|
5744
|
+
warning$1(Boolean(setReferenceNode), '`Reference` should not be used outside of a `Manager` component.');
|
|
5735
5745
|
}, [setReferenceNode]);
|
|
5736
5746
|
return unwrapArray(children)({
|
|
5737
5747
|
ref: refHandler
|
|
@@ -5784,34 +5794,34 @@ var CDropdown = React.forwardRef(function (_a, ref) {
|
|
|
5784
5794
|
_b.show = _visible,
|
|
5785
5795
|
_b), className) }, rest, { ref: forkedRef }), children)))));
|
|
5786
5796
|
});
|
|
5787
|
-
var alignmentDirection =
|
|
5797
|
+
var alignmentDirection = PropTypes.oneOf(['start', 'end']);
|
|
5788
5798
|
CDropdown.propTypes = {
|
|
5789
5799
|
// @ts-expect-error TODO: we have to find a solution
|
|
5790
|
-
alignment:
|
|
5800
|
+
alignment: PropTypes.oneOfType([
|
|
5791
5801
|
alignmentDirection,
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5802
|
+
PropTypes.shape({ xs: alignmentDirection }),
|
|
5803
|
+
PropTypes.shape({ sm: alignmentDirection }),
|
|
5804
|
+
PropTypes.shape({ md: alignmentDirection }),
|
|
5805
|
+
PropTypes.shape({ lg: alignmentDirection }),
|
|
5806
|
+
PropTypes.shape({ xl: alignmentDirection }),
|
|
5807
|
+
PropTypes.shape({ xxl: alignmentDirection }),
|
|
5798
5808
|
]),
|
|
5799
|
-
autoClose:
|
|
5800
|
-
|
|
5801
|
-
|
|
5809
|
+
autoClose: PropTypes.oneOfType([
|
|
5810
|
+
PropTypes.bool,
|
|
5811
|
+
PropTypes.oneOf(['inside', 'outside']),
|
|
5802
5812
|
]),
|
|
5803
|
-
children:
|
|
5804
|
-
className:
|
|
5805
|
-
component:
|
|
5806
|
-
dark:
|
|
5807
|
-
direction:
|
|
5808
|
-
onHide:
|
|
5809
|
-
onShow:
|
|
5813
|
+
children: PropTypes.node,
|
|
5814
|
+
className: PropTypes.string,
|
|
5815
|
+
component: PropTypes.elementType,
|
|
5816
|
+
dark: PropTypes.bool,
|
|
5817
|
+
direction: PropTypes.oneOf(['center', 'dropup', 'dropup-center', 'dropend', 'dropstart']),
|
|
5818
|
+
onHide: PropTypes.func,
|
|
5819
|
+
onShow: PropTypes.func,
|
|
5810
5820
|
placement: placementPropType,
|
|
5811
|
-
popper:
|
|
5812
|
-
portal:
|
|
5813
|
-
variant:
|
|
5814
|
-
visible:
|
|
5821
|
+
popper: PropTypes.bool,
|
|
5822
|
+
portal: PropTypes.bool,
|
|
5823
|
+
variant: PropTypes.oneOf(['btn-group', 'dropdown', 'input-group', 'nav-item']),
|
|
5824
|
+
visible: PropTypes.bool,
|
|
5815
5825
|
};
|
|
5816
5826
|
CDropdown.displayName = 'CDropdown';
|
|
5817
5827
|
|
|
@@ -5820,7 +5830,7 @@ var CDropdownDivider = React.forwardRef(function (_a, ref) {
|
|
|
5820
5830
|
return React.createElement("hr", __assign({ className: classNames('dropdown-divider', className) }, rest, { ref: ref }));
|
|
5821
5831
|
});
|
|
5822
5832
|
CDropdownDivider.propTypes = {
|
|
5823
|
-
className:
|
|
5833
|
+
className: PropTypes.string,
|
|
5824
5834
|
};
|
|
5825
5835
|
CDropdownDivider.displayName = 'CDropdownDivider';
|
|
5826
5836
|
|
|
@@ -5829,9 +5839,9 @@ var CDropdownHeader = React.forwardRef(function (_a, ref) {
|
|
|
5829
5839
|
return (React.createElement(Component, __assign({ className: classNames('dropdown-header', className) }, rest, { ref: ref }), children));
|
|
5830
5840
|
});
|
|
5831
5841
|
CDropdownHeader.propTypes = {
|
|
5832
|
-
children:
|
|
5833
|
-
className:
|
|
5834
|
-
component:
|
|
5842
|
+
children: PropTypes.node,
|
|
5843
|
+
className: PropTypes.string,
|
|
5844
|
+
component: PropTypes.elementType,
|
|
5835
5845
|
};
|
|
5836
5846
|
CDropdownHeader.displayName = 'CDropdownHeader';
|
|
5837
5847
|
|
|
@@ -5840,9 +5850,9 @@ var CDropdownItem = React.forwardRef(function (_a, ref) {
|
|
|
5840
5850
|
return (React.createElement(CLink, __assign({ className: classNames('dropdown-item', className), component: component }, rest, { ref: ref }), children));
|
|
5841
5851
|
});
|
|
5842
5852
|
CDropdownItem.propTypes = {
|
|
5843
|
-
children:
|
|
5844
|
-
className:
|
|
5845
|
-
component:
|
|
5853
|
+
children: PropTypes.node,
|
|
5854
|
+
className: PropTypes.string,
|
|
5855
|
+
component: PropTypes.elementType,
|
|
5846
5856
|
};
|
|
5847
5857
|
CDropdownItem.displayName = 'CDropdownItem';
|
|
5848
5858
|
|
|
@@ -5851,9 +5861,9 @@ var CDropdownItemPlain = React.forwardRef(function (_a, ref) {
|
|
|
5851
5861
|
return (React.createElement(Component, __assign({ className: classNames('dropdown-item-text', className) }, rest, { ref: ref }), children));
|
|
5852
5862
|
});
|
|
5853
5863
|
CDropdownItemPlain.propTypes = {
|
|
5854
|
-
children:
|
|
5855
|
-
className:
|
|
5856
|
-
component:
|
|
5864
|
+
children: PropTypes.node,
|
|
5865
|
+
className: PropTypes.string,
|
|
5866
|
+
component: PropTypes.elementType,
|
|
5857
5867
|
};
|
|
5858
5868
|
CDropdownItemPlain.displayName = 'CDropdownItemPlain';
|
|
5859
5869
|
|
|
@@ -5906,19 +5916,19 @@ var CDropdownMenu = function (_a) {
|
|
|
5906
5916
|
_placement = 'bottom';
|
|
5907
5917
|
}
|
|
5908
5918
|
if (direction === 'dropup') {
|
|
5909
|
-
_placement = 'top-start';
|
|
5919
|
+
_placement = isRTL(dropdownMenuRef.current) ? 'top-end' : 'top-start';
|
|
5910
5920
|
}
|
|
5911
5921
|
if (direction === 'dropup-center') {
|
|
5912
5922
|
_placement = 'top';
|
|
5913
5923
|
}
|
|
5914
5924
|
if (direction === 'dropend') {
|
|
5915
|
-
_placement = 'right-start';
|
|
5925
|
+
_placement = isRTL(dropdownMenuRef.current) ? 'left-start' : 'right-start';
|
|
5916
5926
|
}
|
|
5917
5927
|
if (direction === 'dropstart') {
|
|
5918
|
-
_placement = 'left-start';
|
|
5928
|
+
_placement = isRTL(dropdownMenuRef.current) ? 'right-start' : 'left-start';
|
|
5919
5929
|
}
|
|
5920
5930
|
if (alignment === 'end') {
|
|
5921
|
-
_placement = 'bottom-end';
|
|
5931
|
+
_placement = isRTL(dropdownMenuRef.current) ? 'bottom-start' : 'bottom-end';
|
|
5922
5932
|
}
|
|
5923
5933
|
var dropdownMenuComponent = function (style, ref) { return (React.createElement(CConditionalPortal, { portal: portal !== null && portal !== void 0 ? portal : false },
|
|
5924
5934
|
React.createElement(Component, __assign({ className: classNames('dropdown-menu', {
|
|
@@ -5938,9 +5948,9 @@ var CDropdownMenu = function (_a) {
|
|
|
5938
5948
|
})) : (dropdownMenuComponent());
|
|
5939
5949
|
};
|
|
5940
5950
|
CDropdownMenu.propTypes = {
|
|
5941
|
-
children:
|
|
5942
|
-
className:
|
|
5943
|
-
component:
|
|
5951
|
+
children: PropTypes.node,
|
|
5952
|
+
className: PropTypes.string,
|
|
5953
|
+
component: PropTypes.elementType,
|
|
5944
5954
|
};
|
|
5945
5955
|
CDropdownMenu.displayName = 'CDropdownMenu';
|
|
5946
5956
|
|
|
@@ -5980,11 +5990,11 @@ var CDropdownToggle = function (_a) {
|
|
|
5980
5990
|
}) : Toggler(dropdownToggleRef);
|
|
5981
5991
|
};
|
|
5982
5992
|
CDropdownToggle.propTypes = {
|
|
5983
|
-
caret:
|
|
5984
|
-
children:
|
|
5985
|
-
className:
|
|
5986
|
-
custom:
|
|
5987
|
-
split:
|
|
5993
|
+
caret: PropTypes.bool,
|
|
5994
|
+
children: PropTypes.node,
|
|
5995
|
+
className: PropTypes.string,
|
|
5996
|
+
custom: PropTypes.bool,
|
|
5997
|
+
split: PropTypes.bool,
|
|
5988
5998
|
trigger: triggerPropType,
|
|
5989
5999
|
};
|
|
5990
6000
|
CDropdownToggle.displayName = 'CDropdownToggle';
|
|
@@ -5995,9 +6005,9 @@ var CFooter = React.forwardRef(function (_a, ref) {
|
|
|
5995
6005
|
return (React.createElement("div", __assign({ className: classNames('footer', (_b = {}, _b["footer-".concat(position)] = position, _b), className) }, rest, { ref: ref }), children));
|
|
5996
6006
|
});
|
|
5997
6007
|
CFooter.propTypes = {
|
|
5998
|
-
children:
|
|
5999
|
-
className:
|
|
6000
|
-
position:
|
|
6008
|
+
children: PropTypes.node,
|
|
6009
|
+
className: PropTypes.string,
|
|
6010
|
+
position: PropTypes.oneOf(['fixed', 'sticky']),
|
|
6001
6011
|
};
|
|
6002
6012
|
CFooter.displayName = 'CFooter';
|
|
6003
6013
|
|
|
@@ -6006,9 +6016,9 @@ var CForm = React.forwardRef(function (_a, ref) {
|
|
|
6006
6016
|
return (React.createElement("form", __assign({ className: classNames({ 'was-validated': validated }, className) || undefined }, rest, { ref: ref }), children));
|
|
6007
6017
|
});
|
|
6008
6018
|
CForm.propTypes = {
|
|
6009
|
-
children:
|
|
6010
|
-
className:
|
|
6011
|
-
validated:
|
|
6019
|
+
children: PropTypes.node,
|
|
6020
|
+
className: PropTypes.string,
|
|
6021
|
+
validated: PropTypes.bool,
|
|
6012
6022
|
};
|
|
6013
6023
|
CForm.displayName = 'CForm';
|
|
6014
6024
|
|
|
@@ -6021,12 +6031,12 @@ var CFormFeedback = React.forwardRef(function (_a, ref) {
|
|
|
6021
6031
|
_b), className) }, rest, { ref: ref }), children));
|
|
6022
6032
|
});
|
|
6023
6033
|
CFormFeedback.propTypes = {
|
|
6024
|
-
children:
|
|
6025
|
-
className:
|
|
6026
|
-
component:
|
|
6027
|
-
invalid:
|
|
6028
|
-
tooltip:
|
|
6029
|
-
valid:
|
|
6034
|
+
children: PropTypes.node,
|
|
6035
|
+
className: PropTypes.string,
|
|
6036
|
+
component: PropTypes.elementType,
|
|
6037
|
+
invalid: PropTypes.bool,
|
|
6038
|
+
tooltip: PropTypes.bool,
|
|
6039
|
+
valid: PropTypes.bool,
|
|
6030
6040
|
};
|
|
6031
6041
|
CFormFeedback.displayName = 'CFormFeedback';
|
|
6032
6042
|
|
|
@@ -6038,13 +6048,13 @@ var CFormControlValidation = function (_a) {
|
|
|
6038
6048
|
feedbackValid && (React.createElement(CFormFeedback, { valid: true, tooltip: tooltipFeedback }, feedbackValid))));
|
|
6039
6049
|
};
|
|
6040
6050
|
CFormControlValidation.propTypes = {
|
|
6041
|
-
describedby:
|
|
6042
|
-
feedback:
|
|
6043
|
-
feedbackValid:
|
|
6044
|
-
feedbackInvalid:
|
|
6045
|
-
invalid:
|
|
6046
|
-
tooltipFeedback:
|
|
6047
|
-
valid:
|
|
6051
|
+
describedby: PropTypes.string,
|
|
6052
|
+
feedback: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
|
|
6053
|
+
feedbackValid: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
|
|
6054
|
+
feedbackInvalid: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
|
|
6055
|
+
invalid: PropTypes.bool,
|
|
6056
|
+
tooltipFeedback: PropTypes.bool,
|
|
6057
|
+
valid: PropTypes.bool,
|
|
6048
6058
|
};
|
|
6049
6059
|
CFormControlValidation.displayName = 'CFormControlValidation';
|
|
6050
6060
|
|
|
@@ -6053,9 +6063,9 @@ var CFormLabel = React.forwardRef(function (_a, ref) {
|
|
|
6053
6063
|
return (React.createElement("label", __assign({ className: customClassName !== null && customClassName !== void 0 ? customClassName : classNames('form-label', className) }, rest, { ref: ref }), children));
|
|
6054
6064
|
});
|
|
6055
6065
|
CFormLabel.propTypes = {
|
|
6056
|
-
children:
|
|
6057
|
-
className:
|
|
6058
|
-
customClassName:
|
|
6066
|
+
children: PropTypes.node,
|
|
6067
|
+
className: PropTypes.string,
|
|
6068
|
+
customClassName: PropTypes.string,
|
|
6059
6069
|
};
|
|
6060
6070
|
CFormLabel.displayName = 'CFormLabel';
|
|
6061
6071
|
|
|
@@ -6067,7 +6077,7 @@ var CFormCheck = React.forwardRef(function (_a, ref) {
|
|
|
6067
6077
|
if (inputRef.current && indeterminate) {
|
|
6068
6078
|
inputRef.current.indeterminate = indeterminate;
|
|
6069
6079
|
}
|
|
6070
|
-
}, [indeterminate]);
|
|
6080
|
+
}, [indeterminate, inputRef.current]);
|
|
6071
6081
|
var FormControl = function () { return (React.createElement("input", __assign({ type: type, className: classNames(button ? 'btn-check' : 'form-check-input', {
|
|
6072
6082
|
'is-invalid': invalid,
|
|
6073
6083
|
'is-valid': valid,
|
|
@@ -6107,7 +6117,7 @@ var CFormCheck = React.forwardRef(function (_a, ref) {
|
|
|
6107
6117
|
};
|
|
6108
6118
|
return React.createElement(FormCheck, null);
|
|
6109
6119
|
});
|
|
6110
|
-
CFormCheck.propTypes = __assign({ button:
|
|
6120
|
+
CFormCheck.propTypes = __assign({ button: PropTypes.object, className: PropTypes.string, hitArea: PropTypes.oneOf(['full']), id: PropTypes.string, indeterminate: PropTypes.bool, inline: PropTypes.bool, label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]), reverse: PropTypes.bool, type: PropTypes.oneOf(['checkbox', 'radio']) }, CFormControlValidation.propTypes);
|
|
6111
6121
|
CFormCheck.displayName = 'CFormCheck';
|
|
6112
6122
|
|
|
6113
6123
|
var CFormFloating = React.forwardRef(function (_a, ref) {
|
|
@@ -6115,8 +6125,8 @@ var CFormFloating = React.forwardRef(function (_a, ref) {
|
|
|
6115
6125
|
return (React.createElement("div", __assign({ className: classNames('form-floating', className) }, rest, { ref: ref }), children));
|
|
6116
6126
|
});
|
|
6117
6127
|
CFormFloating.propTypes = {
|
|
6118
|
-
children:
|
|
6119
|
-
className:
|
|
6128
|
+
children: PropTypes.node,
|
|
6129
|
+
className: PropTypes.string,
|
|
6120
6130
|
};
|
|
6121
6131
|
CFormFloating.displayName = 'CFormFloating';
|
|
6122
6132
|
|
|
@@ -6125,9 +6135,9 @@ var CFormText = React.forwardRef(function (_a, ref) {
|
|
|
6125
6135
|
return (React.createElement(Component, __assign({ className: classNames('form-text', className) }, rest, { ref: ref }), children));
|
|
6126
6136
|
});
|
|
6127
6137
|
CFormText.propTypes = {
|
|
6128
|
-
children:
|
|
6129
|
-
className:
|
|
6130
|
-
component:
|
|
6138
|
+
children: PropTypes.node,
|
|
6139
|
+
className: PropTypes.string,
|
|
6140
|
+
component: PropTypes.elementType,
|
|
6131
6141
|
};
|
|
6132
6142
|
CFormText.displayName = 'CFormText';
|
|
6133
6143
|
|
|
@@ -6144,7 +6154,7 @@ var CFormControlWrapper = function (_a) {
|
|
|
6144
6154
|
text && React.createElement(CFormText, { id: describedby }, text),
|
|
6145
6155
|
React.createElement(FormControlValidation, null)));
|
|
6146
6156
|
};
|
|
6147
|
-
CFormControlWrapper.propTypes = __assign({ children:
|
|
6157
|
+
CFormControlWrapper.propTypes = __assign({ children: PropTypes.node, floatingClassName: PropTypes.string, floatingLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.string]), label: PropTypes.oneOfType([PropTypes.node, PropTypes.string]), text: PropTypes.oneOfType([PropTypes.node, PropTypes.string]) }, CFormControlValidation.propTypes);
|
|
6148
6158
|
CFormControlWrapper.displayName = 'CFormControlWrapper';
|
|
6149
6159
|
|
|
6150
6160
|
var CFormInput = React.forwardRef(function (_a, ref) {
|
|
@@ -6163,7 +6173,7 @@ var CFormInput = React.forwardRef(function (_a, ref) {
|
|
|
6163
6173
|
_b['is-valid'] = valid,
|
|
6164
6174
|
_b), className), id: id, type: type, onChange: function (event) { return (delay ? setValue(event) : onChange && onChange(event)); } }, rest, { ref: ref }), children)));
|
|
6165
6175
|
});
|
|
6166
|
-
CFormInput.propTypes = __assign({ className:
|
|
6176
|
+
CFormInput.propTypes = __assign({ className: PropTypes.string, id: PropTypes.string, delay: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]), plainText: PropTypes.bool, size: PropTypes.oneOf(['sm', 'lg']), type: PropTypes.oneOfType([PropTypes.oneOf(['color', 'file', 'text']), PropTypes.string]) }, CFormControlWrapper.propTypes);
|
|
6167
6177
|
CFormInput.displayName = 'CFormInput';
|
|
6168
6178
|
|
|
6169
6179
|
var CFormRange = React.forwardRef(function (_a, ref) {
|
|
@@ -6173,8 +6183,8 @@ var CFormRange = React.forwardRef(function (_a, ref) {
|
|
|
6173
6183
|
React.createElement("input", __assign({ type: "range", className: classNames('form-range', className) }, rest, { ref: ref }))));
|
|
6174
6184
|
});
|
|
6175
6185
|
CFormRange.propTypes = {
|
|
6176
|
-
className:
|
|
6177
|
-
label:
|
|
6186
|
+
className: PropTypes.string,
|
|
6187
|
+
label: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
|
|
6178
6188
|
};
|
|
6179
6189
|
CFormRange.displayName = 'CFormRange';
|
|
6180
6190
|
|
|
@@ -6193,7 +6203,7 @@ var CFormSelect = React.forwardRef(function (_a, ref) {
|
|
|
6193
6203
|
})
|
|
6194
6204
|
: children)));
|
|
6195
6205
|
});
|
|
6196
|
-
CFormSelect.propTypes = __assign({ className:
|
|
6206
|
+
CFormSelect.propTypes = __assign({ className: PropTypes.string, htmlSize: PropTypes.number, options: PropTypes.array }, CFormControlWrapper.propTypes);
|
|
6197
6207
|
CFormSelect.displayName = 'CFormSelect';
|
|
6198
6208
|
|
|
6199
6209
|
var CFormSwitch = React.forwardRef(function (_a, ref) {
|
|
@@ -6213,14 +6223,14 @@ var CFormSwitch = React.forwardRef(function (_a, ref) {
|
|
|
6213
6223
|
label && (React.createElement(CFormLabel, __assign({ customClassName: "form-check-label" }, (id && { htmlFor: id })), label))));
|
|
6214
6224
|
});
|
|
6215
6225
|
CFormSwitch.propTypes = {
|
|
6216
|
-
className:
|
|
6217
|
-
id:
|
|
6218
|
-
invalid:
|
|
6219
|
-
label:
|
|
6220
|
-
reverse:
|
|
6221
|
-
size:
|
|
6222
|
-
type:
|
|
6223
|
-
valid:
|
|
6226
|
+
className: PropTypes.string,
|
|
6227
|
+
id: PropTypes.string,
|
|
6228
|
+
invalid: PropTypes.bool,
|
|
6229
|
+
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
6230
|
+
reverse: PropTypes.bool,
|
|
6231
|
+
size: PropTypes.oneOf(['lg', 'xl']),
|
|
6232
|
+
type: PropTypes.oneOf(['checkbox', 'radio']),
|
|
6233
|
+
valid: PropTypes.bool,
|
|
6224
6234
|
};
|
|
6225
6235
|
CFormSwitch.displayName = 'CFormSwitch';
|
|
6226
6236
|
|
|
@@ -6232,7 +6242,7 @@ var CFormTextarea = React.forwardRef(function (_a, ref) {
|
|
|
6232
6242
|
'is-valid': valid,
|
|
6233
6243
|
}, className), id: id }, rest, { ref: ref }), children)));
|
|
6234
6244
|
});
|
|
6235
|
-
CFormTextarea.propTypes = __assign({ className:
|
|
6245
|
+
CFormTextarea.propTypes = __assign({ className: PropTypes.string, id: PropTypes.string, plainText: PropTypes.bool }, CFormControlWrapper.propTypes);
|
|
6236
6246
|
CFormTextarea.displayName = 'CFormTextarea';
|
|
6237
6247
|
|
|
6238
6248
|
var CInputGroup = React.forwardRef(function (_a, ref) {
|
|
@@ -6243,9 +6253,9 @@ var CInputGroup = React.forwardRef(function (_a, ref) {
|
|
|
6243
6253
|
_b), className) }, rest, { ref: ref }), children));
|
|
6244
6254
|
});
|
|
6245
6255
|
CInputGroup.propTypes = {
|
|
6246
|
-
children:
|
|
6247
|
-
className:
|
|
6248
|
-
size:
|
|
6256
|
+
children: PropTypes.node,
|
|
6257
|
+
className: PropTypes.string,
|
|
6258
|
+
size: PropTypes.oneOf(['sm', 'lg']),
|
|
6249
6259
|
};
|
|
6250
6260
|
CInputGroup.displayName = 'CInputGroup';
|
|
6251
6261
|
|
|
@@ -6254,9 +6264,9 @@ var CInputGroupText = React.forwardRef(function (_a, ref) {
|
|
|
6254
6264
|
return (React.createElement(Component, __assign({ className: classNames('input-group-text', className) }, rest, { ref: ref }), children));
|
|
6255
6265
|
});
|
|
6256
6266
|
CInputGroupText.propTypes = {
|
|
6257
|
-
children:
|
|
6258
|
-
className:
|
|
6259
|
-
component:
|
|
6267
|
+
children: PropTypes.node,
|
|
6268
|
+
className: PropTypes.string,
|
|
6269
|
+
component: PropTypes.elementType,
|
|
6260
6270
|
};
|
|
6261
6271
|
CInputGroupText.displayName = 'CInputGroupText';
|
|
6262
6272
|
|
|
@@ -6298,27 +6308,27 @@ var CCol = React.forwardRef(function (_a, ref) {
|
|
|
6298
6308
|
});
|
|
6299
6309
|
return (React.createElement("div", __assign({ className: classNames(repsonsiveClassNames.length > 0 ? repsonsiveClassNames : 'col', className) }, rest, { ref: ref }), children));
|
|
6300
6310
|
});
|
|
6301
|
-
var span =
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6311
|
+
var span = PropTypes.oneOfType([
|
|
6312
|
+
PropTypes.bool,
|
|
6313
|
+
PropTypes.number,
|
|
6314
|
+
PropTypes.string,
|
|
6315
|
+
PropTypes.oneOf(['auto']),
|
|
6306
6316
|
]);
|
|
6307
|
-
var col =
|
|
6317
|
+
var col = PropTypes.oneOfType([
|
|
6308
6318
|
span,
|
|
6309
|
-
|
|
6319
|
+
PropTypes.shape({
|
|
6310
6320
|
span: span,
|
|
6311
|
-
offset:
|
|
6312
|
-
order:
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6321
|
+
offset: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
6322
|
+
order: PropTypes.oneOfType([
|
|
6323
|
+
PropTypes.oneOf(['first', 'last']),
|
|
6324
|
+
PropTypes.number,
|
|
6325
|
+
PropTypes.string,
|
|
6316
6326
|
]),
|
|
6317
6327
|
}),
|
|
6318
6328
|
]);
|
|
6319
6329
|
CCol.propTypes = {
|
|
6320
|
-
children:
|
|
6321
|
-
className:
|
|
6330
|
+
children: PropTypes.node,
|
|
6331
|
+
className: PropTypes.string,
|
|
6322
6332
|
xs: col,
|
|
6323
6333
|
sm: col,
|
|
6324
6334
|
md: col,
|
|
@@ -6347,14 +6357,14 @@ var CContainer = React.forwardRef(function (_a, ref) {
|
|
|
6347
6357
|
return (React.createElement("div", __assign({ className: classNames(repsonsiveClassNames.length > 0 ? repsonsiveClassNames : 'container', className) }, rest, { ref: ref }), children));
|
|
6348
6358
|
});
|
|
6349
6359
|
CContainer.propTypes = {
|
|
6350
|
-
children:
|
|
6351
|
-
className:
|
|
6352
|
-
sm:
|
|
6353
|
-
md:
|
|
6354
|
-
lg:
|
|
6355
|
-
xl:
|
|
6356
|
-
xxl:
|
|
6357
|
-
fluid:
|
|
6360
|
+
children: PropTypes.node,
|
|
6361
|
+
className: PropTypes.string,
|
|
6362
|
+
sm: PropTypes.bool,
|
|
6363
|
+
md: PropTypes.bool,
|
|
6364
|
+
lg: PropTypes.bool,
|
|
6365
|
+
xl: PropTypes.bool,
|
|
6366
|
+
xxl: PropTypes.bool,
|
|
6367
|
+
fluid: PropTypes.bool,
|
|
6358
6368
|
};
|
|
6359
6369
|
CContainer.displayName = 'CContainer';
|
|
6360
6370
|
|
|
@@ -6390,15 +6400,15 @@ var CRow = React.forwardRef(function (_a, ref) {
|
|
|
6390
6400
|
});
|
|
6391
6401
|
return (React.createElement("div", { className: classNames('row', repsonsiveClassNames, className), ref: ref }, children));
|
|
6392
6402
|
});
|
|
6393
|
-
var bp =
|
|
6394
|
-
cols:
|
|
6395
|
-
gutter:
|
|
6396
|
-
gutterX:
|
|
6397
|
-
gutterY:
|
|
6403
|
+
var bp = PropTypes.shape({
|
|
6404
|
+
cols: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.string]),
|
|
6405
|
+
gutter: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
6406
|
+
gutterX: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
6407
|
+
gutterY: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
6398
6408
|
});
|
|
6399
6409
|
CRow.propTypes = {
|
|
6400
|
-
children:
|
|
6401
|
-
className:
|
|
6410
|
+
children: PropTypes.node,
|
|
6411
|
+
className: PropTypes.string,
|
|
6402
6412
|
xs: bp,
|
|
6403
6413
|
sm: bp,
|
|
6404
6414
|
md: bp,
|
|
@@ -6414,11 +6424,11 @@ var CHeader = React.forwardRef(function (_a, ref) {
|
|
|
6414
6424
|
return (React.createElement("div", __assign({ className: classNames('header', (_b = {}, _b["header-".concat(position)] = position, _b), className) }, rest, { ref: ref }), container ? (React.createElement("div", { className: typeof container === 'string' ? "container-".concat(container) : 'container' }, children)) : (React.createElement(React.Fragment, null, children))));
|
|
6415
6425
|
});
|
|
6416
6426
|
CHeader.propTypes = {
|
|
6417
|
-
children:
|
|
6418
|
-
className:
|
|
6419
|
-
container:
|
|
6420
|
-
|
|
6421
|
-
|
|
6427
|
+
children: PropTypes.node,
|
|
6428
|
+
className: PropTypes.string,
|
|
6429
|
+
container: PropTypes.oneOfType([
|
|
6430
|
+
PropTypes.bool,
|
|
6431
|
+
PropTypes.oneOf([
|
|
6422
6432
|
'sm',
|
|
6423
6433
|
'md',
|
|
6424
6434
|
'lg',
|
|
@@ -6427,7 +6437,7 @@ CHeader.propTypes = {
|
|
|
6427
6437
|
'fluid',
|
|
6428
6438
|
]),
|
|
6429
6439
|
]),
|
|
6430
|
-
position:
|
|
6440
|
+
position: PropTypes.oneOf(['fixed', 'sticky']),
|
|
6431
6441
|
};
|
|
6432
6442
|
CHeader.displayName = 'CHeader';
|
|
6433
6443
|
|
|
@@ -6436,9 +6446,9 @@ var CHeaderBrand = React.forwardRef(function (_a, ref) {
|
|
|
6436
6446
|
return (React.createElement(Component, __assign({ className: classNames('header-brand', className) }, rest, { ref: ref }), children));
|
|
6437
6447
|
});
|
|
6438
6448
|
CHeaderBrand.propTypes = {
|
|
6439
|
-
children:
|
|
6440
|
-
className:
|
|
6441
|
-
component:
|
|
6449
|
+
children: PropTypes.node,
|
|
6450
|
+
className: PropTypes.string,
|
|
6451
|
+
component: PropTypes.elementType,
|
|
6442
6452
|
};
|
|
6443
6453
|
CHeaderBrand.displayName = 'CHeaderBrand';
|
|
6444
6454
|
|
|
@@ -6447,7 +6457,7 @@ var CHeaderDivider = React.forwardRef(function (_a, ref) {
|
|
|
6447
6457
|
return React.createElement("div", __assign({ className: classNames('header-divider', className) }, rest, { ref: ref }));
|
|
6448
6458
|
});
|
|
6449
6459
|
CHeaderDivider.propTypes = {
|
|
6450
|
-
className:
|
|
6460
|
+
className: PropTypes.string,
|
|
6451
6461
|
};
|
|
6452
6462
|
CHeaderDivider.displayName = 'CHeaderDivider';
|
|
6453
6463
|
|
|
@@ -6456,9 +6466,9 @@ var CHeaderNav = React.forwardRef(function (_a, ref) {
|
|
|
6456
6466
|
return (React.createElement(Component, __assign({ className: classNames('header-nav', className), role: "navigation" }, rest, { ref: ref }), children));
|
|
6457
6467
|
});
|
|
6458
6468
|
CHeaderNav.propTypes = {
|
|
6459
|
-
children:
|
|
6460
|
-
className:
|
|
6461
|
-
component:
|
|
6469
|
+
children: PropTypes.node,
|
|
6470
|
+
className: PropTypes.string,
|
|
6471
|
+
component: PropTypes.elementType,
|
|
6462
6472
|
};
|
|
6463
6473
|
CHeaderNav.displayName = 'CHeaderNav';
|
|
6464
6474
|
|
|
@@ -6467,8 +6477,8 @@ var CHeaderText = React.forwardRef(function (_a, ref) {
|
|
|
6467
6477
|
return (React.createElement("span", __assign({ className: classNames('header-text', className) }, rest, { ref: ref }), children));
|
|
6468
6478
|
});
|
|
6469
6479
|
CHeaderText.propTypes = {
|
|
6470
|
-
children:
|
|
6471
|
-
className:
|
|
6480
|
+
children: PropTypes.node,
|
|
6481
|
+
className: PropTypes.string,
|
|
6472
6482
|
};
|
|
6473
6483
|
CHeaderText.displayName = 'CHeaderText';
|
|
6474
6484
|
|
|
@@ -6477,8 +6487,8 @@ var CHeaderToggler = React.forwardRef(function (_a, ref) {
|
|
|
6477
6487
|
return (React.createElement("button", __assign({ type: "button", className: classNames('header-toggler', className) }, rest, { ref: ref }), children !== null && children !== void 0 ? children : React.createElement("span", { className: "header-toggler-icon" })));
|
|
6478
6488
|
});
|
|
6479
6489
|
CHeaderToggler.propTypes = {
|
|
6480
|
-
children:
|
|
6481
|
-
className:
|
|
6490
|
+
children: PropTypes.node,
|
|
6491
|
+
className: PropTypes.string,
|
|
6482
6492
|
};
|
|
6483
6493
|
CHeaderToggler.displayName = 'CHeaderToggler';
|
|
6484
6494
|
|
|
@@ -6494,11 +6504,11 @@ var CImage = React.forwardRef(function (_a, ref) {
|
|
|
6494
6504
|
_b), className) || undefined }, rest, { ref: ref })));
|
|
6495
6505
|
});
|
|
6496
6506
|
CImage.propTypes = {
|
|
6497
|
-
align:
|
|
6498
|
-
className:
|
|
6499
|
-
fluid:
|
|
6500
|
-
rounded:
|
|
6501
|
-
thumbnail:
|
|
6507
|
+
align: PropTypes.oneOf(['start', 'center', 'end']),
|
|
6508
|
+
className: PropTypes.string,
|
|
6509
|
+
fluid: PropTypes.bool,
|
|
6510
|
+
rounded: PropTypes.bool,
|
|
6511
|
+
thumbnail: PropTypes.bool,
|
|
6502
6512
|
};
|
|
6503
6513
|
CImage.displayName = 'CImage';
|
|
6504
6514
|
|
|
@@ -6512,11 +6522,11 @@ var CListGroup = React.forwardRef(function (_a, ref) {
|
|
|
6512
6522
|
_b), className), ref: ref }, children));
|
|
6513
6523
|
});
|
|
6514
6524
|
CListGroup.propTypes = {
|
|
6515
|
-
children:
|
|
6516
|
-
className:
|
|
6517
|
-
component:
|
|
6518
|
-
flush:
|
|
6519
|
-
layout:
|
|
6525
|
+
children: PropTypes.node,
|
|
6526
|
+
className: PropTypes.string,
|
|
6527
|
+
component: PropTypes.elementType,
|
|
6528
|
+
flush: PropTypes.bool,
|
|
6529
|
+
layout: PropTypes.oneOf([
|
|
6520
6530
|
'horizontal',
|
|
6521
6531
|
'horizontal-sm',
|
|
6522
6532
|
'horizontal-md',
|
|
@@ -6545,12 +6555,12 @@ var CListGroupItem = React.forwardRef(function (_a, ref) {
|
|
|
6545
6555
|
_b), className) }, rest), children));
|
|
6546
6556
|
});
|
|
6547
6557
|
CListGroupItem.propTypes = {
|
|
6548
|
-
active:
|
|
6549
|
-
children:
|
|
6550
|
-
className:
|
|
6558
|
+
active: PropTypes.bool,
|
|
6559
|
+
children: PropTypes.node,
|
|
6560
|
+
className: PropTypes.string,
|
|
6551
6561
|
color: colorPropType,
|
|
6552
|
-
component:
|
|
6553
|
-
disabled:
|
|
6562
|
+
component: PropTypes.elementType,
|
|
6563
|
+
disabled: PropTypes.bool,
|
|
6554
6564
|
};
|
|
6555
6565
|
CListGroupItem.displayName = 'CListGroupItem';
|
|
6556
6566
|
|
|
@@ -6559,8 +6569,8 @@ var CModalContent = React.forwardRef(function (_a, ref) {
|
|
|
6559
6569
|
return (React.createElement("div", __assign({ className: classNames('modal-content', className) }, rest, { ref: ref }), children));
|
|
6560
6570
|
});
|
|
6561
6571
|
CModalContent.propTypes = {
|
|
6562
|
-
children:
|
|
6563
|
-
className:
|
|
6572
|
+
children: PropTypes.node,
|
|
6573
|
+
className: PropTypes.string,
|
|
6564
6574
|
};
|
|
6565
6575
|
CModalContent.displayName = 'CModalContent';
|
|
6566
6576
|
|
|
@@ -6578,15 +6588,15 @@ var CModalDialog = React.forwardRef(function (_a, ref) {
|
|
|
6578
6588
|
_b), className) }, rest, { ref: ref }), children));
|
|
6579
6589
|
});
|
|
6580
6590
|
CModalDialog.propTypes = {
|
|
6581
|
-
alignment:
|
|
6582
|
-
children:
|
|
6583
|
-
className:
|
|
6584
|
-
fullscreen:
|
|
6585
|
-
|
|
6586
|
-
|
|
6591
|
+
alignment: PropTypes.oneOf(['top', 'center']),
|
|
6592
|
+
children: PropTypes.node,
|
|
6593
|
+
className: PropTypes.string,
|
|
6594
|
+
fullscreen: PropTypes.oneOfType([
|
|
6595
|
+
PropTypes.bool,
|
|
6596
|
+
PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'xxl']),
|
|
6587
6597
|
]),
|
|
6588
|
-
scrollable:
|
|
6589
|
-
size:
|
|
6598
|
+
scrollable: PropTypes.bool,
|
|
6599
|
+
size: PropTypes.oneOf(['sm', 'lg', 'xl']),
|
|
6590
6600
|
};
|
|
6591
6601
|
CModalDialog.displayName = 'CModalDialog';
|
|
6592
6602
|
|
|
@@ -6676,25 +6686,25 @@ var CModal = React.forwardRef(function (_a, ref) {
|
|
|
6676
6686
|
React.createElement(CBackdrop, { visible: _visible })))));
|
|
6677
6687
|
});
|
|
6678
6688
|
CModal.propTypes = {
|
|
6679
|
-
alignment:
|
|
6680
|
-
backdrop:
|
|
6681
|
-
children:
|
|
6682
|
-
className:
|
|
6683
|
-
duration:
|
|
6684
|
-
fullscreen:
|
|
6685
|
-
|
|
6686
|
-
|
|
6689
|
+
alignment: PropTypes.oneOf(['top', 'center']),
|
|
6690
|
+
backdrop: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['static'])]),
|
|
6691
|
+
children: PropTypes.node,
|
|
6692
|
+
className: PropTypes.string,
|
|
6693
|
+
duration: PropTypes.number,
|
|
6694
|
+
fullscreen: PropTypes.oneOfType([
|
|
6695
|
+
PropTypes.bool,
|
|
6696
|
+
PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'xxl']),
|
|
6687
6697
|
]),
|
|
6688
|
-
keyboard:
|
|
6689
|
-
onClose:
|
|
6690
|
-
onClosePrevented:
|
|
6691
|
-
onShow:
|
|
6692
|
-
portal:
|
|
6693
|
-
scrollable:
|
|
6694
|
-
size:
|
|
6695
|
-
transition:
|
|
6696
|
-
unmountOnClose:
|
|
6697
|
-
visible:
|
|
6698
|
+
keyboard: PropTypes.bool,
|
|
6699
|
+
onClose: PropTypes.func,
|
|
6700
|
+
onClosePrevented: PropTypes.func,
|
|
6701
|
+
onShow: PropTypes.func,
|
|
6702
|
+
portal: PropTypes.bool,
|
|
6703
|
+
scrollable: PropTypes.bool,
|
|
6704
|
+
size: PropTypes.oneOf(['sm', 'lg', 'xl']),
|
|
6705
|
+
transition: PropTypes.bool,
|
|
6706
|
+
unmountOnClose: PropTypes.bool,
|
|
6707
|
+
visible: PropTypes.bool,
|
|
6698
6708
|
};
|
|
6699
6709
|
CModal.displayName = 'CModal';
|
|
6700
6710
|
|
|
@@ -6703,8 +6713,8 @@ var CModalBody = React.forwardRef(function (_a, ref) {
|
|
|
6703
6713
|
return (React.createElement("div", __assign({ className: classNames('modal-body', className) }, rest, { ref: ref }), children));
|
|
6704
6714
|
});
|
|
6705
6715
|
CModalBody.propTypes = {
|
|
6706
|
-
children:
|
|
6707
|
-
className:
|
|
6716
|
+
children: PropTypes.node,
|
|
6717
|
+
className: PropTypes.string,
|
|
6708
6718
|
};
|
|
6709
6719
|
CModalBody.displayName = 'CModalBody';
|
|
6710
6720
|
|
|
@@ -6713,8 +6723,8 @@ var CModalFooter = React.forwardRef(function (_a, ref) {
|
|
|
6713
6723
|
return (React.createElement("div", __assign({ className: classNames('modal-footer', className) }, rest, { ref: ref }), children));
|
|
6714
6724
|
});
|
|
6715
6725
|
CModalFooter.propTypes = {
|
|
6716
|
-
children:
|
|
6717
|
-
className:
|
|
6726
|
+
children: PropTypes.node,
|
|
6727
|
+
className: PropTypes.string,
|
|
6718
6728
|
};
|
|
6719
6729
|
CModalFooter.displayName = 'CModalFooter';
|
|
6720
6730
|
|
|
@@ -6726,9 +6736,9 @@ var CModalHeader = React.forwardRef(function (_a, ref) {
|
|
|
6726
6736
|
closeButton && React.createElement(CCloseButton, { onClick: function () { return setVisible(false); } })));
|
|
6727
6737
|
});
|
|
6728
6738
|
CModalHeader.propTypes = {
|
|
6729
|
-
children:
|
|
6730
|
-
className:
|
|
6731
|
-
closeButton:
|
|
6739
|
+
children: PropTypes.node,
|
|
6740
|
+
className: PropTypes.string,
|
|
6741
|
+
closeButton: PropTypes.bool,
|
|
6732
6742
|
};
|
|
6733
6743
|
CModalHeader.displayName = 'CModalHeader';
|
|
6734
6744
|
|
|
@@ -6737,9 +6747,9 @@ var CModalTitle = React.forwardRef(function (_a, ref) {
|
|
|
6737
6747
|
return (React.createElement(Component, __assign({ className: classNames('modal-title', className) }, rest, { ref: ref }), children));
|
|
6738
6748
|
});
|
|
6739
6749
|
CModalTitle.propTypes = {
|
|
6740
|
-
children:
|
|
6741
|
-
className:
|
|
6742
|
-
component:
|
|
6750
|
+
children: PropTypes.node,
|
|
6751
|
+
className: PropTypes.string,
|
|
6752
|
+
component: PropTypes.elementType,
|
|
6743
6753
|
};
|
|
6744
6754
|
CModalTitle.displayName = 'CModalTitle';
|
|
6745
6755
|
|
|
@@ -6752,11 +6762,11 @@ var CNav = React.forwardRef(function (_a, ref) {
|
|
|
6752
6762
|
_b), className), role: "navigation" }, rest, { ref: ref }), children));
|
|
6753
6763
|
});
|
|
6754
6764
|
CNav.propTypes = {
|
|
6755
|
-
children:
|
|
6756
|
-
className:
|
|
6757
|
-
component:
|
|
6758
|
-
layout:
|
|
6759
|
-
variant:
|
|
6765
|
+
children: PropTypes.node,
|
|
6766
|
+
className: PropTypes.string,
|
|
6767
|
+
component: PropTypes.elementType,
|
|
6768
|
+
layout: PropTypes.oneOf(['fill', 'justified']),
|
|
6769
|
+
variant: PropTypes.oneOf(['tabs', 'pills']),
|
|
6760
6770
|
};
|
|
6761
6771
|
CNav.displayName = 'CNav';
|
|
6762
6772
|
|
|
@@ -6765,8 +6775,8 @@ var CNavGroupItems = React.forwardRef(function (_a, ref) {
|
|
|
6765
6775
|
return (React.createElement("ul", __assign({ className: classNames('nav-group-items', className) }, rest, { ref: ref }), children));
|
|
6766
6776
|
});
|
|
6767
6777
|
CNavGroupItems.propTypes = {
|
|
6768
|
-
children:
|
|
6769
|
-
className:
|
|
6778
|
+
children: PropTypes.node,
|
|
6779
|
+
className: PropTypes.string,
|
|
6770
6780
|
};
|
|
6771
6781
|
CNavGroupItems.displayName = 'CNavGroupItems';
|
|
6772
6782
|
|
|
@@ -6790,8 +6800,8 @@ var CSidebarNav = React.forwardRef(function (_a, ref) {
|
|
|
6790
6800
|
}))));
|
|
6791
6801
|
});
|
|
6792
6802
|
CSidebarNav.propTypes = {
|
|
6793
|
-
children:
|
|
6794
|
-
className:
|
|
6803
|
+
children: PropTypes.node,
|
|
6804
|
+
className: PropTypes.string,
|
|
6795
6805
|
};
|
|
6796
6806
|
CSidebarNav.displayName = 'CSidebarNav';
|
|
6797
6807
|
|
|
@@ -6852,12 +6862,12 @@ var CNavGroup = React.forwardRef(function (_a, ref) {
|
|
|
6852
6862
|
}))); })));
|
|
6853
6863
|
});
|
|
6854
6864
|
CNavGroup.propTypes = {
|
|
6855
|
-
children:
|
|
6856
|
-
className:
|
|
6857
|
-
compact:
|
|
6858
|
-
idx:
|
|
6859
|
-
toggler:
|
|
6860
|
-
visible:
|
|
6865
|
+
children: PropTypes.node,
|
|
6866
|
+
className: PropTypes.string,
|
|
6867
|
+
compact: PropTypes.bool,
|
|
6868
|
+
idx: PropTypes.string,
|
|
6869
|
+
toggler: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
6870
|
+
visible: PropTypes.bool,
|
|
6861
6871
|
};
|
|
6862
6872
|
CNavGroup.displayName = 'CNavGroup';
|
|
6863
6873
|
|
|
@@ -6874,9 +6884,9 @@ var CNavLink = React.forwardRef(function (_a, ref) {
|
|
|
6874
6884
|
return (React.createElement(CLink, __assign({ className: classNames('nav-link', className) }, rest, { ref: forkedRef }), children));
|
|
6875
6885
|
});
|
|
6876
6886
|
CNavLink.propTypes = {
|
|
6877
|
-
children:
|
|
6878
|
-
className:
|
|
6879
|
-
idx:
|
|
6887
|
+
children: PropTypes.node,
|
|
6888
|
+
className: PropTypes.string,
|
|
6889
|
+
idx: PropTypes.string,
|
|
6880
6890
|
};
|
|
6881
6891
|
CNavLink.displayName = 'CNavLink';
|
|
6882
6892
|
|
|
@@ -6885,8 +6895,8 @@ var CNavItem = React.forwardRef(function (_a, ref) {
|
|
|
6885
6895
|
return (React.createElement("li", { className: classNames('nav-item', className), ref: ref }, rest.href || rest.to ? (React.createElement(CNavLink, __assign({ className: className }, rest), children)) : (children)));
|
|
6886
6896
|
});
|
|
6887
6897
|
CNavItem.propTypes = {
|
|
6888
|
-
children:
|
|
6889
|
-
className:
|
|
6898
|
+
children: PropTypes.node,
|
|
6899
|
+
className: PropTypes.string,
|
|
6890
6900
|
};
|
|
6891
6901
|
CNavItem.displayName = 'CNavItem';
|
|
6892
6902
|
|
|
@@ -6895,8 +6905,8 @@ var CNavTitle = React.forwardRef(function (_a, ref) {
|
|
|
6895
6905
|
return (React.createElement("li", __assign({ className: classNames('nav-title', className) }, rest, { ref: ref }), children));
|
|
6896
6906
|
});
|
|
6897
6907
|
CNavTitle.propTypes = {
|
|
6898
|
-
children:
|
|
6899
|
-
className:
|
|
6908
|
+
children: PropTypes.node,
|
|
6909
|
+
className: PropTypes.string,
|
|
6900
6910
|
};
|
|
6901
6911
|
CNavTitle.displayName = 'CNavTitle';
|
|
6902
6912
|
|
|
@@ -6910,14 +6920,14 @@ var CNavbar = React.forwardRef(function (_a, ref) {
|
|
|
6910
6920
|
_b), placement, className) }, rest, { ref: ref }), container ? (React.createElement("div", { className: typeof container === 'string' ? "container-".concat(container) : 'container' }, children)) : (React.createElement(React.Fragment, null, children))));
|
|
6911
6921
|
});
|
|
6912
6922
|
CNavbar.propTypes = {
|
|
6913
|
-
children:
|
|
6914
|
-
className:
|
|
6923
|
+
children: PropTypes.node,
|
|
6924
|
+
className: PropTypes.string,
|
|
6915
6925
|
color: colorPropType,
|
|
6916
|
-
colorScheme:
|
|
6917
|
-
component:
|
|
6918
|
-
container:
|
|
6919
|
-
|
|
6920
|
-
|
|
6926
|
+
colorScheme: PropTypes.oneOf(['dark', 'light']),
|
|
6927
|
+
component: PropTypes.elementType,
|
|
6928
|
+
container: PropTypes.oneOfType([
|
|
6929
|
+
PropTypes.bool,
|
|
6930
|
+
PropTypes.oneOf([
|
|
6921
6931
|
'sm',
|
|
6922
6932
|
'md',
|
|
6923
6933
|
'lg',
|
|
@@ -6926,11 +6936,11 @@ CNavbar.propTypes = {
|
|
|
6926
6936
|
'fluid',
|
|
6927
6937
|
]),
|
|
6928
6938
|
]),
|
|
6929
|
-
expand:
|
|
6930
|
-
|
|
6931
|
-
|
|
6939
|
+
expand: PropTypes.oneOfType([
|
|
6940
|
+
PropTypes.bool,
|
|
6941
|
+
PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'xxl']),
|
|
6932
6942
|
]),
|
|
6933
|
-
placement:
|
|
6943
|
+
placement: PropTypes.oneOf(['fixed-top', 'fixed-bottom', 'sticky-top']),
|
|
6934
6944
|
};
|
|
6935
6945
|
CNavbar.displayName = 'CNavbar';
|
|
6936
6946
|
|
|
@@ -6940,9 +6950,9 @@ var CNavbarBrand = React.forwardRef(function (_a, ref) {
|
|
|
6940
6950
|
return (React.createElement(Component, __assign({ className: classNames('navbar-brand', className) }, rest, { ref: ref }), children));
|
|
6941
6951
|
});
|
|
6942
6952
|
CNavbarBrand.propTypes = {
|
|
6943
|
-
children:
|
|
6944
|
-
className:
|
|
6945
|
-
component:
|
|
6953
|
+
children: PropTypes.node,
|
|
6954
|
+
className: PropTypes.string,
|
|
6955
|
+
component: PropTypes.elementType,
|
|
6946
6956
|
};
|
|
6947
6957
|
CNavbarBrand.displayName = 'CNavbarBrand';
|
|
6948
6958
|
|
|
@@ -6951,9 +6961,9 @@ var CNavbarNav = React.forwardRef(function (_a, ref) {
|
|
|
6951
6961
|
return (React.createElement(Component, __assign({ className: classNames('navbar-nav', className), role: "navigation" }, rest, { ref: ref }), children));
|
|
6952
6962
|
});
|
|
6953
6963
|
CNavbarNav.propTypes = {
|
|
6954
|
-
children:
|
|
6955
|
-
className:
|
|
6956
|
-
component:
|
|
6964
|
+
children: PropTypes.node,
|
|
6965
|
+
className: PropTypes.string,
|
|
6966
|
+
component: PropTypes.elementType,
|
|
6957
6967
|
};
|
|
6958
6968
|
CNavbarNav.displayName = 'CNavbarNav';
|
|
6959
6969
|
|
|
@@ -6962,8 +6972,8 @@ var CNavbarText = React.forwardRef(function (_a, ref) {
|
|
|
6962
6972
|
return (React.createElement("span", __assign({ className: classNames('navbar-text', className) }, rest, { ref: ref }), children));
|
|
6963
6973
|
});
|
|
6964
6974
|
CNavbarText.propTypes = {
|
|
6965
|
-
children:
|
|
6966
|
-
className:
|
|
6975
|
+
children: PropTypes.node,
|
|
6976
|
+
className: PropTypes.string,
|
|
6967
6977
|
};
|
|
6968
6978
|
CNavbarText.displayName = 'CNavbarText';
|
|
6969
6979
|
|
|
@@ -6972,8 +6982,8 @@ var CNavbarToggler = React.forwardRef(function (_a, ref) {
|
|
|
6972
6982
|
return (React.createElement("button", __assign({ type: "button", className: classNames('navbar-toggler', className) }, rest, { ref: ref }), children !== null && children !== void 0 ? children : React.createElement("span", { className: "navbar-toggler-icon" })));
|
|
6973
6983
|
});
|
|
6974
6984
|
CNavbarToggler.propTypes = {
|
|
6975
|
-
children:
|
|
6976
|
-
className:
|
|
6985
|
+
children: PropTypes.node,
|
|
6986
|
+
className: PropTypes.string,
|
|
6977
6987
|
};
|
|
6978
6988
|
CNavbarToggler.displayName = 'CNavbarToggler';
|
|
6979
6989
|
|
|
@@ -7025,21 +7035,21 @@ var COffcanvas = React.forwardRef(function (_a, ref) {
|
|
|
7025
7035
|
React.createElement(CBackdrop, { className: "offcanvas-backdrop", onClick: handleBackdropDismiss, visible: _visible })))));
|
|
7026
7036
|
});
|
|
7027
7037
|
COffcanvas.propTypes = {
|
|
7028
|
-
backdrop:
|
|
7029
|
-
children:
|
|
7030
|
-
className:
|
|
7031
|
-
keyboard:
|
|
7032
|
-
onHide:
|
|
7033
|
-
onShow:
|
|
7034
|
-
placement:
|
|
7038
|
+
backdrop: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['static'])]),
|
|
7039
|
+
children: PropTypes.node,
|
|
7040
|
+
className: PropTypes.string,
|
|
7041
|
+
keyboard: PropTypes.bool,
|
|
7042
|
+
onHide: PropTypes.func,
|
|
7043
|
+
onShow: PropTypes.func,
|
|
7044
|
+
placement: PropTypes.oneOf(['start', 'end', 'top', 'bottom'])
|
|
7035
7045
|
.isRequired,
|
|
7036
|
-
portal:
|
|
7037
|
-
responsive:
|
|
7038
|
-
|
|
7039
|
-
|
|
7046
|
+
portal: PropTypes.bool,
|
|
7047
|
+
responsive: PropTypes.oneOfType([
|
|
7048
|
+
PropTypes.bool,
|
|
7049
|
+
PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'xxl']),
|
|
7040
7050
|
]),
|
|
7041
|
-
scroll:
|
|
7042
|
-
visible:
|
|
7051
|
+
scroll: PropTypes.bool,
|
|
7052
|
+
visible: PropTypes.bool,
|
|
7043
7053
|
};
|
|
7044
7054
|
COffcanvas.displayName = 'COffcanvas';
|
|
7045
7055
|
|
|
@@ -7048,8 +7058,8 @@ var COffcanvasBody = React.forwardRef(function (_a, ref) {
|
|
|
7048
7058
|
return (React.createElement("div", __assign({ className: classNames('offcanvas-body', className) }, rest, { ref: ref }), children));
|
|
7049
7059
|
});
|
|
7050
7060
|
COffcanvasBody.propTypes = {
|
|
7051
|
-
children:
|
|
7052
|
-
className:
|
|
7061
|
+
children: PropTypes.node,
|
|
7062
|
+
className: PropTypes.string,
|
|
7053
7063
|
};
|
|
7054
7064
|
COffcanvasBody.displayName = 'COffcanvasBody';
|
|
7055
7065
|
|
|
@@ -7058,8 +7068,8 @@ var COffcanvasHeader = React.forwardRef(function (_a, ref) {
|
|
|
7058
7068
|
return (React.createElement("div", __assign({ className: classNames('offcanvas-header', className) }, rest, { ref: ref }), children));
|
|
7059
7069
|
});
|
|
7060
7070
|
COffcanvasHeader.propTypes = {
|
|
7061
|
-
children:
|
|
7062
|
-
className:
|
|
7071
|
+
children: PropTypes.node,
|
|
7072
|
+
className: PropTypes.string,
|
|
7063
7073
|
};
|
|
7064
7074
|
COffcanvasHeader.displayName = 'COffcanvasHeader';
|
|
7065
7075
|
|
|
@@ -7068,9 +7078,9 @@ var COffcanvasTitle = React.forwardRef(function (_a, ref) {
|
|
|
7068
7078
|
return (React.createElement(Component, __assign({ className: classNames('offcanvas-title', className) }, rest, { ref: ref }), children));
|
|
7069
7079
|
});
|
|
7070
7080
|
COffcanvasTitle.propTypes = {
|
|
7071
|
-
children:
|
|
7072
|
-
className:
|
|
7073
|
-
component:
|
|
7081
|
+
children: PropTypes.node,
|
|
7082
|
+
className: PropTypes.string,
|
|
7083
|
+
component: PropTypes.elementType,
|
|
7074
7084
|
};
|
|
7075
7085
|
COffcanvasTitle.displayName = 'COffcanvasTitle';
|
|
7076
7086
|
|
|
@@ -7084,10 +7094,10 @@ var CPagination = React.forwardRef(function (_a, ref) {
|
|
|
7084
7094
|
_b), className) }, children)));
|
|
7085
7095
|
});
|
|
7086
7096
|
CPagination.propTypes = {
|
|
7087
|
-
align:
|
|
7088
|
-
children:
|
|
7089
|
-
className:
|
|
7090
|
-
size:
|
|
7097
|
+
align: PropTypes.oneOf(['start', 'center', 'end']),
|
|
7098
|
+
children: PropTypes.node,
|
|
7099
|
+
className: PropTypes.string,
|
|
7100
|
+
size: PropTypes.oneOf(['sm', 'lg']),
|
|
7091
7101
|
};
|
|
7092
7102
|
CPagination.displayName = 'CPagination';
|
|
7093
7103
|
|
|
@@ -7100,9 +7110,9 @@ var CPaginationItem = React.forwardRef(function (_a, ref) {
|
|
|
7100
7110
|
}, 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))));
|
|
7101
7111
|
});
|
|
7102
7112
|
CPaginationItem.propTypes = {
|
|
7103
|
-
children:
|
|
7104
|
-
className:
|
|
7105
|
-
component:
|
|
7113
|
+
children: PropTypes.node,
|
|
7114
|
+
className: PropTypes.string,
|
|
7115
|
+
component: PropTypes.elementType,
|
|
7106
7116
|
};
|
|
7107
7117
|
CPaginationItem.displayName = 'CPaginationItem';
|
|
7108
7118
|
|
|
@@ -7135,12 +7145,12 @@ var CPlaceholder = React.forwardRef(function (_a, ref) {
|
|
|
7135
7145
|
_b), repsonsiveClassNames, className) }, rest, { ref: ref }), children));
|
|
7136
7146
|
});
|
|
7137
7147
|
CPlaceholder.propTypes = {
|
|
7138
|
-
animation:
|
|
7139
|
-
children:
|
|
7140
|
-
className:
|
|
7148
|
+
animation: PropTypes.oneOf(['glow', 'wave']),
|
|
7149
|
+
children: PropTypes.node,
|
|
7150
|
+
className: PropTypes.string,
|
|
7141
7151
|
color: colorPropType,
|
|
7142
|
-
component:
|
|
7143
|
-
size:
|
|
7152
|
+
component: PropTypes.elementType,
|
|
7153
|
+
size: PropTypes.oneOf(['xs', 'sm', 'lg']),
|
|
7144
7154
|
};
|
|
7145
7155
|
CPlaceholder.displayName = 'CPlaceholder';
|
|
7146
7156
|
|
|
@@ -7154,12 +7164,12 @@ var CProgressBar = React.forwardRef(function (_a, ref) {
|
|
|
7154
7164
|
_b), className), role: "progressbar", style: { width: "".concat(value, "%") }, "aria-valuenow": value, "aria-valuemin": 0, "aria-valuemax": 100 }, rest, { ref: ref }), children));
|
|
7155
7165
|
});
|
|
7156
7166
|
CProgressBar.propTypes = {
|
|
7157
|
-
animated:
|
|
7158
|
-
children:
|
|
7159
|
-
className:
|
|
7167
|
+
animated: PropTypes.bool,
|
|
7168
|
+
children: PropTypes.node,
|
|
7169
|
+
className: PropTypes.string,
|
|
7160
7170
|
color: colorPropType,
|
|
7161
|
-
value:
|
|
7162
|
-
variant:
|
|
7171
|
+
value: PropTypes.number,
|
|
7172
|
+
variant: PropTypes.oneOf(['striped']),
|
|
7163
7173
|
};
|
|
7164
7174
|
CProgressBar.displayName = 'CProgressBar';
|
|
7165
7175
|
|
|
@@ -7171,39 +7181,69 @@ var CProgress = React.forwardRef(function (_a, ref) {
|
|
|
7171
7181
|
}, className), style: height ? { height: "".concat(height, "px") } : {}, ref: ref }, value ? (React.createElement(CProgressBar, __assign({ value: value }, rest), children)) : (children)));
|
|
7172
7182
|
});
|
|
7173
7183
|
CProgress.propTypes = {
|
|
7174
|
-
children:
|
|
7175
|
-
className:
|
|
7176
|
-
height:
|
|
7177
|
-
thin:
|
|
7178
|
-
value:
|
|
7179
|
-
white:
|
|
7184
|
+
children: PropTypes.node,
|
|
7185
|
+
className: PropTypes.string,
|
|
7186
|
+
height: PropTypes.number,
|
|
7187
|
+
thin: PropTypes.bool,
|
|
7188
|
+
value: PropTypes.number,
|
|
7189
|
+
white: PropTypes.bool,
|
|
7180
7190
|
};
|
|
7181
7191
|
CProgress.displayName = 'CProgress';
|
|
7182
7192
|
|
|
7193
|
+
var getPlacement$1 = function (placement, element) {
|
|
7194
|
+
console.log(element);
|
|
7195
|
+
switch (placement) {
|
|
7196
|
+
case 'right': {
|
|
7197
|
+
return isRTL(element) ? 'left' : 'right';
|
|
7198
|
+
}
|
|
7199
|
+
case 'left': {
|
|
7200
|
+
return isRTL(element) ? 'right' : 'left';
|
|
7201
|
+
}
|
|
7202
|
+
default: {
|
|
7203
|
+
return placement;
|
|
7204
|
+
}
|
|
7205
|
+
}
|
|
7206
|
+
};
|
|
7183
7207
|
var CPopover = function (_a) {
|
|
7184
7208
|
var children = _a.children, className = _a.className, content = _a.content, _b = _a.offset, offset = _b === void 0 ? [0, 8] : _b, onHide = _a.onHide, onShow = _a.onShow, _c = _a.placement, placement = _c === void 0 ? 'top' : _c, title = _a.title, _d = _a.trigger, trigger = _d === void 0 ? 'click' : _d, visible = _a.visible, rest = __rest(_a, ["children", "className", "content", "offset", "onHide", "onShow", "placement", "title", "trigger", "visible"]);
|
|
7209
|
+
var popoverRef = React.useRef(null);
|
|
7210
|
+
var togglerRef = React.useRef(null);
|
|
7211
|
+
var popper = React.useRef();
|
|
7185
7212
|
var _e = React.useState(visible), _visible = _e[0], setVisible = _e[1];
|
|
7186
|
-
var popoverRef = React.useRef();
|
|
7187
|
-
var _f = React.useState(null), referenceElement = _f[0], setReferenceElement = _f[1];
|
|
7188
|
-
var _g = React.useState(null), popperElement = _g[0], setPopperElement = _g[1];
|
|
7189
|
-
var _h = React.useState(null), arrowElement = _h[0], setArrowElement = _h[1];
|
|
7190
|
-
var _j = usePopper(referenceElement, popperElement, {
|
|
7191
|
-
modifiers: [
|
|
7192
|
-
{ name: 'arrow', options: { element: arrowElement } },
|
|
7193
|
-
{
|
|
7194
|
-
name: 'offset',
|
|
7195
|
-
options: {
|
|
7196
|
-
offset: offset,
|
|
7197
|
-
},
|
|
7198
|
-
},
|
|
7199
|
-
],
|
|
7200
|
-
placement: placement,
|
|
7201
|
-
}), styles = _j.styles, attributes = _j.attributes;
|
|
7202
7213
|
React.useEffect(function () {
|
|
7203
7214
|
setVisible(visible);
|
|
7204
7215
|
}, [visible]);
|
|
7216
|
+
React.useEffect(function () {
|
|
7217
|
+
if (_visible) {
|
|
7218
|
+
initPopper();
|
|
7219
|
+
}
|
|
7220
|
+
return function () {
|
|
7221
|
+
destroyPopper();
|
|
7222
|
+
};
|
|
7223
|
+
}, [_visible]);
|
|
7224
|
+
var initPopper = function () {
|
|
7225
|
+
if (togglerRef.current && popoverRef.current) {
|
|
7226
|
+
popper.current = createPopper(togglerRef.current, popoverRef.current, {
|
|
7227
|
+
modifiers: [
|
|
7228
|
+
{
|
|
7229
|
+
name: 'offset',
|
|
7230
|
+
options: {
|
|
7231
|
+
offset: offset,
|
|
7232
|
+
},
|
|
7233
|
+
},
|
|
7234
|
+
],
|
|
7235
|
+
placement: getPlacement$1(placement, togglerRef.current),
|
|
7236
|
+
});
|
|
7237
|
+
}
|
|
7238
|
+
};
|
|
7239
|
+
var destroyPopper = function () {
|
|
7240
|
+
if (popper.current) {
|
|
7241
|
+
popper.current.destroy();
|
|
7242
|
+
}
|
|
7243
|
+
popper.current = undefined;
|
|
7244
|
+
};
|
|
7205
7245
|
return (React.createElement(React.Fragment, null,
|
|
7206
|
-
React.cloneElement(children, __assign(__assign(__assign({ ref:
|
|
7246
|
+
React.cloneElement(children, __assign(__assign(__assign({ ref: togglerRef }, ((trigger === 'click' || trigger.includes('click')) && {
|
|
7207
7247
|
onClick: function () { return setVisible(!_visible); },
|
|
7208
7248
|
})), ((trigger === 'focus' || trigger.includes('focus')) && {
|
|
7209
7249
|
onFocus: function () { return setVisible(true); },
|
|
@@ -7216,24 +7256,26 @@ var CPopover = function (_a) {
|
|
|
7216
7256
|
ReactDOM.createPortal(React.createElement(Transition$1, { in: _visible, mountOnEnter: true, nodeRef: popoverRef, onEnter: onShow, onExit: onHide, timeout: {
|
|
7217
7257
|
enter: 0,
|
|
7218
7258
|
exit: 200,
|
|
7219
|
-
}, unmountOnExit: true }, function (state) { return (React.createElement("div", __assign({ className: classNames('popover', "bs-popover-".concat(placement
|
|
7259
|
+
}, unmountOnExit: true }, function (state) { return (React.createElement("div", __assign({ className: classNames('popover', "bs-popover-".concat(getPlacement$1(placement, togglerRef.current)
|
|
7260
|
+
.replace('left', 'start')
|
|
7261
|
+
.replace('right', 'end')), 'fade', {
|
|
7220
7262
|
show: state === 'entered',
|
|
7221
|
-
}, className), ref:
|
|
7222
|
-
React.createElement("div", {
|
|
7263
|
+
}, className), ref: popoverRef, role: "tooltip" }, rest),
|
|
7264
|
+
React.createElement("div", { "data-popper-arrow": true, className: "popover-arrow" }),
|
|
7223
7265
|
React.createElement("div", { className: "popover-header" }, title),
|
|
7224
7266
|
React.createElement("div", { className: "popover-body" }, content))); }), document.body)));
|
|
7225
7267
|
};
|
|
7226
7268
|
CPopover.propTypes = {
|
|
7227
|
-
children:
|
|
7228
|
-
className:
|
|
7229
|
-
content:
|
|
7230
|
-
offset:
|
|
7231
|
-
onHide:
|
|
7232
|
-
onShow:
|
|
7233
|
-
placement:
|
|
7234
|
-
title:
|
|
7269
|
+
children: PropTypes.node,
|
|
7270
|
+
className: PropTypes.string,
|
|
7271
|
+
content: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7272
|
+
offset: PropTypes.any,
|
|
7273
|
+
onHide: PropTypes.func,
|
|
7274
|
+
onShow: PropTypes.func,
|
|
7275
|
+
placement: PropTypes.oneOf(['auto', 'top', 'right', 'bottom', 'left']),
|
|
7276
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7235
7277
|
trigger: triggerPropType,
|
|
7236
|
-
visible:
|
|
7278
|
+
visible: PropTypes.bool,
|
|
7237
7279
|
};
|
|
7238
7280
|
CPopover.displayName = 'CPopover';
|
|
7239
7281
|
|
|
@@ -7327,17 +7369,17 @@ var CSidebar = React.forwardRef(function (_a, ref) {
|
|
|
7327
7369
|
ReactDOM.createPortal(React.createElement(CBackdrop, { className: "sidebar-backdrop", visible: _visible }), document.body)));
|
|
7328
7370
|
});
|
|
7329
7371
|
CSidebar.propTypes = {
|
|
7330
|
-
children:
|
|
7331
|
-
className:
|
|
7332
|
-
narrow:
|
|
7333
|
-
onHide:
|
|
7334
|
-
onShow:
|
|
7335
|
-
onVisibleChange:
|
|
7336
|
-
overlaid:
|
|
7337
|
-
position:
|
|
7338
|
-
size:
|
|
7339
|
-
unfoldable:
|
|
7340
|
-
visible:
|
|
7372
|
+
children: PropTypes.node,
|
|
7373
|
+
className: PropTypes.string,
|
|
7374
|
+
narrow: PropTypes.bool,
|
|
7375
|
+
onHide: PropTypes.func,
|
|
7376
|
+
onShow: PropTypes.func,
|
|
7377
|
+
onVisibleChange: PropTypes.func,
|
|
7378
|
+
overlaid: PropTypes.bool,
|
|
7379
|
+
position: PropTypes.oneOf(['fixed', 'sticky']),
|
|
7380
|
+
size: PropTypes.oneOf(['sm', 'lg', 'xl']),
|
|
7381
|
+
unfoldable: PropTypes.bool,
|
|
7382
|
+
visible: PropTypes.bool,
|
|
7341
7383
|
};
|
|
7342
7384
|
CSidebar.displayName = 'CSidebar';
|
|
7343
7385
|
|
|
@@ -7346,8 +7388,8 @@ var CSidebarBrand = React.forwardRef(function (_a, ref) {
|
|
|
7346
7388
|
return (React.createElement("div", __assign({ className: classNames('sidebar-brand', className), ref: ref }, rest), children));
|
|
7347
7389
|
});
|
|
7348
7390
|
CSidebarBrand.propTypes = {
|
|
7349
|
-
children:
|
|
7350
|
-
className:
|
|
7391
|
+
children: PropTypes.node,
|
|
7392
|
+
className: PropTypes.string,
|
|
7351
7393
|
};
|
|
7352
7394
|
CSidebarBrand.displayName = 'CSidebarBrand';
|
|
7353
7395
|
|
|
@@ -7356,8 +7398,8 @@ var CSidebarFooter = React.forwardRef(function (_a, ref) {
|
|
|
7356
7398
|
return (React.createElement("div", __assign({ className: classNames('sidebar-footer', className), ref: ref }, rest), children));
|
|
7357
7399
|
});
|
|
7358
7400
|
CSidebarFooter.propTypes = {
|
|
7359
|
-
children:
|
|
7360
|
-
className:
|
|
7401
|
+
children: PropTypes.node,
|
|
7402
|
+
className: PropTypes.string,
|
|
7361
7403
|
};
|
|
7362
7404
|
CSidebarFooter.displayName = 'CSidebarFooter';
|
|
7363
7405
|
|
|
@@ -7366,8 +7408,8 @@ var CSidebarToggler = React.forwardRef(function (_a, ref) {
|
|
|
7366
7408
|
return (React.createElement("button", __assign({ className: classNames('sidebar-toggler', className), ref: ref }, rest), children));
|
|
7367
7409
|
});
|
|
7368
7410
|
CSidebarToggler.propTypes = {
|
|
7369
|
-
children:
|
|
7370
|
-
className:
|
|
7411
|
+
children: PropTypes.node,
|
|
7412
|
+
className: PropTypes.string,
|
|
7371
7413
|
};
|
|
7372
7414
|
CSidebarToggler.displayName = 'CSidebarToggler';
|
|
7373
7415
|
|
|
@@ -7376,8 +7418,8 @@ var CSidebarHeader = React.forwardRef(function (_a, ref) {
|
|
|
7376
7418
|
return (React.createElement("div", __assign({ className: classNames('sidebar-header', className), ref: ref }, rest), children));
|
|
7377
7419
|
});
|
|
7378
7420
|
CSidebarHeader.propTypes = {
|
|
7379
|
-
children:
|
|
7380
|
-
className:
|
|
7421
|
+
children: PropTypes.node,
|
|
7422
|
+
className: PropTypes.string,
|
|
7381
7423
|
};
|
|
7382
7424
|
CSidebarHeader.displayName = 'CSidebarHeader';
|
|
7383
7425
|
|
|
@@ -7387,12 +7429,12 @@ var CSpinner = React.forwardRef(function (_a, ref) {
|
|
|
7387
7429
|
React.createElement("span", { className: "visually-hidden" }, visuallyHiddenLabel)));
|
|
7388
7430
|
});
|
|
7389
7431
|
CSpinner.propTypes = {
|
|
7390
|
-
className:
|
|
7432
|
+
className: PropTypes.string,
|
|
7391
7433
|
color: colorPropType,
|
|
7392
|
-
component:
|
|
7393
|
-
size:
|
|
7394
|
-
variant:
|
|
7395
|
-
visuallyHiddenLabel:
|
|
7434
|
+
component: PropTypes.string,
|
|
7435
|
+
size: PropTypes.oneOf(['sm']),
|
|
7436
|
+
variant: PropTypes.oneOf(['border', 'grow']),
|
|
7437
|
+
visuallyHiddenLabel: PropTypes.string,
|
|
7396
7438
|
};
|
|
7397
7439
|
CSpinner.displayName = 'CSpinner';
|
|
7398
7440
|
|
|
@@ -7404,8 +7446,8 @@ var CTableHead = React.forwardRef(function (_a, ref) {
|
|
|
7404
7446
|
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7405
7447
|
});
|
|
7406
7448
|
CTableHead.propTypes = {
|
|
7407
|
-
children:
|
|
7408
|
-
className:
|
|
7449
|
+
children: PropTypes.node,
|
|
7450
|
+
className: PropTypes.string,
|
|
7409
7451
|
color: colorPropType,
|
|
7410
7452
|
};
|
|
7411
7453
|
CTableHead.displayName = 'CTableHead';
|
|
@@ -7418,8 +7460,8 @@ var CTableHeaderCell = React.forwardRef(function (_a, ref) {
|
|
|
7418
7460
|
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7419
7461
|
});
|
|
7420
7462
|
CTableHeaderCell.propTypes = {
|
|
7421
|
-
children:
|
|
7422
|
-
className:
|
|
7463
|
+
children: PropTypes.node,
|
|
7464
|
+
className: PropTypes.string,
|
|
7423
7465
|
color: colorPropType,
|
|
7424
7466
|
};
|
|
7425
7467
|
CTableHeaderCell.displayName = 'CTableHeaderCell';
|
|
@@ -7432,8 +7474,8 @@ var CTableBody = React.forwardRef(function (_a, ref) {
|
|
|
7432
7474
|
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7433
7475
|
});
|
|
7434
7476
|
CTableBody.propTypes = {
|
|
7435
|
-
children:
|
|
7436
|
-
className:
|
|
7477
|
+
children: PropTypes.node,
|
|
7478
|
+
className: PropTypes.string,
|
|
7437
7479
|
color: colorPropType,
|
|
7438
7480
|
};
|
|
7439
7481
|
CTableBody.displayName = 'CTableBody';
|
|
@@ -7449,10 +7491,10 @@ var CTableDataCell = React.forwardRef(function (_a, ref) {
|
|
|
7449
7491
|
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7450
7492
|
});
|
|
7451
7493
|
CTableDataCell.propTypes = {
|
|
7452
|
-
active:
|
|
7453
|
-
align:
|
|
7454
|
-
children:
|
|
7455
|
-
className:
|
|
7494
|
+
active: PropTypes.bool,
|
|
7495
|
+
align: PropTypes.oneOf(['bottom', 'middle', 'top']),
|
|
7496
|
+
children: PropTypes.node,
|
|
7497
|
+
className: PropTypes.string,
|
|
7456
7498
|
color: colorPropType,
|
|
7457
7499
|
};
|
|
7458
7500
|
CTableDataCell.displayName = 'CTableDataCell';
|
|
@@ -7467,10 +7509,10 @@ var CTableRow = React.forwardRef(function (_a, ref) {
|
|
|
7467
7509
|
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7468
7510
|
});
|
|
7469
7511
|
CTableRow.propTypes = {
|
|
7470
|
-
active:
|
|
7471
|
-
align:
|
|
7472
|
-
children:
|
|
7473
|
-
className:
|
|
7512
|
+
active: PropTypes.bool,
|
|
7513
|
+
align: PropTypes.oneOf(['bottom', 'middle', 'top']),
|
|
7514
|
+
children: PropTypes.node,
|
|
7515
|
+
className: PropTypes.string,
|
|
7474
7516
|
color: colorPropType,
|
|
7475
7517
|
};
|
|
7476
7518
|
CTableRow.displayName = 'CTableRow';
|
|
@@ -7483,8 +7525,8 @@ var CTableFoot = React.forwardRef(function (_a, ref) {
|
|
|
7483
7525
|
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7484
7526
|
});
|
|
7485
7527
|
CTableFoot.propTypes = {
|
|
7486
|
-
children:
|
|
7487
|
-
className:
|
|
7528
|
+
children: PropTypes.node,
|
|
7529
|
+
className: PropTypes.string,
|
|
7488
7530
|
color: colorPropType,
|
|
7489
7531
|
};
|
|
7490
7532
|
CTableFoot.displayName = 'CTableFoot';
|
|
@@ -7494,7 +7536,7 @@ var CTableCaption = React.forwardRef(function (_a, ref) {
|
|
|
7494
7536
|
return (React.createElement("caption", __assign({}, props, { ref: ref }), children));
|
|
7495
7537
|
});
|
|
7496
7538
|
CTableCaption.propTypes = {
|
|
7497
|
-
children:
|
|
7539
|
+
children: PropTypes.node,
|
|
7498
7540
|
};
|
|
7499
7541
|
CTableCaption.displayName = 'CTableCaption';
|
|
7500
7542
|
|
|
@@ -7503,10 +7545,10 @@ var CTableResponsiveWrapper = function (_a) {
|
|
|
7503
7545
|
return responsive ? (React.createElement("div", __assign({ className: typeof responsive === 'boolean' ? 'table-responsive' : "table-responsive-".concat(responsive) }, rest), children)) : (React.createElement(React.Fragment, null, children));
|
|
7504
7546
|
};
|
|
7505
7547
|
CTableResponsiveWrapper.propTypes = {
|
|
7506
|
-
children:
|
|
7507
|
-
responsive:
|
|
7508
|
-
|
|
7509
|
-
|
|
7548
|
+
children: PropTypes.node,
|
|
7549
|
+
responsive: PropTypes.oneOfType([
|
|
7550
|
+
PropTypes.bool,
|
|
7551
|
+
PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'xxl']),
|
|
7510
7552
|
]),
|
|
7511
7553
|
};
|
|
7512
7554
|
CTableResponsiveWrapper.displayName = 'CTableResponsiveWrapper';
|
|
@@ -7561,28 +7603,28 @@ var CTable = React.forwardRef(function (_a, ref) {
|
|
|
7561
7603
|
React.createElement(CTableRow, null, footer.map(function (item, index) { return (React.createElement(CTableDataCell, __assign({}, (typeof item === 'object' && item._props && __assign({}, item._props)), { key: index }), typeof item === 'object' ? item.label : item)); })))))));
|
|
7562
7604
|
});
|
|
7563
7605
|
CTable.propTypes = {
|
|
7564
|
-
align:
|
|
7565
|
-
borderColor:
|
|
7566
|
-
bordered:
|
|
7567
|
-
borderless:
|
|
7568
|
-
caption:
|
|
7569
|
-
captionTop:
|
|
7570
|
-
children:
|
|
7571
|
-
className:
|
|
7606
|
+
align: PropTypes.oneOf(['bottom', 'middle', 'top']),
|
|
7607
|
+
borderColor: PropTypes.string,
|
|
7608
|
+
bordered: PropTypes.bool,
|
|
7609
|
+
borderless: PropTypes.bool,
|
|
7610
|
+
caption: PropTypes.oneOfType([PropTypes.string, PropTypes.oneOf(['top'])]),
|
|
7611
|
+
captionTop: PropTypes.string,
|
|
7612
|
+
children: PropTypes.node,
|
|
7613
|
+
className: PropTypes.string,
|
|
7572
7614
|
color: colorPropType,
|
|
7573
|
-
columns:
|
|
7574
|
-
footer:
|
|
7575
|
-
hover:
|
|
7576
|
-
items:
|
|
7577
|
-
responsive:
|
|
7578
|
-
|
|
7579
|
-
|
|
7615
|
+
columns: PropTypes.array,
|
|
7616
|
+
footer: PropTypes.array,
|
|
7617
|
+
hover: PropTypes.bool,
|
|
7618
|
+
items: PropTypes.array,
|
|
7619
|
+
responsive: PropTypes.oneOfType([
|
|
7620
|
+
PropTypes.bool,
|
|
7621
|
+
PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'xxl']),
|
|
7580
7622
|
]),
|
|
7581
|
-
small:
|
|
7582
|
-
striped:
|
|
7583
|
-
stripedColumns:
|
|
7584
|
-
tableFootProps:
|
|
7585
|
-
tableHeadProps:
|
|
7623
|
+
small: PropTypes.bool,
|
|
7624
|
+
striped: PropTypes.bool,
|
|
7625
|
+
stripedColumns: PropTypes.bool,
|
|
7626
|
+
tableFootProps: PropTypes.shape(__assign({}, CTableFoot.propTypes)),
|
|
7627
|
+
tableHeadProps: PropTypes.shape(__assign({}, CTableHead.propTypes)),
|
|
7586
7628
|
};
|
|
7587
7629
|
CTable.displayName = 'CTable';
|
|
7588
7630
|
|
|
@@ -7591,8 +7633,8 @@ var CTabContent = React.forwardRef(function (_a, ref) {
|
|
|
7591
7633
|
return (React.createElement("div", __assign({ className: classNames('tab-content', className) }, rest, { ref: ref }), children));
|
|
7592
7634
|
});
|
|
7593
7635
|
CTabContent.propTypes = {
|
|
7594
|
-
children:
|
|
7595
|
-
className:
|
|
7636
|
+
children: PropTypes.node,
|
|
7637
|
+
className: PropTypes.string,
|
|
7596
7638
|
};
|
|
7597
7639
|
CTabContent.displayName = 'CTabContent';
|
|
7598
7640
|
|
|
@@ -7606,11 +7648,11 @@ var CTabPane = React.forwardRef(function (_a, ref) {
|
|
|
7606
7648
|
}, className) }, rest, { ref: forkedRef }), children)); }));
|
|
7607
7649
|
});
|
|
7608
7650
|
CTabPane.propTypes = {
|
|
7609
|
-
children:
|
|
7610
|
-
className:
|
|
7611
|
-
onHide:
|
|
7612
|
-
onShow:
|
|
7613
|
-
visible:
|
|
7651
|
+
children: PropTypes.node,
|
|
7652
|
+
className: PropTypes.string,
|
|
7653
|
+
onHide: PropTypes.func,
|
|
7654
|
+
onShow: PropTypes.func,
|
|
7655
|
+
visible: PropTypes.bool,
|
|
7614
7656
|
};
|
|
7615
7657
|
CTabPane.displayName = 'CTabPane';
|
|
7616
7658
|
|
|
@@ -7655,17 +7697,17 @@ var CToast = React.forwardRef(function (_a, ref) {
|
|
|
7655
7697
|
}));
|
|
7656
7698
|
});
|
|
7657
7699
|
CToast.propTypes = {
|
|
7658
|
-
animation:
|
|
7659
|
-
autohide:
|
|
7660
|
-
children:
|
|
7661
|
-
className:
|
|
7700
|
+
animation: PropTypes.bool,
|
|
7701
|
+
autohide: PropTypes.bool,
|
|
7702
|
+
children: PropTypes.node,
|
|
7703
|
+
className: PropTypes.string,
|
|
7662
7704
|
color: colorPropType,
|
|
7663
|
-
delay:
|
|
7664
|
-
index:
|
|
7665
|
-
key:
|
|
7666
|
-
onClose:
|
|
7667
|
-
onShow:
|
|
7668
|
-
visible:
|
|
7705
|
+
delay: PropTypes.number,
|
|
7706
|
+
index: PropTypes.number,
|
|
7707
|
+
key: PropTypes.number,
|
|
7708
|
+
onClose: PropTypes.func,
|
|
7709
|
+
onShow: PropTypes.func,
|
|
7710
|
+
visible: PropTypes.bool,
|
|
7669
7711
|
};
|
|
7670
7712
|
CToast.displayName = 'CToast';
|
|
7671
7713
|
|
|
@@ -7674,8 +7716,8 @@ var CToastBody = React.forwardRef(function (_a, ref) {
|
|
|
7674
7716
|
return (React.createElement("div", __assign({ className: classNames('toast-body', className) }, rest, { ref: ref }), children));
|
|
7675
7717
|
});
|
|
7676
7718
|
CToastBody.propTypes = {
|
|
7677
|
-
children:
|
|
7678
|
-
className:
|
|
7719
|
+
children: PropTypes.node,
|
|
7720
|
+
className: PropTypes.string,
|
|
7679
7721
|
};
|
|
7680
7722
|
CToastBody.displayName = 'CToastBody';
|
|
7681
7723
|
|
|
@@ -7684,7 +7726,7 @@ var CToastClose = React.forwardRef(function (_a, ref) {
|
|
|
7684
7726
|
var setVisible = React.useContext(CToastContext).setVisible;
|
|
7685
7727
|
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 })));
|
|
7686
7728
|
});
|
|
7687
|
-
CToastClose.propTypes = __assign(__assign({}, CCloseButton.propTypes), { component:
|
|
7729
|
+
CToastClose.propTypes = __assign(__assign({}, CCloseButton.propTypes), { component: PropTypes.elementType });
|
|
7688
7730
|
CToastClose.displayName = 'CToastClose';
|
|
7689
7731
|
|
|
7690
7732
|
var CToastHeader = React.forwardRef(function (_a, ref) {
|
|
@@ -7694,9 +7736,9 @@ var CToastHeader = React.forwardRef(function (_a, ref) {
|
|
|
7694
7736
|
closeButton && React.createElement(CToastClose, null)));
|
|
7695
7737
|
});
|
|
7696
7738
|
CToastHeader.propTypes = {
|
|
7697
|
-
children:
|
|
7698
|
-
className:
|
|
7699
|
-
closeButton:
|
|
7739
|
+
children: PropTypes.node,
|
|
7740
|
+
className: PropTypes.string,
|
|
7741
|
+
closeButton: PropTypes.bool,
|
|
7700
7742
|
};
|
|
7701
7743
|
CToastHeader.displayName = 'CToastHeader';
|
|
7702
7744
|
|
|
@@ -7732,11 +7774,11 @@ var CToaster = React.forwardRef(function (_a, ref) {
|
|
|
7732
7774
|
toasts.map(function (toast) { return React.cloneElement(toast, { visible: true }); }))) : null));
|
|
7733
7775
|
});
|
|
7734
7776
|
CToaster.propTypes = {
|
|
7735
|
-
children:
|
|
7736
|
-
className:
|
|
7737
|
-
placement:
|
|
7738
|
-
|
|
7739
|
-
|
|
7777
|
+
children: PropTypes.node,
|
|
7778
|
+
className: PropTypes.string,
|
|
7779
|
+
placement: PropTypes.oneOfType([
|
|
7780
|
+
PropTypes.string,
|
|
7781
|
+
PropTypes.oneOf([
|
|
7740
7782
|
'top-start',
|
|
7741
7783
|
'top-center',
|
|
7742
7784
|
'top-end',
|
|
@@ -7748,34 +7790,64 @@ CToaster.propTypes = {
|
|
|
7748
7790
|
'bottom-end',
|
|
7749
7791
|
]),
|
|
7750
7792
|
]),
|
|
7751
|
-
push:
|
|
7793
|
+
push: PropTypes.any,
|
|
7752
7794
|
};
|
|
7753
7795
|
CToaster.displayName = 'CToaster';
|
|
7754
7796
|
|
|
7797
|
+
var getPlacement = function (placement, element) {
|
|
7798
|
+
console.log(element);
|
|
7799
|
+
switch (placement) {
|
|
7800
|
+
case 'right': {
|
|
7801
|
+
return isRTL(element) ? 'left' : 'right';
|
|
7802
|
+
}
|
|
7803
|
+
case 'left': {
|
|
7804
|
+
return isRTL(element) ? 'right' : 'left';
|
|
7805
|
+
}
|
|
7806
|
+
default: {
|
|
7807
|
+
return placement;
|
|
7808
|
+
}
|
|
7809
|
+
}
|
|
7810
|
+
};
|
|
7755
7811
|
var CTooltip = function (_a) {
|
|
7756
|
-
var children = _a.children, className = _a.className, content = _a.content, _b = _a.offset, offset = _b === void 0 ? [0,
|
|
7757
|
-
var tooltipRef = React.useRef();
|
|
7812
|
+
var children = _a.children, className = _a.className, content = _a.content, _b = _a.offset, offset = _b === void 0 ? [0, 6] : _b, onHide = _a.onHide, onShow = _a.onShow, _c = _a.placement, placement = _c === void 0 ? 'top' : _c, _d = _a.trigger, trigger = _d === void 0 ? 'hover' : _d, visible = _a.visible, rest = __rest(_a, ["children", "className", "content", "offset", "onHide", "onShow", "placement", "trigger", "visible"]);
|
|
7813
|
+
var tooltipRef = React.useRef(null);
|
|
7814
|
+
var togglerRef = React.useRef(null);
|
|
7815
|
+
var popper = React.useRef();
|
|
7758
7816
|
var _e = React.useState(visible), _visible = _e[0], setVisible = _e[1];
|
|
7759
|
-
var _f = React.useState(null), referenceElement = _f[0], setReferenceElement = _f[1];
|
|
7760
|
-
var _g = React.useState(null), popperElement = _g[0], setPopperElement = _g[1];
|
|
7761
|
-
var _h = React.useState(null), arrowElement = _h[0], setArrowElement = _h[1];
|
|
7762
|
-
var _j = usePopper(referenceElement, popperElement, {
|
|
7763
|
-
modifiers: [
|
|
7764
|
-
{ name: 'arrow', options: { element: arrowElement } },
|
|
7765
|
-
{
|
|
7766
|
-
name: 'offset',
|
|
7767
|
-
options: {
|
|
7768
|
-
offset: offset,
|
|
7769
|
-
},
|
|
7770
|
-
},
|
|
7771
|
-
],
|
|
7772
|
-
placement: placement,
|
|
7773
|
-
}), styles = _j.styles, attributes = _j.attributes;
|
|
7774
7817
|
React.useEffect(function () {
|
|
7775
7818
|
setVisible(visible);
|
|
7776
7819
|
}, [visible]);
|
|
7820
|
+
React.useEffect(function () {
|
|
7821
|
+
if (_visible) {
|
|
7822
|
+
initPopper();
|
|
7823
|
+
}
|
|
7824
|
+
return function () {
|
|
7825
|
+
destroyPopper();
|
|
7826
|
+
};
|
|
7827
|
+
}, [_visible]);
|
|
7828
|
+
var initPopper = function () {
|
|
7829
|
+
if (togglerRef.current && tooltipRef.current) {
|
|
7830
|
+
popper.current = createPopper(togglerRef.current, tooltipRef.current, {
|
|
7831
|
+
modifiers: [
|
|
7832
|
+
{
|
|
7833
|
+
name: 'offset',
|
|
7834
|
+
options: {
|
|
7835
|
+
offset: offset,
|
|
7836
|
+
},
|
|
7837
|
+
},
|
|
7838
|
+
],
|
|
7839
|
+
placement: getPlacement(placement, togglerRef.current),
|
|
7840
|
+
});
|
|
7841
|
+
}
|
|
7842
|
+
};
|
|
7843
|
+
var destroyPopper = function () {
|
|
7844
|
+
if (popper.current) {
|
|
7845
|
+
popper.current.destroy();
|
|
7846
|
+
}
|
|
7847
|
+
popper.current = undefined;
|
|
7848
|
+
};
|
|
7777
7849
|
return (React.createElement(React.Fragment, null,
|
|
7778
|
-
React.cloneElement(children, __assign(__assign(__assign({ ref:
|
|
7850
|
+
React.cloneElement(children, __assign(__assign(__assign({ ref: togglerRef }, ((trigger === 'click' || trigger.includes('click')) && {
|
|
7779
7851
|
onClick: function () { return setVisible(!_visible); },
|
|
7780
7852
|
})), ((trigger === 'focus' || trigger.includes('focus')) && {
|
|
7781
7853
|
onFocus: function () { return setVisible(true); },
|
|
@@ -7785,24 +7857,26 @@ var CTooltip = function (_a) {
|
|
|
7785
7857
|
onMouseLeave: function () { return setVisible(false); },
|
|
7786
7858
|
}))),
|
|
7787
7859
|
typeof window !== 'undefined' &&
|
|
7788
|
-
ReactDOM.createPortal(React.createElement(Transition$1, { in: _visible, mountOnEnter: true,
|
|
7860
|
+
ReactDOM.createPortal(React.createElement(Transition$1, { in: _visible, mountOnEnter: true, onEnter: onShow, onExit: onHide, timeout: {
|
|
7789
7861
|
enter: 0,
|
|
7790
7862
|
exit: 200,
|
|
7791
|
-
}, unmountOnExit: true }, function (state) { return (React.createElement("div", __assign({ className: classNames('tooltip', "bs-
|
|
7863
|
+
}, unmountOnExit: true }, function (state) { return (React.createElement("div", __assign({ className: classNames('tooltip', "bs-tooltip-".concat(getPlacement(placement, togglerRef.current)
|
|
7864
|
+
.replace('left', 'start')
|
|
7865
|
+
.replace('right', 'end')), 'fade', {
|
|
7792
7866
|
show: state === 'entered',
|
|
7793
|
-
}, className), ref:
|
|
7794
|
-
React.createElement("div", {
|
|
7867
|
+
}, className), ref: tooltipRef, role: "tooltip" }, rest),
|
|
7868
|
+
React.createElement("div", { "data-popper-arrow": true, className: "tooltip-arrow" }),
|
|
7795
7869
|
React.createElement("div", { className: "tooltip-inner" }, content))); }), document.body)));
|
|
7796
7870
|
};
|
|
7797
7871
|
CTooltip.propTypes = {
|
|
7798
|
-
children:
|
|
7799
|
-
content:
|
|
7800
|
-
offset:
|
|
7801
|
-
onHide:
|
|
7802
|
-
onShow:
|
|
7803
|
-
placement:
|
|
7872
|
+
children: PropTypes.node,
|
|
7873
|
+
content: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7874
|
+
offset: PropTypes.any,
|
|
7875
|
+
onHide: PropTypes.func,
|
|
7876
|
+
onShow: PropTypes.func,
|
|
7877
|
+
placement: PropTypes.oneOf(['auto', 'top', 'right', 'bottom', 'left']),
|
|
7804
7878
|
trigger: triggerPropType,
|
|
7805
|
-
visible:
|
|
7879
|
+
visible: PropTypes.bool,
|
|
7806
7880
|
};
|
|
7807
7881
|
CTooltip.displayName = 'CTooltip';
|
|
7808
7882
|
|
|
@@ -7818,12 +7892,12 @@ var CWidgetStatsA = React.forwardRef(function (_a, ref) {
|
|
|
7818
7892
|
chart));
|
|
7819
7893
|
});
|
|
7820
7894
|
CWidgetStatsA.propTypes = {
|
|
7821
|
-
action:
|
|
7822
|
-
chart:
|
|
7823
|
-
className:
|
|
7895
|
+
action: PropTypes.node,
|
|
7896
|
+
chart: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7897
|
+
className: PropTypes.string,
|
|
7824
7898
|
color: colorPropType,
|
|
7825
|
-
title:
|
|
7826
|
-
value:
|
|
7899
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7900
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.number]),
|
|
7827
7901
|
};
|
|
7828
7902
|
CWidgetStatsA.displayName = 'CWidgetStatsA';
|
|
7829
7903
|
|
|
@@ -7837,13 +7911,13 @@ var CWidgetStatsB = React.forwardRef(function (_a, ref) {
|
|
|
7837
7911
|
text && (React.createElement("small", { className: inverse ? 'text-medium-emphasis-inverse' : 'text-medium-emphasis' }, text)))));
|
|
7838
7912
|
});
|
|
7839
7913
|
CWidgetStatsB.propTypes = {
|
|
7840
|
-
className:
|
|
7914
|
+
className: PropTypes.string,
|
|
7841
7915
|
color: colorPropType,
|
|
7842
|
-
inverse:
|
|
7843
|
-
progress:
|
|
7844
|
-
text:
|
|
7845
|
-
title:
|
|
7846
|
-
value:
|
|
7916
|
+
inverse: PropTypes.bool,
|
|
7917
|
+
progress: PropTypes.object,
|
|
7918
|
+
text: PropTypes.string,
|
|
7919
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7920
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.number]),
|
|
7847
7921
|
};
|
|
7848
7922
|
CWidgetStatsB.displayName = 'CWidgetCWidgetStatsB';
|
|
7849
7923
|
|
|
@@ -7857,13 +7931,13 @@ var CWidgetStatsC = React.forwardRef(function (_a, ref) {
|
|
|
7857
7931
|
React.createElement(CProgress, __assign({ className: "mt-3 mb-0", height: 4 }, (inverse && { white: true }), progress)))));
|
|
7858
7932
|
});
|
|
7859
7933
|
CWidgetStatsC.propTypes = {
|
|
7860
|
-
className:
|
|
7934
|
+
className: PropTypes.string,
|
|
7861
7935
|
color: colorPropType,
|
|
7862
|
-
icon:
|
|
7863
|
-
inverse:
|
|
7864
|
-
progress:
|
|
7865
|
-
title:
|
|
7866
|
-
value:
|
|
7936
|
+
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7937
|
+
inverse: PropTypes.bool,
|
|
7938
|
+
progress: PropTypes.object,
|
|
7939
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7940
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.number]),
|
|
7867
7941
|
};
|
|
7868
7942
|
CWidgetStatsC.displayName = 'CWidgetStatsCWidgetStatsC';
|
|
7869
7943
|
|
|
@@ -7886,11 +7960,11 @@ var CWidgetStatsD = React.forwardRef(function (_a, ref) {
|
|
|
7886
7960
|
}))));
|
|
7887
7961
|
});
|
|
7888
7962
|
CWidgetStatsD.propTypes = {
|
|
7889
|
-
chart:
|
|
7890
|
-
className:
|
|
7963
|
+
chart: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7964
|
+
className: PropTypes.string,
|
|
7891
7965
|
color: colorPropType,
|
|
7892
|
-
icon:
|
|
7893
|
-
values:
|
|
7966
|
+
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7967
|
+
values: PropTypes.arrayOf(PropTypes.any),
|
|
7894
7968
|
};
|
|
7895
7969
|
CWidgetStatsD.displayName = 'CWidgetStatsD';
|
|
7896
7970
|
|
|
@@ -7903,11 +7977,11 @@ var CWidgetStatsE = React.forwardRef(function (_a, ref) {
|
|
|
7903
7977
|
chart)));
|
|
7904
7978
|
});
|
|
7905
7979
|
CWidgetStatsE.propTypes = {
|
|
7906
|
-
children:
|
|
7907
|
-
chart:
|
|
7908
|
-
className:
|
|
7909
|
-
title:
|
|
7910
|
-
value:
|
|
7980
|
+
children: PropTypes.node,
|
|
7981
|
+
chart: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7982
|
+
className: PropTypes.string,
|
|
7983
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7984
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.number]),
|
|
7911
7985
|
};
|
|
7912
7986
|
CWidgetStatsE.displayName = 'CWidgetStatsE';
|
|
7913
7987
|
|
|
@@ -7922,13 +7996,13 @@ var CWidgetStatsF = React.forwardRef(function (_a, ref) {
|
|
|
7922
7996
|
footer && React.createElement(CCardFooter, null, footer)));
|
|
7923
7997
|
});
|
|
7924
7998
|
CWidgetStatsF.propTypes = {
|
|
7925
|
-
className:
|
|
7999
|
+
className: PropTypes.string,
|
|
7926
8000
|
color: colorPropType,
|
|
7927
|
-
footer:
|
|
7928
|
-
icon:
|
|
7929
|
-
padding:
|
|
7930
|
-
title:
|
|
7931
|
-
value:
|
|
8001
|
+
footer: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
8002
|
+
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
8003
|
+
padding: PropTypes.bool,
|
|
8004
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
8005
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.number]),
|
|
7932
8006
|
};
|
|
7933
8007
|
CWidgetStatsF.displayName = 'CWidgetStatsF';
|
|
7934
8008
|
|