@coreui/react-pro 4.1.0 → 4.1.4

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.es.js CHANGED
@@ -358,6 +358,8 @@ var ReactPropTypesSecret$7 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
358
358
 
359
359
  var ReactPropTypesSecret_1$1 = ReactPropTypesSecret$7;
360
360
 
361
+ var has$4 = Function.call.bind(Object.prototype.hasOwnProperty);
362
+
361
363
  /**
362
364
  * Copyright (c) 2013-present, Facebook, Inc.
363
365
  *
@@ -370,7 +372,7 @@ var printWarning$4 = function() {};
370
372
  if (process.env.NODE_ENV !== 'production') {
371
373
  var ReactPropTypesSecret$6 = ReactPropTypesSecret_1$1;
372
374
  var loggedTypeFailures$1 = {};
373
- var has$3 = Function.call.bind(Object.prototype.hasOwnProperty);
375
+ var has$3 = has$4;
374
376
 
375
377
  printWarning$4 = function(text) {
376
378
  var message = 'Warning: ' + text;
@@ -382,7 +384,7 @@ if (process.env.NODE_ENV !== 'production') {
382
384
  // This error was thrown as a convenience so that you can use this stack
383
385
  // to find the callsite that caused this warning to fire.
384
386
  throw new Error(message);
385
- } catch (x) {}
387
+ } catch (x) { /**/ }
386
388
  };
387
389
  }
388
390
 
@@ -411,7 +413,8 @@ function checkPropTypes$3(typeSpecs, values, location, componentName, getStack)
411
413
  if (typeof typeSpecs[typeSpecName] !== 'function') {
412
414
  var err = Error(
413
415
  (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
414
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
416
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
417
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
415
418
  );
416
419
  err.name = 'Invariant Violation';
417
420
  throw err;
@@ -470,9 +473,9 @@ var ReactIs$3 = reactIs$1.exports;
470
473
  var assign$1 = objectAssign$1;
471
474
 
472
475
  var ReactPropTypesSecret$5 = ReactPropTypesSecret_1$1;
476
+ var has$2 = has$4;
473
477
  var checkPropTypes$2 = checkPropTypes_1$1;
474
478
 
475
- var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
476
479
  var printWarning$3 = function() {};
477
480
 
478
481
  if (process.env.NODE_ENV !== 'production') {
@@ -573,6 +576,7 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
573
576
  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
574
577
  var ReactPropTypes = {
575
578
  array: createPrimitiveTypeChecker('array'),
579
+ bigint: createPrimitiveTypeChecker('bigint'),
576
580
  bool: createPrimitiveTypeChecker('boolean'),
577
581
  func: createPrimitiveTypeChecker('function'),
578
582
  number: createPrimitiveTypeChecker('number'),
@@ -618,8 +622,9 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
618
622
  * is prohibitively expensive if they are created too often, such as what
619
623
  * happens in oneOfType() for any type before the one that matched.
620
624
  */
621
- function PropTypeError(message) {
625
+ function PropTypeError(message, data) {
622
626
  this.message = message;
627
+ this.data = data && typeof data === 'object' ? data: {};
623
628
  this.stack = '';
624
629
  }
625
630
  // Make `instanceof Error` still work for returned errors.
@@ -654,7 +659,7 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
654
659
  ) {
655
660
  printWarning$3(
656
661
  'You are manually calling a React.PropTypes validation ' +
657
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
662
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
658
663
  'and will throw in the standalone `prop-types` package. ' +
659
664
  'You may be seeing this warning due to a third-party PropTypes ' +
660
665
  'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
@@ -693,7 +698,10 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
693
698
  // 'of type `object`'.
694
699
  var preciseType = getPreciseType(propValue);
695
700
 
696
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
701
+ return new PropTypeError(
702
+ 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
703
+ {expectedType: expectedType}
704
+ );
697
705
  }
698
706
  return null;
699
707
  }
@@ -837,14 +845,19 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
837
845
  }
838
846
 
839
847
  function validate(props, propName, componentName, location, propFullName) {
848
+ var expectedTypes = [];
840
849
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
841
850
  var checker = arrayOfTypeCheckers[i];
842
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$5) == null) {
851
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$5);
852
+ if (checkerResult == null) {
843
853
  return null;
844
854
  }
855
+ if (checkerResult.data && has$2(checkerResult.data, 'expectedType')) {
856
+ expectedTypes.push(checkerResult.data.expectedType);
857
+ }
845
858
  }
846
-
847
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
859
+ var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
860
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
848
861
  }
849
862
  return createChainableTypeChecker(validate);
850
863
  }
@@ -859,6 +872,13 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
859
872
  return createChainableTypeChecker(validate);
860
873
  }
861
874
 
875
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
876
+ return new PropTypeError(
877
+ (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
878
+ 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
879
+ );
880
+ }
881
+
862
882
  function createShapeTypeChecker(shapeTypes) {
863
883
  function validate(props, propName, componentName, location, propFullName) {
864
884
  var propValue = props[propName];
@@ -868,8 +888,8 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
868
888
  }
869
889
  for (var key in shapeTypes) {
870
890
  var checker = shapeTypes[key];
871
- if (!checker) {
872
- continue;
891
+ if (typeof checker !== 'function') {
892
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
873
893
  }
874
894
  var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$5);
875
895
  if (error) {
@@ -888,16 +908,18 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
888
908
  if (propType !== 'object') {
889
909
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
890
910
  }
891
- // We need to check all keys in case some are required but missing from
892
- // props.
911
+ // We need to check all keys in case some are required but missing from props.
893
912
  var allKeys = assign$1({}, props[propName], shapeTypes);
894
913
  for (var key in allKeys) {
895
914
  var checker = shapeTypes[key];
915
+ if (has$2(shapeTypes, key) && typeof checker !== 'function') {
916
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
917
+ }
896
918
  if (!checker) {
897
919
  return new PropTypeError(
898
920
  'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
899
921
  '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
900
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
922
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
901
923
  );
902
924
  }
903
925
  var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$5);
@@ -1082,6 +1104,7 @@ var factoryWithThrowingShims$1 = function() {
1082
1104
  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1083
1105
  var ReactPropTypes = {
1084
1106
  array: shim,
1107
+ bigint: shim,
1085
1108
  bool: shim,
1086
1109
  func: shim,
1087
1110
  number: shim,
@@ -2360,6 +2383,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
2360
2383
  var CSSTransition$1 = CSSTransition;
2361
2384
 
2362
2385
  // code borrowed from https://github.com/reach/reach-ui
2386
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2363
2387
  function useForkedRef() {
2364
2388
  var refs = [];
2365
2389
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -2369,6 +2393,7 @@ function useForkedRef() {
2369
2393
  if (refs.every(function (ref) { return ref == null; })) {
2370
2394
  return null;
2371
2395
  }
2396
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2372
2397
  return function (node) {
2373
2398
  refs.forEach(function (ref) {
2374
2399
  assignRef(ref, node);
@@ -2376,7 +2401,10 @@ function useForkedRef() {
2376
2401
  };
2377
2402
  }, refs);
2378
2403
  }
2379
- function assignRef(ref, value) {
2404
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2405
+ function assignRef(ref,
2406
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2407
+ value) {
2380
2408
  if (ref == null)
2381
2409
  return;
2382
2410
  if (isFunction(ref)) {
@@ -2391,6 +2419,7 @@ function assignRef(ref, value) {
2391
2419
  }
2392
2420
  }
2393
2421
  }
2422
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
2394
2423
  function isFunction(value) {
2395
2424
  return !!(value && {}.toString.call(value) == '[object Function]');
2396
2425
  }
@@ -2574,7 +2603,7 @@ var textColorsPropType = PropTypes$1.oneOfType([
2574
2603
  PropTypes$1.oneOf(['white', 'muted']),
2575
2604
  PropTypes$1.string,
2576
2605
  ]);
2577
- var triggerPropType = PropTypes$1.oneOf(['hover', 'focus', 'click']);
2606
+ var triggerPropType = PropTypes$1.oneOf(['hover', 'focus', 'click', 'click-init']);
2578
2607
 
2579
2608
  var CCloseButton = forwardRef(function (_a, ref) {
2580
2609
  var className = _a.className, disabled = _a.disabled, white = _a.white, rest = __rest$1(_a, ["className", "disabled", "white"]);
@@ -3744,13 +3773,21 @@ function mapToStyles(_ref2) {
3744
3773
  adaptive = _ref2.adaptive,
3745
3774
  roundOffsets = _ref2.roundOffsets,
3746
3775
  isFixed = _ref2.isFixed;
3776
+ var _offsets$x = offsets.x,
3777
+ x = _offsets$x === void 0 ? 0 : _offsets$x,
3778
+ _offsets$y = offsets.y,
3779
+ y = _offsets$y === void 0 ? 0 : _offsets$y;
3747
3780
 
3748
- var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
3749
- _ref3$x = _ref3.x,
3750
- x = _ref3$x === void 0 ? 0 : _ref3$x,
3751
- _ref3$y = _ref3.y,
3752
- y = _ref3$y === void 0 ? 0 : _ref3$y;
3781
+ var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
3782
+ x: x,
3783
+ y: y
3784
+ }) : {
3785
+ x: x,
3786
+ y: y
3787
+ };
3753
3788
 
3789
+ x = _ref3.x;
3790
+ y = _ref3.y;
3754
3791
  var hasX = offsets.hasOwnProperty('x');
3755
3792
  var hasY = offsets.hasOwnProperty('y');
3756
3793
  var sideX = left;
@@ -3795,6 +3832,17 @@ function mapToStyles(_ref2) {
3795
3832
  position: position
3796
3833
  }, adaptive && unsetSides);
3797
3834
 
3835
+ var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
3836
+ x: x,
3837
+ y: y
3838
+ }) : {
3839
+ x: x,
3840
+ y: y
3841
+ };
3842
+
3843
+ x = _ref4.x;
3844
+ y = _ref4.y;
3845
+
3798
3846
  if (gpuAcceleration) {
3799
3847
  var _Object$assign;
3800
3848
 
@@ -3804,9 +3852,9 @@ function mapToStyles(_ref2) {
3804
3852
  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
3805
3853
  }
3806
3854
 
3807
- function computeStyles(_ref4) {
3808
- var state = _ref4.state,
3809
- options = _ref4.options;
3855
+ function computeStyles(_ref5) {
3856
+ var state = _ref5.state,
3857
+ options = _ref5.options;
3810
3858
  var _options$gpuAccelerat = options.gpuAcceleration,
3811
3859
  gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
3812
3860
  _options$adaptive = options.adaptive,
@@ -4105,7 +4153,7 @@ function getClippingParents(element) {
4105
4153
 
4106
4154
 
4107
4155
  return clippingParents.filter(function (clippingParent) {
4108
- return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body' && (canEscapeClipping ? getComputedStyle$1(clippingParent).position !== 'static' : true);
4156
+ return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
4109
4157
  });
4110
4158
  } // Gets the maximum area that the element is visible in due to any number of
4111
4159
  // clipping parents
@@ -5605,11 +5653,11 @@ var CDropdown = forwardRef(function (_a, ref) {
5605
5653
  useEffect(function () {
5606
5654
  _visible &&
5607
5655
  setTimeout(function () {
5608
- window.addEventListener('click', handleClickOutside);
5656
+ window.addEventListener('mouseup', handleClickOutside);
5609
5657
  window.addEventListener('keyup', handleKeyup);
5610
5658
  });
5611
5659
  return function () {
5612
- window.removeEventListener('click', handleClickOutside);
5660
+ window.removeEventListener('mouseup', handleClickOutside);
5613
5661
  window.removeEventListener('keyup', handleKeyup);
5614
5662
  };
5615
5663
  }, [_visible]);
@@ -5803,6 +5851,46 @@ CDropdownToggle.propTypes = {
5803
5851
  };
5804
5852
  CDropdownToggle.displayName = 'CDropdownToggle';
5805
5853
 
5854
+ var CDropdownToggleCustom = function (_a) {
5855
+ var children = _a.children, className = _a.className, disabled = _a.disabled, _b = _a.trigger, trigger = _b === void 0 ? 'click' : _b, rest = __rest$1(_a, ["children", "className", "disabled", "trigger"]);
5856
+ var _c = useContext(CDropdownContext), popper = _c.popper, visible = _c.visible, setVisible = _c.setVisible;
5857
+ var _className = classNames$1(className);
5858
+ var triggers = __assign$1(__assign$1(__assign$1({}, ((trigger === 'click' || trigger.includes('click')) &&
5859
+ !disabled && {
5860
+ onClick: function (event) {
5861
+ event.preventDefault();
5862
+ setVisible(!visible);
5863
+ },
5864
+ })), ((trigger === 'click-init' || trigger.includes('click-init')) &&
5865
+ !disabled && {
5866
+ onClick: function (event) {
5867
+ event.preventDefault();
5868
+ setVisible(true);
5869
+ },
5870
+ })), ((trigger === 'focus' || trigger.includes('focus')) &&
5871
+ !disabled && {
5872
+ onFocus: function () { return setVisible(true); },
5873
+ onBlur: function () { return setVisible(false); },
5874
+ }));
5875
+ var togglerProps = __assign$1({ className: _className, 'aria-expanded': visible }, triggers);
5876
+ // We use any because Toggler can be `a` as well as `button`.
5877
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5878
+ var Toggler = function (ref) {
5879
+ return (React__default.createElement("div", __assign$1({}, togglerProps, rest, { ref: ref }), children));
5880
+ };
5881
+ return popper ? React__default.createElement(Reference, null, function (_a) {
5882
+ var ref = _a.ref;
5883
+ return Toggler(ref);
5884
+ }) : Toggler();
5885
+ };
5886
+ CDropdownToggleCustom.propTypes = {
5887
+ children: PropTypes$1.node,
5888
+ className: PropTypes$1.string,
5889
+ disabled: PropTypes$1.bool,
5890
+ trigger: triggerPropType,
5891
+ };
5892
+ CDropdownToggleCustom.displayName = 'CDropdownToggleCustom';
5893
+
5806
5894
  var BREAKPOINTS$3 = [
5807
5895
  'xxl',
5808
5896
  'xl',
@@ -6461,11 +6549,12 @@ CModalDialog.displayName = 'CModalDialog';
6461
6549
 
6462
6550
  var CModalContext = createContext({});
6463
6551
  var CModal = forwardRef(function (_a, ref) {
6464
- var children = _a.children, alignment = _a.alignment, _b = _a.backdrop, backdrop = _b === void 0 ? true : _b, className = _a.className, _c = _a.duration, duration = _c === void 0 ? 150 : _c, fullscreen = _a.fullscreen, _d = _a.keyboard, keyboard = _d === void 0 ? true : _d, onClose = _a.onClose, onClosePrevented = _a.onClosePrevented, onShow = _a.onShow, _e = _a.portal, portal = _e === void 0 ? true : _e, scrollable = _a.scrollable, size = _a.size, _f = _a.transition, transition = _f === void 0 ? true : _f, visible = _a.visible;
6552
+ var children = _a.children, alignment = _a.alignment, _b = _a.backdrop, backdrop = _b === void 0 ? true : _b, className = _a.className, _c = _a.duration, duration = _c === void 0 ? 150 : _c, fullscreen = _a.fullscreen, _d = _a.keyboard, keyboard = _d === void 0 ? true : _d, onClose = _a.onClose, onClosePrevented = _a.onClosePrevented, onShow = _a.onShow, _e = _a.portal, portal = _e === void 0 ? true : _e, scrollable = _a.scrollable, size = _a.size, _f = _a.transition, transition = _f === void 0 ? true : _f, _g = _a.unmountOnClose, unmountOnClose = _g === void 0 ? true : _g, visible = _a.visible;
6465
6553
  var modalRef = useRef(null);
6554
+ var modalContentRef = useRef(null);
6466
6555
  var forkedRef = useForkedRef(ref, modalRef);
6467
- var _g = useState(visible), _visible = _g[0], setVisible = _g[1];
6468
- var _h = useState(false), staticBackdrop = _h[0], setStaticBackdrop = _h[1];
6556
+ var _h = useState(visible), _visible = _h[0], setVisible = _h[1];
6557
+ var _j = useState(false), staticBackdrop = _j[0], setStaticBackdrop = _j[1];
6469
6558
  useEffect(function () {
6470
6559
  setVisible(visible);
6471
6560
  }, [visible]);
@@ -6473,6 +6562,14 @@ var CModal = forwardRef(function (_a, ref) {
6473
6562
  visible: _visible,
6474
6563
  setVisible: setVisible,
6475
6564
  };
6565
+ useEffect(function () {
6566
+ modalRef.current && modalRef.current.addEventListener('click', handleClickOutside);
6567
+ modalRef.current && modalRef.current.addEventListener('keyup', handleKeyDown);
6568
+ return function () {
6569
+ modalRef.current && modalRef.current.removeEventListener('click', handleClickOutside);
6570
+ modalRef.current && modalRef.current.removeEventListener('keyup', handleKeyDown);
6571
+ };
6572
+ }, [_visible]);
6476
6573
  var handleDismiss = function () {
6477
6574
  if (backdrop === 'static') {
6478
6575
  return setStaticBackdrop(true);
@@ -6510,6 +6607,12 @@ var CModal = forwardRef(function (_a, ref) {
6510
6607
  }
6511
6608
  return function () { return document.body.classList.remove('modal-open'); };
6512
6609
  }, [_visible]);
6610
+ var handleClickOutside = function (event) {
6611
+ if (modalContentRef.current &&
6612
+ !modalContentRef.current.contains(event.target)) {
6613
+ handleDismiss();
6614
+ }
6615
+ };
6513
6616
  var handleKeyDown = useCallback(function (event) {
6514
6617
  if (event.key === 'Escape' && keyboard) {
6515
6618
  return handleDismiss();
@@ -6518,17 +6621,16 @@ var CModal = forwardRef(function (_a, ref) {
6518
6621
  var modal = function (ref, transitionClass) {
6519
6622
  return (React__default.createElement(CModalContext.Provider, { value: contextValues },
6520
6623
  React__default.createElement("div", { className: classNames$1(_className, transitionClass), tabIndex: -1, role: "dialog", ref: ref },
6521
- React__default.createElement(CModalDialog, { alignment: alignment, fullscreen: fullscreen, scrollable: scrollable, size: size, onClick: function (event) { return event.stopPropagation(); } },
6522
- React__default.createElement(CModalContent, null, children)))));
6624
+ React__default.createElement(CModalDialog, { alignment: alignment, fullscreen: fullscreen, scrollable: scrollable, size: size },
6625
+ React__default.createElement(CModalContent, { ref: modalContentRef }, children)))));
6523
6626
  };
6524
6627
  return (React__default.createElement(React__default.Fragment, null,
6525
- React__default.createElement("div", { onClick: handleDismiss, onKeyDown: handleKeyDown },
6526
- React__default.createElement(Transition$1, { in: _visible, mountOnEnter: true, onEnter: onShow, onExit: onClose, unmountOnExit: true, timeout: !transition ? 0 : duration }, function (state) {
6527
- var transitionClass = getTransitionClass(state);
6528
- return typeof window !== 'undefined' && portal
6529
- ? createPortal(modal(forkedRef, transitionClass), document.body)
6530
- : modal(forkedRef, transitionClass);
6531
- })),
6628
+ React__default.createElement(Transition$1, { in: _visible, mountOnEnter: true, onEnter: onShow, onExit: onClose, unmountOnExit: unmountOnClose, timeout: !transition ? 0 : duration }, function (state) {
6629
+ var transitionClass = getTransitionClass(state);
6630
+ return typeof window !== 'undefined' && portal
6631
+ ? createPortal(modal(forkedRef, transitionClass), document.body)
6632
+ : modal(forkedRef, transitionClass);
6633
+ }),
6532
6634
  typeof window !== 'undefined' && portal
6533
6635
  ? backdrop && createPortal(React__default.createElement(CBackdrop, { visible: _visible }), document.body)
6534
6636
  : backdrop && React__default.createElement(CBackdrop, { visible: _visible })));
@@ -6551,6 +6653,7 @@ CModal.propTypes = {
6551
6653
  scrollable: PropTypes$1.bool,
6552
6654
  size: PropTypes$1.oneOf(['sm', 'lg', 'xl']),
6553
6655
  transition: PropTypes$1.bool,
6656
+ unmountOnClose: PropTypes$1.bool,
6554
6657
  visible: PropTypes$1.bool,
6555
6658
  };
6556
6659
  CModal.displayName = 'CModal';
@@ -7334,12 +7437,12 @@ var CPopover = function (_a) {
7334
7437
  };
7335
7438
  CPopover.propTypes = {
7336
7439
  children: PropTypes$1.any,
7337
- content: PropTypes$1.node,
7440
+ content: PropTypes$1.oneOfType([PropTypes$1.string, PropTypes$1.node]),
7338
7441
  placement: PropTypes$1.oneOf(['auto', 'top', 'right', 'bottom', 'left']),
7339
7442
  offset: PropTypes$1.any,
7340
7443
  onHide: PropTypes$1.func,
7341
7444
  onShow: PropTypes$1.func,
7342
- title: PropTypes$1.string,
7445
+ title: PropTypes$1.oneOfType([PropTypes$1.string, PropTypes$1.node]),
7343
7446
  trigger: triggerPropType,
7344
7447
  visible: PropTypes$1.bool,
7345
7448
  };
@@ -7646,6 +7749,14 @@ CSidebarHeader.propTypes = {
7646
7749
  };
7647
7750
  CSidebarHeader.displayName = 'CSidebarHeader';
7648
7751
 
7752
+ const cilArrowBottom = ["512 512","<polygon fill='var(--ci-primary-color, currentColor)' points='367.997 338.75 271.999 434.747 271.999 17.503 239.999 17.503 239.999 434.745 144.003 338.75 121.376 361.377 256 496 390.624 361.377 367.997 338.75' class='ci-primary'/>"];
7753
+
7754
+ const cilArrowTop = ["512 512","<polygon fill='var(--ci-primary-color, currentColor)' points='390.624 150.625 256 16 121.376 150.625 144.004 173.252 240.001 77.254 240.001 495.236 272.001 495.236 272.001 77.257 367.996 173.252 390.624 150.625' class='ci-primary'/>"];
7755
+
7756
+ const cilFilterX = ["512 512","<polygon fill='var(--ci-primary-color, currentColor)' points='40 16 40 53.828 109.024 136 150.815 136 76.896 48 459.51 48 304 242.388 304 401.373 241.373 464 240 464 240 368 208 368 208 496 254.627 496 336 414.627 336 253.612 496 53.612 496 16 40 16' class='ci-primary'/><polygon fill='var(--ci-primary-color, currentColor)' points='166.403 248.225 226.864 187.763 204.237 165.135 143.775 225.597 83.313 165.135 60.687 187.763 121.148 248.225 60.687 308.687 83.313 331.314 143.775 270.852 204.237 331.314 226.864 308.687 166.403 248.225' class='ci-primary'/>"];
7757
+
7758
+ const cilSwapVertical = ["512 512","<polygon fill='var(--ci-primary-color, currentColor)' points='384 433.373 384 160 352 160 352 434.51 282.177 364.687 259.55 387.313 367.432 495.196 475.313 387.313 452.687 364.687 384 433.373' class='ci-primary'/><polygon fill='var(--ci-primary-color, currentColor)' points='159.432 17.372 51.55 125.255 74.177 147.882 144 78.059 144 352 176 352 176 79.195 244.687 147.882 267.313 125.255 159.432 17.372' class='ci-primary'/>"];
7759
+
7649
7760
  var CElementCover = forwardRef(function (_a, ref) {
7650
7761
  var children = _a.children, className = _a.className, boundaries = _a.boundaries, _b = _a.opacity, opacity = _b === void 0 ? 0.4 : _b, rest = __rest$1(_a, ["children", "className", "boundaries", "opacity"]);
7651
7762
  var elementCoverRef = useRef(null);
@@ -9069,7 +9180,7 @@ var CIcon = forwardRef(function (_a, ref) {
9069
9180
  var iconName = useMemo(function () {
9070
9181
  return _icon && typeof _icon === 'string' && _icon.includes('-') ? toCamelCase(_icon) : _icon;
9071
9182
  }, [change]);
9072
- var titleCode = title ? "<title>" + title + "</title>" : '';
9183
+ var titleCode = title ? "<title>".concat(title, "</title>") : '';
9073
9184
  var code = useMemo(function () {
9074
9185
  if (Array.isArray(_icon)) {
9075
9186
  return _icon;
@@ -9085,13 +9196,13 @@ var CIcon = forwardRef(function (_a, ref) {
9085
9196
  return Array.isArray(code) && code.length > 1 ? code[0] : '64 64';
9086
9197
  })();
9087
9198
  var viewBox = (function () {
9088
- return rest['viewBox'] || "0 0 " + scale;
9199
+ return rest['viewBox'] || "0 0 ".concat(scale);
9089
9200
  })();
9090
9201
  // render
9091
9202
  var _className = customClassName
9092
9203
  ? classNames(customClassName)
9093
9204
  : classNames('icon', (_b = {},
9094
- _b["icon-" + size] = size,
9205
+ _b["icon-".concat(size)] = size,
9095
9206
  _b["icon-custom-size"] = height || width,
9096
9207
  _b), className);
9097
9208
  return use ? (React__default.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", className: _className }, (height && { height: height }), (width && { width: width }), { role: "img" }, rest, { ref: ref }),
@@ -9126,10 +9237,7 @@ CIcon.propTypes = {
9126
9237
  CIcon.displayName = 'CIcon';
9127
9238
 
9128
9239
  var CSmartTableCleaner = forwardRef(function (_a, ref) {
9129
- var _b = _a.content, content = _b === void 0 ? (React__default.createElement(CIcon, { width: 18, icon: [
9130
- '512 512',
9131
- '<polygon fill="var(--ci-primary-color, currentColor)" points="40 16 40 53.828 109.024 136 150.815 136 76.896 48 459.51 48 304 242.388 304 401.373 241.373 464 240 464 240 368 208 368 208 496 254.627 496 336 414.627 336 253.612 496 53.612 496 16 40 16" class="ci-primary"></polygon><polygon fill="var(--ci-primary-color, currentColor)" points="166.403 248.225 226.864 187.763 204.237 165.135 143.775 225.597 83.313 165.135 60.687 187.763 121.148 248.225 60.687 308.687 83.313 331.314 143.775 270.852 204.237 331.314 226.864 308.687 166.403 248.225" class="ci-primary"></polygon>',
9132
- ] })) : _b, isFiltered = _a.isFiltered, rest = __rest$1(_a, ["content", "isFiltered"]);
9240
+ var _b = _a.content, content = _b === void 0 ? React__default.createElement(CIcon, { width: 18, icon: cilFilterX }) : _b, isFiltered = _a.isFiltered, rest = __rest$1(_a, ["content", "isFiltered"]);
9133
9241
  return (React__default.createElement("button", __assign$1({ type: "button", className: "btn btn-transparent" }, (!isFiltered && {
9134
9242
  disabled: true,
9135
9243
  tabIndex: -1,
@@ -9290,7 +9398,7 @@ var CSmartTableHead = forwardRef(function (_a, ref) {
9290
9398
  CSmartTableHead.propTypes = {
9291
9399
  columnFilter: PropTypes$1.oneOfType([PropTypes$1.bool, PropTypes$1.object]),
9292
9400
  columnFilterState: PropTypes$1.object,
9293
- columnSorter: PropTypes$1.bool,
9401
+ columnSorter: PropTypes$1.oneOfType([PropTypes$1.bool, PropTypes$1.object]),
9294
9402
  component: PropTypes$1.elementType,
9295
9403
  children: PropTypes$1.node,
9296
9404
  columns: PropTypes$1.arrayOf(PropTypes$1.oneOfType([PropTypes$1.any, PropTypes$1.string])).isRequired,
@@ -9326,46 +9434,34 @@ CSmartTableItemsPerPageSelector.displayName = 'CSmartTableItemsPerPageSelector';
9326
9434
 
9327
9435
  var CSmartTable = forwardRef(function (_a, ref) {
9328
9436
  var _b = _a.activePage, activePage = _b === void 0 ? 1 : _b, cleaner = _a.cleaner, clickableRows = _a.clickableRows, columnFilter = _a.columnFilter, columnFilterValue = _a.columnFilterValue, // TODO: consider to use only columnFilter prop
9329
- columns = _a.columns, columnSorter = _a.columnSorter, footer = _a.footer, _c = _a.header, header = _c === void 0 ? true : _c, items = _a.items, _d = _a.itemsPerPage, itemsPerPage = _d === void 0 ? 10 : _d, _e = _a.itemsPerPageLabel, itemsPerPageLabel = _e === void 0 ? 'Items per page:' : _e, _f = _a.itemsPerPageOptions, itemsPerPageOptions = _f === void 0 ? [5, 10, 20, 50] : _f, itemsPerPageSelect = _a.itemsPerPageSelect, loading = _a.loading, _g = _a.noItemsLabel, noItemsLabel = _g === void 0 ? 'No items found' : _g, onActivePageChange = _a.onActivePageChange, onColumnFilterChange = _a.onColumnFilterChange, onFilteredItemsChange = _a.onFilteredItemsChange, onItemsPerPageChange = _a.onItemsPerPageChange, onRowClick = _a.onRowClick, onSelectedItemsChange = _a.onSelectedItemsChange, onSorterChange = _a.onSorterChange, onTableFilterChange = _a.onTableFilterChange, pagination = _a.pagination, paginationProps = _a.paginationProps, scopedColumns = _a.scopedColumns, selectable = _a.selectable, sorterValue = _a.sorterValue, _h = _a.sortingIcon, sortingIcon = _h === void 0 ? (React__default.createElement(CIcon, { width: 18, icon: [
9330
- '512 512',
9331
- '<polygon fill="var(--ci-primary-color, currentColor)" points="384 433.373 384 160 352 160 352 434.51 282.177 364.687 259.55 387.313 367.432 495.196 475.313 387.313 452.687 364.687 384 433.373" class="ci-primary"></polygon><polygon fill="var(--ci-primary-color, currentColor)" points="159.432 17.372 51.55 125.255 74.177 147.882 144 78.059 144 352 176 352 176 79.195 244.687 147.882 267.313 125.255 159.432 17.372" class="ci-primary"></polygon>',
9332
- ], key: "csv" })) : _h, _j = _a.sortingIconAscending, sortingIconAscending = _j === void 0 ? (React__default.createElement(CIcon, { width: 18, icon: [
9333
- '512 512',
9334
- '<polygon fill="var(--ci-primary-color, currentColor)" points="390.624 150.625 256 16 121.376 150.625 144.004 173.252 240.001 77.254 240.001 495.236 272.001 495.236 272.001 77.257 367.996 173.252 390.624 150.625" class="ci-primary"></polygon>',
9335
- ], key: "cat" })) : _j, _k = _a.sortingIconDescending, sortingIconDescending = _k === void 0 ? (React__default.createElement(CIcon, { width: 18, icon: [
9336
- '512 512',
9337
- '<polygon fill="var(--ci-primary-color, currentColor)" points="367.997 338.75 271.999 434.747 271.999 17.503 239.999 17.503 239.999 434.745 144.003 338.75 121.376 361.377 256 496 390.624 361.377 367.997 338.75" class="ci-primary"></polygon>',
9338
- ], key: "cab" })) : _k, tableBodyProps = _a.tableBodyProps, tableFootProps = _a.tableFootProps, tableFilter = _a.tableFilter, _l = _a.tableFilterLabel, tableFilterLabel = _l === void 0 ? 'Filter:' : _l, _m = _a.tableFilterPlaceholder, tableFilterPlaceholder = _m === void 0 ? 'type string...' : _m, tableFilterValue = _a.tableFilterValue, // TODO: consider to use only tableFilter prop
9437
+ columns = _a.columns, columnSorter = _a.columnSorter, footer = _a.footer, _c = _a.header, header = _c === void 0 ? true : _c, items = _a.items, _d = _a.itemsPerPage, itemsPerPage = _d === void 0 ? 10 : _d, _e = _a.itemsPerPageLabel, itemsPerPageLabel = _e === void 0 ? 'Items per page:' : _e, _f = _a.itemsPerPageOptions, itemsPerPageOptions = _f === void 0 ? [5, 10, 20, 50] : _f, itemsPerPageSelect = _a.itemsPerPageSelect, loading = _a.loading, _g = _a.noItemsLabel, noItemsLabel = _g === void 0 ? 'No items found' : _g, onActivePageChange = _a.onActivePageChange, onColumnFilterChange = _a.onColumnFilterChange, onFilteredItemsChange = _a.onFilteredItemsChange, onItemsPerPageChange = _a.onItemsPerPageChange, onRowClick = _a.onRowClick, onSelectedItemsChange = _a.onSelectedItemsChange, onSorterChange = _a.onSorterChange, onTableFilterChange = _a.onTableFilterChange, pagination = _a.pagination, paginationProps = _a.paginationProps, scopedColumns = _a.scopedColumns, selectable = _a.selectable, sorterValue = _a.sorterValue, _h = _a.sortingIcon, sortingIcon = _h === void 0 ? React__default.createElement(CIcon, { width: 18, icon: cilSwapVertical, key: "csv" }) : _h, _j = _a.sortingIconAscending, sortingIconAscending = _j === void 0 ? React__default.createElement(CIcon, { width: 18, icon: cilArrowTop, key: "cat" }) : _j, _k = _a.sortingIconDescending, sortingIconDescending = _k === void 0 ? React__default.createElement(CIcon, { width: 18, icon: cilArrowBottom, key: "cab" }) : _k, tableBodyProps = _a.tableBodyProps, tableFootProps = _a.tableFootProps, tableFilter = _a.tableFilter, _l = _a.tableFilterLabel, tableFilterLabel = _l === void 0 ? 'Filter:' : _l, _m = _a.tableFilterPlaceholder, tableFilterPlaceholder = _m === void 0 ? 'type string...' : _m, tableFilterValue = _a.tableFilterValue, // TODO: consider to use only tableFilter prop
9339
9438
  tableHeadProps = _a.tableHeadProps, tableProps = _a.tableProps, rest = __rest$1(_a, ["activePage", "cleaner", "clickableRows", "columnFilter", "columnFilterValue", "columns", "columnSorter", "footer", "header", "items", "itemsPerPage", "itemsPerPageLabel", "itemsPerPageOptions", "itemsPerPageSelect", "loading", "noItemsLabel", "onActivePageChange", "onColumnFilterChange", "onFilteredItemsChange", "onItemsPerPageChange", "onRowClick", "onSelectedItemsChange", "onSorterChange", "onTableFilterChange", "pagination", "paginationProps", "scopedColumns", "selectable", "sorterValue", "sortingIcon", "sortingIconAscending", "sortingIconDescending", "tableBodyProps", "tableFootProps", "tableFilter", "tableFilterLabel", "tableFilterPlaceholder", "tableFilterValue", "tableHeadProps", "tableProps"]);
9340
9439
  // instance data
9341
- var compData = useRef({ firstRun: true, columnFiltered: 0, changeItems: 0 }).current;
9342
- var previousSorterValue = useRef();
9343
- var previousItemsValue = useRef();
9344
9440
  var _o = useState(activePage), _activePage = _o[0], setActivePage = _o[1];
9345
9441
  var _p = useState([]), _items = _p[0], setItems = _p[1];
9346
9442
  var _q = useState(itemsPerPage), _itemsPerPage = _q[0], setItemsPerPage = _q[1];
9347
- var _r = useState(columnFilterValue ? columnFilterValue : {}), columnFilterState = _r[0], setColumnFilterState = _r[1];
9443
+ var _r = useState({}), columnFilterState = _r[0], setColumnFilterState = _r[1];
9348
9444
  var _s = useState(), selectedAll = _s[0], setSelectedAll = _s[1];
9349
- var _t = useState(previousSorterValue.current || {}), sorterState = _t[0], setSorterState = _t[1];
9445
+ var _t = useState({}), sorterState = _t[0], setSorterState = _t[1];
9350
9446
  var _u = useState(tableFilterValue ? tableFilterValue : ''), tableFilterState = _u[0], setTableFilterState = _u[1];
9447
+ // watch
9351
9448
  useMemo(function () {
9352
- if (JSON.stringify(previousSorterValue.current) !== JSON.stringify(sorterValue)) {
9353
- previousSorterValue.current = sorterValue;
9354
- setSorterState(__assign$1({}, sorterValue));
9449
+ if (items && items.length < _itemsPerPage * _activePage - _itemsPerPage) {
9450
+ setActivePage(1);
9355
9451
  }
9356
- }, [sorterValue]);
9452
+ // Create the internal array of items
9453
+ Array.isArray(items) &&
9454
+ setItems(items === null || items === void 0 ? void 0 : items.map(function (item, index) {
9455
+ return __assign$1(__assign$1({}, item), { _id: index });
9456
+ }));
9457
+ }, [JSON.stringify(items)]);
9357
9458
  useMemo(function () {
9358
- if (JSON.stringify(previousItemsValue.current) !== JSON.stringify(items)) {
9359
- if (items && items.length < _itemsPerPage * _activePage - _itemsPerPage) {
9360
- setActivePage(1);
9361
- }
9362
- previousItemsValue.current = items;
9363
- Array.isArray(items) &&
9364
- setItems(items === null || items === void 0 ? void 0 : items.map(function (item, index) {
9365
- return __assign$1(__assign$1({}, item), { _id: index });
9366
- }));
9367
- }
9368
- }, [items]);
9459
+ columnFilterValue && setColumnFilterState(columnFilterValue);
9460
+ }, [JSON.stringify(columnFilterValue)]);
9461
+ useMemo(function () {
9462
+ setSorterState(__assign$1({}, sorterValue));
9463
+ }, [JSON.stringify(sorterValue)]);
9464
+ useMemo(function () { return setItemsPerPage(itemsPerPage); }, [itemsPerPage]);
9369
9465
  // functions
9370
9466
  var isSortable = function (i) {
9371
9467
  var isDataColumn = itemsDataColumns.includes(rawColumnNames[i]);
@@ -9447,15 +9543,7 @@ var CSmartTable = forwardRef(function (_a, ref) {
9447
9543
  : genCols; //! || el
9448
9544
  var itemsDataColumns = rawColumnNames.filter(function (name) { return genCols.includes(name); });
9449
9545
  // variables
9450
- useMemo(function () {
9451
- compData.columnFiltered++;
9452
- }, [
9453
- JSON.stringify(columnFilter),
9454
- JSON.stringify(columnFilterState),
9455
- itemsDataColumns.join(''),
9456
- compData.changeItems,
9457
- ]);
9458
- var columnFiltered = useMemo(function () {
9546
+ var filteredColumns = useMemo(function () {
9459
9547
  var items = _items;
9460
9548
  if (columnFilter && typeof columnFilter === 'object' && columnFilter.external) {
9461
9549
  return items;
@@ -9470,9 +9558,9 @@ var CSmartTable = forwardRef(function (_a, ref) {
9470
9558
  }
9471
9559
  });
9472
9560
  return items;
9473
- }, [compData.columnFiltered, _items]);
9474
- var tableFiltered = useMemo(function () {
9475
- var items = columnFiltered;
9561
+ }, [JSON.stringify(columnFilterState), JSON.stringify(_items)]);
9562
+ var filteredTable = useMemo(function () {
9563
+ var items = filteredColumns;
9476
9564
  if (!tableFilterState ||
9477
9565
  (tableFilter && typeof tableFilter === 'object' && tableFilter.external)) {
9478
9566
  return items;
@@ -9483,23 +9571,16 @@ var CSmartTable = forwardRef(function (_a, ref) {
9483
9571
  return !!itemsDataColumns.find(function (key) { return valueContainFilter(item[key]); });
9484
9572
  });
9485
9573
  return items;
9486
- }, [
9487
- compData.columnFiltered,
9488
- tableFilterState,
9489
- JSON.stringify(tableFilter),
9490
- JSON.stringify(columnFiltered),
9491
- ]);
9574
+ }, [tableFilterState, JSON.stringify(tableFilterValue), JSON.stringify(filteredColumns)]);
9492
9575
  var sortedItems = useMemo(function () {
9493
9576
  var col = sorterState === null || sorterState === void 0 ? void 0 : sorterState.column;
9494
9577
  if (!col ||
9495
9578
  !itemsDataColumns.includes(col) ||
9496
9579
  (columnSorter && typeof columnSorter === 'object' && columnSorter.external)) {
9497
- return tableFiltered;
9580
+ return filteredTable;
9498
9581
  }
9499
- //if values in column are to be sorted by numeric value they all have to be type number
9500
- // const flip = sorterState.asc ? 1 : -1
9501
9582
  var flip = sorterState.state === 'asc' ? 1 : sorterState.state === 'desc' ? -1 : 0;
9502
- var sorted = tableFiltered.slice().sort(function (item, item2) {
9583
+ var sorted = filteredTable.slice().sort(function (item, item2) {
9503
9584
  var value = item[col];
9504
9585
  var value2 = item2[col];
9505
9586
  var a = typeof value === 'number' ? value : String(value).toLowerCase();
@@ -9507,7 +9588,13 @@ var CSmartTable = forwardRef(function (_a, ref) {
9507
9588
  return a > b ? 1 * flip : b > a ? -1 * flip : 0;
9508
9589
  });
9509
9590
  return sorted;
9510
- }, [JSON.stringify(tableFiltered), JSON.stringify(sorterState), JSON.stringify(columnSorter)]);
9591
+ }, [
9592
+ JSON.stringify(filteredTable),
9593
+ JSON.stringify(sorterState),
9594
+ JSON.stringify(columnSorter),
9595
+ JSON.stringify(filteredColumns),
9596
+ JSON.stringify(_items),
9597
+ ]);
9511
9598
  var numberOfPages = _itemsPerPage ? Math.ceil(sortedItems.length / _itemsPerPage) : 1;
9512
9599
  var firstItemOnActivePageIndex = _activePage ? (_activePage - 1) * _itemsPerPage : 0;
9513
9600
  var itemsOnActivePage = sortedItems.slice(firstItemOnActivePageIndex, firstItemOnActivePageIndex + _itemsPerPage);
@@ -9531,16 +9618,8 @@ var CSmartTable = forwardRef(function (_a, ref) {
9531
9618
  onTableFilterChange && onTableFilterChange(tableFilterState);
9532
9619
  }, [tableFilterState]);
9533
9620
  useEffect(function () {
9534
- !compData.firstRun && onFilteredItemsChange && onFilteredItemsChange(sortedItems);
9621
+ onFilteredItemsChange && onFilteredItemsChange(sortedItems);
9535
9622
  }, [JSON.stringify(sortedItems)]);
9536
- // watch
9537
- useMemo(function () { return setItemsPerPage(itemsPerPage); }, [itemsPerPage]);
9538
- useMemo(function () {
9539
- return JSON.stringify(previousSorterValue.current) !== JSON.stringify(sorterValue) &&
9540
- setSorterState(__assign$1({}, sorterValue));
9541
- }, [sorterValue]);
9542
- useMemo(function () { return setColumnFilterState(__assign$1({}, columnFilterValue)); }, [columnFilterValue]);
9543
- compData.firstRun = false;
9544
9623
  var handleRowChecked = function (id, value) {
9545
9624
  var newArr = __spreadArray([], _items, true);
9546
9625
  newArr[id]._selected = value;
@@ -9882,7 +9961,7 @@ var CTooltip = function (_a) {
9882
9961
  };
9883
9962
  CTooltip.propTypes = {
9884
9963
  children: PropTypes$1.any,
9885
- content: PropTypes$1.node,
9964
+ content: PropTypes$1.oneOfType([PropTypes$1.string, PropTypes$1.node]),
9886
9965
  placement: PropTypes$1.oneOf(['auto', 'top', 'right', 'bottom', 'left']),
9887
9966
  onHide: PropTypes$1.func,
9888
9967
  onShow: PropTypes$1.func,
@@ -10022,5 +10101,5 @@ CWidgetStatsF.propTypes = {
10022
10101
  };
10023
10102
  CWidgetStatsF.displayName = 'CWidgetStatsF';
10024
10103
 
10025
- export { CAccordion, CAccordionBody, CAccordionButton, CAccordionCollapse, CAccordionHeader, CAccordionItem, CAlert, CAlertHeading, CAlertLink, CAvatar, CBackdrop, CBadge, CBreadcrumb, CBreadcrumbItem, CButton, CButtonGroup, CButtonToolbar, CCallout, CCard, CCardBody, CCardFooter, CCardGroup, CCardHeader, CCardImage, CCardImageOverlay, CCardLink, CCardSubtitle, CCardText, CCardTitle, CCarousel, CCarouselCaption, CCarouselItem, CCloseButton, CCol, CCollapse, CContainer, CDropdown, CDropdownDivider, CDropdownHeader, CDropdownItem, CDropdownItemPlain, CDropdownMenu, CDropdownToggle, CFooter, CForm, CFormCheck, CFormFeedback, CFormFloating, CFormInput, CFormLabel, CFormRange, CFormSelect, CFormSwitch, CFormText, CFormTextarea, CHeader, CHeaderBrand, CHeaderDivider, CHeaderNav, CHeaderText, CHeaderToggler, CImage, CInputGroup, CInputGroupText, CLink, CListGroup, CListGroupItem, CLoadingButton, CModal, CModalBody, CModalContent, CModalDialog, CModalFooter, CModalHeader, CModalTitle, CMultiSelect, CNav, CNavGroup, CNavGroupItems, CNavItem, CNavLink, CNavTitle, CNavbar, CNavbarBrand, CNavbarNav, CNavbarText, CNavbarToggler, COffcanvas, COffcanvasBody, COffcanvasHeader, COffcanvasTitle, CPagination, CPaginationItem, CPlaceholder, CPopover, CProgress, CProgressBar, CRow, CSidebar, CSidebarBrand, CSidebarFooter, CSidebarHeader, CSidebarNav, CSidebarToggler, CSmartPagination, CSmartTable, CSpinner, CTabContent, CTabPane, CTable, CTableBody, CTableCaption, CTableDataCell, CTableFoot, CTableHead, CTableHeaderCell, CTableRow, CToast, CToastBody, CToastClose, CToastHeader, CToaster, CTooltip, CWidgetStatsA, CWidgetStatsB, CWidgetStatsC, CWidgetStatsD, CWidgetStatsE, CWidgetStatsF };
10104
+ export { CAccordion, CAccordionBody, CAccordionButton, CAccordionCollapse, CAccordionHeader, CAccordionItem, CAlert, CAlertHeading, CAlertLink, CAvatar, CBackdrop, CBadge, CBreadcrumb, CBreadcrumbItem, CButton, CButtonGroup, CButtonToolbar, CCallout, CCard, CCardBody, CCardFooter, CCardGroup, CCardHeader, CCardImage, CCardImageOverlay, CCardLink, CCardSubtitle, CCardText, CCardTitle, CCarousel, CCarouselCaption, CCarouselItem, CCloseButton, CCol, CCollapse, CContainer, CDropdown, CDropdownDivider, CDropdownHeader, CDropdownItem, CDropdownItemPlain, CDropdownMenu, CDropdownToggle, CDropdownToggleCustom, CFooter, CForm, CFormCheck, CFormFeedback, CFormFloating, CFormInput, CFormLabel, CFormRange, CFormSelect, CFormSwitch, CFormText, CFormTextarea, CHeader, CHeaderBrand, CHeaderDivider, CHeaderNav, CHeaderText, CHeaderToggler, CImage, CInputGroup, CInputGroupText, CLink, CListGroup, CListGroupItem, CLoadingButton, CModal, CModalBody, CModalContent, CModalDialog, CModalFooter, CModalHeader, CModalTitle, CMultiSelect, CNav, CNavGroup, CNavGroupItems, CNavItem, CNavLink, CNavTitle, CNavbar, CNavbarBrand, CNavbarNav, CNavbarText, CNavbarToggler, COffcanvas, COffcanvasBody, COffcanvasHeader, COffcanvasTitle, CPagination, CPaginationItem, CPlaceholder, CPopover, CProgress, CProgressBar, CRow, CSidebar, CSidebarBrand, CSidebarFooter, CSidebarHeader, CSidebarNav, CSidebarToggler, CSmartPagination, CSmartTable, CSpinner, CTabContent, CTabPane, CTable, CTableBody, CTableCaption, CTableDataCell, CTableFoot, CTableHead, CTableHeaderCell, CTableRow, CToast, CToastBody, CToastClose, CToastHeader, CToaster, CTooltip, CWidgetStatsA, CWidgetStatsB, CWidgetStatsC, CWidgetStatsD, CWidgetStatsE, CWidgetStatsF };
10026
10105
  //# sourceMappingURL=index.es.js.map