@coreui/react 4.1.0 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2387,6 +2387,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
2387
2387
  var CSSTransition$1 = CSSTransition;
2388
2388
 
2389
2389
  // code borrowed from https://github.com/reach/reach-ui
2390
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2390
2391
  function useForkedRef() {
2391
2392
  var refs = [];
2392
2393
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -2396,6 +2397,7 @@ function useForkedRef() {
2396
2397
  if (refs.every(function (ref) { return ref == null; })) {
2397
2398
  return null;
2398
2399
  }
2400
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2399
2401
  return function (node) {
2400
2402
  refs.forEach(function (ref) {
2401
2403
  assignRef(ref, node);
@@ -2403,7 +2405,10 @@ function useForkedRef() {
2403
2405
  };
2404
2406
  }, refs);
2405
2407
  }
2406
- function assignRef(ref, value) {
2408
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2409
+ function assignRef(ref,
2410
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2411
+ value) {
2407
2412
  if (ref == null)
2408
2413
  return;
2409
2414
  if (isFunction(ref)) {
@@ -2418,6 +2423,7 @@ function assignRef(ref, value) {
2418
2423
  }
2419
2424
  }
2420
2425
  }
2426
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
2421
2427
  function isFunction(value) {
2422
2428
  return !!(value && {}.toString.call(value) == '[object Function]');
2423
2429
  }
@@ -6946,12 +6952,12 @@ var CPopover = function (_a) {
6946
6952
  };
6947
6953
  CPopover.propTypes = {
6948
6954
  children: PropTypes.any,
6949
- content: PropTypes.node,
6955
+ content: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
6950
6956
  placement: PropTypes.oneOf(['auto', 'top', 'right', 'bottom', 'left']),
6951
6957
  offset: PropTypes.any,
6952
6958
  onHide: PropTypes.func,
6953
6959
  onShow: PropTypes.func,
6954
- title: PropTypes.string,
6960
+ title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
6955
6961
  trigger: triggerPropType,
6956
6962
  visible: PropTypes.bool,
6957
6963
  };
@@ -7641,7 +7647,7 @@ var CTooltip = function (_a) {
7641
7647
  };
7642
7648
  CTooltip.propTypes = {
7643
7649
  children: PropTypes.any,
7644
- content: PropTypes.node,
7650
+ content: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
7645
7651
  placement: PropTypes.oneOf(['auto', 'top', 'right', 'bottom', 'left']),
7646
7652
  onHide: PropTypes.func,
7647
7653
  onShow: PropTypes.func,