Socket
Socket
Sign inDemoInstall

rc-steps

Package Overview
Dependencies
Maintainers
1
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 1.0.1 to 1.0.2

README.md

4

lib/Step.js

@@ -17,6 +17,6 @@ 'use strict';

'div',
{ className: 'rc-steps-item rc-steps-status-' + props.status },
{ className: 'rc-steps-item rc-steps-status-' + props.status + (props.icon ? ' rc-steps-custom' : '') },
React.createElement(
'div',
{ className: 'rc-steps-head' + (props.icon ? ' rc-steps-custom' : '') },
{ className: 'rc-steps-head' },
icon

@@ -23,0 +23,0 @@ ),

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

return {
init: false,
tailWidth: 0

@@ -51,3 +52,3 @@ };

var len = this.props.children.length - 1;
var dw = Math.floor((this._previousStepsWidth - this._totalItemsWidth) / len);
var dw = Math.round((this._previousStepsWidth - this._totalItemsWidth) / len) - 1;
if (dw <= 0) {

@@ -57,2 +58,3 @@ return;

this.setState({
init: true,
tailWidth: dw

@@ -67,3 +69,3 @@ });

'div',
{ className: 'rc-steps' + (props.size === 'small' ? ' rc-steps-small' : '') },
{ className: 'rc-steps' + (this.state.init ? '' : ' rc-steps-init') + (props.size === 'small' ? ' rc-steps-small' : '') },
React.Children.map(children, function (ele, idx) {

@@ -70,0 +72,0 @@ var np = {

{
"name": "rc-steps",
"version": "1.0.1",
"version": "1.0.2",
"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