@salutejs/plasma-new-hope 0.191.1-canary.1517.11799273885.0 → 0.191.1-canary.1532.11799177518.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. package/cjs/components/Breadcrumbs/Breadcrumbs.css +3 -3
  2. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +7 -14
  3. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  4. package/cjs/components/Breadcrumbs/{Breadcrumbs.styles_19b6ey4.css → Breadcrumbs.styles_1icsgdr.css} +1 -1
  5. package/cjs/components/Breadcrumbs/utils/index.css +3 -3
  6. package/cjs/components/Steps/Steps.css +10 -10
  7. package/cjs/components/Steps/Steps.js +14 -21
  8. package/cjs/components/Steps/Steps.js.map +1 -1
  9. package/cjs/components/Steps/Steps.styles.js +1 -1
  10. package/cjs/components/Steps/Steps.styles.js.map +1 -1
  11. package/cjs/components/Steps/{Steps.styles_wa45kj.css → Steps.styles_1xmqxqu.css} +1 -1
  12. package/cjs/components/Steps/Steps.tokens.js +0 -1
  13. package/cjs/components/Steps/Steps.tokens.js.map +1 -1
  14. package/cjs/components/Steps/ui/StepItem/StepItem.css +9 -9
  15. package/cjs/components/Steps/ui/StepItem/StepItem.js +7 -29
  16. package/cjs/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  17. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
  18. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  19. package/cjs/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +9 -0
  20. package/cjs/index.css +14 -14
  21. package/emotion/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +8 -11
  22. package/emotion/cjs/components/Steps/Steps.js +14 -23
  23. package/emotion/cjs/components/Steps/Steps.styles.js +1 -1
  24. package/emotion/cjs/components/Steps/Steps.tokens.js +0 -1
  25. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.js +7 -29
  26. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.styles.js +11 -22
  27. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
  28. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  29. package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +15 -13
  30. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.config.js +5 -5
  31. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  32. package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +14 -12
  33. package/emotion/es/components/Breadcrumbs/Breadcrumbs.styles.js +8 -11
  34. package/emotion/es/components/Steps/Steps.js +15 -24
  35. package/emotion/es/components/Steps/Steps.styles.js +1 -1
  36. package/emotion/es/components/Steps/Steps.tokens.js +0 -1
  37. package/emotion/es/components/Steps/ui/StepItem/StepItem.js +7 -29
  38. package/emotion/es/components/Steps/ui/StepItem/StepItem.styles.js +11 -22
  39. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
  40. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  41. package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +15 -13
  42. package/emotion/es/examples/plasma_web/components/Steps/Steps.config.js +5 -5
  43. package/emotion/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  44. package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +14 -12
  45. package/es/components/Breadcrumbs/Breadcrumbs.css +3 -3
  46. package/es/components/Breadcrumbs/Breadcrumbs.styles.js +7 -14
  47. package/es/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  48. package/es/components/Breadcrumbs/{Breadcrumbs.styles_19b6ey4.css → Breadcrumbs.styles_1icsgdr.css} +1 -1
  49. package/es/components/Breadcrumbs/utils/index.css +3 -3
  50. package/es/components/Steps/Steps.css +10 -10
  51. package/es/components/Steps/Steps.js +16 -23
  52. package/es/components/Steps/Steps.js.map +1 -1
  53. package/es/components/Steps/Steps.styles.js +1 -1
  54. package/es/components/Steps/Steps.styles.js.map +1 -1
  55. package/es/components/Steps/{Steps.styles_wa45kj.css → Steps.styles_1xmqxqu.css} +1 -1
  56. package/es/components/Steps/Steps.tokens.js +0 -1
  57. package/es/components/Steps/Steps.tokens.js.map +1 -1
  58. package/es/components/Steps/ui/StepItem/StepItem.css +9 -9
  59. package/es/components/Steps/ui/StepItem/StepItem.js +8 -30
  60. package/es/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  61. package/es/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
  62. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  63. package/es/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +9 -0
  64. package/es/index.css +14 -14
  65. package/package.json +2 -2
  66. package/styled-components/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +5 -8
  67. package/styled-components/cjs/components/Steps/Steps.js +14 -23
  68. package/styled-components/cjs/components/Steps/Steps.styles.js +1 -1
  69. package/styled-components/cjs/components/Steps/Steps.tokens.js +0 -1
  70. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.js +7 -29
  71. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.styles.js +6 -17
  72. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
  73. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  74. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +15 -13
  75. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.config.js +1 -1
  76. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  77. package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +14 -12
  78. package/styled-components/es/components/Breadcrumbs/Breadcrumbs.styles.js +5 -8
  79. package/styled-components/es/components/Steps/Steps.js +15 -24
  80. package/styled-components/es/components/Steps/Steps.styles.js +1 -1
  81. package/styled-components/es/components/Steps/Steps.tokens.js +0 -1
  82. package/styled-components/es/components/Steps/ui/StepItem/StepItem.js +7 -29
  83. package/styled-components/es/components/Steps/ui/StepItem/StepItem.styles.js +6 -17
  84. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
  85. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  86. package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +15 -13
  87. package/styled-components/es/examples/plasma_web/components/Steps/Steps.config.js +1 -1
  88. package/styled-components/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  89. package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +14 -12
  90. package/types/components/Breadcrumbs/Breadcrumbs.styles.d.ts.map +1 -1
  91. package/types/components/Steps/Steps.d.ts.map +1 -1
  92. package/types/components/Steps/Steps.styles.d.ts.map +1 -1
  93. package/types/components/Steps/Steps.tokens.d.ts +0 -1
  94. package/types/components/Steps/Steps.tokens.d.ts.map +1 -1
  95. package/types/components/Steps/ui/StepItem/StepItem.d.ts.map +1 -1
  96. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts +2 -2
  97. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -1
  98. package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts.map +1 -1
  99. package/types/examples/plasma_web/components/Steps/Steps.config.d.ts.map +1 -1
  100. package/cjs/components/Steps/ui/StepItem/StepItem.styles_acxstj.css +0 -9
  101. package/es/components/Steps/ui/StepItem/StepItem.styles_acxstj.css +0 -9
@@ -18,8 +18,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
20
20
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23
21
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24
22
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
25
23
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -55,33 +53,19 @@ var stepsRoot = exports.stepsRoot = function stepsRoot(Root) {
55
53
  _useState2 = _slicedToArray(_useState, 2),
56
54
  prevIndex = _useState2[0],
57
55
  setPrevIndex = _useState2[1];
56
+ var isUncontrolled = current !== undefined;
58
57
  var hasIndicator = items.some(function (item) {
59
58
  return item.indicator != null;
60
59
  });
61
60
  var isSimple = items.every(function (item) {
62
61
  return !item.title && !item.content;
63
62
  });
64
- var innerItems = (0, _react.useMemo)(function () {
65
- var isUncontrolled = current !== undefined;
66
- return items.map(function (item, index) {
67
- var itemStatus = (0, _getItemStatus.getItemStatus)({
68
- isUncontrolled: isUncontrolled,
69
- current: current,
70
- status: status,
71
- index: index,
72
- item: item
73
- });
74
- return _objectSpread(_objectSpread({}, item), {}, {
75
- status: itemStatus
76
- });
77
- });
78
- }, [status, current, items]);
79
63
  (0, _react.useEffect)(function () {
80
64
  var calcPrevIndex = function calcPrevIndex() {
81
65
  if (current !== undefined) {
82
66
  setPrevIndex(current);
83
67
  } else {
84
- var index = innerItems.findIndex(function (item) {
68
+ var index = items.findIndex(function (item) {
85
69
  return item.status === 'active';
86
70
  });
87
71
  setPrevIndex(index !== -1 ? index : undefined);
@@ -91,14 +75,21 @@ var stepsRoot = exports.stepsRoot = function stepsRoot(Root) {
91
75
  return function () {
92
76
  calcPrevIndex();
93
77
  };
94
- }, [current, innerItems]);
78
+ }, [current, items]);
95
79
  return /*#__PURE__*/_react["default"].createElement(Root, _extends({
96
80
  size: size,
97
81
  view: view,
98
82
  ref: outerRef,
99
83
  className: (0, _classnames["default"])(_defineProperty(_defineProperty(_defineProperty({}, _Steps.classes.verticalOrientation, orientation === 'vertical'), _Steps.classes.simple, isSimple), _Steps.classes.hasIndicator, hasIndicator))
100
- }, rest), innerItems.map(function (item, index) {
101
- var isActive = item.status === 'active';
84
+ }, rest), items.map(function (item, index) {
85
+ var itemStatus = (0, _getItemStatus.getItemStatus)({
86
+ isUncontrolled: isUncontrolled,
87
+ current: current,
88
+ status: status,
89
+ index: index,
90
+ item: item
91
+ });
92
+ var isActive = itemStatus === 'active';
102
93
  var itemContent = hasContent === 'active' && !isActive || hasContent === 'none' ? '' : item.content;
103
94
  var itemContentAlign = orientation === 'horizontal' ? contentAlign : 'left';
104
95
  var onClick = onChange ? function () {
@@ -110,14 +101,14 @@ var stepsRoot = exports.stepsRoot = function stepsRoot(Root) {
110
101
  title: item.title,
111
102
  content: itemContent,
112
103
  indicator: item.indicator,
113
- status: item.status,
104
+ status: itemStatus,
114
105
  size: size,
115
106
  orientation: orientation,
116
107
  contentAlign: itemContentAlign,
117
108
  hasLine: hasLine,
118
109
  hasLoader: hasLoader && isActive,
119
110
  onClick: onClick,
120
- items: innerItems
111
+ items: items
121
112
  });
122
113
  }));
123
114
  });
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.base = void 0;
7
7
  var _react = /*#__PURE__*/require("@emotion/react");
8
8
  var _Steps = /*#__PURE__*/require("./Steps.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:row;&.", _Steps.classes.simple, "{align-items:center;&:not(&.", _Steps.classes.verticalOrientation, "){&.", _Steps.classes.hasIndicator, "{height:var(", _Steps.tokens.activeIndicatorSize, ");}&:not(.", _Steps.classes.hasIndicator, "){height:var(", _Steps.tokens.activeBulletSize, ");}}&.", _Steps.classes.verticalOrientation, "{&.", _Steps.classes.hasIndicator, "{width:var(", _Steps.tokens.activeIndicatorSize, ");}&:not(.", _Steps.classes.hasIndicator, "){width:var(", _Steps.tokens.activeBulletSize, ");}}}&.", _Steps.classes.verticalOrientation, "{display:flex;flex-direction:column;justify-content:center;height:100%;};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3RlcHMvU3RlcHMuc3R5bGVzLnRzIl0sIm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2NsYXNzZXMuaGFzSW5kaWNhdG9yfSkge1xuICAgICAgICAgICAgICAgIHdpZHRoOiB2YXIoJHt0b2tlbnMuYWN0aXZlQnVsbGV0U2l6ZX0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMudmVydGljYWxPcmllbnRhdGlvbn0ge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgaGVpZ2h0OiAxMDAlO1xuICAgIH1cbmA7XG4iXX0= */"));
9
+ var base = exports.base = /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:row;&.", _Steps.classes.simple, "{align-items:center;&:not(&.", _Steps.classes.verticalOrientation, "){&.", _Steps.classes.hasIndicator, "{height:var(", _Steps.tokens.activeIndicatorSize, ");}&:not(.", _Steps.classes.hasIndicator, "){height:var(", _Steps.tokens.activeBulletSize, ");}}&.", _Steps.classes.verticalOrientation, "{&.", _Steps.classes.hasIndicator, "{width:var(", _Steps.tokens.activeIndicatorSize, ");}&:not(.", _Steps.classes.hasIndicator, "){width:var(", _Steps.tokens.activeBulletSize, ");}}}&.", _Steps.classes.verticalOrientation, "{display:flex;flex-direction:column;justify-content:center;height:100%;&.", _Steps.classes.simple, "{display:inline-flex;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3RlcHMvU3RlcHMuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1N0ZXBzL1N0ZXBzLn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AgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMudmVydGljYWxPcmllbnRhdGlvbn0ge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgaGVpZ2h0OiAxMDAlO1xuXG4gICAgICAgICYuJHtjbGFzc2VzLnNpbXBsZX0ge1xuICAgICAgICAgICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
@@ -62,7 +62,6 @@ var tokens = exports.tokens = {
62
62
  inactiveTitleColor: '--plasma-step-item-inactive-title-color',
63
63
  inactiveTitleColorHover: '--plasma-step-item-inactive-title-color-hover',
64
64
  contentColor: '--plasma-step-item-content-color',
65
- focusColor: '--plasma-step-item-focus-color',
66
65
  activeIndicatorBorder: '--plasma-step-item-active-indicator-border',
67
66
  activeIndicatorBorderHover: '--plasma-step-item-active-indicator-border-hover',
68
67
  activeIndicatorColor: '--plasma-step-item-active-indicator-color',
@@ -51,7 +51,6 @@ var StepItem = exports.StepItem = function StepItem(_ref) {
51
51
  var prevItem = items[index - 1];
52
52
  var nextItem = items[index + 1];
53
53
  var isActive = status === 'active';
54
- var isNextActive = (nextItem === null || nextItem === void 0 ? void 0 : nextItem.status) === 'active';
55
54
  var isInactive = status === 'inactive';
56
55
  var isPrevInactive = prevItem && !(prevItem !== null && prevItem !== void 0 && prevItem.status) || (prevItem === null || prevItem === void 0 ? void 0 : prevItem.status) === 'inactive';
57
56
  var isNextInactive = !(nextItem !== null && nextItem !== void 0 && nextItem.status) || (nextItem === null || nextItem === void 0 ? void 0 : nextItem.status) === 'inactive';
@@ -89,31 +88,8 @@ var StepItem = exports.StepItem = function StepItem(_ref) {
89
88
  setIsHovered(false);
90
89
  }
91
90
  }, [isDisabled]);
92
- if (isSimple) {
93
- var _cls;
94
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_StepItem.StepItemStyled, {
95
- className: (0, _classnames["default"])((_cls = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cls, _Steps.classes.simple, isSimple), _Steps.classes.active, isActive), _Steps.classes.hovered, isHovered && !isActive), _Steps.classes.inactive, isInactive), _Steps.classes.centered, isCentered), _Steps.classes.disabled, isDisabled), _Steps.classes.clickable, clickable && !isActive), _Steps.classes.hasIndicator, hasIndicator), _Steps.classes.transparentDivider, !hasLine), _Steps.classes.verticalOrientation, isVertical), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_cls, "isFirst", isFirst), "isLast", isLast), "isPrevInactive", isPrevInactive), "isNextInactive", isNextInactive)))
96
- }, /*#__PURE__*/_react["default"].createElement(_StepItem.BulletIndicatorWrapper, {
97
- className: (0, _classnames["default"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _Steps.classes.verticalOrientation, isVertical), _Steps.classes.centered, isCentered), _Steps.classes.simple, isSimple), _Steps.classes.hasIndicator, hasIndicator)),
98
- onClick: onClickHandler,
99
- onFocus: onMouseOver,
100
- onBlur: onMouseOut,
101
- onMouseOver: onMouseOver,
102
- onMouseOut: onMouseOut
103
- }, hasLoader && /*#__PURE__*/_react["default"].createElement(_StepItem.SpinnerStyled, {
104
- hasIndicator: hasIndicator
105
- }), !hasLoader && /*#__PURE__*/_react["default"].createElement(BulletNode, {
106
- className: (0, _classnames["default"])(_defineProperty(_defineProperty({}, _Steps.classes.active, isActive), _Steps.classes.inactive, isInactive))
107
- }, typeof indicator === 'function' && indicator({
108
- status: status,
109
- item: item,
110
- size: size
111
- }), typeof indicator !== 'function' && indicator))), !isLast && /*#__PURE__*/_react["default"].createElement(_StepItem.StepItemDivider, {
112
- className: (0, _classnames["default"])(_Steps.classes.simple, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _Steps.classes.verticalOrientation, isVertical), _Steps.classes.transparentDivider, !hasLine), _Steps.classes.active, isActive), _Steps.classes.inactive, isInactive || isNextInactive), _Steps.classes.disabled, isDisabled))
113
- }));
114
- }
115
91
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_StepItem.StepItemStyled, {
116
- className: (0, _classnames["default"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _Steps.classes.simple, isSimple), _Steps.classes.active, isActive), _Steps.classes.hovered, isHovered && !isActive), _Steps.classes.inactive, isInactive), _Steps.classes.centered, isCentered), _Steps.classes.disabled, isDisabled), _Steps.classes.clickable, clickable && !isActive), _Steps.classes.hasIndicator, hasIndicator), _Steps.classes.verticalOrientation, isVertical), "isNextActive", isNextActive))
92
+ className: (0, _classnames["default"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _Steps.classes.simple, isSimple), _Steps.classes.active, isActive), _Steps.classes.hovered, isHovered && !isActive), _Steps.classes.inactive, isInactive), _Steps.classes.centered, isCentered), _Steps.classes.disabled, isDisabled), _Steps.classes.clickable, clickable && !isActive), _Steps.classes.hasIndicator, hasIndicator), _Steps.classes.verticalOrientation, isVertical))
117
93
  }, /*#__PURE__*/_react["default"].createElement(_StepItem.BulletIndicatorWrapper, {
118
94
  className: (0, _classnames["default"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _Steps.classes.verticalOrientation, isVertical), _Steps.classes.centered, isCentered), _Steps.classes.simple, isSimple), _Steps.classes.hasIndicator, hasIndicator)),
119
95
  onClick: onClickHandler,
@@ -123,7 +99,7 @@ var StepItem = exports.StepItem = function StepItem(_ref) {
123
99
  onMouseOut: onMouseOut
124
100
  }, contentAlign === 'center' && !isSimple && /*#__PURE__*/_react["default"].createElement(_StepItem.StepItemDivider, {
125
101
  className: (0, _classnames["default"])(_defineProperty(_defineProperty(_defineProperty({}, _Steps.classes.simple, isSimple), _Steps.classes.transparentDivider, !hasLine || isFirst), _Steps.classes.inactive, isInactive || isPrevInactive))
126
- }), isVertical && /*#__PURE__*/_react["default"].createElement(_StepItem.StepItemDivider, {
102
+ }), isVertical && (isSimple ? !isFirst : true) && /*#__PURE__*/_react["default"].createElement(_StepItem.StepItemDivider, {
127
103
  className: (0, _classnames["default"])(_Steps.classes.indentDivider, _defineProperty(_defineProperty(_defineProperty({}, _Steps.classes.simple, isSimple), _Steps.classes.transparentDivider, !hasLine || isFirst), _Steps.classes.inactive, isInactive || isPrevInactive)),
128
104
  indentToken: indentToken
129
105
  }), hasLoader && /*#__PURE__*/_react["default"].createElement(_StepItem.SpinnerStyled, {
@@ -134,9 +110,9 @@ var StepItem = exports.StepItem = function StepItem(_ref) {
134
110
  status: status,
135
111
  item: item,
136
112
  size: size
137
- }), typeof indicator !== 'function' && indicator), /*#__PURE__*/_react["default"].createElement(_StepItem.StepItemDivider, {
113
+ }), typeof indicator !== 'function' && indicator), !isSimple && /*#__PURE__*/_react["default"].createElement(_StepItem.StepItemDivider, {
138
114
  className: (0, _classnames["default"])(_defineProperty(_defineProperty(_defineProperty({}, _Steps.classes.simple, isSimple), _Steps.classes.transparentDivider, !hasLine || isLast), _Steps.classes.inactive, isInactive || isNextInactive))
139
- })), /*#__PURE__*/_react["default"].createElement(_StepItem.StepItemContentWrapper, {
115
+ })), !isSimple && /*#__PURE__*/_react["default"].createElement(_StepItem.StepItemContentWrapper, {
140
116
  className: (0, _classnames["default"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _Steps.classes.verticalOrientation, isVertical), _Steps.classes.centered, isCentered), _Steps.classes.active, isActive), _Steps.classes.hasIndicator, hasIndicator))
141
117
  }, /*#__PURE__*/_react["default"].createElement(_StepItem.StepItemTitle, {
142
118
  onClick: onClickHandler,
@@ -144,5 +120,7 @@ var StepItem = exports.StepItem = function StepItem(_ref) {
144
120
  onBlur: onMouseOut,
145
121
  onMouseOver: onMouseOver,
146
122
  onMouseOut: onMouseOut
147
- }, title), content && /*#__PURE__*/_react["default"].createElement(_StepItem.StepItemContent, null, typeof content === 'function' ? content(status, index, items) : content))));
123
+ }, title), content && /*#__PURE__*/_react["default"].createElement(_StepItem.StepItemContent, null, typeof content === 'function' ? content(status, index, items) : content))), isSimple && !isLast && /*#__PURE__*/_react["default"].createElement(_StepItem.StepItemDivider, {
124
+ className: (0, _classnames["default"])(_Steps.classes.simple, _defineProperty(_defineProperty(_defineProperty({}, _Steps.classes.verticalOrientation, isVertical), _Steps.classes.transparentDivider, !hasLine), _Steps.classes.inactive, isInactive || isNextInactive))
125
+ }));
148
126
  };