@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.es.js
CHANGED
|
@@ -17,6 +17,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
17
17
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
18
|
PERFORMANCE OF THIS SOFTWARE.
|
|
19
19
|
***************************************************************************** */
|
|
20
|
+
/* global Reflect, Promise */
|
|
21
|
+
|
|
20
22
|
|
|
21
23
|
var __assign = function() {
|
|
22
24
|
__assign = Object.assign || function __assign(t) {
|
|
@@ -51,17 +53,13 @@ function __spreadArray(to, from, pack) {
|
|
|
51
53
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
52
54
|
}
|
|
53
55
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
set exports(v){ propTypesExports = v; },
|
|
58
|
-
};
|
|
56
|
+
function getDefaultExportFromCjs (x) {
|
|
57
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
58
|
+
}
|
|
59
59
|
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
set exports(v){ reactIsExports = v; },
|
|
64
|
-
};
|
|
60
|
+
var propTypes = {exports: {}};
|
|
61
|
+
|
|
62
|
+
var reactIs = {exports: {}};
|
|
65
63
|
|
|
66
64
|
var reactIs_production_min = {};
|
|
67
65
|
|
|
@@ -280,17 +278,15 @@ function requireReactIs_development () {
|
|
|
280
278
|
var hasRequiredReactIs;
|
|
281
279
|
|
|
282
280
|
function requireReactIs () {
|
|
283
|
-
if (hasRequiredReactIs) return
|
|
281
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
|
284
282
|
hasRequiredReactIs = 1;
|
|
285
|
-
(function (module) {
|
|
286
283
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
return reactIsExports;
|
|
284
|
+
if (process.env.NODE_ENV === 'production') {
|
|
285
|
+
reactIs.exports = requireReactIs_production_min();
|
|
286
|
+
} else {
|
|
287
|
+
reactIs.exports = requireReactIs_development();
|
|
288
|
+
}
|
|
289
|
+
return reactIs.exports;
|
|
294
290
|
}
|
|
295
291
|
|
|
296
292
|
/*
|
|
@@ -1241,11 +1237,10 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1241
1237
|
propTypes.exports = requireFactoryWithThrowingShims()();
|
|
1242
1238
|
}
|
|
1243
1239
|
|
|
1244
|
-
var
|
|
1245
|
-
var
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
};
|
|
1240
|
+
var propTypesExports = propTypes.exports;
|
|
1241
|
+
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
1242
|
+
|
|
1243
|
+
var classnames = {exports: {}};
|
|
1249
1244
|
|
|
1250
1245
|
/*!
|
|
1251
1246
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -1301,10 +1296,11 @@ var classnames = {
|
|
|
1301
1296
|
} else {
|
|
1302
1297
|
window.classNames = classNames;
|
|
1303
1298
|
}
|
|
1304
|
-
}());
|
|
1299
|
+
}());
|
|
1305
1300
|
} (classnames));
|
|
1306
1301
|
|
|
1307
|
-
var
|
|
1302
|
+
var classnamesExports = classnames.exports;
|
|
1303
|
+
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
1308
1304
|
|
|
1309
1305
|
var CAccordionContext = createContext({});
|
|
1310
1306
|
var CAccordion = forwardRef(function (_a, ref) {
|
|
@@ -1314,11 +1310,11 @@ var CAccordion = forwardRef(function (_a, ref) {
|
|
|
1314
1310
|
React__default.createElement(CAccordionContext.Provider, { value: { _activeItemKey: _activeItemKey, alwaysOpen: alwaysOpen, setActiveKey: setActiveKey } }, children)));
|
|
1315
1311
|
});
|
|
1316
1312
|
CAccordion.propTypes = {
|
|
1317
|
-
alwaysOpen:
|
|
1318
|
-
activeItemKey:
|
|
1319
|
-
children:
|
|
1320
|
-
className:
|
|
1321
|
-
flush:
|
|
1313
|
+
alwaysOpen: PropTypes.bool,
|
|
1314
|
+
activeItemKey: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
1315
|
+
children: PropTypes.node,
|
|
1316
|
+
className: PropTypes.string,
|
|
1317
|
+
flush: PropTypes.bool,
|
|
1322
1318
|
};
|
|
1323
1319
|
CAccordion.displayName = 'CAccordion';
|
|
1324
1320
|
|
|
@@ -1338,9 +1334,9 @@ var CAccordionItem = forwardRef(function (_a, ref) {
|
|
|
1338
1334
|
React__default.createElement(CAccordionItemContext.Provider, { value: { setVisible: setVisible, visible: visible } }, children)));
|
|
1339
1335
|
});
|
|
1340
1336
|
CAccordionItem.propTypes = {
|
|
1341
|
-
children:
|
|
1342
|
-
className:
|
|
1343
|
-
itemKey:
|
|
1337
|
+
children: PropTypes.node,
|
|
1338
|
+
className: PropTypes.string,
|
|
1339
|
+
itemKey: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
1344
1340
|
};
|
|
1345
1341
|
CAccordionItem.displayName = 'CAccordionItem';
|
|
1346
1342
|
|
|
@@ -1433,22 +1429,22 @@ var config = {
|
|
|
1433
1429
|
disabled: false
|
|
1434
1430
|
};
|
|
1435
1431
|
|
|
1436
|
-
var timeoutsShape = process.env.NODE_ENV !== 'production' ?
|
|
1437
|
-
enter:
|
|
1438
|
-
exit:
|
|
1439
|
-
appear:
|
|
1432
|
+
var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
1433
|
+
enter: PropTypes.number,
|
|
1434
|
+
exit: PropTypes.number,
|
|
1435
|
+
appear: PropTypes.number
|
|
1440
1436
|
}).isRequired]) : null;
|
|
1441
|
-
var classNamesShape = process.env.NODE_ENV !== 'production' ?
|
|
1442
|
-
enter:
|
|
1443
|
-
exit:
|
|
1444
|
-
active:
|
|
1445
|
-
}),
|
|
1446
|
-
enter:
|
|
1447
|
-
enterDone:
|
|
1448
|
-
enterActive:
|
|
1449
|
-
exit:
|
|
1450
|
-
exitDone:
|
|
1451
|
-
exitActive:
|
|
1437
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
1438
|
+
enter: PropTypes.string,
|
|
1439
|
+
exit: PropTypes.string,
|
|
1440
|
+
active: PropTypes.string
|
|
1441
|
+
}), PropTypes.shape({
|
|
1442
|
+
enter: PropTypes.string,
|
|
1443
|
+
enterDone: PropTypes.string,
|
|
1444
|
+
enterActive: PropTypes.string,
|
|
1445
|
+
exit: PropTypes.string,
|
|
1446
|
+
exitDone: PropTypes.string,
|
|
1447
|
+
exitActive: PropTypes.string
|
|
1452
1448
|
})]) : null;
|
|
1453
1449
|
|
|
1454
1450
|
var TransitionGroupContext = React__default.createContext(null);
|
|
@@ -1875,10 +1871,10 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1875
1871
|
* (see
|
|
1876
1872
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
1877
1873
|
*/
|
|
1878
|
-
nodeRef:
|
|
1879
|
-
current: typeof Element === 'undefined' ?
|
|
1874
|
+
nodeRef: PropTypes.shape({
|
|
1875
|
+
current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {
|
|
1880
1876
|
var value = propValue[key];
|
|
1881
|
-
return
|
|
1877
|
+
return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
|
|
1882
1878
|
}
|
|
1883
1879
|
}),
|
|
1884
1880
|
|
|
@@ -1896,12 +1892,12 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1896
1892
|
* </Transition>
|
|
1897
1893
|
* ```
|
|
1898
1894
|
*/
|
|
1899
|
-
children:
|
|
1895
|
+
children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
|
|
1900
1896
|
|
|
1901
1897
|
/**
|
|
1902
1898
|
* Show the component; triggers the enter or exit states
|
|
1903
1899
|
*/
|
|
1904
|
-
in:
|
|
1900
|
+
in: PropTypes.bool,
|
|
1905
1901
|
|
|
1906
1902
|
/**
|
|
1907
1903
|
* By default the child component is mounted immediately along with
|
|
@@ -1909,13 +1905,13 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1909
1905
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
1910
1906
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
1911
1907
|
*/
|
|
1912
|
-
mountOnEnter:
|
|
1908
|
+
mountOnEnter: PropTypes.bool,
|
|
1913
1909
|
|
|
1914
1910
|
/**
|
|
1915
1911
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
1916
1912
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
1917
1913
|
*/
|
|
1918
|
-
unmountOnExit:
|
|
1914
|
+
unmountOnExit: PropTypes.bool,
|
|
1919
1915
|
|
|
1920
1916
|
/**
|
|
1921
1917
|
* By default the child component does not perform the enter transition when
|
|
@@ -1928,17 +1924,17 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1928
1924
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
1929
1925
|
* > differently.
|
|
1930
1926
|
*/
|
|
1931
|
-
appear:
|
|
1927
|
+
appear: PropTypes.bool,
|
|
1932
1928
|
|
|
1933
1929
|
/**
|
|
1934
1930
|
* Enable or disable enter transitions.
|
|
1935
1931
|
*/
|
|
1936
|
-
enter:
|
|
1932
|
+
enter: PropTypes.bool,
|
|
1937
1933
|
|
|
1938
1934
|
/**
|
|
1939
1935
|
* Enable or disable exit transitions.
|
|
1940
1936
|
*/
|
|
1941
|
-
exit:
|
|
1937
|
+
exit: PropTypes.bool,
|
|
1942
1938
|
|
|
1943
1939
|
/**
|
|
1944
1940
|
* The duration of the transition, in milliseconds.
|
|
@@ -1991,7 +1987,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1991
1987
|
* }}
|
|
1992
1988
|
* ```
|
|
1993
1989
|
*/
|
|
1994
|
-
addEndListener:
|
|
1990
|
+
addEndListener: PropTypes.func,
|
|
1995
1991
|
|
|
1996
1992
|
/**
|
|
1997
1993
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
@@ -2001,7 +1997,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2001
1997
|
*
|
|
2002
1998
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
2003
1999
|
*/
|
|
2004
|
-
onEnter:
|
|
2000
|
+
onEnter: PropTypes.func,
|
|
2005
2001
|
|
|
2006
2002
|
/**
|
|
2007
2003
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
@@ -2011,7 +2007,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2011
2007
|
*
|
|
2012
2008
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2013
2009
|
*/
|
|
2014
|
-
onEntering:
|
|
2010
|
+
onEntering: PropTypes.func,
|
|
2015
2011
|
|
|
2016
2012
|
/**
|
|
2017
2013
|
* Callback fired after the "entered" 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
|
-
onEntered:
|
|
2020
|
+
onEntered: PropTypes.func,
|
|
2025
2021
|
|
|
2026
2022
|
/**
|
|
2027
2023
|
* Callback fired before the "exiting" status is applied.
|
|
@@ -2030,7 +2026,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2030
2026
|
*
|
|
2031
2027
|
* @type Function(node: HtmlElement) -> void
|
|
2032
2028
|
*/
|
|
2033
|
-
onExit:
|
|
2029
|
+
onExit: PropTypes.func,
|
|
2034
2030
|
|
|
2035
2031
|
/**
|
|
2036
2032
|
* Callback fired after the "exiting" status is applied.
|
|
@@ -2039,7 +2035,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2039
2035
|
*
|
|
2040
2036
|
* @type Function(node: HtmlElement) -> void
|
|
2041
2037
|
*/
|
|
2042
|
-
onExiting:
|
|
2038
|
+
onExiting: PropTypes.func,
|
|
2043
2039
|
|
|
2044
2040
|
/**
|
|
2045
2041
|
* Callback fired after the "exited" status is applied.
|
|
@@ -2048,7 +2044,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2048
2044
|
*
|
|
2049
2045
|
* @type Function(node: HtmlElement) -> void
|
|
2050
2046
|
*/
|
|
2051
|
-
onExited:
|
|
2047
|
+
onExited: PropTypes.func
|
|
2052
2048
|
} : {}; // Name the function so it is clearer in the documentation
|
|
2053
2049
|
|
|
2054
2050
|
function noop() {}
|
|
@@ -2423,7 +2419,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
|
|
|
2423
2419
|
*
|
|
2424
2420
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2425
2421
|
*/
|
|
2426
|
-
onEnter:
|
|
2422
|
+
onEnter: PropTypes.func,
|
|
2427
2423
|
|
|
2428
2424
|
/**
|
|
2429
2425
|
* A `<Transition>` callback fired immediately after the 'enter-active' or
|
|
@@ -2433,7 +2429,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
|
|
|
2433
2429
|
*
|
|
2434
2430
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2435
2431
|
*/
|
|
2436
|
-
onEntering:
|
|
2432
|
+
onEntering: PropTypes.func,
|
|
2437
2433
|
|
|
2438
2434
|
/**
|
|
2439
2435
|
* A `<Transition>` callback fired immediately after the 'enter' or
|
|
@@ -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
|
-
onEntered:
|
|
2442
|
+
onEntered: PropTypes.func,
|
|
2447
2443
|
|
|
2448
2444
|
/**
|
|
2449
2445
|
* A `<Transition>` callback fired immediately after the 'exit' class is
|
|
@@ -2453,7 +2449,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
|
|
|
2453
2449
|
*
|
|
2454
2450
|
* @type Function(node: HtmlElement)
|
|
2455
2451
|
*/
|
|
2456
|
-
onExit:
|
|
2452
|
+
onExit: PropTypes.func,
|
|
2457
2453
|
|
|
2458
2454
|
/**
|
|
2459
2455
|
* A `<Transition>` callback fired immediately after the 'exit-active' is applied.
|
|
@@ -2462,7 +2458,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
|
|
|
2462
2458
|
*
|
|
2463
2459
|
* @type Function(node: HtmlElement)
|
|
2464
2460
|
*/
|
|
2465
|
-
onExiting:
|
|
2461
|
+
onExiting: PropTypes.func,
|
|
2466
2462
|
|
|
2467
2463
|
/**
|
|
2468
2464
|
* A `<Transition>` callback fired immediately after the 'exit' classes
|
|
@@ -2472,11 +2468,12 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
|
|
|
2472
2468
|
*
|
|
2473
2469
|
* @type Function(node: HtmlElement)
|
|
2474
2470
|
*/
|
|
2475
|
-
onExited:
|
|
2471
|
+
onExited: PropTypes.func
|
|
2476
2472
|
}) : {};
|
|
2477
2473
|
var CSSTransition$1 = CSSTransition;
|
|
2478
2474
|
|
|
2479
2475
|
// code borrowed from https://github.com/reach/reach-ui
|
|
2476
|
+
// problem described https://github.com/facebook/react/issues/13029
|
|
2480
2477
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2481
2478
|
function useForkedRef() {
|
|
2482
2479
|
var refs = [];
|
|
@@ -2573,12 +2570,12 @@ var CCollapse = forwardRef(function (_a, ref) {
|
|
|
2573
2570
|
}));
|
|
2574
2571
|
});
|
|
2575
2572
|
CCollapse.propTypes = {
|
|
2576
|
-
children:
|
|
2577
|
-
className:
|
|
2578
|
-
horizontal:
|
|
2579
|
-
onHide:
|
|
2580
|
-
onShow:
|
|
2581
|
-
visible:
|
|
2573
|
+
children: PropTypes.node,
|
|
2574
|
+
className: PropTypes.string,
|
|
2575
|
+
horizontal: PropTypes.bool,
|
|
2576
|
+
onHide: PropTypes.func,
|
|
2577
|
+
onShow: PropTypes.func,
|
|
2578
|
+
visible: PropTypes.bool,
|
|
2582
2579
|
};
|
|
2583
2580
|
CCollapse.displayName = 'CCollapse';
|
|
2584
2581
|
|
|
@@ -2589,8 +2586,8 @@ var CAccordionBody = forwardRef(function (_a, ref) {
|
|
|
2589
2586
|
React__default.createElement("div", __assign({ className: classNames('accordion-body', className) }, rest, { ref: ref }), children)));
|
|
2590
2587
|
});
|
|
2591
2588
|
CAccordionBody.propTypes = {
|
|
2592
|
-
children:
|
|
2593
|
-
className:
|
|
2589
|
+
children: PropTypes.node,
|
|
2590
|
+
className: PropTypes.string,
|
|
2594
2591
|
};
|
|
2595
2592
|
CAccordionBody.displayName = 'CAccordionBody';
|
|
2596
2593
|
|
|
@@ -2600,8 +2597,8 @@ var CAccordionButton = forwardRef(function (_a, ref) {
|
|
|
2600
2597
|
return (React__default.createElement("button", __assign({ type: "button", className: classNames('accordion-button', { collapsed: !visible }, className), "aria-expanded": !visible, onClick: function () { return setVisible(!visible); } }, rest, { ref: ref }), children));
|
|
2601
2598
|
});
|
|
2602
2599
|
CAccordionButton.propTypes = {
|
|
2603
|
-
children:
|
|
2604
|
-
className:
|
|
2600
|
+
children: PropTypes.node,
|
|
2601
|
+
className: PropTypes.string,
|
|
2605
2602
|
};
|
|
2606
2603
|
CAccordionButton.displayName = 'CAccordionButton';
|
|
2607
2604
|
|
|
@@ -2611,8 +2608,8 @@ var CAccordionHeader = forwardRef(function (_a, ref) {
|
|
|
2611
2608
|
React__default.createElement(CAccordionButton, null, children)));
|
|
2612
2609
|
});
|
|
2613
2610
|
CAccordionHeader.propTypes = {
|
|
2614
|
-
children:
|
|
2615
|
-
className:
|
|
2611
|
+
children: PropTypes.node,
|
|
2612
|
+
className: PropTypes.string,
|
|
2616
2613
|
};
|
|
2617
2614
|
CAccordionHeader.displayName = 'CAccordionHeader';
|
|
2618
2615
|
|
|
@@ -2623,14 +2620,14 @@ var CCloseButton = forwardRef(function (_a, ref) {
|
|
|
2623
2620
|
}, disabled, className), "aria-label": "Close", disabled: disabled }, rest, { ref: ref })));
|
|
2624
2621
|
});
|
|
2625
2622
|
CCloseButton.propTypes = {
|
|
2626
|
-
className:
|
|
2627
|
-
disabled:
|
|
2628
|
-
white:
|
|
2623
|
+
className: PropTypes.string,
|
|
2624
|
+
disabled: PropTypes.bool,
|
|
2625
|
+
white: PropTypes.bool,
|
|
2629
2626
|
};
|
|
2630
2627
|
CCloseButton.displayName = 'CCloseButton';
|
|
2631
2628
|
|
|
2632
|
-
var colorPropType =
|
|
2633
|
-
|
|
2629
|
+
var colorPropType = PropTypes.oneOfType([
|
|
2630
|
+
PropTypes.oneOf([
|
|
2634
2631
|
'primary',
|
|
2635
2632
|
'secondary',
|
|
2636
2633
|
'success',
|
|
@@ -2640,9 +2637,9 @@ var colorPropType = propTypesExports.oneOfType([
|
|
|
2640
2637
|
'dark',
|
|
2641
2638
|
'light',
|
|
2642
2639
|
]),
|
|
2643
|
-
|
|
2640
|
+
PropTypes.string,
|
|
2644
2641
|
]);
|
|
2645
|
-
var placementPropType =
|
|
2642
|
+
var placementPropType = PropTypes.oneOf([
|
|
2646
2643
|
'auto',
|
|
2647
2644
|
'auto-start',
|
|
2648
2645
|
'auto-end',
|
|
@@ -2659,8 +2656,8 @@ var placementPropType = propTypesExports.oneOf([
|
|
|
2659
2656
|
'left',
|
|
2660
2657
|
'left-end',
|
|
2661
2658
|
]);
|
|
2662
|
-
var shapePropType =
|
|
2663
|
-
|
|
2659
|
+
var shapePropType = PropTypes.oneOfType([
|
|
2660
|
+
PropTypes.oneOf([
|
|
2664
2661
|
'rounded',
|
|
2665
2662
|
'rounded-top',
|
|
2666
2663
|
'rounded-end',
|
|
@@ -2673,14 +2670,14 @@ var shapePropType = propTypesExports.oneOfType([
|
|
|
2673
2670
|
'rounded-2',
|
|
2674
2671
|
'rounded-3',
|
|
2675
2672
|
]),
|
|
2676
|
-
|
|
2673
|
+
PropTypes.string,
|
|
2677
2674
|
]);
|
|
2678
|
-
var textColorsPropType =
|
|
2675
|
+
var textColorsPropType = PropTypes.oneOfType([
|
|
2679
2676
|
colorPropType,
|
|
2680
|
-
|
|
2681
|
-
|
|
2677
|
+
PropTypes.oneOf(['white', 'muted']),
|
|
2678
|
+
PropTypes.string,
|
|
2682
2679
|
]);
|
|
2683
|
-
var triggerPropType =
|
|
2680
|
+
var triggerPropType = PropTypes.oneOf(['hover', 'focus', 'click']);
|
|
2684
2681
|
|
|
2685
2682
|
var CAlert = forwardRef(function (_a, ref) {
|
|
2686
2683
|
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"]);
|
|
@@ -2698,13 +2695,13 @@ var CAlert = forwardRef(function (_a, ref) {
|
|
|
2698
2695
|
dismissible && React__default.createElement(CCloseButton, { onClick: function () { return setVisible(false); } }))); }));
|
|
2699
2696
|
});
|
|
2700
2697
|
CAlert.propTypes = {
|
|
2701
|
-
children:
|
|
2702
|
-
className:
|
|
2698
|
+
children: PropTypes.node,
|
|
2699
|
+
className: PropTypes.string,
|
|
2703
2700
|
color: colorPropType.isRequired,
|
|
2704
|
-
dismissible:
|
|
2705
|
-
onClose:
|
|
2706
|
-
variant:
|
|
2707
|
-
visible:
|
|
2701
|
+
dismissible: PropTypes.bool,
|
|
2702
|
+
onClose: PropTypes.func,
|
|
2703
|
+
variant: PropTypes.string,
|
|
2704
|
+
visible: PropTypes.bool,
|
|
2708
2705
|
};
|
|
2709
2706
|
CAlert.displayName = 'CAlert';
|
|
2710
2707
|
|
|
@@ -2713,9 +2710,9 @@ var CAlertHeading = forwardRef(function (_a, ref) {
|
|
|
2713
2710
|
return (React__default.createElement(Component, __assign({ className: classNames('alert-heading', className) }, rest, { ref: ref }), children));
|
|
2714
2711
|
});
|
|
2715
2712
|
CAlertHeading.propTypes = {
|
|
2716
|
-
children:
|
|
2717
|
-
className:
|
|
2718
|
-
component:
|
|
2713
|
+
children: PropTypes.node,
|
|
2714
|
+
className: PropTypes.string,
|
|
2715
|
+
component: PropTypes.elementType,
|
|
2719
2716
|
};
|
|
2720
2717
|
CAlertHeading.displayName = 'CAlertHeading';
|
|
2721
2718
|
|
|
@@ -2733,11 +2730,11 @@ var CLink = forwardRef(function (_a, ref) {
|
|
|
2733
2730
|
}), { disabled: disabled }, rest, { ref: ref }), children));
|
|
2734
2731
|
});
|
|
2735
2732
|
CLink.propTypes = {
|
|
2736
|
-
active:
|
|
2737
|
-
children:
|
|
2738
|
-
className:
|
|
2739
|
-
component:
|
|
2740
|
-
disabled:
|
|
2733
|
+
active: PropTypes.bool,
|
|
2734
|
+
children: PropTypes.node,
|
|
2735
|
+
className: PropTypes.string,
|
|
2736
|
+
component: PropTypes.elementType,
|
|
2737
|
+
disabled: PropTypes.bool,
|
|
2741
2738
|
};
|
|
2742
2739
|
CLink.displayName = 'CLink';
|
|
2743
2740
|
|
|
@@ -2746,8 +2743,8 @@ var CAlertLink = forwardRef(function (_a, ref) {
|
|
|
2746
2743
|
return (React__default.createElement(CLink, __assign({ className: classNames('alert-link', className) }, rest, { ref: ref }), children));
|
|
2747
2744
|
});
|
|
2748
2745
|
CAlertLink.propTypes = {
|
|
2749
|
-
children:
|
|
2750
|
-
className:
|
|
2746
|
+
children: PropTypes.node,
|
|
2747
|
+
className: PropTypes.string,
|
|
2751
2748
|
};
|
|
2752
2749
|
CAlertLink.displayName = 'CAlertLink';
|
|
2753
2750
|
|
|
@@ -2764,13 +2761,13 @@ var CAvatar = forwardRef(function (_a, ref) {
|
|
|
2764
2761
|
status && React__default.createElement("span", { className: statusClassName })));
|
|
2765
2762
|
});
|
|
2766
2763
|
CAvatar.propTypes = {
|
|
2767
|
-
children:
|
|
2768
|
-
className:
|
|
2764
|
+
children: PropTypes.node,
|
|
2765
|
+
className: PropTypes.string,
|
|
2769
2766
|
color: colorPropType,
|
|
2770
2767
|
shape: shapePropType,
|
|
2771
|
-
size:
|
|
2772
|
-
src:
|
|
2773
|
-
status:
|
|
2768
|
+
size: PropTypes.string,
|
|
2769
|
+
src: PropTypes.string,
|
|
2770
|
+
status: PropTypes.string,
|
|
2774
2771
|
textColor: textColorsPropType,
|
|
2775
2772
|
};
|
|
2776
2773
|
CAvatar.displayName = 'CAvatar';
|
|
@@ -2784,8 +2781,8 @@ var CBackdrop = forwardRef(function (_a, ref) {
|
|
|
2784
2781
|
}) }, rest, { ref: forkedRef }))); }));
|
|
2785
2782
|
});
|
|
2786
2783
|
CBackdrop.propTypes = {
|
|
2787
|
-
className:
|
|
2788
|
-
visible:
|
|
2784
|
+
className: PropTypes.string,
|
|
2785
|
+
visible: PropTypes.bool,
|
|
2789
2786
|
};
|
|
2790
2787
|
CBackdrop.displayName = 'CBackdrop';
|
|
2791
2788
|
|
|
@@ -2804,13 +2801,13 @@ var CBadge = forwardRef(function (_a, ref) {
|
|
|
2804
2801
|
_b), shape, className) }, rest, { ref: ref }), children));
|
|
2805
2802
|
});
|
|
2806
2803
|
CBadge.propTypes = {
|
|
2807
|
-
children:
|
|
2808
|
-
className:
|
|
2804
|
+
children: PropTypes.node,
|
|
2805
|
+
className: PropTypes.string,
|
|
2809
2806
|
color: colorPropType,
|
|
2810
|
-
component:
|
|
2811
|
-
position:
|
|
2807
|
+
component: PropTypes.string,
|
|
2808
|
+
position: PropTypes.oneOf(['top-start', 'top-end', 'bottom-end', 'bottom-start']),
|
|
2812
2809
|
shape: shapePropType,
|
|
2813
|
-
size:
|
|
2810
|
+
size: PropTypes.oneOf(['sm']),
|
|
2814
2811
|
textColor: textColorsPropType,
|
|
2815
2812
|
};
|
|
2816
2813
|
CBadge.displayName = 'CBadge';
|
|
@@ -2821,8 +2818,8 @@ var CBreadcrumb = forwardRef(function (_a, ref) {
|
|
|
2821
2818
|
React__default.createElement("ol", __assign({ className: classNames('breadcrumb', className) }, rest, { ref: ref }), children)));
|
|
2822
2819
|
});
|
|
2823
2820
|
CBreadcrumb.propTypes = {
|
|
2824
|
-
children:
|
|
2825
|
-
className:
|
|
2821
|
+
children: PropTypes.node,
|
|
2822
|
+
className: PropTypes.string,
|
|
2826
2823
|
};
|
|
2827
2824
|
CBreadcrumb.displayName = 'CBreadcrumb';
|
|
2828
2825
|
|
|
@@ -2833,10 +2830,10 @@ var CBreadcrumbItem = forwardRef(function (_a, ref) {
|
|
|
2833
2830
|
}, className) }, (active && { 'aria-current': 'page' }), rest, { ref: ref }), href ? React__default.createElement(CLink, { href: href }, children) : children));
|
|
2834
2831
|
});
|
|
2835
2832
|
CBreadcrumbItem.propTypes = {
|
|
2836
|
-
active:
|
|
2837
|
-
children:
|
|
2838
|
-
className:
|
|
2839
|
-
href:
|
|
2833
|
+
active: PropTypes.bool,
|
|
2834
|
+
children: PropTypes.node,
|
|
2835
|
+
className: PropTypes.string,
|
|
2836
|
+
href: PropTypes.string,
|
|
2840
2837
|
};
|
|
2841
2838
|
CBreadcrumbItem.displayName = 'CBreadcrumbItem';
|
|
2842
2839
|
|
|
@@ -2846,14 +2843,14 @@ var CButton = forwardRef(function (_a, ref) {
|
|
|
2846
2843
|
return (React__default.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));
|
|
2847
2844
|
});
|
|
2848
2845
|
CButton.propTypes = {
|
|
2849
|
-
children:
|
|
2850
|
-
className:
|
|
2846
|
+
children: PropTypes.node,
|
|
2847
|
+
className: PropTypes.string,
|
|
2851
2848
|
color: colorPropType,
|
|
2852
|
-
component:
|
|
2853
|
-
shape:
|
|
2854
|
-
size:
|
|
2855
|
-
type:
|
|
2856
|
-
variant:
|
|
2849
|
+
component: PropTypes.elementType,
|
|
2850
|
+
shape: PropTypes.string,
|
|
2851
|
+
size: PropTypes.oneOf(['sm', 'lg']),
|
|
2852
|
+
type: PropTypes.oneOf(['button', 'submit', 'reset']),
|
|
2853
|
+
variant: PropTypes.oneOf(['outline', 'ghost']),
|
|
2857
2854
|
};
|
|
2858
2855
|
CButton.displayName = 'CButton';
|
|
2859
2856
|
|
|
@@ -2862,8 +2859,8 @@ var CButtonToolbar = forwardRef(function (_a, ref) {
|
|
|
2862
2859
|
return (React__default.createElement("div", __assign({ className: classNames('btn-toolbar', className) }, rest, { ref: ref }), children));
|
|
2863
2860
|
});
|
|
2864
2861
|
CButtonToolbar.propTypes = {
|
|
2865
|
-
children:
|
|
2866
|
-
className:
|
|
2862
|
+
children: PropTypes.node,
|
|
2863
|
+
className: PropTypes.string,
|
|
2867
2864
|
};
|
|
2868
2865
|
CButtonToolbar.displayName = 'CButtonToolbar';
|
|
2869
2866
|
|
|
@@ -2873,10 +2870,10 @@ var CButtonGroup = forwardRef(function (_a, ref) {
|
|
|
2873
2870
|
return (React__default.createElement("div", __assign({ className: classNames(vertical ? 'btn-group-vertical' : 'btn-group', (_b = {}, _b["btn-group-".concat(size)] = size, _b), className) }, rest, { ref: ref }), children));
|
|
2874
2871
|
});
|
|
2875
2872
|
CButtonGroup.propTypes = {
|
|
2876
|
-
children:
|
|
2877
|
-
className:
|
|
2878
|
-
size:
|
|
2879
|
-
vertical:
|
|
2873
|
+
children: PropTypes.node,
|
|
2874
|
+
className: PropTypes.string,
|
|
2875
|
+
size: PropTypes.oneOf(['sm', 'lg']),
|
|
2876
|
+
vertical: PropTypes.bool,
|
|
2880
2877
|
};
|
|
2881
2878
|
CButtonGroup.displayName = 'CButtonGroup';
|
|
2882
2879
|
|
|
@@ -2888,8 +2885,8 @@ var CCallout = forwardRef(function (_a, ref) {
|
|
|
2888
2885
|
_b), className) }, rest, { ref: ref }), children));
|
|
2889
2886
|
});
|
|
2890
2887
|
CCallout.propTypes = {
|
|
2891
|
-
children:
|
|
2892
|
-
className:
|
|
2888
|
+
children: PropTypes.node,
|
|
2889
|
+
className: PropTypes.string,
|
|
2893
2890
|
color: colorPropType,
|
|
2894
2891
|
};
|
|
2895
2892
|
CCallout.displayName = 'CCallout';
|
|
@@ -2903,10 +2900,10 @@ var CCard = forwardRef(function (_a, ref) {
|
|
|
2903
2900
|
_b), className) }, rest, { ref: ref }), children));
|
|
2904
2901
|
});
|
|
2905
2902
|
CCard.propTypes = {
|
|
2906
|
-
children:
|
|
2907
|
-
className:
|
|
2903
|
+
children: PropTypes.node,
|
|
2904
|
+
className: PropTypes.string,
|
|
2908
2905
|
color: colorPropType,
|
|
2909
|
-
textColor:
|
|
2906
|
+
textColor: PropTypes.string,
|
|
2910
2907
|
};
|
|
2911
2908
|
CCard.displayName = 'CCard';
|
|
2912
2909
|
|
|
@@ -2915,8 +2912,8 @@ var CCardBody = forwardRef(function (_a, ref) {
|
|
|
2915
2912
|
return (React__default.createElement("div", __assign({ className: classNames('card-body', className) }, rest, { ref: ref }), children));
|
|
2916
2913
|
});
|
|
2917
2914
|
CCardBody.propTypes = {
|
|
2918
|
-
children:
|
|
2919
|
-
className:
|
|
2915
|
+
children: PropTypes.node,
|
|
2916
|
+
className: PropTypes.string,
|
|
2920
2917
|
};
|
|
2921
2918
|
CCardBody.displayName = 'CCardBody';
|
|
2922
2919
|
|
|
@@ -2925,8 +2922,8 @@ var CCardFooter = forwardRef(function (_a, ref) {
|
|
|
2925
2922
|
return (React__default.createElement("div", __assign({ className: classNames('card-footer', className) }, rest, { ref: ref }), children));
|
|
2926
2923
|
});
|
|
2927
2924
|
CCardFooter.propTypes = {
|
|
2928
|
-
children:
|
|
2929
|
-
className:
|
|
2925
|
+
children: PropTypes.node,
|
|
2926
|
+
className: PropTypes.string,
|
|
2930
2927
|
};
|
|
2931
2928
|
CCardFooter.displayName = 'CCardFooter';
|
|
2932
2929
|
|
|
@@ -2935,8 +2932,8 @@ var CCardGroup = forwardRef(function (_a, ref) {
|
|
|
2935
2932
|
return (React__default.createElement("div", __assign({ className: classNames('card-group', className) }, rest, { ref: ref }), children));
|
|
2936
2933
|
});
|
|
2937
2934
|
CCardGroup.propTypes = {
|
|
2938
|
-
children:
|
|
2939
|
-
className:
|
|
2935
|
+
children: PropTypes.node,
|
|
2936
|
+
className: PropTypes.string,
|
|
2940
2937
|
};
|
|
2941
2938
|
CCardGroup.displayName = 'CCardGroup';
|
|
2942
2939
|
|
|
@@ -2945,9 +2942,9 @@ var CCardHeader = forwardRef(function (_a, ref) {
|
|
|
2945
2942
|
return (React__default.createElement(Component, __assign({ className: classNames('card-header', className) }, rest, { ref: ref }), children));
|
|
2946
2943
|
});
|
|
2947
2944
|
CCardHeader.propTypes = {
|
|
2948
|
-
children:
|
|
2949
|
-
className:
|
|
2950
|
-
component:
|
|
2945
|
+
children: PropTypes.node,
|
|
2946
|
+
className: PropTypes.string,
|
|
2947
|
+
component: PropTypes.elementType,
|
|
2951
2948
|
};
|
|
2952
2949
|
CCardHeader.displayName = 'CCardHeader';
|
|
2953
2950
|
|
|
@@ -2956,10 +2953,10 @@ var CCardImage = forwardRef(function (_a, ref) {
|
|
|
2956
2953
|
return (React__default.createElement(Component, __assign({ className: classNames(orientation ? "card-img-".concat(orientation) : 'card-img', className) }, rest, { ref: ref }), children));
|
|
2957
2954
|
});
|
|
2958
2955
|
CCardImage.propTypes = {
|
|
2959
|
-
children:
|
|
2960
|
-
className:
|
|
2961
|
-
component:
|
|
2962
|
-
orientation:
|
|
2956
|
+
children: PropTypes.node,
|
|
2957
|
+
className: PropTypes.string,
|
|
2958
|
+
component: PropTypes.elementType,
|
|
2959
|
+
orientation: PropTypes.oneOf(['top', 'bottom']),
|
|
2963
2960
|
};
|
|
2964
2961
|
CCardImage.displayName = 'CCardImage';
|
|
2965
2962
|
|
|
@@ -2968,8 +2965,8 @@ var CCardImageOverlay = forwardRef(function (_a, ref) {
|
|
|
2968
2965
|
return (React__default.createElement("div", __assign({ className: classNames('card-img-overlay', className) }, rest, { ref: ref }), children));
|
|
2969
2966
|
});
|
|
2970
2967
|
CCardImageOverlay.propTypes = {
|
|
2971
|
-
children:
|
|
2972
|
-
className:
|
|
2968
|
+
children: PropTypes.node,
|
|
2969
|
+
className: PropTypes.string,
|
|
2973
2970
|
};
|
|
2974
2971
|
CCardImageOverlay.displayName = 'CCardImageOverlay';
|
|
2975
2972
|
|
|
@@ -2978,8 +2975,8 @@ var CCardLink = forwardRef(function (_a, ref) {
|
|
|
2978
2975
|
return (React__default.createElement(CLink, __assign({ className: classNames('card-link', className) }, rest, { ref: ref }), children));
|
|
2979
2976
|
});
|
|
2980
2977
|
CCardLink.propTypes = {
|
|
2981
|
-
children:
|
|
2982
|
-
className:
|
|
2978
|
+
children: PropTypes.node,
|
|
2979
|
+
className: PropTypes.string,
|
|
2983
2980
|
};
|
|
2984
2981
|
CCardLink.displayName = 'CCardLink';
|
|
2985
2982
|
|
|
@@ -2988,9 +2985,9 @@ var CCardSubtitle = forwardRef(function (_a, ref) {
|
|
|
2988
2985
|
return (React__default.createElement(Component, __assign({ className: classNames('card-subtitle', className) }, rest, { ref: ref }), children));
|
|
2989
2986
|
});
|
|
2990
2987
|
CCardSubtitle.propTypes = {
|
|
2991
|
-
children:
|
|
2992
|
-
className:
|
|
2993
|
-
component:
|
|
2988
|
+
children: PropTypes.node,
|
|
2989
|
+
className: PropTypes.string,
|
|
2990
|
+
component: PropTypes.elementType,
|
|
2994
2991
|
};
|
|
2995
2992
|
CCardSubtitle.displayName = 'CCardSubtitle';
|
|
2996
2993
|
|
|
@@ -2999,9 +2996,9 @@ var CCardText = forwardRef(function (_a, ref) {
|
|
|
2999
2996
|
return (React__default.createElement(Component, __assign({ className: classNames('card-text', className) }, rest, { ref: ref }), children));
|
|
3000
2997
|
});
|
|
3001
2998
|
CCardText.propTypes = {
|
|
3002
|
-
children:
|
|
3003
|
-
className:
|
|
3004
|
-
component:
|
|
2999
|
+
children: PropTypes.node,
|
|
3000
|
+
className: PropTypes.string,
|
|
3001
|
+
component: PropTypes.elementType,
|
|
3005
3002
|
};
|
|
3006
3003
|
CCardText.displayName = 'CCardText';
|
|
3007
3004
|
|
|
@@ -3010,9 +3007,9 @@ var CCardTitle = forwardRef(function (_a, ref) {
|
|
|
3010
3007
|
return (React__default.createElement(Component, __assign({ className: classNames('card-title', className) }, rest, { ref: ref }), children));
|
|
3011
3008
|
});
|
|
3012
3009
|
CCardTitle.propTypes = {
|
|
3013
|
-
children:
|
|
3014
|
-
className:
|
|
3015
|
-
component:
|
|
3010
|
+
children: PropTypes.node,
|
|
3011
|
+
className: PropTypes.string,
|
|
3012
|
+
component: PropTypes.elementType,
|
|
3016
3013
|
};
|
|
3017
3014
|
CCardTitle.displayName = 'CCardTitle';
|
|
3018
3015
|
|
|
@@ -3024,6 +3021,16 @@ var isInViewport = function (element) {
|
|
|
3024
3021
|
Math.floor(rect.right) <= (window.innerWidth || document.documentElement.clientWidth));
|
|
3025
3022
|
};
|
|
3026
3023
|
|
|
3024
|
+
var isRTL = function (element) {
|
|
3025
|
+
if (document.documentElement.dir === 'rtl') {
|
|
3026
|
+
return true;
|
|
3027
|
+
}
|
|
3028
|
+
if (element) {
|
|
3029
|
+
return element.closest('[dir="rtl"]') !== null;
|
|
3030
|
+
}
|
|
3031
|
+
return false;
|
|
3032
|
+
};
|
|
3033
|
+
|
|
3027
3034
|
var CCarouselContext = createContext({});
|
|
3028
3035
|
var CCarousel = forwardRef(function (_a, ref) {
|
|
3029
3036
|
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"]);
|
|
@@ -3157,19 +3164,19 @@ var CCarousel = forwardRef(function (_a, ref) {
|
|
|
3157
3164
|
React__default.createElement("span", { className: "carousel-control-next-icon", "aria-label": "next" })))))));
|
|
3158
3165
|
});
|
|
3159
3166
|
CCarousel.propTypes = {
|
|
3160
|
-
activeIndex:
|
|
3161
|
-
children:
|
|
3162
|
-
className:
|
|
3163
|
-
controls:
|
|
3164
|
-
dark:
|
|
3165
|
-
indicators:
|
|
3166
|
-
interval:
|
|
3167
|
-
onSlid:
|
|
3168
|
-
onSlide:
|
|
3169
|
-
pause:
|
|
3170
|
-
touch:
|
|
3171
|
-
transition:
|
|
3172
|
-
wrap:
|
|
3167
|
+
activeIndex: PropTypes.number,
|
|
3168
|
+
children: PropTypes.node,
|
|
3169
|
+
className: PropTypes.string,
|
|
3170
|
+
controls: PropTypes.bool,
|
|
3171
|
+
dark: PropTypes.bool,
|
|
3172
|
+
indicators: PropTypes.bool,
|
|
3173
|
+
interval: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),
|
|
3174
|
+
onSlid: PropTypes.func,
|
|
3175
|
+
onSlide: PropTypes.func,
|
|
3176
|
+
pause: PropTypes.oneOf([false, 'hover']),
|
|
3177
|
+
touch: PropTypes.bool,
|
|
3178
|
+
transition: PropTypes.oneOf(['slide', 'crossfade']),
|
|
3179
|
+
wrap: PropTypes.bool,
|
|
3173
3180
|
};
|
|
3174
3181
|
CCarousel.displayName = 'CCarousel';
|
|
3175
3182
|
|
|
@@ -3178,7 +3185,7 @@ var CCarouselCaption = forwardRef(function (_a, ref) {
|
|
|
3178
3185
|
return React__default.createElement("div", __assign({ className: classNames('carousel-caption', className) }, rest, { ref: ref }));
|
|
3179
3186
|
});
|
|
3180
3187
|
CCarouselCaption.propTypes = {
|
|
3181
|
-
className:
|
|
3188
|
+
className: PropTypes.string,
|
|
3182
3189
|
};
|
|
3183
3190
|
CCarouselCaption.displayName = 'CCarouselCaption';
|
|
3184
3191
|
|
|
@@ -3253,11 +3260,11 @@ var CCarouselItem = forwardRef(function (_a, ref) {
|
|
|
3253
3260
|
return (React__default.createElement("div", __assign({ className: classNames('carousel-item', activeClassName, directionClassName, orderClassName, className), ref: forkedRef }, rest), children));
|
|
3254
3261
|
});
|
|
3255
3262
|
CCarouselItem.propTypes = {
|
|
3256
|
-
active:
|
|
3257
|
-
children:
|
|
3258
|
-
className:
|
|
3259
|
-
direction:
|
|
3260
|
-
interval:
|
|
3263
|
+
active: PropTypes.bool,
|
|
3264
|
+
children: PropTypes.node,
|
|
3265
|
+
className: PropTypes.string,
|
|
3266
|
+
direction: PropTypes.string,
|
|
3267
|
+
interval: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),
|
|
3261
3268
|
};
|
|
3262
3269
|
CCarouselItem.displayName = 'CCarouselItem';
|
|
3263
3270
|
|
|
@@ -3266,8 +3273,8 @@ var CConditionalPortal = function (_a) {
|
|
|
3266
3273
|
return typeof window !== 'undefined' && portal ? (createPortal(children, document.body)) : (React__default.createElement(React__default.Fragment, null, children));
|
|
3267
3274
|
};
|
|
3268
3275
|
CConditionalPortal.propTypes = {
|
|
3269
|
-
children:
|
|
3270
|
-
portal:
|
|
3276
|
+
children: PropTypes.node,
|
|
3277
|
+
portal: PropTypes.bool.isRequired,
|
|
3271
3278
|
};
|
|
3272
3279
|
CConditionalPortal.displayName = 'CConditionalPortal';
|
|
3273
3280
|
|
|
@@ -3513,7 +3520,7 @@ var round = Math.round;
|
|
|
3513
3520
|
function getUAString() {
|
|
3514
3521
|
var uaData = navigator.userAgentData;
|
|
3515
3522
|
|
|
3516
|
-
if (uaData != null && uaData.brands) {
|
|
3523
|
+
if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
|
|
3517
3524
|
return uaData.brands.map(function (item) {
|
|
3518
3525
|
return item.brand + "/" + item.version;
|
|
3519
3526
|
}).join(' ');
|
|
@@ -3841,10 +3848,9 @@ var unsetSides = {
|
|
|
3841
3848
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
3842
3849
|
// cleanly divide the values into the appropriate subpixels.
|
|
3843
3850
|
|
|
3844
|
-
function roundOffsetsByDPR(_ref) {
|
|
3851
|
+
function roundOffsetsByDPR(_ref, win) {
|
|
3845
3852
|
var x = _ref.x,
|
|
3846
3853
|
y = _ref.y;
|
|
3847
|
-
var win = window;
|
|
3848
3854
|
var dpr = win.devicePixelRatio || 1;
|
|
3849
3855
|
return {
|
|
3850
3856
|
x: round(x * dpr) / dpr || 0,
|
|
@@ -3927,7 +3933,7 @@ function mapToStyles(_ref2) {
|
|
|
3927
3933
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
3928
3934
|
x: x,
|
|
3929
3935
|
y: y
|
|
3930
|
-
}) : {
|
|
3936
|
+
}, getWindow(popper)) : {
|
|
3931
3937
|
x: x,
|
|
3932
3938
|
y: y
|
|
3933
3939
|
};
|
|
@@ -5464,6 +5470,8 @@ var reactFastCompare = function isEqual(a, b) {
|
|
|
5464
5470
|
}
|
|
5465
5471
|
};
|
|
5466
5472
|
|
|
5473
|
+
var isEqual = /*@__PURE__*/getDefaultExportFromCjs(reactFastCompare);
|
|
5474
|
+
|
|
5467
5475
|
var EMPTY_MODIFIERS$1 = [];
|
|
5468
5476
|
var usePopper = function usePopper(referenceElement, popperElement, options) {
|
|
5469
5477
|
if (options === void 0) {
|
|
@@ -5527,7 +5535,7 @@ var usePopper = function usePopper(referenceElement, popperElement, options) {
|
|
|
5527
5535
|
}])
|
|
5528
5536
|
};
|
|
5529
5537
|
|
|
5530
|
-
if (
|
|
5538
|
+
if (isEqual(prevOptions.current, newOptions)) {
|
|
5531
5539
|
return prevOptions.current || newOptions;
|
|
5532
5540
|
} else {
|
|
5533
5541
|
prevOptions.current = newOptions;
|
|
@@ -5695,6 +5703,8 @@ if (__DEV__) {
|
|
|
5695
5703
|
|
|
5696
5704
|
var warning_1 = warning;
|
|
5697
5705
|
|
|
5706
|
+
var warning$1 = /*@__PURE__*/getDefaultExportFromCjs(warning_1);
|
|
5707
|
+
|
|
5698
5708
|
function Reference(_ref) {
|
|
5699
5709
|
var children = _ref.children,
|
|
5700
5710
|
innerRef = _ref.innerRef;
|
|
@@ -5711,7 +5721,7 @@ function Reference(_ref) {
|
|
|
5711
5721
|
};
|
|
5712
5722
|
}, []);
|
|
5713
5723
|
React.useEffect(function () {
|
|
5714
|
-
|
|
5724
|
+
warning$1(Boolean(setReferenceNode), '`Reference` should not be used outside of a `Manager` component.');
|
|
5715
5725
|
}, [setReferenceNode]);
|
|
5716
5726
|
return unwrapArray(children)({
|
|
5717
5727
|
ref: refHandler
|
|
@@ -5764,34 +5774,34 @@ var CDropdown = forwardRef(function (_a, ref) {
|
|
|
5764
5774
|
_b.show = _visible,
|
|
5765
5775
|
_b), className) }, rest, { ref: forkedRef }), children)))));
|
|
5766
5776
|
});
|
|
5767
|
-
var alignmentDirection =
|
|
5777
|
+
var alignmentDirection = PropTypes.oneOf(['start', 'end']);
|
|
5768
5778
|
CDropdown.propTypes = {
|
|
5769
5779
|
// @ts-expect-error TODO: we have to find a solution
|
|
5770
|
-
alignment:
|
|
5780
|
+
alignment: PropTypes.oneOfType([
|
|
5771
5781
|
alignmentDirection,
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5782
|
+
PropTypes.shape({ xs: alignmentDirection }),
|
|
5783
|
+
PropTypes.shape({ sm: alignmentDirection }),
|
|
5784
|
+
PropTypes.shape({ md: alignmentDirection }),
|
|
5785
|
+
PropTypes.shape({ lg: alignmentDirection }),
|
|
5786
|
+
PropTypes.shape({ xl: alignmentDirection }),
|
|
5787
|
+
PropTypes.shape({ xxl: alignmentDirection }),
|
|
5778
5788
|
]),
|
|
5779
|
-
autoClose:
|
|
5780
|
-
|
|
5781
|
-
|
|
5789
|
+
autoClose: PropTypes.oneOfType([
|
|
5790
|
+
PropTypes.bool,
|
|
5791
|
+
PropTypes.oneOf(['inside', 'outside']),
|
|
5782
5792
|
]),
|
|
5783
|
-
children:
|
|
5784
|
-
className:
|
|
5785
|
-
component:
|
|
5786
|
-
dark:
|
|
5787
|
-
direction:
|
|
5788
|
-
onHide:
|
|
5789
|
-
onShow:
|
|
5793
|
+
children: PropTypes.node,
|
|
5794
|
+
className: PropTypes.string,
|
|
5795
|
+
component: PropTypes.elementType,
|
|
5796
|
+
dark: PropTypes.bool,
|
|
5797
|
+
direction: PropTypes.oneOf(['center', 'dropup', 'dropup-center', 'dropend', 'dropstart']),
|
|
5798
|
+
onHide: PropTypes.func,
|
|
5799
|
+
onShow: PropTypes.func,
|
|
5790
5800
|
placement: placementPropType,
|
|
5791
|
-
popper:
|
|
5792
|
-
portal:
|
|
5793
|
-
variant:
|
|
5794
|
-
visible:
|
|
5801
|
+
popper: PropTypes.bool,
|
|
5802
|
+
portal: PropTypes.bool,
|
|
5803
|
+
variant: PropTypes.oneOf(['btn-group', 'dropdown', 'input-group', 'nav-item']),
|
|
5804
|
+
visible: PropTypes.bool,
|
|
5795
5805
|
};
|
|
5796
5806
|
CDropdown.displayName = 'CDropdown';
|
|
5797
5807
|
|
|
@@ -5800,7 +5810,7 @@ var CDropdownDivider = forwardRef(function (_a, ref) {
|
|
|
5800
5810
|
return React__default.createElement("hr", __assign({ className: classNames('dropdown-divider', className) }, rest, { ref: ref }));
|
|
5801
5811
|
});
|
|
5802
5812
|
CDropdownDivider.propTypes = {
|
|
5803
|
-
className:
|
|
5813
|
+
className: PropTypes.string,
|
|
5804
5814
|
};
|
|
5805
5815
|
CDropdownDivider.displayName = 'CDropdownDivider';
|
|
5806
5816
|
|
|
@@ -5809,9 +5819,9 @@ var CDropdownHeader = forwardRef(function (_a, ref) {
|
|
|
5809
5819
|
return (React__default.createElement(Component, __assign({ className: classNames('dropdown-header', className) }, rest, { ref: ref }), children));
|
|
5810
5820
|
});
|
|
5811
5821
|
CDropdownHeader.propTypes = {
|
|
5812
|
-
children:
|
|
5813
|
-
className:
|
|
5814
|
-
component:
|
|
5822
|
+
children: PropTypes.node,
|
|
5823
|
+
className: PropTypes.string,
|
|
5824
|
+
component: PropTypes.elementType,
|
|
5815
5825
|
};
|
|
5816
5826
|
CDropdownHeader.displayName = 'CDropdownHeader';
|
|
5817
5827
|
|
|
@@ -5820,9 +5830,9 @@ var CDropdownItem = forwardRef(function (_a, ref) {
|
|
|
5820
5830
|
return (React__default.createElement(CLink, __assign({ className: classNames('dropdown-item', className), component: component }, rest, { ref: ref }), children));
|
|
5821
5831
|
});
|
|
5822
5832
|
CDropdownItem.propTypes = {
|
|
5823
|
-
children:
|
|
5824
|
-
className:
|
|
5825
|
-
component:
|
|
5833
|
+
children: PropTypes.node,
|
|
5834
|
+
className: PropTypes.string,
|
|
5835
|
+
component: PropTypes.elementType,
|
|
5826
5836
|
};
|
|
5827
5837
|
CDropdownItem.displayName = 'CDropdownItem';
|
|
5828
5838
|
|
|
@@ -5831,9 +5841,9 @@ var CDropdownItemPlain = forwardRef(function (_a, ref) {
|
|
|
5831
5841
|
return (React__default.createElement(Component, __assign({ className: classNames('dropdown-item-text', className) }, rest, { ref: ref }), children));
|
|
5832
5842
|
});
|
|
5833
5843
|
CDropdownItemPlain.propTypes = {
|
|
5834
|
-
children:
|
|
5835
|
-
className:
|
|
5836
|
-
component:
|
|
5844
|
+
children: PropTypes.node,
|
|
5845
|
+
className: PropTypes.string,
|
|
5846
|
+
component: PropTypes.elementType,
|
|
5837
5847
|
};
|
|
5838
5848
|
CDropdownItemPlain.displayName = 'CDropdownItemPlain';
|
|
5839
5849
|
|
|
@@ -5886,19 +5896,19 @@ var CDropdownMenu = function (_a) {
|
|
|
5886
5896
|
_placement = 'bottom';
|
|
5887
5897
|
}
|
|
5888
5898
|
if (direction === 'dropup') {
|
|
5889
|
-
_placement = 'top-start';
|
|
5899
|
+
_placement = isRTL(dropdownMenuRef.current) ? 'top-end' : 'top-start';
|
|
5890
5900
|
}
|
|
5891
5901
|
if (direction === 'dropup-center') {
|
|
5892
5902
|
_placement = 'top';
|
|
5893
5903
|
}
|
|
5894
5904
|
if (direction === 'dropend') {
|
|
5895
|
-
_placement = 'right-start';
|
|
5905
|
+
_placement = isRTL(dropdownMenuRef.current) ? 'left-start' : 'right-start';
|
|
5896
5906
|
}
|
|
5897
5907
|
if (direction === 'dropstart') {
|
|
5898
|
-
_placement = 'left-start';
|
|
5908
|
+
_placement = isRTL(dropdownMenuRef.current) ? 'right-start' : 'left-start';
|
|
5899
5909
|
}
|
|
5900
5910
|
if (alignment === 'end') {
|
|
5901
|
-
_placement = 'bottom-end';
|
|
5911
|
+
_placement = isRTL(dropdownMenuRef.current) ? 'bottom-start' : 'bottom-end';
|
|
5902
5912
|
}
|
|
5903
5913
|
var dropdownMenuComponent = function (style, ref) { return (React__default.createElement(CConditionalPortal, { portal: portal !== null && portal !== void 0 ? portal : false },
|
|
5904
5914
|
React__default.createElement(Component, __assign({ className: classNames('dropdown-menu', {
|
|
@@ -5918,9 +5928,9 @@ var CDropdownMenu = function (_a) {
|
|
|
5918
5928
|
})) : (dropdownMenuComponent());
|
|
5919
5929
|
};
|
|
5920
5930
|
CDropdownMenu.propTypes = {
|
|
5921
|
-
children:
|
|
5922
|
-
className:
|
|
5923
|
-
component:
|
|
5931
|
+
children: PropTypes.node,
|
|
5932
|
+
className: PropTypes.string,
|
|
5933
|
+
component: PropTypes.elementType,
|
|
5924
5934
|
};
|
|
5925
5935
|
CDropdownMenu.displayName = 'CDropdownMenu';
|
|
5926
5936
|
|
|
@@ -5960,11 +5970,11 @@ var CDropdownToggle = function (_a) {
|
|
|
5960
5970
|
}) : Toggler(dropdownToggleRef);
|
|
5961
5971
|
};
|
|
5962
5972
|
CDropdownToggle.propTypes = {
|
|
5963
|
-
caret:
|
|
5964
|
-
children:
|
|
5965
|
-
className:
|
|
5966
|
-
custom:
|
|
5967
|
-
split:
|
|
5973
|
+
caret: PropTypes.bool,
|
|
5974
|
+
children: PropTypes.node,
|
|
5975
|
+
className: PropTypes.string,
|
|
5976
|
+
custom: PropTypes.bool,
|
|
5977
|
+
split: PropTypes.bool,
|
|
5968
5978
|
trigger: triggerPropType,
|
|
5969
5979
|
};
|
|
5970
5980
|
CDropdownToggle.displayName = 'CDropdownToggle';
|
|
@@ -5975,9 +5985,9 @@ var CFooter = forwardRef(function (_a, ref) {
|
|
|
5975
5985
|
return (React__default.createElement("div", __assign({ className: classNames('footer', (_b = {}, _b["footer-".concat(position)] = position, _b), className) }, rest, { ref: ref }), children));
|
|
5976
5986
|
});
|
|
5977
5987
|
CFooter.propTypes = {
|
|
5978
|
-
children:
|
|
5979
|
-
className:
|
|
5980
|
-
position:
|
|
5988
|
+
children: PropTypes.node,
|
|
5989
|
+
className: PropTypes.string,
|
|
5990
|
+
position: PropTypes.oneOf(['fixed', 'sticky']),
|
|
5981
5991
|
};
|
|
5982
5992
|
CFooter.displayName = 'CFooter';
|
|
5983
5993
|
|
|
@@ -5986,9 +5996,9 @@ var CForm = forwardRef(function (_a, ref) {
|
|
|
5986
5996
|
return (React__default.createElement("form", __assign({ className: classNames({ 'was-validated': validated }, className) || undefined }, rest, { ref: ref }), children));
|
|
5987
5997
|
});
|
|
5988
5998
|
CForm.propTypes = {
|
|
5989
|
-
children:
|
|
5990
|
-
className:
|
|
5991
|
-
validated:
|
|
5999
|
+
children: PropTypes.node,
|
|
6000
|
+
className: PropTypes.string,
|
|
6001
|
+
validated: PropTypes.bool,
|
|
5992
6002
|
};
|
|
5993
6003
|
CForm.displayName = 'CForm';
|
|
5994
6004
|
|
|
@@ -6001,12 +6011,12 @@ var CFormFeedback = forwardRef(function (_a, ref) {
|
|
|
6001
6011
|
_b), className) }, rest, { ref: ref }), children));
|
|
6002
6012
|
});
|
|
6003
6013
|
CFormFeedback.propTypes = {
|
|
6004
|
-
children:
|
|
6005
|
-
className:
|
|
6006
|
-
component:
|
|
6007
|
-
invalid:
|
|
6008
|
-
tooltip:
|
|
6009
|
-
valid:
|
|
6014
|
+
children: PropTypes.node,
|
|
6015
|
+
className: PropTypes.string,
|
|
6016
|
+
component: PropTypes.elementType,
|
|
6017
|
+
invalid: PropTypes.bool,
|
|
6018
|
+
tooltip: PropTypes.bool,
|
|
6019
|
+
valid: PropTypes.bool,
|
|
6010
6020
|
};
|
|
6011
6021
|
CFormFeedback.displayName = 'CFormFeedback';
|
|
6012
6022
|
|
|
@@ -6018,13 +6028,13 @@ var CFormControlValidation = function (_a) {
|
|
|
6018
6028
|
feedbackValid && (React__default.createElement(CFormFeedback, { valid: true, tooltip: tooltipFeedback }, feedbackValid))));
|
|
6019
6029
|
};
|
|
6020
6030
|
CFormControlValidation.propTypes = {
|
|
6021
|
-
describedby:
|
|
6022
|
-
feedback:
|
|
6023
|
-
feedbackValid:
|
|
6024
|
-
feedbackInvalid:
|
|
6025
|
-
invalid:
|
|
6026
|
-
tooltipFeedback:
|
|
6027
|
-
valid:
|
|
6031
|
+
describedby: PropTypes.string,
|
|
6032
|
+
feedback: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
|
|
6033
|
+
feedbackValid: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
|
|
6034
|
+
feedbackInvalid: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
|
|
6035
|
+
invalid: PropTypes.bool,
|
|
6036
|
+
tooltipFeedback: PropTypes.bool,
|
|
6037
|
+
valid: PropTypes.bool,
|
|
6028
6038
|
};
|
|
6029
6039
|
CFormControlValidation.displayName = 'CFormControlValidation';
|
|
6030
6040
|
|
|
@@ -6033,9 +6043,9 @@ var CFormLabel = forwardRef(function (_a, ref) {
|
|
|
6033
6043
|
return (React__default.createElement("label", __assign({ className: customClassName !== null && customClassName !== void 0 ? customClassName : classNames('form-label', className) }, rest, { ref: ref }), children));
|
|
6034
6044
|
});
|
|
6035
6045
|
CFormLabel.propTypes = {
|
|
6036
|
-
children:
|
|
6037
|
-
className:
|
|
6038
|
-
customClassName:
|
|
6046
|
+
children: PropTypes.node,
|
|
6047
|
+
className: PropTypes.string,
|
|
6048
|
+
customClassName: PropTypes.string,
|
|
6039
6049
|
};
|
|
6040
6050
|
CFormLabel.displayName = 'CFormLabel';
|
|
6041
6051
|
|
|
@@ -6047,7 +6057,7 @@ var CFormCheck = forwardRef(function (_a, ref) {
|
|
|
6047
6057
|
if (inputRef.current && indeterminate) {
|
|
6048
6058
|
inputRef.current.indeterminate = indeterminate;
|
|
6049
6059
|
}
|
|
6050
|
-
}, [indeterminate]);
|
|
6060
|
+
}, [indeterminate, inputRef.current]);
|
|
6051
6061
|
var FormControl = function () { return (React__default.createElement("input", __assign({ type: type, className: classNames(button ? 'btn-check' : 'form-check-input', {
|
|
6052
6062
|
'is-invalid': invalid,
|
|
6053
6063
|
'is-valid': valid,
|
|
@@ -6087,7 +6097,7 @@ var CFormCheck = forwardRef(function (_a, ref) {
|
|
|
6087
6097
|
};
|
|
6088
6098
|
return React__default.createElement(FormCheck, null);
|
|
6089
6099
|
});
|
|
6090
|
-
CFormCheck.propTypes = __assign({ button:
|
|
6100
|
+
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);
|
|
6091
6101
|
CFormCheck.displayName = 'CFormCheck';
|
|
6092
6102
|
|
|
6093
6103
|
var CFormFloating = forwardRef(function (_a, ref) {
|
|
@@ -6095,8 +6105,8 @@ var CFormFloating = forwardRef(function (_a, ref) {
|
|
|
6095
6105
|
return (React__default.createElement("div", __assign({ className: classNames('form-floating', className) }, rest, { ref: ref }), children));
|
|
6096
6106
|
});
|
|
6097
6107
|
CFormFloating.propTypes = {
|
|
6098
|
-
children:
|
|
6099
|
-
className:
|
|
6108
|
+
children: PropTypes.node,
|
|
6109
|
+
className: PropTypes.string,
|
|
6100
6110
|
};
|
|
6101
6111
|
CFormFloating.displayName = 'CFormFloating';
|
|
6102
6112
|
|
|
@@ -6105,9 +6115,9 @@ var CFormText = forwardRef(function (_a, ref) {
|
|
|
6105
6115
|
return (React__default.createElement(Component, __assign({ className: classNames('form-text', className) }, rest, { ref: ref }), children));
|
|
6106
6116
|
});
|
|
6107
6117
|
CFormText.propTypes = {
|
|
6108
|
-
children:
|
|
6109
|
-
className:
|
|
6110
|
-
component:
|
|
6118
|
+
children: PropTypes.node,
|
|
6119
|
+
className: PropTypes.string,
|
|
6120
|
+
component: PropTypes.elementType,
|
|
6111
6121
|
};
|
|
6112
6122
|
CFormText.displayName = 'CFormText';
|
|
6113
6123
|
|
|
@@ -6124,7 +6134,7 @@ var CFormControlWrapper = function (_a) {
|
|
|
6124
6134
|
text && React__default.createElement(CFormText, { id: describedby }, text),
|
|
6125
6135
|
React__default.createElement(FormControlValidation, null)));
|
|
6126
6136
|
};
|
|
6127
|
-
CFormControlWrapper.propTypes = __assign({ children:
|
|
6137
|
+
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);
|
|
6128
6138
|
CFormControlWrapper.displayName = 'CFormControlWrapper';
|
|
6129
6139
|
|
|
6130
6140
|
var CFormInput = forwardRef(function (_a, ref) {
|
|
@@ -6143,7 +6153,7 @@ var CFormInput = forwardRef(function (_a, ref) {
|
|
|
6143
6153
|
_b['is-valid'] = valid,
|
|
6144
6154
|
_b), className), id: id, type: type, onChange: function (event) { return (delay ? setValue(event) : onChange && onChange(event)); } }, rest, { ref: ref }), children)));
|
|
6145
6155
|
});
|
|
6146
|
-
CFormInput.propTypes = __assign({ className:
|
|
6156
|
+
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);
|
|
6147
6157
|
CFormInput.displayName = 'CFormInput';
|
|
6148
6158
|
|
|
6149
6159
|
var CFormRange = forwardRef(function (_a, ref) {
|
|
@@ -6153,8 +6163,8 @@ var CFormRange = forwardRef(function (_a, ref) {
|
|
|
6153
6163
|
React__default.createElement("input", __assign({ type: "range", className: classNames('form-range', className) }, rest, { ref: ref }))));
|
|
6154
6164
|
});
|
|
6155
6165
|
CFormRange.propTypes = {
|
|
6156
|
-
className:
|
|
6157
|
-
label:
|
|
6166
|
+
className: PropTypes.string,
|
|
6167
|
+
label: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
|
|
6158
6168
|
};
|
|
6159
6169
|
CFormRange.displayName = 'CFormRange';
|
|
6160
6170
|
|
|
@@ -6173,7 +6183,7 @@ var CFormSelect = forwardRef(function (_a, ref) {
|
|
|
6173
6183
|
})
|
|
6174
6184
|
: children)));
|
|
6175
6185
|
});
|
|
6176
|
-
CFormSelect.propTypes = __assign({ className:
|
|
6186
|
+
CFormSelect.propTypes = __assign({ className: PropTypes.string, htmlSize: PropTypes.number, options: PropTypes.array }, CFormControlWrapper.propTypes);
|
|
6177
6187
|
CFormSelect.displayName = 'CFormSelect';
|
|
6178
6188
|
|
|
6179
6189
|
var CFormSwitch = forwardRef(function (_a, ref) {
|
|
@@ -6193,14 +6203,14 @@ var CFormSwitch = forwardRef(function (_a, ref) {
|
|
|
6193
6203
|
label && (React__default.createElement(CFormLabel, __assign({ customClassName: "form-check-label" }, (id && { htmlFor: id })), label))));
|
|
6194
6204
|
});
|
|
6195
6205
|
CFormSwitch.propTypes = {
|
|
6196
|
-
className:
|
|
6197
|
-
id:
|
|
6198
|
-
invalid:
|
|
6199
|
-
label:
|
|
6200
|
-
reverse:
|
|
6201
|
-
size:
|
|
6202
|
-
type:
|
|
6203
|
-
valid:
|
|
6206
|
+
className: PropTypes.string,
|
|
6207
|
+
id: PropTypes.string,
|
|
6208
|
+
invalid: PropTypes.bool,
|
|
6209
|
+
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
6210
|
+
reverse: PropTypes.bool,
|
|
6211
|
+
size: PropTypes.oneOf(['lg', 'xl']),
|
|
6212
|
+
type: PropTypes.oneOf(['checkbox', 'radio']),
|
|
6213
|
+
valid: PropTypes.bool,
|
|
6204
6214
|
};
|
|
6205
6215
|
CFormSwitch.displayName = 'CFormSwitch';
|
|
6206
6216
|
|
|
@@ -6212,7 +6222,7 @@ var CFormTextarea = forwardRef(function (_a, ref) {
|
|
|
6212
6222
|
'is-valid': valid,
|
|
6213
6223
|
}, className), id: id }, rest, { ref: ref }), children)));
|
|
6214
6224
|
});
|
|
6215
|
-
CFormTextarea.propTypes = __assign({ className:
|
|
6225
|
+
CFormTextarea.propTypes = __assign({ className: PropTypes.string, id: PropTypes.string, plainText: PropTypes.bool }, CFormControlWrapper.propTypes);
|
|
6216
6226
|
CFormTextarea.displayName = 'CFormTextarea';
|
|
6217
6227
|
|
|
6218
6228
|
var CInputGroup = forwardRef(function (_a, ref) {
|
|
@@ -6223,9 +6233,9 @@ var CInputGroup = forwardRef(function (_a, ref) {
|
|
|
6223
6233
|
_b), className) }, rest, { ref: ref }), children));
|
|
6224
6234
|
});
|
|
6225
6235
|
CInputGroup.propTypes = {
|
|
6226
|
-
children:
|
|
6227
|
-
className:
|
|
6228
|
-
size:
|
|
6236
|
+
children: PropTypes.node,
|
|
6237
|
+
className: PropTypes.string,
|
|
6238
|
+
size: PropTypes.oneOf(['sm', 'lg']),
|
|
6229
6239
|
};
|
|
6230
6240
|
CInputGroup.displayName = 'CInputGroup';
|
|
6231
6241
|
|
|
@@ -6234,9 +6244,9 @@ var CInputGroupText = forwardRef(function (_a, ref) {
|
|
|
6234
6244
|
return (React__default.createElement(Component, __assign({ className: classNames('input-group-text', className) }, rest, { ref: ref }), children));
|
|
6235
6245
|
});
|
|
6236
6246
|
CInputGroupText.propTypes = {
|
|
6237
|
-
children:
|
|
6238
|
-
className:
|
|
6239
|
-
component:
|
|
6247
|
+
children: PropTypes.node,
|
|
6248
|
+
className: PropTypes.string,
|
|
6249
|
+
component: PropTypes.elementType,
|
|
6240
6250
|
};
|
|
6241
6251
|
CInputGroupText.displayName = 'CInputGroupText';
|
|
6242
6252
|
|
|
@@ -6278,27 +6288,27 @@ var CCol = forwardRef(function (_a, ref) {
|
|
|
6278
6288
|
});
|
|
6279
6289
|
return (React__default.createElement("div", __assign({ className: classNames(repsonsiveClassNames.length > 0 ? repsonsiveClassNames : 'col', className) }, rest, { ref: ref }), children));
|
|
6280
6290
|
});
|
|
6281
|
-
var span =
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6291
|
+
var span = PropTypes.oneOfType([
|
|
6292
|
+
PropTypes.bool,
|
|
6293
|
+
PropTypes.number,
|
|
6294
|
+
PropTypes.string,
|
|
6295
|
+
PropTypes.oneOf(['auto']),
|
|
6286
6296
|
]);
|
|
6287
|
-
var col =
|
|
6297
|
+
var col = PropTypes.oneOfType([
|
|
6288
6298
|
span,
|
|
6289
|
-
|
|
6299
|
+
PropTypes.shape({
|
|
6290
6300
|
span: span,
|
|
6291
|
-
offset:
|
|
6292
|
-
order:
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6301
|
+
offset: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
6302
|
+
order: PropTypes.oneOfType([
|
|
6303
|
+
PropTypes.oneOf(['first', 'last']),
|
|
6304
|
+
PropTypes.number,
|
|
6305
|
+
PropTypes.string,
|
|
6296
6306
|
]),
|
|
6297
6307
|
}),
|
|
6298
6308
|
]);
|
|
6299
6309
|
CCol.propTypes = {
|
|
6300
|
-
children:
|
|
6301
|
-
className:
|
|
6310
|
+
children: PropTypes.node,
|
|
6311
|
+
className: PropTypes.string,
|
|
6302
6312
|
xs: col,
|
|
6303
6313
|
sm: col,
|
|
6304
6314
|
md: col,
|
|
@@ -6327,14 +6337,14 @@ var CContainer = forwardRef(function (_a, ref) {
|
|
|
6327
6337
|
return (React__default.createElement("div", __assign({ className: classNames(repsonsiveClassNames.length > 0 ? repsonsiveClassNames : 'container', className) }, rest, { ref: ref }), children));
|
|
6328
6338
|
});
|
|
6329
6339
|
CContainer.propTypes = {
|
|
6330
|
-
children:
|
|
6331
|
-
className:
|
|
6332
|
-
sm:
|
|
6333
|
-
md:
|
|
6334
|
-
lg:
|
|
6335
|
-
xl:
|
|
6336
|
-
xxl:
|
|
6337
|
-
fluid:
|
|
6340
|
+
children: PropTypes.node,
|
|
6341
|
+
className: PropTypes.string,
|
|
6342
|
+
sm: PropTypes.bool,
|
|
6343
|
+
md: PropTypes.bool,
|
|
6344
|
+
lg: PropTypes.bool,
|
|
6345
|
+
xl: PropTypes.bool,
|
|
6346
|
+
xxl: PropTypes.bool,
|
|
6347
|
+
fluid: PropTypes.bool,
|
|
6338
6348
|
};
|
|
6339
6349
|
CContainer.displayName = 'CContainer';
|
|
6340
6350
|
|
|
@@ -6370,15 +6380,15 @@ var CRow = forwardRef(function (_a, ref) {
|
|
|
6370
6380
|
});
|
|
6371
6381
|
return (React__default.createElement("div", { className: classNames('row', repsonsiveClassNames, className), ref: ref }, children));
|
|
6372
6382
|
});
|
|
6373
|
-
var bp =
|
|
6374
|
-
cols:
|
|
6375
|
-
gutter:
|
|
6376
|
-
gutterX:
|
|
6377
|
-
gutterY:
|
|
6383
|
+
var bp = PropTypes.shape({
|
|
6384
|
+
cols: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.string]),
|
|
6385
|
+
gutter: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
6386
|
+
gutterX: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
6387
|
+
gutterY: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
6378
6388
|
});
|
|
6379
6389
|
CRow.propTypes = {
|
|
6380
|
-
children:
|
|
6381
|
-
className:
|
|
6390
|
+
children: PropTypes.node,
|
|
6391
|
+
className: PropTypes.string,
|
|
6382
6392
|
xs: bp,
|
|
6383
6393
|
sm: bp,
|
|
6384
6394
|
md: bp,
|
|
@@ -6394,11 +6404,11 @@ var CHeader = forwardRef(function (_a, ref) {
|
|
|
6394
6404
|
return (React__default.createElement("div", __assign({ className: classNames('header', (_b = {}, _b["header-".concat(position)] = position, _b), className) }, rest, { ref: ref }), container ? (React__default.createElement("div", { className: typeof container === 'string' ? "container-".concat(container) : 'container' }, children)) : (React__default.createElement(React__default.Fragment, null, children))));
|
|
6395
6405
|
});
|
|
6396
6406
|
CHeader.propTypes = {
|
|
6397
|
-
children:
|
|
6398
|
-
className:
|
|
6399
|
-
container:
|
|
6400
|
-
|
|
6401
|
-
|
|
6407
|
+
children: PropTypes.node,
|
|
6408
|
+
className: PropTypes.string,
|
|
6409
|
+
container: PropTypes.oneOfType([
|
|
6410
|
+
PropTypes.bool,
|
|
6411
|
+
PropTypes.oneOf([
|
|
6402
6412
|
'sm',
|
|
6403
6413
|
'md',
|
|
6404
6414
|
'lg',
|
|
@@ -6407,7 +6417,7 @@ CHeader.propTypes = {
|
|
|
6407
6417
|
'fluid',
|
|
6408
6418
|
]),
|
|
6409
6419
|
]),
|
|
6410
|
-
position:
|
|
6420
|
+
position: PropTypes.oneOf(['fixed', 'sticky']),
|
|
6411
6421
|
};
|
|
6412
6422
|
CHeader.displayName = 'CHeader';
|
|
6413
6423
|
|
|
@@ -6416,9 +6426,9 @@ var CHeaderBrand = forwardRef(function (_a, ref) {
|
|
|
6416
6426
|
return (React__default.createElement(Component, __assign({ className: classNames('header-brand', className) }, rest, { ref: ref }), children));
|
|
6417
6427
|
});
|
|
6418
6428
|
CHeaderBrand.propTypes = {
|
|
6419
|
-
children:
|
|
6420
|
-
className:
|
|
6421
|
-
component:
|
|
6429
|
+
children: PropTypes.node,
|
|
6430
|
+
className: PropTypes.string,
|
|
6431
|
+
component: PropTypes.elementType,
|
|
6422
6432
|
};
|
|
6423
6433
|
CHeaderBrand.displayName = 'CHeaderBrand';
|
|
6424
6434
|
|
|
@@ -6427,7 +6437,7 @@ var CHeaderDivider = forwardRef(function (_a, ref) {
|
|
|
6427
6437
|
return React__default.createElement("div", __assign({ className: classNames('header-divider', className) }, rest, { ref: ref }));
|
|
6428
6438
|
});
|
|
6429
6439
|
CHeaderDivider.propTypes = {
|
|
6430
|
-
className:
|
|
6440
|
+
className: PropTypes.string,
|
|
6431
6441
|
};
|
|
6432
6442
|
CHeaderDivider.displayName = 'CHeaderDivider';
|
|
6433
6443
|
|
|
@@ -6436,9 +6446,9 @@ var CHeaderNav = forwardRef(function (_a, ref) {
|
|
|
6436
6446
|
return (React__default.createElement(Component, __assign({ className: classNames('header-nav', className), role: "navigation" }, rest, { ref: ref }), children));
|
|
6437
6447
|
});
|
|
6438
6448
|
CHeaderNav.propTypes = {
|
|
6439
|
-
children:
|
|
6440
|
-
className:
|
|
6441
|
-
component:
|
|
6449
|
+
children: PropTypes.node,
|
|
6450
|
+
className: PropTypes.string,
|
|
6451
|
+
component: PropTypes.elementType,
|
|
6442
6452
|
};
|
|
6443
6453
|
CHeaderNav.displayName = 'CHeaderNav';
|
|
6444
6454
|
|
|
@@ -6447,8 +6457,8 @@ var CHeaderText = forwardRef(function (_a, ref) {
|
|
|
6447
6457
|
return (React__default.createElement("span", __assign({ className: classNames('header-text', className) }, rest, { ref: ref }), children));
|
|
6448
6458
|
});
|
|
6449
6459
|
CHeaderText.propTypes = {
|
|
6450
|
-
children:
|
|
6451
|
-
className:
|
|
6460
|
+
children: PropTypes.node,
|
|
6461
|
+
className: PropTypes.string,
|
|
6452
6462
|
};
|
|
6453
6463
|
CHeaderText.displayName = 'CHeaderText';
|
|
6454
6464
|
|
|
@@ -6457,8 +6467,8 @@ var CHeaderToggler = forwardRef(function (_a, ref) {
|
|
|
6457
6467
|
return (React__default.createElement("button", __assign({ type: "button", className: classNames('header-toggler', className) }, rest, { ref: ref }), children !== null && children !== void 0 ? children : React__default.createElement("span", { className: "header-toggler-icon" })));
|
|
6458
6468
|
});
|
|
6459
6469
|
CHeaderToggler.propTypes = {
|
|
6460
|
-
children:
|
|
6461
|
-
className:
|
|
6470
|
+
children: PropTypes.node,
|
|
6471
|
+
className: PropTypes.string,
|
|
6462
6472
|
};
|
|
6463
6473
|
CHeaderToggler.displayName = 'CHeaderToggler';
|
|
6464
6474
|
|
|
@@ -6474,11 +6484,11 @@ var CImage = forwardRef(function (_a, ref) {
|
|
|
6474
6484
|
_b), className) || undefined }, rest, { ref: ref })));
|
|
6475
6485
|
});
|
|
6476
6486
|
CImage.propTypes = {
|
|
6477
|
-
align:
|
|
6478
|
-
className:
|
|
6479
|
-
fluid:
|
|
6480
|
-
rounded:
|
|
6481
|
-
thumbnail:
|
|
6487
|
+
align: PropTypes.oneOf(['start', 'center', 'end']),
|
|
6488
|
+
className: PropTypes.string,
|
|
6489
|
+
fluid: PropTypes.bool,
|
|
6490
|
+
rounded: PropTypes.bool,
|
|
6491
|
+
thumbnail: PropTypes.bool,
|
|
6482
6492
|
};
|
|
6483
6493
|
CImage.displayName = 'CImage';
|
|
6484
6494
|
|
|
@@ -6492,11 +6502,11 @@ var CListGroup = forwardRef(function (_a, ref) {
|
|
|
6492
6502
|
_b), className), ref: ref }, children));
|
|
6493
6503
|
});
|
|
6494
6504
|
CListGroup.propTypes = {
|
|
6495
|
-
children:
|
|
6496
|
-
className:
|
|
6497
|
-
component:
|
|
6498
|
-
flush:
|
|
6499
|
-
layout:
|
|
6505
|
+
children: PropTypes.node,
|
|
6506
|
+
className: PropTypes.string,
|
|
6507
|
+
component: PropTypes.elementType,
|
|
6508
|
+
flush: PropTypes.bool,
|
|
6509
|
+
layout: PropTypes.oneOf([
|
|
6500
6510
|
'horizontal',
|
|
6501
6511
|
'horizontal-sm',
|
|
6502
6512
|
'horizontal-md',
|
|
@@ -6525,12 +6535,12 @@ var CListGroupItem = forwardRef(function (_a, ref) {
|
|
|
6525
6535
|
_b), className) }, rest), children));
|
|
6526
6536
|
});
|
|
6527
6537
|
CListGroupItem.propTypes = {
|
|
6528
|
-
active:
|
|
6529
|
-
children:
|
|
6530
|
-
className:
|
|
6538
|
+
active: PropTypes.bool,
|
|
6539
|
+
children: PropTypes.node,
|
|
6540
|
+
className: PropTypes.string,
|
|
6531
6541
|
color: colorPropType,
|
|
6532
|
-
component:
|
|
6533
|
-
disabled:
|
|
6542
|
+
component: PropTypes.elementType,
|
|
6543
|
+
disabled: PropTypes.bool,
|
|
6534
6544
|
};
|
|
6535
6545
|
CListGroupItem.displayName = 'CListGroupItem';
|
|
6536
6546
|
|
|
@@ -6539,8 +6549,8 @@ var CModalContent = forwardRef(function (_a, ref) {
|
|
|
6539
6549
|
return (React__default.createElement("div", __assign({ className: classNames('modal-content', className) }, rest, { ref: ref }), children));
|
|
6540
6550
|
});
|
|
6541
6551
|
CModalContent.propTypes = {
|
|
6542
|
-
children:
|
|
6543
|
-
className:
|
|
6552
|
+
children: PropTypes.node,
|
|
6553
|
+
className: PropTypes.string,
|
|
6544
6554
|
};
|
|
6545
6555
|
CModalContent.displayName = 'CModalContent';
|
|
6546
6556
|
|
|
@@ -6558,15 +6568,15 @@ var CModalDialog = forwardRef(function (_a, ref) {
|
|
|
6558
6568
|
_b), className) }, rest, { ref: ref }), children));
|
|
6559
6569
|
});
|
|
6560
6570
|
CModalDialog.propTypes = {
|
|
6561
|
-
alignment:
|
|
6562
|
-
children:
|
|
6563
|
-
className:
|
|
6564
|
-
fullscreen:
|
|
6565
|
-
|
|
6566
|
-
|
|
6571
|
+
alignment: PropTypes.oneOf(['top', 'center']),
|
|
6572
|
+
children: PropTypes.node,
|
|
6573
|
+
className: PropTypes.string,
|
|
6574
|
+
fullscreen: PropTypes.oneOfType([
|
|
6575
|
+
PropTypes.bool,
|
|
6576
|
+
PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'xxl']),
|
|
6567
6577
|
]),
|
|
6568
|
-
scrollable:
|
|
6569
|
-
size:
|
|
6578
|
+
scrollable: PropTypes.bool,
|
|
6579
|
+
size: PropTypes.oneOf(['sm', 'lg', 'xl']),
|
|
6570
6580
|
};
|
|
6571
6581
|
CModalDialog.displayName = 'CModalDialog';
|
|
6572
6582
|
|
|
@@ -6656,25 +6666,25 @@ var CModal = forwardRef(function (_a, ref) {
|
|
|
6656
6666
|
React__default.createElement(CBackdrop, { visible: _visible })))));
|
|
6657
6667
|
});
|
|
6658
6668
|
CModal.propTypes = {
|
|
6659
|
-
alignment:
|
|
6660
|
-
backdrop:
|
|
6661
|
-
children:
|
|
6662
|
-
className:
|
|
6663
|
-
duration:
|
|
6664
|
-
fullscreen:
|
|
6665
|
-
|
|
6666
|
-
|
|
6669
|
+
alignment: PropTypes.oneOf(['top', 'center']),
|
|
6670
|
+
backdrop: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['static'])]),
|
|
6671
|
+
children: PropTypes.node,
|
|
6672
|
+
className: PropTypes.string,
|
|
6673
|
+
duration: PropTypes.number,
|
|
6674
|
+
fullscreen: PropTypes.oneOfType([
|
|
6675
|
+
PropTypes.bool,
|
|
6676
|
+
PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'xxl']),
|
|
6667
6677
|
]),
|
|
6668
|
-
keyboard:
|
|
6669
|
-
onClose:
|
|
6670
|
-
onClosePrevented:
|
|
6671
|
-
onShow:
|
|
6672
|
-
portal:
|
|
6673
|
-
scrollable:
|
|
6674
|
-
size:
|
|
6675
|
-
transition:
|
|
6676
|
-
unmountOnClose:
|
|
6677
|
-
visible:
|
|
6678
|
+
keyboard: PropTypes.bool,
|
|
6679
|
+
onClose: PropTypes.func,
|
|
6680
|
+
onClosePrevented: PropTypes.func,
|
|
6681
|
+
onShow: PropTypes.func,
|
|
6682
|
+
portal: PropTypes.bool,
|
|
6683
|
+
scrollable: PropTypes.bool,
|
|
6684
|
+
size: PropTypes.oneOf(['sm', 'lg', 'xl']),
|
|
6685
|
+
transition: PropTypes.bool,
|
|
6686
|
+
unmountOnClose: PropTypes.bool,
|
|
6687
|
+
visible: PropTypes.bool,
|
|
6678
6688
|
};
|
|
6679
6689
|
CModal.displayName = 'CModal';
|
|
6680
6690
|
|
|
@@ -6683,8 +6693,8 @@ var CModalBody = forwardRef(function (_a, ref) {
|
|
|
6683
6693
|
return (React__default.createElement("div", __assign({ className: classNames('modal-body', className) }, rest, { ref: ref }), children));
|
|
6684
6694
|
});
|
|
6685
6695
|
CModalBody.propTypes = {
|
|
6686
|
-
children:
|
|
6687
|
-
className:
|
|
6696
|
+
children: PropTypes.node,
|
|
6697
|
+
className: PropTypes.string,
|
|
6688
6698
|
};
|
|
6689
6699
|
CModalBody.displayName = 'CModalBody';
|
|
6690
6700
|
|
|
@@ -6693,8 +6703,8 @@ var CModalFooter = forwardRef(function (_a, ref) {
|
|
|
6693
6703
|
return (React__default.createElement("div", __assign({ className: classNames('modal-footer', className) }, rest, { ref: ref }), children));
|
|
6694
6704
|
});
|
|
6695
6705
|
CModalFooter.propTypes = {
|
|
6696
|
-
children:
|
|
6697
|
-
className:
|
|
6706
|
+
children: PropTypes.node,
|
|
6707
|
+
className: PropTypes.string,
|
|
6698
6708
|
};
|
|
6699
6709
|
CModalFooter.displayName = 'CModalFooter';
|
|
6700
6710
|
|
|
@@ -6706,9 +6716,9 @@ var CModalHeader = forwardRef(function (_a, ref) {
|
|
|
6706
6716
|
closeButton && React__default.createElement(CCloseButton, { onClick: function () { return setVisible(false); } })));
|
|
6707
6717
|
});
|
|
6708
6718
|
CModalHeader.propTypes = {
|
|
6709
|
-
children:
|
|
6710
|
-
className:
|
|
6711
|
-
closeButton:
|
|
6719
|
+
children: PropTypes.node,
|
|
6720
|
+
className: PropTypes.string,
|
|
6721
|
+
closeButton: PropTypes.bool,
|
|
6712
6722
|
};
|
|
6713
6723
|
CModalHeader.displayName = 'CModalHeader';
|
|
6714
6724
|
|
|
@@ -6717,9 +6727,9 @@ var CModalTitle = forwardRef(function (_a, ref) {
|
|
|
6717
6727
|
return (React__default.createElement(Component, __assign({ className: classNames('modal-title', className) }, rest, { ref: ref }), children));
|
|
6718
6728
|
});
|
|
6719
6729
|
CModalTitle.propTypes = {
|
|
6720
|
-
children:
|
|
6721
|
-
className:
|
|
6722
|
-
component:
|
|
6730
|
+
children: PropTypes.node,
|
|
6731
|
+
className: PropTypes.string,
|
|
6732
|
+
component: PropTypes.elementType,
|
|
6723
6733
|
};
|
|
6724
6734
|
CModalTitle.displayName = 'CModalTitle';
|
|
6725
6735
|
|
|
@@ -6732,11 +6742,11 @@ var CNav = forwardRef(function (_a, ref) {
|
|
|
6732
6742
|
_b), className), role: "navigation" }, rest, { ref: ref }), children));
|
|
6733
6743
|
});
|
|
6734
6744
|
CNav.propTypes = {
|
|
6735
|
-
children:
|
|
6736
|
-
className:
|
|
6737
|
-
component:
|
|
6738
|
-
layout:
|
|
6739
|
-
variant:
|
|
6745
|
+
children: PropTypes.node,
|
|
6746
|
+
className: PropTypes.string,
|
|
6747
|
+
component: PropTypes.elementType,
|
|
6748
|
+
layout: PropTypes.oneOf(['fill', 'justified']),
|
|
6749
|
+
variant: PropTypes.oneOf(['tabs', 'pills']),
|
|
6740
6750
|
};
|
|
6741
6751
|
CNav.displayName = 'CNav';
|
|
6742
6752
|
|
|
@@ -6745,8 +6755,8 @@ var CNavGroupItems = forwardRef(function (_a, ref) {
|
|
|
6745
6755
|
return (React__default.createElement("ul", __assign({ className: classNames('nav-group-items', className) }, rest, { ref: ref }), children));
|
|
6746
6756
|
});
|
|
6747
6757
|
CNavGroupItems.propTypes = {
|
|
6748
|
-
children:
|
|
6749
|
-
className:
|
|
6758
|
+
children: PropTypes.node,
|
|
6759
|
+
className: PropTypes.string,
|
|
6750
6760
|
};
|
|
6751
6761
|
CNavGroupItems.displayName = 'CNavGroupItems';
|
|
6752
6762
|
|
|
@@ -6770,8 +6780,8 @@ var CSidebarNav = forwardRef(function (_a, ref) {
|
|
|
6770
6780
|
}))));
|
|
6771
6781
|
});
|
|
6772
6782
|
CSidebarNav.propTypes = {
|
|
6773
|
-
children:
|
|
6774
|
-
className:
|
|
6783
|
+
children: PropTypes.node,
|
|
6784
|
+
className: PropTypes.string,
|
|
6775
6785
|
};
|
|
6776
6786
|
CSidebarNav.displayName = 'CSidebarNav';
|
|
6777
6787
|
|
|
@@ -6832,12 +6842,12 @@ var CNavGroup = forwardRef(function (_a, ref) {
|
|
|
6832
6842
|
}))); })));
|
|
6833
6843
|
});
|
|
6834
6844
|
CNavGroup.propTypes = {
|
|
6835
|
-
children:
|
|
6836
|
-
className:
|
|
6837
|
-
compact:
|
|
6838
|
-
idx:
|
|
6839
|
-
toggler:
|
|
6840
|
-
visible:
|
|
6845
|
+
children: PropTypes.node,
|
|
6846
|
+
className: PropTypes.string,
|
|
6847
|
+
compact: PropTypes.bool,
|
|
6848
|
+
idx: PropTypes.string,
|
|
6849
|
+
toggler: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
6850
|
+
visible: PropTypes.bool,
|
|
6841
6851
|
};
|
|
6842
6852
|
CNavGroup.displayName = 'CNavGroup';
|
|
6843
6853
|
|
|
@@ -6854,9 +6864,9 @@ var CNavLink = forwardRef(function (_a, ref) {
|
|
|
6854
6864
|
return (React__default.createElement(CLink, __assign({ className: classNames('nav-link', className) }, rest, { ref: forkedRef }), children));
|
|
6855
6865
|
});
|
|
6856
6866
|
CNavLink.propTypes = {
|
|
6857
|
-
children:
|
|
6858
|
-
className:
|
|
6859
|
-
idx:
|
|
6867
|
+
children: PropTypes.node,
|
|
6868
|
+
className: PropTypes.string,
|
|
6869
|
+
idx: PropTypes.string,
|
|
6860
6870
|
};
|
|
6861
6871
|
CNavLink.displayName = 'CNavLink';
|
|
6862
6872
|
|
|
@@ -6865,8 +6875,8 @@ var CNavItem = forwardRef(function (_a, ref) {
|
|
|
6865
6875
|
return (React__default.createElement("li", { className: classNames('nav-item', className), ref: ref }, rest.href || rest.to ? (React__default.createElement(CNavLink, __assign({ className: className }, rest), children)) : (children)));
|
|
6866
6876
|
});
|
|
6867
6877
|
CNavItem.propTypes = {
|
|
6868
|
-
children:
|
|
6869
|
-
className:
|
|
6878
|
+
children: PropTypes.node,
|
|
6879
|
+
className: PropTypes.string,
|
|
6870
6880
|
};
|
|
6871
6881
|
CNavItem.displayName = 'CNavItem';
|
|
6872
6882
|
|
|
@@ -6875,8 +6885,8 @@ var CNavTitle = forwardRef(function (_a, ref) {
|
|
|
6875
6885
|
return (React__default.createElement("li", __assign({ className: classNames('nav-title', className) }, rest, { ref: ref }), children));
|
|
6876
6886
|
});
|
|
6877
6887
|
CNavTitle.propTypes = {
|
|
6878
|
-
children:
|
|
6879
|
-
className:
|
|
6888
|
+
children: PropTypes.node,
|
|
6889
|
+
className: PropTypes.string,
|
|
6880
6890
|
};
|
|
6881
6891
|
CNavTitle.displayName = 'CNavTitle';
|
|
6882
6892
|
|
|
@@ -6890,14 +6900,14 @@ var CNavbar = forwardRef(function (_a, ref) {
|
|
|
6890
6900
|
_b), placement, className) }, rest, { ref: ref }), container ? (React__default.createElement("div", { className: typeof container === 'string' ? "container-".concat(container) : 'container' }, children)) : (React__default.createElement(React__default.Fragment, null, children))));
|
|
6891
6901
|
});
|
|
6892
6902
|
CNavbar.propTypes = {
|
|
6893
|
-
children:
|
|
6894
|
-
className:
|
|
6903
|
+
children: PropTypes.node,
|
|
6904
|
+
className: PropTypes.string,
|
|
6895
6905
|
color: colorPropType,
|
|
6896
|
-
colorScheme:
|
|
6897
|
-
component:
|
|
6898
|
-
container:
|
|
6899
|
-
|
|
6900
|
-
|
|
6906
|
+
colorScheme: PropTypes.oneOf(['dark', 'light']),
|
|
6907
|
+
component: PropTypes.elementType,
|
|
6908
|
+
container: PropTypes.oneOfType([
|
|
6909
|
+
PropTypes.bool,
|
|
6910
|
+
PropTypes.oneOf([
|
|
6901
6911
|
'sm',
|
|
6902
6912
|
'md',
|
|
6903
6913
|
'lg',
|
|
@@ -6906,11 +6916,11 @@ CNavbar.propTypes = {
|
|
|
6906
6916
|
'fluid',
|
|
6907
6917
|
]),
|
|
6908
6918
|
]),
|
|
6909
|
-
expand:
|
|
6910
|
-
|
|
6911
|
-
|
|
6919
|
+
expand: PropTypes.oneOfType([
|
|
6920
|
+
PropTypes.bool,
|
|
6921
|
+
PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'xxl']),
|
|
6912
6922
|
]),
|
|
6913
|
-
placement:
|
|
6923
|
+
placement: PropTypes.oneOf(['fixed-top', 'fixed-bottom', 'sticky-top']),
|
|
6914
6924
|
};
|
|
6915
6925
|
CNavbar.displayName = 'CNavbar';
|
|
6916
6926
|
|
|
@@ -6920,9 +6930,9 @@ var CNavbarBrand = forwardRef(function (_a, ref) {
|
|
|
6920
6930
|
return (React__default.createElement(Component, __assign({ className: classNames('navbar-brand', className) }, rest, { ref: ref }), children));
|
|
6921
6931
|
});
|
|
6922
6932
|
CNavbarBrand.propTypes = {
|
|
6923
|
-
children:
|
|
6924
|
-
className:
|
|
6925
|
-
component:
|
|
6933
|
+
children: PropTypes.node,
|
|
6934
|
+
className: PropTypes.string,
|
|
6935
|
+
component: PropTypes.elementType,
|
|
6926
6936
|
};
|
|
6927
6937
|
CNavbarBrand.displayName = 'CNavbarBrand';
|
|
6928
6938
|
|
|
@@ -6931,9 +6941,9 @@ var CNavbarNav = forwardRef(function (_a, ref) {
|
|
|
6931
6941
|
return (React__default.createElement(Component, __assign({ className: classNames('navbar-nav', className), role: "navigation" }, rest, { ref: ref }), children));
|
|
6932
6942
|
});
|
|
6933
6943
|
CNavbarNav.propTypes = {
|
|
6934
|
-
children:
|
|
6935
|
-
className:
|
|
6936
|
-
component:
|
|
6944
|
+
children: PropTypes.node,
|
|
6945
|
+
className: PropTypes.string,
|
|
6946
|
+
component: PropTypes.elementType,
|
|
6937
6947
|
};
|
|
6938
6948
|
CNavbarNav.displayName = 'CNavbarNav';
|
|
6939
6949
|
|
|
@@ -6942,8 +6952,8 @@ var CNavbarText = forwardRef(function (_a, ref) {
|
|
|
6942
6952
|
return (React__default.createElement("span", __assign({ className: classNames('navbar-text', className) }, rest, { ref: ref }), children));
|
|
6943
6953
|
});
|
|
6944
6954
|
CNavbarText.propTypes = {
|
|
6945
|
-
children:
|
|
6946
|
-
className:
|
|
6955
|
+
children: PropTypes.node,
|
|
6956
|
+
className: PropTypes.string,
|
|
6947
6957
|
};
|
|
6948
6958
|
CNavbarText.displayName = 'CNavbarText';
|
|
6949
6959
|
|
|
@@ -6952,8 +6962,8 @@ var CNavbarToggler = forwardRef(function (_a, ref) {
|
|
|
6952
6962
|
return (React__default.createElement("button", __assign({ type: "button", className: classNames('navbar-toggler', className) }, rest, { ref: ref }), children !== null && children !== void 0 ? children : React__default.createElement("span", { className: "navbar-toggler-icon" })));
|
|
6953
6963
|
});
|
|
6954
6964
|
CNavbarToggler.propTypes = {
|
|
6955
|
-
children:
|
|
6956
|
-
className:
|
|
6965
|
+
children: PropTypes.node,
|
|
6966
|
+
className: PropTypes.string,
|
|
6957
6967
|
};
|
|
6958
6968
|
CNavbarToggler.displayName = 'CNavbarToggler';
|
|
6959
6969
|
|
|
@@ -7005,21 +7015,21 @@ var COffcanvas = forwardRef(function (_a, ref) {
|
|
|
7005
7015
|
React__default.createElement(CBackdrop, { className: "offcanvas-backdrop", onClick: handleBackdropDismiss, visible: _visible })))));
|
|
7006
7016
|
});
|
|
7007
7017
|
COffcanvas.propTypes = {
|
|
7008
|
-
backdrop:
|
|
7009
|
-
children:
|
|
7010
|
-
className:
|
|
7011
|
-
keyboard:
|
|
7012
|
-
onHide:
|
|
7013
|
-
onShow:
|
|
7014
|
-
placement:
|
|
7018
|
+
backdrop: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['static'])]),
|
|
7019
|
+
children: PropTypes.node,
|
|
7020
|
+
className: PropTypes.string,
|
|
7021
|
+
keyboard: PropTypes.bool,
|
|
7022
|
+
onHide: PropTypes.func,
|
|
7023
|
+
onShow: PropTypes.func,
|
|
7024
|
+
placement: PropTypes.oneOf(['start', 'end', 'top', 'bottom'])
|
|
7015
7025
|
.isRequired,
|
|
7016
|
-
portal:
|
|
7017
|
-
responsive:
|
|
7018
|
-
|
|
7019
|
-
|
|
7026
|
+
portal: PropTypes.bool,
|
|
7027
|
+
responsive: PropTypes.oneOfType([
|
|
7028
|
+
PropTypes.bool,
|
|
7029
|
+
PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'xxl']),
|
|
7020
7030
|
]),
|
|
7021
|
-
scroll:
|
|
7022
|
-
visible:
|
|
7031
|
+
scroll: PropTypes.bool,
|
|
7032
|
+
visible: PropTypes.bool,
|
|
7023
7033
|
};
|
|
7024
7034
|
COffcanvas.displayName = 'COffcanvas';
|
|
7025
7035
|
|
|
@@ -7028,8 +7038,8 @@ var COffcanvasBody = forwardRef(function (_a, ref) {
|
|
|
7028
7038
|
return (React__default.createElement("div", __assign({ className: classNames('offcanvas-body', className) }, rest, { ref: ref }), children));
|
|
7029
7039
|
});
|
|
7030
7040
|
COffcanvasBody.propTypes = {
|
|
7031
|
-
children:
|
|
7032
|
-
className:
|
|
7041
|
+
children: PropTypes.node,
|
|
7042
|
+
className: PropTypes.string,
|
|
7033
7043
|
};
|
|
7034
7044
|
COffcanvasBody.displayName = 'COffcanvasBody';
|
|
7035
7045
|
|
|
@@ -7038,8 +7048,8 @@ var COffcanvasHeader = forwardRef(function (_a, ref) {
|
|
|
7038
7048
|
return (React__default.createElement("div", __assign({ className: classNames('offcanvas-header', className) }, rest, { ref: ref }), children));
|
|
7039
7049
|
});
|
|
7040
7050
|
COffcanvasHeader.propTypes = {
|
|
7041
|
-
children:
|
|
7042
|
-
className:
|
|
7051
|
+
children: PropTypes.node,
|
|
7052
|
+
className: PropTypes.string,
|
|
7043
7053
|
};
|
|
7044
7054
|
COffcanvasHeader.displayName = 'COffcanvasHeader';
|
|
7045
7055
|
|
|
@@ -7048,9 +7058,9 @@ var COffcanvasTitle = forwardRef(function (_a, ref) {
|
|
|
7048
7058
|
return (React__default.createElement(Component, __assign({ className: classNames('offcanvas-title', className) }, rest, { ref: ref }), children));
|
|
7049
7059
|
});
|
|
7050
7060
|
COffcanvasTitle.propTypes = {
|
|
7051
|
-
children:
|
|
7052
|
-
className:
|
|
7053
|
-
component:
|
|
7061
|
+
children: PropTypes.node,
|
|
7062
|
+
className: PropTypes.string,
|
|
7063
|
+
component: PropTypes.elementType,
|
|
7054
7064
|
};
|
|
7055
7065
|
COffcanvasTitle.displayName = 'COffcanvasTitle';
|
|
7056
7066
|
|
|
@@ -7064,10 +7074,10 @@ var CPagination = forwardRef(function (_a, ref) {
|
|
|
7064
7074
|
_b), className) }, children)));
|
|
7065
7075
|
});
|
|
7066
7076
|
CPagination.propTypes = {
|
|
7067
|
-
align:
|
|
7068
|
-
children:
|
|
7069
|
-
className:
|
|
7070
|
-
size:
|
|
7077
|
+
align: PropTypes.oneOf(['start', 'center', 'end']),
|
|
7078
|
+
children: PropTypes.node,
|
|
7079
|
+
className: PropTypes.string,
|
|
7080
|
+
size: PropTypes.oneOf(['sm', 'lg']),
|
|
7071
7081
|
};
|
|
7072
7082
|
CPagination.displayName = 'CPagination';
|
|
7073
7083
|
|
|
@@ -7080,9 +7090,9 @@ var CPaginationItem = forwardRef(function (_a, ref) {
|
|
|
7080
7090
|
}, className) }, (rest.active && { 'aria-current': 'page' })), Component === 'a' ? (React__default.createElement(CLink, __assign({ className: "page-link", component: Component }, rest, { ref: ref }), children)) : (React__default.createElement(Component, { className: "page-link", ref: ref }, children))));
|
|
7081
7091
|
});
|
|
7082
7092
|
CPaginationItem.propTypes = {
|
|
7083
|
-
children:
|
|
7084
|
-
className:
|
|
7085
|
-
component:
|
|
7093
|
+
children: PropTypes.node,
|
|
7094
|
+
className: PropTypes.string,
|
|
7095
|
+
component: PropTypes.elementType,
|
|
7086
7096
|
};
|
|
7087
7097
|
CPaginationItem.displayName = 'CPaginationItem';
|
|
7088
7098
|
|
|
@@ -7115,12 +7125,12 @@ var CPlaceholder = forwardRef(function (_a, ref) {
|
|
|
7115
7125
|
_b), repsonsiveClassNames, className) }, rest, { ref: ref }), children));
|
|
7116
7126
|
});
|
|
7117
7127
|
CPlaceholder.propTypes = {
|
|
7118
|
-
animation:
|
|
7119
|
-
children:
|
|
7120
|
-
className:
|
|
7128
|
+
animation: PropTypes.oneOf(['glow', 'wave']),
|
|
7129
|
+
children: PropTypes.node,
|
|
7130
|
+
className: PropTypes.string,
|
|
7121
7131
|
color: colorPropType,
|
|
7122
|
-
component:
|
|
7123
|
-
size:
|
|
7132
|
+
component: PropTypes.elementType,
|
|
7133
|
+
size: PropTypes.oneOf(['xs', 'sm', 'lg']),
|
|
7124
7134
|
};
|
|
7125
7135
|
CPlaceholder.displayName = 'CPlaceholder';
|
|
7126
7136
|
|
|
@@ -7134,12 +7144,12 @@ var CProgressBar = forwardRef(function (_a, ref) {
|
|
|
7134
7144
|
_b), className), role: "progressbar", style: { width: "".concat(value, "%") }, "aria-valuenow": value, "aria-valuemin": 0, "aria-valuemax": 100 }, rest, { ref: ref }), children));
|
|
7135
7145
|
});
|
|
7136
7146
|
CProgressBar.propTypes = {
|
|
7137
|
-
animated:
|
|
7138
|
-
children:
|
|
7139
|
-
className:
|
|
7147
|
+
animated: PropTypes.bool,
|
|
7148
|
+
children: PropTypes.node,
|
|
7149
|
+
className: PropTypes.string,
|
|
7140
7150
|
color: colorPropType,
|
|
7141
|
-
value:
|
|
7142
|
-
variant:
|
|
7151
|
+
value: PropTypes.number,
|
|
7152
|
+
variant: PropTypes.oneOf(['striped']),
|
|
7143
7153
|
};
|
|
7144
7154
|
CProgressBar.displayName = 'CProgressBar';
|
|
7145
7155
|
|
|
@@ -7151,39 +7161,69 @@ var CProgress = forwardRef(function (_a, ref) {
|
|
|
7151
7161
|
}, className), style: height ? { height: "".concat(height, "px") } : {}, ref: ref }, value ? (React__default.createElement(CProgressBar, __assign({ value: value }, rest), children)) : (children)));
|
|
7152
7162
|
});
|
|
7153
7163
|
CProgress.propTypes = {
|
|
7154
|
-
children:
|
|
7155
|
-
className:
|
|
7156
|
-
height:
|
|
7157
|
-
thin:
|
|
7158
|
-
value:
|
|
7159
|
-
white:
|
|
7164
|
+
children: PropTypes.node,
|
|
7165
|
+
className: PropTypes.string,
|
|
7166
|
+
height: PropTypes.number,
|
|
7167
|
+
thin: PropTypes.bool,
|
|
7168
|
+
value: PropTypes.number,
|
|
7169
|
+
white: PropTypes.bool,
|
|
7160
7170
|
};
|
|
7161
7171
|
CProgress.displayName = 'CProgress';
|
|
7162
7172
|
|
|
7173
|
+
var getPlacement$1 = function (placement, element) {
|
|
7174
|
+
console.log(element);
|
|
7175
|
+
switch (placement) {
|
|
7176
|
+
case 'right': {
|
|
7177
|
+
return isRTL(element) ? 'left' : 'right';
|
|
7178
|
+
}
|
|
7179
|
+
case 'left': {
|
|
7180
|
+
return isRTL(element) ? 'right' : 'left';
|
|
7181
|
+
}
|
|
7182
|
+
default: {
|
|
7183
|
+
return placement;
|
|
7184
|
+
}
|
|
7185
|
+
}
|
|
7186
|
+
};
|
|
7163
7187
|
var CPopover = function (_a) {
|
|
7164
7188
|
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"]);
|
|
7189
|
+
var popoverRef = useRef(null);
|
|
7190
|
+
var togglerRef = useRef(null);
|
|
7191
|
+
var popper = useRef();
|
|
7165
7192
|
var _e = useState(visible), _visible = _e[0], setVisible = _e[1];
|
|
7166
|
-
var popoverRef = useRef();
|
|
7167
|
-
var _f = useState(null), referenceElement = _f[0], setReferenceElement = _f[1];
|
|
7168
|
-
var _g = useState(null), popperElement = _g[0], setPopperElement = _g[1];
|
|
7169
|
-
var _h = useState(null), arrowElement = _h[0], setArrowElement = _h[1];
|
|
7170
|
-
var _j = usePopper(referenceElement, popperElement, {
|
|
7171
|
-
modifiers: [
|
|
7172
|
-
{ name: 'arrow', options: { element: arrowElement } },
|
|
7173
|
-
{
|
|
7174
|
-
name: 'offset',
|
|
7175
|
-
options: {
|
|
7176
|
-
offset: offset,
|
|
7177
|
-
},
|
|
7178
|
-
},
|
|
7179
|
-
],
|
|
7180
|
-
placement: placement,
|
|
7181
|
-
}), styles = _j.styles, attributes = _j.attributes;
|
|
7182
7193
|
useEffect(function () {
|
|
7183
7194
|
setVisible(visible);
|
|
7184
7195
|
}, [visible]);
|
|
7196
|
+
useEffect(function () {
|
|
7197
|
+
if (_visible) {
|
|
7198
|
+
initPopper();
|
|
7199
|
+
}
|
|
7200
|
+
return function () {
|
|
7201
|
+
destroyPopper();
|
|
7202
|
+
};
|
|
7203
|
+
}, [_visible]);
|
|
7204
|
+
var initPopper = function () {
|
|
7205
|
+
if (togglerRef.current && popoverRef.current) {
|
|
7206
|
+
popper.current = createPopper(togglerRef.current, popoverRef.current, {
|
|
7207
|
+
modifiers: [
|
|
7208
|
+
{
|
|
7209
|
+
name: 'offset',
|
|
7210
|
+
options: {
|
|
7211
|
+
offset: offset,
|
|
7212
|
+
},
|
|
7213
|
+
},
|
|
7214
|
+
],
|
|
7215
|
+
placement: getPlacement$1(placement, togglerRef.current),
|
|
7216
|
+
});
|
|
7217
|
+
}
|
|
7218
|
+
};
|
|
7219
|
+
var destroyPopper = function () {
|
|
7220
|
+
if (popper.current) {
|
|
7221
|
+
popper.current.destroy();
|
|
7222
|
+
}
|
|
7223
|
+
popper.current = undefined;
|
|
7224
|
+
};
|
|
7185
7225
|
return (React__default.createElement(React__default.Fragment, null,
|
|
7186
|
-
React__default.cloneElement(children, __assign(__assign(__assign({ ref:
|
|
7226
|
+
React__default.cloneElement(children, __assign(__assign(__assign({ ref: togglerRef }, ((trigger === 'click' || trigger.includes('click')) && {
|
|
7187
7227
|
onClick: function () { return setVisible(!_visible); },
|
|
7188
7228
|
})), ((trigger === 'focus' || trigger.includes('focus')) && {
|
|
7189
7229
|
onFocus: function () { return setVisible(true); },
|
|
@@ -7196,24 +7236,26 @@ var CPopover = function (_a) {
|
|
|
7196
7236
|
createPortal(React__default.createElement(Transition$1, { in: _visible, mountOnEnter: true, nodeRef: popoverRef, onEnter: onShow, onExit: onHide, timeout: {
|
|
7197
7237
|
enter: 0,
|
|
7198
7238
|
exit: 200,
|
|
7199
|
-
}, unmountOnExit: true }, function (state) { return (React__default.createElement("div", __assign({ className: classNames('popover', "bs-popover-".concat(placement
|
|
7239
|
+
}, unmountOnExit: true }, function (state) { return (React__default.createElement("div", __assign({ className: classNames('popover', "bs-popover-".concat(getPlacement$1(placement, togglerRef.current)
|
|
7240
|
+
.replace('left', 'start')
|
|
7241
|
+
.replace('right', 'end')), 'fade', {
|
|
7200
7242
|
show: state === 'entered',
|
|
7201
|
-
}, className), ref:
|
|
7202
|
-
React__default.createElement("div", {
|
|
7243
|
+
}, className), ref: popoverRef, role: "tooltip" }, rest),
|
|
7244
|
+
React__default.createElement("div", { "data-popper-arrow": true, className: "popover-arrow" }),
|
|
7203
7245
|
React__default.createElement("div", { className: "popover-header" }, title),
|
|
7204
7246
|
React__default.createElement("div", { className: "popover-body" }, content))); }), document.body)));
|
|
7205
7247
|
};
|
|
7206
7248
|
CPopover.propTypes = {
|
|
7207
|
-
children:
|
|
7208
|
-
className:
|
|
7209
|
-
content:
|
|
7210
|
-
offset:
|
|
7211
|
-
onHide:
|
|
7212
|
-
onShow:
|
|
7213
|
-
placement:
|
|
7214
|
-
title:
|
|
7249
|
+
children: PropTypes.node,
|
|
7250
|
+
className: PropTypes.string,
|
|
7251
|
+
content: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7252
|
+
offset: PropTypes.any,
|
|
7253
|
+
onHide: PropTypes.func,
|
|
7254
|
+
onShow: PropTypes.func,
|
|
7255
|
+
placement: PropTypes.oneOf(['auto', 'top', 'right', 'bottom', 'left']),
|
|
7256
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7215
7257
|
trigger: triggerPropType,
|
|
7216
|
-
visible:
|
|
7258
|
+
visible: PropTypes.bool,
|
|
7217
7259
|
};
|
|
7218
7260
|
CPopover.displayName = 'CPopover';
|
|
7219
7261
|
|
|
@@ -7307,17 +7349,17 @@ var CSidebar = forwardRef(function (_a, ref) {
|
|
|
7307
7349
|
createPortal(React__default.createElement(CBackdrop, { className: "sidebar-backdrop", visible: _visible }), document.body)));
|
|
7308
7350
|
});
|
|
7309
7351
|
CSidebar.propTypes = {
|
|
7310
|
-
children:
|
|
7311
|
-
className:
|
|
7312
|
-
narrow:
|
|
7313
|
-
onHide:
|
|
7314
|
-
onShow:
|
|
7315
|
-
onVisibleChange:
|
|
7316
|
-
overlaid:
|
|
7317
|
-
position:
|
|
7318
|
-
size:
|
|
7319
|
-
unfoldable:
|
|
7320
|
-
visible:
|
|
7352
|
+
children: PropTypes.node,
|
|
7353
|
+
className: PropTypes.string,
|
|
7354
|
+
narrow: PropTypes.bool,
|
|
7355
|
+
onHide: PropTypes.func,
|
|
7356
|
+
onShow: PropTypes.func,
|
|
7357
|
+
onVisibleChange: PropTypes.func,
|
|
7358
|
+
overlaid: PropTypes.bool,
|
|
7359
|
+
position: PropTypes.oneOf(['fixed', 'sticky']),
|
|
7360
|
+
size: PropTypes.oneOf(['sm', 'lg', 'xl']),
|
|
7361
|
+
unfoldable: PropTypes.bool,
|
|
7362
|
+
visible: PropTypes.bool,
|
|
7321
7363
|
};
|
|
7322
7364
|
CSidebar.displayName = 'CSidebar';
|
|
7323
7365
|
|
|
@@ -7326,8 +7368,8 @@ var CSidebarBrand = forwardRef(function (_a, ref) {
|
|
|
7326
7368
|
return (React__default.createElement("div", __assign({ className: classNames('sidebar-brand', className), ref: ref }, rest), children));
|
|
7327
7369
|
});
|
|
7328
7370
|
CSidebarBrand.propTypes = {
|
|
7329
|
-
children:
|
|
7330
|
-
className:
|
|
7371
|
+
children: PropTypes.node,
|
|
7372
|
+
className: PropTypes.string,
|
|
7331
7373
|
};
|
|
7332
7374
|
CSidebarBrand.displayName = 'CSidebarBrand';
|
|
7333
7375
|
|
|
@@ -7336,8 +7378,8 @@ var CSidebarFooter = forwardRef(function (_a, ref) {
|
|
|
7336
7378
|
return (React__default.createElement("div", __assign({ className: classNames('sidebar-footer', className), ref: ref }, rest), children));
|
|
7337
7379
|
});
|
|
7338
7380
|
CSidebarFooter.propTypes = {
|
|
7339
|
-
children:
|
|
7340
|
-
className:
|
|
7381
|
+
children: PropTypes.node,
|
|
7382
|
+
className: PropTypes.string,
|
|
7341
7383
|
};
|
|
7342
7384
|
CSidebarFooter.displayName = 'CSidebarFooter';
|
|
7343
7385
|
|
|
@@ -7346,8 +7388,8 @@ var CSidebarToggler = forwardRef(function (_a, ref) {
|
|
|
7346
7388
|
return (React__default.createElement("button", __assign({ className: classNames('sidebar-toggler', className), ref: ref }, rest), children));
|
|
7347
7389
|
});
|
|
7348
7390
|
CSidebarToggler.propTypes = {
|
|
7349
|
-
children:
|
|
7350
|
-
className:
|
|
7391
|
+
children: PropTypes.node,
|
|
7392
|
+
className: PropTypes.string,
|
|
7351
7393
|
};
|
|
7352
7394
|
CSidebarToggler.displayName = 'CSidebarToggler';
|
|
7353
7395
|
|
|
@@ -7356,8 +7398,8 @@ var CSidebarHeader = forwardRef(function (_a, ref) {
|
|
|
7356
7398
|
return (React__default.createElement("div", __assign({ className: classNames('sidebar-header', className), ref: ref }, rest), children));
|
|
7357
7399
|
});
|
|
7358
7400
|
CSidebarHeader.propTypes = {
|
|
7359
|
-
children:
|
|
7360
|
-
className:
|
|
7401
|
+
children: PropTypes.node,
|
|
7402
|
+
className: PropTypes.string,
|
|
7361
7403
|
};
|
|
7362
7404
|
CSidebarHeader.displayName = 'CSidebarHeader';
|
|
7363
7405
|
|
|
@@ -7367,12 +7409,12 @@ var CSpinner = forwardRef(function (_a, ref) {
|
|
|
7367
7409
|
React__default.createElement("span", { className: "visually-hidden" }, visuallyHiddenLabel)));
|
|
7368
7410
|
});
|
|
7369
7411
|
CSpinner.propTypes = {
|
|
7370
|
-
className:
|
|
7412
|
+
className: PropTypes.string,
|
|
7371
7413
|
color: colorPropType,
|
|
7372
|
-
component:
|
|
7373
|
-
size:
|
|
7374
|
-
variant:
|
|
7375
|
-
visuallyHiddenLabel:
|
|
7414
|
+
component: PropTypes.string,
|
|
7415
|
+
size: PropTypes.oneOf(['sm']),
|
|
7416
|
+
variant: PropTypes.oneOf(['border', 'grow']),
|
|
7417
|
+
visuallyHiddenLabel: PropTypes.string,
|
|
7376
7418
|
};
|
|
7377
7419
|
CSpinner.displayName = 'CSpinner';
|
|
7378
7420
|
|
|
@@ -7384,8 +7426,8 @@ var CTableHead = forwardRef(function (_a, ref) {
|
|
|
7384
7426
|
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7385
7427
|
});
|
|
7386
7428
|
CTableHead.propTypes = {
|
|
7387
|
-
children:
|
|
7388
|
-
className:
|
|
7429
|
+
children: PropTypes.node,
|
|
7430
|
+
className: PropTypes.string,
|
|
7389
7431
|
color: colorPropType,
|
|
7390
7432
|
};
|
|
7391
7433
|
CTableHead.displayName = 'CTableHead';
|
|
@@ -7398,8 +7440,8 @@ var CTableHeaderCell = forwardRef(function (_a, ref) {
|
|
|
7398
7440
|
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7399
7441
|
});
|
|
7400
7442
|
CTableHeaderCell.propTypes = {
|
|
7401
|
-
children:
|
|
7402
|
-
className:
|
|
7443
|
+
children: PropTypes.node,
|
|
7444
|
+
className: PropTypes.string,
|
|
7403
7445
|
color: colorPropType,
|
|
7404
7446
|
};
|
|
7405
7447
|
CTableHeaderCell.displayName = 'CTableHeaderCell';
|
|
@@ -7412,8 +7454,8 @@ var CTableBody = forwardRef(function (_a, ref) {
|
|
|
7412
7454
|
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7413
7455
|
});
|
|
7414
7456
|
CTableBody.propTypes = {
|
|
7415
|
-
children:
|
|
7416
|
-
className:
|
|
7457
|
+
children: PropTypes.node,
|
|
7458
|
+
className: PropTypes.string,
|
|
7417
7459
|
color: colorPropType,
|
|
7418
7460
|
};
|
|
7419
7461
|
CTableBody.displayName = 'CTableBody';
|
|
@@ -7429,10 +7471,10 @@ var CTableDataCell = forwardRef(function (_a, ref) {
|
|
|
7429
7471
|
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7430
7472
|
});
|
|
7431
7473
|
CTableDataCell.propTypes = {
|
|
7432
|
-
active:
|
|
7433
|
-
align:
|
|
7434
|
-
children:
|
|
7435
|
-
className:
|
|
7474
|
+
active: PropTypes.bool,
|
|
7475
|
+
align: PropTypes.oneOf(['bottom', 'middle', 'top']),
|
|
7476
|
+
children: PropTypes.node,
|
|
7477
|
+
className: PropTypes.string,
|
|
7436
7478
|
color: colorPropType,
|
|
7437
7479
|
};
|
|
7438
7480
|
CTableDataCell.displayName = 'CTableDataCell';
|
|
@@ -7447,10 +7489,10 @@ var CTableRow = forwardRef(function (_a, ref) {
|
|
|
7447
7489
|
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7448
7490
|
});
|
|
7449
7491
|
CTableRow.propTypes = {
|
|
7450
|
-
active:
|
|
7451
|
-
align:
|
|
7452
|
-
children:
|
|
7453
|
-
className:
|
|
7492
|
+
active: PropTypes.bool,
|
|
7493
|
+
align: PropTypes.oneOf(['bottom', 'middle', 'top']),
|
|
7494
|
+
children: PropTypes.node,
|
|
7495
|
+
className: PropTypes.string,
|
|
7454
7496
|
color: colorPropType,
|
|
7455
7497
|
};
|
|
7456
7498
|
CTableRow.displayName = 'CTableRow';
|
|
@@ -7463,8 +7505,8 @@ var CTableFoot = forwardRef(function (_a, ref) {
|
|
|
7463
7505
|
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7464
7506
|
});
|
|
7465
7507
|
CTableFoot.propTypes = {
|
|
7466
|
-
children:
|
|
7467
|
-
className:
|
|
7508
|
+
children: PropTypes.node,
|
|
7509
|
+
className: PropTypes.string,
|
|
7468
7510
|
color: colorPropType,
|
|
7469
7511
|
};
|
|
7470
7512
|
CTableFoot.displayName = 'CTableFoot';
|
|
@@ -7474,7 +7516,7 @@ var CTableCaption = forwardRef(function (_a, ref) {
|
|
|
7474
7516
|
return (React__default.createElement("caption", __assign({}, props, { ref: ref }), children));
|
|
7475
7517
|
});
|
|
7476
7518
|
CTableCaption.propTypes = {
|
|
7477
|
-
children:
|
|
7519
|
+
children: PropTypes.node,
|
|
7478
7520
|
};
|
|
7479
7521
|
CTableCaption.displayName = 'CTableCaption';
|
|
7480
7522
|
|
|
@@ -7483,10 +7525,10 @@ var CTableResponsiveWrapper = function (_a) {
|
|
|
7483
7525
|
return responsive ? (React__default.createElement("div", __assign({ className: typeof responsive === 'boolean' ? 'table-responsive' : "table-responsive-".concat(responsive) }, rest), children)) : (React__default.createElement(React__default.Fragment, null, children));
|
|
7484
7526
|
};
|
|
7485
7527
|
CTableResponsiveWrapper.propTypes = {
|
|
7486
|
-
children:
|
|
7487
|
-
responsive:
|
|
7488
|
-
|
|
7489
|
-
|
|
7528
|
+
children: PropTypes.node,
|
|
7529
|
+
responsive: PropTypes.oneOfType([
|
|
7530
|
+
PropTypes.bool,
|
|
7531
|
+
PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'xxl']),
|
|
7490
7532
|
]),
|
|
7491
7533
|
};
|
|
7492
7534
|
CTableResponsiveWrapper.displayName = 'CTableResponsiveWrapper';
|
|
@@ -7541,28 +7583,28 @@ var CTable = forwardRef(function (_a, ref) {
|
|
|
7541
7583
|
React__default.createElement(CTableRow, null, footer.map(function (item, index) { return (React__default.createElement(CTableDataCell, __assign({}, (typeof item === 'object' && item._props && __assign({}, item._props)), { key: index }), typeof item === 'object' ? item.label : item)); })))))));
|
|
7542
7584
|
});
|
|
7543
7585
|
CTable.propTypes = {
|
|
7544
|
-
align:
|
|
7545
|
-
borderColor:
|
|
7546
|
-
bordered:
|
|
7547
|
-
borderless:
|
|
7548
|
-
caption:
|
|
7549
|
-
captionTop:
|
|
7550
|
-
children:
|
|
7551
|
-
className:
|
|
7586
|
+
align: PropTypes.oneOf(['bottom', 'middle', 'top']),
|
|
7587
|
+
borderColor: PropTypes.string,
|
|
7588
|
+
bordered: PropTypes.bool,
|
|
7589
|
+
borderless: PropTypes.bool,
|
|
7590
|
+
caption: PropTypes.oneOfType([PropTypes.string, PropTypes.oneOf(['top'])]),
|
|
7591
|
+
captionTop: PropTypes.string,
|
|
7592
|
+
children: PropTypes.node,
|
|
7593
|
+
className: PropTypes.string,
|
|
7552
7594
|
color: colorPropType,
|
|
7553
|
-
columns:
|
|
7554
|
-
footer:
|
|
7555
|
-
hover:
|
|
7556
|
-
items:
|
|
7557
|
-
responsive:
|
|
7558
|
-
|
|
7559
|
-
|
|
7595
|
+
columns: PropTypes.array,
|
|
7596
|
+
footer: PropTypes.array,
|
|
7597
|
+
hover: PropTypes.bool,
|
|
7598
|
+
items: PropTypes.array,
|
|
7599
|
+
responsive: PropTypes.oneOfType([
|
|
7600
|
+
PropTypes.bool,
|
|
7601
|
+
PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'xxl']),
|
|
7560
7602
|
]),
|
|
7561
|
-
small:
|
|
7562
|
-
striped:
|
|
7563
|
-
stripedColumns:
|
|
7564
|
-
tableFootProps:
|
|
7565
|
-
tableHeadProps:
|
|
7603
|
+
small: PropTypes.bool,
|
|
7604
|
+
striped: PropTypes.bool,
|
|
7605
|
+
stripedColumns: PropTypes.bool,
|
|
7606
|
+
tableFootProps: PropTypes.shape(__assign({}, CTableFoot.propTypes)),
|
|
7607
|
+
tableHeadProps: PropTypes.shape(__assign({}, CTableHead.propTypes)),
|
|
7566
7608
|
};
|
|
7567
7609
|
CTable.displayName = 'CTable';
|
|
7568
7610
|
|
|
@@ -7571,8 +7613,8 @@ var CTabContent = forwardRef(function (_a, ref) {
|
|
|
7571
7613
|
return (React__default.createElement("div", __assign({ className: classNames('tab-content', className) }, rest, { ref: ref }), children));
|
|
7572
7614
|
});
|
|
7573
7615
|
CTabContent.propTypes = {
|
|
7574
|
-
children:
|
|
7575
|
-
className:
|
|
7616
|
+
children: PropTypes.node,
|
|
7617
|
+
className: PropTypes.string,
|
|
7576
7618
|
};
|
|
7577
7619
|
CTabContent.displayName = 'CTabContent';
|
|
7578
7620
|
|
|
@@ -7586,11 +7628,11 @@ var CTabPane = forwardRef(function (_a, ref) {
|
|
|
7586
7628
|
}, className) }, rest, { ref: forkedRef }), children)); }));
|
|
7587
7629
|
});
|
|
7588
7630
|
CTabPane.propTypes = {
|
|
7589
|
-
children:
|
|
7590
|
-
className:
|
|
7591
|
-
onHide:
|
|
7592
|
-
onShow:
|
|
7593
|
-
visible:
|
|
7631
|
+
children: PropTypes.node,
|
|
7632
|
+
className: PropTypes.string,
|
|
7633
|
+
onHide: PropTypes.func,
|
|
7634
|
+
onShow: PropTypes.func,
|
|
7635
|
+
visible: PropTypes.bool,
|
|
7594
7636
|
};
|
|
7595
7637
|
CTabPane.displayName = 'CTabPane';
|
|
7596
7638
|
|
|
@@ -7635,17 +7677,17 @@ var CToast = forwardRef(function (_a, ref) {
|
|
|
7635
7677
|
}));
|
|
7636
7678
|
});
|
|
7637
7679
|
CToast.propTypes = {
|
|
7638
|
-
animation:
|
|
7639
|
-
autohide:
|
|
7640
|
-
children:
|
|
7641
|
-
className:
|
|
7680
|
+
animation: PropTypes.bool,
|
|
7681
|
+
autohide: PropTypes.bool,
|
|
7682
|
+
children: PropTypes.node,
|
|
7683
|
+
className: PropTypes.string,
|
|
7642
7684
|
color: colorPropType,
|
|
7643
|
-
delay:
|
|
7644
|
-
index:
|
|
7645
|
-
key:
|
|
7646
|
-
onClose:
|
|
7647
|
-
onShow:
|
|
7648
|
-
visible:
|
|
7685
|
+
delay: PropTypes.number,
|
|
7686
|
+
index: PropTypes.number,
|
|
7687
|
+
key: PropTypes.number,
|
|
7688
|
+
onClose: PropTypes.func,
|
|
7689
|
+
onShow: PropTypes.func,
|
|
7690
|
+
visible: PropTypes.bool,
|
|
7649
7691
|
};
|
|
7650
7692
|
CToast.displayName = 'CToast';
|
|
7651
7693
|
|
|
@@ -7654,8 +7696,8 @@ var CToastBody = forwardRef(function (_a, ref) {
|
|
|
7654
7696
|
return (React__default.createElement("div", __assign({ className: classNames('toast-body', className) }, rest, { ref: ref }), children));
|
|
7655
7697
|
});
|
|
7656
7698
|
CToastBody.propTypes = {
|
|
7657
|
-
children:
|
|
7658
|
-
className:
|
|
7699
|
+
children: PropTypes.node,
|
|
7700
|
+
className: PropTypes.string,
|
|
7659
7701
|
};
|
|
7660
7702
|
CToastBody.displayName = 'CToastBody';
|
|
7661
7703
|
|
|
@@ -7664,7 +7706,7 @@ var CToastClose = forwardRef(function (_a, ref) {
|
|
|
7664
7706
|
var setVisible = useContext(CToastContext).setVisible;
|
|
7665
7707
|
return Component ? (React__default.createElement(Component, __assign({ onClick: function () { return setVisible(false); } }, rest, { ref: ref }), children)) : (React__default.createElement(CCloseButton, __assign({ onClick: function () { return setVisible(false); } }, rest, { ref: ref })));
|
|
7666
7708
|
});
|
|
7667
|
-
CToastClose.propTypes = __assign(__assign({}, CCloseButton.propTypes), { component:
|
|
7709
|
+
CToastClose.propTypes = __assign(__assign({}, CCloseButton.propTypes), { component: PropTypes.elementType });
|
|
7668
7710
|
CToastClose.displayName = 'CToastClose';
|
|
7669
7711
|
|
|
7670
7712
|
var CToastHeader = forwardRef(function (_a, ref) {
|
|
@@ -7674,9 +7716,9 @@ var CToastHeader = forwardRef(function (_a, ref) {
|
|
|
7674
7716
|
closeButton && React__default.createElement(CToastClose, null)));
|
|
7675
7717
|
});
|
|
7676
7718
|
CToastHeader.propTypes = {
|
|
7677
|
-
children:
|
|
7678
|
-
className:
|
|
7679
|
-
closeButton:
|
|
7719
|
+
children: PropTypes.node,
|
|
7720
|
+
className: PropTypes.string,
|
|
7721
|
+
closeButton: PropTypes.bool,
|
|
7680
7722
|
};
|
|
7681
7723
|
CToastHeader.displayName = 'CToastHeader';
|
|
7682
7724
|
|
|
@@ -7712,11 +7754,11 @@ var CToaster = forwardRef(function (_a, ref) {
|
|
|
7712
7754
|
toasts.map(function (toast) { return React__default.cloneElement(toast, { visible: true }); }))) : null));
|
|
7713
7755
|
});
|
|
7714
7756
|
CToaster.propTypes = {
|
|
7715
|
-
children:
|
|
7716
|
-
className:
|
|
7717
|
-
placement:
|
|
7718
|
-
|
|
7719
|
-
|
|
7757
|
+
children: PropTypes.node,
|
|
7758
|
+
className: PropTypes.string,
|
|
7759
|
+
placement: PropTypes.oneOfType([
|
|
7760
|
+
PropTypes.string,
|
|
7761
|
+
PropTypes.oneOf([
|
|
7720
7762
|
'top-start',
|
|
7721
7763
|
'top-center',
|
|
7722
7764
|
'top-end',
|
|
@@ -7728,34 +7770,64 @@ CToaster.propTypes = {
|
|
|
7728
7770
|
'bottom-end',
|
|
7729
7771
|
]),
|
|
7730
7772
|
]),
|
|
7731
|
-
push:
|
|
7773
|
+
push: PropTypes.any,
|
|
7732
7774
|
};
|
|
7733
7775
|
CToaster.displayName = 'CToaster';
|
|
7734
7776
|
|
|
7777
|
+
var getPlacement = function (placement, element) {
|
|
7778
|
+
console.log(element);
|
|
7779
|
+
switch (placement) {
|
|
7780
|
+
case 'right': {
|
|
7781
|
+
return isRTL(element) ? 'left' : 'right';
|
|
7782
|
+
}
|
|
7783
|
+
case 'left': {
|
|
7784
|
+
return isRTL(element) ? 'right' : 'left';
|
|
7785
|
+
}
|
|
7786
|
+
default: {
|
|
7787
|
+
return placement;
|
|
7788
|
+
}
|
|
7789
|
+
}
|
|
7790
|
+
};
|
|
7735
7791
|
var CTooltip = function (_a) {
|
|
7736
|
-
var children = _a.children, className = _a.className, content = _a.content, _b = _a.offset, offset = _b === void 0 ? [0,
|
|
7737
|
-
var tooltipRef = useRef();
|
|
7792
|
+
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"]);
|
|
7793
|
+
var tooltipRef = useRef(null);
|
|
7794
|
+
var togglerRef = useRef(null);
|
|
7795
|
+
var popper = useRef();
|
|
7738
7796
|
var _e = useState(visible), _visible = _e[0], setVisible = _e[1];
|
|
7739
|
-
var _f = useState(null), referenceElement = _f[0], setReferenceElement = _f[1];
|
|
7740
|
-
var _g = useState(null), popperElement = _g[0], setPopperElement = _g[1];
|
|
7741
|
-
var _h = useState(null), arrowElement = _h[0], setArrowElement = _h[1];
|
|
7742
|
-
var _j = usePopper(referenceElement, popperElement, {
|
|
7743
|
-
modifiers: [
|
|
7744
|
-
{ name: 'arrow', options: { element: arrowElement } },
|
|
7745
|
-
{
|
|
7746
|
-
name: 'offset',
|
|
7747
|
-
options: {
|
|
7748
|
-
offset: offset,
|
|
7749
|
-
},
|
|
7750
|
-
},
|
|
7751
|
-
],
|
|
7752
|
-
placement: placement,
|
|
7753
|
-
}), styles = _j.styles, attributes = _j.attributes;
|
|
7754
7797
|
useEffect(function () {
|
|
7755
7798
|
setVisible(visible);
|
|
7756
7799
|
}, [visible]);
|
|
7800
|
+
useEffect(function () {
|
|
7801
|
+
if (_visible) {
|
|
7802
|
+
initPopper();
|
|
7803
|
+
}
|
|
7804
|
+
return function () {
|
|
7805
|
+
destroyPopper();
|
|
7806
|
+
};
|
|
7807
|
+
}, [_visible]);
|
|
7808
|
+
var initPopper = function () {
|
|
7809
|
+
if (togglerRef.current && tooltipRef.current) {
|
|
7810
|
+
popper.current = createPopper(togglerRef.current, tooltipRef.current, {
|
|
7811
|
+
modifiers: [
|
|
7812
|
+
{
|
|
7813
|
+
name: 'offset',
|
|
7814
|
+
options: {
|
|
7815
|
+
offset: offset,
|
|
7816
|
+
},
|
|
7817
|
+
},
|
|
7818
|
+
],
|
|
7819
|
+
placement: getPlacement(placement, togglerRef.current),
|
|
7820
|
+
});
|
|
7821
|
+
}
|
|
7822
|
+
};
|
|
7823
|
+
var destroyPopper = function () {
|
|
7824
|
+
if (popper.current) {
|
|
7825
|
+
popper.current.destroy();
|
|
7826
|
+
}
|
|
7827
|
+
popper.current = undefined;
|
|
7828
|
+
};
|
|
7757
7829
|
return (React__default.createElement(React__default.Fragment, null,
|
|
7758
|
-
React__default.cloneElement(children, __assign(__assign(__assign({ ref:
|
|
7830
|
+
React__default.cloneElement(children, __assign(__assign(__assign({ ref: togglerRef }, ((trigger === 'click' || trigger.includes('click')) && {
|
|
7759
7831
|
onClick: function () { return setVisible(!_visible); },
|
|
7760
7832
|
})), ((trigger === 'focus' || trigger.includes('focus')) && {
|
|
7761
7833
|
onFocus: function () { return setVisible(true); },
|
|
@@ -7765,24 +7837,26 @@ var CTooltip = function (_a) {
|
|
|
7765
7837
|
onMouseLeave: function () { return setVisible(false); },
|
|
7766
7838
|
}))),
|
|
7767
7839
|
typeof window !== 'undefined' &&
|
|
7768
|
-
createPortal(React__default.createElement(Transition$1, { in: _visible, mountOnEnter: true,
|
|
7840
|
+
createPortal(React__default.createElement(Transition$1, { in: _visible, mountOnEnter: true, onEnter: onShow, onExit: onHide, timeout: {
|
|
7769
7841
|
enter: 0,
|
|
7770
7842
|
exit: 200,
|
|
7771
|
-
}, unmountOnExit: true }, function (state) { return (React__default.createElement("div", __assign({ className: classNames('tooltip', "bs-
|
|
7843
|
+
}, unmountOnExit: true }, function (state) { return (React__default.createElement("div", __assign({ className: classNames('tooltip', "bs-tooltip-".concat(getPlacement(placement, togglerRef.current)
|
|
7844
|
+
.replace('left', 'start')
|
|
7845
|
+
.replace('right', 'end')), 'fade', {
|
|
7772
7846
|
show: state === 'entered',
|
|
7773
|
-
}, className), ref:
|
|
7774
|
-
React__default.createElement("div", {
|
|
7847
|
+
}, className), ref: tooltipRef, role: "tooltip" }, rest),
|
|
7848
|
+
React__default.createElement("div", { "data-popper-arrow": true, className: "tooltip-arrow" }),
|
|
7775
7849
|
React__default.createElement("div", { className: "tooltip-inner" }, content))); }), document.body)));
|
|
7776
7850
|
};
|
|
7777
7851
|
CTooltip.propTypes = {
|
|
7778
|
-
children:
|
|
7779
|
-
content:
|
|
7780
|
-
offset:
|
|
7781
|
-
onHide:
|
|
7782
|
-
onShow:
|
|
7783
|
-
placement:
|
|
7852
|
+
children: PropTypes.node,
|
|
7853
|
+
content: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7854
|
+
offset: PropTypes.any,
|
|
7855
|
+
onHide: PropTypes.func,
|
|
7856
|
+
onShow: PropTypes.func,
|
|
7857
|
+
placement: PropTypes.oneOf(['auto', 'top', 'right', 'bottom', 'left']),
|
|
7784
7858
|
trigger: triggerPropType,
|
|
7785
|
-
visible:
|
|
7859
|
+
visible: PropTypes.bool,
|
|
7786
7860
|
};
|
|
7787
7861
|
CTooltip.displayName = 'CTooltip';
|
|
7788
7862
|
|
|
@@ -7798,12 +7872,12 @@ var CWidgetStatsA = forwardRef(function (_a, ref) {
|
|
|
7798
7872
|
chart));
|
|
7799
7873
|
});
|
|
7800
7874
|
CWidgetStatsA.propTypes = {
|
|
7801
|
-
action:
|
|
7802
|
-
chart:
|
|
7803
|
-
className:
|
|
7875
|
+
action: PropTypes.node,
|
|
7876
|
+
chart: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7877
|
+
className: PropTypes.string,
|
|
7804
7878
|
color: colorPropType,
|
|
7805
|
-
title:
|
|
7806
|
-
value:
|
|
7879
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7880
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.number]),
|
|
7807
7881
|
};
|
|
7808
7882
|
CWidgetStatsA.displayName = 'CWidgetStatsA';
|
|
7809
7883
|
|
|
@@ -7817,13 +7891,13 @@ var CWidgetStatsB = forwardRef(function (_a, ref) {
|
|
|
7817
7891
|
text && (React__default.createElement("small", { className: inverse ? 'text-medium-emphasis-inverse' : 'text-medium-emphasis' }, text)))));
|
|
7818
7892
|
});
|
|
7819
7893
|
CWidgetStatsB.propTypes = {
|
|
7820
|
-
className:
|
|
7894
|
+
className: PropTypes.string,
|
|
7821
7895
|
color: colorPropType,
|
|
7822
|
-
inverse:
|
|
7823
|
-
progress:
|
|
7824
|
-
text:
|
|
7825
|
-
title:
|
|
7826
|
-
value:
|
|
7896
|
+
inverse: PropTypes.bool,
|
|
7897
|
+
progress: PropTypes.object,
|
|
7898
|
+
text: PropTypes.string,
|
|
7899
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7900
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.number]),
|
|
7827
7901
|
};
|
|
7828
7902
|
CWidgetStatsB.displayName = 'CWidgetCWidgetStatsB';
|
|
7829
7903
|
|
|
@@ -7837,13 +7911,13 @@ var CWidgetStatsC = forwardRef(function (_a, ref) {
|
|
|
7837
7911
|
React__default.createElement(CProgress, __assign({ className: "mt-3 mb-0", height: 4 }, (inverse && { white: true }), progress)))));
|
|
7838
7912
|
});
|
|
7839
7913
|
CWidgetStatsC.propTypes = {
|
|
7840
|
-
className:
|
|
7914
|
+
className: PropTypes.string,
|
|
7841
7915
|
color: colorPropType,
|
|
7842
|
-
icon:
|
|
7843
|
-
inverse:
|
|
7844
|
-
progress:
|
|
7845
|
-
title:
|
|
7846
|
-
value:
|
|
7916
|
+
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7917
|
+
inverse: PropTypes.bool,
|
|
7918
|
+
progress: PropTypes.object,
|
|
7919
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7920
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.number]),
|
|
7847
7921
|
};
|
|
7848
7922
|
CWidgetStatsC.displayName = 'CWidgetStatsCWidgetStatsC';
|
|
7849
7923
|
|
|
@@ -7866,11 +7940,11 @@ var CWidgetStatsD = forwardRef(function (_a, ref) {
|
|
|
7866
7940
|
}))));
|
|
7867
7941
|
});
|
|
7868
7942
|
CWidgetStatsD.propTypes = {
|
|
7869
|
-
chart:
|
|
7870
|
-
className:
|
|
7943
|
+
chart: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7944
|
+
className: PropTypes.string,
|
|
7871
7945
|
color: colorPropType,
|
|
7872
|
-
icon:
|
|
7873
|
-
values:
|
|
7946
|
+
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7947
|
+
values: PropTypes.arrayOf(PropTypes.any),
|
|
7874
7948
|
};
|
|
7875
7949
|
CWidgetStatsD.displayName = 'CWidgetStatsD';
|
|
7876
7950
|
|
|
@@ -7883,11 +7957,11 @@ var CWidgetStatsE = forwardRef(function (_a, ref) {
|
|
|
7883
7957
|
chart)));
|
|
7884
7958
|
});
|
|
7885
7959
|
CWidgetStatsE.propTypes = {
|
|
7886
|
-
children:
|
|
7887
|
-
chart:
|
|
7888
|
-
className:
|
|
7889
|
-
title:
|
|
7890
|
-
value:
|
|
7960
|
+
children: PropTypes.node,
|
|
7961
|
+
chart: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7962
|
+
className: PropTypes.string,
|
|
7963
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7964
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.number]),
|
|
7891
7965
|
};
|
|
7892
7966
|
CWidgetStatsE.displayName = 'CWidgetStatsE';
|
|
7893
7967
|
|
|
@@ -7902,13 +7976,13 @@ var CWidgetStatsF = forwardRef(function (_a, ref) {
|
|
|
7902
7976
|
footer && React__default.createElement(CCardFooter, null, footer)));
|
|
7903
7977
|
});
|
|
7904
7978
|
CWidgetStatsF.propTypes = {
|
|
7905
|
-
className:
|
|
7979
|
+
className: PropTypes.string,
|
|
7906
7980
|
color: colorPropType,
|
|
7907
|
-
footer:
|
|
7908
|
-
icon:
|
|
7909
|
-
padding:
|
|
7910
|
-
title:
|
|
7911
|
-
value:
|
|
7981
|
+
footer: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7982
|
+
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7983
|
+
padding: PropTypes.bool,
|
|
7984
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
7985
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.number]),
|
|
7912
7986
|
};
|
|
7913
7987
|
CWidgetStatsF.displayName = 'CWidgetStatsF';
|
|
7914
7988
|
|