@coreui/react-pro 5.14.0 → 5.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -42,7 +42,7 @@
42
42
 
43
43
  Several quick start options are available:
44
44
 
45
- - [Download the latest release](https://github.com/coreui/coreui-react-pro/archive/v5.14.0.zip)
45
+ - [Download the latest release](https://github.com/coreui/coreui-react-pro/archive/v5.14.1.zip)
46
46
  - Clone the repo: `git clone https://github.com/coreui/coreui-react.git`
47
47
  - Install with [npm](https://www.npmjs.com/): `npm install @coreui/react`
48
48
  - Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/react`
@@ -1,5 +1,5 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import type { Colors } from '../../types';
2
+ import type { Colors, Gradients } from '../../types';
3
3
  export interface CProgressBarProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /**
5
5
  * Use to animate the stripes right to left via CSS3 animations.
@@ -21,7 +21,7 @@ CProgressBar.propTypes = {
21
21
  animated: PropTypes.bool,
22
22
  children: PropTypes.node,
23
23
  className: PropTypes.string,
24
- color: PropTypes.oneOfType([props.colorPropType, gradientsPropType]),
24
+ color: PropTypes.oneOfType([props.colorPropType, props.gradientsPropType]),
25
25
  value: PropTypes.number,
26
26
  variant: PropTypes.oneOf(['striped']),
27
27
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CProgressBar.js","sources":["../../../../src/components/progress/CProgressBar.tsx"],"sourcesContent":[null],"names":["forwardRef","__rest","useContext","CProgressStackedContext","__assign","classNames","colorPropType"],"mappings":";;;;;;;;;IAkCa,YAAY,GAAGA,gBAAU,CACpC,UAAC,EAAqE,EAAE,GAAG,EAAA;;IAAxE,IAAA,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,SAAS,GAAA,EAAA,CAAA,SAAA,EAAE,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,aA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WAAW,GAAG,cAAc;;;;"}
1
+ {"version":3,"file":"CProgressBar.js","sources":["../../../../src/components/progress/CProgressBar.tsx"],"sourcesContent":[null],"names":["forwardRef","__rest","useContext","CProgressStackedContext","__assign","classNames","colorPropType","gradientsPropType"],"mappings":";;;;;;;;;IAkCa,YAAY,GAAGA,gBAAU,CACpC,UAAC,EAAqE,EAAE,GAAG,EAAA;;IAAxE,IAAA,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,SAAS,GAAA,EAAA,CAAA,SAAA,EAAE,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,aAAS,EAAT,KAAK,GAAG,EAAA,KAAA,MAAA,GAAA,CAAC,GAAA,EAAA,EAAE,OAAO,GAAA,EAAA,CAAA,OAAA,EAAK,IAAI,GAAnEC,gBAAA,CAAA,EAAA,EAAA,CAAA,UAAA,EAAA,UAAA,EAAA,WAAA,EAAA,OAAA,EAAA,OAAA,EAAA,SAAA,CAAqE,CAAF;AAC1D,IAAA,IAAA,OAAO,GAAKC,gBAAU,CAACC,+CAAuB,CAAC,QAAxC;AAEf,IAAA,QACE,KACE,CAAA,aAAA,CAAA,KAAA,EAAAC,kBAAA,CAAA,EAAA,SAAS,EAAEC,aAAU,CACnB,cAAc,GAAA,EAAA,GAAA,EAAA;AAEZ,YAAA,EAAA,CAAC,KAAM,CAAA,MAAA,CAAA,KAAK,CAAE,CAAA,GAAG,KAAK;AACtB,YAAA,EAAA,CAAC,eAAgB,CAAA,MAAA,CAAA,OAAO,CAAE,CAAA,GAAG,OAAO;AACpC,YAAA,EAAA,CAAA,uBAAA,CAAuB,GAAE,QAAQ;AAEnC,YAAA,EAAA,GAAA,SAAS,CACV,EAAA,GACI,CAAC,OAAO,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAG,CAAA,MAAA,CAAA,KAAK,EAAG,GAAA,CAAA,EAAE,EAAE,GAC9C,IAAI,EACR,EAAA,GAAG,EAAE,GAAG,EAEP,CAAA,EAAA,QAAQ,CACL;AAEV,CAAC;AAEH,YAAY,CAAC,SAAS,GAAG;IACvB,QAAQ,EAAE,SAAS,CAAC,IAAI;IACxB,QAAQ,EAAE,SAAS,CAAC,IAAI;IACxB,SAAS,EAAE,SAAS,CAAC,MAAM;IAC3B,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,CAACC,mBAAa,EAAEC,uBAAiB,CAAC,CAAC;IAC9D,KAAK,EAAE,SAAS,CAAC,MAAM;IACvB,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC;CACtC;AAED,YAAY,CAAC,WAAW,GAAG,cAAc;;;;"}
@@ -1,5 +1,5 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import type { Colors } from '../../types';
2
+ import type { Colors, Gradients } from '../../types';
3
3
  export interface CProgressBarProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /**
5
5
  * Use to animate the stripes right to left via CSS3 animations.
@@ -2,7 +2,7 @@ import { __rest, __assign } from '../../node_modules/tslib/tslib.es6.js';
2
2
  import React, { forwardRef, useContext } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import classNames from '../../_virtual/index.js';
5
- import { colorPropType } from '../../props.js';
5
+ import { colorPropType, gradientsPropType } from '../../props.js';
6
6
  import { CProgressStackedContext } from './CProgressStackedContext.js';
7
7
 
8
8
  var CProgressBar = forwardRef(function (_a, ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreui/react-pro",
3
- "version": "5.14.0",
3
+ "version": "5.14.1",
4
4
  "description": "UI Components Library for React.js",
5
5
  "keywords": [
6
6
  "react",
@@ -48,7 +48,7 @@ export const CProgress = forwardRef<HTMLDivElement, CProgressProps>(
48
48
  'progress-thin': thin,
49
49
  'progress-white': white,
50
50
  },
51
- className,
51
+ className
52
52
  )}
53
53
  {...(value !== undefined && {
54
54
  role: 'progressbar',
@@ -64,7 +64,7 @@ export const CProgress = forwardRef<HTMLDivElement, CProgressProps>(
64
64
  >
65
65
  {React.Children.toArray(children).some(
66
66
  // @ts-expect-error displayName is set in the CProgressBar component
67
- (child) => child.type && child.type.displayName === 'CProgressBar',
67
+ (child) => child.type && child.type.displayName === 'CProgressBar'
68
68
  ) ? (
69
69
  React.Children.map(children, (child) => {
70
70
  // @ts-expect-error displayName is set in the CProgressBar component
@@ -88,7 +88,7 @@ export const CProgress = forwardRef<HTMLDivElement, CProgressProps>(
88
88
  )}
89
89
  </div>
90
90
  )
91
- },
91
+ }
92
92
  )
93
93
 
94
94
  CProgress.propTypes = {
@@ -2,8 +2,8 @@ import React, { forwardRef, HTMLAttributes, useContext } from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import classNames from 'classnames'
4
4
 
5
- import { colorPropType } from '../../props'
6
- import type { Colors } from '../../types'
5
+ import { colorPropType, gradientsPropType } from '../../props'
6
+ import type { Colors, Gradients } from '../../types'
7
7
 
8
8
  import { CProgressStackedContext } from './CProgressStackedContext'
9
9
 
@@ -45,7 +45,7 @@ export const CProgressBar = forwardRef<HTMLDivElement, CProgressBarProps>(
45
45
  [`progress-bar-${variant}`]: variant,
46
46
  'progress-bar-animated': animated,
47
47
  },
48
- className,
48
+ className
49
49
  )}
50
50
  {...(!stacked && { style: { width: `${value}%` } })}
51
51
  {...rest}
@@ -54,7 +54,7 @@ export const CProgressBar = forwardRef<HTMLDivElement, CProgressBarProps>(
54
54
  {children}
55
55
  </div>
56
56
  )
57
- },
57
+ }
58
58
  )
59
59
  CProgressBar.propTypes = {
60
60
  animated: PropTypes.bool,