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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. package/cjs/components/Badge/Badge.css +0 -2
  2. package/cjs/components/Badge/Badge.js +4 -17
  3. package/cjs/components/Badge/Badge.js.map +1 -1
  4. package/cjs/components/Badge/Badge.tokens.js +1 -2
  5. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  6. package/cjs/components/Tabs/tokens.js +1 -2
  7. package/cjs/components/Tabs/tokens.js.map +1 -1
  8. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -7
  9. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -14
  10. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  11. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  12. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  13. package/{es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1vj7dbl.css → cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css} +1 -1
  14. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -7
  15. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -14
  16. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  17. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  18. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  19. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css +5 -0
  20. package/cjs/components/TextArea/TextArea.js +1 -1
  21. package/cjs/components/TextArea/TextArea.js.map +1 -1
  22. package/cjs/components/TextArea/hooks/useAutoResize.js +3 -3
  23. package/cjs/components/TextArea/hooks/useAutoResize.js.map +1 -1
  24. package/cjs/index.css +10 -16
  25. package/emotion/cjs/components/Badge/Badge.js +4 -22
  26. package/emotion/cjs/components/Badge/Badge.tokens.js +1 -2
  27. package/emotion/cjs/components/Tabs/tokens.js +1 -2
  28. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -19
  29. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  30. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -19
  31. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  32. package/emotion/cjs/components/TextArea/TextArea.js +2 -2
  33. package/emotion/cjs/components/TextArea/hooks/useAutoResize.js +3 -3
  34. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +14 -17
  35. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  36. package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  37. package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  38. package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  39. package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  40. package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  41. package/emotion/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  42. package/emotion/es/components/Badge/Badge.js +4 -23
  43. package/emotion/es/components/Badge/Badge.tokens.js +1 -2
  44. package/emotion/es/components/Tabs/tokens.js +1 -2
  45. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -20
  46. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  47. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -20
  48. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  49. package/emotion/es/components/TextArea/TextArea.js +2 -2
  50. package/emotion/es/components/TextArea/hooks/useAutoResize.js +3 -3
  51. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +14 -17
  52. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  53. package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  54. package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  55. package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  56. package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  57. package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  58. package/emotion/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  59. package/es/components/Badge/Badge.css +0 -2
  60. package/es/components/Badge/Badge.js +5 -18
  61. package/es/components/Badge/Badge.js.map +1 -1
  62. package/es/components/Badge/Badge.tokens.js +1 -2
  63. package/es/components/Badge/Badge.tokens.js.map +1 -1
  64. package/es/components/Tabs/tokens.js +1 -2
  65. package/es/components/Tabs/tokens.js.map +1 -1
  66. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -7
  67. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +4 -15
  68. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  69. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  70. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  71. package/{cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1vj7dbl.css → es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css} +1 -1
  72. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -7
  73. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +4 -15
  74. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  75. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  76. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  77. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css +5 -0
  78. package/es/components/TextArea/TextArea.js +1 -1
  79. package/es/components/TextArea/TextArea.js.map +1 -1
  80. package/es/components/TextArea/hooks/useAutoResize.js +3 -3
  81. package/es/components/TextArea/hooks/useAutoResize.js.map +1 -1
  82. package/es/index.css +10 -16
  83. package/package.json +2 -2
  84. package/styled-components/cjs/components/Badge/Badge.js +4 -22
  85. package/styled-components/cjs/components/Badge/Badge.tokens.js +1 -2
  86. package/styled-components/cjs/components/Tabs/tokens.js +1 -2
  87. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -19
  88. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  89. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -19
  90. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  91. package/styled-components/cjs/components/TextArea/TextArea.js +1 -1
  92. package/styled-components/cjs/components/TextArea/hooks/useAutoResize.js +3 -3
  93. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +0 -3
  94. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  95. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  96. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  97. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  98. package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  99. package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  100. package/styled-components/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  101. package/styled-components/es/components/Badge/Badge.js +4 -23
  102. package/styled-components/es/components/Badge/Badge.tokens.js +1 -2
  103. package/styled-components/es/components/Tabs/tokens.js +1 -2
  104. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -20
  105. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  106. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -20
  107. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  108. package/styled-components/es/components/TextArea/TextArea.js +1 -1
  109. package/styled-components/es/components/TextArea/hooks/useAutoResize.js +3 -3
  110. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +0 -3
  111. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  112. package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  113. package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  114. package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  115. package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  116. package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  117. package/styled-components/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  118. package/types/components/Badge/Badge.d.ts +2 -10
  119. package/types/components/Badge/Badge.d.ts.map +1 -1
  120. package/types/components/Badge/Badge.tokens.d.ts +0 -1
  121. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  122. package/types/components/Badge/Badge.types.d.ts +0 -5
  123. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  124. package/types/components/Tabs/TabItem.types.d.ts +0 -5
  125. package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
  126. package/types/components/Tabs/tokens.d.ts +0 -1
  127. package/types/components/Tabs/tokens.d.ts.map +1 -1
  128. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts +2 -9
  129. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
  130. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
  131. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts +2 -9
  132. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts.map +1 -1
  133. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
  134. package/types/components/TextArea/hooks/useAutoResize.d.ts +1 -1
  135. package/types/components/TextArea/hooks/useAutoResize.d.ts.map +1 -1
  136. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts +0 -3
  137. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  138. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +0 -6
  139. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  140. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +0 -6
  141. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
  142. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +0 -3
  143. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  144. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts +0 -3
  145. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  146. package/types/examples/plasma_web/components/Badge/Badge.d.ts +0 -3
  147. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  148. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts +0 -6
  149. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts.map +1 -1
  150. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +0 -3
  151. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  152. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts +0 -3
  153. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  154. package/cjs/components/Badge/variations/_truncate/base.js +0 -9
  155. package/cjs/components/Badge/variations/_truncate/base.js.map +0 -1
  156. package/cjs/components/Badge/variations/_truncate/base_nf9u2h.css +0 -1
  157. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -9
  158. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +0 -1
  159. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +0 -1
  160. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_hh65kv.css +0 -5
  161. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -9
  162. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +0 -1
  163. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +0 -1
  164. package/emotion/cjs/components/Badge/variations/_truncate/base.js +0 -10
  165. package/emotion/cjs/components/Badge/variations/_truncate/tokens.json +0 -1
  166. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -10
  167. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
  168. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -10
  169. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
  170. package/emotion/es/components/Badge/variations/_truncate/base.js +0 -4
  171. package/emotion/es/components/Badge/variations/_truncate/tokens.json +0 -1
  172. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -4
  173. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
  174. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -4
  175. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
  176. package/es/components/Badge/variations/_truncate/base.js +0 -5
  177. package/es/components/Badge/variations/_truncate/base.js.map +0 -1
  178. package/es/components/Badge/variations/_truncate/base_nf9u2h.css +0 -1
  179. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -5
  180. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +0 -1
  181. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +0 -1
  182. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_hh65kv.css +0 -5
  183. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -5
  184. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +0 -1
  185. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +0 -1
  186. package/styled-components/cjs/components/Badge/variations/_truncate/base.js +0 -10
  187. package/styled-components/cjs/components/Badge/variations/_truncate/tokens.json +0 -1
  188. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -10
  189. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
  190. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -10
  191. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
  192. package/styled-components/es/components/Badge/variations/_truncate/base.js +0 -4
  193. package/styled-components/es/components/Badge/variations/_truncate/tokens.json +0 -1
  194. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -4
  195. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
  196. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -4
  197. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
  198. package/types/components/Badge/variations/_truncate/base.d.ts +0 -2
  199. package/types/components/Badge/variations/_truncate/base.d.ts.map +0 -1
  200. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts +0 -2
  201. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts.map +0 -1
  202. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts +0 -2
  203. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts.map +0 -1
package/es/index.css CHANGED
@@ -250,13 +250,11 @@
250
250
 
251
251
  .base_1ogr2cm_bt431lh__e8119f61[disabled]{cursor:not-allowed;}.base_1ogr2cm_bt431lh__e8119f61[disabled]:hover{color:var(--plasma-tab-item-color);background-color:var(--plasma-tab-item-background-color);}.base_1ogr2cm_bt431lh__e8119f61[disabled].base_1ogr2cm_selectedTabsItem__e8119f61:hover{color:var(--plasma-tab-item-selected-color);background-color:var(--plasma-tab-item-selected-background-color);}
252
252
 
253
- .base_1b34xv3_b1cew4xy__f781c681.base_1b34xv3_tabsTruncate__f781c681 .base_1b34xv3_s1l5e9z0__f781c681{overflow:hidden;text-overflow:ellipsis;}.base_1b34xv3_b1cew4xy__f781c681.base_1b34xv3_tabsTruncate__f781c681 .base_1b34xv3_t1nh4m12__f781c681{overflow:hidden;text-overflow:ellipsis;}
254
-
255
- .HorizontalTabItem_styles_1vj7dbl_bkuum0w__ff9d3342{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;box-sizing:border-box;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;white-space:nowrap;gap:var(--plasma-tab-item-content-gap);padding:var(--plasma-tab-item-padding-clear,var(--plasma-tab-item-padding));-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative;}.HorizontalTabItem_styles_1vj7dbl_bkuum0w__ff9d3342:first-child{margin-left:0;}.HorizontalTabItem_styles_1vj7dbl_bkuum0w__ff9d3342::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma_private-outline-radius) + 0.063rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.HorizontalTabItem_styles_1vj7dbl_bkuum0w__ff9d3342.HorizontalTabItem_styles_1vj7dbl_focusVisible__ff9d3342:focus::before,.HorizontalTabItem_styles_1vj7dbl_bkuum0w__ff9d3342[data-focus-visible-added]::before{z-index:1;outline:none;box-shadow:0 0 0 0.063rem var(--plasma-tabs-outline-focus-color);}
256
- .HorizontalTabItem_styles_1vj7dbl_s1l5e9z0__ff9d3342{display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0 var(--plasma-tab-item-content-padding-clear,var(--plasma-tab-item-content-padding));}
257
- .HorizontalTabItem_styles_1vj7dbl_t1nh4m12__ff9d3342{color:var(--plasma-tab-item-value-color);}
258
- .HorizontalTabItem_styles_1vj7dbl_r13nweg3__ff9d3342{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.HorizontalTabItem_styles_1vj7dbl_r13nweg3__ff9d3342:hover{color:inherit;}
259
- .HorizontalTabItem_styles_1vj7dbl_l1iip2sx__ff9d3342{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.HorizontalTabItem_styles_1vj7dbl_l1iip2sx__ff9d3342:hover{color:inherit;}
253
+ .HorizontalTabItem_styles_hfqv5b_bkuum0w__5835ec0b{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;box-sizing:border-box;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--plasma-tab-item-content-gap);padding:var(--plasma-tab-item-padding-clear,var(--plasma-tab-item-padding));-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative;}.HorizontalTabItem_styles_hfqv5b_bkuum0w__5835ec0b:first-child{margin-left:0;}.HorizontalTabItem_styles_hfqv5b_bkuum0w__5835ec0b::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma_private-outline-radius) + 0.063rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.HorizontalTabItem_styles_hfqv5b_bkuum0w__5835ec0b.HorizontalTabItem_styles_hfqv5b_focusVisible__5835ec0b:focus::before,.HorizontalTabItem_styles_hfqv5b_bkuum0w__5835ec0b[data-focus-visible-added]::before{z-index:1;outline:none;box-shadow:0 0 0 0.063rem var(--plasma-tabs-outline-focus-color);}
254
+ .HorizontalTabItem_styles_hfqv5b_s1l5e9z0__5835ec0b{display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0 var(--plasma-tab-item-content-padding-clear,var(--plasma-tab-item-content-padding));}
255
+ .HorizontalTabItem_styles_hfqv5b_t1nh4m12__5835ec0b{color:var(--plasma-tab-item-value-color);}
256
+ .HorizontalTabItem_styles_hfqv5b_r13nweg3__5835ec0b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.HorizontalTabItem_styles_hfqv5b_r13nweg3__5835ec0b:hover{color:inherit;}
257
+ .HorizontalTabItem_styles_hfqv5b_l1iip2sx__5835ec0b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.HorizontalTabItem_styles_hfqv5b_l1iip2sx__5835ec0b:hover{color:inherit;}
260
258
 
261
259
  .VerticalTabs_styles_1r1hidh_b2r261u__b37a3ef1{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:0.125rem;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
262
260
  .VerticalTabs_styles_1r1hidh_s1tfgc53__b37a3ef1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:start;-webkit-box-align:start;-ms-flex-align:start;align-items:start;}
@@ -269,11 +267,11 @@
269
267
 
270
268
  .base_do8935_b1vdpmya__377ce78c{opacity:var(--plasma-tabs-disabled-opacity);}
271
269
 
272
- .VerticalTabItem_styles_hh65kv_b1vnvg8i__78556f3b{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;box-sizing:border-box;white-space:nowrap;gap:var(--plasma-tab-item-content-gap);padding:var(--plasma-tab-item-padding-orientation-vertical);-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative;}.VerticalTabItem_styles_hh65kv_b1vnvg8i__78556f3b::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma_private-outline-radius) + 0.063rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.VerticalTabItem_styles_hh65kv_b1vnvg8i__78556f3b.VerticalTabItem_styles_hh65kv_focusVisible__78556f3b:focus::before,.VerticalTabItem_styles_hh65kv_b1vnvg8i__78556f3b[data-focus-visible-added]::before{z-index:1;outline:none;box-shadow:0 0 0 0.063rem var(--plasma-tabs-outline-focus-color);}
273
- .VerticalTabItem_styles_hh65kv_s4s0t81__78556f3b{display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0 var(--plasma-tab-item-content-padding-clear,var(--plasma-tab-item-content-padding));}
274
- .VerticalTabItem_styles_hh65kv_tur46hh__78556f3b{white-space:nowrap;color:var(--plasma-tab-item-value-color);}
275
- .VerticalTabItem_styles_hh65kv_r1ms3p4x__78556f3b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.VerticalTabItem_styles_hh65kv_r1ms3p4x__78556f3b:hover{color:inherit;}
276
- .VerticalTabItem_styles_hh65kv_l1yz2xa4__78556f3b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.VerticalTabItem_styles_hh65kv_l1yz2xa4__78556f3b:hover{color:inherit;}
270
+ .VerticalTabItem_styles_16d3lah_b1vnvg8i__badfbe70{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;box-sizing:border-box;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--plasma-tab-item-content-gap);padding:var(--plasma-tab-item-padding-orientation-vertical);-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative;}.VerticalTabItem_styles_16d3lah_b1vnvg8i__badfbe70::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma_private-outline-radius) + 0.063rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.VerticalTabItem_styles_16d3lah_b1vnvg8i__badfbe70.VerticalTabItem_styles_16d3lah_focusVisible__badfbe70:focus::before,.VerticalTabItem_styles_16d3lah_b1vnvg8i__badfbe70[data-focus-visible-added]::before{z-index:1;outline:none;box-shadow:0 0 0 0.063rem var(--plasma-tabs-outline-focus-color);}
271
+ .VerticalTabItem_styles_16d3lah_s4s0t81__badfbe70{display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0 var(--plasma-tab-item-content-padding-clear,var(--plasma-tab-item-content-padding));}
272
+ .VerticalTabItem_styles_16d3lah_tur46hh__badfbe70{color:var(--plasma-tab-item-value-color);}
273
+ .VerticalTabItem_styles_16d3lah_r1ms3p4x__badfbe70{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.VerticalTabItem_styles_16d3lah_r1ms3p4x__badfbe70:hover{color:inherit;}
274
+ .VerticalTabItem_styles_16d3lah_l1yz2xa4__badfbe70{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.VerticalTabItem_styles_16d3lah_l1yz2xa4__badfbe70:hover{color:inherit;}
277
275
 
278
276
  .base_fueiq8_byyhn69__02004398{color:var(--plasma-tab-item-color);background-color:var(--plasma-tab-item-background-color);}.base_fueiq8_byyhn69__02004398:hover{color:var(--plasma-tab-item-color-hover);background-color:var(--plasma-tab-item-background-color-hover);}.base_fueiq8_byyhn69__02004398:hover .base_fueiq8_tur46hh__02004398{color:var(--plasma-tab-item-value-color-hover);}.base_fueiq8_byyhn69__02004398:active{color:var(--plasma-tab-item-color-active);}.base_fueiq8_byyhn69__02004398:active .base_fueiq8_tur46hh__02004398{color:var(--plasma-tab-item-value-color-active);}.base_fueiq8_byyhn69__02004398.base_fueiq8_tabItemAnimated__02004398{-webkit-transition:var(--plasma-tab-item-background-transition);transition:var(--plasma-tab-item-background-transition);}.base_fueiq8_byyhn69__02004398.base_fueiq8_selectedTabsItem__02004398{color:var(--plasma-tab-item-selected-color);background-color:var(--plasma-tab-item-selected-background-color);}.base_fueiq8_byyhn69__02004398.base_fueiq8_selectedTabsItem__02004398:hover{color:var(--plasma-tab-item-selected-color-hover);background-color:var(--plasma-tab-item-selected-background-color-hover);}.base_fueiq8_byyhn69__02004398.base_fueiq8_selectedTabsItem__02004398:hover::after{background:var(--plasma-tab-item-selected-hover-divider-color);}.base_fueiq8_byyhn69__02004398.base_fueiq8_selectedTabsItem__02004398 .base_fueiq8_tur46hh__02004398{color:var(--plasma-tab-item-selected-value-color-hover);}.base_fueiq8_byyhn69__02004398.base_fueiq8_selectedTabsItem__02004398 .base_fueiq8_tur46hh__02004398:hover{color:var(--plasma-tab-item-selected-value-color-hover);}.base_fueiq8_byyhn69__02004398.base_fueiq8_selectedTabsItem__02004398::after{content:'';position:absolute;top:0;left:0;bottom:0;background:var(--plasma-tab-item-selected-divider-color);width:var(--plasma-tab-item-selected-divider-width);border-radius:0.063rem;}
279
277
 
@@ -281,8 +279,6 @@
281
279
 
282
280
  .base_13f4t5k_bvdfayd__c71883f1[disabled]{cursor:not-allowed;}.base_13f4t5k_bvdfayd__c71883f1[disabled]:hover{color:var(--plasma-tab-item-color);background-color:var(--plasma-tab-item-background-color);}.base_13f4t5k_bvdfayd__c71883f1[disabled].base_13f4t5k_selectedTabsItem__c71883f1:hover{color:var(--plasma-tab-item-selected-color);background-color:var(--plasma-tab-item-selected-background-color);}
283
281
 
284
- .base_1nwonlh_b1ar5ze4__a4361be8.base_1nwonlh_tabsTruncate__a4361be8 .base_1nwonlh_s4s0t81__a4361be8{overflow:hidden;text-overflow:ellipsis;}.base_1nwonlh_b1ar5ze4__a4361be8.base_1nwonlh_tabsTruncate__a4361be8 .base_1nwonlh_tur46hh__a4361be8{overflow:hidden;text-overflow:ellipsis;}
285
-
286
282
  .CalendarHeader_styles_1jfelqf_sjaqipy__a85b865d{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:var(--plasma-calendar-header-wrapper-padding);}
287
283
  .CalendarHeader_styles_1jfelqf_s1k7jebr__a85b865d{border:none;background-color:transparent;padding:0;outline:none;font-family:var(--plasma-calendar-header-font-family);font-size:var(--plasma-calendar-header-font-size);font-style:var(--plasma-calendar-header-font-style);font-weight:var(--plasma-calendar-header-font-weight-bold);-webkit-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);letter-spacing:var(--plasma-calendar-header-font-letter-spacing);line-height:var(--plasma-calendar-header-line-height);padding:var(--plasma-calendar-header-padding);color:var(--plasma-calendar-content-primary-color);cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-calendar-header-date-gap);-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;}.CalendarHeader_styles_1jfelqf_s1k7jebr__a85b865d:hover,.CalendarHeader_styles_1jfelqf_s1k7jebr__a85b865d:active{color:var(--plasma-calendar-content-secondary-color);}.CalendarHeader_styles_1jfelqf_s1k7jebr__a85b865d::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:0.563rem;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.CalendarHeader_styles_1jfelqf_s1k7jebr__a85b865d.CalendarHeader_styles_1jfelqf_focusVisible__a85b865d:focus::before,.CalendarHeader_styles_1jfelqf_s1k7jebr__a85b865d[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}
288
284
  .CalendarHeader_styles_1jfelqf_s1b07tlr__a85b865d{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;pointer-events:none;}
@@ -472,8 +468,6 @@
472
468
 
473
469
  .base_oopyb7_b1e1wuvi__72387433.base_oopyb7_badgeClear__72387433{color:var(--plasma-badge-color-clear);background-color:transparent;padding:0;}
474
470
 
475
- .base_nf9u2h_b1t6qghe__0b1f161a.base_nf9u2h_badgeTruncate__0b1f161a{max-width:100%;}.base_nf9u2h_b1t6qghe__0b1f161a.base_nf9u2h_badgeTruncate__0b1f161a .base_nf9u2h_sqn2dok__0b1f161a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
476
-
477
471
  .Badge_styles_8pi3br_b1t43xoe__783e5f62{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:-webkit-max-content;width:-moz-max-content;width:max-content;}
478
472
  .Badge_styles_8pi3br_st1n7hr__783e5f62{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-badge-left-content-margin-left);margin-right:var(--plasma-badge-left-content-margin-right);}
479
473
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.182.0-canary.1500.11610401138.0",
3
+ "version": "0.182.0-canary.1520.11610474283.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -128,5 +128,5 @@
128
128
  "sideEffects": [
129
129
  "*.css"
130
130
  ],
131
- "gitHead": "eb3290efd3e0dfc5541cbcacecd8280fd5d5fee4"
131
+ "gitHead": "5847d21dd38611151fb0dd5faaab53c646632296"
132
132
  }
@@ -12,18 +12,12 @@ var _base2 = /*#__PURE__*/require("./variations/_size/base");
12
12
  var _base3 = /*#__PURE__*/require("./variations/_pilled/base");
13
13
  var _base4 = /*#__PURE__*/require("./variations/_transparent/base");
14
14
  var _base5 = /*#__PURE__*/require("./variations/_clear/base");
15
- var _base6 = /*#__PURE__*/require("./variations/_truncate/base");
16
15
  var _Badge = /*#__PURE__*/require("./Badge.styles");
17
16
  var _Badge2 = /*#__PURE__*/require("./Badge.tokens");
18
- var _excluded = ["children", "className", "text", "contentLeft", "contentRight", "size", "view", "pilled", "transparent", "clear", "maxWidth"];
17
+ var _excluded = ["children", "className", "text", "contentLeft", "contentRight", "size", "view", "pilled", "transparent", "clear"];
19
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
21
20
  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); }
22
- 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; }
23
- 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; }
24
- 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; }
25
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
26
- 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); }
27
21
  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; }
28
22
  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; }
29
23
  var badgeRoot = exports.badgeRoot = function badgeRoot(Root) {
@@ -41,28 +35,20 @@ var badgeRoot = exports.badgeRoot = function badgeRoot(Root) {
41
35
  transparent = _props$transparent === void 0 ? false : _props$transparent,
42
36
  _props$clear = props.clear,
43
37
  clear = _props$clear === void 0 ? false : _props$clear,
44
- _props$maxWidth = props.maxWidth,
45
- maxWidth = _props$maxWidth === void 0 ? 'auto' : _props$maxWidth,
46
38
  rest = _objectWithoutProperties(props, _excluded);
47
39
  var pilledClass = pilled ? _Badge2.classes.badgePilled : undefined;
48
40
  var transparentClass = transparent ? _Badge2.classes.badgeTransparent : undefined;
49
41
  var clearClass = clear ? _Badge2.classes.badgeClear : undefined;
50
42
  var txt = !text && typeof children === 'string' ? children : text;
51
- var truncate = maxWidth !== 'auto';
52
43
  return /*#__PURE__*/_react["default"].createElement(Root, _extends({
53
44
  ref: ref,
54
- className: (0, _utils.cx)(pilledClass, transparentClass, clearClass, truncate && _Badge2.classes.badgeTruncate, className),
45
+ className: (0, _utils.cx)(pilledClass, transparentClass, clearClass, className),
55
46
  view: view,
56
47
  size: size,
57
48
  pilled: pilled,
58
49
  transparent: transparent,
59
- clear: clear,
60
- truncate: truncate
61
- }, rest, {
62
- style: _objectSpread(_objectSpread({}, rest.style), {}, {
63
- maxWidth: maxWidth
64
- })
65
- }), contentLeft && /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentLeft, null, contentLeft), txt ? /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentMain, null, txt) : children, contentRight && /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentRight, null, contentRight));
50
+ clear: clear
51
+ }, rest), contentLeft && /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentLeft, null, contentLeft), txt ? /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentMain, null, txt) : children, contentRight && /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentRight, null, contentRight));
66
52
  });
67
53
  };
68
54
  var badgeConfig = exports.badgeConfig = {
@@ -88,10 +74,6 @@ var badgeConfig = exports.badgeConfig = {
88
74
  clear: {
89
75
  css: _base5.base,
90
76
  attrs: true
91
- },
92
- truncate: {
93
- css: _base6.base,
94
- attrs: true
95
77
  }
96
78
  },
97
79
  defaults: {
@@ -7,8 +7,7 @@ exports.tokens = exports.classes = void 0;
7
7
  var classes = exports.classes = {
8
8
  badgePilled: 'badge-pilled',
9
9
  badgeTransparent: 'badge-transparent',
10
- badgeClear: 'badge-clear',
11
- badgeTruncate: 'badge-truncate'
10
+ badgeClear: 'badge-clear'
12
11
  };
13
12
  var tokens = exports.tokens = {
14
13
  background: '--plasma-badge-background',
@@ -20,8 +20,7 @@ var classes = exports.classes = {
20
20
  tabsHasTopArrow: 'tabs-has-top-arrow',
21
21
  tabsHasBottomArrow: 'tabs-has-bottom-arrow',
22
22
  tabsClipScroll: 'tabs-clip-scroll',
23
- tabsClipShowAll: 'tabs-clip-show-all',
24
- tabsTruncate: 'tabs-truncate'
23
+ tabsClipShowAll: 'tabs-clip-show-all'
25
24
  };
26
25
  var tokens = exports.tokens = {
27
26
  disabledOpacity: '--plasma-tabs-disabled-opacity',
@@ -14,17 +14,11 @@ var _base = /*#__PURE__*/require("./variations/_view/base");
14
14
  var _base2 = /*#__PURE__*/require("./variations/_size/base");
15
15
  var _base3 = /*#__PURE__*/require("./variations/_pilled/base");
16
16
  var _base4 = /*#__PURE__*/require("./variations/_disabled/base");
17
- var _base5 = /*#__PURE__*/require("./variations/_truncate/base");
18
17
  var _HorizontalTabItem = /*#__PURE__*/require("./HorizontalTabItem.styles");
19
- var _excluded = ["size", "view", "isActive", "selected", "disabled", "pilled", "children", "value", "contentLeft", "contentRight", "animated", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick", "maxItemWidth"];
18
+ var _excluded = ["size", "view", "isActive", "selected", "disabled", "pilled", "children", "value", "contentLeft", "contentRight", "animated", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick"];
20
19
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
21
20
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
22
21
  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); }
23
- 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; }
24
- 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; }
25
- 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; }
26
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
27
- 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); }
28
22
  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; }
29
23
  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; }
30
24
  var horizontalTabItemRoot = exports.horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
@@ -48,13 +42,11 @@ var horizontalTabItemRoot = exports.horizontalTabItemRoot = function horizontalT
48
42
  tabIndex = props.tabIndex,
49
43
  className = props.className,
50
44
  onClick = props.onClick,
51
- maxWidth = props.maxItemWidth,
52
45
  rest = _objectWithoutProperties(props, _excluded);
53
46
  var innerRef = (0, _react.useRef)(null);
54
47
  var ref = (0, _plasmaCore.useForkRef)(outerRef, innerRef);
55
48
  var refs = (0, _react.useContext)(_TabsContext.TabsContext);
56
49
  var role = 'tab';
57
- var truncate = maxWidth !== 'auto';
58
50
  var pilledAttr = view !== 'clear' && pilled;
59
51
  var animatedClass = animated ? _tokens.classes.tabItemAnimated : undefined;
60
52
  var pilledClass = pilledAttr ? _tokens.classes.tabsPilled : undefined;
@@ -113,16 +105,11 @@ var horizontalTabItemRoot = exports.horizontalTabItemRoot = function horizontalT
113
105
  // TODO: убрать каст any, когда будут удалены deprecated props
114
106
  ,
115
107
  size: size,
116
- truncate: truncate,
117
108
  onFocus: onItemFocus,
118
109
  tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
119
- className: (0, _utils.cx)(pilledClass, selectedClass, animatedClass, truncate && _tokens.classes.tabsTruncate, className),
110
+ className: (0, _utils.cx)(pilledClass, selectedClass, animatedClass, className),
120
111
  onClick: handleClick
121
- }, rest, {
122
- style: _objectSpread(_objectSpread({}, rest.style), {}, {
123
- maxWidth: maxWidth
124
- })
125
- }), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, contentLeft && /*#__PURE__*/_react["default"].createElement(_HorizontalTabItem.LeftContent, {
112
+ }, rest), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, contentLeft && /*#__PURE__*/_react["default"].createElement(_HorizontalTabItem.LeftContent, {
126
113
  className: _tokens.classes.tabLeftContent
127
114
  }, contentLeft), /*#__PURE__*/_react["default"].createElement(_HorizontalTabItem.StyledContent, {
128
115
  className: _tokens.classes.tabContent
@@ -149,9 +136,6 @@ var horizontalTabItemConfig = exports.horizontalTabItemConfig = {
149
136
  },
150
137
  pilled: {
151
138
  css: _base3.base
152
- },
153
- truncate: {
154
- css: _base5.base
155
139
  }
156
140
  },
157
141
  defaults: {
@@ -10,7 +10,7 @@ var _mixins = /*#__PURE__*/require("../../../../../mixins");
10
10
  var _tokens = /*#__PURE__*/require("../../../tokens");
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
12
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;align-items:center;white-space:nowrap;gap:var(", ");padding:var(", ",var(", "));appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;&:first-child{margin-left:0;}", ";"], _tokens.tokens.itemContentGap, _tokens.tokens.itemPaddingClear, _tokens.tokens.itemPadding, /*#__PURE__*/(0, _mixins.addFocus)({
13
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;align-items:center;gap:var(", ");padding:var(", ",var(", "));appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;&:first-child{margin-left:0;}", ";"], _tokens.tokens.itemContentGap, _tokens.tokens.itemPaddingClear, _tokens.tokens.itemPadding, /*#__PURE__*/(0, _mixins.addFocus)({
14
14
  outlineSize: '0.063rem',
15
15
  outlineOffset: '-0.125rem',
16
16
  outlineColor: /*#__PURE__*/"var(".concat(_tokens.tokens.outlineFocusColor, ")"),
@@ -14,16 +14,10 @@ var _VerticalTabItem = /*#__PURE__*/require("./VerticalTabItem.styles");
14
14
  var _base = /*#__PURE__*/require("./variations/_view/base");
15
15
  var _base2 = /*#__PURE__*/require("./variations/_size/base");
16
16
  var _base3 = /*#__PURE__*/require("./variations/_disabled/base");
17
- var _base4 = /*#__PURE__*/require("./variations/_truncate/base");
18
- var _excluded = ["size", "view", "selected", "disabled", "children", "value", "contentLeft", "contentRight", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick", "maxItemWidth"];
17
+ var _excluded = ["size", "view", "selected", "disabled", "children", "value", "contentLeft", "contentRight", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick"];
19
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
21
20
  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); }
22
- 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; }
23
- 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; }
24
- 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; }
25
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
26
- 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); }
27
21
  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; }
28
22
  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; }
29
23
  var verticalTabItemRoot = exports.verticalTabItemRoot = function verticalTabItemRoot(Root) {
@@ -42,13 +36,11 @@ var verticalTabItemRoot = exports.verticalTabItemRoot = function verticalTabItem
42
36
  tabIndex = props.tabIndex,
43
37
  className = props.className,
44
38
  onClick = props.onClick,
45
- maxWidth = props.maxItemWidth,
46
39
  rest = _objectWithoutProperties(props, _excluded);
47
40
  var innerRef = (0, _react.useRef)(null);
48
41
  var ref = (0, _plasmaCore.useForkRef)(outerRef, innerRef);
49
42
  var refs = (0, _react.useContext)(_TabsContext.TabsContext);
50
43
  var role = 'tab';
51
- var truncate = maxWidth !== 'auto';
52
44
  var selectedClass = selected ? _tokens.classes.selectedTabsItem : undefined;
53
45
  var hasKeyNavigation = itemIndex !== undefined && onIndexChange !== undefined;
54
46
  var navigationTabIndex = !disabled && (refs === null || refs === void 0 ? void 0 : refs.current) === itemIndex ? 0 : -1;
@@ -100,16 +92,11 @@ var verticalTabItemRoot = exports.verticalTabItemRoot = function verticalTabItem
100
92
  role: role,
101
93
  view: view,
102
94
  size: size,
103
- truncate: truncate,
104
95
  onFocus: onItemFocus,
105
96
  tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
106
- className: (0, _utils.cx)(selectedClass, truncate && _tokens.classes.tabsTruncate, className),
97
+ className: (0, _utils.cx)(selectedClass, className),
107
98
  onClick: handleClick
108
- }, rest, {
109
- style: _objectSpread(_objectSpread({}, rest.style), {}, {
110
- maxWidth: maxWidth
111
- })
112
- }), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, contentLeft && /*#__PURE__*/_react["default"].createElement(_VerticalTabItem.LeftContent, {
99
+ }, rest), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, contentLeft && /*#__PURE__*/_react["default"].createElement(_VerticalTabItem.LeftContent, {
113
100
  className: _tokens.classes.tabLeftContent
114
101
  }, contentLeft), /*#__PURE__*/_react["default"].createElement(_VerticalTabItem.StyledContent, {
115
102
  className: _tokens.classes.tabContent
@@ -133,9 +120,6 @@ var verticalTabItemConfig = exports.verticalTabItemConfig = {
133
120
  disabled: {
134
121
  css: _base3.base,
135
122
  attrs: true
136
- },
137
- truncate: {
138
- css: _base4.base
139
123
  }
140
124
  },
141
125
  defaults: {
@@ -12,7 +12,7 @@ var _templateObject;
12
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
14
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
15
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n box-sizing: border-box;\n white-space: nowrap;\n\n gap: var(", ");\n padding: var(", ");\n\n appearance: none;\n border: none;\n outline: none;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n ", ";\n"])), _tokens.tokens.itemContentGap, _tokens.tokens.itemPaddingOrientationVertical, /*#__PURE__*/(0, _mixins.addFocus)({
15
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n box-sizing: border-box;\n align-items: center;\n\n gap: var(", ");\n padding: var(", ");\n\n appearance: none;\n border: none;\n outline: none;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n ", ";\n"])), _tokens.tokens.itemContentGap, _tokens.tokens.itemPaddingOrientationVertical, /*#__PURE__*/(0, _mixins.addFocus)({
16
16
  outlineSize: '0.063rem',
17
17
  outlineOffset: '-0.125rem',
18
18
  outlineColor: /*#__PURE__*/"var(".concat(_tokens.tokens.outlineFocusColor, ")"),
@@ -24,7 +24,7 @@ var StyledContent = exports.StyledContent = /*#__PURE__*/_styledComponents["defa
24
24
  })(["display:inline-block;width:fit-content;padding:0 var(", ",var(", "));"], _tokens.tokens.itemContentPaddingClear, _tokens.tokens.itemContentPadding);
25
25
  var TabItemValue = exports.TabItemValue = /*#__PURE__*/_styledComponents["default"].span.withConfig({
26
26
  componentId: "plasma-new-hope__sc-1pflgj8-1"
27
- })(["white-space:nowrap;color:var(", ");"], _tokens.tokens.itemValueColor);
27
+ })(["color:var(", ");"], _tokens.tokens.itemValueColor);
28
28
  var RightContent = exports.RightContent = /*#__PURE__*/_styledComponents["default"].div.withConfig({
29
29
  componentId: "plasma-new-hope__sc-1pflgj8-2"
30
30
  })(["display:flex;color:inherit;&:hover{color:inherit;}"]);
@@ -199,7 +199,7 @@ var textAreaRoot = exports.textAreaRoot = function textAreaRoot(Root) {
199
199
  setHelperWidth("".concat(elementWidth / _hooks2.ROOT_FONT_SIZE, "rem"));
200
200
  }
201
201
  });
202
- (0, _hooks2.useAutoResize)(autoResize || Boolean(clear), outerRef, value, minAuto, maxAuto);
202
+ (0, _hooks2.useAutoResize)(autoResize || Boolean(clear), outerRef, value, minAuto, maxAuto, resize);
203
203
  var onFocusHandler = (0, _react.useCallback)(function () {
204
204
  setFocused(true);
205
205
  }, []);
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useAutoResize = exports.ROOT_FONT_SIZE = void 0;
7
7
  var _react = /*#__PURE__*/require("react");
8
8
  var ROOT_FONT_SIZE = exports.ROOT_FONT_SIZE = 16;
9
- var useAutoResize = exports.useAutoResize = function useAutoResize(active, ref, value, minAuto, maxAuto) {
9
+ var useAutoResize = exports.useAutoResize = function useAutoResize(active, ref, value, minAuto, maxAuto, resize) {
10
10
  var previousHeight = (0, _react.useRef)();
11
11
  (0, _react.useEffect)(function () {
12
12
  if (active && ref && ref.current) {
13
13
  // проверка на пользовательский resize (вручную)
14
14
  var height = ref.current.clientHeight / ROOT_FONT_SIZE;
15
- if (previousHeight.current !== undefined && previousHeight.current !== height) {
15
+ if (resize && resize !== 'none' && previousHeight.current !== undefined && previousHeight.current !== height) {
16
16
  return;
17
17
  }
18
18
  var style = getComputedStyle(ref.current);
@@ -27,5 +27,5 @@ var useAutoResize = exports.useAutoResize = function useAutoResize(active, ref,
27
27
  ref.current.style.height = "".concat(newHeight, "rem");
28
28
  previousHeight.current = newHeight;
29
29
  }
30
- }, [ref, active, value, minAuto, maxAuto]);
30
+ }, [ref, resize, active, value, minAuto, maxAuto]);
31
31
  };
@@ -35,9 +35,6 @@ var config = exports.config = {
35
35
  },
36
36
  clear: {
37
37
  "true": /*#__PURE__*/(0, _styledComponents.css)([""])
38
- },
39
- truncate: {
40
- "true": /*#__PURE__*/(0, _styledComponents.css)([""])
41
38
  }
42
39
  }
43
40
  };
@@ -31,9 +31,6 @@ const meta: Meta<typeof Badge> = {
31
31
  control: { type: 'boolean' },
32
32
  if: { arg: 'clear', truthy: false },
33
33
  },
34
- maxWidth: {
35
- control: { type: 'text' },
36
- },
37
34
  ...disableProps(['contentLeft', 'contentRight']),
38
35
  },
39
36
  };
@@ -67,7 +64,7 @@ export const Default: Story = {
67
64
  },
68
65
  },
69
66
  args: {
70
- text: 'Hello Kitty',
67
+ text: 'Hello',
71
68
  view: 'default',
72
69
  size: 'm',
73
70
  enableContentLeft: false,
@@ -75,7 +72,6 @@ export const Default: Story = {
75
72
  clear: false,
76
73
  pilled: false,
77
74
  transparent: false,
78
- maxWidth: '',
79
75
  },
80
76
  render: ({ enableContentLeft, enableContentRight, size, ...rest }: StoryProps) => {
81
77
  const iconSize = size === 'l' ? '1rem' : '0.75rem';