@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
@@ -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
  };
@@ -2,6 +2,7 @@ import styled from 'styled-components';
2
2
  import { classes, tokens } from '../../Steps.tokens';
3
3
  import { component, mergeConfig } from '../../../../engines';
4
4
  import { spinnerConfig, spinnerTokens } from '../../../Spinner';
5
+ import { addFocus } from '../../../../mixins';
5
6
  var mergedConfig = /*#__PURE__*/mergeConfig(spinnerConfig);
6
7
  var Spinner = /*#__PURE__*/component(mergedConfig);
7
8
  export var SpinnerStyled = /*#__PURE__*/styled(Spinner).withConfig({
@@ -18,16 +19,26 @@ export var StepItemContent = /*#__PURE__*/styled.div.withConfig({
18
19
  })(["padding-top:var(", ");padding-right:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");word-break:break-word;color:var(", ");"], tokens.contentPaddingTop, tokens.contentSidePadding, tokens.contentFontFamily, tokens.contentFontSize, tokens.contentFontStyle, tokens.contentFontWeight, tokens.contentLetterSpacing, tokens.contentLineHeight, tokens.contentColor);
19
20
  export var BulletIndicatorWrapper = /*#__PURE__*/styled.div.withConfig({
20
21
  componentId: "plasma-new-hope__sc-bjma6z-3"
21
- })(["display:flex;align-items:center;&:not(.", "){flex:0;&.", "{width:100%;min-height:var(", ");}&:not(.", "){width:100%;min-height:var(", ");}&.", "{padding-right:var(", ");}}&.", "{flex-direction:column;align-items:center;justify-content:center;min-height:100%;&.", "{min-width:var(", ");}&:not(.", "){min-width:var(", ");}}&.", "{justify-content:center;}"], classes.simple, classes.hasIndicator, tokens.activeIndicatorSize, classes.hasIndicator, tokens.activeBulletSize, classes.verticalOrientation, tokens.verticalContentPaddingLeft, classes.verticalOrientation, classes.hasIndicator, tokens.activeIndicatorSize, classes.hasIndicator, tokens.activeBulletSize, classes.centered);
22
- export var BulletIndicator = /*#__PURE__*/styled.div.withConfig({
22
+ })(["display:flex;align-items:center;&:not(.", "){flex:0;&.", "{width:100%;min-height:var(", ");}&:not(.", "){width:100%;min-height:var(", ");}&.", "{padding-right:var(", ");}}&.", "{flex:0;justify-content:center;&.", "{width:var(", ");}&:not(.", "){width:var(", ");}}&.", "{flex-direction:column;align-items:center;justify-content:center;&.", "{min-width:var(", ");}&:not(.", "){min-width:var(", ");}}&.", "{justify-content:center;}"], classes.simple, classes.hasIndicator, tokens.activeIndicatorSize, classes.hasIndicator, tokens.activeBulletSize, classes.verticalOrientation, tokens.verticalContentPaddingLeft, classes.simple, classes.hasIndicator, tokens.activeIndicatorSize, classes.hasIndicator, tokens.activeBulletSize, classes.verticalOrientation, classes.hasIndicator, tokens.activeIndicatorSize, classes.hasIndicator, tokens.activeBulletSize, classes.centered);
23
+ export var BulletIndicator = /*#__PURE__*/styled.button.withConfig({
23
24
  componentId: "plasma-new-hope__sc-bjma6z-4"
24
- })(["display:flex;align-items:center;justify-content:center;width:var(", ");height:var(", ");border-radius:50%;box-sizing:border-box;position:relative;color:var(", ");background-color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");&.", "{width:var(", ");height:var(", ");border:var(", ") var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");color:var(", ");background:var(", ");}&.", "{color:var(", ");background:var(", ");&:before,&:after{background:var(", ");}}"], tokens.indicatorSize, tokens.indicatorSize, tokens.completedIndicatorColor, tokens.completedIndicatorBackground, tokens.indicatorFontFamily, tokens.indicatorFontSize, tokens.indicatorFontStyle, tokens.indicatorFontWeight, tokens.indicatorLetterSpacing, tokens.indicatorLineHeight, classes.active, tokens.activeIndicatorSize, tokens.activeIndicatorSize, tokens.dividerThickness, tokens.activeIndicatorBorder, tokens.activeIndicatorFontFamily, tokens.activeIndicatorFontSize, tokens.activeIndicatorFontStyle, tokens.activeIndicatorFontWeight, tokens.activeIndicatorLetterSpacing, tokens.activeIndicatorLineHeight, tokens.activeIndicatorColor, tokens.activeIndicatorBackground, classes.inactive, tokens.inactiveIndicatorColor, tokens.inactiveIndicatorBackground, tokens.inactiveIndicatorBackground);
25
+ })(["display:flex;align-items:center;justify-content:center;width:var(", ");height:var(", ");border-radius:50%;box-sizing:border-box;position:relative;outline:none;padding:0;margin:0;border:none;color:var(", ");background-color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");", " &.", "{width:var(", ");height:var(", ");border:var(", ") var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");color:var(", ");background:var(", ");", "}&.", "{color:var(", ");background:var(", ");&.", "{&:before,&:after{background:var(", ");}}}"], tokens.indicatorSize, tokens.indicatorSize, tokens.completedIndicatorColor, tokens.completedIndicatorBackground, tokens.indicatorFontFamily, tokens.indicatorFontSize, tokens.indicatorFontStyle, tokens.indicatorFontWeight, tokens.indicatorLetterSpacing, tokens.indicatorLineHeight, /*#__PURE__*/addFocus({
26
+ outlineOffset: '-0.0625rem',
27
+ outlineSize: '0.0625rem',
28
+ outlineRadius: '50%',
29
+ outlineColor: /*#__PURE__*/"var(".concat(tokens.focusColor, ")")
30
+ }), classes.active, tokens.activeIndicatorSize, tokens.activeIndicatorSize, tokens.dividerThickness, tokens.activeIndicatorBorder, tokens.activeIndicatorFontFamily, tokens.activeIndicatorFontSize, tokens.activeIndicatorFontStyle, tokens.activeIndicatorFontWeight, tokens.activeIndicatorLetterSpacing, tokens.activeIndicatorLineHeight, tokens.activeIndicatorColor, tokens.activeIndicatorBackground, /*#__PURE__*/addFocus({
31
+ outlineOffset: '-0.1875rem',
32
+ outlineSize: '0.0625rem',
33
+ outlineRadius: '50%',
34
+ outlineColor: /*#__PURE__*/"var(".concat(tokens.focusColor, ")")
35
+ }), classes.inactive, tokens.inactiveIndicatorColor, tokens.inactiveIndicatorBackground, classes.simple, tokens.inactiveIndicatorBackground);
25
36
  export var Bullet = /*#__PURE__*/styled(BulletIndicator).withConfig({
26
37
  componentId: "plasma-new-hope__sc-bjma6z-5"
27
- })(["width:var(", ");height:var(", ");&.", "{width:var(", ");height:var(", ");border:var(", ") var(", ");background-color:var(", ");}"], tokens.bulletSize, tokens.bulletSize, classes.active, tokens.activeBulletSize, tokens.activeBulletSize, tokens.dividerThickness, tokens.activeIndicatorBorder, tokens.activeIndicatorBackground);
38
+ })(["width:var(", ");height:var(", ");&.", "{width:var(", ");height:var(", ");border:var(", ") var(", ");background:var(", ");}"], tokens.bulletSize, tokens.bulletSize, classes.active, tokens.activeBulletSize, tokens.activeBulletSize, tokens.dividerThickness, tokens.activeIndicatorBorder, tokens.activeIndicatorBackground);
28
39
  export var StepItemDivider = /*#__PURE__*/styled.div.withConfig({
29
40
  componentId: "plasma-new-hope__sc-bjma6z-6"
30
- })(["width:100%;height:var(", ");flex:1;background-color:var(", ");&.", "{background-color:var(", ");}&.", "{background-color:transparent;}&.", "{width:var(", ");height:100%;}&.", "{height:", ";min-height:", ";max-height:", ";&.", "{height:auto;max-height:none;}}"], tokens.dividerThickness, tokens.activeIndicatorColor, classes.inactive, tokens.inactiveIndicatorBackground, classes.transparentDivider, classes.verticalOrientation, tokens.dividerThickness, classes.indentDivider, function (_ref2) {
41
+ })(["width:100%;height:var(", ");flex:1;background:var(", ");&.", "{background:var(", ");}&.", "{background:transparent;}&.", "{width:var(", ");height:100%;}&.", "{height:", ";min-height:", ";max-height:", ";&.", "{height:auto;max-height:none;}}"], tokens.dividerThickness, tokens.activeIndicatorColor, classes.inactive, tokens.inactiveIndicatorBackground, classes.transparentDivider, classes.verticalOrientation, tokens.dividerThickness, classes.indentDivider, function (_ref2) {
31
42
  var indentToken = _ref2.indentToken;
32
43
  return indentToken || '';
33
44
  }, function (_ref3) {
@@ -42,4 +53,4 @@ export var StepItemContentWrapper = /*#__PURE__*/styled.div.withConfig({
42
53
  })(["&.", "{", "{padding-top:var(", ");padding-right:0;}", "{padding-top:var(", ");padding-bottom:var(", ");padding-right:0;}}"], classes.verticalOrientation, StepItemTitle, tokens.contentVerticalPadding, StepItemContent, tokens.contentVerticalPadding, tokens.contentVerticalPadding);
43
54
  export var StepItemStyled = /*#__PURE__*/styled.div.withConfig({
44
55
  componentId: "plasma-new-hope__sc-bjma6z-8"
45
- })(["display:flex;flex-direction:column;align-items:flex-start;flex:1;&.", "{flex-direction:row;align-items:stretch;", "{width:var(", ");height:100%;}}&.", "{", "{color:var(", ");}}&.", "{", "{color:var(", ");}}&.", "{&:not(.", "){", "{cursor:pointer;color:var(", ");}", ",", "{color:var(", ");background:var(", ");}}&.", "{", "{color:var(", ");}", ",", "{color:var(", ");background:var(", ");}}", "{cursor:pointer;}}&.", "{align-items:center;", "{display:flex;flex-direction:column;align-items:center;padding-left:calc(var(", ") / 2);padding-right:calc(var(", ") / 2);", "{width:100%;}", ",", "{padding-right:0;text-align:center;}}}&.", "{flex:0;}&.", "{opacity:var(", ");}"], classes.verticalOrientation, StepItemDivider, tokens.dividerThickness, classes.active, StepItemTitle, tokens.activeTitleColor, classes.inactive, StepItemTitle, tokens.inactiveTitleColor, classes.hovered, classes.active, StepItemTitle, tokens.activeTitleColorHover, BulletIndicator, Bullet, tokens.completedIndicatorColorHover, tokens.completedIndicatorBackgroundHover, classes.inactive, StepItemTitle, tokens.inactiveTitleColorHover, BulletIndicator, Bullet, tokens.inactiveIndicatorColorHover, tokens.inactiveIndicatorBackgroundHover, BulletIndicatorWrapper, classes.centered, StepItemContentWrapper, tokens.contentSidePadding, tokens.contentSidePadding, StepItemTitle, StepItemTitle, StepItemContent, classes.simple, classes.disabled, tokens.disabledOpacity);
56
+ })(["position:relative;display:flex;flex-direction:column;align-items:flex-start;flex:1;color:var(", ");&.", "{flex-direction:row;align-items:stretch;", "{width:var(", ");height:100%;}}&.", "{", "{color:var(", ");}}&.", "{color:var(", ");", "{color:var(", ");}}&.", "{flex:0;align-items:center;justify-content:center;flex-direction:row;height:100%;&.", "{min-width:var(", ");min-height:var(", ");}&:not(.", "){width:var(", ");min-height:var(", ");}&.", ",&:not(.", "){&:before,&:after{content:'';display:block;width:calc((var(", ") - var(", ")) / 2);height:var(", ");background:var(", ");}&:not(.", "){&:before,&:after{width:calc((var(", ") - var(", ")) / 2);}}&.", "{flex-direction:column;&:before,&:after{width:var(", ");height:calc((var(", ") - var(", ")) / 2);margin:0 auto;align-self:auto;}&:not(.", "){&:before,&:after{height:calc((var(", ") - var(", ")) / 2);}}&:after{margin:0 auto;}}&.isFirst{&:before{background:transparent;}}&.isLast{&:after{background:transparent;}}}&.", "{&:after,&:before{background:var(", ");}}&.isPrevInactive{&:before{background:var(", ");}}&.isNextInactive{&:after{background:var(", ");}}}&:not(.", "):not(.", "){&.isNextActive{", "{width:calc(100% - (var(", ") - var(", ")) / 2);}}&.", "{", "{margin-left:calc((var(", ") - var(", ")) / -2);width:calc(100% + (var(", ") - var(", ")) / 2);}}}&.", "{&:not(.", "){", "{cursor:pointer;color:var(", ");}", ",", "{color:var(", ");background:var(", ");}}&.", "{", "{color:var(", ");}", ",", "{color:var(", ");background:var(", ");}}", "{cursor:pointer;}}&.", "{align-items:center;", "{display:flex;flex-direction:column;align-items:center;padding-left:calc(var(", ") / 2);padding-right:calc(var(", ") / 2);", "{width:100%;}", ",", "{padding-right:0;text-align:center;}}}&.", "{opacity:var(", ");}"], tokens.activeIndicatorColor, classes.verticalOrientation, StepItemDivider, tokens.dividerThickness, classes.active, StepItemTitle, tokens.activeTitleColor, classes.inactive, tokens.inactiveIndicatorColor, StepItemTitle, tokens.inactiveTitleColor, classes.simple, classes.hasIndicator, tokens.activeIndicatorSize, tokens.activeIndicatorSize, classes.hasIndicator, tokens.activeBulletSize, tokens.activeBulletSize, classes.inactive, classes.active, tokens.activeIndicatorSize, tokens.indicatorSize, tokens.dividerThickness, tokens.activeIndicatorColor, classes.hasIndicator, tokens.activeBulletSize, tokens.bulletSize, classes.verticalOrientation, tokens.dividerThickness, tokens.activeIndicatorSize, tokens.indicatorSize, classes.hasIndicator, tokens.activeBulletSize, tokens.bulletSize, classes.inactive, tokens.inactiveIndicatorBackground, tokens.inactiveIndicatorBackground, tokens.inactiveIndicatorBackground, classes.simple, classes.verticalOrientation, BulletIndicatorWrapper, tokens.activeIndicatorSize, tokens.indicatorSize, classes.active, BulletIndicatorWrapper, tokens.activeIndicatorSize, tokens.indicatorSize, tokens.activeIndicatorSize, tokens.indicatorSize, classes.hovered, classes.active, StepItemTitle, tokens.activeTitleColorHover, BulletIndicator, Bullet, tokens.completedIndicatorColorHover, tokens.completedIndicatorBackgroundHover, classes.inactive, StepItemTitle, tokens.inactiveTitleColorHover, BulletIndicator, Bullet, tokens.inactiveIndicatorColorHover, tokens.inactiveIndicatorBackgroundHover, BulletIndicatorWrapper, classes.centered, StepItemContentWrapper, tokens.contentSidePadding, tokens.contentSidePadding, StepItemTitle, StepItemTitle, StepItemContent, classes.disabled, tokens.disabledOpacity);
@@ -14,7 +14,8 @@ export var classes = {
14
14
  tabsHasTopArrow: 'tabs-has-top-arrow',
15
15
  tabsHasBottomArrow: 'tabs-has-bottom-arrow',
16
16
  tabsClipScroll: 'tabs-clip-scroll',
17
- tabsClipShowAll: 'tabs-clip-show-all'
17
+ tabsClipShowAll: 'tabs-clip-show-all',
18
+ tabsTruncate: 'tabs-truncate'
18
19
  };
19
20
  export var tokens = {
20
21
  disabledOpacity: '--plasma-tabs-disabled-opacity',
@@ -1,5 +1,11 @@
1
- var _excluded = ["size", "view", "isActive", "selected", "disabled", "pilled", "children", "value", "contentLeft", "contentRight", "animated", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick"];
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 = ["size", "view", "isActive", "selected", "disabled", "pilled", "children", "value", "contentLeft", "contentRight", "animated", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick", "maxItemWidth"];
2
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
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); }
3
9
  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; }
4
10
  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; }
5
11
  import React, { forwardRef, useRef, useContext, useEffect, useCallback } from 'react';
@@ -33,6 +39,8 @@ export var horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
33
39
  tabIndex = props.tabIndex,
34
40
  className = props.className,
35
41
  onClick = props.onClick,
42
+ _props$maxItemWidth = props.maxItemWidth,
43
+ maxWidth = _props$maxItemWidth === void 0 ? 'auto' : _props$maxItemWidth,
36
44
  rest = _objectWithoutProperties(props, _excluded);
37
45
  var innerRef = useRef(null);
38
46
  var ref = useForkRef(outerRef, innerRef);
@@ -42,6 +50,7 @@ export var horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
42
50
  var animatedClass = animated ? classes.tabItemAnimated : undefined;
43
51
  var pilledClass = pilledAttr ? classes.tabsPilled : undefined;
44
52
  var selectedClass = isActive || selected ? classes.selectedTabsItem : undefined;
53
+ var truncateClass = maxWidth !== 'auto' ? classes.tabsTruncate : undefined;
45
54
  var hasKeyNavigation = itemIndex !== undefined && onIndexChange !== undefined;
46
55
  var navigationTabIndex = !disabled && (refs === null || refs === void 0 ? void 0 : refs.current) === itemIndex ? 0 : -1;
47
56
  useEffect(function () {
@@ -98,9 +107,13 @@ export var horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
98
107
  size: size,
99
108
  onFocus: onItemFocus,
100
109
  tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
101
- className: cx(pilledClass, selectedClass, animatedClass, className),
110
+ className: cx(pilledClass, selectedClass, animatedClass, truncateClass, className),
102
111
  onClick: handleClick
103
- }, rest), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
112
+ }, rest, {
113
+ style: _objectSpread(_objectSpread({}, rest.style), {}, {
114
+ maxWidth: maxWidth
115
+ })
116
+ }), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
104
117
  className: classes.tabLeftContent
105
118
  }, contentLeft), /*#__PURE__*/React.createElement(StyledContent, {
106
119
  className: classes.tabContent
@@ -1,14 +1,7 @@
1
1
  import styled from 'styled-components';
2
2
  import { css } from 'styled-components';
3
3
  import { addFocus } from '../../../../../mixins';
4
- import { tokens } from '../../../tokens';
5
- export var base = /*#__PURE__*/css(["position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;align-items:center;gap:var(", ");padding:var(", ",var(", "));appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;&:first-child{margin-left:0;}", ";"], tokens.itemContentGap, tokens.itemPaddingClear, tokens.itemPadding, /*#__PURE__*/addFocus({
6
- outlineSize: '0.063rem',
7
- outlineOffset: '-0.125rem',
8
- outlineColor: /*#__PURE__*/"var(".concat(tokens.outlineFocusColor, ")"),
9
- outlineRadius: 'calc(var(--plasma_private-outline-radius) + 0.063rem)',
10
- customFocusRules: /*#__PURE__*/"\n &.focus-visible:focus,\n &[data-focus-visible-added] {\n &::before {\n z-index: 1;\n outline: none;\n box-shadow: 0 0 0 0.063rem var(".concat(tokens.outlineFocusColor, ");\n }\n }\n ")
11
- }));
4
+ import { classes, tokens } from '../../../tokens';
12
5
  export var StyledContent = /*#__PURE__*/styled.div.withConfig({
13
6
  componentId: "plasma-new-hope__sc-lremls-0"
14
7
  })(["display:inline-block;width:fit-content;padding:0 var(", ",var(", "));"], tokens.itemContentPaddingClear, tokens.itemContentPadding);
@@ -20,4 +13,11 @@ export var RightContent = /*#__PURE__*/styled.div.withConfig({
20
13
  })(["display:flex;color:inherit;&:hover{color:inherit;}"]);
21
14
  export var LeftContent = /*#__PURE__*/styled.div.withConfig({
22
15
  componentId: "plasma-new-hope__sc-lremls-3"
23
- })(["display:flex;color:inherit;&:hover{color:inherit;}"]);
16
+ })(["display:flex;color:inherit;&:hover{color:inherit;}"]);
17
+ export var base = /*#__PURE__*/css(["position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;align-items:center;white-space:nowrap;gap:var(", ");padding:var(", ",var(", "));appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;&:first-child{margin-left:0;}", ";&.", "{", "{overflow:hidden;text-overflow:ellipsis;}", "{overflow:hidden;text-overflow:ellipsis;}}"], tokens.itemContentGap, tokens.itemPaddingClear, tokens.itemPadding, /*#__PURE__*/addFocus({
18
+ outlineSize: '0.063rem',
19
+ outlineOffset: '-0.125rem',
20
+ outlineColor: /*#__PURE__*/"var(".concat(tokens.outlineFocusColor, ")"),
21
+ outlineRadius: 'calc(var(--plasma_private-outline-radius) + 0.063rem)',
22
+ customFocusRules: /*#__PURE__*/"\n &.focus-visible:focus,\n &[data-focus-visible-added] {\n &::before {\n z-index: 1;\n outline: none;\n box-shadow: 0 0 0 0.063rem var(".concat(tokens.outlineFocusColor, ");\n }\n }\n ")
23
+ }), classes.tabsTruncate, StyledContent, TabItemValue);
@@ -1,5 +1,11 @@
1
- var _excluded = ["size", "view", "selected", "disabled", "children", "value", "contentLeft", "contentRight", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick"];
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 = ["size", "view", "selected", "disabled", "children", "value", "contentLeft", "contentRight", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick", "maxItemWidth"];
2
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
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); }
3
9
  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; }
4
10
  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; }
5
11
  import React, { forwardRef, useRef, useContext, useEffect, useCallback } from 'react';
@@ -27,12 +33,15 @@ export var verticalTabItemRoot = function verticalTabItemRoot(Root) {
27
33
  tabIndex = props.tabIndex,
28
34
  className = props.className,
29
35
  onClick = props.onClick,
36
+ _props$maxItemWidth = props.maxItemWidth,
37
+ maxWidth = _props$maxItemWidth === void 0 ? 'auto' : _props$maxItemWidth,
30
38
  rest = _objectWithoutProperties(props, _excluded);
31
39
  var innerRef = useRef(null);
32
40
  var ref = useForkRef(outerRef, innerRef);
33
41
  var refs = useContext(TabsContext);
34
42
  var role = 'tab';
35
43
  var selectedClass = selected ? classes.selectedTabsItem : undefined;
44
+ var truncateClass = maxWidth !== 'auto' ? classes.tabsTruncate : undefined;
36
45
  var hasKeyNavigation = itemIndex !== undefined && onIndexChange !== undefined;
37
46
  var navigationTabIndex = !disabled && (refs === null || refs === void 0 ? void 0 : refs.current) === itemIndex ? 0 : -1;
38
47
  useEffect(function () {
@@ -85,9 +94,13 @@ export var verticalTabItemRoot = function verticalTabItemRoot(Root) {
85
94
  size: size,
86
95
  onFocus: onItemFocus,
87
96
  tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
88
- className: cx(selectedClass, className),
97
+ className: cx(selectedClass, truncateClass, className),
89
98
  onClick: handleClick
90
- }, rest), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
99
+ }, rest, {
100
+ style: _objectSpread(_objectSpread({}, rest.style), {}, {
101
+ maxWidth: maxWidth
102
+ })
103
+ }), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
91
104
  className: classes.tabLeftContent
92
105
  }, contentLeft), /*#__PURE__*/React.createElement(StyledContent, {
93
106
  className: classes.tabContent
@@ -3,23 +3,23 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
3
3
  import { css } from 'styled-components';
4
4
  import styled from 'styled-components';
5
5
  import { addFocus } from '../../../../../mixins';
6
- import { tokens } from '../../../tokens';
7
- export var base = /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n box-sizing: border-box;\n align-items: center;\n\n gap: var(", ");\n padding: var(", ");\n\n appearance: none;\n border: none;\n outline: none;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n ", ";\n"])), tokens.itemContentGap, tokens.itemPaddingOrientationVertical, /*#__PURE__*/addFocus({
8
- outlineSize: '0.063rem',
9
- outlineOffset: '-0.125rem',
10
- outlineColor: /*#__PURE__*/"var(".concat(tokens.outlineFocusColor, ")"),
11
- outlineRadius: 'calc(var(--plasma_private-outline-radius) + 0.063rem)',
12
- customFocusRules: /*#__PURE__*/"\n &.focus-visible:focus,\n &[data-focus-visible-added] {\n &::before {\n z-index: 1;\n outline: none;\n box-shadow: 0 0 0 0.063rem var(".concat(tokens.outlineFocusColor, ");\n }\n }\n ")
13
- }));
6
+ import { classes, tokens } from '../../../tokens';
14
7
  export var StyledContent = /*#__PURE__*/styled.div.withConfig({
15
8
  componentId: "plasma-new-hope__sc-1pflgj8-0"
16
9
  })(["display:inline-block;width:fit-content;padding:0 var(", ",var(", "));"], tokens.itemContentPaddingClear, tokens.itemContentPadding);
17
10
  export var TabItemValue = /*#__PURE__*/styled.span.withConfig({
18
11
  componentId: "plasma-new-hope__sc-1pflgj8-1"
19
- })(["color:var(", ");font-family:var(", ",var(", "));font-size:var(", ",var(", "));font-style:var(", ",var(", "));font-weight:var(", ",var(", "));letter-spacing:var(", ",var(", "));line-height:var(", ",var(", "));"], tokens.itemValueColor, tokens.valueFontFamily, tokens.fontFamily, tokens.valueFontSize, tokens.fontSize, tokens.valueFontStyle, tokens.fontStyle, tokens.valueFontWeight, tokens.fontWeight, tokens.valueLetterSpacing, tokens.letterSpacing, tokens.valueLineHeight, tokens.lineHeight);
12
+ })(["white-space:nowrap;color:var(", ");font-family:var(", ",var(", "));font-size:var(", ",var(", "));font-style:var(", ",var(", "));font-weight:var(", ",var(", "));letter-spacing:var(", ",var(", "));line-height:var(", ",var(", "));"], tokens.itemValueColor, tokens.valueFontFamily, tokens.fontFamily, tokens.valueFontSize, tokens.fontSize, tokens.valueFontStyle, tokens.fontStyle, tokens.valueFontWeight, tokens.fontWeight, tokens.valueLetterSpacing, tokens.letterSpacing, tokens.valueLineHeight, tokens.lineHeight);
20
13
  export var RightContent = /*#__PURE__*/styled.div.withConfig({
21
14
  componentId: "plasma-new-hope__sc-1pflgj8-2"
22
15
  })(["display:flex;color:inherit;&:hover{color:inherit;}"]);
23
16
  export var LeftContent = /*#__PURE__*/styled.div.withConfig({
24
17
  componentId: "plasma-new-hope__sc-1pflgj8-3"
25
- })(["display:flex;color:inherit;&:hover{color:inherit;}"]);
18
+ })(["display:flex;color:inherit;&:hover{color:inherit;}"]);
19
+ export var base = /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n box-sizing: border-box;\n white-space: nowrap;\n\n gap: var(", ");\n padding: var(", ");\n\n appearance: none;\n border: none;\n outline: none;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n ", ";\n\n &.", " {\n ", " {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ", " {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n }\n"])), tokens.itemContentGap, tokens.itemPaddingOrientationVertical, /*#__PURE__*/addFocus({
20
+ outlineSize: '0.063rem',
21
+ outlineOffset: '-0.125rem',
22
+ outlineColor: /*#__PURE__*/"var(".concat(tokens.outlineFocusColor, ")"),
23
+ outlineRadius: 'calc(var(--plasma_private-outline-radius) + 0.063rem)',
24
+ customFocusRules: /*#__PURE__*/"\n &.focus-visible:focus,\n &[data-focus-visible-added] {\n &::before {\n z-index: 1;\n outline: none;\n box-shadow: 0 0 0 0.063rem var(".concat(tokens.outlineFocusColor, ");\n }\n }\n ")
25
+ }), classes.tabsTruncate, StyledContent, TabItemValue);
@@ -16,10 +16,10 @@ export var config = {
16
16
  light: /*#__PURE__*/css(["", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default);", ":var(--on-dark-text-primary);", ":var(--on-dark-surface-transparent-card);", ":var(--on-dark-text-primary);"], badgeTokens.color, badgeTokens.background, badgeTokens.colorTransparent, badgeTokens.backgroundTransparent, badgeTokens.colorClear)
17
17
  },
18
18
  size: {
19
- l: /*#__PURE__*/css(["", ":0.5rem;", ":1.75rem;", ":0 0.6875rem;", ":0 0.375rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":-0.0625rem;", ":0.25rem;", ":0.25rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
20
- m: /*#__PURE__*/css(["", ":0.375rem;", ":1.5rem;", ":0 0.5625rem;", ":0 0.375rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":-0.0625rem;", ":0.1875rem;", ":0.1875rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
21
- s: /*#__PURE__*/css(["", ":0.375rem;", ":1.25rem;", ":0 0.4375rem;", ":0 0.25rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
22
- xs: /*#__PURE__*/css(["", ":0.25rem;", ":1rem;", ":0 0.25rem;", ":0 0.188rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight)
19
+ l: /*#__PURE__*/css(["", ":0.5rem;", ":1.75rem;", ":0.6875rem;", ":0.6875rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":-0.0625rem;", ":0.25rem;", ":0.25rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
20
+ m: /*#__PURE__*/css(["", ":0.375rem;", ":1.5rem;", ":0.5625rem;", ":0.5625rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":-0.0625rem;", ":0.1875rem;", ":0.1875rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
21
+ s: /*#__PURE__*/css(["", ":0.375rem;", ":1.25rem;", ":0.4375rem;", ":0.4375rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
22
+ xs: /*#__PURE__*/css(["", ":0.25rem;", ":1rem;", ":0.25rem;", ":0.25rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight)
23
23
  },
24
24
  pilled: {
25
25
  "true": /*#__PURE__*/css(["", ":1.25rem;"], badgeTokens.pilledBorderRadius)
@@ -28,7 +28,10 @@ export var config = {
28
28
  "true": /*#__PURE__*/css([""])
29
29
  },
30
30
  clear: {
31
- "true": /*#__PURE__*/css(["", ":var(--surface-clear);"], badgeTokens.backgroundClear)
31
+ "true": /*#__PURE__*/css([""])
32
+ },
33
+ truncate: {
34
+ "true": /*#__PURE__*/css([""])
32
35
  }
33
36
  }
34
37
  };
@@ -31,9 +31,8 @@ const meta: Meta<typeof Badge> = {
31
31
  control: { type: 'boolean' },
32
32
  if: { arg: 'clear', truthy: false },
33
33
  },
34
- text: {
34
+ maxWidth: {
35
35
  control: { type: 'text' },
36
- if: { arg: 'enableText', truthy: true },
37
36
  },
38
37
  ...disableProps(['contentLeft', 'contentRight']),
39
38
  },
@@ -44,7 +43,6 @@ export default meta;
44
43
  type StoryProps = ComponentProps<typeof Badge> & {
45
44
  enableContentLeft: boolean;
46
45
  enableContentRight: boolean;
47
- enableText: boolean;
48
46
  };
49
47
  type Story = StoryObj<StoryProps>;
50
48
 
@@ -65,19 +63,19 @@ export const Default: Story = {
65
63
  },
66
64
  enableContentRight: {
67
65
  control: { type: 'boolean' },
68
- if: { arg: 'enableText', truthy: true },
66
+ if: { arg: 'enableContentLeft', truthy: false },
69
67
  },
70
68
  },
71
69
  args: {
70
+ text: 'Hello Kitty',
72
71
  view: 'default',
73
72
  size: 'm',
74
- enableText: true,
75
- text: 'Hello',
76
73
  enableContentLeft: false,
77
74
  enableContentRight: false,
78
75
  clear: false,
79
76
  pilled: false,
80
77
  transparent: false,
78
+ maxWidth: '',
81
79
  },
82
80
  render: ({ enableContentLeft, enableContentRight, size, ...rest }: StoryProps) => {
83
81
  const iconSize = size === 'l' ? '1rem' : '0.75rem';
@@ -7,7 +7,7 @@ export var config = {
7
7
  },
8
8
  variations: {
9
9
  view: {
10
- "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-primary-hover);", ":solid var(--surface-solid-default);", ":var(--text-primary);", ":var(--surface-clear);", ":var(--inverse-text-primary);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--surface-solid-default-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--surface-transparent-secondary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-secondary);", ":0.4;"], tokens.activeTitleColor, tokens.activeTitleColorHover, tokens.activeIndicatorBorder, tokens.activeIndicatorColor, tokens.activeIndicatorBackground, tokens.completedIndicatorColor, tokens.completedIndicatorColorHover, tokens.completedIndicatorBackground, tokens.completedIndicatorBackgroundHover, tokens.inactiveTitleColor, tokens.inactiveTitleColorHover, tokens.inactiveIndicatorColor, tokens.inactiveIndicatorColorHover, tokens.inactiveIndicatorBackground, tokens.inactiveIndicatorBackgroundHover, tokens.contentColor, tokens.disabledOpacity)
10
+ "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-primary-hover);", ":solid var(--surface-solid-default);", ":var(--text-primary);", ":var(--surface-clear);", ":var(--inverse-text-primary);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--surface-solid-default-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--surface-transparent-secondary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-secondary);", ":var(--surface-accent);", ":0.4;"], tokens.activeTitleColor, tokens.activeTitleColorHover, tokens.activeIndicatorBorder, tokens.activeIndicatorColor, tokens.activeIndicatorBackground, tokens.completedIndicatorColor, tokens.completedIndicatorColorHover, tokens.completedIndicatorBackground, tokens.completedIndicatorBackgroundHover, tokens.inactiveTitleColor, tokens.inactiveTitleColorHover, tokens.inactiveIndicatorColor, tokens.inactiveIndicatorColorHover, tokens.inactiveIndicatorBackground, tokens.inactiveIndicatorBackgroundHover, tokens.contentColor, tokens.focusColor, tokens.disabledOpacity)
11
11
  },
12
12
  size: {
13
13
  l: /*#__PURE__*/css(["", ":1.5rem;", ":2.25rem;", ":0.5rem;", ":1rem;", ":0.75rem;", ":0.375rem;", ":2rem;", ":1.0625rem;", ":0.75rem;", ":1rem;", ":0.625rem;", ":1.5rem;", ":1.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.125rem;"], tokens.indicatorSize, tokens.activeIndicatorSize, tokens.bulletSize, tokens.activeBulletSize, tokens.titlePaddingTop, tokens.contentPaddingTop, tokens.contentSidePadding, tokens.contentVerticalPadding, tokens.verticalContentPaddingLeft, tokens.smallIndicatorIndentHeight, tokens.largeIndicatorIndentHeight, tokens.smallBulletIndentHeight, tokens.largeBulletIndentHeight, tokens.indicatorFontFamily, tokens.indicatorFontSize, tokens.indicatorFontStyle, tokens.indicatorFontWeight, tokens.indicatorLetterSpacing, tokens.indicatorLineHeight, tokens.activeIndicatorFontFamily, tokens.activeIndicatorFontSize, tokens.activeIndicatorFontStyle, tokens.activeIndicatorFontWeight, tokens.activeIndicatorLetterSpacing, tokens.activeIndicatorLineHeight, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.contentFontFamily, tokens.contentFontSize, tokens.contentFontStyle, tokens.contentFontWeight, tokens.contentLetterSpacing, tokens.contentLineHeight, tokens.dividerThickness),
@@ -118,7 +118,7 @@ const DefaultStory = (args) => {
118
118
  };
119
119
 
120
120
  return (
121
- <div style={{ maxWidth, height: '400px' }}>
121
+ <div style={{ maxWidth, height: '600px' }}>
122
122
  <Steps
123
123
  size={size}
124
124
  items={items}