@salutejs/plasma-new-hope 0.181.0-canary.1522.11600272541.0 → 0.182.0-canary.1500.11610401138.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +6 -6
  2. package/cjs/components/Autocomplete/Autocomplete.styles.js +1 -1
  3. package/cjs/components/Autocomplete/{Autocomplete.styles_pv6izw.css → Autocomplete.styles_192fzgs.css} +1 -1
  4. package/cjs/components/Autocomplete/Autocomplete.tokens.js +34 -62
  5. package/cjs/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  6. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  7. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  8. package/cjs/components/Autocomplete/ui/TextField/TextField.styles_1csckkd.css +1 -0
  9. package/cjs/components/Badge/Badge.css +2 -0
  10. package/cjs/components/Badge/Badge.js +17 -4
  11. package/cjs/components/Badge/Badge.js.map +1 -1
  12. package/cjs/components/Badge/Badge.tokens.js +2 -1
  13. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  14. package/cjs/components/Badge/variations/_truncate/base.js +9 -0
  15. package/cjs/components/Badge/variations/_truncate/base.js.map +1 -0
  16. package/cjs/components/Badge/variations/_truncate/base_nf9u2h.css +1 -0
  17. package/cjs/components/Tabs/tokens.js +2 -1
  18. package/cjs/components/Tabs/tokens.js.map +1 -1
  19. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +7 -5
  20. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +14 -3
  21. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  22. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  23. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  24. package/{es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css → cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1vj7dbl.css} +1 -1
  25. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +9 -0
  26. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +1 -0
  27. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +1 -0
  28. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +7 -5
  29. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +14 -3
  30. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  31. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  32. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  33. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_hh65kv.css +5 -0
  34. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +9 -0
  35. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +1 -0
  36. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +1 -0
  37. package/cjs/index.css +22 -16
  38. package/emotion/cjs/components/Autocomplete/Autocomplete.tokens.js +34 -62
  39. package/emotion/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  40. package/emotion/cjs/components/Badge/Badge.js +22 -4
  41. package/emotion/cjs/components/Badge/Badge.tokens.js +2 -1
  42. package/emotion/cjs/components/Badge/variations/_truncate/base.js +10 -0
  43. package/emotion/cjs/components/Badge/variations/_truncate/tokens.json +1 -0
  44. package/emotion/cjs/components/Tabs/tokens.js +2 -1
  45. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +19 -3
  46. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  47. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +10 -0
  48. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  49. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +19 -3
  50. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  51. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +10 -0
  52. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  53. package/emotion/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +12 -12
  54. package/emotion/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +0 -22
  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/Tabs/Tabs.stories.tsx +51 -19
  58. package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  59. package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  60. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +16 -16
  61. package/emotion/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +12 -12
  62. package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
  63. package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  64. package/emotion/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  65. package/emotion/es/components/Autocomplete/Autocomplete.tokens.js +34 -62
  66. package/emotion/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  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/Tabs/tokens.js +2 -1
  72. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +20 -3
  73. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  74. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +4 -0
  75. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  76. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +20 -3
  77. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  78. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +4 -0
  79. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  80. package/emotion/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +12 -12
  81. package/emotion/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +0 -22
  82. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +17 -14
  83. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  84. package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
  85. package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  86. package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  87. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.config.js +16 -16
  88. package/emotion/es/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +12 -12
  89. package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
  90. package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  91. package/emotion/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  92. package/es/components/Autocomplete/Autocomplete.css +6 -6
  93. package/es/components/Autocomplete/Autocomplete.styles.js +1 -1
  94. package/es/components/Autocomplete/{Autocomplete.styles_pv6izw.css → Autocomplete.styles_192fzgs.css} +1 -1
  95. package/es/components/Autocomplete/Autocomplete.tokens.js +34 -62
  96. package/es/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  97. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  98. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  99. package/es/components/Autocomplete/ui/TextField/TextField.styles_1csckkd.css +1 -0
  100. package/es/components/Badge/Badge.css +2 -0
  101. package/es/components/Badge/Badge.js +18 -5
  102. package/es/components/Badge/Badge.js.map +1 -1
  103. package/es/components/Badge/Badge.tokens.js +2 -1
  104. package/es/components/Badge/Badge.tokens.js.map +1 -1
  105. package/es/components/Badge/variations/_truncate/base.js +5 -0
  106. package/es/components/Badge/variations/_truncate/base.js.map +1 -0
  107. package/es/components/Badge/variations/_truncate/base_nf9u2h.css +1 -0
  108. package/es/components/Tabs/tokens.js +2 -1
  109. package/es/components/Tabs/tokens.js.map +1 -1
  110. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +7 -5
  111. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +15 -4
  112. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  113. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  114. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  115. package/{cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css → es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1vj7dbl.css} +1 -1
  116. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +5 -0
  117. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +1 -0
  118. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +1 -0
  119. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +7 -5
  120. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +15 -4
  121. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  122. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  123. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  124. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_hh65kv.css +5 -0
  125. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +5 -0
  126. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +1 -0
  127. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +1 -0
  128. package/es/index.css +22 -16
  129. package/package.json +5 -5
  130. package/styled-components/cjs/components/Autocomplete/Autocomplete.tokens.js +34 -62
  131. package/styled-components/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  132. package/styled-components/cjs/components/Badge/Badge.js +22 -4
  133. package/styled-components/cjs/components/Badge/Badge.tokens.js +2 -1
  134. package/styled-components/cjs/components/Badge/variations/_truncate/base.js +10 -0
  135. package/styled-components/cjs/components/Badge/variations/_truncate/tokens.json +1 -0
  136. package/styled-components/cjs/components/Tabs/tokens.js +2 -1
  137. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +19 -3
  138. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  139. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +10 -0
  140. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  141. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +19 -3
  142. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  143. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +10 -0
  144. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  145. package/styled-components/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +9 -9
  146. package/styled-components/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +0 -22
  147. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +3 -0
  148. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  149. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
  150. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  151. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  152. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +4 -4
  153. package/styled-components/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +9 -9
  154. package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
  155. package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  156. package/styled-components/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  157. package/styled-components/es/components/Autocomplete/Autocomplete.tokens.js +34 -62
  158. package/styled-components/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  159. package/styled-components/es/components/Badge/Badge.js +23 -4
  160. package/styled-components/es/components/Badge/Badge.tokens.js +2 -1
  161. package/styled-components/es/components/Badge/variations/_truncate/base.js +4 -0
  162. package/styled-components/es/components/Badge/variations/_truncate/tokens.json +1 -0
  163. package/styled-components/es/components/Tabs/tokens.js +2 -1
  164. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +20 -3
  165. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  166. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +4 -0
  167. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  168. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +20 -3
  169. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  170. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +4 -0
  171. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  172. package/styled-components/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +9 -9
  173. package/styled-components/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +0 -22
  174. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +3 -0
  175. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  176. package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
  177. package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  178. package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  179. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +4 -4
  180. package/styled-components/es/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +9 -9
  181. package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
  182. package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  183. package/styled-components/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  184. package/types/components/Autocomplete/Autocomplete.d.ts +2 -2
  185. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  186. package/types/components/Autocomplete/Autocomplete.tokens.d.ts +2 -26
  187. package/types/components/Autocomplete/Autocomplete.tokens.d.ts.map +1 -1
  188. package/types/components/Autocomplete/Autocomplete.types.d.ts +1 -27
  189. package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
  190. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  191. package/types/components/Badge/Badge.d.ts +10 -2
  192. package/types/components/Badge/Badge.d.ts.map +1 -1
  193. package/types/components/Badge/Badge.tokens.d.ts +1 -0
  194. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  195. package/types/components/Badge/Badge.types.d.ts +5 -0
  196. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  197. package/types/components/Badge/variations/_truncate/base.d.ts +2 -0
  198. package/types/components/Badge/variations/_truncate/base.d.ts.map +1 -0
  199. package/types/components/Tabs/TabItem.types.d.ts +5 -0
  200. package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
  201. package/types/components/Tabs/tokens.d.ts +1 -0
  202. package/types/components/Tabs/tokens.d.ts.map +1 -1
  203. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts +9 -2
  204. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
  205. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
  206. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts +2 -0
  207. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts.map +1 -0
  208. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts +9 -2
  209. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts.map +1 -1
  210. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
  211. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts +2 -0
  212. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts.map +1 -0
  213. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.d.ts.map +1 -1
  214. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +1 -11
  215. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  216. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts +3 -0
  217. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  218. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +6 -0
  219. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  220. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +6 -0
  221. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
  222. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +3 -0
  223. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  224. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts +3 -0
  225. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  226. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +1 -1
  227. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.config.d.ts.map +1 -1
  228. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +1 -11
  229. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  230. package/types/examples/plasma_web/components/Badge/Badge.d.ts +3 -0
  231. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  232. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts +6 -0
  233. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts.map +1 -1
  234. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +3 -0
  235. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  236. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts +3 -0
  237. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  238. package/cjs/components/Autocomplete/ui/TextField/TextField.styles_1anhp9c.css +0 -1
  239. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css +0 -5
  240. package/es/components/Autocomplete/ui/TextField/TextField.styles_1anhp9c.css +0 -1
  241. 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: string) => {
34
35
  const iconSize = size === 'xs' ? 'xs' : 's';
@@ -76,6 +77,12 @@ const meta: Meta<StoryTabsProps> = {
76
77
  },
77
78
  if: { arg: 'helperText', eq: '' },
78
79
  },
80
+ maxItemWidth: {
81
+ control: {
82
+ type: 'text',
83
+ },
84
+ if: { arg: 'stretch', truthy: false },
85
+ },
79
86
  },
80
87
  };
81
88
 
@@ -90,13 +97,14 @@ const StoryHorizontalDefault = (props: HorizontalStoryTabsProps) => {
90
97
  contentRight: contentRightOption,
91
98
  hasDivider,
92
99
  stretch,
100
+ maxItemWidth,
93
101
  helperText,
94
102
  } = props;
95
103
  const items = Array(itemQuantity).fill(0);
96
104
  const [index, setIndex] = useState(0);
97
105
 
98
106
  return (
99
- <Tabs view="divider" hasDivider={hasDivider} stretch={stretch} disabled={disabled} size={size}>
107
+ <Tabs clip="none" view="divider" hasDivider={hasDivider} stretch={stretch} disabled={disabled} size={size}>
100
108
  {items.map((_, i) => {
101
109
  if (helperText !== '') {
102
110
  return (
@@ -110,8 +118,9 @@ const StoryHorizontalDefault = (props: HorizontalStoryTabsProps) => {
110
118
  value={helperText}
111
119
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
112
120
  size={size as Size}
121
+ maxItemWidth={maxItemWidth}
113
122
  >
114
- {`Label${i + 1}`}
123
+ {`${labels[i % labels.length]} ${i + 1}`}
115
124
  </TabItem>
116
125
  );
117
126
  }
@@ -127,8 +136,9 @@ const StoryHorizontalDefault = (props: HorizontalStoryTabsProps) => {
127
136
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
128
137
  contentRight={getContentRight(contentRightOption, size as Size)}
129
138
  size={size as Size}
139
+ maxItemWidth={maxItemWidth}
130
140
  >
131
- {`Label${i + 1}`}
141
+ {`${labels[i % labels.length]} ${i + 1}`}
132
142
  </TabItem>
133
143
  );
134
144
  })}
@@ -147,6 +157,7 @@ const StoryHorizontalScroll = (props: HorizontalStoryTabsProps) => {
147
157
  hasDivider,
148
158
  helperText,
149
159
  width,
160
+ maxItemWidth,
150
161
  } = props;
151
162
  const items = Array(itemQuantity).fill(0);
152
163
  const [index, setIndex] = useState(0);
@@ -166,8 +177,9 @@ const StoryHorizontalScroll = (props: HorizontalStoryTabsProps) => {
166
177
  value={helperText}
167
178
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
168
179
  size={size as Size}
180
+ maxItemWidth={maxItemWidth}
169
181
  >
170
- {`Label${i + 1}`}
182
+ {`${labels[i % labels.length]} ${i + 1}`}
171
183
  </TabItem>
172
184
  );
173
185
  }
@@ -183,8 +195,9 @@ const StoryHorizontalScroll = (props: HorizontalStoryTabsProps) => {
183
195
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
184
196
  contentRight={getContentRight(contentRightOption, size as Size)}
185
197
  size={size as Size}
198
+ maxItemWidth={maxItemWidth}
186
199
  >
187
- {`Label${i + 1}`}
200
+ {`${labels[i % labels.length]} ${i + 1}`}
188
201
  </TabItem>
189
202
  );
190
203
  })}
@@ -202,6 +215,7 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
202
215
  contentRight: contentRightOption,
203
216
  hasDivider,
204
217
  helperText,
218
+ maxItemWidth,
205
219
  } = props;
206
220
  const maxItemQuantity = 3;
207
221
  const items = Array(itemQuantity).fill(0);
@@ -234,8 +248,9 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
234
248
  value={helperText}
235
249
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
236
250
  size={size as Size}
251
+ maxItemWidth={maxItemWidth}
237
252
  >
238
- {`Label${i + 1}`}
253
+ {`${labels[i % labels.length]} ${i + 1}`}
239
254
  </TabItem>
240
255
  );
241
256
  }
@@ -251,8 +266,9 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
251
266
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
252
267
  contentRight={getContentRight(contentRightOption, size as Size)}
253
268
  size={size as Size}
269
+ maxItemWidth={maxItemWidth}
254
270
  >
255
- {`Label${i + 1}`}
271
+ {`${labels[i % labels.length]} ${i + 1}`}
256
272
  </TabItem>
257
273
  );
258
274
  })}
@@ -269,6 +285,7 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
269
285
  tabIndex={!disabled ? 0 : -1}
270
286
  disabled={disabled}
271
287
  size={size as Size}
288
+ maxItemWidth="auto"
272
289
  >
273
290
  ShowAll
274
291
  </TabItem>
@@ -285,9 +302,10 @@ export const HorizontalTabs: StoryObj<HorizontalStoryTabsProps> = {
285
302
  disabled: false,
286
303
  hasDivider: true,
287
304
  helperText: '',
288
- itemQuantity: 8,
305
+ itemQuantity: 6,
289
306
  stretch: false,
290
307
  width: '15rem',
308
+ maxItemWidth: '',
291
309
  },
292
310
  argTypes: {
293
311
  contentLeft: {
@@ -343,6 +361,7 @@ const StoryVerticalDefault = (props: VerticalStoryTabsProps) => {
343
361
  contentRight: contentRightOption,
344
362
  hasDivider,
345
363
  helperText,
364
+ maxItemWidth,
346
365
  } = props;
347
366
  const items = Array(itemQuantity).fill(0);
348
367
  const [index, setIndex] = useState(0);
@@ -363,8 +382,9 @@ const StoryVerticalDefault = (props: VerticalStoryTabsProps) => {
363
382
  value={helperText}
364
383
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
365
384
  size={size as Size}
385
+ maxItemWidth={maxItemWidth}
366
386
  >
367
- {`Label${i + 1}`}
387
+ {`${labels[i % labels.length]} ${i + 1}`}
368
388
  </TabItem>
369
389
  );
370
390
  }
@@ -381,8 +401,9 @@ const StoryVerticalDefault = (props: VerticalStoryTabsProps) => {
381
401
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
382
402
  contentRight={getContentRight(contentRightOption, size as Size)}
383
403
  size={size as Size}
404
+ maxItemWidth={maxItemWidth}
384
405
  >
385
- {`Label${i + 1}`}
406
+ {`${labels[i % labels.length]} ${i + 1}`}
386
407
  </TabItem>
387
408
  );
388
409
  })}
@@ -401,6 +422,7 @@ const StoryVerticalScroll = (props: VerticalStoryTabsProps) => {
401
422
  hasDivider,
402
423
  helperText,
403
424
  height,
425
+ maxItemWidth,
404
426
  } = props;
405
427
  const items = Array(itemQuantity).fill(0);
406
428
  const [index, setIndex] = useState(0);
@@ -428,8 +450,9 @@ const StoryVerticalScroll = (props: VerticalStoryTabsProps) => {
428
450
  value={helperText}
429
451
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
430
452
  size={size as Size}
453
+ maxItemWidth={maxItemWidth}
431
454
  >
432
- {`Label${i + 1}`}
455
+ {`${labels[i % labels.length]} ${i + 1}`}
433
456
  </TabItem>
434
457
  );
435
458
  }
@@ -446,8 +469,9 @@ const StoryVerticalScroll = (props: VerticalStoryTabsProps) => {
446
469
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
447
470
  contentRight={getContentRight(contentRightOption, size as Size)}
448
471
  size={size as Size}
472
+ maxItemWidth={maxItemWidth}
449
473
  >
450
- {`Label${i + 1}`}
474
+ {`${labels[i % labels.length]} ${i + 1}`}
451
475
  </TabItem>
452
476
  );
453
477
  })}
@@ -465,6 +489,7 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
465
489
  contentRight: contentRightOption,
466
490
  hasDivider,
467
491
  helperText,
492
+ maxItemWidth,
468
493
  } = props;
469
494
  const maxItemQuantity = 3;
470
495
  const items = Array(itemQuantity).fill(0);
@@ -498,8 +523,9 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
498
523
  value={helperText}
499
524
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
500
525
  size={size as Size}
526
+ maxItemWidth={maxItemWidth}
501
527
  >
502
- {`Label${i + 1}`}
528
+ {`${labels[i % labels.length]} ${i + 1}`}
503
529
  </TabItem>
504
530
  );
505
531
  }
@@ -516,8 +542,9 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
516
542
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
517
543
  contentRight={getContentRight(contentRightOption, size as Size)}
518
544
  size={size as Size}
545
+ maxItemWidth={maxItemWidth}
519
546
  >
520
- {`Label${i + 1}`}
547
+ {`${labels[i % labels.length]} ${i + 1}`}
521
548
  </TabItem>
522
549
  );
523
550
  })}
@@ -534,6 +561,7 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
534
561
  tabIndex={!disabled ? 0 : -1}
535
562
  disabled={disabled}
536
563
  size={size as Size}
564
+ maxItemWidth="auto"
537
565
  >
538
566
  ShowAll
539
567
  </TabItem>
@@ -548,10 +576,11 @@ export const VerticalTabs: StoryObj<VerticalStoryTabsProps> = {
548
576
  size: 'xs',
549
577
  disabled: false,
550
578
  hasDivider: true,
551
- itemQuantity: 8,
579
+ itemQuantity: 6,
552
580
  orientation: 'vertical',
553
581
  helperText: '',
554
582
  height: '10rem',
583
+ maxItemWidth: '',
555
584
  },
556
585
  argTypes: {
557
586
  contentLeft: {
@@ -604,7 +633,7 @@ export const VerticalTabs: StoryObj<VerticalStoryTabsProps> = {
604
633
  };
605
634
 
606
635
  const StoryHeaderDefault = (props: HorizontalStoryTabsProps) => {
607
- const { disabled, itemQuantity, size, helperText } = props;
636
+ const { disabled, itemQuantity, size, helperText, maxItemWidth } = props;
608
637
  const items = Array(itemQuantity).fill(0);
609
638
  const [index, setIndex] = useState(0);
610
639
 
@@ -620,6 +649,7 @@ const StoryHeaderDefault = (props: HorizontalStoryTabsProps) => {
620
649
  disabled={disabled}
621
650
  value={helperText}
622
651
  size={size as HeaderSize}
652
+ maxItemWidth={maxItemWidth}
623
653
  >
624
654
  {`Label${i + 1}`}
625
655
  </TabItem>
@@ -629,7 +659,7 @@ const StoryHeaderDefault = (props: HorizontalStoryTabsProps) => {
629
659
  };
630
660
 
631
661
  const StoryHeaderScroll = (props: HorizontalStoryTabsProps) => {
632
- const { disabled, itemQuantity, size, helperText, width } = props;
662
+ const { disabled, itemQuantity, size, helperText, width, maxItemWidth } = props;
633
663
  const items = Array(itemQuantity).fill(0);
634
664
  const [index, setIndex] = useState(0);
635
665
 
@@ -645,8 +675,9 @@ const StoryHeaderScroll = (props: HorizontalStoryTabsProps) => {
645
675
  disabled={disabled}
646
676
  value={helperText}
647
677
  size={size as HeaderSize}
678
+ maxItemWidth={maxItemWidth}
648
679
  >
649
- {`Label${i + 1}`}
680
+ {`${labels[i % labels.length]} ${i + 1}`}
650
681
  </TabItem>
651
682
  ))}
652
683
  </Tabs>
@@ -658,8 +689,9 @@ export const HeaderTabs: StoryObj<HorizontalStoryTabsProps> = {
658
689
  size: 'h5',
659
690
  disabled: false,
660
691
  helperText: '',
661
- itemQuantity: 6,
692
+ itemQuantity: 4,
662
693
  width: '12rem',
694
+ maxItemWidth: '',
663
695
  },
664
696
  argTypes: {
665
697
  clip: {
@@ -34,6 +34,9 @@ var config = exports.config = {
34
34
  },
35
35
  pilled: {
36
36
  "true": /*#__PURE__*/(0, _styledComponents.css)(["", ":1.5rem;"], _Tabs.tabsTokens.itemPilledBorderRadius)
37
+ },
38
+ truncate: {
39
+ "true": /*#__PURE__*/(0, _styledComponents.css)([""])
37
40
  }
38
41
  }
39
42
  };
@@ -23,6 +23,9 @@ var config = exports.config = {
23
23
  },
24
24
  disabled: {
25
25
  "true": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.4;"], _Tabs.tabsTokens.disabledOpacity)
26
+ },
27
+ truncate: {
28
+ "true": /*#__PURE__*/(0, _styledComponents.css)([""])
26
29
  }
27
30
  }
28
31
  };
@@ -4,92 +4,64 @@ export var classes = {
4
4
  export var tokens = {
5
5
  // Токены для TextField
6
6
  textFieldColor: '--plasma-autocomplete-textfield-color',
7
- textFieldClearColor: '--plasma-autocomplete-textfield-clear-color',
7
+ textFieldPlaceholderColorFocus: '--plasma-autocomplete-textfield__placeholder-color-focus',
8
8
  textFieldBackgroundColor: '--plasma-autocomplete-textfield-background-color',
9
9
  textFieldBackgroundColorHover: '--plasma-autocomplete-textfield-background-color-hover',
10
10
  textFieldBackgroundColorFocus: '--plasma-autocomplete-textfield-background-color-focus',
11
11
  textFieldBorderColor: '--plasma-autocomplete-textfield-border-color',
12
12
  textFieldBorderColorHover: '--plasma-autocomplete-textfield-border-color-hover',
13
13
  textFieldBorderColorFocus: '--plasma-autocomplete-textfield-border-color-focus',
14
- textFieldDividerColor: '--plasma-autocomplete-textfield-divider-color',
15
- textFieldDividerColorHover: '--plasma-autocomplete-textfield-divider-color-hover',
16
- textFieldDividerColorFocus: '--plasma-autocomplete-textfield-divider-color-focus',
17
14
  textFieldColorReadOnly: '--plasma-autocomplete-textfield-color-readonly',
18
15
  textFieldBackgroundColorReadOnly: '--plasma-autocomplete-textfield-bg-color-readonly',
19
16
  textFieldBorderColorReadOnly: '--plasma-autocomplete-textfield-border-color-readonly',
20
- textFieldPlaceholderColorReadOnly: '--plasma-autocomplete-textfield-placeholder-color-readonly',
21
- textFieldDividerColorReadOnly: '--plasma-autocomplete-textfield-divider-color-readonly',
17
+ textFieldPlaceholderColorReadOnly: '--plasma-autocomplete-textfield__placeholder-color-readonly',
22
18
  textFieldCaretColor: '--plasma-autocomplete-textfield-caret-color',
23
19
  textFieldPlaceholderColor: '--plasma-autocomplete-textfield-placeholder-color',
24
- textFieldPlaceholderColorFocus: '--plasma-autocomplete-textfield-placeholder-color-focus',
25
- textFieldClearPlaceholderColor: '--plasma-autocomplete-textfield-clear-placeholder-color',
26
- textFieldClearPlaceholderColorFocus: '--plasma-autocomplete-textfield-clear-placeholder-color-focus',
27
- textFieldOptionalColor: '--plasma-autocomplete-textfield-optional-color',
28
20
  textFieldHeight: '--plasma-autocomplete-textfield-height',
29
21
  textFieldBorderWidth: '--plasma-autocomplete-textfield-border-width',
30
22
  textFieldBorderRadius: '--plasma-autocomplete-textfield-border-radius',
31
23
  textFieldPadding: '--plasma-autocomplete-textfield-padding',
32
- textFieldLeftContentMargin: '--plasma-autocomplete-textfield-left-content-margin',
33
- textFieldRightContentMargin: '--plasma-autocomplete-textfield-right-content-margin',
24
+ textFieldLeftContentMargin: '--plasma-autocomplete-textfield__left-content-margin',
25
+ textFieldRightContentMargin: '--plasma-autocomplete-textfield__right-content-margin',
34
26
  textFieldFontFamily: '--plasma-autocomplete-textfield-font-family',
35
27
  textFieldFontStyle: '--plasma-autocomplete-textfield-font-style',
36
28
  textFieldFontSize: '--plasma-autocomplete-textfield-font-size',
37
29
  textFieldFontWeight: '--plasma-autocomplete-textfield-font-weight',
38
30
  textFieldLetterSpacing: '--plasma-autocomplete-textfield-letter-spacing',
39
31
  textFieldLineHeight: '--plasma-autocomplete-textfield-line-height',
40
- textFieldContentSlotColor: '--plasma-autocomplete-textfield-content-slot-color',
41
- textFieldContentSlotColorHover: '--plasma-autocomplete-textfield-content-slot-color-hover',
42
- textFieldContentSlotColorActive: '--plasma-autocomplete-textfield-content-slot-color-active',
43
- textFieldContentSlotRightColor: '--plasma-autocomplete-textfield-content-right-slot-color',
44
- //
45
- textFieldContentSlotRightColorHover: '--plasma-autocomplete-textfield-content-right-slot-color-hover',
46
- //
47
- textFieldContentSlotRightColorActive: '--plasma-autocomplete-textfield-content-right-slot-color-active',
48
- //
49
-
50
32
  textFieldLabelColor: '--plasma-autocomplete-textfield-label-color',
51
- textFieldLabelColorReadOnly: '--plasma-autocomplete-textfield-label-color-readonly',
52
- textFieldLabelOffset: '--plasma-autocomplete-textfield-label-offset',
53
- textFieldClearLabelOffset: '--plasma-autocomplete-textfield-clear-label-offset',
54
- textFieldLabelFontFamily: '--plasma-autocomplete-textfield-label-font-family',
55
- textFieldLabelFontStyle: '--plasma-autocomplete-textfield-label-font-style',
56
- textFieldLabelFontSize: '--plasma-autocomplete-textfield-label-font-size',
57
- textFieldLabelFontWeight: '--plasma-autocomplete-textfield-label-font-weight',
58
- textFieldLabelLetterSpacing: '--plasma-autocomplete-textfield-label-letter-spacing',
59
- textFieldLabelLineHeight: '--plasma-autocomplete-textfield-label-line-height',
60
- textFieldLabelInnerFontFamily: '--plasma-autocomplete-textfield-placement-inner-label-font-family',
61
- textFieldLabelInnerFontStyle: '--plasma-autocomplete-textfield-placement-inner-label-font-style',
62
- textFieldLabelInnerFontSize: '--plasma-autocomplete-textfield-placement-inner-label-font-size',
63
- textFieldLabelInnerFontWeight: '--plasma-autocomplete-textfield-placement-inner-label-font-weight',
64
- textFieldLabelInnerLetterSpacing: '--plasma-autocomplete-textfield-placement-inner-label-letter-spacing',
65
- textFieldLabelInnerLineHeight: '--plasma-autocomplete-textfield-placement-inner-label-line-height',
66
- textFieldLabelInnerPadding: '--plasma-autocomplete-textfield-placement-inner-label-padding',
67
- textFieldContentLabelInnerPadding: '--plasma-autocomplete-textfield-placement-inner-content-padding',
68
- textFieldLeftHelperColor: '--plasma-autocomplete-textfield-left-helper-color',
69
- textFieldLeftHelperColorReadOnly: '--plasma-autocomplete-textfield-left-helper-color-readonly',
70
- textFieldLeftHelperOffset: '--plasma-autocomplete-textfield-left-helper-offset',
71
- textFieldLeftHelperFontFamily: '--plasma-autocomplete-textfield-left-helper-font-family',
72
- textFieldLeftHelperFontStyle: '--plasma-autocomplete-textfield-left-helper-font-style',
73
- textFieldLeftHelperFontSize: '--plasma-autocomplete-textfield-left-helper-font-size',
74
- textFieldLeftHelperFontWeight: '--plasma-autocomplete-textfield-left-helper-font-weight',
75
- textFieldLeftHelperLetterSpacing: '--plasma-autocomplete-textfield-left-helper-letter-spacing',
76
- textFieldLeftHelperLineHeight: '--plasma-autocomplete-textfield-left-helper-line-height',
77
- textFieldTextBeforeColor: '--plasma-autocomplete-textfield-before-text-color',
78
- textFieldTextAfterColor: '--plasma-autocomplete-textfield-after-text-color',
79
- textFieldTextBeforeMargin: '--plasma-autocomplete-textfield-before-text-margin',
80
- textFieldTextAfterMargin: '--plasma-autocomplete-textfield-after-text-margin',
33
+ textFieldLabelColorReadOnly: '--plasma-autocomplete-textfield__label-color-readonly',
34
+ textFieldLabelOffset: '--plasma-autocomplete-textfield__label-offset',
35
+ textFieldLabelFontFamily: '--plasma-autocomplete-textfield__label-font-family',
36
+ textFieldLabelFontStyle: '--plasma-autocomplete-textfield__label-font-style',
37
+ textFieldLabelFontSize: '--plasma-autocomplete-textfield__label-font-size',
38
+ textFieldLabelFontWeight: '--plasma-autocomplete-textfield__label-font-weight',
39
+ textFieldLabelLetterSpacing: '--plasma-autocomplete-textfield__label-letter-spacing',
40
+ textFieldLabelLineHeight: '--plasma-autocomplete-textfield__label-line-height',
41
+ textFieldLabelInnerFontFamily: '--plasma-autocomplete-textfield-placement_inner__label-font-family',
42
+ textFieldLabelInnerFontStyle: '--plasma-autocomplete-textfield-placement_inner__label-font-style',
43
+ textFieldLabelInnerFontSize: '--plasma-autocomplete-textfield-placement_inner__label-font-size',
44
+ textFieldLabelInnerFontWeight: '--plasma-autocomplete-textfield-placement_inner__label-font-weight',
45
+ textFieldLabelInnerLetterSpacing: '--plasma-autocomplete-textfield-placement_inner__label-letter-spacing',
46
+ textFieldLabelInnerLineHeight: '--plasma-autocomplete-textfield-placement_inner__label-line-height',
47
+ textFieldLabelInnerPadding: '--plasma-autocomplete-textfield-placement_inner__label-padding',
48
+ textFieldContentLabelInnerPadding: '--plasma-autocomplete-textfield-placement_inner__content-padding',
49
+ textFieldLeftHelperColor: '--plasma-autocomplete-textfield__left-helper-color',
50
+ textFieldLeftHelperColorReadOnly: '--plasma-autocomplete-textfield__left-helper-color-readonly',
51
+ textFieldLeftHelperOffset: '--plasma-autocomplete-textfield__left-helper-offset',
52
+ textFieldLeftHelperFontFamily: '--plasma-autocomplete-textfield__left-helper-font-family',
53
+ textFieldLeftHelperFontStyle: '--plasma-autocomplete-textfield__left-helper-font-style',
54
+ textFieldLeftHelperFontSize: '--plasma-autocomplete-textfield__left-helper-font-size',
55
+ textFieldLeftHelperFontWeight: '--plasma-autocomplete-textfield__left-helper-font-weight',
56
+ textFieldLeftHelperLetterSpacing: '--plasma-autocomplete-textfield__left-helper-letter-spacing',
57
+ textFieldLeftHelperLineHeight: '--plasma-autocomplete-textfield__left-helper-line-height',
58
+ textFieldTextBeforeColor: '--plasma-autocomplete-textfield__before-text-color',
59
+ textFieldTextAfterColor: '--plasma-autocomplete-textfield__after-text-color',
60
+ textFieldTextBeforeMargin: '--plasma-autocomplete-textfield__before-text-margin',
61
+ textFieldTextAfterMargin: '--plasma-autocomplete-textfield__after-text-margin',
81
62
  textFieldDisabledOpacity: '--plasma-autocomplete-textfield-disabled-opacity',
82
63
  textFieldFocusColor: '--plasma-autocomplete-textfield-focus-color',
83
- textFieldIndicatorColor: '--plasma-autocomplete-textfield-indicator-color',
84
- textFieldIndicatorSizeInner: '--plasma-autocomplete-textfield-indicator-size-inner',
85
- textFieldIndicatorSizeOuter: '--plasma-autocomplete-textfield-indicator-size-outer',
86
- textFieldIndicatorLabelPlacementInner: '--plasma-autocomplete-textfield-indicator-label-placement-inner',
87
- textFieldIndicatorLabelPlacementOuter: '--plasma-autocomplete-textfield-indicator-label-placement-outer',
88
- textFieldIndicatorLabelPlacementInnerRight: '--plasma-autocomplete-textfield-indicator-label-placement-inner-right',
89
- textFieldIndicatorLabelPlacementOuterRight: '--plasma-autocomplete-textfield-indicator-label-placement-outer-right',
90
- textFieldClearIndicatorLabelPlacementInner: '--plasma-autocomplete-textfield-clear-indicator-label-placement-inner',
91
- textFieldClearIndicatorLabelPlacementInnerRight: '--plasma-autocomplete-textfield-clear-indicator-label-placement-inner-right',
92
- textFieldClearIndicatorHintInnerRight: '--plasma-autocomplete-textfield-clear-indicator-hint-placement-inner-right',
64
+ textFieldContentSlotColor: '--plasma-autocomplete-content-color',
93
65
  // Токены для дропдауна
94
66
  background: '--plasma-autocomplete-background',
95
67
  boxShadow: '--plasma-autocomplete-box-shadow',
@@ -6,4 +6,4 @@ var mergedConfig = /*#__PURE__*/mergeConfig(textFieldConfig);
6
6
  var TextField = /*#__PURE__*/component(mergedConfig);
7
7
  export var StyledTextField = /*#__PURE__*/styled(TextField).withConfig({
8
8
  componentId: "plasma-new-hope__sc-1rp2ggs-0"
9
- })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], textFieldTokens.color, autocompleteTokens.textFieldColor, textFieldTokens.clearColor, autocompleteTokens.textFieldClearColor, textFieldTokens.placeholderColor, autocompleteTokens.textFieldPlaceholderColor, textFieldTokens.placeholderColorFocus, autocompleteTokens.textFieldPlaceholderColorFocus, textFieldTokens.clearPlaceholderColor, autocompleteTokens.textFieldClearPlaceholderColor, textFieldTokens.clearPlaceholderColorFocus, autocompleteTokens.textFieldClearPlaceholderColorFocus, textFieldTokens.optionalColor, autocompleteTokens.textFieldOptionalColor, textFieldTokens.backgroundColor, autocompleteTokens.textFieldBackgroundColor, textFieldTokens.backgroundColorHover, autocompleteTokens.textFieldBackgroundColorHover, textFieldTokens.backgroundColorFocus, autocompleteTokens.textFieldBackgroundColorFocus, textFieldTokens.borderColor, autocompleteTokens.textFieldBorderColor, textFieldTokens.borderColorHover, autocompleteTokens.textFieldBorderColorHover, textFieldTokens.borderColorFocus, autocompleteTokens.textFieldBorderColorFocus, textFieldTokens.dividerColor, autocompleteTokens.textFieldDividerColor, textFieldTokens.dividerColorHover, autocompleteTokens.textFieldDividerColorHover, textFieldTokens.dividerColorFocus, autocompleteTokens.textFieldDividerColorFocus, textFieldTokens.colorReadOnly, autocompleteTokens.textFieldColorReadOnly, textFieldTokens.backgroundColorReadOnly, autocompleteTokens.textFieldBackgroundColorReadOnly, textFieldTokens.borderColorReadOnly, autocompleteTokens.textFieldBorderColorReadOnly, textFieldTokens.placeholderColorReadOnly, autocompleteTokens.textFieldPlaceholderColorReadOnly, textFieldTokens.dividerColorReadOnly, autocompleteTokens.textFieldDividerColorReadOnly, textFieldTokens.caretColor, autocompleteTokens.textFieldCaretColor, textFieldTokens.height, autocompleteTokens.textFieldHeight, textFieldTokens.borderWidth, autocompleteTokens.textFieldBorderWidth, textFieldTokens.borderRadius, autocompleteTokens.textFieldBorderRadius, textFieldTokens.padding, autocompleteTokens.textFieldPadding, textFieldTokens.leftContentMargin, autocompleteTokens.textFieldLeftContentMargin, textFieldTokens.rightContentMargin, autocompleteTokens.textFieldRightContentMargin, textFieldTokens.fontFamily, autocompleteTokens.textFieldFontFamily, textFieldTokens.fontStyle, autocompleteTokens.textFieldFontStyle, textFieldTokens.fontSize, autocompleteTokens.textFieldFontSize, textFieldTokens.fontWeight, autocompleteTokens.textFieldFontWeight, textFieldTokens.letterSpacing, autocompleteTokens.textFieldLetterSpacing, textFieldTokens.lineHeight, autocompleteTokens.textFieldLineHeight, textFieldTokens.labelColor, autocompleteTokens.textFieldLabelColor, textFieldTokens.labelColorReadOnly, autocompleteTokens.textFieldLabelColorReadOnly, textFieldTokens.labelOffset, autocompleteTokens.textFieldLabelOffset, textFieldTokens.clearLabelOffset, autocompleteTokens.textFieldClearLabelOffset, textFieldTokens.labelFontFamily, autocompleteTokens.textFieldLabelFontFamily, textFieldTokens.labelFontStyle, autocompleteTokens.textFieldLabelFontStyle, textFieldTokens.labelFontSize, autocompleteTokens.textFieldLabelFontSize, textFieldTokens.labelFontWeight, autocompleteTokens.textFieldLabelFontWeight, textFieldTokens.labelLetterSpacing, autocompleteTokens.textFieldLabelLetterSpacing, textFieldTokens.labelLineHeight, autocompleteTokens.textFieldLabelLineHeight, textFieldTokens.labelInnerFontFamily, autocompleteTokens.textFieldLabelInnerFontFamily, textFieldTokens.labelInnerFontStyle, autocompleteTokens.textFieldLabelInnerFontStyle, textFieldTokens.labelInnerFontSize, autocompleteTokens.textFieldLabelInnerFontSize, textFieldTokens.labelInnerFontWeight, autocompleteTokens.textFieldLabelInnerFontWeight, textFieldTokens.labelInnerLetterSpacing, autocompleteTokens.textFieldLabelInnerLetterSpacing, textFieldTokens.labelInnerLineHeight, autocompleteTokens.textFieldLabelInnerLineHeight, textFieldTokens.labelInnerPadding, autocompleteTokens.textFieldLabelInnerPadding, textFieldTokens.contentLabelInnerPadding, autocompleteTokens.textFieldContentLabelInnerPadding, textFieldTokens.leftHelperColor, autocompleteTokens.textFieldLeftHelperColor, textFieldTokens.leftHelperColorReadOnly, autocompleteTokens.textFieldLeftHelperColorReadOnly, textFieldTokens.leftHelperOffset, autocompleteTokens.textFieldLeftHelperOffset, textFieldTokens.leftHelperFontFamily, autocompleteTokens.textFieldLeftHelperFontFamily, textFieldTokens.leftHelperFontStyle, autocompleteTokens.textFieldLeftHelperFontStyle, textFieldTokens.leftHelperFontSize, autocompleteTokens.textFieldLeftHelperFontSize, textFieldTokens.leftHelperFontWeight, autocompleteTokens.textFieldLeftHelperFontWeight, textFieldTokens.leftHelperLetterSpacing, autocompleteTokens.textFieldLeftHelperLetterSpacing, textFieldTokens.leftHelperLineHeight, autocompleteTokens.textFieldLeftHelperLineHeight, textFieldTokens.textBeforeColor, autocompleteTokens.textFieldTextBeforeColor, textFieldTokens.textAfterColor, autocompleteTokens.textFieldTextAfterColor, textFieldTokens.textBeforeMargin, autocompleteTokens.textFieldTextBeforeMargin, textFieldTokens.textAfterMargin, autocompleteTokens.textFieldTextAfterMargin, textFieldTokens.disabledOpacity, autocompleteTokens.textFieldDisabledOpacity, textFieldTokens.focusColor, autocompleteTokens.textFieldFocusColor, textFieldTokens.contentSlotColor, autocompleteTokens.textFieldContentSlotColor, textFieldTokens.contentSlotColorHover, autocompleteTokens.textFieldContentSlotColorHover, textFieldTokens.contentSlotColorActive, autocompleteTokens.textFieldContentSlotColorActive, textFieldTokens.contentSlotRightColor, autocompleteTokens.textFieldContentSlotRightColor, textFieldTokens.contentSlotRightColorHover, autocompleteTokens.textFieldContentSlotRightColorHover, textFieldTokens.contentSlotRightColorActive, autocompleteTokens.textFieldContentSlotRightColorActive, textFieldTokens.indicatorColor, autocompleteTokens.textFieldIndicatorColor, textFieldTokens.indicatorSizeInner, autocompleteTokens.textFieldIndicatorSizeInner, textFieldTokens.indicatorSizeOuter, autocompleteTokens.textFieldIndicatorSizeOuter, textFieldTokens.indicatorLabelPlacementInner, autocompleteTokens.textFieldIndicatorLabelPlacementInner, textFieldTokens.indicatorLabelPlacementOuter, autocompleteTokens.textFieldIndicatorLabelPlacementOuter, textFieldTokens.indicatorLabelPlacementInnerRight, autocompleteTokens.textFieldIndicatorLabelPlacementInnerRight, textFieldTokens.indicatorLabelPlacementOuterRight, autocompleteTokens.textFieldIndicatorLabelPlacementOuterRight, textFieldTokens.clearIndicatorLabelPlacementInner, autocompleteTokens.textFieldClearIndicatorLabelPlacementInner, textFieldTokens.clearIndicatorLabelPlacementInnerRight, autocompleteTokens.textFieldClearIndicatorLabelPlacementInnerRight, textFieldTokens.clearIndicatorHintInnerRight, autocompleteTokens.textFieldClearIndicatorHintInnerRight);
9
+ })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ",var(", "));"], textFieldTokens.color, autocompleteTokens.textFieldColor, textFieldTokens.placeholderColorFocus, autocompleteTokens.textFieldPlaceholderColorFocus, textFieldTokens.backgroundColor, autocompleteTokens.textFieldBackgroundColor, textFieldTokens.backgroundColorHover, autocompleteTokens.textFieldBackgroundColorHover, textFieldTokens.backgroundColorFocus, autocompleteTokens.textFieldBackgroundColorFocus, textFieldTokens.borderColor, autocompleteTokens.textFieldBorderColor, textFieldTokens.borderColorHover, autocompleteTokens.textFieldBorderColorHover, textFieldTokens.borderColorFocus, autocompleteTokens.textFieldBorderColorFocus, textFieldTokens.colorReadOnly, autocompleteTokens.textFieldColorReadOnly, textFieldTokens.backgroundColorReadOnly, autocompleteTokens.textFieldBackgroundColorReadOnly, textFieldTokens.borderColorReadOnly, autocompleteTokens.textFieldBorderColorReadOnly, textFieldTokens.placeholderColorReadOnly, autocompleteTokens.textFieldPlaceholderColorReadOnly, textFieldTokens.caretColor, autocompleteTokens.textFieldCaretColor, textFieldTokens.placeholderColor, autocompleteTokens.textFieldPlaceholderColor, textFieldTokens.height, autocompleteTokens.textFieldHeight, textFieldTokens.borderWidth, autocompleteTokens.textFieldBorderWidth, textFieldTokens.borderRadius, autocompleteTokens.textFieldBorderRadius, textFieldTokens.padding, autocompleteTokens.textFieldPadding, textFieldTokens.leftContentMargin, autocompleteTokens.textFieldLeftContentMargin, textFieldTokens.rightContentMargin, autocompleteTokens.textFieldRightContentMargin, textFieldTokens.fontFamily, autocompleteTokens.textFieldFontFamily, textFieldTokens.fontStyle, autocompleteTokens.textFieldFontStyle, textFieldTokens.fontSize, autocompleteTokens.textFieldFontSize, textFieldTokens.fontWeight, autocompleteTokens.textFieldFontWeight, textFieldTokens.letterSpacing, autocompleteTokens.textFieldLetterSpacing, textFieldTokens.lineHeight, autocompleteTokens.textFieldLineHeight, textFieldTokens.labelColor, autocompleteTokens.textFieldLabelColor, textFieldTokens.labelColorReadOnly, autocompleteTokens.textFieldLabelColorReadOnly, textFieldTokens.labelOffset, autocompleteTokens.textFieldLabelOffset, textFieldTokens.labelFontFamily, autocompleteTokens.textFieldLabelFontFamily, textFieldTokens.labelFontStyle, autocompleteTokens.textFieldLabelFontStyle, textFieldTokens.labelFontSize, autocompleteTokens.textFieldLabelFontSize, textFieldTokens.labelFontWeight, autocompleteTokens.textFieldLabelFontWeight, textFieldTokens.labelLetterSpacing, autocompleteTokens.textFieldLabelLetterSpacing, textFieldTokens.labelLineHeight, autocompleteTokens.textFieldLabelLineHeight, textFieldTokens.labelInnerFontFamily, autocompleteTokens.textFieldLabelInnerFontFamily, textFieldTokens.labelInnerFontStyle, autocompleteTokens.textFieldLabelInnerFontStyle, textFieldTokens.labelInnerFontSize, autocompleteTokens.textFieldLabelInnerFontSize, textFieldTokens.labelInnerFontWeight, autocompleteTokens.textFieldLabelInnerFontWeight, textFieldTokens.labelInnerLetterSpacing, autocompleteTokens.textFieldLabelInnerLetterSpacing, textFieldTokens.labelInnerLineHeight, autocompleteTokens.textFieldLabelInnerLineHeight, textFieldTokens.labelInnerPadding, autocompleteTokens.textFieldLabelInnerPadding, textFieldTokens.contentLabelInnerPadding, autocompleteTokens.textFieldContentLabelInnerPadding, textFieldTokens.leftHelperColor, autocompleteTokens.textFieldLeftHelperColor, textFieldTokens.leftHelperColorReadOnly, autocompleteTokens.textFieldLeftHelperColorReadOnly, textFieldTokens.leftHelperOffset, autocompleteTokens.textFieldLeftHelperOffset, textFieldTokens.leftHelperFontFamily, autocompleteTokens.textFieldLeftHelperFontFamily, textFieldTokens.leftHelperFontStyle, autocompleteTokens.textFieldLeftHelperFontStyle, textFieldTokens.leftHelperFontSize, autocompleteTokens.textFieldLeftHelperFontSize, textFieldTokens.leftHelperFontWeight, autocompleteTokens.textFieldLeftHelperFontWeight, textFieldTokens.leftHelperLetterSpacing, autocompleteTokens.textFieldLeftHelperLetterSpacing, textFieldTokens.leftHelperLineHeight, autocompleteTokens.textFieldLeftHelperLineHeight, textFieldTokens.textBeforeColor, autocompleteTokens.textFieldTextBeforeColor, textFieldTokens.textAfterColor, autocompleteTokens.textFieldTextAfterColor, textFieldTokens.textBeforeMargin, autocompleteTokens.textFieldTextBeforeMargin, textFieldTokens.textAfterMargin, autocompleteTokens.textFieldTextAfterMargin, textFieldTokens.disabledOpacity, autocompleteTokens.textFieldDisabledOpacity, textFieldTokens.focusColor, autocompleteTokens.textFieldFocusColor, textFieldTokens.contentSlotColor, autocompleteTokens.textFieldContentSlotColor, autocompleteTokens.textFieldColor);
@@ -1,5 +1,11 @@
1
- var _excluded = ["children", "className", "text", "contentLeft", "contentRight", "size", "view", "pilled", "transparent", "clear"];
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["children", "className", "text", "contentLeft", "contentRight", "size", "view", "pilled", "transparent", "clear", "maxWidth"];
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 } from 'react';
@@ -9,6 +15,7 @@ import { base as sizeCSS } from './variations/_size/base';
9
15
  import { base as pilledCSS } from './variations/_pilled/base';
10
16
  import { base as transparentCSS } from './variations/_transparent/base';
11
17
  import { base as clearCSS } from './variations/_clear/base';
18
+ import { base as truncateCSS } from './variations/_truncate/base';
12
19
  import { StyledContentLeft, StyledContentMain, StyledContentRight, base } from './Badge.styles';
13
20
  import { classes } from './Badge.tokens';
14
21
  export var badgeRoot = function badgeRoot(Root) {
@@ -26,20 +33,28 @@ export var badgeRoot = function badgeRoot(Root) {
26
33
  transparent = _props$transparent === void 0 ? false : _props$transparent,
27
34
  _props$clear = props.clear,
28
35
  clear = _props$clear === void 0 ? false : _props$clear,
36
+ _props$maxWidth = props.maxWidth,
37
+ maxWidth = _props$maxWidth === void 0 ? 'auto' : _props$maxWidth,
29
38
  rest = _objectWithoutProperties(props, _excluded);
30
39
  var pilledClass = pilled ? classes.badgePilled : undefined;
31
40
  var transparentClass = transparent ? classes.badgeTransparent : undefined;
32
41
  var clearClass = clear ? classes.badgeClear : undefined;
33
42
  var txt = !text && typeof children === 'string' ? children : text;
43
+ var truncate = maxWidth !== 'auto';
34
44
  return /*#__PURE__*/React.createElement(Root, _extends({
35
45
  ref: ref,
36
- className: cx(pilledClass, transparentClass, clearClass, className),
46
+ className: cx(pilledClass, transparentClass, clearClass, truncate && classes.badgeTruncate, className),
37
47
  view: view,
38
48
  size: size,
39
49
  pilled: pilled,
40
50
  transparent: transparent,
41
- clear: clear
42
- }, rest), contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), txt ? /*#__PURE__*/React.createElement(StyledContentMain, null, txt) : children, contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight));
51
+ clear: clear,
52
+ truncate: truncate
53
+ }, rest, {
54
+ style: _objectSpread(_objectSpread({}, rest.style), {}, {
55
+ maxWidth: maxWidth
56
+ })
57
+ }), contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), txt ? /*#__PURE__*/React.createElement(StyledContentMain, null, txt) : children, contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight));
43
58
  });
44
59
  };
45
60
  export var badgeConfig = {
@@ -65,6 +80,10 @@ export var badgeConfig = {
65
80
  clear: {
66
81
  css: clearCSS,
67
82
  attrs: true
83
+ },
84
+ truncate: {
85
+ css: truncateCSS,
86
+ attrs: true
68
87
  }
69
88
  },
70
89
  defaults: {
@@ -1,7 +1,8 @@
1
1
  export var classes = {
2
2
  badgePilled: 'badge-pilled',
3
3
  badgeTransparent: 'badge-transparent',
4
- badgeClear: 'badge-clear'
4
+ badgeClear: 'badge-clear',
5
+ badgeTruncate: 'badge-truncate'
5
6
  };
6
7
  export var tokens = {
7
8
  background: '--plasma-badge-background',
@@ -0,0 +1,4 @@
1
+ import { css } from 'styled-components';
2
+ import { classes } from '../../Badge.tokens';
3
+ import { StyledContentMain } from '../../Badge.styles';
4
+ export var base = /*#__PURE__*/css(["&.", "{max-width:100%;", "{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}"], classes.badgeTruncate, StyledContentMain);
@@ -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',