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