@salutejs/plasma-new-hope 0.178.1-canary.1515.11581730946.0 → 0.179.0-canary.1500.11582881437.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. package/cjs/components/Badge/Badge.css +2 -0
  2. package/cjs/components/Badge/Badge.js +17 -4
  3. package/cjs/components/Badge/Badge.js.map +1 -1
  4. package/cjs/components/Badge/Badge.tokens.js +2 -1
  5. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  6. package/cjs/components/Badge/variations/_truncate/base.js +9 -0
  7. package/cjs/components/Badge/variations/_truncate/base.js.map +1 -0
  8. package/cjs/components/Badge/variations/_truncate/base_nf9u2h.css +1 -0
  9. package/cjs/components/Popup/Popup.js +2 -2
  10. package/cjs/components/Popup/Popup.js.map +1 -1
  11. package/cjs/components/Popup/PopupContext.js +1 -1
  12. package/cjs/components/Popup/PopupContext.js.map +1 -1
  13. package/cjs/components/Portal/Portal.js +0 -4
  14. package/cjs/components/Portal/Portal.js.map +1 -1
  15. package/cjs/components/Tabs/tokens.js +2 -1
  16. package/cjs/components/Tabs/tokens.js.map +1 -1
  17. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +7 -5
  18. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +14 -3
  19. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  20. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  21. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  22. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/{HorizontalTabItem.styles_hfqv5b.css → HorizontalTabItem.styles_1vj7dbl.css} +1 -1
  23. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +9 -0
  24. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +1 -0
  25. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +1 -0
  26. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +7 -5
  27. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +14 -3
  28. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  29. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  30. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  31. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_hh65kv.css +5 -0
  32. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +9 -0
  33. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +1 -0
  34. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +1 -0
  35. package/cjs/index.css +16 -10
  36. package/emotion/cjs/components/Badge/Badge.js +22 -4
  37. package/emotion/cjs/components/Badge/Badge.tokens.js +2 -1
  38. package/emotion/cjs/components/Badge/variations/_truncate/base.js +10 -0
  39. package/emotion/cjs/components/Badge/variations/_truncate/tokens.json +1 -0
  40. package/emotion/cjs/components/Popup/Popup.js +1 -1
  41. package/emotion/cjs/components/Popup/PopupContext.js +1 -1
  42. package/emotion/cjs/components/Portal/Portal.js +0 -4
  43. package/emotion/cjs/components/Tabs/tokens.js +2 -1
  44. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +19 -3
  45. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  46. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +10 -0
  47. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  48. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +19 -3
  49. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  50. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +10 -0
  51. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  52. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +17 -14
  53. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  54. package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
  55. package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  56. package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  57. package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
  58. package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  59. package/emotion/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  60. package/emotion/es/components/Badge/Badge.js +23 -4
  61. package/emotion/es/components/Badge/Badge.tokens.js +2 -1
  62. package/emotion/es/components/Badge/variations/_truncate/base.js +4 -0
  63. package/emotion/es/components/Badge/variations/_truncate/tokens.json +1 -0
  64. package/emotion/es/components/Popup/Popup.js +1 -1
  65. package/emotion/es/components/Popup/PopupContext.js +1 -1
  66. package/emotion/es/components/Portal/Portal.js +0 -4
  67. package/emotion/es/components/Tabs/tokens.js +2 -1
  68. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +20 -3
  69. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  70. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +4 -0
  71. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  72. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +20 -3
  73. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  74. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +4 -0
  75. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  76. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +17 -14
  77. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  78. package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
  79. package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  80. package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  81. package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
  82. package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  83. package/emotion/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  84. package/es/components/Badge/Badge.css +2 -0
  85. package/es/components/Badge/Badge.js +18 -5
  86. package/es/components/Badge/Badge.js.map +1 -1
  87. package/es/components/Badge/Badge.tokens.js +2 -1
  88. package/es/components/Badge/Badge.tokens.js.map +1 -1
  89. package/es/components/Badge/variations/_truncate/base.js +5 -0
  90. package/es/components/Badge/variations/_truncate/base.js.map +1 -0
  91. package/es/components/Badge/variations/_truncate/base_nf9u2h.css +1 -0
  92. package/es/components/Popup/Popup.js +2 -2
  93. package/es/components/Popup/Popup.js.map +1 -1
  94. package/es/components/Popup/PopupContext.js +1 -1
  95. package/es/components/Popup/PopupContext.js.map +1 -1
  96. package/es/components/Portal/Portal.js +0 -4
  97. package/es/components/Portal/Portal.js.map +1 -1
  98. package/es/components/Tabs/tokens.js +2 -1
  99. package/es/components/Tabs/tokens.js.map +1 -1
  100. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +7 -5
  101. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +15 -4
  102. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  103. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  104. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  105. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/{HorizontalTabItem.styles_hfqv5b.css → HorizontalTabItem.styles_1vj7dbl.css} +1 -1
  106. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +5 -0
  107. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +1 -0
  108. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +1 -0
  109. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +7 -5
  110. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +15 -4
  111. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  112. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  113. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  114. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_hh65kv.css +5 -0
  115. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +5 -0
  116. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +1 -0
  117. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +1 -0
  118. package/es/index.css +16 -10
  119. package/package.json +2 -2
  120. package/styled-components/cjs/components/Badge/Badge.js +22 -4
  121. package/styled-components/cjs/components/Badge/Badge.tokens.js +2 -1
  122. package/styled-components/cjs/components/Badge/variations/_truncate/base.js +10 -0
  123. package/styled-components/cjs/components/Badge/variations/_truncate/tokens.json +1 -0
  124. package/styled-components/cjs/components/Popup/Popup.js +1 -1
  125. package/styled-components/cjs/components/Popup/PopupContext.js +1 -1
  126. package/styled-components/cjs/components/Portal/Portal.js +0 -4
  127. package/styled-components/cjs/components/Tabs/tokens.js +2 -1
  128. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +19 -3
  129. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  130. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +10 -0
  131. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  132. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +19 -3
  133. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  134. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +10 -0
  135. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  136. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +3 -0
  137. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  138. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
  139. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  140. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  141. package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
  142. package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  143. package/styled-components/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  144. package/styled-components/es/components/Badge/Badge.js +23 -4
  145. package/styled-components/es/components/Badge/Badge.tokens.js +2 -1
  146. package/styled-components/es/components/Badge/variations/_truncate/base.js +4 -0
  147. package/styled-components/es/components/Badge/variations/_truncate/tokens.json +1 -0
  148. package/styled-components/es/components/Popup/Popup.js +1 -1
  149. package/styled-components/es/components/Popup/PopupContext.js +1 -1
  150. package/styled-components/es/components/Portal/Portal.js +0 -4
  151. package/styled-components/es/components/Tabs/tokens.js +2 -1
  152. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +20 -3
  153. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  154. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +4 -0
  155. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  156. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +20 -3
  157. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  158. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +4 -0
  159. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  160. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +3 -0
  161. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  162. package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
  163. package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  164. package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  165. package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
  166. package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  167. package/styled-components/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  168. package/types/components/Badge/Badge.d.ts +10 -2
  169. package/types/components/Badge/Badge.d.ts.map +1 -1
  170. package/types/components/Badge/Badge.tokens.d.ts +1 -0
  171. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  172. package/types/components/Badge/Badge.types.d.ts +5 -0
  173. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  174. package/types/components/Badge/variations/_truncate/base.d.ts +2 -0
  175. package/types/components/Badge/variations/_truncate/base.d.ts.map +1 -0
  176. package/types/components/Popup/PopupContext.d.ts.map +1 -1
  177. package/types/components/Portal/Portal.d.ts.map +1 -1
  178. package/types/components/Tabs/TabItem.types.d.ts +5 -0
  179. package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
  180. package/types/components/Tabs/tokens.d.ts +1 -0
  181. package/types/components/Tabs/tokens.d.ts.map +1 -1
  182. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts +9 -2
  183. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
  184. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
  185. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts +2 -0
  186. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts.map +1 -0
  187. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts +9 -2
  188. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts.map +1 -1
  189. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
  190. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts +2 -0
  191. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts.map +1 -0
  192. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts +3 -0
  193. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  194. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +6 -0
  195. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  196. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +6 -0
  197. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
  198. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +3 -0
  199. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  200. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts +3 -0
  201. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  202. package/types/examples/plasma_web/components/Badge/Badge.d.ts +3 -0
  203. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  204. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts +6 -0
  205. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts.map +1 -1
  206. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +3 -0
  207. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  208. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts +3 -0
  209. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  210. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css +0 -5
  211. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css +0 -5
@@ -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);
@@ -130,7 +130,7 @@ export var popupRoot = function popupRoot(Root) {
130
130
  animationInfo: animationInfo,
131
131
  setVisible: setVisible
132
132
  }, children));
133
- if (typeof frame !== 'string' && frame && frame.current && canUseDOM) {
133
+ if (typeof frame !== 'string' && frame && frame.current) {
134
134
  return /*#__PURE__*/React.createElement(Portal, {
135
135
  container: frame.current
136
136
  }, rootNode);
@@ -82,7 +82,7 @@ export var PopupProvider = function PopupProvider(_ref) {
82
82
  };
83
83
  return /*#__PURE__*/React.createElement(PopupContext.Provider, {
84
84
  value: context
85
- }, children, canUseDOM && /*#__PURE__*/React.createElement(Portal, {
85
+ }, children, /*#__PURE__*/React.createElement(Portal, {
86
86
  container: document.body
87
87
  }, /*#__PURE__*/React.createElement(StyledPortal, {
88
88
  id: rootId
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import ReactDOM from 'react-dom';
3
- import { canUseDOM } from '../../utils';
4
3
  /**
5
4
  * Вспомогательный компонент. Используется в Popup, Popover.
6
5
  * Представляет собой ReactDOM.createPortal() в форме компонента.
@@ -10,9 +9,6 @@ export var Portal = function Portal(_ref) {
10
9
  container = _ref.container,
11
10
  _ref$disabled = _ref.disabled,
12
11
  disabled = _ref$disabled === void 0 ? false : _ref$disabled;
13
- if (!canUseDOM) {
14
- return null;
15
- }
16
12
  var portalContainer = typeof container === 'function' ? container() : container;
17
13
  return /*#__PURE__*/React.createElement(React.Fragment, null, disabled && children, !disabled && /*#__PURE__*/ReactDOM.createPortal(children, portalContainer));
18
14
  };
@@ -14,7 +14,8 @@ export var classes = {
14
14
  tabsHasTopArrow: 'tabs-has-top-arrow',
15
15
  tabsHasBottomArrow: 'tabs-has-bottom-arrow',
16
16
  tabsClipScroll: 'tabs-clip-scroll',
17
- tabsClipShowAll: 'tabs-clip-show-all'
17
+ tabsClipShowAll: 'tabs-clip-show-all',
18
+ tabsTruncate: 'tabs-truncate'
18
19
  };
19
20
  export var tokens = {
20
21
  disabledOpacity: '--plasma-tabs-disabled-opacity',
@@ -1,5 +1,11 @@
1
- var _excluded = ["size", "view", "isActive", "selected", "disabled", "pilled", "children", "value", "contentLeft", "contentRight", "animated", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick"];
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["size", "view", "isActive", "selected", "disabled", "pilled", "children", "value", "contentLeft", "contentRight", "animated", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick", "maxItemWidth"];
2
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
3
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
11
  import React, { forwardRef, useRef, useContext, useEffect, useCallback } from 'react';
@@ -11,6 +17,7 @@ import { base as viewCSS } from './variations/_view/base';
11
17
  import { base as sizeCSS } from './variations/_size/base';
12
18
  import { base as pilledCSS } from './variations/_pilled/base';
13
19
  import { base as disabledCSS } from './variations/_disabled/base';
20
+ import { base as truncateCSS } from './variations/_truncate/base';
14
21
  import { LeftContent, RightContent, StyledContent, TabItemValue, base } from './HorizontalTabItem.styles';
15
22
  export var horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
16
23
  return /*#__PURE__*/forwardRef(function (props, outerRef) {
@@ -33,11 +40,13 @@ export var horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
33
40
  tabIndex = props.tabIndex,
34
41
  className = props.className,
35
42
  onClick = props.onClick,
43
+ maxWidth = props.maxItemWidth,
36
44
  rest = _objectWithoutProperties(props, _excluded);
37
45
  var innerRef = useRef(null);
38
46
  var ref = useForkRef(outerRef, innerRef);
39
47
  var refs = useContext(TabsContext);
40
48
  var role = 'tab';
49
+ var truncate = maxWidth !== 'auto';
41
50
  var pilledAttr = view !== 'clear' && pilled;
42
51
  var animatedClass = animated ? classes.tabItemAnimated : undefined;
43
52
  var pilledClass = pilledAttr ? classes.tabsPilled : undefined;
@@ -96,11 +105,16 @@ export var horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
96
105
  // TODO: убрать каст any, когда будут удалены deprecated props
97
106
  ,
98
107
  size: size,
108
+ truncate: truncate,
99
109
  onFocus: onItemFocus,
100
110
  tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
101
- className: cx(pilledClass, selectedClass, animatedClass, className),
111
+ className: cx(pilledClass, selectedClass, animatedClass, truncate && classes.tabsTruncate, className),
102
112
  onClick: handleClick
103
- }, rest), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
113
+ }, rest, {
114
+ style: _objectSpread(_objectSpread({}, rest.style), {}, {
115
+ maxWidth: maxWidth
116
+ })
117
+ }), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
104
118
  className: classes.tabLeftContent
105
119
  }, contentLeft), /*#__PURE__*/React.createElement(StyledContent, {
106
120
  className: classes.tabContent
@@ -127,6 +141,9 @@ export var horizontalTabItemConfig = {
127
141
  },
128
142
  pilled: {
129
143
  css: pilledCSS
144
+ },
145
+ truncate: {
146
+ css: truncateCSS
130
147
  }
131
148
  },
132
149
  defaults: {
@@ -2,7 +2,7 @@ import styled from 'styled-components';
2
2
  import { css } from 'styled-components';
3
3
  import { addFocus } from '../../../../../mixins';
4
4
  import { tokens } from '../../../tokens';
5
- export var base = /*#__PURE__*/css(["position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;align-items:center;gap:var(", ");padding:var(", ",var(", "));appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;&:first-child{margin-left:0;}", ";"], tokens.itemContentGap, tokens.itemPaddingClear, tokens.itemPadding, /*#__PURE__*/addFocus({
5
+ export var base = /*#__PURE__*/css(["position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;align-items:center;white-space:nowrap;gap:var(", ");padding:var(", ",var(", "));appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;&:first-child{margin-left:0;}", ";"], tokens.itemContentGap, tokens.itemPaddingClear, tokens.itemPadding, /*#__PURE__*/addFocus({
6
6
  outlineSize: '0.063rem',
7
7
  outlineOffset: '-0.125rem',
8
8
  outlineColor: /*#__PURE__*/"var(".concat(tokens.outlineFocusColor, ")"),
@@ -0,0 +1,4 @@
1
+ import { css } from 'styled-components';
2
+ import { classes } from '../../../../../tokens';
3
+ import { StyledContent, TabItemValue } from '../../HorizontalTabItem.styles';
4
+ export var base = /*#__PURE__*/css(["&.", "{", "{overflow:hidden;text-overflow:ellipsis;}", "{overflow:hidden;text-overflow:ellipsis;}}"], classes.tabsTruncate, StyledContent, TabItemValue);
@@ -1,5 +1,11 @@
1
- var _excluded = ["size", "view", "selected", "disabled", "children", "value", "contentLeft", "contentRight", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick"];
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["size", "view", "selected", "disabled", "children", "value", "contentLeft", "contentRight", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick", "maxItemWidth"];
2
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
3
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
11
  import React, { forwardRef, useRef, useContext, useEffect, useCallback } from 'react';
@@ -11,6 +17,7 @@ import { base, LeftContent, RightContent, StyledContent, TabItemValue } from './
11
17
  import { base as viewCSS } from './variations/_view/base';
12
18
  import { base as sizeCSS } from './variations/_size/base';
13
19
  import { base as disabledCSS } from './variations/_disabled/base';
20
+ import { base as truncateCSS } from './variations/_truncate/base';
14
21
  export var verticalTabItemRoot = function verticalTabItemRoot(Root) {
15
22
  return /*#__PURE__*/forwardRef(function (props, outerRef) {
16
23
  var size = props.size,
@@ -27,11 +34,13 @@ export var verticalTabItemRoot = function verticalTabItemRoot(Root) {
27
34
  tabIndex = props.tabIndex,
28
35
  className = props.className,
29
36
  onClick = props.onClick,
37
+ maxWidth = props.maxItemWidth,
30
38
  rest = _objectWithoutProperties(props, _excluded);
31
39
  var innerRef = useRef(null);
32
40
  var ref = useForkRef(outerRef, innerRef);
33
41
  var refs = useContext(TabsContext);
34
42
  var role = 'tab';
43
+ var truncate = maxWidth !== 'auto';
35
44
  var selectedClass = selected ? classes.selectedTabsItem : undefined;
36
45
  var hasKeyNavigation = itemIndex !== undefined && onIndexChange !== undefined;
37
46
  var navigationTabIndex = !disabled && (refs === null || refs === void 0 ? void 0 : refs.current) === itemIndex ? 0 : -1;
@@ -83,11 +92,16 @@ export var verticalTabItemRoot = function verticalTabItemRoot(Root) {
83
92
  role: role,
84
93
  view: view,
85
94
  size: size,
95
+ truncate: truncate,
86
96
  onFocus: onItemFocus,
87
97
  tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
88
- className: cx(selectedClass, className),
98
+ className: cx(selectedClass, truncate && classes.tabsTruncate, className),
89
99
  onClick: handleClick
90
- }, rest), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
100
+ }, rest, {
101
+ style: _objectSpread(_objectSpread({}, rest.style), {}, {
102
+ maxWidth: maxWidth
103
+ })
104
+ }), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
91
105
  className: classes.tabLeftContent
92
106
  }, contentLeft), /*#__PURE__*/React.createElement(StyledContent, {
93
107
  className: classes.tabContent
@@ -111,6 +125,9 @@ export var verticalTabItemConfig = {
111
125
  disabled: {
112
126
  css: disabledCSS,
113
127
  attrs: true
128
+ },
129
+ truncate: {
130
+ css: truncateCSS
114
131
  }
115
132
  },
116
133
  defaults: {
@@ -4,7 +4,7 @@ import { css } from 'styled-components';
4
4
  import styled from 'styled-components';
5
5
  import { addFocus } from '../../../../../mixins';
6
6
  import { tokens } from '../../../tokens';
7
- export var base = /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n box-sizing: border-box;\n align-items: center;\n\n gap: var(", ");\n padding: var(", ");\n\n appearance: none;\n border: none;\n outline: none;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n ", ";\n"])), tokens.itemContentGap, tokens.itemPaddingOrientationVertical, /*#__PURE__*/addFocus({
7
+ export var base = /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n box-sizing: border-box;\n 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.itemContentGap, tokens.itemPaddingOrientationVertical, /*#__PURE__*/addFocus({
8
8
  outlineSize: '0.063rem',
9
9
  outlineOffset: '-0.125rem',
10
10
  outlineColor: /*#__PURE__*/"var(".concat(tokens.outlineFocusColor, ")"),
@@ -16,7 +16,7 @@ export var StyledContent = /*#__PURE__*/styled.div.withConfig({
16
16
  })(["display:inline-block;width:fit-content;padding:0 var(", ",var(", "));"], tokens.itemContentPaddingClear, tokens.itemContentPadding);
17
17
  export var TabItemValue = /*#__PURE__*/styled.span.withConfig({
18
18
  componentId: "plasma-new-hope__sc-1pflgj8-1"
19
- })(["color:var(", ");"], tokens.itemValueColor);
19
+ })(["white-space:nowrap;color:var(", ");"], tokens.itemValueColor);
20
20
  export var RightContent = /*#__PURE__*/styled.div.withConfig({
21
21
  componentId: "plasma-new-hope__sc-1pflgj8-2"
22
22
  })(["display:flex;color:inherit;&:hover{color:inherit;}"]);
@@ -0,0 +1,4 @@
1
+ import { css } from 'styled-components';
2
+ import { classes } from '../../../../../tokens';
3
+ import { StyledContent, TabItemValue } from '../../VerticalTabItem.styles';
4
+ export var base = /*#__PURE__*/css(["&.", "{", "{overflow:hidden;text-overflow:ellipsis;}", "{overflow:hidden;text-overflow:ellipsis;}}"], classes.tabsTruncate, StyledContent, TabItemValue);
@@ -29,6 +29,9 @@ export var config = {
29
29
  },
30
30
  clear: {
31
31
  "true": /*#__PURE__*/css([""])
32
+ },
33
+ truncate: {
34
+ "true": /*#__PURE__*/css([""])
32
35
  }
33
36
  }
34
37
  };
@@ -31,6 +31,9 @@ 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
+ },
34
37
  ...disableProps(['contentLeft', 'contentRight']),
35
38
  },
36
39
  };
@@ -64,7 +67,7 @@ export const Default: Story = {
64
67
  },
65
68
  },
66
69
  args: {
67
- text: 'Hello',
70
+ text: 'Hello Kitty',
68
71
  view: 'default',
69
72
  size: 'm',
70
73
  enableContentLeft: false,
@@ -72,6 +75,7 @@ export const Default: Story = {
72
75
  clear: false,
73
76
  pilled: false,
74
77
  transparent: false,
78
+ maxWidth: '',
75
79
  },
76
80
  render: ({ enableContentLeft, enableContentRight, size, ...rest }: StoryProps) => {
77
81
  const iconSize = size === 'l' ? '1rem' : '0.75rem';