@coreui/react 4.0.0-rc.6 → 4.1.0

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.
Files changed (30) hide show
  1. package/README.md +157 -0
  2. package/dist/components/accordion/CAccordionCollapse.d.ts +1 -1
  3. package/dist/components/collapse/CCollapse.d.ts +4 -0
  4. package/dist/components/form/CFormCheck.d.ts +4 -0
  5. package/dist/components/form/CFormLabel.d.ts +2 -2
  6. package/dist/components/form/CFormSelect.d.ts +13 -0
  7. package/dist/components/placeholder/CPlaceholder.d.ts +51 -0
  8. package/dist/index.d.ts +2 -1
  9. package/dist/index.es.js +281 -177
  10. package/dist/index.es.js.map +1 -1
  11. package/dist/index.js +281 -176
  12. package/dist/index.js.map +1 -1
  13. package/package.json +10 -10
  14. package/src/components/accordion/CAccordionCollapse.tsx +1 -1
  15. package/src/components/collapse/CCollapse.tsx +36 -3
  16. package/src/components/form/CFormCheck.tsx +30 -3
  17. package/src/components/form/CFormLabel.tsx +2 -2
  18. package/src/components/form/CFormSelect.tsx +28 -2
  19. package/src/components/form/__tests__/CFormLabel.spec.tsx +8 -0
  20. package/src/components/form/__tests__/__snapshots__/CFormLabel.spec.tsx.snap +11 -0
  21. package/src/components/grid/CCol.tsx +8 -8
  22. package/src/components/grid/CContainer.tsx +3 -3
  23. package/src/components/grid/CRow.tsx +6 -6
  24. package/src/components/offcanvas/COffcanvas.tsx +15 -2
  25. package/src/components/offcanvas/__tests__/COffcanvas.spec.tsx +1 -1
  26. package/src/components/offcanvas/__tests__/__snapshots__/COffcanvas.spec.tsx.snap +2 -2
  27. package/src/components/placeholder/CPlaceholder.tsx +114 -0
  28. package/src/components/placeholder/__tests__/CPlaceholder.spec.tsx +21 -0
  29. package/src/components/placeholder/__tests__/__snapshots__/CPlaceholder.spec.tsx.snap +17 -0
  30. package/src/index.ts +2 -0
package/dist/index.es.js CHANGED
@@ -2387,7 +2387,7 @@ function assignRef(ref, value) {
2387
2387
  ref.current = value;
2388
2388
  }
2389
2389
  catch (error) {
2390
- throw new Error("Cannot assign value \"" + value + "\" to ref \"" + ref + "\"");
2390
+ throw new Error("Cannot assign value \"".concat(value, "\" to ref \"").concat(ref, "\""));
2391
2391
  }
2392
2392
  }
2393
2393
  }
@@ -2396,8 +2396,9 @@ function isFunction(value) {
2396
2396
  }
2397
2397
 
2398
2398
  var CCollapse = forwardRef(function (_a, ref) {
2399
- var children = _a.children, className = _a.className, onHide = _a.onHide, onShow = _a.onShow, visible = _a.visible, rest = __rest(_a, ["children", "className", "onHide", "onShow", "visible"]);
2399
+ var children = _a.children, className = _a.className, horizontal = _a.horizontal, onHide = _a.onHide, onShow = _a.onShow, visible = _a.visible, rest = __rest(_a, ["children", "className", "horizontal", "onHide", "onShow", "visible"]);
2400
2400
  var _b = useState(), height = _b[0], setHeight = _b[1];
2401
+ var _c = useState(), width = _c[0], setWidth = _c[1];
2401
2402
  var collapseRef = useRef(null);
2402
2403
  var forkedRef = useForkedRef(ref, collapseRef);
2403
2404
  var getTransitionClass = function (state) {
@@ -2411,31 +2412,55 @@ var CCollapse = forwardRef(function (_a, ref) {
2411
2412
  };
2412
2413
  var onEntering = function () {
2413
2414
  onShow && onShow();
2415
+ if (horizontal) {
2416
+ collapseRef.current && setWidth(collapseRef.current.scrollWidth);
2417
+ return;
2418
+ }
2414
2419
  collapseRef.current && setHeight(collapseRef.current.scrollHeight);
2415
2420
  };
2416
2421
  var onEntered = function () {
2422
+ if (horizontal) {
2423
+ setWidth(0);
2424
+ return;
2425
+ }
2417
2426
  setHeight(0);
2418
2427
  };
2419
2428
  var onExit = function () {
2429
+ if (horizontal) {
2430
+ collapseRef.current && setWidth(collapseRef.current.scrollWidth);
2431
+ return;
2432
+ }
2420
2433
  collapseRef.current && setHeight(collapseRef.current.scrollHeight);
2421
2434
  };
2422
2435
  var onExiting = function () {
2423
2436
  onHide && onHide();
2437
+ if (horizontal) {
2438
+ setWidth(0);
2439
+ return;
2440
+ }
2424
2441
  setHeight(0);
2425
2442
  };
2426
2443
  var onExited = function () {
2444
+ if (horizontal) {
2445
+ setWidth(0);
2446
+ return;
2447
+ }
2427
2448
  setHeight(0);
2428
2449
  };
2429
- var _className = classNames(className);
2450
+ var _className = classNames({
2451
+ 'collapse-horizontal': horizontal,
2452
+ }, className);
2430
2453
  return (React__default.createElement(CSSTransition$1, { in: visible, onEntering: onEntering, onEntered: onEntered, onExit: onExit, onExiting: onExiting, onExited: onExited, timeout: 350 }, function (state) {
2431
2454
  var transitionClass = getTransitionClass(state);
2432
2455
  var currentHeight = height === 0 ? null : { height: height };
2433
- return (React__default.createElement("div", __assign({ className: classNames(_className, transitionClass), style: __assign({}, currentHeight) }, rest, { ref: forkedRef }), children));
2456
+ var currentWidth = width === 0 ? null : { width: width };
2457
+ return (React__default.createElement("div", __assign({ className: classNames(_className, transitionClass), style: __assign(__assign({}, currentHeight), currentWidth) }, rest, { ref: forkedRef }), children));
2434
2458
  }));
2435
2459
  });
2436
2460
  CCollapse.propTypes = {
2437
2461
  children: PropTypes.node,
2438
2462
  className: PropTypes.string,
2463
+ horizontal: PropTypes.bool,
2439
2464
  onHide: PropTypes.func,
2440
2465
  onShow: PropTypes.func,
2441
2466
  visible: PropTypes.bool,
@@ -2561,7 +2586,7 @@ var CAlert = forwardRef(function (_a, ref) {
2561
2586
  useEffect(function () {
2562
2587
  setVisible(visible);
2563
2588
  }, [visible]);
2564
- var _className = classNames('alert', variant === 'solid' ? "bg-" + color + " text-white" : "alert-" + color, {
2589
+ var _className = classNames('alert', variant === 'solid' ? "bg-".concat(color, " text-white") : "alert-".concat(color), {
2565
2590
  'alert-dismissible fade': dismissible,
2566
2591
  }, className);
2567
2592
  var getTransitionClass = function (state) {
@@ -2632,11 +2657,11 @@ var CAvatar = forwardRef(function (_a, ref) {
2632
2657
  var _b;
2633
2658
  var children = _a.children, className = _a.className, color = _a.color, shape = _a.shape, size = _a.size, src = _a.src, status = _a.status, textColor = _a.textColor, rest = __rest(_a, ["children", "className", "color", "shape", "size", "src", "status", "textColor"]);
2634
2659
  var _className = classNames('avatar', (_b = {},
2635
- _b["bg-" + color] = color,
2636
- _b["avatar-" + size] = size,
2637
- _b["text-" + textColor] = textColor,
2660
+ _b["bg-".concat(color)] = color,
2661
+ _b["avatar-".concat(size)] = size,
2662
+ _b["text-".concat(textColor)] = textColor,
2638
2663
  _b), shape, className);
2639
- var statusClassName = status && classNames('avatar-status', "bg-" + status);
2664
+ var statusClassName = status && classNames('avatar-status', "bg-".concat(status));
2640
2665
  return (React__default.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
2641
2666
  src ? React__default.createElement("img", { src: src, className: "avatar-img" }) : children,
2642
2667
  status && React__default.createElement("span", { className: statusClassName })));
@@ -2657,14 +2682,14 @@ var CBadge = forwardRef(function (_a, ref) {
2657
2682
  var _b;
2658
2683
  var children = _a.children, className = _a.className, color = _a.color, _c = _a.component, Component = _c === void 0 ? 'span' : _c, position = _a.position, shape = _a.shape, size = _a.size, textColor = _a.textColor, rest = __rest(_a, ["children", "className", "color", "component", "position", "shape", "size", "textColor"]);
2659
2684
  var _className = classNames('badge', (_b = {},
2660
- _b["bg-" + color] = color,
2685
+ _b["bg-".concat(color)] = color,
2661
2686
  _b['position-absolute translate-middle'] = position,
2662
2687
  _b['top-0'] = position === null || position === void 0 ? void 0 : position.includes('top'),
2663
2688
  _b['top-100'] = position === null || position === void 0 ? void 0 : position.includes('bottom'),
2664
2689
  _b['start-100'] = position === null || position === void 0 ? void 0 : position.includes('end'),
2665
2690
  _b['start-0'] = position === null || position === void 0 ? void 0 : position.includes('start'),
2666
- _b["badge-" + size] = size,
2667
- _b["text-" + textColor] = textColor,
2691
+ _b["badge-".concat(size)] = size,
2692
+ _b["text-".concat(textColor)] = textColor,
2668
2693
  _b), shape, className);
2669
2694
  return (React__default.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
2670
2695
  });
@@ -2727,7 +2752,7 @@ CBreadcrumbItem.displayName = 'CBreadcrumbItem';
2727
2752
  var CButton = forwardRef(function (_a, ref) {
2728
2753
  var _b;
2729
2754
  var children = _a.children, className = _a.className, _c = _a.color, color = _c === void 0 ? 'primary' : _c, _d = _a.component, component = _d === void 0 ? 'button' : _d, shape = _a.shape, size = _a.size, _e = _a.type, type = _e === void 0 ? 'button' : _e, variant = _a.variant, rest = __rest(_a, ["children", "className", "color", "component", "shape", "size", "type", "variant"]);
2730
- var _className = classNames('btn', variant ? "btn-" + variant + "-" + color : "btn-" + color, (_b = {}, _b["btn-" + size] = size, _b), shape, className);
2755
+ var _className = classNames('btn', variant ? "btn-".concat(variant, "-").concat(color) : "btn-".concat(color), (_b = {}, _b["btn-".concat(size)] = size, _b), shape, className);
2731
2756
  return (React__default.createElement(CLink, __assign({ component: rest.href ? 'a' : component, type: type, className: _className }, rest, { ref: ref }), children));
2732
2757
  });
2733
2758
  CButton.propTypes = {
@@ -2745,7 +2770,7 @@ CButton.displayName = 'CButton';
2745
2770
  var CButtonGroup = forwardRef(function (_a, ref) {
2746
2771
  var _b;
2747
2772
  var children = _a.children, className = _a.className, size = _a.size, vertical = _a.vertical, rest = __rest(_a, ["children", "className", "size", "vertical"]);
2748
- var _className = classNames(vertical ? 'btn-group-vertical' : 'btn-group', (_b = {}, _b["btn-group-" + size] = size, _b), className);
2773
+ var _className = classNames(vertical ? 'btn-group-vertical' : 'btn-group', (_b = {}, _b["btn-group-".concat(size)] = size, _b), className);
2749
2774
  return (React__default.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
2750
2775
  });
2751
2776
  CButtonGroup.propTypes = {
@@ -2771,7 +2796,7 @@ var CCallout = forwardRef(function (_a, ref) {
2771
2796
  var _b;
2772
2797
  var children = _a.children, className = _a.className, color = _a.color, rest = __rest(_a, ["children", "className", "color"]);
2773
2798
  var _className = classNames('callout', (_b = {},
2774
- _b["callout-" + color] = color,
2799
+ _b["callout-".concat(color)] = color,
2775
2800
  _b), className);
2776
2801
  return (React__default.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
2777
2802
  });
@@ -2786,8 +2811,8 @@ var CCard = forwardRef(function (_a, ref) {
2786
2811
  var _b;
2787
2812
  var children = _a.children, className = _a.className, color = _a.color, textColor = _a.textColor, rest = __rest(_a, ["children", "className", "color", "textColor"]);
2788
2813
  var _className = classNames('card', (_b = {},
2789
- _b["bg-" + color] = color,
2790
- _b["text-" + textColor] = textColor,
2814
+ _b["bg-".concat(color)] = color,
2815
+ _b["text-".concat(textColor)] = textColor,
2791
2816
  _b), className);
2792
2817
  return (React__default.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
2793
2818
  });
@@ -2846,7 +2871,7 @@ CCardHeader.displayName = 'CCardHeader';
2846
2871
 
2847
2872
  var CCardImage = forwardRef(function (_a, ref) {
2848
2873
  var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'img' : _b, orientation = _a.orientation, rest = __rest(_a, ["children", "className", "component", "orientation"]);
2849
- var _className = classNames(orientation ? "card-img-" + orientation : 'card-img', className);
2874
+ var _className = classNames(orientation ? "card-img-".concat(orientation) : 'card-img', className);
2850
2875
  return (React__default.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
2851
2876
  });
2852
2877
  CCardImage.propTypes = {
@@ -3012,7 +3037,7 @@ var CCarousel = forwardRef(function (_a, ref) {
3012
3037
  setCustomInterval: setCustomInterval,
3013
3038
  } },
3014
3039
  indicators && (React__default.createElement("ol", { className: "carousel-indicators" }, Array.from({ length: itemsNumber }, function (_, i) { return i; }).map(function (index) {
3015
- return (React__default.createElement("li", { key: "indicator" + index, onClick: function () {
3040
+ return (React__default.createElement("li", { key: "indicator".concat(index), onClick: function () {
3016
3041
  !animating && handleIndicatorClick(index);
3017
3042
  }, className: active === index ? 'active' : '', "data-coreui-target": "" }));
3018
3043
  }))),
@@ -3072,7 +3097,7 @@ var CCarouselItem = forwardRef(function (_a, ref) {
3072
3097
  if (active) {
3073
3098
  setCustomInterval(interval);
3074
3099
  if (count !== 0)
3075
- setOrderClassName("carousel-item-" + direction);
3100
+ setOrderClassName("carousel-item-".concat(direction));
3076
3101
  }
3077
3102
  if (prevActive.current && !active) {
3078
3103
  setActiveClassName('active');
@@ -3084,7 +3109,7 @@ var CCarouselItem = forwardRef(function (_a, ref) {
3084
3109
  // @ts-expect-error reflow is necessary to proper transition
3085
3110
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
3086
3111
  (_a = carouselItemRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight;
3087
- setDirectionClassName("carousel-item-" + (direction === 'next' ? 'start' : 'end'));
3112
+ setDirectionClassName("carousel-item-".concat(direction === 'next' ? 'start' : 'end'));
3088
3113
  }
3089
3114
  }, 0);
3090
3115
  }
@@ -3373,29 +3398,32 @@ function getBasePlacement(placement) {
3373
3398
  return placement.split('-')[0];
3374
3399
  }
3375
3400
 
3376
- // import { isHTMLElement } from './instanceOf';
3377
- function getBoundingClientRect(element, // eslint-disable-next-line unused-imports/no-unused-vars
3378
- includeScale) {
3401
+ var max = Math.max;
3402
+ var min = Math.min;
3403
+ var round = Math.round;
3404
+
3405
+ function getBoundingClientRect(element, includeScale) {
3406
+ if (includeScale === void 0) {
3407
+ includeScale = false;
3408
+ }
3379
3409
 
3380
3410
  var rect = element.getBoundingClientRect();
3381
3411
  var scaleX = 1;
3382
- var scaleY = 1; // FIXME:
3383
- // `offsetWidth` returns an integer while `getBoundingClientRect`
3384
- // returns a float. This results in `scaleX` or `scaleY` being
3385
- // non-1 when it should be for elements that aren't a full pixel in
3386
- // width or height.
3387
- // if (isHTMLElement(element) && includeScale) {
3388
- // const offsetHeight = element.offsetHeight;
3389
- // const offsetWidth = element.offsetWidth;
3390
- // // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
3391
- // // Fallback to 1 in case both values are `0`
3392
- // if (offsetWidth > 0) {
3393
- // scaleX = rect.width / offsetWidth || 1;
3394
- // }
3395
- // if (offsetHeight > 0) {
3396
- // scaleY = rect.height / offsetHeight || 1;
3397
- // }
3398
- // }
3412
+ var scaleY = 1;
3413
+
3414
+ if (isHTMLElement(element) && includeScale) {
3415
+ var offsetHeight = element.offsetHeight;
3416
+ var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
3417
+ // Fallback to 1 in case both values are `0`
3418
+
3419
+ if (offsetWidth > 0) {
3420
+ scaleX = round(rect.width) / offsetWidth || 1;
3421
+ }
3422
+
3423
+ if (offsetHeight > 0) {
3424
+ scaleY = round(rect.height) / offsetHeight || 1;
3425
+ }
3426
+ }
3399
3427
 
3400
3428
  return {
3401
3429
  width: rect.width / scaleX,
@@ -3550,13 +3578,13 @@ function getMainAxisFromPlacement(placement) {
3550
3578
  return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
3551
3579
  }
3552
3580
 
3553
- var max = Math.max;
3554
- var min = Math.min;
3555
- var round = Math.round;
3556
-
3557
3581
  function within(min$1, value, max$1) {
3558
3582
  return max(min$1, min(value, max$1));
3559
3583
  }
3584
+ function withinMaxClamp(min, value, max) {
3585
+ var v = within(min, value, max);
3586
+ return v > max ? max : v;
3587
+ }
3560
3588
 
3561
3589
  function getFreshSideObject() {
3562
3590
  return {
@@ -3688,8 +3716,8 @@ function roundOffsetsByDPR(_ref) {
3688
3716
  var win = window;
3689
3717
  var dpr = win.devicePixelRatio || 1;
3690
3718
  return {
3691
- x: round(round(x * dpr) / dpr) || 0,
3692
- y: round(round(y * dpr) / dpr) || 0
3719
+ x: round(x * dpr) / dpr || 0,
3720
+ y: round(y * dpr) / dpr || 0
3693
3721
  };
3694
3722
  }
3695
3723
 
@@ -3704,7 +3732,8 @@ function mapToStyles(_ref2) {
3704
3732
  position = _ref2.position,
3705
3733
  gpuAcceleration = _ref2.gpuAcceleration,
3706
3734
  adaptive = _ref2.adaptive,
3707
- roundOffsets = _ref2.roundOffsets;
3735
+ roundOffsets = _ref2.roundOffsets,
3736
+ isFixed = _ref2.isFixed;
3708
3737
 
3709
3738
  var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
3710
3739
  _ref3$x = _ref3.x,
@@ -3736,16 +3765,18 @@ function mapToStyles(_ref2) {
3736
3765
  offsetParent = offsetParent;
3737
3766
 
3738
3767
  if (placement === top || (placement === left || placement === right) && variation === end) {
3739
- sideY = bottom; // $FlowFixMe[prop-missing]
3740
-
3741
- y -= offsetParent[heightProp] - popperRect.height;
3768
+ sideY = bottom;
3769
+ var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
3770
+ offsetParent[heightProp];
3771
+ y -= offsetY - popperRect.height;
3742
3772
  y *= gpuAcceleration ? 1 : -1;
3743
3773
  }
3744
3774
 
3745
3775
  if (placement === left || (placement === top || placement === bottom) && variation === end) {
3746
- sideX = right; // $FlowFixMe[prop-missing]
3747
-
3748
- x -= offsetParent[widthProp] - popperRect.width;
3776
+ sideX = right;
3777
+ var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
3778
+ offsetParent[widthProp];
3779
+ x -= offsetX - popperRect.width;
3749
3780
  x *= gpuAcceleration ? 1 : -1;
3750
3781
  }
3751
3782
  }
@@ -3788,7 +3819,8 @@ function computeStyles(_ref4) {
3788
3819
  variation: getVariation(state.placement),
3789
3820
  popper: state.elements.popper,
3790
3821
  popperRect: state.rects.popper,
3791
- gpuAcceleration: gpuAcceleration
3822
+ gpuAcceleration: gpuAcceleration,
3823
+ isFixed: state.options.strategy === 'fixed'
3792
3824
  };
3793
3825
 
3794
3826
  if (state.modifiersData.popperOffsets != null) {
@@ -4046,7 +4078,7 @@ function getInnerBoundingClientRect(element) {
4046
4078
  }
4047
4079
 
4048
4080
  function getClientRectFromMixedType(element, clippingParent) {
4049
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
4081
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
4050
4082
  } // A "clipping parent" is an overflowable container with the characteristic of
4051
4083
  // clipping (or hiding) overflowing elements with a position different from
4052
4084
  // `initial`
@@ -4063,7 +4095,7 @@ function getClippingParents(element) {
4063
4095
 
4064
4096
 
4065
4097
  return clippingParents.filter(function (clippingParent) {
4066
- return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
4098
+ return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body' && (canEscapeClipping ? getComputedStyle$1(clippingParent).position !== 'static' : true);
4067
4099
  });
4068
4100
  } // Gets the maximum area that the element is visible in due to any number of
4069
4101
  // clipping parents
@@ -4563,6 +4595,14 @@ function preventOverflow(_ref) {
4563
4595
  var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
4564
4596
  placement: state.placement
4565
4597
  })) : tetherOffset;
4598
+ var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
4599
+ mainAxis: tetherOffsetValue,
4600
+ altAxis: tetherOffsetValue
4601
+ } : Object.assign({
4602
+ mainAxis: 0,
4603
+ altAxis: 0
4604
+ }, tetherOffsetValue);
4605
+ var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
4566
4606
  var data = {
4567
4607
  x: 0,
4568
4608
  y: 0
@@ -4572,13 +4612,15 @@ function preventOverflow(_ref) {
4572
4612
  return;
4573
4613
  }
4574
4614
 
4575
- if (checkMainAxis || checkAltAxis) {
4615
+ if (checkMainAxis) {
4616
+ var _offsetModifierState$;
4617
+
4576
4618
  var mainSide = mainAxis === 'y' ? top : left;
4577
4619
  var altSide = mainAxis === 'y' ? bottom : right;
4578
4620
  var len = mainAxis === 'y' ? 'height' : 'width';
4579
4621
  var offset = popperOffsets[mainAxis];
4580
- var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
4581
- var max$1 = popperOffsets[mainAxis] - overflow[altSide];
4622
+ var min$1 = offset + overflow[mainSide];
4623
+ var max$1 = offset - overflow[altSide];
4582
4624
  var additive = tether ? -popperRect[len] / 2 : 0;
4583
4625
  var minLen = variation === start ? referenceRect[len] : popperRect[len];
4584
4626
  var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
@@ -4598,36 +4640,45 @@ function preventOverflow(_ref) {
4598
4640
  // width or height)
4599
4641
 
4600
4642
  var arrowLen = within(0, referenceRect[len], arrowRect[len]);
4601
- var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
4602
- var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
4643
+ var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
4644
+ var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
4603
4645
  var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
4604
4646
  var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
4605
- var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
4606
- var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
4607
- var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
4647
+ var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
4648
+ var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
4649
+ var tetherMax = offset + maxOffset - offsetModifierValue;
4650
+ var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
4651
+ popperOffsets[mainAxis] = preventedOffset;
4652
+ data[mainAxis] = preventedOffset - offset;
4653
+ }
4608
4654
 
4609
- if (checkMainAxis) {
4610
- var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
4611
- popperOffsets[mainAxis] = preventedOffset;
4612
- data[mainAxis] = preventedOffset - offset;
4613
- }
4655
+ if (checkAltAxis) {
4656
+ var _offsetModifierState$2;
4614
4657
 
4615
- if (checkAltAxis) {
4616
- var _mainSide = mainAxis === 'x' ? top : left;
4658
+ var _mainSide = mainAxis === 'x' ? top : left;
4617
4659
 
4618
- var _altSide = mainAxis === 'x' ? bottom : right;
4660
+ var _altSide = mainAxis === 'x' ? bottom : right;
4619
4661
 
4620
- var _offset = popperOffsets[altAxis];
4662
+ var _offset = popperOffsets[altAxis];
4621
4663
 
4622
- var _min = _offset + overflow[_mainSide];
4664
+ var _len = altAxis === 'y' ? 'height' : 'width';
4623
4665
 
4624
- var _max = _offset - overflow[_altSide];
4666
+ var _min = _offset + overflow[_mainSide];
4625
4667
 
4626
- var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
4668
+ var _max = _offset - overflow[_altSide];
4627
4669
 
4628
- popperOffsets[altAxis] = _preventedOffset;
4629
- data[altAxis] = _preventedOffset - _offset;
4630
- }
4670
+ var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
4671
+
4672
+ var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
4673
+
4674
+ var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
4675
+
4676
+ var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
4677
+
4678
+ var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
4679
+
4680
+ popperOffsets[altAxis] = _preventedOffset;
4681
+ data[altAxis] = _preventedOffset - _offset;
4631
4682
  }
4632
4683
 
4633
4684
  state.modifiersData[name] = data;
@@ -4659,8 +4710,8 @@ function getNodeScroll(node) {
4659
4710
 
4660
4711
  function isElementScaled(element) {
4661
4712
  var rect = element.getBoundingClientRect();
4662
- var scaleX = rect.width / element.offsetWidth || 1;
4663
- var scaleY = rect.height / element.offsetHeight || 1;
4713
+ var scaleX = round(rect.width) / element.offsetWidth || 1;
4714
+ var scaleY = round(rect.height) / element.offsetHeight || 1;
4664
4715
  return scaleX !== 1 || scaleY !== 1;
4665
4716
  } // Returns the composite rect of an element relative to its offsetParent.
4666
4717
  // Composite means it takes into account transforms as well as layout.
@@ -4672,9 +4723,9 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
4672
4723
  }
4673
4724
 
4674
4725
  var isOffsetParentAnElement = isHTMLElement(offsetParent);
4675
- isHTMLElement(offsetParent) && isElementScaled(offsetParent);
4726
+ var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
4676
4727
  var documentElement = getDocumentElement(offsetParent);
4677
- var rect = getBoundingClientRect(elementOrVirtualElement);
4728
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
4678
4729
  var scroll = {
4679
4730
  scrollLeft: 0,
4680
4731
  scrollTop: 0
@@ -4691,7 +4742,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
4691
4742
  }
4692
4743
 
4693
4744
  if (isHTMLElement(offsetParent)) {
4694
- offsets = getBoundingClientRect(offsetParent);
4745
+ offsets = getBoundingClientRect(offsetParent, true);
4695
4746
  offsets.x += offsetParent.clientLeft;
4696
4747
  offsets.y += offsetParent.clientTop;
4697
4748
  } else if (documentElement) {
@@ -5669,11 +5720,11 @@ var CDropdownMenu = function (_a) {
5669
5720
  var classNames = [];
5670
5721
  if (typeof alignment === 'object') {
5671
5722
  Object.keys(alignment).map(function (key) {
5672
- classNames.push("dropdown-menu" + (key === 'xs' ? '' : "-" + key) + "-" + alignment[key]);
5723
+ classNames.push("dropdown-menu".concat(key === 'xs' ? '' : "-".concat(key), "-").concat(alignment[key]));
5673
5724
  });
5674
5725
  }
5675
5726
  if (typeof alignment === 'string') {
5676
- classNames.push("dropdown-menu-" + alignment);
5727
+ classNames.push("dropdown-menu-".concat(alignment));
5677
5728
  }
5678
5729
  return classNames;
5679
5730
  };
@@ -5742,7 +5793,7 @@ CDropdownToggle.propTypes = {
5742
5793
  };
5743
5794
  CDropdownToggle.displayName = 'CDropdownToggle';
5744
5795
 
5745
- var BREAKPOINTS$2 = [
5796
+ var BREAKPOINTS$3 = [
5746
5797
  'xxl',
5747
5798
  'xl',
5748
5799
  'lg',
@@ -5752,33 +5803,33 @@ var BREAKPOINTS$2 = [
5752
5803
  ];
5753
5804
  var CCol = forwardRef(function (_a, ref) {
5754
5805
  var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
5755
- var repsonsiveCLassNames = [];
5756
- BREAKPOINTS$2.forEach(function (bp) {
5806
+ var repsonsiveClassNames = [];
5807
+ BREAKPOINTS$3.forEach(function (bp) {
5757
5808
  var breakpoint = rest[bp];
5758
5809
  delete rest[bp];
5759
- var infix = bp === 'xs' ? '' : "-" + bp;
5810
+ var infix = bp === 'xs' ? '' : "-".concat(bp);
5760
5811
  if (typeof breakpoint === 'number' || typeof breakpoint === 'string') {
5761
- repsonsiveCLassNames.push("col" + infix + "-" + breakpoint);
5812
+ repsonsiveClassNames.push("col".concat(infix, "-").concat(breakpoint));
5762
5813
  }
5763
5814
  if (typeof breakpoint === 'boolean') {
5764
- repsonsiveCLassNames.push("col" + infix);
5815
+ repsonsiveClassNames.push("col".concat(infix));
5765
5816
  }
5766
5817
  if (breakpoint && typeof breakpoint === 'object') {
5767
5818
  if (typeof breakpoint.span === 'number' || typeof breakpoint.span === 'string') {
5768
- repsonsiveCLassNames.push("col" + infix + "-" + breakpoint.span);
5819
+ repsonsiveClassNames.push("col".concat(infix, "-").concat(breakpoint.span));
5769
5820
  }
5770
5821
  if (typeof breakpoint.span === 'boolean') {
5771
- repsonsiveCLassNames.push("col" + infix);
5822
+ repsonsiveClassNames.push("col".concat(infix));
5772
5823
  }
5773
5824
  if (typeof breakpoint.order === 'number' || typeof breakpoint.order === 'string') {
5774
- repsonsiveCLassNames.push("order" + infix + "-" + breakpoint.order);
5825
+ repsonsiveClassNames.push("order".concat(infix, "-").concat(breakpoint.order));
5775
5826
  }
5776
5827
  if (typeof breakpoint.offset === 'number') {
5777
- repsonsiveCLassNames.push("offset" + infix + "-" + breakpoint.offset);
5828
+ repsonsiveClassNames.push("offset".concat(infix, "-").concat(breakpoint.offset));
5778
5829
  }
5779
5830
  }
5780
5831
  });
5781
- var _className = classNames(repsonsiveCLassNames.length ? repsonsiveCLassNames : 'col', className);
5832
+ var _className = classNames(repsonsiveClassNames.length ? repsonsiveClassNames : 'col', className);
5782
5833
  return (React__default.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
5783
5834
  });
5784
5835
  var span = PropTypes.oneOfType([
@@ -5807,7 +5858,7 @@ CCol.propTypes = {
5807
5858
  };
5808
5859
  CCol.displayName = 'CCol';
5809
5860
 
5810
- var BREAKPOINTS$1 = [
5861
+ var BREAKPOINTS$2 = [
5811
5862
  'xxl',
5812
5863
  'xl',
5813
5864
  'lg',
@@ -5817,13 +5868,13 @@ var BREAKPOINTS$1 = [
5817
5868
  ];
5818
5869
  var CContainer = forwardRef(function (_a, ref) {
5819
5870
  var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
5820
- var repsonsiveCLassNames = [];
5821
- BREAKPOINTS$1.forEach(function (bp) {
5871
+ var repsonsiveClassNames = [];
5872
+ BREAKPOINTS$2.forEach(function (bp) {
5822
5873
  var breakpoint = rest[bp];
5823
5874
  delete rest[bp];
5824
- breakpoint && repsonsiveCLassNames.push("container-" + bp);
5875
+ breakpoint && repsonsiveClassNames.push("container-".concat(bp));
5825
5876
  });
5826
- var _className = classNames(repsonsiveCLassNames.length ? repsonsiveCLassNames : 'container', className);
5877
+ var _className = classNames(repsonsiveClassNames.length ? repsonsiveClassNames : 'container', className);
5827
5878
  return (React__default.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
5828
5879
  });
5829
5880
  CContainer.propTypes = {
@@ -5838,7 +5889,7 @@ CContainer.propTypes = {
5838
5889
  };
5839
5890
  CContainer.displayName = 'CContainer';
5840
5891
 
5841
- var BREAKPOINTS = [
5892
+ var BREAKPOINTS$1 = [
5842
5893
  'xxl',
5843
5894
  'xl',
5844
5895
  'lg',
@@ -5848,27 +5899,27 @@ var BREAKPOINTS = [
5848
5899
  ];
5849
5900
  var CRow = forwardRef(function (_a, ref) {
5850
5901
  var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
5851
- var repsonsiveCLassNames = [];
5852
- BREAKPOINTS.forEach(function (bp) {
5902
+ var repsonsiveClassNames = [];
5903
+ BREAKPOINTS$1.forEach(function (bp) {
5853
5904
  var breakpoint = rest[bp];
5854
5905
  delete rest[bp];
5855
- var infix = bp === 'xs' ? '' : "-" + bp;
5906
+ var infix = bp === 'xs' ? '' : "-".concat(bp);
5856
5907
  if (typeof breakpoint === 'object') {
5857
5908
  if (breakpoint.cols) {
5858
- repsonsiveCLassNames.push("row-cols" + infix + "-" + breakpoint.cols);
5909
+ repsonsiveClassNames.push("row-cols".concat(infix, "-").concat(breakpoint.cols));
5859
5910
  }
5860
5911
  if (typeof breakpoint.gutter === 'number') {
5861
- repsonsiveCLassNames.push("g" + infix + "-" + breakpoint.gutter);
5912
+ repsonsiveClassNames.push("g".concat(infix, "-").concat(breakpoint.gutter));
5862
5913
  }
5863
5914
  if (typeof breakpoint.gutterX === 'number') {
5864
- repsonsiveCLassNames.push("gx" + infix + "-" + breakpoint.gutterX);
5915
+ repsonsiveClassNames.push("gx".concat(infix, "-").concat(breakpoint.gutterX));
5865
5916
  }
5866
5917
  if (typeof breakpoint.gutterY === 'number') {
5867
- repsonsiveCLassNames.push("gy" + infix + "-" + breakpoint.gutterY);
5918
+ repsonsiveClassNames.push("gy".concat(infix, "-").concat(breakpoint.gutterY));
5868
5919
  }
5869
5920
  }
5870
5921
  });
5871
- var _className = classNames('row', repsonsiveCLassNames, className);
5922
+ var _className = classNames('row', repsonsiveClassNames, className);
5872
5923
  return (React__default.createElement("div", { className: _className, ref: ref }, children));
5873
5924
  });
5874
5925
  var bp = PropTypes.shape({
@@ -5892,7 +5943,7 @@ CRow.displayName = 'CRow';
5892
5943
  var CFooter = forwardRef(function (_a, ref) {
5893
5944
  var _b;
5894
5945
  var children = _a.children, className = _a.className, position = _a.position, rest = __rest(_a, ["children", "className", "position"]);
5895
- var _className = classNames('footer', (_b = {}, _b["footer-" + position] = position, _b), className);
5946
+ var _className = classNames('footer', (_b = {}, _b["footer-".concat(position)] = position, _b), className);
5896
5947
  return (React__default.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
5897
5948
  });
5898
5949
  CFooter.propTypes = {
@@ -5928,7 +5979,14 @@ CFormLabel.displayName = 'CFormLabel';
5928
5979
 
5929
5980
  var CFormCheck = forwardRef(function (_a, ref) {
5930
5981
  var _b;
5931
- var className = _a.className, button = _a.button, hitArea = _a.hitArea, id = _a.id, inline = _a.inline, invalid = _a.invalid, label = _a.label, _c = _a.type, type = _c === void 0 ? 'checkbox' : _c, valid = _a.valid, rest = __rest(_a, ["className", "button", "hitArea", "id", "inline", "invalid", "label", "type", "valid"]);
5982
+ var className = _a.className, button = _a.button, hitArea = _a.hitArea, id = _a.id, indeterminate = _a.indeterminate, inline = _a.inline, invalid = _a.invalid, label = _a.label, _c = _a.type, type = _c === void 0 ? 'checkbox' : _c, valid = _a.valid, rest = __rest(_a, ["className", "button", "hitArea", "id", "indeterminate", "inline", "invalid", "label", "type", "valid"]);
5983
+ var inputRef = useRef(null);
5984
+ var forkedRef = useForkedRef(ref, inputRef);
5985
+ useEffect(function () {
5986
+ if (inputRef.current && indeterminate) {
5987
+ inputRef.current.indeterminate = indeterminate;
5988
+ }
5989
+ }, [indeterminate]);
5932
5990
  var _className = classNames('form-check', {
5933
5991
  'form-check-inline': inline,
5934
5992
  'is-invalid': invalid,
@@ -5940,12 +5998,12 @@ var CFormCheck = forwardRef(function (_a, ref) {
5940
5998
  'me-2': hitArea,
5941
5999
  });
5942
6000
  var labelClassName = classNames(button
5943
- ? classNames('btn', button.variant ? "btn-" + button.variant + "-" + button.color : "btn-" + button.color, (_b = {},
5944
- _b["btn-" + button.size] = button.size,
5945
- _b), "" + button.shape)
6001
+ ? classNames('btn', button.variant ? "btn-".concat(button.variant, "-").concat(button.color) : "btn-".concat(button.color), (_b = {},
6002
+ _b["btn-".concat(button.size)] = button.size,
6003
+ _b), "".concat(button.shape))
5946
6004
  : 'form-check-label');
5947
6005
  var formControl = function () {
5948
- return React__default.createElement("input", __assign({ type: type, className: inputClassName, id: id }, rest, { ref: ref }));
6006
+ return React__default.createElement("input", __assign({ type: type, className: inputClassName, id: id }, rest, { ref: forkedRef }));
5949
6007
  };
5950
6008
  var formLabel = function () {
5951
6009
  return (React__default.createElement(CFormLabel, __assign({ customClassName: labelClassName }, (id && { htmlFor: id })), label));
@@ -5963,6 +6021,7 @@ CFormCheck.propTypes = {
5963
6021
  className: PropTypes.string,
5964
6022
  hitArea: PropTypes.oneOf(['full']),
5965
6023
  id: PropTypes.string,
6024
+ indeterminate: PropTypes.bool,
5966
6025
  inline: PropTypes.bool,
5967
6026
  invalid: PropTypes.bool,
5968
6027
  label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
@@ -5975,8 +6034,8 @@ var CFormFeedback = forwardRef(function (_a, ref) {
5975
6034
  var _b;
5976
6035
  var children = _a.children, className = _a.className, _c = _a.component, Component = _c === void 0 ? 'div' : _c, invalid = _a.invalid, tooltip = _a.tooltip, valid = _a.valid, rest = __rest(_a, ["children", "className", "component", "invalid", "tooltip", "valid"]);
5977
6036
  var _className = classNames((_b = {},
5978
- _b["invalid-" + (tooltip ? 'tooltip' : 'feedback')] = invalid,
5979
- _b["valid-" + (tooltip ? 'tooltip' : 'feedback')] = valid,
6037
+ _b["invalid-".concat(tooltip ? 'tooltip' : 'feedback')] = invalid,
6038
+ _b["valid-".concat(tooltip ? 'tooltip' : 'feedback')] = valid,
5980
6039
  _b), className);
5981
6040
  return (React__default.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
5982
6041
  });
@@ -6005,7 +6064,7 @@ var CFormInput = forwardRef(function (_a, ref) {
6005
6064
  var _b;
6006
6065
  var children = _a.children, className = _a.className, invalid = _a.invalid, plainText = _a.plainText, size = _a.size, _c = _a.type, type = _c === void 0 ? 'text' : _c, valid = _a.valid, rest = __rest(_a, ["children", "className", "invalid", "plainText", "size", "type", "valid"]);
6007
6066
  var _className = classNames(plainText ? 'form-control-plaintext' : 'form-control', (_b = {},
6008
- _b["form-control-" + size] = size,
6067
+ _b["form-control-".concat(size)] = size,
6009
6068
  _b['form-control-color'] = type === 'color',
6010
6069
  _b['is-invalid'] = invalid,
6011
6070
  _b['is-valid'] = valid,
@@ -6035,19 +6094,25 @@ CFormRange.displayName = 'CFormRange';
6035
6094
 
6036
6095
  var CFormSelect = forwardRef(function (_a, ref) {
6037
6096
  var _b;
6038
- var children = _a.children, className = _a.className, htmlSize = _a.htmlSize, invalid = _a.invalid, size = _a.size, valid = _a.valid, rest = __rest(_a, ["children", "className", "htmlSize", "invalid", "size", "valid"]);
6097
+ var children = _a.children, className = _a.className, htmlSize = _a.htmlSize, invalid = _a.invalid, options = _a.options, size = _a.size, valid = _a.valid, rest = __rest(_a, ["children", "className", "htmlSize", "invalid", "options", "size", "valid"]);
6039
6098
  var _className = classNames('form-select', (_b = {},
6040
- _b["form-select-" + size] = size,
6099
+ _b["form-select-".concat(size)] = size,
6041
6100
  _b['is-invalid'] = invalid,
6042
6101
  _b['is-valid'] = valid,
6043
6102
  _b), className);
6044
- return (React__default.createElement("select", __assign({ className: _className, size: htmlSize }, rest, { ref: ref }), children));
6103
+ return (React__default.createElement("select", __assign({ className: _className, size: htmlSize }, rest, { ref: ref }), options
6104
+ ? options.map(function (option, index) {
6105
+ return (React__default.createElement("option", __assign({}, (typeof option === 'object' &&
6106
+ option.disabled && { disabled: option.disabled }), (typeof option === 'object' && option.value && { value: option.value }), { key: index }), typeof option === 'string' ? option : option.label));
6107
+ })
6108
+ : children));
6045
6109
  });
6046
6110
  CFormSelect.propTypes = {
6047
6111
  children: PropTypes.node,
6048
6112
  className: PropTypes.string,
6049
6113
  htmlSize: PropTypes.number,
6050
6114
  invalid: PropTypes.bool,
6115
+ options: PropTypes.array,
6051
6116
  size: PropTypes.oneOf(['sm', 'lg']),
6052
6117
  valid: PropTypes.bool,
6053
6118
  };
@@ -6057,7 +6122,7 @@ var CFormSwitch = forwardRef(function (_a, ref) {
6057
6122
  var _b;
6058
6123
  var className = _a.className, id = _a.id, invalid = _a.invalid, label = _a.label, size = _a.size, _c = _a.type, type = _c === void 0 ? 'checkbox' : _c, valid = _a.valid, rest = __rest(_a, ["className", "id", "invalid", "label", "size", "type", "valid"]);
6059
6124
  var _className = classNames('form-check form-switch', (_b = {},
6060
- _b["form-switch-" + size] = size,
6125
+ _b["form-switch-".concat(size)] = size,
6061
6126
  _b['is-invalid'] = invalid,
6062
6127
  _b['is-valid'] = valid,
6063
6128
  _b), className);
@@ -6114,7 +6179,7 @@ var CInputGroup = forwardRef(function (_a, ref) {
6114
6179
  var _b;
6115
6180
  var children = _a.children, className = _a.className, size = _a.size, rest = __rest(_a, ["children", "className", "size"]);
6116
6181
  var _className = classNames('input-group', (_b = {},
6117
- _b["input-group-" + size] = size,
6182
+ _b["input-group-".concat(size)] = size,
6118
6183
  _b), className);
6119
6184
  return (React__default.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
6120
6185
  });
@@ -6140,10 +6205,10 @@ CInputGroupText.displayName = 'CInputGroupText';
6140
6205
  var CHeader = forwardRef(function (_a, ref) {
6141
6206
  var _b;
6142
6207
  var children = _a.children, className = _a.className, container = _a.container, position = _a.position, rest = __rest(_a, ["children", "className", "container", "position"]);
6143
- var _className = classNames('header', (_b = {}, _b["header-" + position] = position, _b), className);
6208
+ var _className = classNames('header', (_b = {}, _b["header-".concat(position)] = position, _b), className);
6144
6209
  var content;
6145
6210
  if (container) {
6146
- content = (React__default.createElement("div", { className: "container" + (container !== true ? '-' + container : '') }, children));
6211
+ content = (React__default.createElement("div", { className: "container".concat(container !== true ? '-' + container : '') }, children));
6147
6212
  }
6148
6213
  else {
6149
6214
  content = children;
@@ -6228,7 +6293,7 @@ var CImage = forwardRef(function (_a, ref) {
6228
6293
  var _b;
6229
6294
  var align = _a.align, className = _a.className, fluid = _a.fluid, rounded = _a.rounded, thumbnail = _a.thumbnail, rest = __rest(_a, ["align", "className", "fluid", "rounded", "thumbnail"]);
6230
6295
  var _className = classNames((_b = {},
6231
- _b["float-" + align] = align && (align === 'start' || align === 'end'),
6296
+ _b["float-".concat(align)] = align && (align === 'start' || align === 'end'),
6232
6297
  _b['d-block mx-auto'] = align && align === 'center',
6233
6298
  _b['img-fluid'] = fluid,
6234
6299
  _b.rounded = rounded,
@@ -6251,7 +6316,7 @@ var CListGroup = forwardRef(function (_a, ref) {
6251
6316
  var _className = classNames('list-group', (_b = {
6252
6317
  'list-group-flush': flush
6253
6318
  },
6254
- _b["list-group-" + layout] = layout,
6319
+ _b["list-group-".concat(layout)] = layout,
6255
6320
  _b), className);
6256
6321
  return (React__default.createElement(Component, { className: _className, ref: ref }, children));
6257
6322
  });
@@ -6275,7 +6340,7 @@ var CListGroupItem = forwardRef(function (_a, ref) {
6275
6340
  var _b;
6276
6341
  var children = _a.children, active = _a.active, className = _a.className, disabled = _a.disabled, color = _a.color, _c = _a.component, component = _c === void 0 ? 'li' : _c, rest = __rest(_a, ["children", "active", "className", "disabled", "color", "component"]);
6277
6342
  var _className = classNames('list-group-item', (_b = {},
6278
- _b["list-group-item-" + color] = color,
6343
+ _b["list-group-item-".concat(color)] = color,
6279
6344
  _b['list-group-item-action'] = component === 'a' || component === 'button',
6280
6345
  _b.active = active,
6281
6346
  _b.disabled = disabled,
@@ -6318,9 +6383,9 @@ var CModalDialog = forwardRef(function (_a, ref) {
6318
6383
  },
6319
6384
  _b[typeof fullscreen === 'boolean'
6320
6385
  ? 'modal-fullscreen'
6321
- : "modal-fullscreen-" + fullscreen + "-down"] = fullscreen,
6386
+ : "modal-fullscreen-".concat(fullscreen, "-down")] = fullscreen,
6322
6387
  _b['modal-dialog-scrollable'] = scrollable,
6323
- _b["modal-" + size] = size,
6388
+ _b["modal-".concat(size)] = size,
6324
6389
  _b), className);
6325
6390
  return (React__default.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
6326
6391
  });
@@ -6486,8 +6551,8 @@ var CNav = forwardRef(function (_a, ref) {
6486
6551
  var _b;
6487
6552
  var children = _a.children, className = _a.className, _c = _a.component, Component = _c === void 0 ? 'ul' : _c, layout = _a.layout, variant = _a.variant, rest = __rest(_a, ["children", "className", "component", "layout", "variant"]);
6488
6553
  var _className = classNames('nav', (_b = {},
6489
- _b["nav-" + layout] = layout,
6490
- _b["nav-" + variant] = variant,
6554
+ _b["nav-".concat(layout)] = layout,
6555
+ _b["nav-".concat(variant)] = variant,
6491
6556
  _b), className);
6492
6557
  return (React__default.createElement(Component, __assign({ className: _className, role: "navigation" }, rest, { ref: ref }), children));
6493
6558
  });
@@ -6523,7 +6588,7 @@ var CSidebarNav = forwardRef(function (_a, ref) {
6523
6588
  return (React__default.createElement("ul", __assign({ className: classes, ref: ref }, rest),
6524
6589
  React__default.createElement(CNavContext.Provider, { value: CNavContextValues }, React__default.Children.map(children, function (child, index) {
6525
6590
  if (React__default.isValidElement(child)) {
6526
- return React__default.cloneElement(child, { key: index, idx: "" + index });
6591
+ return React__default.cloneElement(child, { key: index, idx: "".concat(index) });
6527
6592
  }
6528
6593
  return;
6529
6594
  }))));
@@ -6583,7 +6648,7 @@ var CNavGroup = forwardRef(function (_a, ref) {
6583
6648
  compact: compact,
6584
6649
  }), style: __assign(__assign({}, style), transitionStyles[state]), ref: navItemsRef }, React__default.Children.map(children, function (child, index) {
6585
6650
  if (React__default.isValidElement(child)) {
6586
- return React__default.cloneElement(child, { key: index, idx: idx + "." + index });
6651
+ return React__default.cloneElement(child, { key: index, idx: "".concat(idx, ".").concat(index) });
6587
6652
  }
6588
6653
  return;
6589
6654
  }))); })));
@@ -6647,13 +6712,13 @@ var CNavbar = forwardRef(function (_a, ref) {
6647
6712
  var _b;
6648
6713
  var children = _a.children, className = _a.className, color = _a.color, colorScheme = _a.colorScheme, _c = _a.component, Component = _c === void 0 ? 'nav' : _c, container = _a.container, expand = _a.expand, placement = _a.placement, rest = __rest(_a, ["children", "className", "color", "colorScheme", "component", "container", "expand", "placement"]);
6649
6714
  var _className = classNames('navbar', (_b = {},
6650
- _b["bg-" + color] = color,
6651
- _b["navbar-" + colorScheme] = colorScheme,
6652
- _b[typeof expand === 'boolean' ? 'navbar-expand' : "navbar-expand-" + expand] = expand,
6715
+ _b["bg-".concat(color)] = color,
6716
+ _b["navbar-".concat(colorScheme)] = colorScheme,
6717
+ _b[typeof expand === 'boolean' ? 'navbar-expand' : "navbar-expand-".concat(expand)] = expand,
6653
6718
  _b), placement, className);
6654
6719
  var content;
6655
6720
  if (container) {
6656
- content = (React__default.createElement("div", { className: "container" + (container !== true ? '-' + container : '') }, children));
6721
+ content = (React__default.createElement("div", { className: "container".concat(container !== true ? '-' + container : '') }, children));
6657
6722
  }
6658
6723
  else {
6659
6724
  content = children;
@@ -6736,8 +6801,8 @@ var CPagination = forwardRef(function (_a, ref) {
6736
6801
  var _b;
6737
6802
  var children = _a.children, align = _a.align, className = _a.className, size = _a.size, rest = __rest(_a, ["children", "align", "className", "size"]);
6738
6803
  var _className = classNames('pagination', (_b = {},
6739
- _b["justify-content-" + align] = align,
6740
- _b["pagination-" + size] = size,
6804
+ _b["justify-content-".concat(align)] = align,
6805
+ _b["pagination-".concat(size)] = size,
6741
6806
  _b), className);
6742
6807
  return (React__default.createElement("nav", __assign({ ref: ref }, rest),
6743
6808
  React__default.createElement("ul", { className: _className }, children)));
@@ -6766,6 +6831,45 @@ CPaginationItem.propTypes = {
6766
6831
  };
6767
6832
  CPaginationItem.displayName = 'CPaginationItem';
6768
6833
 
6834
+ var BREAKPOINTS = [
6835
+ 'xxl',
6836
+ 'xl',
6837
+ 'lg',
6838
+ 'md',
6839
+ 'sm',
6840
+ 'xs',
6841
+ ];
6842
+ var CPlaceholder = forwardRef(function (_a, ref) {
6843
+ var _b;
6844
+ var children = _a.children, animation = _a.animation, className = _a.className, color = _a.color, _c = _a.component, Component = _c === void 0 ? 'span' : _c, size = _a.size, rest = __rest(_a, ["children", "animation", "className", "color", "component", "size"]);
6845
+ var repsonsiveClassNames = [];
6846
+ BREAKPOINTS.forEach(function (bp) {
6847
+ var breakpoint = rest[bp];
6848
+ delete rest[bp];
6849
+ var infix = bp === 'xs' ? '' : "-".concat(bp);
6850
+ if (typeof breakpoint === 'number') {
6851
+ repsonsiveClassNames.push("col".concat(infix, "-").concat(breakpoint));
6852
+ }
6853
+ if (typeof breakpoint === 'boolean') {
6854
+ repsonsiveClassNames.push("col".concat(infix));
6855
+ }
6856
+ });
6857
+ var _className = classNames(animation ? "placeholder-".concat(animation) : 'placeholder', (_b = {},
6858
+ _b["bg-".concat(color)] = color,
6859
+ _b["placeholder-".concat(size)] = size,
6860
+ _b), repsonsiveClassNames, className);
6861
+ return (React__default.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
6862
+ });
6863
+ CPlaceholder.propTypes = {
6864
+ animation: PropTypes.oneOf(['glow', 'wave']),
6865
+ children: PropTypes.node,
6866
+ className: PropTypes.string,
6867
+ color: colorPropType,
6868
+ component: PropTypes.elementType,
6869
+ size: PropTypes.oneOf(['xs', 'sm', 'lg']),
6870
+ };
6871
+ CPlaceholder.displayName = 'CPlaceholder';
6872
+
6769
6873
  var CPopover = function (_a) {
6770
6874
  var children = _a.children, content = _a.content, _b = _a.placement, placement = _b === void 0 ? 'top' : _b, _c = _a.offset, offset = _c === void 0 ? [0, 8] : _c, onHide = _a.onHide, onShow = _a.onShow, title = _a.title, _d = _a.trigger, trigger = _d === void 0 ? 'click' : _d, visible = _a.visible, rest = __rest(_a, ["children", "content", "placement", "offset", "onHide", "onShow", "title", "trigger", "visible"]);
6771
6875
  var _e = useState(visible), _visible = _e[0], setVisible = _e[1];
@@ -6806,7 +6910,7 @@ var CPopover = function (_a) {
6806
6910
  },
6807
6911
  ] }, function (_a) {
6808
6912
  var arrowProps = _a.arrowProps, style = _a.style, ref = _a.ref;
6809
- return (React__default.createElement("div", __assign({ className: classNames("popover bs-popover-" + (placement === 'left' ? 'start' : placement === 'right' ? 'end' : placement), transitionClass), ref: ref, role: "tooltip", style: style }, rest),
6913
+ return (React__default.createElement("div", __assign({ className: classNames("popover bs-popover-".concat(placement === 'left' ? 'start' : placement === 'right' ? 'end' : placement), transitionClass), ref: ref, role: "tooltip", style: style }, rest),
6810
6914
  React__default.createElement("div", __assign({ className: "popover-arrow" }, arrowProps)),
6811
6915
  React__default.createElement("div", { className: "popover-header" }, title),
6812
6916
  React__default.createElement("div", { className: "popover-body" }, content)));
@@ -6830,11 +6934,11 @@ var CProgressBar = forwardRef(function (_a, ref) {
6830
6934
  var _b;
6831
6935
  var children = _a.children, animated = _a.animated, className = _a.className, color = _a.color, _c = _a.value, value = _c === void 0 ? 0 : _c, variant = _a.variant, rest = __rest(_a, ["children", "animated", "className", "color", "value", "variant"]);
6832
6936
  var _className = classNames('progress-bar', (_b = {},
6833
- _b["bg-" + color] = color,
6834
- _b["progress-bar-" + variant] = variant,
6937
+ _b["bg-".concat(color)] = color,
6938
+ _b["progress-bar-".concat(variant)] = variant,
6835
6939
  _b['progress-bar-animated'] = animated,
6836
6940
  _b), className);
6837
- return (React__default.createElement("div", __assign({ className: _className, role: "progressbar", style: { width: value + "%" }, "aria-valuenow": value, "aria-valuemin": 0, "aria-valuemax": 100 }, rest, { ref: ref }), children));
6941
+ return (React__default.createElement("div", __assign({ className: _className, role: "progressbar", style: { width: "".concat(value, "%") }, "aria-valuenow": value, "aria-valuemin": 0, "aria-valuemax": 100 }, rest, { ref: ref }), children));
6838
6942
  });
6839
6943
  CProgressBar.propTypes = {
6840
6944
  animated: PropTypes.bool,
@@ -6852,7 +6956,7 @@ var CProgress = forwardRef(function (_a, ref) {
6852
6956
  'progress-thin': thin,
6853
6957
  'progress-white': white,
6854
6958
  }, className);
6855
- return (React__default.createElement("div", { className: _className, style: height ? { height: height + "px" } : {}, ref: ref }, value ? (React__default.createElement(CProgressBar, __assign({ value: value }, rest), children)) : (children)));
6959
+ return (React__default.createElement("div", { className: _className, style: height ? { height: "".concat(height, "px") } : {}, ref: ref }, value ? (React__default.createElement(CProgressBar, __assign({ value: value }, rest), children)) : (children)));
6856
6960
  });
6857
6961
  CProgress.propTypes = {
6858
6962
  children: PropTypes.node,
@@ -6949,8 +7053,8 @@ var CSidebar = forwardRef(function (_a, ref) {
6949
7053
  'sidebar-narrow': narrow,
6950
7054
  'sidebar-overlaid': overlaid
6951
7055
  },
6952
- _b["sidebar-" + position] = position,
6953
- _b["sidebar-" + size] = size,
7056
+ _b["sidebar-".concat(position)] = position,
7057
+ _b["sidebar-".concat(size)] = size,
6954
7058
  _b['sidebar-narrow-unfoldable'] = unfoldable,
6955
7059
  _b.show = _visible === true && mobile,
6956
7060
  _b.hide = _visible === false && !mobile,
@@ -6999,7 +7103,7 @@ var COffcanvas = forwardRef(function (_a, ref) {
6999
7103
  }
7000
7104
  }, [_visible]);
7001
7105
  var _className = classNames('offcanvas', (_b = {},
7002
- _b["offcanvas-" + placement] = placement,
7106
+ _b["offcanvas-".concat(placement)] = placement,
7003
7107
  _b.show = _visible,
7004
7108
  _b), className);
7005
7109
  var transitionStyles = {
@@ -7028,8 +7132,8 @@ var COffcanvas = forwardRef(function (_a, ref) {
7028
7132
  }),
7029
7133
  typeof window !== 'undefined' && portal
7030
7134
  ? backdrop &&
7031
- createPortal(React__default.createElement(CBackdrop, { visible: _visible, onClick: handleDismiss }), document.body)
7032
- : backdrop && React__default.createElement(CBackdrop, { visible: _visible, onClick: handleDismiss })));
7135
+ createPortal(React__default.createElement(CBackdrop, { className: "offcanvas-backdrop", onClick: handleDismiss, visible: _visible }), document.body)
7136
+ : backdrop && (React__default.createElement(CBackdrop, { className: "offcanvas-backdrop", onClick: handleDismiss, visible: _visible }))));
7033
7137
  });
7034
7138
  COffcanvas.propTypes = {
7035
7139
  backdrop: PropTypes.bool,
@@ -7126,7 +7230,7 @@ CSidebarHeader.displayName = 'CSidebarHeader';
7126
7230
 
7127
7231
  var CSpinner = forwardRef(function (_a, ref) {
7128
7232
  var className = _a.className, color = _a.color, _b = _a.component, Component = _b === void 0 ? 'div' : _b, size = _a.size, _c = _a.variant, variant = _c === void 0 ? 'border' : _c, _d = _a.visuallyHiddenLabel, visuallyHiddenLabel = _d === void 0 ? 'Loading...' : _d, rest = __rest(_a, ["className", "color", "component", "size", "variant", "visuallyHiddenLabel"]);
7129
- var _className = classNames("spinner-" + variant, "text-" + color, size && "spinner-" + variant + "-" + size, className);
7233
+ var _className = classNames("spinner-".concat(variant), "text-".concat(color), size && "spinner-".concat(variant, "-").concat(size), className);
7130
7234
  return (React__default.createElement(Component, __assign({ className: _className, role: "status" }, rest, { ref: ref }),
7131
7235
  React__default.createElement("span", { className: "visually-hidden" }, visuallyHiddenLabel)));
7132
7236
  });
@@ -7144,17 +7248,17 @@ var CTable = forwardRef(function (_a, ref) {
7144
7248
  var _b;
7145
7249
  var children = _a.children, align = _a.align, borderColor = _a.borderColor, bordered = _a.bordered, borderless = _a.borderless, caption = _a.caption, className = _a.className, color = _a.color, hover = _a.hover, responsive = _a.responsive, small = _a.small, striped = _a.striped, rest = __rest(_a, ["children", "align", "borderColor", "bordered", "borderless", "caption", "className", "color", "hover", "responsive", "small", "striped"]);
7146
7250
  var _className = classNames('table', (_b = {},
7147
- _b["align-" + align] = align,
7148
- _b["caption-" + caption] = caption,
7149
- _b["border-" + borderColor] = borderColor,
7251
+ _b["align-".concat(align)] = align,
7252
+ _b["caption-".concat(caption)] = caption,
7253
+ _b["border-".concat(borderColor)] = borderColor,
7150
7254
  _b['table-bordered'] = bordered,
7151
7255
  _b['table-borderless'] = borderless,
7152
- _b["table-" + color] = color,
7256
+ _b["table-".concat(color)] = color,
7153
7257
  _b['table-hover'] = hover,
7154
7258
  _b['table-sm'] = small,
7155
7259
  _b['table-striped'] = striped,
7156
7260
  _b), className);
7157
- return responsive ? (React__default.createElement("div", { className: typeof responsive === 'boolean' ? 'table-responsive' : "table-responsive-" + responsive },
7261
+ return responsive ? (React__default.createElement("div", { className: typeof responsive === 'boolean' ? 'table-responsive' : "table-responsive-".concat(responsive) },
7158
7262
  React__default.createElement("table", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children))) : (React__default.createElement("table", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
7159
7263
  });
7160
7264
  CTable.propTypes = {
@@ -7180,7 +7284,7 @@ var CTableBody = forwardRef(function (_a, ref) {
7180
7284
  var _b;
7181
7285
  var children = _a.children, className = _a.className, color = _a.color, rest = __rest(_a, ["children", "className", "color"]);
7182
7286
  var _className = classNames((_b = {},
7183
- _b["table-" + color] = color,
7287
+ _b["table-".concat(color)] = color,
7184
7288
  _b), className);
7185
7289
  return (React__default.createElement("tbody", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
7186
7290
  });
@@ -7204,9 +7308,9 @@ var CTableDataCell = forwardRef(function (_a, ref) {
7204
7308
  var _b;
7205
7309
  var children = _a.children, active = _a.active, align = _a.align, className = _a.className, color = _a.color, rest = __rest(_a, ["children", "active", "align", "className", "color"]);
7206
7310
  var _className = classNames((_b = {},
7207
- _b["align-" + align] = align,
7311
+ _b["align-".concat(align)] = align,
7208
7312
  _b['table-active'] = active,
7209
- _b["table-" + color] = color,
7313
+ _b["table-".concat(color)] = color,
7210
7314
  _b), className);
7211
7315
  return (React__default.createElement("td", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
7212
7316
  });
@@ -7223,7 +7327,7 @@ var CTableFoot = forwardRef(function (_a, ref) {
7223
7327
  var _b;
7224
7328
  var children = _a.children, className = _a.className, color = _a.color, rest = __rest(_a, ["children", "className", "color"]);
7225
7329
  var _className = classNames((_b = {},
7226
- _b["table-" + color] = color,
7330
+ _b["table-".concat(color)] = color,
7227
7331
  _b), className);
7228
7332
  return (React__default.createElement("tfoot", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
7229
7333
  });
@@ -7238,7 +7342,7 @@ var CTableHead = forwardRef(function (_a, ref) {
7238
7342
  var _b;
7239
7343
  var children = _a.children, className = _a.className, color = _a.color, rest = __rest(_a, ["children", "className", "color"]);
7240
7344
  var _className = classNames((_b = {},
7241
- _b["table-" + color] = color,
7345
+ _b["table-".concat(color)] = color,
7242
7346
  _b), className);
7243
7347
  return (React__default.createElement("thead", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
7244
7348
  });
@@ -7253,7 +7357,7 @@ var CTableHeaderCell = forwardRef(function (_a, ref) {
7253
7357
  var _b;
7254
7358
  var children = _a.children, className = _a.className, color = _a.color, rest = __rest(_a, ["children", "className", "color"]);
7255
7359
  var _className = classNames((_b = {},
7256
- _b["table-" + color] = color,
7360
+ _b["table-".concat(color)] = color,
7257
7361
  _b), className);
7258
7362
  return (React__default.createElement("th", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
7259
7363
  });
@@ -7268,9 +7372,9 @@ var CTableRow = forwardRef(function (_a, ref) {
7268
7372
  var _b;
7269
7373
  var children = _a.children, active = _a.active, align = _a.align, className = _a.className, color = _a.color, rest = __rest(_a, ["children", "active", "align", "className", "color"]);
7270
7374
  var _className = classNames((_b = {},
7271
- _b["align-" + align] = align,
7375
+ _b["align-".concat(align)] = align,
7272
7376
  _b['table-active'] = active,
7273
- _b["table-" + color] = color,
7377
+ _b["table-".concat(color)] = color,
7274
7378
  _b), className);
7275
7379
  return (React__default.createElement("tr", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
7276
7380
  });
@@ -7345,7 +7449,7 @@ var CToast = forwardRef(function (_a, ref) {
7345
7449
  var _className = classNames('toast', (_b = {
7346
7450
  fade: animation
7347
7451
  },
7348
- _b["bg-" + color] = color,
7452
+ _b["bg-".concat(color)] = color,
7349
7453
  _b['border-0'] = color,
7350
7454
  _b), className);
7351
7455
  var getTransitionClass = function (state) {
@@ -7502,7 +7606,7 @@ var CTooltip = function (_a) {
7502
7606
  var transitionClass = getTransitionClass(state);
7503
7607
  return (React__default.createElement(Popper, { placement: placement }, function (_a) {
7504
7608
  var arrowProps = _a.arrowProps, style = _a.style, ref = _a.ref;
7505
- return (React__default.createElement("div", __assign({ className: classNames("tooltip bs-tooltip-" + (placement === 'left' ? 'start' : placement === 'right' ? 'end' : placement), transitionClass), ref: ref, role: "tooltip", style: style }, rest),
7609
+ return (React__default.createElement("div", __assign({ className: classNames("tooltip bs-tooltip-".concat(placement === 'left' ? 'start' : placement === 'right' ? 'end' : placement), transitionClass), ref: ref, role: "tooltip", style: style }, rest),
7506
7610
  React__default.createElement("div", __assign({ className: "tooltip-arrow" }, arrowProps)),
7507
7611
  React__default.createElement("div", { className: "tooltip-inner" }, content)));
7508
7612
  }));
@@ -7522,7 +7626,7 @@ CTooltip.displayName = 'CTooltip';
7522
7626
  var CWidgetStatsA = forwardRef(function (_a, ref) {
7523
7627
  var _b;
7524
7628
  var action = _a.action, chart = _a.chart, className = _a.className, color = _a.color, title = _a.title, value = _a.value, rest = __rest(_a, ["action", "chart", "className", "color", "title", "value"]);
7525
- var _className = classNames((_b = {}, _b["bg-" + color] = color, _b['text-high-emphasis-inverse'] = color, _b), className);
7629
+ var _className = classNames((_b = {}, _b["bg-".concat(color)] = color, _b['text-high-emphasis-inverse'] = color, _b), className);
7526
7630
  return (React__default.createElement(CCard, __assign({ className: _className }, rest, { ref: ref }),
7527
7631
  React__default.createElement(CCardBody, { className: "pb-0 d-flex justify-content-between align-items-start" },
7528
7632
  React__default.createElement("div", null,
@@ -7565,8 +7669,8 @@ var CWidgetStatsC = forwardRef(function (_a, ref) {
7565
7669
  var className = _a.className, color = _a.color, icon = _a.icon, inverse = _a.inverse, progress = _a.progress, title = _a.title, value = _a.value, rest = __rest(_a, ["className", "color", "icon", "inverse", "progress", "title", "value"]);
7566
7670
  return (React__default.createElement(CCard, __assign({ className: className, color: color }, (inverse && { textColor: 'high-emphasis-inverse' }), rest, { ref: ref }),
7567
7671
  React__default.createElement(CCardBody, null,
7568
- icon && (React__default.createElement("div", { className: "text-medium-emphasis" + (inverse ? '-inverse' : '') + " text-end mb-4" }, icon)),
7569
- value && (React__default.createElement("div", { className: "text-high-emphasis" + (inverse ? '-inverse' : '') + " fs-4 fw-semibold" }, value)),
7672
+ icon && (React__default.createElement("div", { className: "text-medium-emphasis".concat(inverse ? '-inverse' : '', " text-end mb-4") }, icon)),
7673
+ value && (React__default.createElement("div", { className: "text-high-emphasis".concat(inverse ? '-inverse' : '', " fs-4 fw-semibold") }, value)),
7570
7674
  title && (React__default.createElement("div", { className: inverse ? 'text-medium-emphasis-inverse' : 'text-medium-emphasis' }, title)),
7571
7675
  React__default.createElement(CProgress, __assign({ className: "mt-3 mb-0", height: 4 }, (inverse && { white: true }), progress)))));
7572
7676
  });
@@ -7586,7 +7690,7 @@ var CWidgetStatsD = forwardRef(function (_a, ref) {
7586
7690
  var className = _a.className, chart = _a.chart, color = _a.color, icon = _a.icon, values = _a.values, rest = __rest(_a, ["className", "chart", "color", "icon", "values"]);
7587
7691
  var _className = classNames(className);
7588
7692
  var classNameHeader = classNames('position-relative d-flex justify-content-center align-items-center', (_b = {},
7589
- _b["bg-" + color] = color,
7693
+ _b["bg-".concat(color)] = color,
7590
7694
  _b));
7591
7695
  return (React__default.createElement(CCard, __assign({ className: _className }, rest, { ref: ref }),
7592
7696
  React__default.createElement(CCardHeader, { className: classNameHeader },
@@ -7632,10 +7736,10 @@ var CWidgetStatsF = forwardRef(function (_a, ref) {
7632
7736
  var className = _a.className, color = _a.color, footer = _a.footer, icon = _a.icon, _b = _a.padding, padding = _b === void 0 ? true : _b, title = _a.title, value = _a.value, rest = __rest(_a, ["className", "color", "footer", "icon", "padding", "title", "value"]);
7633
7737
  var _className = classNames(className);
7634
7738
  return (React__default.createElement(CCard, __assign({ className: _className }, rest, { ref: ref }),
7635
- React__default.createElement(CCardBody, { className: "d-flex align-items-center " + (padding === false && 'p-0') },
7636
- React__default.createElement("div", { className: "me-3 text-white bg-" + color + " " + (padding ? 'p-3' : 'p-4') }, icon),
7739
+ React__default.createElement(CCardBody, { className: "d-flex align-items-center ".concat(padding === false && 'p-0') },
7740
+ React__default.createElement("div", { className: "me-3 text-white bg-".concat(color, " ").concat(padding ? 'p-3' : 'p-4') }, icon),
7637
7741
  React__default.createElement("div", null,
7638
- React__default.createElement("div", { className: "fs-6 fw-semibold text-" + color }, value),
7742
+ React__default.createElement("div", { className: "fs-6 fw-semibold text-".concat(color) }, value),
7639
7743
  React__default.createElement("div", { className: "text-medium-emphasis text-uppercase fw-semibold small" }, title))),
7640
7744
  footer && React__default.createElement(CCardFooter, null, footer)));
7641
7745
  });
@@ -7650,5 +7754,5 @@ CWidgetStatsF.propTypes = {
7650
7754
  };
7651
7755
  CWidgetStatsF.displayName = 'CWidgetStatsF';
7652
7756
 
7653
- 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, CModal, CModalBody, CModalContent, CModalDialog, CModalFooter, CModalHeader, CModalTitle, CNav, CNavGroup, CNavGroupItems, CNavItem, CNavLink, CNavTitle, CNavbar, CNavbarBrand, CNavbarNav, CNavbarText, CNavbarToggler, COffcanvas, COffcanvasBody, COffcanvasHeader, COffcanvasTitle, CPagination, CPaginationItem, CPopover, CProgress, CProgressBar, CRow, CSidebar, CSidebarBrand, CSidebarFooter, CSidebarHeader, CSidebarNav, CSidebarToggler, CSpinner, CTabContent, CTabPane, CTable, CTableBody, CTableCaption, CTableDataCell, CTableFoot, CTableHead, CTableHeaderCell, CTableRow, CToast, CToastBody, CToastClose, CToastHeader, CToaster, CTooltip, CWidgetStatsA, CWidgetStatsB, CWidgetStatsC, CWidgetStatsD, CWidgetStatsE, CWidgetStatsF };
7757
+ 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, CModal, CModalBody, CModalContent, CModalDialog, CModalFooter, CModalHeader, CModalTitle, 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, CSpinner, CTabContent, CTabPane, CTable, CTableBody, CTableCaption, CTableDataCell, CTableFoot, CTableHead, CTableHeaderCell, CTableRow, CToast, CToastBody, CToastClose, CToastHeader, CToaster, CTooltip, CWidgetStatsA, CWidgetStatsB, CWidgetStatsC, CWidgetStatsD, CWidgetStatsE, CWidgetStatsF };
7654
7758
  //# sourceMappingURL=index.es.js.map