@salutejs/plasma-new-hope 0.186.0-canary.1546.11723696357.0 → 0.186.1-canary.1517.11741997679.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. package/cjs/components/Badge/Badge.css +7 -7
  2. package/cjs/components/Badge/Badge.js +11 -16
  3. package/cjs/components/Badge/Badge.js.map +1 -1
  4. package/cjs/components/Badge/Badge.styles.js +5 -5
  5. package/cjs/components/Badge/Badge.styles.js.map +1 -1
  6. package/cjs/components/Badge/Badge.styles_hhbwyi.css +4 -0
  7. package/cjs/components/Badge/Badge.tokens.js +5 -9
  8. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  9. package/cjs/components/Badge/variations/_clear/base.js +1 -1
  10. package/cjs/components/Badge/variations/_clear/base.js.map +1 -1
  11. package/cjs/components/Badge/variations/_clear/base_oopyb7.css +1 -0
  12. package/cjs/components/Badge/variations/_size/base.js +1 -1
  13. package/cjs/components/Badge/variations/_size/base.js.map +1 -1
  14. package/{es/components/Badge/variations/_size/base_rn38n6.css → cjs/components/Badge/variations/_size/base_to0y5x.css} +1 -1
  15. package/cjs/components/Badge/variations/_transparent/base.js +1 -1
  16. package/cjs/components/Badge/variations/_transparent/base.js.map +1 -1
  17. package/cjs/components/Badge/variations/_transparent/base_1l6036y.css +1 -0
  18. package/cjs/components/Badge/variations/_view/base.js +1 -1
  19. package/cjs/components/Badge/variations/_view/base.js.map +1 -1
  20. package/cjs/components/Badge/variations/_view/base_qlxank.css +1 -0
  21. package/cjs/components/Steps/Steps.css +10 -10
  22. package/cjs/components/Steps/Steps.js +21 -14
  23. package/cjs/components/Steps/Steps.js.map +1 -1
  24. package/cjs/components/Steps/Steps.styles.js +1 -1
  25. package/cjs/components/Steps/Steps.styles.js.map +1 -1
  26. package/cjs/components/Steps/{Steps.styles_1xmqxqu.css → Steps.styles_wa45kj.css} +1 -1
  27. package/cjs/components/Steps/Steps.tokens.js +1 -0
  28. package/cjs/components/Steps/Steps.tokens.js.map +1 -1
  29. package/cjs/components/Steps/ui/StepItem/StepItem.css +9 -9
  30. package/cjs/components/Steps/ui/StepItem/StepItem.js +29 -7
  31. package/cjs/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  32. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
  33. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  34. package/cjs/components/Steps/ui/StepItem/StepItem.styles_q5nnk6.css +9 -0
  35. package/cjs/components/Tabs/tokens.js +2 -1
  36. package/cjs/components/Tabs/tokens.js.map +1 -1
  37. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +6 -6
  38. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +10 -3
  39. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  40. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  41. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  42. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1yi1gll.css +5 -0
  43. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base.js +1 -1
  44. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/{base_4zingj.css → base_j8lg9u.css} +1 -1
  45. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +6 -6
  46. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +10 -3
  47. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  48. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  49. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  50. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_17vv6lq.css +5 -0
  51. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/base.js +1 -1
  52. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/{base_fueiq8.css → base_12fk3xi.css} +1 -1
  53. package/cjs/index.css +30 -30
  54. package/emotion/cjs/components/Badge/Badge.js +11 -16
  55. package/emotion/cjs/components/Badge/Badge.styles.js +4 -13
  56. package/emotion/cjs/components/Badge/Badge.tokens.js +6 -9
  57. package/emotion/cjs/components/Badge/variations/_clear/base.js +1 -1
  58. package/emotion/cjs/components/Badge/variations/_size/base.js +1 -2
  59. package/emotion/cjs/components/Badge/variations/_transparent/base.js +1 -1
  60. package/emotion/cjs/components/Badge/variations/_view/base.js +1 -1
  61. package/emotion/cjs/components/Steps/Steps.js +23 -14
  62. package/emotion/cjs/components/Steps/Steps.styles.js +1 -1
  63. package/emotion/cjs/components/Steps/Steps.tokens.js +1 -0
  64. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.js +29 -7
  65. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.styles.js +22 -11
  66. package/emotion/cjs/components/Tabs/tokens.js +2 -1
  67. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +15 -3
  68. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +12 -12
  69. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +15 -3
  70. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +12 -12
  71. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +17 -14
  72. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +4 -6
  73. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
  74. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  75. package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
  76. package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  77. package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  78. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  79. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +2 -8
  80. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.config.js +5 -5
  81. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  82. package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
  83. package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  84. package/emotion/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  85. package/emotion/es/components/Badge/Badge.js +12 -17
  86. package/emotion/es/components/Badge/Badge.styles.js +5 -14
  87. package/emotion/es/components/Badge/Badge.tokens.js +5 -8
  88. package/emotion/es/components/Badge/variations/_clear/base.js +2 -2
  89. package/emotion/es/components/Badge/variations/_size/base.js +2 -3
  90. package/emotion/es/components/Badge/variations/_transparent/base.js +2 -2
  91. package/emotion/es/components/Badge/variations/_view/base.js +2 -2
  92. package/emotion/es/components/Steps/Steps.js +24 -15
  93. package/emotion/es/components/Steps/Steps.styles.js +1 -1
  94. package/emotion/es/components/Steps/Steps.tokens.js +1 -0
  95. package/emotion/es/components/Steps/ui/StepItem/StepItem.js +29 -7
  96. package/emotion/es/components/Steps/ui/StepItem/StepItem.styles.js +22 -11
  97. package/emotion/es/components/Tabs/tokens.js +2 -1
  98. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +16 -3
  99. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +13 -13
  100. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +16 -3
  101. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +13 -13
  102. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +17 -14
  103. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +4 -6
  104. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
  105. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  106. package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
  107. package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  108. package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  109. package/emotion/es/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  110. package/emotion/es/examples/plasma_web/components/Badge/Badge.stories.tsx +2 -8
  111. package/emotion/es/examples/plasma_web/components/Steps/Steps.config.js +5 -5
  112. package/emotion/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  113. package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
  114. package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  115. package/emotion/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  116. package/es/components/Badge/Badge.css +7 -7
  117. package/es/components/Badge/Badge.js +14 -19
  118. package/es/components/Badge/Badge.js.map +1 -1
  119. package/es/components/Badge/Badge.styles.js +5 -5
  120. package/es/components/Badge/Badge.styles.js.map +1 -1
  121. package/es/components/Badge/Badge.styles_hhbwyi.css +4 -0
  122. package/es/components/Badge/Badge.tokens.js +6 -9
  123. package/es/components/Badge/Badge.tokens.js.map +1 -1
  124. package/es/components/Badge/variations/_clear/base.js +1 -1
  125. package/es/components/Badge/variations/_clear/base.js.map +1 -1
  126. package/es/components/Badge/variations/_clear/base_oopyb7.css +1 -0
  127. package/es/components/Badge/variations/_size/base.js +1 -1
  128. package/es/components/Badge/variations/_size/base.js.map +1 -1
  129. package/{cjs/components/Badge/variations/_size/base_rn38n6.css → es/components/Badge/variations/_size/base_to0y5x.css} +1 -1
  130. package/es/components/Badge/variations/_transparent/base.js +1 -1
  131. package/es/components/Badge/variations/_transparent/base.js.map +1 -1
  132. package/es/components/Badge/variations/_transparent/base_1l6036y.css +1 -0
  133. package/es/components/Badge/variations/_view/base.js +1 -1
  134. package/es/components/Badge/variations/_view/base.js.map +1 -1
  135. package/es/components/Badge/variations/_view/base_qlxank.css +1 -0
  136. package/es/components/Steps/Steps.css +10 -10
  137. package/es/components/Steps/Steps.js +23 -16
  138. package/es/components/Steps/Steps.js.map +1 -1
  139. package/es/components/Steps/Steps.styles.js +1 -1
  140. package/es/components/Steps/Steps.styles.js.map +1 -1
  141. package/es/components/Steps/{Steps.styles_1xmqxqu.css → Steps.styles_wa45kj.css} +1 -1
  142. package/es/components/Steps/Steps.tokens.js +1 -0
  143. package/es/components/Steps/Steps.tokens.js.map +1 -1
  144. package/es/components/Steps/ui/StepItem/StepItem.css +9 -9
  145. package/es/components/Steps/ui/StepItem/StepItem.js +30 -8
  146. package/es/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  147. package/es/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
  148. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  149. package/es/components/Steps/ui/StepItem/StepItem.styles_q5nnk6.css +9 -0
  150. package/es/components/Tabs/tokens.js +2 -1
  151. package/es/components/Tabs/tokens.js.map +1 -1
  152. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +6 -6
  153. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +11 -4
  154. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  155. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  156. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  157. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1yi1gll.css +5 -0
  158. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base.js +1 -1
  159. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/{base_4zingj.css → base_j8lg9u.css} +1 -1
  160. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +6 -6
  161. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +11 -4
  162. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  163. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  164. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  165. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_17vv6lq.css +5 -0
  166. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/base.js +1 -1
  167. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/{base_fueiq8.css → base_12fk3xi.css} +1 -1
  168. package/es/index.css +30 -30
  169. package/package.json +2 -2
  170. package/styled-components/cjs/components/Badge/Badge.js +11 -16
  171. package/styled-components/cjs/components/Badge/Badge.styles.js +2 -2
  172. package/styled-components/cjs/components/Badge/Badge.tokens.js +6 -9
  173. package/styled-components/cjs/components/Badge/variations/_clear/base.js +1 -1
  174. package/styled-components/cjs/components/Badge/variations/_size/base.js +1 -2
  175. package/styled-components/cjs/components/Badge/variations/_transparent/base.js +1 -1
  176. package/styled-components/cjs/components/Badge/variations/_view/base.js +1 -1
  177. package/styled-components/cjs/components/Steps/Steps.js +23 -14
  178. package/styled-components/cjs/components/Steps/Steps.styles.js +1 -1
  179. package/styled-components/cjs/components/Steps/Steps.tokens.js +1 -0
  180. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.js +29 -7
  181. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.styles.js +17 -6
  182. package/styled-components/cjs/components/Tabs/tokens.js +2 -1
  183. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +15 -3
  184. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +8 -8
  185. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +15 -3
  186. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +9 -9
  187. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +8 -5
  188. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +4 -6
  189. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
  190. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  191. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
  192. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  193. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  194. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  195. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +2 -8
  196. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.config.js +1 -1
  197. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  198. package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
  199. package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  200. package/styled-components/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  201. package/styled-components/es/components/Badge/Badge.js +12 -17
  202. package/styled-components/es/components/Badge/Badge.styles.js +3 -3
  203. package/styled-components/es/components/Badge/Badge.tokens.js +5 -8
  204. package/styled-components/es/components/Badge/variations/_clear/base.js +2 -2
  205. package/styled-components/es/components/Badge/variations/_size/base.js +2 -3
  206. package/styled-components/es/components/Badge/variations/_transparent/base.js +2 -2
  207. package/styled-components/es/components/Badge/variations/_view/base.js +2 -2
  208. package/styled-components/es/components/Steps/Steps.js +24 -15
  209. package/styled-components/es/components/Steps/Steps.styles.js +1 -1
  210. package/styled-components/es/components/Steps/Steps.tokens.js +1 -0
  211. package/styled-components/es/components/Steps/ui/StepItem/StepItem.js +29 -7
  212. package/styled-components/es/components/Steps/ui/StepItem/StepItem.styles.js +17 -6
  213. package/styled-components/es/components/Tabs/tokens.js +2 -1
  214. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +16 -3
  215. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +9 -9
  216. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +16 -3
  217. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +10 -10
  218. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +8 -5
  219. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +4 -6
  220. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
  221. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  222. package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
  223. package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  224. package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  225. package/styled-components/es/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  226. package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +2 -8
  227. package/styled-components/es/examples/plasma_web/components/Steps/Steps.config.js +1 -1
  228. package/styled-components/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  229. package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
  230. package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  231. package/styled-components/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  232. package/types/components/Badge/Badge.d.ts.map +1 -1
  233. package/types/components/Badge/Badge.styles.d.ts +1 -1
  234. package/types/components/Badge/Badge.styles.d.ts.map +1 -1
  235. package/types/components/Badge/Badge.tokens.d.ts +5 -8
  236. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  237. package/types/components/Badge/Badge.types.d.ts +10 -18
  238. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  239. package/types/components/Badge/variations/_clear/base.d.ts.map +1 -1
  240. package/types/components/Badge/variations/_size/base.d.ts.map +1 -1
  241. package/types/components/Steps/Steps.d.ts.map +1 -1
  242. package/types/components/Steps/Steps.styles.d.ts.map +1 -1
  243. package/types/components/Steps/Steps.tokens.d.ts +1 -0
  244. package/types/components/Steps/Steps.tokens.d.ts.map +1 -1
  245. package/types/components/Steps/ui/StepItem/StepItem.d.ts.map +1 -1
  246. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts +2 -2
  247. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -1
  248. package/types/components/Tabs/TabItem.types.d.ts +6 -1
  249. package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
  250. package/types/components/Tabs/tokens.d.ts +1 -0
  251. package/types/components/Tabs/tokens.d.ts.map +1 -1
  252. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
  253. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts +1 -1
  254. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
  255. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts.map +1 -1
  256. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts +1 -1
  257. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
  258. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts +3 -0
  259. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  260. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +10 -58
  261. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  262. package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts.map +1 -1
  263. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +6 -0
  264. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
  265. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +3 -0
  266. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  267. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts +3 -0
  268. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  269. package/types/examples/plasma_web/components/Badge/Badge.config.d.ts.map +1 -1
  270. package/types/examples/plasma_web/components/Badge/Badge.d.ts +7 -58
  271. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  272. package/types/examples/plasma_web/components/Steps/Steps.config.d.ts.map +1 -1
  273. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts +6 -0
  274. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts.map +1 -1
  275. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +3 -0
  276. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  277. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts +3 -0
  278. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  279. package/cjs/components/Badge/Badge.styles_8pi3br.css +0 -4
  280. package/cjs/components/Badge/variations/_clear/base_wiboj8.css +0 -1
  281. package/cjs/components/Badge/variations/_transparent/base_aapqhz.css +0 -1
  282. package/cjs/components/Badge/variations/_view/base_j3xzf3.css +0 -1
  283. package/cjs/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +0 -9
  284. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css +0 -5
  285. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_1g7zipg.css +0 -5
  286. package/es/components/Badge/Badge.styles_8pi3br.css +0 -4
  287. package/es/components/Badge/variations/_clear/base_wiboj8.css +0 -1
  288. package/es/components/Badge/variations/_transparent/base_aapqhz.css +0 -1
  289. package/es/components/Badge/variations/_view/base_j3xzf3.css +0 -1
  290. package/es/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +0 -9
  291. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css +0 -5
  292. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_1g7zipg.css +0 -5
@@ -29,6 +29,7 @@ type CustomStoryTabsProps = {
29
29
 
30
30
  const contentLeftOptions = ['none', 'icon'];
31
31
  const contentRightOptions = ['none', 'counter', 'icon'];
32
+ const labels = ['Label', 'Middle label', 'Very long label'];
32
33
 
33
34
  const getContentLeft = (contentLeftOption: string, size: string) => {
34
35
  const iconSize = size === 'xs' ? 'xs' : 's';
@@ -76,6 +77,12 @@ const meta: Meta<StoryTabsProps> = {
76
77
  },
77
78
  if: { arg: 'helperText', eq: '' },
78
79
  },
80
+ maxItemWidth: {
81
+ control: {
82
+ type: 'text',
83
+ },
84
+ if: { arg: 'stretch', truthy: false },
85
+ },
79
86
  },
80
87
  };
81
88
 
@@ -90,13 +97,14 @@ const StoryHorizontalDefault = (props: HorizontalStoryTabsProps) => {
90
97
  contentRight: contentRightOption,
91
98
  hasDivider,
92
99
  stretch,
100
+ maxItemWidth,
93
101
  helperText,
94
102
  } = props;
95
103
  const items = Array(itemQuantity).fill(0);
96
104
  const [index, setIndex] = useState(0);
97
105
 
98
106
  return (
99
- <Tabs view="divider" hasDivider={hasDivider} stretch={stretch} disabled={disabled} size={size}>
107
+ <Tabs clip="none" view="divider" hasDivider={hasDivider} stretch={stretch} disabled={disabled} size={size}>
100
108
  {items.map((_, i) => {
101
109
  if (helperText !== '') {
102
110
  return (
@@ -110,8 +118,9 @@ const StoryHorizontalDefault = (props: HorizontalStoryTabsProps) => {
110
118
  value={helperText}
111
119
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
112
120
  size={size as Size}
121
+ maxItemWidth={maxItemWidth}
113
122
  >
114
- {`Label${i + 1}`}
123
+ {`${labels[i % labels.length]} ${i + 1}`}
115
124
  </TabItem>
116
125
  );
117
126
  }
@@ -127,8 +136,9 @@ const StoryHorizontalDefault = (props: HorizontalStoryTabsProps) => {
127
136
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
128
137
  contentRight={getContentRight(contentRightOption, size as Size)}
129
138
  size={size as Size}
139
+ maxItemWidth={maxItemWidth}
130
140
  >
131
- {`Label${i + 1}`}
141
+ {`${labels[i % labels.length]} ${i + 1}`}
132
142
  </TabItem>
133
143
  );
134
144
  })}
@@ -147,6 +157,7 @@ const StoryHorizontalScroll = (props: HorizontalStoryTabsProps) => {
147
157
  hasDivider,
148
158
  helperText,
149
159
  width,
160
+ maxItemWidth,
150
161
  } = props;
151
162
  const items = Array(itemQuantity).fill(0);
152
163
  const [index, setIndex] = useState(0);
@@ -166,8 +177,9 @@ const StoryHorizontalScroll = (props: HorizontalStoryTabsProps) => {
166
177
  value={helperText}
167
178
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
168
179
  size={size as Size}
180
+ maxItemWidth={maxItemWidth}
169
181
  >
170
- {`Label${i + 1}`}
182
+ {`${labels[i % labels.length]} ${i + 1}`}
171
183
  </TabItem>
172
184
  );
173
185
  }
@@ -183,8 +195,9 @@ const StoryHorizontalScroll = (props: HorizontalStoryTabsProps) => {
183
195
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
184
196
  contentRight={getContentRight(contentRightOption, size as Size)}
185
197
  size={size as Size}
198
+ maxItemWidth={maxItemWidth}
186
199
  >
187
- {`Label${i + 1}`}
200
+ {`${labels[i % labels.length]} ${i + 1}`}
188
201
  </TabItem>
189
202
  );
190
203
  })}
@@ -202,6 +215,7 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
202
215
  contentRight: contentRightOption,
203
216
  hasDivider,
204
217
  helperText,
218
+ maxItemWidth,
205
219
  } = props;
206
220
  const maxItemQuantity = 3;
207
221
  const items = Array(itemQuantity).fill(0);
@@ -234,8 +248,9 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
234
248
  value={helperText}
235
249
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
236
250
  size={size as Size}
251
+ maxItemWidth={maxItemWidth}
237
252
  >
238
- {`Label${i + 1}`}
253
+ {`${labels[i % labels.length]} ${i + 1}`}
239
254
  </TabItem>
240
255
  );
241
256
  }
@@ -251,8 +266,9 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
251
266
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
252
267
  contentRight={getContentRight(contentRightOption, size as Size)}
253
268
  size={size as Size}
269
+ maxItemWidth={maxItemWidth}
254
270
  >
255
- {`Label${i + 1}`}
271
+ {`${labels[i % labels.length]} ${i + 1}`}
256
272
  </TabItem>
257
273
  );
258
274
  })}
@@ -269,6 +285,7 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
269
285
  tabIndex={!disabled ? 0 : -1}
270
286
  disabled={disabled}
271
287
  size={size as Size}
288
+ maxItemWidth="auto"
272
289
  >
273
290
  ShowAll
274
291
  </TabItem>
@@ -285,9 +302,10 @@ export const HorizontalTabs: StoryObj<HorizontalStoryTabsProps> = {
285
302
  disabled: false,
286
303
  hasDivider: true,
287
304
  helperText: '',
288
- itemQuantity: 8,
305
+ itemQuantity: 6,
289
306
  stretch: false,
290
307
  width: '15rem',
308
+ maxItemWidth: '',
291
309
  },
292
310
  argTypes: {
293
311
  contentLeft: {
@@ -343,6 +361,7 @@ const StoryVerticalDefault = (props: VerticalStoryTabsProps) => {
343
361
  contentRight: contentRightOption,
344
362
  hasDivider,
345
363
  helperText,
364
+ maxItemWidth,
346
365
  } = props;
347
366
  const items = Array(itemQuantity).fill(0);
348
367
  const [index, setIndex] = useState(0);
@@ -363,8 +382,9 @@ const StoryVerticalDefault = (props: VerticalStoryTabsProps) => {
363
382
  value={helperText}
364
383
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
365
384
  size={size as Size}
385
+ maxItemWidth={maxItemWidth}
366
386
  >
367
- {`Label${i + 1}`}
387
+ {`${labels[i % labels.length]} ${i + 1}`}
368
388
  </TabItem>
369
389
  );
370
390
  }
@@ -381,8 +401,9 @@ const StoryVerticalDefault = (props: VerticalStoryTabsProps) => {
381
401
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
382
402
  contentRight={getContentRight(contentRightOption, size as Size)}
383
403
  size={size as Size}
404
+ maxItemWidth={maxItemWidth}
384
405
  >
385
- {`Label${i + 1}`}
406
+ {`${labels[i % labels.length]} ${i + 1}`}
386
407
  </TabItem>
387
408
  );
388
409
  })}
@@ -401,6 +422,7 @@ const StoryVerticalScroll = (props: VerticalStoryTabsProps) => {
401
422
  hasDivider,
402
423
  helperText,
403
424
  height,
425
+ maxItemWidth,
404
426
  } = props;
405
427
  const items = Array(itemQuantity).fill(0);
406
428
  const [index, setIndex] = useState(0);
@@ -428,8 +450,9 @@ const StoryVerticalScroll = (props: VerticalStoryTabsProps) => {
428
450
  value={helperText}
429
451
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
430
452
  size={size as Size}
453
+ maxItemWidth={maxItemWidth}
431
454
  >
432
- {`Label${i + 1}`}
455
+ {`${labels[i % labels.length]} ${i + 1}`}
433
456
  </TabItem>
434
457
  );
435
458
  }
@@ -446,8 +469,9 @@ const StoryVerticalScroll = (props: VerticalStoryTabsProps) => {
446
469
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
447
470
  contentRight={getContentRight(contentRightOption, size as Size)}
448
471
  size={size as Size}
472
+ maxItemWidth={maxItemWidth}
449
473
  >
450
- {`Label${i + 1}`}
474
+ {`${labels[i % labels.length]} ${i + 1}`}
451
475
  </TabItem>
452
476
  );
453
477
  })}
@@ -465,6 +489,7 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
465
489
  contentRight: contentRightOption,
466
490
  hasDivider,
467
491
  helperText,
492
+ maxItemWidth,
468
493
  } = props;
469
494
  const maxItemQuantity = 3;
470
495
  const items = Array(itemQuantity).fill(0);
@@ -498,8 +523,9 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
498
523
  value={helperText}
499
524
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
500
525
  size={size as Size}
526
+ maxItemWidth={maxItemWidth}
501
527
  >
502
- {`Label${i + 1}`}
528
+ {`${labels[i % labels.length]} ${i + 1}`}
503
529
  </TabItem>
504
530
  );
505
531
  }
@@ -516,8 +542,9 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
516
542
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
517
543
  contentRight={getContentRight(contentRightOption, size as Size)}
518
544
  size={size as Size}
545
+ maxItemWidth={maxItemWidth}
519
546
  >
520
- {`Label${i + 1}`}
547
+ {`${labels[i % labels.length]} ${i + 1}`}
521
548
  </TabItem>
522
549
  );
523
550
  })}
@@ -534,6 +561,7 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
534
561
  tabIndex={!disabled ? 0 : -1}
535
562
  disabled={disabled}
536
563
  size={size as Size}
564
+ maxItemWidth="auto"
537
565
  >
538
566
  ShowAll
539
567
  </TabItem>
@@ -548,10 +576,11 @@ export const VerticalTabs: StoryObj<VerticalStoryTabsProps> = {
548
576
  size: 'xs',
549
577
  disabled: false,
550
578
  hasDivider: true,
551
- itemQuantity: 8,
579
+ itemQuantity: 6,
552
580
  orientation: 'vertical',
553
581
  helperText: '',
554
582
  height: '10rem',
583
+ maxItemWidth: '',
555
584
  },
556
585
  argTypes: {
557
586
  contentLeft: {
@@ -604,7 +633,7 @@ export const VerticalTabs: StoryObj<VerticalStoryTabsProps> = {
604
633
  };
605
634
 
606
635
  const StoryHeaderDefault = (props: HorizontalStoryTabsProps) => {
607
- const { disabled, itemQuantity, size, helperText } = props;
636
+ const { disabled, itemQuantity, size, helperText, maxItemWidth } = props;
608
637
  const items = Array(itemQuantity).fill(0);
609
638
  const [index, setIndex] = useState(0);
610
639
 
@@ -620,6 +649,7 @@ const StoryHeaderDefault = (props: HorizontalStoryTabsProps) => {
620
649
  disabled={disabled}
621
650
  value={helperText}
622
651
  size={size as HeaderSize}
652
+ maxItemWidth={maxItemWidth}
623
653
  >
624
654
  {`Label${i + 1}`}
625
655
  </TabItem>
@@ -629,7 +659,7 @@ const StoryHeaderDefault = (props: HorizontalStoryTabsProps) => {
629
659
  };
630
660
 
631
661
  const StoryHeaderScroll = (props: HorizontalStoryTabsProps) => {
632
- const { disabled, itemQuantity, size, helperText, width } = props;
662
+ const { disabled, itemQuantity, size, helperText, width, maxItemWidth } = props;
633
663
  const items = Array(itemQuantity).fill(0);
634
664
  const [index, setIndex] = useState(0);
635
665
 
@@ -645,8 +675,9 @@ const StoryHeaderScroll = (props: HorizontalStoryTabsProps) => {
645
675
  disabled={disabled}
646
676
  value={helperText}
647
677
  size={size as HeaderSize}
678
+ maxItemWidth={maxItemWidth}
648
679
  >
649
- {`Label${i + 1}`}
680
+ {`${labels[i % labels.length]} ${i + 1}`}
650
681
  </TabItem>
651
682
  ))}
652
683
  </Tabs>
@@ -658,8 +689,9 @@ export const HeaderTabs: StoryObj<HorizontalStoryTabsProps> = {
658
689
  size: 'h5',
659
690
  disabled: false,
660
691
  helperText: '',
661
- itemQuantity: 6,
692
+ itemQuantity: 4,
662
693
  width: '12rem',
694
+ maxItemWidth: '',
663
695
  },
664
696
  argTypes: {
665
697
  clip: {
@@ -34,6 +34,9 @@ var config = exports.config = {
34
34
  },
35
35
  pilled: {
36
36
  "true": /*#__PURE__*/(0, _styledComponents.css)(["", ":1.5rem;"], _Tabs.tabsTokens.itemPilledBorderRadius)
37
+ },
38
+ truncate: {
39
+ "true": /*#__PURE__*/(0, _styledComponents.css)([""])
37
40
  }
38
41
  }
39
42
  };
@@ -23,6 +23,9 @@ var config = exports.config = {
23
23
  },
24
24
  disabled: {
25
25
  "true": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.4;"], _Tabs.tabsTokens.disabledOpacity)
26
+ },
27
+ truncate: {
28
+ "true": /*#__PURE__*/(0, _styledComponents.css)([""])
26
29
  }
27
30
  }
28
31
  };
@@ -1,5 +1,5 @@
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
- var _excluded = ["children", "className", "style", "text", "contentLeft", "contentRight", "size", "view", "customColor", "customBackgroundColor", "pilled", "transparent", "clear"];
2
+ var _excluded = ["children", "className", "text", "contentLeft", "contentRight", "size", "view", "pilled", "transparent", "clear", "maxWidth"];
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
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
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; }
@@ -16,48 +16,43 @@ import { base as pilledCSS } from './variations/_pilled/base';
16
16
  import { base as transparentCSS } from './variations/_transparent/base';
17
17
  import { base as clearCSS } from './variations/_clear/base';
18
18
  import { StyledContentLeft, StyledContentMain, StyledContentRight, base } from './Badge.styles';
19
- import { classes, privateTokens } from './Badge.tokens';
19
+ import { classes } from './Badge.tokens';
20
20
  export var badgeRoot = function badgeRoot(Root) {
21
21
  return /*#__PURE__*/forwardRef(function (props, ref) {
22
- var _StyledContentLeft, _StyledContentMain, _StyledContentMain2, _StyledContentRight;
23
22
  var children = props.children,
24
23
  className = props.className,
25
- style = props.style,
26
24
  text = props.text,
27
25
  contentLeft = props.contentLeft,
28
26
  contentRight = props.contentRight,
29
27
  size = props.size,
30
28
  view = props.view,
31
- customColor = props.customColor,
32
- customBackgroundColor = props.customBackgroundColor,
33
29
  _props$pilled = props.pilled,
34
30
  pilled = _props$pilled === void 0 ? false : _props$pilled,
35
31
  _props$transparent = props.transparent,
36
32
  transparent = _props$transparent === void 0 ? false : _props$transparent,
37
33
  _props$clear = props.clear,
38
34
  clear = _props$clear === void 0 ? false : _props$clear,
35
+ _props$maxWidth = props.maxWidth,
36
+ maxWidth = _props$maxWidth === void 0 ? 'auto' : _props$maxWidth,
39
37
  rest = _objectWithoutProperties(props, _excluded);
40
38
  var pilledClass = pilled ? classes.badgePilled : undefined;
41
39
  var transparentClass = transparent ? classes.badgeTransparent : undefined;
42
40
  var clearClass = clear ? classes.badgeClear : undefined;
41
+ var truncateClass = maxWidth !== 'auto' ? classes.badgeTruncate : undefined;
43
42
  var txt = !text && typeof children === 'string' ? children : text;
44
- var iconOnlyClass = !txt && contentLeft ? classes.iconOnly : undefined;
45
- var BadgeContent = function BadgeContent() {
46
- if (contentLeft) {
47
- return /*#__PURE__*/React.createElement(React.Fragment, null, _StyledContentLeft || (_StyledContentLeft = /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft)), txt ? _StyledContentMain || (_StyledContentMain = /*#__PURE__*/React.createElement(StyledContentMain, null, txt)) : children);
48
- }
49
- return /*#__PURE__*/React.createElement(React.Fragment, null, txt ? _StyledContentMain2 || (_StyledContentMain2 = /*#__PURE__*/React.createElement(StyledContentMain, null, txt)) : children, contentRight && (_StyledContentRight || (_StyledContentRight = /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight))));
50
- };
51
43
  return /*#__PURE__*/React.createElement(Root, _extends({
52
44
  ref: ref,
53
- className: cx(pilledClass, transparentClass, clearClass, iconOnlyClass, className),
45
+ className: cx(pilledClass, transparentClass, clearClass, truncateClass, className),
54
46
  view: view,
55
47
  size: size,
56
48
  pilled: pilled,
57
49
  transparent: transparent,
58
- clear: clear,
59
- style: _objectSpread(_objectSpread({}, style), {}, _defineProperty(_defineProperty({}, privateTokens.customBackground, customBackgroundColor), privateTokens.customColor, customColor))
60
- }, rest), /*#__PURE__*/React.createElement(BadgeContent, null));
50
+ clear: clear
51
+ }, rest, {
52
+ style: _objectSpread(_objectSpread({}, rest.style), {}, {
53
+ maxWidth: maxWidth
54
+ })
55
+ }), contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), txt ? /*#__PURE__*/React.createElement(StyledContentMain, null, txt) : children, contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight));
61
56
  });
62
57
  };
63
58
  export var badgeConfig = {
@@ -1,7 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  import { css } from 'styled-components';
3
- import { tokens } from './Badge.tokens';
4
- export var base = /*#__PURE__*/css(["display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;width:max-content;"]);
3
+ import { classes, tokens } from './Badge.tokens';
5
4
  export var StyledContentLeft = /*#__PURE__*/styled.div.withConfig({
6
5
  componentId: "plasma-new-hope__sc-naxmb2-0"
7
6
  })(["display:flex;margin-left:var(", ");margin-right:var(", ");"], tokens.leftContentMarginLeft, tokens.leftContentMarginRight);
@@ -10,4 +9,5 @@ export var StyledContentMain = /*#__PURE__*/styled.span.withConfig({
10
9
  })([""]);
11
10
  export var StyledContentRight = /*#__PURE__*/styled.div.withConfig({
12
11
  componentId: "plasma-new-hope__sc-naxmb2-2"
13
- })(["display:flex;margin-left:var(", ");margin-right:var(", ");"], tokens.rightContentMarginLeft, tokens.rightContentMarginRight);
12
+ })(["display:flex;margin-left:var(", ");margin-right:var(", ");"], tokens.rightContentMarginLeft, tokens.rightContentMarginRight);
13
+ export var base = /*#__PURE__*/css(["display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;width:max-content;&.", "{max-width:100%;", "{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}"], classes.badgeTruncate, StyledContentMain);
@@ -2,11 +2,7 @@ export var classes = {
2
2
  badgePilled: 'badge-pilled',
3
3
  badgeTransparent: 'badge-transparent',
4
4
  badgeClear: 'badge-clear',
5
- iconOnly: 'badge-icon-only'
6
- };
7
- export var privateTokens = {
8
- customBackground: '--plasma-badge-custom-background',
9
- customColor: '--plasma-badge-custom-color'
5
+ badgeTruncate: 'badge-truncate'
10
6
  };
11
7
  export var tokens = {
12
8
  background: '--plasma-badge-background',
@@ -14,12 +10,13 @@ export var tokens = {
14
10
  backgroundTransparent: '--plasma-badge-background-transparent',
15
11
  colorTransparent: '--plasma-badge-color-transparent',
16
12
  colorClear: '--plasma-badge-color-clear',
17
- backgroundClear: '--plasma-badge-background-clear',
18
13
  borderRadius: '--plasma-badge-border-radius',
19
14
  pilledBorderRadius: '--plasma-badge-pilled-border-radius',
20
15
  height: '--plasma-badge-height',
21
- padding: '--plasma-badge-padding',
22
- paddingIconOnly: '--plasma-badge-padding-icon-only',
16
+ paddingTop: '--plasma-badge-padding-top',
17
+ paddingRight: '--plasma-badge-padding-right',
18
+ paddingBottom: '--plasma-badge-padding-bottom',
19
+ paddingLeft: '--plasma-badge-padding-left',
23
20
  fontFamily: '--plasma-badge-font-family',
24
21
  fontSize: '--plasma-badge-font-size',
25
22
  fontStyle: '--plasma-badge-font-style',
@@ -1,3 +1,3 @@
1
1
  import { css } from 'styled-components';
2
- import { classes, privateTokens, tokens } from '../../Badge.tokens';
3
- export var base = /*#__PURE__*/css(["&.", "{color:var(", ",var(", "));background-color:var(", ",var(", "));}"], classes.badgeClear, privateTokens.customColor, tokens.colorClear, privateTokens.customBackground, tokens.backgroundClear);
2
+ import { classes, tokens } from '../../Badge.tokens';
3
+ export var base = /*#__PURE__*/css(["&.", "{color:var(", ");background-color:transparent;padding:0;}"], classes.badgeClear, tokens.colorClear);
@@ -1,4 +1,3 @@
1
1
  import { css } from 'styled-components';
2
- import { classes, tokens } from '../../Badge.tokens';
3
- import { StyledContentLeft } from '../../Badge.styles';
4
- export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");border-radius:var(", ");height:var(", ");padding:var(", ");&.", "{padding:var(", ");", "{margin:0;}}"], tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.borderRadius, tokens.height, tokens.padding, classes.iconOnly, tokens.paddingIconOnly, StyledContentLeft);
2
+ import { tokens } from '../../Badge.tokens';
3
+ export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");border-radius:var(", ");height:var(", ");padding-top:var(", ");padding-right:var(", ");padding-bottom:var(", ");padding-left:var(", ");"], tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.borderRadius, tokens.height, tokens.paddingTop, tokens.paddingRight, tokens.paddingBottom, tokens.paddingLeft);
@@ -1,3 +1,3 @@
1
1
  import { css } from 'styled-components';
2
- import { classes, privateTokens, tokens } from '../../Badge.tokens';
3
- export var base = /*#__PURE__*/css(["&.", "{color:var(", ",var(", "));background-color:var(", ",var(", "));}"], classes.badgeTransparent, privateTokens.customColor, tokens.colorTransparent, privateTokens.customBackground, tokens.backgroundTransparent);
2
+ import { classes, tokens } from '../../Badge.tokens';
3
+ export var base = /*#__PURE__*/css(["&.", "{color:var(", ");background-color:var(", ");}"], classes.badgeTransparent, tokens.colorTransparent, tokens.backgroundTransparent);
@@ -1,3 +1,3 @@
1
1
  import { css } from 'styled-components';
2
- import { privateTokens, tokens } from '../../Badge.tokens';
3
- export var base = /*#__PURE__*/css(["color:var(", ",var(", "));background-color:var(", ",var(", "));"], privateTokens.customColor, tokens.color, privateTokens.customBackground, tokens.background);
2
+ import { tokens } from '../../Badge.tokens';
3
+ export var base = /*#__PURE__*/css(["color:var(", ");background-color:var(", ");"], tokens.color, tokens.background);
@@ -1,6 +1,8 @@
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; }
4
6
  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; }
5
7
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
8
  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); }
@@ -12,7 +14,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
12
14
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
15
  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; }
14
16
  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; }
15
- import React, { forwardRef, useState, useEffect } from 'react';
17
+ import React, { forwardRef, useState, useEffect, useMemo } from 'react';
16
18
  import cls from 'classnames';
17
19
  import { classes } from './Steps.tokens';
18
20
  import { StepItem } from './ui';
@@ -44,19 +46,33 @@ export var stepsRoot = function stepsRoot(Root) {
44
46
  _useState2 = _slicedToArray(_useState, 2),
45
47
  prevIndex = _useState2[0],
46
48
  setPrevIndex = _useState2[1];
47
- var isUncontrolled = current !== undefined;
48
49
  var hasIndicator = items.some(function (item) {
49
50
  return item.indicator != null;
50
51
  });
51
52
  var isSimple = items.every(function (item) {
52
53
  return !item.title && !item.content;
53
54
  });
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]);
54
70
  useEffect(function () {
55
71
  var calcPrevIndex = function calcPrevIndex() {
56
72
  if (current !== undefined) {
57
73
  setPrevIndex(current);
58
74
  } else {
59
- var index = items.findIndex(function (item) {
75
+ var index = innerItems.findIndex(function (item) {
60
76
  return item.status === 'active';
61
77
  });
62
78
  setPrevIndex(index !== -1 ? index : undefined);
@@ -66,21 +82,14 @@ export var stepsRoot = function stepsRoot(Root) {
66
82
  return function () {
67
83
  calcPrevIndex();
68
84
  };
69
- }, [current, items]);
85
+ }, [current, innerItems]);
70
86
  return /*#__PURE__*/React.createElement(Root, _extends({
71
87
  size: size,
72
88
  view: view,
73
89
  ref: outerRef,
74
90
  className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, orientation === 'vertical'), classes.simple, isSimple), classes.hasIndicator, hasIndicator))
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';
91
+ }, rest), innerItems.map(function (item, index) {
92
+ var isActive = item.status === 'active';
84
93
  var itemContent = hasContent === 'active' && !isActive || hasContent === 'none' ? '' : item.content;
85
94
  var itemContentAlign = orientation === 'horizontal' ? contentAlign : 'left';
86
95
  var onClick = onChange ? function () {
@@ -92,14 +101,14 @@ export var stepsRoot = function stepsRoot(Root) {
92
101
  title: item.title,
93
102
  content: itemContent,
94
103
  indicator: item.indicator,
95
- status: itemStatus,
104
+ status: item.status,
96
105
  size: size,
97
106
  orientation: orientation,
98
107
  contentAlign: itemContentAlign,
99
108
  hasLine: hasLine,
100
109
  hasLoader: hasLoader && isActive,
101
110
  onClick: onClick,
102
- items: items
111
+ items: innerItems
103
112
  });
104
113
  }));
105
114
  });
@@ -1,3 +1,3 @@
1
1
  import { css } from 'styled-components';
2
2
  import { classes, tokens } from './Steps.tokens';
3
- export var base = /*#__PURE__*/css(["display:flex;flex-direction:row;&.", "{align-items:center;&:not(&.", "){&.", "{height:var(", ");}&:not(.", "){height:var(", ");}}&.", "{&.", "{width:var(", ");}&:not(.", "){width:var(", ");}}}&.", "{display:flex;flex-direction:column;justify-content:center;height:100%;&.", "{display:inline-flex;}}"], classes.simple, classes.verticalOrientation, classes.hasIndicator, tokens.activeIndicatorSize, classes.hasIndicator, tokens.activeBulletSize, classes.verticalOrientation, classes.hasIndicator, tokens.activeIndicatorSize, classes.hasIndicator, tokens.activeBulletSize, classes.verticalOrientation, classes.simple);
3
+ export var base = /*#__PURE__*/css(["display:flex;flex-direction:row;&.", "{align-items:center;&:not(&.", "){&.", "{height:var(", ");}&:not(.", "){height:var(", ");}}&.", "{&.", "{width:var(", ");}&:not(.", "){width:var(", ");}}}&.", "{display:flex;flex-direction:column;justify-content:center;height:100%;}"], classes.simple, classes.verticalOrientation, classes.hasIndicator, tokens.activeIndicatorSize, classes.hasIndicator, tokens.activeBulletSize, classes.verticalOrientation, classes.hasIndicator, tokens.activeIndicatorSize, classes.hasIndicator, tokens.activeBulletSize, classes.verticalOrientation);
@@ -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',