@salutejs/plasma-new-hope 0.187.1-canary.1517.11744378817.0 → 0.187.1-canary.1524.11792148804.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/cjs/components/Steps/Steps.css +10 -10
  2. package/cjs/components/Steps/Steps.js +14 -21
  3. package/cjs/components/Steps/Steps.js.map +1 -1
  4. package/cjs/components/Steps/Steps.styles.js +1 -1
  5. package/cjs/components/Steps/Steps.styles.js.map +1 -1
  6. package/cjs/components/Steps/{Steps.styles_wa45kj.css → Steps.styles_1xmqxqu.css} +1 -1
  7. package/cjs/components/Steps/Steps.tokens.js +0 -1
  8. package/cjs/components/Steps/Steps.tokens.js.map +1 -1
  9. package/cjs/components/Steps/ui/StepItem/StepItem.css +9 -9
  10. package/cjs/components/Steps/ui/StepItem/StepItem.js +7 -29
  11. package/cjs/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  12. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
  13. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  14. package/cjs/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +9 -0
  15. package/cjs/index.css +11 -11
  16. package/emotion/cjs/components/Steps/Steps.js +14 -23
  17. package/emotion/cjs/components/Steps/Steps.styles.js +1 -1
  18. package/emotion/cjs/components/Steps/Steps.tokens.js +0 -1
  19. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.js +7 -29
  20. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.styles.js +11 -22
  21. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
  22. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  23. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.config.js +5 -5
  24. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  25. package/emotion/es/components/Steps/Steps.js +15 -24
  26. package/emotion/es/components/Steps/Steps.styles.js +1 -1
  27. package/emotion/es/components/Steps/Steps.tokens.js +0 -1
  28. package/emotion/es/components/Steps/ui/StepItem/StepItem.js +7 -29
  29. package/emotion/es/components/Steps/ui/StepItem/StepItem.styles.js +11 -22
  30. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
  31. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  32. package/emotion/es/examples/plasma_web/components/Steps/Steps.config.js +5 -5
  33. package/emotion/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  34. package/es/components/Steps/Steps.css +10 -10
  35. package/es/components/Steps/Steps.js +16 -23
  36. package/es/components/Steps/Steps.js.map +1 -1
  37. package/es/components/Steps/Steps.styles.js +1 -1
  38. package/es/components/Steps/Steps.styles.js.map +1 -1
  39. package/es/components/Steps/{Steps.styles_wa45kj.css → Steps.styles_1xmqxqu.css} +1 -1
  40. package/es/components/Steps/Steps.tokens.js +0 -1
  41. package/es/components/Steps/Steps.tokens.js.map +1 -1
  42. package/es/components/Steps/ui/StepItem/StepItem.css +9 -9
  43. package/es/components/Steps/ui/StepItem/StepItem.js +8 -30
  44. package/es/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  45. package/es/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
  46. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  47. package/es/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +9 -0
  48. package/es/index.css +11 -11
  49. package/package.json +5 -5
  50. package/styled-components/cjs/components/Steps/Steps.js +14 -23
  51. package/styled-components/cjs/components/Steps/Steps.styles.js +1 -1
  52. package/styled-components/cjs/components/Steps/Steps.tokens.js +0 -1
  53. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.js +7 -29
  54. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.styles.js +6 -17
  55. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
  56. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  57. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.config.js +1 -1
  58. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  59. package/styled-components/es/components/Steps/Steps.js +15 -24
  60. package/styled-components/es/components/Steps/Steps.styles.js +1 -1
  61. package/styled-components/es/components/Steps/Steps.tokens.js +0 -1
  62. package/styled-components/es/components/Steps/ui/StepItem/StepItem.js +7 -29
  63. package/styled-components/es/components/Steps/ui/StepItem/StepItem.styles.js +6 -17
  64. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
  65. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  66. package/styled-components/es/examples/plasma_web/components/Steps/Steps.config.js +1 -1
  67. package/styled-components/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  68. package/types/components/Steps/Steps.d.ts.map +1 -1
  69. package/types/components/Steps/Steps.styles.d.ts.map +1 -1
  70. package/types/components/Steps/Steps.tokens.d.ts +0 -1
  71. package/types/components/Steps/Steps.tokens.d.ts.map +1 -1
  72. package/types/components/Steps/ui/StepItem/StepItem.d.ts.map +1 -1
  73. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts +2 -2
  74. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -1
  75. package/types/components/Tabs/index.d.ts +2 -2
  76. package/types/components/Tabs/index.d.ts.map +1 -1
  77. package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts.map +1 -1
  78. package/types/examples/plasma_web/components/Steps/Steps.config.d.ts.map +1 -1
  79. package/cjs/components/Steps/ui/StepItem/StepItem.styles_q5nnk6.css +0 -9
  80. package/es/components/Steps/ui/StepItem/StepItem.styles_q5nnk6.css +0 -9
@@ -1,8 +1,6 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  var _excluded = ["view", "size", "orientation", "contentAlign", "hasLine", "hasContent", "hasLoader", "items", "onChange", "current", "status"];
3
3
  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); }
4
- 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; }
5
- 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; }
6
4
  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; }
7
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
6
  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); }
@@ -14,7 +12,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
14
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
13
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
16
14
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
17
- import React, { forwardRef, useState, useEffect, useMemo } from 'react';
15
+ import React, { forwardRef, useState, useEffect } from 'react';
18
16
  import cls from 'classnames';
19
17
  import { classes } from './Steps.tokens';
20
18
  import { StepItem } from './ui';
@@ -46,33 +44,19 @@ export var stepsRoot = function stepsRoot(Root) {
46
44
  _useState2 = _slicedToArray(_useState, 2),
47
45
  prevIndex = _useState2[0],
48
46
  setPrevIndex = _useState2[1];
47
+ var isUncontrolled = current !== undefined;
49
48
  var hasIndicator = items.some(function (item) {
50
49
  return item.indicator != null;
51
50
  });
52
51
  var isSimple = items.every(function (item) {
53
52
  return !item.title && !item.content;
54
53
  });
55
- var innerItems = useMemo(function () {
56
- var isUncontrolled = current !== undefined;
57
- return items.map(function (item, index) {
58
- var itemStatus = getItemStatus({
59
- isUncontrolled: isUncontrolled,
60
- current: current,
61
- status: status,
62
- index: index,
63
- item: item
64
- });
65
- return _objectSpread(_objectSpread({}, item), {}, {
66
- status: itemStatus
67
- });
68
- });
69
- }, [status, current, items]);
70
54
  useEffect(function () {
71
55
  var calcPrevIndex = function calcPrevIndex() {
72
56
  if (current !== undefined) {
73
57
  setPrevIndex(current);
74
58
  } else {
75
- var index = innerItems.findIndex(function (item) {
59
+ var index = items.findIndex(function (item) {
76
60
  return item.status === 'active';
77
61
  });
78
62
  setPrevIndex(index !== -1 ? index : undefined);
@@ -82,14 +66,21 @@ export var stepsRoot = function stepsRoot(Root) {
82
66
  return function () {
83
67
  calcPrevIndex();
84
68
  };
85
- }, [current, innerItems]);
69
+ }, [current, items]);
86
70
  return /*#__PURE__*/React.createElement(Root, _extends({
87
71
  size: size,
88
72
  view: view,
89
73
  ref: outerRef,
90
74
  className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, orientation === 'vertical'), classes.simple, isSimple), classes.hasIndicator, hasIndicator))
91
- }, rest), innerItems.map(function (item, index) {
92
- var isActive = item.status === 'active';
75
+ }, rest), items.map(function (item, index) {
76
+ var itemStatus = getItemStatus({
77
+ isUncontrolled: isUncontrolled,
78
+ current: current,
79
+ status: status,
80
+ index: index,
81
+ item: item
82
+ });
83
+ var isActive = itemStatus === 'active';
93
84
  var itemContent = hasContent === 'active' && !isActive || hasContent === 'none' ? '' : item.content;
94
85
  var itemContentAlign = orientation === 'horizontal' ? contentAlign : 'left';
95
86
  var onClick = onChange ? function () {
@@ -101,14 +92,14 @@ export var stepsRoot = function stepsRoot(Root) {
101
92
  title: item.title,
102
93
  content: itemContent,
103
94
  indicator: item.indicator,
104
- status: item.status,
95
+ status: itemStatus,
105
96
  size: size,
106
97
  orientation: orientation,
107
98
  contentAlign: itemContentAlign,
108
99
  hasLine: hasLine,
109
100
  hasLoader: hasLoader && isActive,
110
101
  onClick: onClick,
111
- items: innerItems
102
+ items: items
112
103
  });
113
104
  }));
114
105
  });
@@ -1,3 +1,3 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { classes, tokens } from './Steps.tokens';
3
- export var base = /*#__PURE__*/css("display:flex;flex-direction:row;&.", classes.simple, "{align-items:center;&:not(&.", classes.verticalOrientation, "){&.", classes.hasIndicator, "{height:var(", tokens.activeIndicatorSize, ");}&:not(.", classes.hasIndicator, "){height:var(", tokens.activeBulletSize, ");}}&.", classes.verticalOrientation, "{&.", classes.hasIndicator, "{width:var(", tokens.activeIndicatorSize, ");}&:not(.", classes.hasIndicator, "){width:var(", tokens.activeBulletSize, ");}}}&.", 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3RlcHMvU3RlcHMuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1N0ZXBzL1N0ZXBzLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJvbSAnLi9TdGVwcy50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG5cbiAgICAmLiR7Y2xhc3Nlcy5zaW1wbGV9IHtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAgICAgICAmOm5vdCgmLiR7Y2xhc3Nlcy52ZXJ0aWNhbE9yaWVudGF0aW9ufSkge1xuICAgICAgICAgICAgJi4ke2NsYXNzZXMuaGFzSW5kaWNhdG9yfSB7XG4gICAgICAgICAgICAgICAgaGVpZ2h0OiB2YXIoJHt0b2tlbnMuYWN0aXZlSW5kaWNhdG9yU2l6ZX0pO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmOm5vdCguJHtjbGFzc2VzLmhhc0luZGljYXRvcn0pIHtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5hY3RpdmVCdWxsZXRTaXplfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAmLiR7Y2xhc3Nlcy52ZXJ0aWNhbE9yaWVudGF0aW9ufSB7XG4gICAgICAgICAgICAmLiR7Y2xhc3Nlcy5oYXNJbmRpY2F0b3J9IHtcbiAgICAgICAgICAgICAgICB3aWR0aDogdmFyKCR7dG9rZW5zLmFjdGl2ZUluZGljYXRvclNpemV9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgICY6bm90KC4ke2NsYXNzZXMuaGFzSW5kaWNhdG9yfSkge1xuICAgICAgICAgICAgICAgIHdpZHRoOiB2YXIoJHt0b2tlbnMuYWN0aXZlQnVsbGV0U2l6ZX0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMudmVydGljYWxPcmllbnRhdGlvbn0ge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgaGVpZ2h0OiAxMDAlO1xuICAgIH1cbmA7XG4iXX0= */"));
3
+ export var base = /*#__PURE__*/css("display:flex;flex-direction:row;&.", classes.simple, "{align-items:center;&:not(&.", classes.verticalOrientation, "){&.", classes.hasIndicator, "{height:var(", tokens.activeIndicatorSize, ");}&:not(.", classes.hasIndicator, "){height:var(", tokens.activeBulletSize, ");}}&.", classes.verticalOrientation, "{&.", classes.hasIndicator, "{width:var(", tokens.activeIndicatorSize, ");}&:not(.", classes.hasIndicator, "){width:var(", tokens.activeBulletSize, ");}}}&.", classes.verticalOrientation, "{display:flex;flex-direction:column;justify-content:center;height:100%;&.", classes.simple, "{display:inline-flex;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3RlcHMvU3RlcHMuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1N0ZXBzL1N0ZXBzLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJvbSAnLi9TdGVwcy50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG5cbiAgICAmLiR7Y2xhc3Nlcy5zaW1wbGV9IHtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAgICAgICAmOm5vdCgmLiR7Y2xhc3Nlcy52ZXJ0aWNhbE9yaWVudGF0aW9ufSkge1xuICAgICAgICAgICAgJi4ke2NsYXNzZXMuaGFzSW5kaWNhdG9yfSB7XG4gICAgICAgICAgICAgICAgaGVpZ2h0OiB2YXIoJHt0b2tlbnMuYWN0aXZlSW5kaWNhdG9yU2l6ZX0pO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmOm5vdCguJHtjbGFzc2VzLmhhc0luZGljYXRvcn0pIHtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5hY3RpdmVCdWxsZXRTaXplfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAmLiR7Y2xhc3Nlcy52ZXJ0aWNhbE9yaWVudGF0aW9ufSB7XG4gICAgICAgICAgICAmLiR7Y2xhc3Nlcy5oYXNJbmRpY2F0b3J9IHtcbiAgICAgICAgICAgICAgICB3aWR0aDogdmFyKCR7dG9rZW5zLmFjdGl2ZUluZGljYXRvclNpemV9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgICY6bm90KC4ke2NsYXNzZXMuaGFzSW5kaWNhdG9yfSkge1xuICAgICAgICAgICAgICAgIHdpZHRoOiB2YXIoJHt0b2tlbnMuYWN0aXZlQnVsbGV0U2l6ZX0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMudmVydGljYWxPcmllbnRhdGlvbn0ge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgaGVpZ2h0OiAxMDAlO1xuXG4gICAgICAgICYuJHtjbGFzc2VzLnNpbXBsZX0ge1xuICAgICAgICAgICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
@@ -56,7 +56,6 @@ export var tokens = {
56
56
  inactiveTitleColor: '--plasma-step-item-inactive-title-color',
57
57
  inactiveTitleColorHover: '--plasma-step-item-inactive-title-color-hover',
58
58
  contentColor: '--plasma-step-item-content-color',
59
- focusColor: '--plasma-step-item-focus-color',
60
59
  activeIndicatorBorder: '--plasma-step-item-active-indicator-border',
61
60
  activeIndicatorBorderHover: '--plasma-step-item-active-indicator-border-hover',
62
61
  activeIndicatorColor: '--plasma-step-item-active-indicator-color',
@@ -43,7 +43,6 @@ export var StepItem = function StepItem(_ref) {
43
43
  var prevItem = items[index - 1];
44
44
  var nextItem = items[index + 1];
45
45
  var isActive = status === 'active';
46
- var isNextActive = (nextItem === null || nextItem === void 0 ? void 0 : nextItem.status) === 'active';
47
46
  var isInactive = status === 'inactive';
48
47
  var isPrevInactive = prevItem && !(prevItem !== null && prevItem !== void 0 && prevItem.status) || (prevItem === null || prevItem === void 0 ? void 0 : prevItem.status) === 'inactive';
49
48
  var isNextInactive = !(nextItem !== null && nextItem !== void 0 && nextItem.status) || (nextItem === null || nextItem === void 0 ? void 0 : nextItem.status) === 'inactive';
@@ -81,31 +80,8 @@ export var StepItem = function StepItem(_ref) {
81
80
  setIsHovered(false);
82
81
  }
83
82
  }, [isDisabled]);
84
- if (isSimple) {
85
- var _cls;
86
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StepItemStyled, {
87
- className: cls((_cls = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cls, classes.simple, isSimple), classes.active, isActive), classes.hovered, isHovered && !isActive), classes.inactive, isInactive), classes.centered, isCentered), classes.disabled, isDisabled), classes.clickable, clickable && !isActive), classes.hasIndicator, hasIndicator), classes.verticalOrientation, isVertical), "isFirst", isFirst), _defineProperty(_defineProperty(_defineProperty(_cls, "isLast", isLast), "isPrevInactive", isPrevInactive), "isNextInactive", isNextInactive)))
88
- }, /*#__PURE__*/React.createElement(BulletIndicatorWrapper, {
89
- className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.centered, isCentered), classes.simple, isSimple), classes.hasIndicator, hasIndicator)),
90
- onClick: onClickHandler,
91
- onFocus: onMouseOver,
92
- onBlur: onMouseOut,
93
- onMouseOver: onMouseOver,
94
- onMouseOut: onMouseOut
95
- }, hasLoader && /*#__PURE__*/React.createElement(SpinnerStyled, {
96
- hasIndicator: hasIndicator
97
- }), !hasLoader && /*#__PURE__*/React.createElement(BulletNode, {
98
- className: cls(_defineProperty(_defineProperty({}, classes.active, isActive), classes.inactive, isInactive))
99
- }, typeof indicator === 'function' && indicator({
100
- status: status,
101
- item: item,
102
- size: size
103
- }), typeof indicator !== 'function' && indicator))), !isLast && /*#__PURE__*/React.createElement(StepItemDivider, {
104
- className: cls(classes.simple, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.transparentDivider, !hasLine), classes.active, isActive), classes.inactive, isInactive || isNextInactive))
105
- }));
106
- }
107
83
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StepItemStyled, {
108
- className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.active, isActive), classes.hovered, isHovered && !isActive), classes.inactive, isInactive), classes.centered, isCentered), classes.disabled, isDisabled), classes.clickable, clickable && !isActive), classes.hasIndicator, hasIndicator), classes.verticalOrientation, isVertical), "isNextActive", isNextActive))
84
+ className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.active, isActive), classes.hovered, isHovered && !isActive), classes.inactive, isInactive), classes.centered, isCentered), classes.disabled, isDisabled), classes.clickable, clickable && !isActive), classes.hasIndicator, hasIndicator), classes.verticalOrientation, isVertical))
109
85
  }, /*#__PURE__*/React.createElement(BulletIndicatorWrapper, {
110
86
  className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.centered, isCentered), classes.simple, isSimple), classes.hasIndicator, hasIndicator)),
111
87
  onClick: onClickHandler,
@@ -115,7 +91,7 @@ export var StepItem = function StepItem(_ref) {
115
91
  onMouseOut: onMouseOut
116
92
  }, contentAlign === 'center' && !isSimple && /*#__PURE__*/React.createElement(StepItemDivider, {
117
93
  className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine || isFirst), classes.inactive, isInactive || isPrevInactive))
118
- }), isVertical && /*#__PURE__*/React.createElement(StepItemDivider, {
94
+ }), isVertical && (isSimple ? !isFirst : true) && /*#__PURE__*/React.createElement(StepItemDivider, {
119
95
  className: cls(classes.indentDivider, _defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine || isFirst), classes.inactive, isInactive || isPrevInactive)),
120
96
  indentToken: indentToken
121
97
  }), hasLoader && /*#__PURE__*/React.createElement(SpinnerStyled, {
@@ -126,9 +102,9 @@ export var StepItem = function StepItem(_ref) {
126
102
  status: status,
127
103
  item: item,
128
104
  size: size
129
- }), typeof indicator !== 'function' && indicator), /*#__PURE__*/React.createElement(StepItemDivider, {
105
+ }), typeof indicator !== 'function' && indicator), !isSimple && /*#__PURE__*/React.createElement(StepItemDivider, {
130
106
  className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine || isLast), classes.inactive, isInactive || isNextInactive))
131
- })), /*#__PURE__*/React.createElement(StepItemContentWrapper, {
107
+ })), !isSimple && /*#__PURE__*/React.createElement(StepItemContentWrapper, {
132
108
  className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.centered, isCentered), classes.active, isActive), classes.hasIndicator, hasIndicator))
133
109
  }, /*#__PURE__*/React.createElement(StepItemTitle, {
134
110
  onClick: onClickHandler,
@@ -136,5 +112,7 @@ export var StepItem = function StepItem(_ref) {
136
112
  onBlur: onMouseOut,
137
113
  onMouseOver: onMouseOver,
138
114
  onMouseOut: onMouseOut
139
- }, title), content && /*#__PURE__*/React.createElement(StepItemContent, null, typeof content === 'function' ? content(status, index, items) : content))));
115
+ }, title), content && /*#__PURE__*/React.createElement(StepItemContent, null, typeof content === 'function' ? content(status, index, items) : content))), isSimple && !isLast && /*#__PURE__*/React.createElement(StepItemDivider, {
116
+ className: cls(classes.simple, _defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.transparentDivider, !hasLine), classes.inactive, isInactive || isNextInactive))
117
+ }));
140
118
  };