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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. package/cjs/components/Badge/Badge.css +4 -4
  2. package/cjs/components/Badge/Badge.js +17 -7
  3. package/cjs/components/Badge/Badge.js.map +1 -1
  4. package/cjs/components/Badge/Badge.tokens.js +10 -5
  5. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  6. package/cjs/components/Badge/variations/_clear/base.js +1 -1
  7. package/cjs/components/Badge/variations/_clear/base.js.map +1 -1
  8. package/cjs/components/Badge/variations/_clear/base_wiboj8.css +1 -0
  9. package/cjs/components/Badge/variations/_size/base.js +1 -1
  10. package/cjs/components/Badge/variations/_size/base.js.map +1 -1
  11. package/{es/components/Badge/variations/_size/base_to0y5x.css → cjs/components/Badge/variations/_size/base_bu5opk.css} +1 -1
  12. package/cjs/components/Badge/variations/_transparent/base.js +1 -1
  13. package/cjs/components/Badge/variations/_transparent/base.js.map +1 -1
  14. package/cjs/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
  15. package/cjs/components/Badge/variations/_view/base.js +1 -1
  16. package/cjs/components/Badge/variations/_view/base.js.map +1 -1
  17. package/cjs/components/Badge/variations/_view/base_j3xzf3.css +1 -0
  18. package/cjs/components/Steps/Steps.css +10 -10
  19. package/cjs/components/Steps/Steps.js +14 -21
  20. package/cjs/components/Steps/Steps.js.map +1 -1
  21. package/cjs/components/Steps/Steps.styles.js +1 -1
  22. package/cjs/components/Steps/Steps.styles.js.map +1 -1
  23. package/cjs/components/Steps/{Steps.styles_wa45kj.css → Steps.styles_1xmqxqu.css} +1 -1
  24. package/cjs/components/Steps/Steps.tokens.js +0 -1
  25. package/cjs/components/Steps/Steps.tokens.js.map +1 -1
  26. package/cjs/components/Steps/ui/StepItem/StepItem.css +9 -9
  27. package/cjs/components/Steps/ui/StepItem/StepItem.js +7 -29
  28. package/cjs/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  29. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
  30. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  31. package/cjs/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +9 -0
  32. package/cjs/index.css +15 -15
  33. package/emotion/cjs/components/Badge/Badge.js +17 -7
  34. package/emotion/cjs/components/Badge/Badge.tokens.js +10 -6
  35. package/emotion/cjs/components/Badge/variations/_clear/base.js +1 -1
  36. package/emotion/cjs/components/Badge/variations/_size/base.js +2 -1
  37. package/emotion/cjs/components/Badge/variations/_transparent/base.js +1 -1
  38. package/emotion/cjs/components/Badge/variations/_view/base.js +1 -1
  39. package/emotion/cjs/components/Steps/Steps.js +14 -23
  40. package/emotion/cjs/components/Steps/Steps.styles.js +1 -1
  41. package/emotion/cjs/components/Steps/Steps.tokens.js +0 -1
  42. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.js +7 -29
  43. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.styles.js +11 -22
  44. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +15 -15
  45. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  46. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
  47. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  48. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  49. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  50. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.config.js +5 -5
  51. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  52. package/emotion/es/components/Badge/Badge.js +18 -8
  53. package/emotion/es/components/Badge/Badge.tokens.js +9 -5
  54. package/emotion/es/components/Badge/variations/_clear/base.js +2 -2
  55. package/emotion/es/components/Badge/variations/_size/base.js +3 -2
  56. package/emotion/es/components/Badge/variations/_transparent/base.js +2 -2
  57. package/emotion/es/components/Badge/variations/_view/base.js +2 -2
  58. package/emotion/es/components/Steps/Steps.js +15 -24
  59. package/emotion/es/components/Steps/Steps.styles.js +1 -1
  60. package/emotion/es/components/Steps/Steps.tokens.js +0 -1
  61. package/emotion/es/components/Steps/ui/StepItem/StepItem.js +7 -29
  62. package/emotion/es/components/Steps/ui/StepItem/StepItem.styles.js +11 -22
  63. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +15 -15
  64. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  65. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
  66. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  67. package/emotion/es/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  68. package/emotion/es/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  69. package/emotion/es/examples/plasma_web/components/Steps/Steps.config.js +5 -5
  70. package/emotion/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  71. package/es/components/Badge/Badge.css +4 -4
  72. package/es/components/Badge/Badge.js +20 -10
  73. package/es/components/Badge/Badge.js.map +1 -1
  74. package/es/components/Badge/Badge.tokens.js +10 -6
  75. package/es/components/Badge/Badge.tokens.js.map +1 -1
  76. package/es/components/Badge/variations/_clear/base.js +1 -1
  77. package/es/components/Badge/variations/_clear/base.js.map +1 -1
  78. package/es/components/Badge/variations/_clear/base_wiboj8.css +1 -0
  79. package/es/components/Badge/variations/_size/base.js +1 -1
  80. package/es/components/Badge/variations/_size/base.js.map +1 -1
  81. package/{cjs/components/Badge/variations/_size/base_to0y5x.css → es/components/Badge/variations/_size/base_bu5opk.css} +1 -1
  82. package/es/components/Badge/variations/_transparent/base.js +1 -1
  83. package/es/components/Badge/variations/_transparent/base.js.map +1 -1
  84. package/es/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
  85. package/es/components/Badge/variations/_view/base.js +1 -1
  86. package/es/components/Badge/variations/_view/base.js.map +1 -1
  87. package/es/components/Badge/variations/_view/base_j3xzf3.css +1 -0
  88. package/es/components/Steps/Steps.css +10 -10
  89. package/es/components/Steps/Steps.js +16 -23
  90. package/es/components/Steps/Steps.js.map +1 -1
  91. package/es/components/Steps/Steps.styles.js +1 -1
  92. package/es/components/Steps/Steps.styles.js.map +1 -1
  93. package/es/components/Steps/{Steps.styles_wa45kj.css → Steps.styles_1xmqxqu.css} +1 -1
  94. package/es/components/Steps/Steps.tokens.js +0 -1
  95. package/es/components/Steps/Steps.tokens.js.map +1 -1
  96. package/es/components/Steps/ui/StepItem/StepItem.css +9 -9
  97. package/es/components/Steps/ui/StepItem/StepItem.js +8 -30
  98. package/es/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  99. package/es/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
  100. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  101. package/es/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +9 -0
  102. package/es/index.css +15 -15
  103. package/package.json +2 -2
  104. package/styled-components/cjs/components/Badge/Badge.js +17 -7
  105. package/styled-components/cjs/components/Badge/Badge.tokens.js +10 -6
  106. package/styled-components/cjs/components/Badge/variations/_clear/base.js +1 -1
  107. package/styled-components/cjs/components/Badge/variations/_size/base.js +2 -1
  108. package/styled-components/cjs/components/Badge/variations/_transparent/base.js +1 -1
  109. package/styled-components/cjs/components/Badge/variations/_view/base.js +1 -1
  110. package/styled-components/cjs/components/Steps/Steps.js +14 -23
  111. package/styled-components/cjs/components/Steps/Steps.styles.js +1 -1
  112. package/styled-components/cjs/components/Steps/Steps.tokens.js +0 -1
  113. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.js +7 -29
  114. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.styles.js +6 -17
  115. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  116. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  117. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
  118. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  119. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  120. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  121. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.config.js +1 -1
  122. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  123. package/styled-components/es/components/Badge/Badge.js +18 -8
  124. package/styled-components/es/components/Badge/Badge.tokens.js +9 -5
  125. package/styled-components/es/components/Badge/variations/_clear/base.js +2 -2
  126. package/styled-components/es/components/Badge/variations/_size/base.js +3 -2
  127. package/styled-components/es/components/Badge/variations/_transparent/base.js +2 -2
  128. package/styled-components/es/components/Badge/variations/_view/base.js +2 -2
  129. package/styled-components/es/components/Steps/Steps.js +15 -24
  130. package/styled-components/es/components/Steps/Steps.styles.js +1 -1
  131. package/styled-components/es/components/Steps/Steps.tokens.js +0 -1
  132. package/styled-components/es/components/Steps/ui/StepItem/StepItem.js +7 -29
  133. package/styled-components/es/components/Steps/ui/StepItem/StepItem.styles.js +6 -17
  134. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  135. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  136. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
  137. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  138. package/styled-components/es/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  139. package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  140. package/styled-components/es/examples/plasma_web/components/Steps/Steps.config.js +1 -1
  141. package/styled-components/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  142. package/types/components/Badge/Badge.d.ts.map +1 -1
  143. package/types/components/Badge/Badge.tokens.d.ts +8 -4
  144. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  145. package/types/components/Badge/Badge.types.d.ts +18 -5
  146. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  147. package/types/components/Badge/variations/_clear/base.d.ts.map +1 -1
  148. package/types/components/Badge/variations/_size/base.d.ts.map +1 -1
  149. package/types/components/Steps/Steps.d.ts.map +1 -1
  150. package/types/components/Steps/Steps.styles.d.ts.map +1 -1
  151. package/types/components/Steps/Steps.tokens.d.ts +0 -1
  152. package/types/components/Steps/Steps.tokens.d.ts.map +1 -1
  153. package/types/components/Steps/ui/StepItem/StepItem.d.ts.map +1 -1
  154. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts +2 -2
  155. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -1
  156. package/types/components/Tabs/index.d.ts +2 -2
  157. package/types/components/Tabs/index.d.ts.map +1 -1
  158. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  159. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +61 -4
  160. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  161. package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts.map +1 -1
  162. package/types/examples/plasma_web/components/Badge/Badge.config.d.ts.map +1 -1
  163. package/types/examples/plasma_web/components/Badge/Badge.d.ts +61 -4
  164. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  165. package/types/examples/plasma_web/components/Steps/Steps.config.d.ts.map +1 -1
  166. package/cjs/components/Badge/variations/_clear/base_oopyb7.css +0 -1
  167. package/cjs/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
  168. package/cjs/components/Badge/variations/_view/base_qlxank.css +0 -1
  169. package/cjs/components/Steps/ui/StepItem/StepItem.styles_q5nnk6.css +0 -9
  170. package/es/components/Badge/variations/_clear/base_oopyb7.css +0 -1
  171. package/es/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
  172. package/es/components/Badge/variations/_view/base_qlxank.css +0 -1
  173. package/es/components/Steps/ui/StepItem/StepItem.styles_q5nnk6.css +0 -9
@@ -14,7 +14,7 @@ var _base4 = /*#__PURE__*/require("./variations/_transparent/base");
14
14
  var _base5 = /*#__PURE__*/require("./variations/_clear/base");
15
15
  var _Badge = /*#__PURE__*/require("./Badge.styles");
16
16
  var _Badge2 = /*#__PURE__*/require("./Badge.tokens");
17
- var _excluded = ["children", "className", "text", "contentLeft", "contentRight", "size", "view", "pilled", "transparent", "clear", "maxWidth"];
17
+ var _excluded = ["children", "className", "style", "text", "contentLeft", "contentRight", "size", "view", "customColor", "customBackgroundColor", "pilled", "transparent", "clear", "maxWidth"];
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); }
@@ -27,13 +27,17 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
27
27
  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; }
28
28
  var badgeRoot = exports.badgeRoot = function badgeRoot(Root) {
29
29
  return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
30
+ var _StyledContentLeft, _StyledContentMain, _StyledContentMain2, _StyledContentRight;
30
31
  var children = props.children,
31
32
  className = props.className,
33
+ style = props.style,
32
34
  text = props.text,
33
35
  contentLeft = props.contentLeft,
34
36
  contentRight = props.contentRight,
35
37
  size = props.size,
36
38
  view = props.view,
39
+ customColor = props.customColor,
40
+ customBackgroundColor = props.customBackgroundColor,
37
41
  _props$pilled = props.pilled,
38
42
  pilled = _props$pilled === void 0 ? false : _props$pilled,
39
43
  _props$transparent = props.transparent,
@@ -48,19 +52,25 @@ var badgeRoot = exports.badgeRoot = function badgeRoot(Root) {
48
52
  var clearClass = clear ? _Badge2.classes.badgeClear : undefined;
49
53
  var truncateClass = maxWidth !== 'auto' ? _Badge2.classes.badgeTruncate : undefined;
50
54
  var txt = !text && typeof children === 'string' ? children : text;
55
+ var iconOnlyClass = !txt && contentLeft ? _Badge2.classes.iconOnly : undefined;
56
+ var BadgeContent = function BadgeContent() {
57
+ if (contentLeft) {
58
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _StyledContentLeft || (_StyledContentLeft = /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentLeft, null, contentLeft)), txt ? _StyledContentMain || (_StyledContentMain = /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentMain, null, txt)) : children);
59
+ }
60
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, txt ? _StyledContentMain2 || (_StyledContentMain2 = /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentMain, null, txt)) : children, contentRight && (_StyledContentRight || (_StyledContentRight = /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentRight, null, contentRight))));
61
+ };
51
62
  return /*#__PURE__*/_react["default"].createElement(Root, _extends({
52
63
  ref: ref,
53
- className: (0, _utils.cx)(pilledClass, transparentClass, clearClass, truncateClass, className),
64
+ className: (0, _utils.cx)(pilledClass, transparentClass, clearClass, truncateClass, iconOnlyClass, className),
54
65
  view: view,
55
66
  size: size,
56
67
  pilled: pilled,
57
68
  transparent: transparent,
58
- clear: clear
59
- }, rest, {
60
- style: _objectSpread(_objectSpread({}, rest.style), {}, {
69
+ clear: clear,
70
+ style: _objectSpread(_objectSpread({}, style), {}, _defineProperty(_defineProperty({
61
71
  maxWidth: maxWidth
62
- })
63
- }), contentLeft && /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentLeft, null, contentLeft), txt ? /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentMain, null, txt) : children, contentRight && /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentRight, null, contentRight));
72
+ }, _Badge2.privateTokens.customBackground, customBackgroundColor), _Badge2.privateTokens.customColor, customColor))
73
+ }, rest), /*#__PURE__*/_react["default"].createElement(BadgeContent, null));
64
74
  });
65
75
  };
66
76
  var badgeConfig = exports.badgeConfig = {
@@ -3,12 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.tokens = exports.classes = void 0;
6
+ exports.tokens = exports.privateTokens = exports.classes = void 0;
7
7
  var classes = exports.classes = {
8
8
  badgePilled: 'badge-pilled',
9
9
  badgeTransparent: 'badge-transparent',
10
10
  badgeClear: 'badge-clear',
11
- badgeTruncate: 'badge-truncate'
11
+ badgeTruncate: 'badge-truncate',
12
+ iconOnly: 'badge-icon-only'
13
+ };
14
+ var privateTokens = exports.privateTokens = {
15
+ customBackground: '--plasma-badge-custom-background',
16
+ customColor: '--plasma-badge-custom-color'
12
17
  };
13
18
  var tokens = exports.tokens = {
14
19
  background: '--plasma-badge-background',
@@ -16,13 +21,12 @@ var tokens = exports.tokens = {
16
21
  backgroundTransparent: '--plasma-badge-background-transparent',
17
22
  colorTransparent: '--plasma-badge-color-transparent',
18
23
  colorClear: '--plasma-badge-color-clear',
24
+ backgroundClear: '--plasma-badge-background-clear',
19
25
  borderRadius: '--plasma-badge-border-radius',
20
26
  pilledBorderRadius: '--plasma-badge-pilled-border-radius',
21
27
  height: '--plasma-badge-height',
22
- paddingTop: '--plasma-badge-padding-top',
23
- paddingRight: '--plasma-badge-padding-right',
24
- paddingBottom: '--plasma-badge-padding-bottom',
25
- paddingLeft: '--plasma-badge-padding-left',
28
+ padding: '--plasma-badge-padding',
29
+ paddingIconOnly: '--plasma-badge-padding-icon-only',
26
30
  fontFamily: '--plasma-badge-font-family',
27
31
  fontSize: '--plasma-badge-font-size',
28
32
  fontStyle: '--plasma-badge-font-style',
@@ -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 _Badge = /*#__PURE__*/require("../../Badge.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _react.css)("&.", _Badge.classes.badgeClear, "{color:var(", _Badge.tokens.colorClear, ");background-color:transparent;padding:0;};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fY2xlYXIvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9CYWRnZS92YXJpYXRpb25zL19jbGVhci9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9CYWRnZS50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7Y2xhc3Nlcy5iYWRnZUNsZWFyfSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMuY29sb3JDbGVhcn0pO1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgICAgICAgcGFkZGluZzogMDtcbiAgICB9XG5gO1xuIl19 */"));
9
+ var base = exports.base = /*#__PURE__*/(0, _react.css)("&.", _Badge.classes.badgeClear, "{color:var(", _Badge.privateTokens.customColor, ", var(", _Badge.tokens.colorClear, "));background-color:var(", _Badge.privateTokens.customBackground, ", var(", _Badge.tokens.backgroundClear, "));};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fY2xlYXIvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9CYWRnZS92YXJpYXRpb25zL19jbGVhci9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCBwcml2YXRlVG9rZW5zLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9CYWRnZS50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7Y2xhc3Nlcy5iYWRnZUNsZWFyfSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHtwcml2YXRlVG9rZW5zLmN1c3RvbUNvbG9yfSwgdmFyKCR7dG9rZW5zLmNvbG9yQ2xlYXJ9KSk7XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigke3ByaXZhdGVUb2tlbnMuY3VzdG9tQmFja2dyb3VuZH0sIHZhcigke3Rva2Vucy5iYWNrZ3JvdW5kQ2xlYXJ9KSk7XG4gICAgfVxuYDtcbiJdfQ== */"));
@@ -6,4 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.base = void 0;
7
7
  var _react = /*#__PURE__*/require("@emotion/react");
8
8
  var _Badge = /*#__PURE__*/require("../../Badge.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _react.css)("font-family:var(", _Badge.tokens.fontFamily, ");font-size:var(", _Badge.tokens.fontSize, ");font-style:var(", _Badge.tokens.fontStyle, ");font-weight:var(", _Badge.tokens.fontWeight, ");letter-spacing:var(", _Badge.tokens.letterSpacing, ");line-height:var(", _Badge.tokens.lineHeight, ");border-radius:var(", _Badge.tokens.borderRadius, ");height:var(", _Badge.tokens.height, ");padding-top:var(", _Badge.tokens.paddingTop, ");padding-right:var(", _Badge.tokens.paddingRight, ");padding-bottom:var(", _Badge.tokens.paddingBottom, ");padding-left:var(", _Badge.tokens.paddingLeft, ");;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fc2l6ZS9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0JhZGdlL3ZhcmlhdGlvbnMvX3NpemUvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnLi4vLi4vQmFkZ2UudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZm9udC1mYW1pbHk6IHZhcigke3Rva2Vucy5mb250RmFtaWx5fSk7XG4gICAgZm9udC1zaXplOiB2YXIoJHt0b2tlbnMuZm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMuZm9udFN0eWxlfSk7XG4gICAgZm9udC13ZWlnaHQ6IHZhcigke3Rva2Vucy5mb250V2VpZ2h0fSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy5sZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5saW5lSGVpZ2h0fSk7XG5cbiAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMuYm9yZGVyUmFkaXVzfSk7XG5cbiAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5oZWlnaHR9KTtcblxuICAgIHBhZGRpbmctdG9wOiB2YXIoJHt0b2tlbnMucGFkZGluZ1RvcH0pO1xuICAgIHBhZGRpbmctcmlnaHQ6IHZhcigke3Rva2Vucy5wYWRkaW5nUmlnaHR9KTtcbiAgICBwYWRkaW5nLWJvdHRvbTogdmFyKCR7dG9rZW5zLnBhZGRpbmdCb3R0b219KTtcbiAgICBwYWRkaW5nLWxlZnQ6IHZhcigke3Rva2Vucy5wYWRkaW5nTGVmdH0pO1xuYDtcbiJdfQ== */"));
9
+ var _Badge2 = /*#__PURE__*/require("../../Badge.styles");
10
+ var base = exports.base = /*#__PURE__*/(0, _react.css)("font-family:var(", _Badge.tokens.fontFamily, ");font-size:var(", _Badge.tokens.fontSize, ");font-style:var(", _Badge.tokens.fontStyle, ");font-weight:var(", _Badge.tokens.fontWeight, ");letter-spacing:var(", _Badge.tokens.letterSpacing, ");line-height:var(", _Badge.tokens.lineHeight, ");border-radius:var(", _Badge.tokens.borderRadius, ");height:var(", _Badge.tokens.height, ");padding:var(", _Badge.tokens.padding, ");&.", _Badge.classes.iconOnly, "{padding:var(", _Badge.tokens.paddingIconOnly, ");", _Badge2.StyledContentLeft, "{margin:0;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fc2l6ZS9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUt1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0JhZGdlL3ZhcmlhdGlvbnMvX3NpemUvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJvbSAnLi4vLi4vQmFkZ2UudG9rZW5zJztcbmltcG9ydCB7IFN0eWxlZENvbnRlbnRMZWZ0IH0gZnJvbSAnLi4vLi4vQmFkZ2Uuc3R5bGVzJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZm9udC1mYW1pbHk6IHZhcigke3Rva2Vucy5mb250RmFtaWx5fSk7XG4gICAgZm9udC1zaXplOiB2YXIoJHt0b2tlbnMuZm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMuZm9udFN0eWxlfSk7XG4gICAgZm9udC13ZWlnaHQ6IHZhcigke3Rva2Vucy5mb250V2VpZ2h0fSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy5sZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5saW5lSGVpZ2h0fSk7XG5cbiAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMuYm9yZGVyUmFkaXVzfSk7XG5cbiAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5oZWlnaHR9KTtcblxuICAgIHBhZGRpbmc6IHZhcigke3Rva2Vucy5wYWRkaW5nfSk7XG5cbiAgICAmLiR7Y2xhc3Nlcy5pY29uT25seX0ge1xuICAgICAgICBwYWRkaW5nOiB2YXIoJHt0b2tlbnMucGFkZGluZ0ljb25Pbmx5fSk7XG5cbiAgICAgICAgJHtTdHlsZWRDb250ZW50TGVmdH0ge1xuICAgICAgICAgICAgbWFyZ2luOiAwO1xuICAgICAgICB9XG4gICAgfVxuYDtcbiJdfQ== */"));
@@ -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 _Badge = /*#__PURE__*/require("../../Badge.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _react.css)("&.", _Badge.classes.badgeTransparent, "{color:var(", _Badge.tokens.colorTransparent, ");background-color:var(", _Badge.tokens.backgroundTransparent, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fdHJhbnNwYXJlbnQvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9CYWRnZS92YXJpYXRpb25zL190cmFuc3BhcmVudC9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9CYWRnZS50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7Y2xhc3Nlcy5iYWRnZVRyYW5zcGFyZW50fSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMuY29sb3JUcmFuc3BhcmVudH0pO1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoJHt0b2tlbnMuYmFja2dyb3VuZFRyYW5zcGFyZW50fSk7XG4gICAgfVxuYDtcbiJdfQ== */"));
9
+ var base = exports.base = /*#__PURE__*/(0, _react.css)("&.", _Badge.classes.badgeTransparent, "{color:var(", _Badge.privateTokens.customColor, ", var(", _Badge.tokens.colorTransparent, "));background-color:var(", _Badge.privateTokens.customBackground, ", var(", _Badge.tokens.backgroundTransparent, "));};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fdHJhbnNwYXJlbnQvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9CYWRnZS92YXJpYXRpb25zL190cmFuc3BhcmVudC9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCBwcml2YXRlVG9rZW5zLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9CYWRnZS50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7Y2xhc3Nlcy5iYWRnZVRyYW5zcGFyZW50fSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHtwcml2YXRlVG9rZW5zLmN1c3RvbUNvbG9yfSwgdmFyKCR7dG9rZW5zLmNvbG9yVHJhbnNwYXJlbnR9KSk7XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigke3ByaXZhdGVUb2tlbnMuY3VzdG9tQmFja2dyb3VuZH0sIHZhcigke3Rva2Vucy5iYWNrZ3JvdW5kVHJhbnNwYXJlbnR9KSk7XG4gICAgfVxuYDtcbiJdfQ== */"));
@@ -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 _Badge = /*#__PURE__*/require("../../Badge.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _react.css)("color:var(", _Badge.tokens.color, ");background-color:var(", _Badge.tokens.background, ");;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0JhZGdlL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnLi4vLi4vQmFkZ2UudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgY29sb3I6IHZhcigke3Rva2Vucy5jb2xvcn0pO1xuICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigke3Rva2Vucy5iYWNrZ3JvdW5kfSk7XG5gO1xuIl19 */"));
9
+ var base = exports.base = /*#__PURE__*/(0, _react.css)("color:var(", _Badge.privateTokens.customColor, ", var(", _Badge.tokens.color, "));background-color:var(", _Badge.privateTokens.customBackground, ", var(", _Badge.tokens.background, "));;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0JhZGdlL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgcHJpdmF0ZVRva2VucywgdG9rZW5zIH0gZnJvbSAnLi4vLi4vQmFkZ2UudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgY29sb3I6IHZhcigke3ByaXZhdGVUb2tlbnMuY3VzdG9tQ29sb3J9LCB2YXIoJHt0b2tlbnMuY29sb3J9KSk7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKCR7cHJpdmF0ZVRva2Vucy5jdXN0b21CYWNrZ3JvdW5kfSwgdmFyKCR7dG9rZW5zLmJhY2tncm91bmR9KSk7XG5gO1xuIl19 */"));
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3RlcHMvU3RlcHMuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1N0ZXBzL1N0ZXBzLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJvbSAnLi9TdGVwcy50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG5cbiAgICAmLiR7Y2xhc3Nlcy5zaW1wbGV9IHtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAgICAgICAmOm5vdCgmLiR7Y2xhc3Nlcy52ZXJ0aWNhbE9yaWVudGF0aW9ufSkge1xuICAgICAgICAgICAgJi4ke2NsYXNzZXMuaGFzSW5kaWNhdG9yfSB7XG4gICAgICAgICAgICAgICAgaGVpZ2h0OiB2YXIoJHt0b2tlbnMuYWN0aXZlSW5kaWNhdG9yU2l6ZX0pO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmOm5vdCguJHtjbGFzc2VzLmhhc0luZGljYXRvcn0pIHtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5hY3RpdmVCdWxsZXRTaXplfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAmLiR7Y2xhc3Nlcy52ZXJ0aWNhbE9yaWVudGF0aW9ufSB7XG4gICAgICAgICAgICAmLiR7Y2xhc3Nlcy5oYXNJbmRpY2F0b3J9IHtcbiAgICAgICAgICAgICAgICB3aWR0aDogdmFyKCR7dG9rZW5zLmFjdGl2ZUluZGljYXRvclNpemV9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgICY6bm90KC4ke2NsYXNzZXMuaGFzSW5kaWNhdG9yfSkge1xuICAgICAgICAgICAgICAgIHdpZHRoOiB2YXIoJHt0b2tlbnMuYWN0aXZlQnVsbGV0U2l6ZX0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMudmVydGljYWxPcmllbnRhdGlvbn0ge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgaGVpZ2h0OiAxMDAlO1xuICAgIH1cbmA7XG4iXX0= */"));
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3RlcHMvU3RlcHMuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1N0ZXBzL1N0ZXBzLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJvbSAnLi9TdGVwcy50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG5cbiAgICAmLiR7Y2xhc3Nlcy5zaW1wbGV9IHtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAgICAgICAmOm5vdCgmLiR7Y2xhc3Nlcy52ZXJ0aWNhbE9yaWVudGF0aW9ufSkge1xuICAgICAgICAgICAgJi4ke2NsYXNzZXMuaGFzSW5kaWNhdG9yfSB7XG4gICAgICAgICAgICAgICAgaGVpZ2h0OiB2YXIoJHt0b2tlbnMuYWN0aXZlSW5kaWNhdG9yU2l6ZX0pO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmOm5vdCguJHtjbGFzc2VzLmhhc0luZGljYXRvcn0pIHtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5hY3RpdmVCdWxsZXRTaXplfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAmLiR7Y2xhc3Nlcy52ZXJ0aWNhbE9yaWVudGF0aW9ufSB7XG4gICAgICAgICAgICAmLiR7Y2xhc3Nlcy5oYXNJbmRpY2F0b3J9IHtcbiAgICAgICAgICAgICAgICB3aWR0aDogdmFyKCR7dG9rZW5zLmFjdGl2ZUluZGljYXRvclNpemV9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgICY6bm90KC4ke2NsYXNzZXMuaGFzSW5kaWNhdG9yfSkge1xuICAgICAgICAgICAgICAgIHdpZHRoOiB2YXIoJHt0b2tlbnMuYWN0aXZlQnVsbGV0U2l6ZX0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMudmVydGljYWxPcmllbnRhdGlvbn0ge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgaGVpZ2h0OiAxMDAlO1xuXG4gICAgICAgICYuJHtjbGFzc2VzLnNpbXBsZX0ge1xuICAgICAgICAgICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
@@ -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.verticalOrientation, isVertical), "isFirst", isFirst), _defineProperty(_defineProperty(_defineProperty(_cls, "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({}, _Steps.classes.verticalOrientation, isVertical), _Steps.classes.transparentDivider, !hasLine), _Steps.classes.active, isActive), _Steps.classes.inactive, isInactive || isNextInactive))
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
  };