Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-progress

Package Overview
Dependencies
Maintainers
4
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-progress - npm Package Compare versions

Comparing version 2.2.4 to 2.2.5

dist/rc-progress.css

74

lib/Circle.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;

@@ -41,20 +39,20 @@ var _extends2 = require('babel-runtime/helpers/extends');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
/* eslint react/prop-types: 0 */
var Circle = function (_Component) {
(0, _inherits3["default"])(Circle, _Component);
(0, _inherits3['default'])(Circle, _Component);
function Circle() {
(0, _classCallCheck3["default"])(this, Circle);
return (0, _possibleConstructorReturn3["default"])(this, _Component.apply(this, arguments));
(0, _classCallCheck3['default'])(this, Circle);
return (0, _possibleConstructorReturn3['default'])(this, _Component.apply(this, arguments));
}
Circle.prototype.getPathStyles = function getPathStyles() {
var _props = this.props;
var percent = _props.percent;
var strokeWidth = _props.strokeWidth;
var _props$gapDegree = _props.gapDegree;
var gapDegree = _props$gapDegree === undefined ? 0 : _props$gapDegree;
var gapPosition = _props.gapPosition;
var _props = this.props,
percent = _props.percent,
strokeWidth = _props.strokeWidth,
_props$gapDegree = _props.gapDegree,
gapDegree = _props$gapDegree === undefined ? 0 : _props$gapDegree,
gapPosition = _props.gapPosition;

@@ -95,3 +93,4 @@ var radius = 50 - strokeWidth / 2;

strokeDashoffset: '-' + gapDegree / 2 + 'px',
transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s' };
transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s' // eslint-disable-line
};
return { pathString: pathString, trailPathStyle: trailPathStyle, strokePathStyle: strokePathStyle };

@@ -103,26 +102,25 @@ };

var _props2 = this.props;
var prefixCls = _props2.prefixCls;
var strokeWidth = _props2.strokeWidth;
var trailWidth = _props2.trailWidth;
var strokeColor = _props2.strokeColor;
var percent = _props2.percent;
var trailColor = _props2.trailColor;
var strokeLinecap = _props2.strokeLinecap;
var style = _props2.style;
var className = _props2.className;
var restProps = (0, _objectWithoutProperties3["default"])(_props2, ['prefixCls', 'strokeWidth', 'trailWidth', 'strokeColor', 'percent', 'trailColor', 'strokeLinecap', 'style', 'className']);
var _props2 = this.props,
prefixCls = _props2.prefixCls,
strokeWidth = _props2.strokeWidth,
trailWidth = _props2.trailWidth,
strokeColor = _props2.strokeColor,
percent = _props2.percent,
trailColor = _props2.trailColor,
strokeLinecap = _props2.strokeLinecap,
style = _props2.style,
className = _props2.className,
restProps = (0, _objectWithoutProperties3['default'])(_props2, ['prefixCls', 'strokeWidth', 'trailWidth', 'strokeColor', 'percent', 'trailColor', 'strokeLinecap', 'style', 'className']);
var _getPathStyles = this.getPathStyles();
var _getPathStyles = this.getPathStyles(),
pathString = _getPathStyles.pathString,
trailPathStyle = _getPathStyles.trailPathStyle,
strokePathStyle = _getPathStyles.strokePathStyle;
var pathString = _getPathStyles.pathString;
var trailPathStyle = _getPathStyles.trailPathStyle;
var strokePathStyle = _getPathStyles.strokePathStyle;
delete restProps.percent;
delete restProps.gapDegree;
delete restProps.gapPosition;
return _react2["default"].createElement(
return _react2['default'].createElement(
'svg',
(0, _extends3["default"])({
(0, _extends3['default'])({
className: prefixCls + '-circle ' + className,

@@ -132,3 +130,3 @@ viewBox: '0 0 100 100',

}, restProps),
_react2["default"].createElement('path', {
_react2['default'].createElement('path', {
className: prefixCls + '-circle-trail',

@@ -141,3 +139,3 @@ d: pathString,

}),
_react2["default"].createElement('path', {
_react2['default'].createElement('path', {
className: prefixCls + '-circle-path',

@@ -160,11 +158,11 @@ d: pathString,

Circle.propTypes = (0, _extends3["default"])({}, _types.propTypes, {
gapPosition: _propTypes2["default"].oneOf(['top', 'bottom', 'left', 'right'])
Circle.propTypes = (0, _extends3['default'])({}, _types.propTypes, {
gapPosition: _propTypes2['default'].oneOf(['top', 'bottom', 'left', 'right'])
});
Circle.defaultProps = (0, _extends3["default"])({}, _types.defaultProps, {
Circle.defaultProps = (0, _extends3['default'])({}, _types.defaultProps, {
gapPosition: 'top'
});
exports["default"] = (0, _enhancer2["default"])(Circle);
exports['default'] = (0, _enhancer2['default'])(Circle);
module.exports = exports['default'];
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;

@@ -19,11 +17,11 @@ var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var enhancer = function enhancer(WrappedComponent) {
return function (_WrappedComponent) {
(0, _inherits3["default"])(Progress, _WrappedComponent);
(0, _inherits3['default'])(Progress, _WrappedComponent);
function Progress() {
(0, _classCallCheck3["default"])(this, Progress);
return (0, _possibleConstructorReturn3["default"])(this, _WrappedComponent.apply(this, arguments));
(0, _classCallCheck3['default'])(this, Progress);
return (0, _possibleConstructorReturn3['default'])(this, _WrappedComponent.apply(this, arguments));
}

@@ -52,3 +50,3 @@

exports["default"] = enhancer;
exports['default'] = enhancer;
module.exports = exports['default'];
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.Circle = exports.Line = undefined;

@@ -16,9 +14,9 @@

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
exports.Line = _Line2["default"];
exports.Circle = _Circle2["default"];
exports["default"] = {
Line: _Line2["default"],
Circle: _Circle2["default"]
exports.Line = _Line2['default'];
exports.Circle = _Circle2['default'];
exports['default'] = {
Line: _Line2['default'],
Circle: _Circle2['default']
};
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;

@@ -37,10 +35,10 @@ var _extends2 = require('babel-runtime/helpers/extends');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var Line = function (_Component) {
(0, _inherits3["default"])(Line, _Component);
(0, _inherits3['default'])(Line, _Component);
function Line() {
(0, _classCallCheck3["default"])(this, Line);
return (0, _possibleConstructorReturn3["default"])(this, _Component.apply(this, arguments));
(0, _classCallCheck3['default'])(this, Line);
return (0, _possibleConstructorReturn3['default'])(this, _Component.apply(this, arguments));
}

@@ -51,13 +49,13 @@

var _props = this.props;
var className = _props.className;
var percent = _props.percent;
var prefixCls = _props.prefixCls;
var strokeColor = _props.strokeColor;
var strokeLinecap = _props.strokeLinecap;
var strokeWidth = _props.strokeWidth;
var style = _props.style;
var trailColor = _props.trailColor;
var trailWidth = _props.trailWidth;
var restProps = (0, _objectWithoutProperties3["default"])(_props, ['className', 'percent', 'prefixCls', 'strokeColor', 'strokeLinecap', 'strokeWidth', 'style', 'trailColor', 'trailWidth']);
var _props = this.props,
className = _props.className,
percent = _props.percent,
prefixCls = _props.prefixCls,
strokeColor = _props.strokeColor,
strokeLinecap = _props.strokeLinecap,
strokeWidth = _props.strokeWidth,
style = _props.style,
trailColor = _props.trailColor,
trailWidth = _props.trailWidth,
restProps = (0, _objectWithoutProperties3['default'])(_props, ['className', 'percent', 'prefixCls', 'strokeColor', 'strokeLinecap', 'strokeWidth', 'style', 'trailColor', 'trailWidth']);

@@ -78,5 +76,5 @@

return _react2["default"].createElement(
return _react2['default'].createElement(
'svg',
(0, _extends3["default"])({
(0, _extends3['default'])({
className: prefixCls + '-line ' + className,

@@ -87,3 +85,3 @@ viewBox: viewBoxString,

}, restProps),
_react2["default"].createElement('path', {
_react2['default'].createElement('path', {
className: prefixCls + '-line-trail',

@@ -96,3 +94,3 @@ d: pathString,

}),
_react2["default"].createElement('path', {
_react2['default'].createElement('path', {
className: prefixCls + '-line-path',

@@ -119,3 +117,3 @@ d: pathString,

exports["default"] = (0, _enhancer2["default"])(Line);
exports['default'] = (0, _enhancer2['default'])(Line);
module.exports = exports['default'];
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.propTypes = exports.defaultProps = undefined;

@@ -12,3 +10,3 @@

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

@@ -28,11 +26,11 @@ var defaultProps = exports.defaultProps = {

var propTypes = exports.propTypes = {
className: _propTypes2["default"].string,
percent: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]),
prefixCls: _propTypes2["default"].string,
strokeColor: _propTypes2["default"].string,
strokeLinecap: _propTypes2["default"].oneOf(['butt', 'round', 'square']),
strokeWidth: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]),
style: _propTypes2["default"].object,
trailColor: _propTypes2["default"].string,
trailWidth: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])
className: _propTypes2['default'].string,
percent: _propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].string]),
prefixCls: _propTypes2['default'].string,
strokeColor: _propTypes2['default'].string,
strokeLinecap: _propTypes2['default'].oneOf(['butt', 'round', 'square']),
strokeWidth: _propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].string]),
style: _propTypes2['default'].object,
trailColor: _propTypes2['default'].string,
trailWidth: _propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].string])
};
{
"name": "rc-progress",
"version": "2.2.4",
"version": "2.2.5",
"description": "progress ui component for react",

@@ -58,3 +58,3 @@ "keywords": [

"rc-test": "^6.0.1",
"rc-tools": "6.x",
"rc-tools": "7.x",
"react": "^16.0.0",

@@ -61,0 +61,0 @@ "react-dom": "^16.0.0"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc