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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (240) hide show
  1. package/cjs/components/Badge/Badge.css +2 -0
  2. package/cjs/components/Badge/Badge.js +17 -4
  3. package/cjs/components/Badge/Badge.js.map +1 -1
  4. package/cjs/components/Badge/Badge.tokens.js +2 -1
  5. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  6. package/cjs/components/Badge/variations/_truncate/base.js +9 -0
  7. package/cjs/components/Badge/variations/_truncate/base.js.map +1 -0
  8. package/cjs/components/Badge/variations/_truncate/base_nf9u2h.css +1 -0
  9. package/cjs/components/Steps/Steps.css +9 -9
  10. package/cjs/components/Steps/Steps.tokens.js +0 -1
  11. package/cjs/components/Steps/Steps.tokens.js.map +1 -1
  12. package/cjs/components/Steps/ui/StepItem/StepItem.css +9 -9
  13. package/cjs/components/Steps/ui/StepItem/StepItem.js +7 -29
  14. package/cjs/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  15. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
  16. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  17. package/cjs/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +9 -0
  18. package/cjs/components/Tabs/tokens.js +2 -1
  19. package/cjs/components/Tabs/tokens.js.map +1 -1
  20. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +7 -5
  21. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +14 -3
  22. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  23. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  24. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  25. package/{es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css → cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1vj7dbl.css} +1 -1
  26. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +9 -0
  27. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +1 -0
  28. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +1 -0
  29. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +7 -5
  30. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +14 -3
  31. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  32. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  33. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  34. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_6ssvos.css +5 -0
  35. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +9 -0
  36. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +1 -0
  37. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +1 -0
  38. package/cjs/index.css +25 -19
  39. package/emotion/cjs/components/Badge/Badge.js +22 -4
  40. package/emotion/cjs/components/Badge/Badge.tokens.js +2 -1
  41. package/emotion/cjs/components/Badge/variations/_truncate/base.js +10 -0
  42. package/emotion/cjs/components/Badge/variations/_truncate/tokens.json +1 -0
  43. package/emotion/cjs/components/Steps/Steps.tokens.js +0 -1
  44. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.js +7 -29
  45. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.styles.js +11 -17
  46. package/emotion/cjs/components/Tabs/tokens.js +2 -1
  47. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +19 -3
  48. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  49. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +10 -0
  50. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  51. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +19 -3
  52. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  53. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +10 -0
  54. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  55. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +17 -14
  56. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  57. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
  58. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  59. package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +48 -16
  60. package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  61. package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  62. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.config.js +5 -5
  63. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  64. package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +48 -16
  65. package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  66. package/emotion/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  67. package/emotion/es/components/Badge/Badge.js +23 -4
  68. package/emotion/es/components/Badge/Badge.tokens.js +2 -1
  69. package/emotion/es/components/Badge/variations/_truncate/base.js +4 -0
  70. package/emotion/es/components/Badge/variations/_truncate/tokens.json +1 -0
  71. package/emotion/es/components/Steps/Steps.tokens.js +0 -1
  72. package/emotion/es/components/Steps/ui/StepItem/StepItem.js +7 -29
  73. package/emotion/es/components/Steps/ui/StepItem/StepItem.styles.js +11 -17
  74. package/emotion/es/components/Tabs/tokens.js +2 -1
  75. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +20 -3
  76. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  77. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +4 -0
  78. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  79. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +20 -3
  80. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  81. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +4 -0
  82. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  83. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +17 -14
  84. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  85. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
  86. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  87. package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +48 -16
  88. package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  89. package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  90. package/emotion/es/examples/plasma_web/components/Steps/Steps.config.js +5 -5
  91. package/emotion/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  92. package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +48 -16
  93. package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  94. package/emotion/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  95. package/es/components/Badge/Badge.css +2 -0
  96. package/es/components/Badge/Badge.js +18 -5
  97. package/es/components/Badge/Badge.js.map +1 -1
  98. package/es/components/Badge/Badge.tokens.js +2 -1
  99. package/es/components/Badge/Badge.tokens.js.map +1 -1
  100. package/es/components/Badge/variations/_truncate/base.js +5 -0
  101. package/es/components/Badge/variations/_truncate/base.js.map +1 -0
  102. package/es/components/Badge/variations/_truncate/base_nf9u2h.css +1 -0
  103. package/es/components/Steps/Steps.css +9 -9
  104. package/es/components/Steps/Steps.tokens.js +0 -1
  105. package/es/components/Steps/Steps.tokens.js.map +1 -1
  106. package/es/components/Steps/ui/StepItem/StepItem.css +9 -9
  107. package/es/components/Steps/ui/StepItem/StepItem.js +8 -30
  108. package/es/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  109. package/es/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
  110. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  111. package/es/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +9 -0
  112. package/es/components/Tabs/tokens.js +2 -1
  113. package/es/components/Tabs/tokens.js.map +1 -1
  114. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +7 -5
  115. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +15 -4
  116. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  117. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  118. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  119. package/{cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css → es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1vj7dbl.css} +1 -1
  120. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +5 -0
  121. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +1 -0
  122. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +1 -0
  123. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +7 -5
  124. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +15 -4
  125. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  126. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  127. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  128. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_6ssvos.css +5 -0
  129. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +5 -0
  130. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +1 -0
  131. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +1 -0
  132. package/es/index.css +25 -19
  133. package/package.json +2 -2
  134. package/styled-components/cjs/components/Badge/Badge.js +22 -4
  135. package/styled-components/cjs/components/Badge/Badge.tokens.js +2 -1
  136. package/styled-components/cjs/components/Badge/variations/_truncate/base.js +10 -0
  137. package/styled-components/cjs/components/Badge/variations/_truncate/tokens.json +1 -0
  138. package/styled-components/cjs/components/Steps/Steps.tokens.js +0 -1
  139. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.js +7 -29
  140. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.styles.js +6 -12
  141. package/styled-components/cjs/components/Tabs/tokens.js +2 -1
  142. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +19 -3
  143. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  144. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +10 -0
  145. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  146. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +19 -3
  147. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  148. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +10 -0
  149. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  150. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +3 -0
  151. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  152. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
  153. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  154. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +48 -16
  155. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  156. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  157. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.config.js +1 -1
  158. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  159. package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +48 -16
  160. package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  161. package/styled-components/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  162. package/styled-components/es/components/Badge/Badge.js +23 -4
  163. package/styled-components/es/components/Badge/Badge.tokens.js +2 -1
  164. package/styled-components/es/components/Badge/variations/_truncate/base.js +4 -0
  165. package/styled-components/es/components/Badge/variations/_truncate/tokens.json +1 -0
  166. package/styled-components/es/components/Steps/Steps.tokens.js +0 -1
  167. package/styled-components/es/components/Steps/ui/StepItem/StepItem.js +7 -29
  168. package/styled-components/es/components/Steps/ui/StepItem/StepItem.styles.js +6 -12
  169. package/styled-components/es/components/Tabs/tokens.js +2 -1
  170. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +20 -3
  171. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  172. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +4 -0
  173. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  174. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +20 -3
  175. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  176. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +4 -0
  177. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  178. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +3 -0
  179. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  180. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
  181. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  182. package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +48 -16
  183. package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  184. package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  185. package/styled-components/es/examples/plasma_web/components/Steps/Steps.config.js +1 -1
  186. package/styled-components/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  187. package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +48 -16
  188. package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  189. package/styled-components/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  190. package/types/components/Badge/Badge.d.ts +10 -2
  191. package/types/components/Badge/Badge.d.ts.map +1 -1
  192. package/types/components/Badge/Badge.tokens.d.ts +1 -0
  193. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  194. package/types/components/Badge/Badge.types.d.ts +5 -0
  195. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  196. package/types/components/Badge/variations/_truncate/base.d.ts +2 -0
  197. package/types/components/Badge/variations/_truncate/base.d.ts.map +1 -0
  198. package/types/components/Steps/Steps.tokens.d.ts +0 -1
  199. package/types/components/Steps/Steps.tokens.d.ts.map +1 -1
  200. package/types/components/Steps/ui/StepItem/StepItem.d.ts.map +1 -1
  201. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts +2 -2
  202. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -1
  203. package/types/components/Tabs/TabItem.types.d.ts +5 -0
  204. package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
  205. package/types/components/Tabs/tokens.d.ts +1 -0
  206. package/types/components/Tabs/tokens.d.ts.map +1 -1
  207. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts +9 -2
  208. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
  209. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
  210. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts +2 -0
  211. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts.map +1 -0
  212. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts +9 -2
  213. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts.map +1 -1
  214. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
  215. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts +2 -0
  216. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts.map +1 -0
  217. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts +3 -0
  218. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  219. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +6 -0
  220. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  221. package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts.map +1 -1
  222. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +6 -0
  223. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
  224. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +3 -0
  225. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  226. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts +3 -0
  227. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  228. package/types/examples/plasma_web/components/Badge/Badge.d.ts +3 -0
  229. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  230. package/types/examples/plasma_web/components/Steps/Steps.config.d.ts.map +1 -1
  231. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts +6 -0
  232. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts.map +1 -1
  233. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +3 -0
  234. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  235. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts +3 -0
  236. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  237. package/cjs/components/Steps/ui/StepItem/StepItem.styles_1oh5gqm.css +0 -9
  238. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css +0 -5
  239. package/es/components/Steps/ui/StepItem/StepItem.styles_1oh5gqm.css +0 -9
  240. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.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: Size) => {
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={hasDivider ? 'divider' : 'clear'} stretch={stretch} disabled={disabled} size={size}>
107
+ <Tabs clip="none" view={hasDivider ? 'divider' : 'clear'} 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: {
@@ -612,6 +641,7 @@ const StoryHeaderTabs = (props: StoryTabsProps) => {
612
641
  contentRight: contentRightOption,
613
642
  hasDivider,
614
643
  stretch,
644
+ maxItemWidth,
615
645
  } = props;
616
646
  const items = Array(itemQuantity).fill(0);
617
647
  const [index, setIndex] = useState(0);
@@ -629,8 +659,9 @@ const StoryHeaderTabs = (props: StoryTabsProps) => {
629
659
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
630
660
  contentRight={getContentRight(contentRightOption, size as Size)}
631
661
  size={size as HeaderSize}
662
+ maxItemWidth={maxItemWidth}
632
663
  >
633
- {`Label${i + 1}`}
664
+ {`${labels[i % labels.length]} ${i + 1}`}
634
665
  </TabItem>
635
666
  ))}
636
667
  </Tabs>
@@ -643,6 +674,7 @@ export const HeaderTabs: StoryObj<StoryTabsProps> = {
643
674
  disabled: false,
644
675
  hasDivider: true,
645
676
  itemQuantity: 4,
677
+ maxItemWidth: '',
646
678
  },
647
679
  argTypes: {
648
680
  size: {
@@ -28,6 +28,9 @@ export var config = {
28
28
  },
29
29
  pilled: {
30
30
  "true": /*#__PURE__*/css(["", ":1.5rem;"], tabsTokens.itemPilledBorderRadius)
31
+ },
32
+ truncate: {
33
+ "true": /*#__PURE__*/css([""])
31
34
  }
32
35
  }
33
36
  };
@@ -17,6 +17,9 @@ export var config = {
17
17
  },
18
18
  disabled: {
19
19
  "true": /*#__PURE__*/css(["", ":0.4;"], tabsTokens.disabledOpacity)
20
+ },
21
+ truncate: {
22
+ "true": /*#__PURE__*/css([""])
20
23
  }
21
24
  }
22
25
  };
@@ -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);", ":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)
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)
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: '600px' }}>
121
+ <div style={{ maxWidth, height: '400px' }}>
122
122
  <Steps
123
123
  size={size}
124
124
  items={items}
@@ -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: Size) => {
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={hasDivider ? 'divider' : 'clear'} stretch={stretch} disabled={disabled} size={size}>
107
+ <Tabs clip="none" view={hasDivider ? 'divider' : 'clear'} 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: {
@@ -612,6 +641,7 @@ const StoryHeaderTabs = (props: StoryTabsProps) => {
612
641
  contentRight: contentRightOption,
613
642
  hasDivider,
614
643
  stretch,
644
+ maxItemWidth,
615
645
  } = props;
616
646
  const items = Array(itemQuantity).fill(0);
617
647
  const [index, setIndex] = useState(0);
@@ -629,8 +659,9 @@ const StoryHeaderTabs = (props: StoryTabsProps) => {
629
659
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
630
660
  contentRight={getContentRight(contentRightOption, size as Size)}
631
661
  size={size as HeaderSize}
662
+ maxItemWidth={maxItemWidth}
632
663
  >
633
- {`Label${i + 1}`}
664
+ {`${labels[i % labels.length]} ${i + 1}`}
634
665
  </TabItem>
635
666
  ))}
636
667
  </Tabs>
@@ -643,6 +674,7 @@ export const HeaderTabs: StoryObj<StoryTabsProps> = {
643
674
  disabled: false,
644
675
  hasDivider: true,
645
676
  itemQuantity: 4,
677
+ maxItemWidth: '',
646
678
  },
647
679
  argTypes: {
648
680
  size: {
@@ -28,6 +28,9 @@ export var config = {
28
28
  },
29
29
  pilled: {
30
30
  "true": /*#__PURE__*/css(["", ":1.5rem;"], tabsTokens.itemPilledBorderRadius)
31
+ },
32
+ truncate: {
33
+ "true": /*#__PURE__*/css([""])
31
34
  }
32
35
  }
33
36
  };
@@ -17,6 +17,9 @@ export var config = {
17
17
  },
18
18
  disabled: {
19
19
  "true": /*#__PURE__*/css(["", ":0.4;"], tabsTokens.disabledOpacity)
20
+ },
21
+ truncate: {
22
+ "true": /*#__PURE__*/css([""])
20
23
  }
21
24
  }
22
25
  };
@@ -1,11 +1,15 @@
1
1
  import React from 'react';
2
2
  import type { RootProps } from '../../engines';
3
3
  import type { BadgeProps, BadgeRootProps } from './Badge.types';
4
- export declare const badgeRoot: (Root: RootProps<HTMLDivElement, BadgeRootProps>) => React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
4
+ export declare const badgeRoot: (Root: RootProps<HTMLDivElement, BadgeRootProps & {
5
+ truncate: boolean;
6
+ }>) => React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
5
7
  export declare const badgeConfig: {
6
8
  name: string;
7
9
  tag: string;
8
- layout: (Root: RootProps<HTMLDivElement, BadgeRootProps>) => React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
10
+ layout: (Root: RootProps<HTMLDivElement, BadgeRootProps & {
11
+ truncate: boolean;
12
+ }>) => React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
9
13
  base: import("@linaria/core").LinariaClassName;
10
14
  variations: {
11
15
  view: {
@@ -26,6 +30,10 @@ export declare const badgeConfig: {
26
30
  css: import("@linaria/core").LinariaClassName;
27
31
  attrs: boolean;
28
32
  };
33
+ truncate: {
34
+ css: import("@linaria/core").LinariaClassName;
35
+ attrs: boolean;
36
+ };
29
37
  };
30
38
  defaults: {
31
39
  view: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ/C,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAIhE,eAAO,MAAM,SAAS,SAAU,UAAU,cAAc,EAAE,cAAc,CAAC,sFAqCnE,CAAC;AAEP,eAAO,MAAM,WAAW;;;mBAvCQ,UAAU,cAAc,EAAE,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;CAoExE,CAAC"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAS/C,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAIhE,eAAO,MAAM,SAAS,SAAU,UAAU,cAAc,EAAE,cAAc,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC,sFA6C3F,CAAC;AAEP,eAAO,MAAM,WAAW;;;mBA/CQ,UAAU,cAAc,EAAE,cAAc,GAAG;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFhG,CAAC"}
@@ -2,6 +2,7 @@ export declare const classes: {
2
2
  badgePilled: string;
3
3
  badgeTransparent: string;
4
4
  badgeClear: string;
5
+ badgeTruncate: string;
5
6
  };
6
7
  export declare const tokens: {
7
8
  background: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;CAInB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CA0BlB,CAAC"}
1
+ {"version":3,"file":"Badge.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CA0BlB,CAAC"}
@@ -58,6 +58,11 @@ declare type CustomBadgeProps = {
58
58
  * Слот для контента справа, например `Icon`
59
59
  */
60
60
  contentRight?: ReactNode;
61
+ /**
62
+ * Обрезает контент по максимальной ширине и добавляет ...
63
+ * @default 'auto'
64
+ */
65
+ maxWidth?: string;
61
66
  /**
62
67
  * Размер Badge
63
68
  * @default