@salutejs/plasma-new-hope 0.176.1-canary.1510.11572230988.0 → 0.176.1-canary.1517.11571952534.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (184) hide show
  1. package/cjs/components/Notification/Notification.css +11 -11
  2. package/cjs/components/Notification/Notification.js +2 -2
  3. package/cjs/components/Notification/Notification.js.map +1 -1
  4. package/cjs/components/Notification/Notification.styles.js +2 -11
  5. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  6. package/cjs/components/Notification/{Notification.styles_e6274r.css → Notification.styles_7h8hp0.css} +2 -2
  7. package/cjs/components/Notification/Notification.tokens.js +1 -2
  8. package/cjs/components/Notification/Notification.tokens.js.map +1 -1
  9. package/cjs/components/Notification/Notification.types.js.map +1 -1
  10. package/cjs/components/Notification/NotificationsPortal.js +4 -8
  11. package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
  12. package/cjs/components/Notification/NotificationsProvider.css +11 -11
  13. package/cjs/components/Notification/NotificationsProvider.js +1 -3
  14. package/cjs/components/Notification/NotificationsProvider.js.map +1 -1
  15. package/cjs/components/Pagination/Pagination.css +12 -12
  16. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +12 -12
  17. package/cjs/components/Select/Select.css +12 -12
  18. package/cjs/components/Select/Select.tokens.js +1 -2
  19. package/cjs/components/Select/Select.tokens.js.map +1 -1
  20. package/cjs/components/Select/ui/Inner/Inner.css +12 -12
  21. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +12 -12
  22. package/cjs/components/Select/ui/Target/Target.css +12 -12
  23. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +12 -12
  24. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  25. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  26. package/{es/components/Select/ui/Target/ui/Textfield/Textfield.styles_jzeap2.css → cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_11yj58s.css} +1 -1
  27. package/cjs/components/Steps/Steps.css +9 -9
  28. package/cjs/components/Steps/Steps.tokens.js +1 -0
  29. package/cjs/components/Steps/Steps.tokens.js.map +1 -1
  30. package/cjs/components/Steps/ui/StepItem/StepItem.css +9 -9
  31. package/cjs/components/Steps/ui/StepItem/StepItem.js +29 -7
  32. package/cjs/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  33. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
  34. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  35. package/cjs/components/Steps/ui/StepItem/StepItem.styles_1oh5gqm.css +9 -0
  36. package/cjs/index.css +31 -31
  37. package/cjs/index.js +1 -1
  38. package/emotion/cjs/components/Notification/Notification.js +2 -2
  39. package/emotion/cjs/components/Notification/Notification.styles.js +19 -14
  40. package/emotion/cjs/components/Notification/Notification.template-doc.mdx +8 -17
  41. package/emotion/cjs/components/Notification/Notification.tokens.js +1 -2
  42. package/emotion/cjs/components/Notification/NotificationsPortal.js +5 -9
  43. package/emotion/cjs/components/Notification/NotificationsProvider.js +1 -3
  44. package/emotion/cjs/components/Notification/index.js +4 -4
  45. package/emotion/cjs/components/Select/Select.tokens.js +1 -2
  46. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +21 -12
  47. package/emotion/cjs/components/Steps/Steps.tokens.js +1 -0
  48. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.js +29 -7
  49. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.styles.js +17 -11
  50. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.js +3 -5
  51. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
  52. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
  53. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  54. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.js +3 -5
  55. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
  56. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.config.js +5 -5
  57. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  58. package/emotion/es/components/Notification/Notification.js +1 -1
  59. package/emotion/es/components/Notification/Notification.styles.js +19 -14
  60. package/emotion/es/components/Notification/Notification.template-doc.mdx +8 -17
  61. package/emotion/es/components/Notification/Notification.tokens.js +1 -2
  62. package/emotion/es/components/Notification/NotificationsPortal.js +5 -9
  63. package/emotion/es/components/Notification/NotificationsProvider.js +1 -3
  64. package/emotion/es/components/Notification/index.js +1 -1
  65. package/emotion/es/components/Select/Select.tokens.js +1 -2
  66. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +21 -12
  67. package/emotion/es/components/Steps/Steps.tokens.js +1 -0
  68. package/emotion/es/components/Steps/ui/StepItem/StepItem.js +29 -7
  69. package/emotion/es/components/Steps/ui/StepItem/StepItem.styles.js +17 -11
  70. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.js +4 -6
  71. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
  72. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
  73. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  74. package/emotion/es/examples/plasma_web/components/Notification/Notification.js +4 -6
  75. package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
  76. package/emotion/es/examples/plasma_web/components/Steps/Steps.config.js +5 -5
  77. package/emotion/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  78. package/es/components/Notification/Notification.css +11 -11
  79. package/es/components/Notification/Notification.js +2 -2
  80. package/es/components/Notification/Notification.js.map +1 -1
  81. package/es/components/Notification/Notification.styles.js +2 -11
  82. package/es/components/Notification/Notification.styles.js.map +1 -1
  83. package/es/components/Notification/{Notification.styles_e6274r.css → Notification.styles_7h8hp0.css} +2 -2
  84. package/es/components/Notification/Notification.tokens.js +1 -2
  85. package/es/components/Notification/Notification.tokens.js.map +1 -1
  86. package/es/components/Notification/Notification.types.js.map +1 -1
  87. package/es/components/Notification/NotificationsPortal.js +4 -8
  88. package/es/components/Notification/NotificationsPortal.js.map +1 -1
  89. package/es/components/Notification/NotificationsProvider.css +11 -11
  90. package/es/components/Notification/NotificationsProvider.js +1 -3
  91. package/es/components/Notification/NotificationsProvider.js.map +1 -1
  92. package/es/components/Pagination/Pagination.css +12 -12
  93. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +12 -12
  94. package/es/components/Select/Select.css +12 -12
  95. package/es/components/Select/Select.tokens.js +1 -2
  96. package/es/components/Select/Select.tokens.js.map +1 -1
  97. package/es/components/Select/ui/Inner/Inner.css +12 -12
  98. package/es/components/Select/ui/Inner/ui/Item/Item.css +12 -12
  99. package/es/components/Select/ui/Target/Target.css +12 -12
  100. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +12 -12
  101. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  102. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  103. package/{cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_jzeap2.css → es/components/Select/ui/Target/ui/Textfield/Textfield.styles_11yj58s.css} +1 -1
  104. package/es/components/Steps/Steps.css +9 -9
  105. package/es/components/Steps/Steps.tokens.js +1 -0
  106. package/es/components/Steps/Steps.tokens.js.map +1 -1
  107. package/es/components/Steps/ui/StepItem/StepItem.css +9 -9
  108. package/es/components/Steps/ui/StepItem/StepItem.js +30 -8
  109. package/es/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  110. package/es/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
  111. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  112. package/es/components/Steps/ui/StepItem/StepItem.styles_1oh5gqm.css +9 -0
  113. package/es/index.css +31 -31
  114. package/es/index.js +1 -1
  115. package/package.json +2 -2
  116. package/styled-components/cjs/components/Notification/Notification.js +2 -2
  117. package/styled-components/cjs/components/Notification/Notification.styles.js +2 -5
  118. package/styled-components/cjs/components/Notification/Notification.template-doc.mdx +8 -17
  119. package/styled-components/cjs/components/Notification/Notification.tokens.js +1 -2
  120. package/styled-components/cjs/components/Notification/NotificationsPortal.js +4 -8
  121. package/styled-components/cjs/components/Notification/NotificationsProvider.js +1 -3
  122. package/styled-components/cjs/components/Notification/index.js +4 -4
  123. package/styled-components/cjs/components/Select/Select.tokens.js +1 -2
  124. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  125. package/styled-components/cjs/components/Steps/Steps.tokens.js +1 -0
  126. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.js +29 -7
  127. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.styles.js +12 -6
  128. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.js +3 -5
  129. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
  130. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
  131. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  132. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.js +3 -5
  133. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
  134. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.config.js +1 -1
  135. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  136. package/styled-components/es/components/Notification/Notification.js +1 -1
  137. package/styled-components/es/components/Notification/Notification.styles.js +2 -5
  138. package/styled-components/es/components/Notification/Notification.template-doc.mdx +8 -17
  139. package/styled-components/es/components/Notification/Notification.tokens.js +1 -2
  140. package/styled-components/es/components/Notification/NotificationsPortal.js +4 -8
  141. package/styled-components/es/components/Notification/NotificationsProvider.js +1 -3
  142. package/styled-components/es/components/Notification/index.js +1 -1
  143. package/styled-components/es/components/Select/Select.tokens.js +1 -2
  144. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  145. package/styled-components/es/components/Steps/Steps.tokens.js +1 -0
  146. package/styled-components/es/components/Steps/ui/StepItem/StepItem.js +29 -7
  147. package/styled-components/es/components/Steps/ui/StepItem/StepItem.styles.js +12 -6
  148. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.js +4 -6
  149. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
  150. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
  151. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  152. package/styled-components/es/examples/plasma_web/components/Notification/Notification.js +4 -6
  153. package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
  154. package/styled-components/es/examples/plasma_web/components/Steps/Steps.config.js +1 -1
  155. package/styled-components/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  156. package/types/components/Notification/Notification.d.ts +3 -3
  157. package/types/components/Notification/Notification.d.ts.map +1 -1
  158. package/types/components/Notification/Notification.styles.d.ts +2 -4
  159. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  160. package/types/components/Notification/Notification.tokens.d.ts +0 -1
  161. package/types/components/Notification/Notification.tokens.d.ts.map +1 -1
  162. package/types/components/Notification/Notification.types.d.ts +5 -11
  163. package/types/components/Notification/Notification.types.d.ts.map +1 -1
  164. package/types/components/Notification/NotificationsPortal.d.ts.map +1 -1
  165. package/types/components/Notification/NotificationsProvider.d.ts +3 -4
  166. package/types/components/Notification/NotificationsProvider.d.ts.map +1 -1
  167. package/types/components/Notification/index.d.ts +2 -2
  168. package/types/components/Notification/index.d.ts.map +1 -1
  169. package/types/components/Select/Select.tokens.d.ts +0 -1
  170. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  171. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  172. package/types/components/Steps/Steps.tokens.d.ts +1 -0
  173. package/types/components/Steps/Steps.tokens.d.ts.map +1 -1
  174. package/types/components/Steps/ui/StepItem/StepItem.d.ts.map +1 -1
  175. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts +2 -2
  176. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -1
  177. package/types/examples/plasma_b2c/components/Notification/Notification.d.ts +2 -4
  178. package/types/examples/plasma_b2c/components/Notification/Notification.d.ts.map +1 -1
  179. package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts.map +1 -1
  180. package/types/examples/plasma_web/components/Notification/Notification.d.ts +13 -4
  181. package/types/examples/plasma_web/components/Notification/Notification.d.ts.map +1 -1
  182. package/types/examples/plasma_web/components/Steps/Steps.config.d.ts.map +1 -1
  183. package/cjs/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +0 -9
  184. package/es/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +0 -9
@@ -56,6 +56,7 @@ 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',
59
60
  activeIndicatorBorder: '--plasma-step-item-active-indicator-border',
60
61
  activeIndicatorBorderHover: '--plasma-step-item-active-indicator-border-hover',
61
62
  activeIndicatorColor: '--plasma-step-item-active-indicator-color',
@@ -43,6 +43,7 @@ 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';
46
47
  var isInactive = status === 'inactive';
47
48
  var isPrevInactive = prevItem && !(prevItem !== null && prevItem !== void 0 && prevItem.status) || (prevItem === null || prevItem === void 0 ? void 0 : prevItem.status) === 'inactive';
48
49
  var isNextInactive = !(nextItem !== null && nextItem !== void 0 && nextItem.status) || (nextItem === null || nextItem === void 0 ? void 0 : nextItem.status) === 'inactive';
@@ -80,8 +81,31 @@ export var StepItem = function StepItem(_ref) {
80
81
  setIsHovered(false);
81
82
  }
82
83
  }, [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
+ }
83
107
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StepItemStyled, {
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))
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))
85
109
  }, /*#__PURE__*/React.createElement(BulletIndicatorWrapper, {
86
110
  className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.centered, isCentered), classes.simple, isSimple), classes.hasIndicator, hasIndicator)),
87
111
  onClick: onClickHandler,
@@ -91,7 +115,7 @@ export var StepItem = function StepItem(_ref) {
91
115
  onMouseOut: onMouseOut
92
116
  }, contentAlign === 'center' && !isSimple && /*#__PURE__*/React.createElement(StepItemDivider, {
93
117
  className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine || isFirst), classes.inactive, isInactive || isPrevInactive))
94
- }), isVertical && (isSimple ? !isFirst : true) && /*#__PURE__*/React.createElement(StepItemDivider, {
118
+ }), isVertical && /*#__PURE__*/React.createElement(StepItemDivider, {
95
119
  className: cls(classes.indentDivider, _defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine || isFirst), classes.inactive, isInactive || isPrevInactive)),
96
120
  indentToken: indentToken
97
121
  }), hasLoader && /*#__PURE__*/React.createElement(SpinnerStyled, {
@@ -102,9 +126,9 @@ export var StepItem = function StepItem(_ref) {
102
126
  status: status,
103
127
  item: item,
104
128
  size: size
105
- }), typeof indicator !== 'function' && indicator), !isSimple && /*#__PURE__*/React.createElement(StepItemDivider, {
129
+ }), typeof indicator !== 'function' && indicator), /*#__PURE__*/React.createElement(StepItemDivider, {
106
130
  className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine || isLast), classes.inactive, isInactive || isNextInactive))
107
- })), !isSimple && /*#__PURE__*/React.createElement(StepItemContentWrapper, {
131
+ })), /*#__PURE__*/React.createElement(StepItemContentWrapper, {
108
132
  className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.centered, isCentered), classes.active, isActive), classes.hasIndicator, hasIndicator))
109
133
  }, /*#__PURE__*/React.createElement(StepItemTitle, {
110
134
  onClick: onClickHandler,
@@ -112,7 +136,5 @@ export var StepItem = function StepItem(_ref) {
112
136
  onBlur: onMouseOut,
113
137
  onMouseOver: onMouseOver,
114
138
  onMouseOut: onMouseOut
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
- }));
139
+ }, title), content && /*#__PURE__*/React.createElement(StepItemContent, null, typeof content === 'function' ? content(status, index, items) : content))));
118
140
  };