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

rc-steps

Package Overview
Dependencies
Maintainers
4
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-steps - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

4

HISTORY.md
# History
----
## 2.4.0
* Refactor for extra width of tail. https://github.com/ant-design/ant-design/issues/5083
## 2.3.0

@@ -5,0 +9,0 @@

8

lib/Step.js

@@ -51,3 +51,2 @@ 'use strict';

var style = _props.style;
var tailWidth = _props.tailWidth;
var itemWidth = _props.itemWidth;

@@ -66,3 +65,3 @@ var _props$status = _props.status;

var restProps = _objectWithoutProperties(_props, ['className', 'prefixCls', 'style', 'tailWidth', 'itemWidth', 'status', 'iconPrefix', 'icon', 'wrapperStyle', 'adjustMarginRight', 'stepLast', 'stepNumber', 'description', 'title', 'progressDot']);
var restProps = _objectWithoutProperties(_props, ['className', 'prefixCls', 'style', 'itemWidth', 'status', 'iconPrefix', 'icon', 'wrapperStyle', 'adjustMarginRight', 'stepLast', 'stepNumber', 'description', 'title', 'progressDot']);

@@ -114,4 +113,4 @@ var iconClassName = (0, _classnames2["default"])((_classNames = {}, _defineProperty(_classNames, prefixCls + '-icon', true), _defineProperty(_classNames, iconPrefix + 'icon', true), _defineProperty(_classNames, iconPrefix + 'icon-' + icon, icon && isString(icon)), _defineProperty(_classNames, iconPrefix + 'icon-check', !icon && status === 'finish'), _defineProperty(_classNames, iconPrefix + 'icon-cross', !icon && status === 'error'), _classNames));

ref: 'tail',
style: tailWidth ? { width: tailWidth } : {},
className: prefixCls + '-tail'
className: prefixCls + '-tail',
style: { paddingRight: -adjustMarginRight }
},

@@ -167,3 +166,2 @@ _react2["default"].createElement('i', null)

wrapperStyle: _react.PropTypes.object,
tailWidth: _react.PropTypes.oneOfType([_react.PropTypes.number, _react.PropTypes.string]),
itemWidth: _react.PropTypes.oneOfType([_react.PropTypes.number, _react.PropTypes.string]),

@@ -170,0 +168,0 @@ status: _react.PropTypes.string,

@@ -113,3 +113,2 @@ 'use strict';

var adjustMarginRight = direction === 'vertical' || idx === lastIndex ? null : -Math.round(_this2.state.lastStepOffsetWidth / lastIndex + 1);
var tailWidth = direction === 'vertical' ? '' : _this2.state.firstStepOffsetWidth + Math.round(_this2.state.lastStepOffsetWidth / 2 + 1) - Math.round(_this2.state.lastStepOffsetWidth / lastIndex + 1);
var np = {

@@ -119,3 +118,2 @@ stepNumber: (idx + 1).toString(),

itemWidth: itemWidth,
tailWidth: tailWidth,
adjustMarginRight: adjustMarginRight,

@@ -122,0 +120,0 @@ prefixCls: prefixCls,

{
"name": "rc-steps",
"version": "2.3.0",
"version": "2.4.0",
"description": "steps ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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