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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (311) 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/Notification/Notification.css +11 -11
  10. package/cjs/components/Notification/Notification.js +2 -2
  11. package/cjs/components/Notification/Notification.js.map +1 -1
  12. package/cjs/components/Notification/Notification.styles.js +2 -11
  13. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  14. package/cjs/components/Notification/{Notification.styles_e6274r.css → Notification.styles_7h8hp0.css} +2 -2
  15. package/cjs/components/Notification/Notification.tokens.js +1 -2
  16. package/cjs/components/Notification/Notification.tokens.js.map +1 -1
  17. package/cjs/components/Notification/Notification.types.js.map +1 -1
  18. package/cjs/components/Notification/NotificationsPortal.js +4 -8
  19. package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
  20. package/cjs/components/Notification/NotificationsProvider.css +11 -11
  21. package/cjs/components/Notification/NotificationsProvider.js +1 -3
  22. package/cjs/components/Notification/NotificationsProvider.js.map +1 -1
  23. package/cjs/components/Pagination/Pagination.css +12 -12
  24. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +12 -12
  25. package/cjs/components/Select/Select.css +12 -12
  26. package/cjs/components/Select/Select.tokens.js +1 -2
  27. package/cjs/components/Select/Select.tokens.js.map +1 -1
  28. package/cjs/components/Select/ui/Inner/Inner.css +12 -12
  29. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +12 -12
  30. package/cjs/components/Select/ui/Target/Target.css +12 -12
  31. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +12 -12
  32. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  33. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  34. package/{es/components/Select/ui/Target/ui/Textfield/Textfield.styles_jzeap2.css → cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_11yj58s.css} +1 -1
  35. package/cjs/components/Tabs/tokens.js +2 -1
  36. package/cjs/components/Tabs/tokens.js.map +1 -1
  37. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +7 -5
  38. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +14 -3
  39. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  40. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  41. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  42. package/{es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css → cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1vj7dbl.css} +1 -1
  43. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +9 -0
  44. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +1 -0
  45. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +1 -0
  46. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +7 -5
  47. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +14 -3
  48. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  49. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  50. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  51. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_6ssvos.css +5 -0
  52. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +9 -0
  53. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +1 -0
  54. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +1 -0
  55. package/cjs/index.css +39 -33
  56. package/cjs/index.js +1 -1
  57. package/emotion/cjs/components/Badge/Badge.js +22 -4
  58. package/emotion/cjs/components/Badge/Badge.tokens.js +2 -1
  59. package/emotion/cjs/components/Badge/variations/_truncate/base.js +10 -0
  60. package/emotion/cjs/components/Badge/variations/_truncate/tokens.json +1 -0
  61. package/emotion/cjs/components/Notification/Notification.js +2 -2
  62. package/emotion/cjs/components/Notification/Notification.styles.js +19 -14
  63. package/emotion/cjs/components/Notification/Notification.template-doc.mdx +8 -17
  64. package/emotion/cjs/components/Notification/Notification.tokens.js +1 -2
  65. package/emotion/cjs/components/Notification/NotificationsPortal.js +5 -9
  66. package/emotion/cjs/components/Notification/NotificationsProvider.js +1 -3
  67. package/emotion/cjs/components/Notification/index.js +4 -4
  68. package/emotion/cjs/components/Select/Select.tokens.js +1 -2
  69. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +21 -12
  70. package/emotion/cjs/components/Tabs/tokens.js +2 -1
  71. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +19 -3
  72. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  73. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +10 -0
  74. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  75. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +19 -3
  76. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  77. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +10 -0
  78. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  79. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +17 -14
  80. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  81. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.js +3 -5
  82. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
  83. package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +48 -16
  84. package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  85. package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  86. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.js +3 -5
  87. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
  88. package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +48 -16
  89. package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  90. package/emotion/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  91. package/emotion/es/components/Badge/Badge.js +23 -4
  92. package/emotion/es/components/Badge/Badge.tokens.js +2 -1
  93. package/emotion/es/components/Badge/variations/_truncate/base.js +4 -0
  94. package/emotion/es/components/Badge/variations/_truncate/tokens.json +1 -0
  95. package/emotion/es/components/Notification/Notification.js +1 -1
  96. package/emotion/es/components/Notification/Notification.styles.js +19 -14
  97. package/emotion/es/components/Notification/Notification.template-doc.mdx +8 -17
  98. package/emotion/es/components/Notification/Notification.tokens.js +1 -2
  99. package/emotion/es/components/Notification/NotificationsPortal.js +5 -9
  100. package/emotion/es/components/Notification/NotificationsProvider.js +1 -3
  101. package/emotion/es/components/Notification/index.js +1 -1
  102. package/emotion/es/components/Select/Select.tokens.js +1 -2
  103. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +21 -12
  104. package/emotion/es/components/Tabs/tokens.js +2 -1
  105. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +20 -3
  106. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  107. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +4 -0
  108. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  109. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +20 -3
  110. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  111. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +4 -0
  112. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  113. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +17 -14
  114. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  115. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.js +4 -6
  116. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
  117. package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +48 -16
  118. package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  119. package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  120. package/emotion/es/examples/plasma_web/components/Notification/Notification.js +4 -6
  121. package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
  122. package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +48 -16
  123. package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  124. package/emotion/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  125. package/es/components/Badge/Badge.css +2 -0
  126. package/es/components/Badge/Badge.js +18 -5
  127. package/es/components/Badge/Badge.js.map +1 -1
  128. package/es/components/Badge/Badge.tokens.js +2 -1
  129. package/es/components/Badge/Badge.tokens.js.map +1 -1
  130. package/es/components/Badge/variations/_truncate/base.js +5 -0
  131. package/es/components/Badge/variations/_truncate/base.js.map +1 -0
  132. package/es/components/Badge/variations/_truncate/base_nf9u2h.css +1 -0
  133. package/es/components/Notification/Notification.css +11 -11
  134. package/es/components/Notification/Notification.js +2 -2
  135. package/es/components/Notification/Notification.js.map +1 -1
  136. package/es/components/Notification/Notification.styles.js +2 -11
  137. package/es/components/Notification/Notification.styles.js.map +1 -1
  138. package/es/components/Notification/{Notification.styles_e6274r.css → Notification.styles_7h8hp0.css} +2 -2
  139. package/es/components/Notification/Notification.tokens.js +1 -2
  140. package/es/components/Notification/Notification.tokens.js.map +1 -1
  141. package/es/components/Notification/Notification.types.js.map +1 -1
  142. package/es/components/Notification/NotificationsPortal.js +4 -8
  143. package/es/components/Notification/NotificationsPortal.js.map +1 -1
  144. package/es/components/Notification/NotificationsProvider.css +11 -11
  145. package/es/components/Notification/NotificationsProvider.js +1 -3
  146. package/es/components/Notification/NotificationsProvider.js.map +1 -1
  147. package/es/components/Pagination/Pagination.css +12 -12
  148. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +12 -12
  149. package/es/components/Select/Select.css +12 -12
  150. package/es/components/Select/Select.tokens.js +1 -2
  151. package/es/components/Select/Select.tokens.js.map +1 -1
  152. package/es/components/Select/ui/Inner/Inner.css +12 -12
  153. package/es/components/Select/ui/Inner/ui/Item/Item.css +12 -12
  154. package/es/components/Select/ui/Target/Target.css +12 -12
  155. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +12 -12
  156. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  157. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  158. package/{cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_jzeap2.css → es/components/Select/ui/Target/ui/Textfield/Textfield.styles_11yj58s.css} +1 -1
  159. package/es/components/Tabs/tokens.js +2 -1
  160. package/es/components/Tabs/tokens.js.map +1 -1
  161. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +7 -5
  162. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +15 -4
  163. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  164. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  165. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  166. package/{cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css → es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1vj7dbl.css} +1 -1
  167. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +5 -0
  168. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +1 -0
  169. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +1 -0
  170. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +7 -5
  171. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +15 -4
  172. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  173. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  174. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  175. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_6ssvos.css +5 -0
  176. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +5 -0
  177. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +1 -0
  178. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +1 -0
  179. package/es/index.css +39 -33
  180. package/es/index.js +1 -1
  181. package/package.json +2 -2
  182. package/styled-components/cjs/components/Badge/Badge.js +22 -4
  183. package/styled-components/cjs/components/Badge/Badge.tokens.js +2 -1
  184. package/styled-components/cjs/components/Badge/variations/_truncate/base.js +10 -0
  185. package/styled-components/cjs/components/Badge/variations/_truncate/tokens.json +1 -0
  186. package/styled-components/cjs/components/Notification/Notification.js +2 -2
  187. package/styled-components/cjs/components/Notification/Notification.styles.js +2 -5
  188. package/styled-components/cjs/components/Notification/Notification.template-doc.mdx +8 -17
  189. package/styled-components/cjs/components/Notification/Notification.tokens.js +1 -2
  190. package/styled-components/cjs/components/Notification/NotificationsPortal.js +4 -8
  191. package/styled-components/cjs/components/Notification/NotificationsProvider.js +1 -3
  192. package/styled-components/cjs/components/Notification/index.js +4 -4
  193. package/styled-components/cjs/components/Select/Select.tokens.js +1 -2
  194. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  195. package/styled-components/cjs/components/Tabs/tokens.js +2 -1
  196. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +19 -3
  197. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  198. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +10 -0
  199. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  200. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +19 -3
  201. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  202. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +10 -0
  203. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  204. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +3 -0
  205. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  206. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.js +3 -5
  207. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
  208. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +48 -16
  209. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  210. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  211. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.js +3 -5
  212. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
  213. package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +48 -16
  214. package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  215. package/styled-components/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  216. package/styled-components/es/components/Badge/Badge.js +23 -4
  217. package/styled-components/es/components/Badge/Badge.tokens.js +2 -1
  218. package/styled-components/es/components/Badge/variations/_truncate/base.js +4 -0
  219. package/styled-components/es/components/Badge/variations/_truncate/tokens.json +1 -0
  220. package/styled-components/es/components/Notification/Notification.js +1 -1
  221. package/styled-components/es/components/Notification/Notification.styles.js +2 -5
  222. package/styled-components/es/components/Notification/Notification.template-doc.mdx +8 -17
  223. package/styled-components/es/components/Notification/Notification.tokens.js +1 -2
  224. package/styled-components/es/components/Notification/NotificationsPortal.js +4 -8
  225. package/styled-components/es/components/Notification/NotificationsProvider.js +1 -3
  226. package/styled-components/es/components/Notification/index.js +1 -1
  227. package/styled-components/es/components/Select/Select.tokens.js +1 -2
  228. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  229. package/styled-components/es/components/Tabs/tokens.js +2 -1
  230. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +20 -3
  231. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  232. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +4 -0
  233. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  234. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +20 -3
  235. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  236. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +4 -0
  237. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  238. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +3 -0
  239. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  240. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.js +4 -6
  241. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
  242. package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +48 -16
  243. package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  244. package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  245. package/styled-components/es/examples/plasma_web/components/Notification/Notification.js +4 -6
  246. package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
  247. package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +48 -16
  248. package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  249. package/styled-components/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  250. package/types/components/Badge/Badge.d.ts +10 -2
  251. package/types/components/Badge/Badge.d.ts.map +1 -1
  252. package/types/components/Badge/Badge.tokens.d.ts +1 -0
  253. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  254. package/types/components/Badge/Badge.types.d.ts +5 -0
  255. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  256. package/types/components/Badge/variations/_truncate/base.d.ts +2 -0
  257. package/types/components/Badge/variations/_truncate/base.d.ts.map +1 -0
  258. package/types/components/Notification/Notification.d.ts +3 -3
  259. package/types/components/Notification/Notification.d.ts.map +1 -1
  260. package/types/components/Notification/Notification.styles.d.ts +2 -4
  261. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  262. package/types/components/Notification/Notification.tokens.d.ts +0 -1
  263. package/types/components/Notification/Notification.tokens.d.ts.map +1 -1
  264. package/types/components/Notification/Notification.types.d.ts +5 -11
  265. package/types/components/Notification/Notification.types.d.ts.map +1 -1
  266. package/types/components/Notification/NotificationsPortal.d.ts.map +1 -1
  267. package/types/components/Notification/NotificationsProvider.d.ts +3 -4
  268. package/types/components/Notification/NotificationsProvider.d.ts.map +1 -1
  269. package/types/components/Notification/index.d.ts +2 -2
  270. package/types/components/Notification/index.d.ts.map +1 -1
  271. package/types/components/Select/Select.tokens.d.ts +0 -1
  272. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  273. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  274. package/types/components/Tabs/TabItem.types.d.ts +5 -0
  275. package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
  276. package/types/components/Tabs/tokens.d.ts +1 -0
  277. package/types/components/Tabs/tokens.d.ts.map +1 -1
  278. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts +9 -2
  279. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
  280. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
  281. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts +2 -0
  282. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts.map +1 -0
  283. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts +9 -2
  284. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts.map +1 -1
  285. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
  286. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts +2 -0
  287. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts.map +1 -0
  288. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts +3 -0
  289. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  290. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +6 -0
  291. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  292. package/types/examples/plasma_b2c/components/Notification/Notification.d.ts +2 -4
  293. package/types/examples/plasma_b2c/components/Notification/Notification.d.ts.map +1 -1
  294. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +6 -0
  295. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
  296. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +3 -0
  297. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  298. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts +3 -0
  299. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  300. package/types/examples/plasma_web/components/Badge/Badge.d.ts +3 -0
  301. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  302. package/types/examples/plasma_web/components/Notification/Notification.d.ts +13 -4
  303. package/types/examples/plasma_web/components/Notification/Notification.d.ts.map +1 -1
  304. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts +6 -0
  305. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts.map +1 -1
  306. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +3 -0
  307. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  308. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts +3 -0
  309. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  310. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css +0 -5
  311. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css +0 -5
@@ -12,12 +12,18 @@ 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");
15
16
  var _Badge = /*#__PURE__*/require("./Badge.styles");
16
17
  var _Badge2 = /*#__PURE__*/require("./Badge.tokens");
17
- var _excluded = ["children", "className", "text", "contentLeft", "contentRight", "size", "view", "pilled", "transparent", "clear"];
18
+ var _excluded = ["children", "className", "text", "contentLeft", "contentRight", "size", "view", "pilled", "transparent", "clear", "maxWidth"];
18
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); }
19
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; }
20
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); }
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); }
21
27
  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; }
22
28
  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; }
23
29
  var badgeRoot = exports.badgeRoot = function badgeRoot(Root) {
@@ -35,20 +41,28 @@ var badgeRoot = exports.badgeRoot = function badgeRoot(Root) {
35
41
  transparent = _props$transparent === void 0 ? false : _props$transparent,
36
42
  _props$clear = props.clear,
37
43
  clear = _props$clear === void 0 ? false : _props$clear,
44
+ _props$maxWidth = props.maxWidth,
45
+ maxWidth = _props$maxWidth === void 0 ? 'auto' : _props$maxWidth,
38
46
  rest = _objectWithoutProperties(props, _excluded);
39
47
  var pilledClass = pilled ? _Badge2.classes.badgePilled : undefined;
40
48
  var transparentClass = transparent ? _Badge2.classes.badgeTransparent : undefined;
41
49
  var clearClass = clear ? _Badge2.classes.badgeClear : undefined;
42
50
  var txt = !text && typeof children === 'string' ? children : text;
51
+ var truncate = maxWidth !== 'auto';
43
52
  return /*#__PURE__*/_react["default"].createElement(Root, _extends({
44
53
  ref: ref,
45
- className: (0, _utils.cx)(pilledClass, transparentClass, clearClass, className),
54
+ className: (0, _utils.cx)(pilledClass, transparentClass, clearClass, truncate && _Badge2.classes.badgeTruncate, className),
46
55
  view: view,
47
56
  size: size,
48
57
  pilled: pilled,
49
58
  transparent: transparent,
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));
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));
52
66
  });
53
67
  };
54
68
  var badgeConfig = exports.badgeConfig = {
@@ -74,6 +88,10 @@ var badgeConfig = exports.badgeConfig = {
74
88
  clear: {
75
89
  css: _base5.base,
76
90
  attrs: true
91
+ },
92
+ truncate: {
93
+ css: _base6.base,
94
+ attrs: true
77
95
  }
78
96
  },
79
97
  defaults: {
@@ -7,7 +7,8 @@ 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'
10
+ badgeClear: 'badge-clear',
11
+ badgeTruncate: 'badge-truncate'
11
12
  };
12
13
  var tokens = exports.tokens = {
13
14
  background: '--plasma-badge-background',
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.base = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("styled-components");
8
+ var _Badge = /*#__PURE__*/require("../../Badge.tokens");
9
+ var _Badge2 = /*#__PURE__*/require("../../Badge.styles");
10
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["&.", "{max-width:100%;", "{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}"], _Badge.classes.badgeTruncate, _Badge2.StyledContentMain);
@@ -4,7 +4,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.notificationRoot = exports.notificationConfig = void 0;
7
+ exports.notificationRoot = exports.noticationConfig = void 0;
8
8
  var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
9
  var _utils = /*#__PURE__*/require("../../utils");
10
10
  var _IconCross2 = /*#__PURE__*/require("../_Icon/Icons/IconCross");
@@ -94,7 +94,7 @@ var notificationRoot = exports.notificationRoot = function notificationRoot(Root
94
94
  })))));
95
95
  });
96
96
  };
97
- var notificationConfig = exports.notificationConfig = {
97
+ var noticationConfig = exports.noticationConfig = {
98
98
  name: 'Notification',
99
99
  tag: 'div',
100
100
  layout: notificationRoot,
@@ -66,10 +66,7 @@ var StyledContent = exports.StyledContent = /*#__PURE__*/_styledComponents["defa
66
66
  })(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");", ";color:var(", ");"], _Notification.tokens.contentFontFamily, _Notification.tokens.contentFontSize, _Notification.tokens.contentFontStyle, _Notification.tokens.contentFontWeight, _Notification.tokens.contentFontLetterSpacing, _Notification.tokens.contentFontLineHeight, /*#__PURE__*/String(_mixins.applyHyphens), _Notification.tokens.contentColor);
67
67
  var StyledItemWrapper = exports.StyledItemWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
68
68
  componentId: "plasma-new-hope__sc-1iufy9r-8"
69
- })(["margin-top:1rem;opacity:1;&&.", "{animation:0.4s showAnimation ease-out;&.", "{animation:0.4s showLeftToRightAnimation ease-out;}}&&.", "{animation:0.4s hideAnimation ease-out;&.", "{animation:0.4s hideLeftToRightAnimation ease-out;}}@keyframes showLeftToRightAnimation{0%{transform:translateX(-100%);opacity:0;}100%{transform:translateX(0);opacity:1;}}@keyframes hideLeftToRightAnimation{0%{transform:translateX(0);opacity:1;}100%{transform:translateX(-100%);opacity:0;}}@keyframes showAnimation{0%{transform:translateX(100%);opacity:0;}100%{transform:translateX(0);opacity:1;}}@keyframes hideAnimation{0%{transform:translateX(0);opacity:1;}100%{transform:translateX(100%);opacity:0;}}"], _Notification.classes.notificationItemOpened, _Notification.classes.notificationLeftToRightAnimation, _Notification.classes.notificationItemHidden, _Notification.classes.notificationLeftToRightAnimation);
69
+ })(["margin-top:1rem;opacity:1;&&.", "{animation:0.4s showAnimation ease-out;}&&.", "{animation:0.4s hideAnimation ease-out;}@keyframes showAnimation{0%{transform:translateX(100%);opacity:0;}100%{transform:translateX(0);opacity:1;}}@keyframes hideAnimation{0%{transform:translateX(0);opacity:1;}100%{transform:translateX(100%);opacity:0;}}"], _Notification.classes.notificationItemOpened, _Notification.classes.notificationItemHidden);
70
70
  var StyledRoot = exports.StyledRoot = /*#__PURE__*/_styledComponents["default"].div.withConfig({
71
71
  componentId: "plasma-new-hope__sc-1iufy9r-9"
72
- })(["display:flex;flex-direction:column-reverse;box-sizing:border-box;padding:0 1.5rem 1.5rem;max-height:100%;align-items:", ";"], function (_ref8) {
73
- var placement = _ref8.placement;
74
- return placement === 'bottom-left' ? 'flex-start' : 'flex-end';
75
- });
72
+ })(["display:flex;flex-direction:column-reverse;box-sizing:border-box;padding:0 1.5rem 1.5rem;max-height:100%;align-items:flex-end;"]);
@@ -10,15 +10,14 @@ import { PropsTable, Description } from '@site/src/components';
10
10
  <PropsTable name="Notification" />
11
11
 
12
12
  ## Использование
13
- Компонент `Notification` может использоваться для создания собственных систем оповещения.
13
+ Компонент `Notification` может использоваться для создания собственных систем оповещения.
14
14
  Вид компонента контролируется свойствами (props).
15
- Текстовая часть оповещения состоит из `title` и `children`.
15
+ Текстовая часть оповещения состоит из `title` и `children`.
16
16
  Слева или сверху от нее, также можно пробросить иконку через свойство `icon`.
17
17
  Также есть часть `actions`, в которой предполагается отображение кнопок для взаимодействия.
18
18
 
19
19
  ### Провайдер контекста
20
- Поместите `NotificationsProvider` в [корень приложения](../../#корень-приложения) или там, где будете применять модальные окна.
21
- В качестве свойств можно указать контейнер для оповещений через `frame` и расположение в контейнере через свойство `placement`, как `bottom-right` _(по умолчанию)_ или `bottom-left`.
20
+ Поместите `NotificationsProvider` в [корень приложения](../../#корень-приложения) или там, где будете применять модальные окна:
22
21
 
23
22
  ```tsx title="index.ts"
24
23
  import ReactDOM from 'react-dom';
@@ -35,32 +34,24 @@ ReactDOM.render(
35
34
  ```
36
35
 
37
36
  ### Вызов уведомления
38
- После подключения `NotificationsProvider` станет возможен вызов функции `addNotification`, который приведет к отображению оповещения.
39
- Функция принимает значения свойств компонента `Notification`, включая необязательное поле `id`. И возвращает сгенерированный или переданный `id`, по которому можно закрыть оповещение через вызов `closeNotification`.
37
+ После подключения `NotificationsProvider` станет возможен вызов функции `addNotification`,который приведет к отображению оповещения.
38
+ Функция принимает значения свойств компонента `Notification`:
40
39
 
41
40
  ```tsx live
42
41
  import React from 'react';
43
- import { Button, ButtonGroup, addNotification, closeNotification, NotificationsProvider } from '@salutejs/{{ package }}';
42
+ import { Button, addNotification, NotificationsProvider } from '@salutejs/{{ package }}';
44
43
 
45
44
  export function App() {
46
- const handleShow = React.useCallback(() => {
45
+ const handleClick = React.useCallback(() => {
47
46
  addNotification({
48
- id: 'incoming-call',
49
47
  title: 'Входящий вызов',
50
48
  children: 'Принять?',
51
49
  }, 1000);
52
50
  }, []);
53
51
 
54
- const handleHide = React.useCallback(() => {
55
- closeNotification('incoming-call');
56
- }, []);
57
-
58
52
  return (
59
53
  <NotificationsProvider>
60
- <ButtonGroup>
61
- <Button text="Показать оповещение" onClick={handleShow} />
62
- <Button text="Скрыть оповещение" onClick={handleHide} />
63
- </ButtonGroup>
54
+ <Button text="Показать оповещение" onClick={handleClick} />
64
55
  </NotificationsProvider>
65
56
  );
66
57
  }
@@ -19,8 +19,7 @@ var classes = exports.classes = {
19
19
  withoutIcon: 'notification-without-icon',
20
20
  withoutCloseIcon: 'notification-without-close-icon',
21
21
  notificationItemOpened: 'notification-item-opened',
22
- notificationItemHidden: 'notification-item-hidden',
23
- notificationLeftToRightAnimation: 'notification-left-to-right-animation'
22
+ notificationItemHidden: 'notification-item-hidden'
24
23
  };
25
24
  var tokens = exports.tokens = {
26
25
  background: '--plasma-notification-backgorund',
@@ -33,9 +33,7 @@ var StyledPopup = /*#__PURE__*/(0, _styledComponents["default"])(Popup).withConf
33
33
  */
34
34
  var NotificationsPortal = exports.NotificationsPortal = function NotificationsPortal(_ref) {
35
35
  var config = _ref.config,
36
- frame = _ref.frame,
37
- _ref$placement = _ref.placement,
38
- placement = _ref$placement === void 0 ? 'bottom-right' : _ref$placement;
36
+ frame = _ref.frame;
39
37
  var _useStoreon = (0, _react2.useStoreon)('notifications'),
40
38
  notifications = _useStoreon.notifications;
41
39
  var Notification = (0, _react.useMemo)(function () {
@@ -44,17 +42,15 @@ var NotificationsPortal = exports.NotificationsPortal = function NotificationsPo
44
42
  return /*#__PURE__*/_react["default"].createElement(_Popup.PopupProvider, null, notifications.length > 0 && /*#__PURE__*/_react["default"].createElement(StyledPopup, {
45
43
  opened: true,
46
44
  frame: frame,
47
- placement: placement,
45
+ placement: "bottom-right",
48
46
  zIndex: "9100"
49
- }, /*#__PURE__*/_react["default"].createElement(_Notification.StyledRoot, {
50
- placement: placement
51
- }, notifications.map(function (_ref2) {
47
+ }, /*#__PURE__*/_react["default"].createElement(_Notification.StyledRoot, null, notifications.map(function (_ref2) {
52
48
  var id = _ref2.id,
53
49
  isHidden = _ref2.isHidden,
54
50
  rest = _objectWithoutProperties(_ref2, _excluded);
55
51
  return /*#__PURE__*/_react["default"].createElement(_Notification.StyledItemWrapper, {
56
52
  key: id,
57
- className: (0, _utils.cx)(isHidden ? _Notification2.classes.notificationItemHidden : _Notification2.classes.notificationItemOpened, placement === 'bottom-left' && _Notification2.classes.notificationLeftToRightAnimation),
53
+ className: (0, _utils.cx)(isHidden ? _Notification2.classes.notificationItemHidden : _Notification2.classes.notificationItemOpened),
58
54
  isHidden: isHidden || false
59
55
  }, /*#__PURE__*/_react["default"].createElement(Notification, _extends({
60
56
  key: id,
@@ -12,13 +12,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
12
12
  var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
13
13
  var children = _ref.children,
14
14
  config = _ref.config,
15
- frame = _ref.frame,
16
- placement = _ref.placement;
15
+ frame = _ref.frame;
17
16
  return /*#__PURE__*/_react["default"].createElement(_react2.StoreContext.Provider, {
18
17
  value: _NotificationsStore.NotificationsStore
19
18
  }, children, /*#__PURE__*/_react["default"].createElement(_NotificationsPortal.NotificationsPortal, {
20
19
  frame: frame,
21
- placement: placement,
22
20
  config: config
23
21
  }));
24
22
  };
@@ -21,16 +21,16 @@ Object.defineProperty(exports, "closeNotification", {
21
21
  return _NotificationsStore.closeNotification;
22
22
  }
23
23
  });
24
- Object.defineProperty(exports, "notificationClasses", {
24
+ Object.defineProperty(exports, "noticationConfig", {
25
25
  enumerable: true,
26
26
  get: function get() {
27
- return _Notification2.classes;
27
+ return _Notification.noticationConfig;
28
28
  }
29
29
  });
30
- Object.defineProperty(exports, "notificationConfig", {
30
+ Object.defineProperty(exports, "notificationClasses", {
31
31
  enumerable: true,
32
32
  get: function get() {
33
- return _Notification.notificationConfig;
33
+ return _Notification2.classes;
34
34
  }
35
35
  });
36
36
  Object.defineProperty(exports, "notificationRoot", {
@@ -99,8 +99,7 @@ var tokens = exports.tokens = {
99
99
  spinnerSize: '--plasma-select-spinner-size',
100
100
  spinnerSizeTight: '--plasma-select-spinner-size-tight',
101
101
  disclosureIconColor: '--plasma-select-disclosure-icon-color',
102
- disclosureIconColorHover: '--plasma-select-disclosure-icon-color-hover',
103
- contentLeftColor: '--plasma-select-content-left-color'
102
+ disclosureIconColorHover: '--plasma-select-disclosure-icon-color-hover'
104
103
  };
105
104
  var constants = exports.constants = {
106
105
  focusColor: '--surface-accent',
@@ -70,7 +70,7 @@ var InnerLabel = exports.InnerLabel = /*#__PURE__*/_styledComponents["default"].
70
70
  })(["color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");text-align:left;"], _Select.constants.textfieldInnerLabelColor, _Select.constants.fontFamily, _Select.constants.fontSize, _Select.constants.fontStyle, _Select.constants.fontWeight, _Select.constants.fontLetterSpacing, _Select.constants.fontLineHeight);
71
71
  var ContentLeftWrapper = exports.ContentLeftWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
72
72
  componentId: "plasma-new-hope__sc-1akl2tk-10"
73
- })(["flex:none;margin-left:-0.125rem;margin-right:0.375rem;line-height:0;color:var(", ");"], _Select.tokens.contentLeftColor);
73
+ })(["flex:none;margin-left:-0.125rem;margin-right:0.375rem;line-height:0;"]);
74
74
  var Value = exports.Value = /*#__PURE__*/_styledComponents["default"].span.withConfig({
75
75
  componentId: "plasma-new-hope__sc-1akl2tk-11"
76
76
  })(["", ""], /*#__PURE__*/(0, _mixins.applyEllipsis)());
@@ -20,7 +20,8 @@ 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'
23
+ tabsClipShowAll: 'tabs-clip-show-all',
24
+ tabsTruncate: 'tabs-truncate'
24
25
  };
25
26
  var tokens = exports.tokens = {
26
27
  disabledOpacity: '--plasma-tabs-disabled-opacity',
@@ -14,11 +14,17 @@ 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");
17
18
  var _HorizontalTabItem = /*#__PURE__*/require("./HorizontalTabItem.styles");
18
- var _excluded = ["size", "view", "isActive", "selected", "disabled", "pilled", "children", "value", "contentLeft", "contentRight", "animated", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick"];
19
+ var _excluded = ["size", "view", "isActive", "selected", "disabled", "pilled", "children", "value", "contentLeft", "contentRight", "animated", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick", "maxItemWidth"];
19
20
  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
21
  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
22
  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); }
22
28
  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; }
23
29
  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; }
24
30
  var horizontalTabItemRoot = exports.horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
@@ -42,11 +48,13 @@ var horizontalTabItemRoot = exports.horizontalTabItemRoot = function horizontalT
42
48
  tabIndex = props.tabIndex,
43
49
  className = props.className,
44
50
  onClick = props.onClick,
51
+ maxWidth = props.maxItemWidth,
45
52
  rest = _objectWithoutProperties(props, _excluded);
46
53
  var innerRef = (0, _react.useRef)(null);
47
54
  var ref = (0, _plasmaCore.useForkRef)(outerRef, innerRef);
48
55
  var refs = (0, _react.useContext)(_TabsContext.TabsContext);
49
56
  var role = 'tab';
57
+ var truncate = maxWidth !== 'auto';
50
58
  var pilledAttr = view !== 'clear' && pilled;
51
59
  var animatedClass = animated ? _tokens.classes.tabItemAnimated : undefined;
52
60
  var pilledClass = pilledAttr ? _tokens.classes.tabsPilled : undefined;
@@ -103,11 +111,16 @@ var horizontalTabItemRoot = exports.horizontalTabItemRoot = function horizontalT
103
111
  role: role,
104
112
  view: view,
105
113
  size: size,
114
+ truncate: truncate,
106
115
  onFocus: onItemFocus,
107
116
  tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
108
- className: (0, _utils.cx)(pilledClass, selectedClass, animatedClass, className),
117
+ className: (0, _utils.cx)(pilledClass, selectedClass, animatedClass, truncate && _tokens.classes.tabsTruncate, className),
109
118
  onClick: handleClick
110
- }, rest), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, contentLeft && /*#__PURE__*/_react["default"].createElement(_HorizontalTabItem.LeftContent, {
119
+ }, rest, {
120
+ style: _objectSpread(_objectSpread({}, rest.style), {}, {
121
+ maxWidth: maxWidth
122
+ })
123
+ }), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, contentLeft && /*#__PURE__*/_react["default"].createElement(_HorizontalTabItem.LeftContent, {
111
124
  className: _tokens.classes.tabLeftContent
112
125
  }, contentLeft), /*#__PURE__*/_react["default"].createElement(_HorizontalTabItem.StyledContent, {
113
126
  className: _tokens.classes.tabContent
@@ -134,6 +147,9 @@ var horizontalTabItemConfig = exports.horizontalTabItemConfig = {
134
147
  },
135
148
  pilled: {
136
149
  css: _base3.base
150
+ },
151
+ truncate: {
152
+ css: _base5.base
137
153
  }
138
154
  },
139
155
  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;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;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)({
14
14
  outlineSize: '0.063rem',
15
15
  outlineOffset: '-0.125rem',
16
16
  outlineColor: /*#__PURE__*/"var(".concat(_tokens.tokens.outlineFocusColor, ")"),
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.base = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("styled-components");
8
+ var _tokens = /*#__PURE__*/require("../../../../../tokens");
9
+ var _HorizontalTabItem = /*#__PURE__*/require("../../HorizontalTabItem.styles");
10
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["&.", "{", "{overflow:hidden;text-overflow:ellipsis;}", "{overflow:hidden;text-overflow:ellipsis;}}"], _tokens.classes.tabsTruncate, _HorizontalTabItem.StyledContent, _HorizontalTabItem.TabItemValue);
@@ -14,10 +14,16 @@ 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 _excluded = ["size", "view", "selected", "disabled", "children", "value", "contentLeft", "contentRight", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick"];
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"];
18
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); }
19
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; }
20
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); }
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); }
21
27
  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; }
22
28
  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; }
23
29
  var verticalTabItemRoot = exports.verticalTabItemRoot = function verticalTabItemRoot(Root) {
@@ -36,11 +42,13 @@ var verticalTabItemRoot = exports.verticalTabItemRoot = function verticalTabItem
36
42
  tabIndex = props.tabIndex,
37
43
  className = props.className,
38
44
  onClick = props.onClick,
45
+ maxWidth = props.maxItemWidth,
39
46
  rest = _objectWithoutProperties(props, _excluded);
40
47
  var innerRef = (0, _react.useRef)(null);
41
48
  var ref = (0, _plasmaCore.useForkRef)(outerRef, innerRef);
42
49
  var refs = (0, _react.useContext)(_TabsContext.TabsContext);
43
50
  var role = 'tab';
51
+ var truncate = maxWidth !== 'auto';
44
52
  var selectedClass = selected ? _tokens.classes.selectedTabsItem : undefined;
45
53
  var hasKeyNavigation = itemIndex !== undefined && onIndexChange !== undefined;
46
54
  var navigationTabIndex = !disabled && (refs === null || refs === void 0 ? void 0 : refs.current) === itemIndex ? 0 : -1;
@@ -92,11 +100,16 @@ var verticalTabItemRoot = exports.verticalTabItemRoot = function verticalTabItem
92
100
  role: role,
93
101
  view: view,
94
102
  size: size,
103
+ truncate: truncate,
95
104
  onFocus: onItemFocus,
96
105
  tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
97
- className: (0, _utils.cx)(selectedClass, className),
106
+ className: (0, _utils.cx)(selectedClass, truncate && _tokens.classes.tabsTruncate, className),
98
107
  onClick: handleClick
99
- }, rest), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, contentLeft && /*#__PURE__*/_react["default"].createElement(_VerticalTabItem.LeftContent, {
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, {
100
113
  className: _tokens.classes.tabLeftContent
101
114
  }, contentLeft), /*#__PURE__*/_react["default"].createElement(_VerticalTabItem.StyledContent, {
102
115
  className: _tokens.classes.tabContent
@@ -120,6 +133,9 @@ var verticalTabItemConfig = exports.verticalTabItemConfig = {
120
133
  disabled: {
121
134
  css: _base3.base,
122
135
  attrs: true
136
+ },
137
+ truncate: {
138
+ css: _base4.base
123
139
  }
124
140
  },
125
141
  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 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)({
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 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)({
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
- })(["color:var(", ");"], _tokens.tokens.itemValueColor);
27
+ })(["white-space:nowrap;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;}"]);
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.base = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("styled-components");
8
+ var _tokens = /*#__PURE__*/require("../../../../../tokens");
9
+ var _VerticalTabItem = /*#__PURE__*/require("../../VerticalTabItem.styles");
10
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["&.", "{", "{overflow:hidden;text-overflow:ellipsis;}", "{overflow:hidden;text-overflow:ellipsis;}}"], _tokens.classes.tabsTruncate, _VerticalTabItem.StyledContent, _VerticalTabItem.TabItemValue);
@@ -35,6 +35,9 @@ 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)([""])
38
41
  }
39
42
  }
40
43
  };
@@ -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';
@@ -16,16 +16,14 @@ var _engines = /*#__PURE__*/require("../../../../engines");
16
16
  var _Notification2 = /*#__PURE__*/require("./Notification.config");
17
17
  var _Modal = /*#__PURE__*/require("../../../../components/Modal");
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
- var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Notification.notificationConfig, _Notification2.config);
19
+ var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Notification.noticationConfig, _Notification2.config);
20
20
  var Notification = exports.Notification = /*#__PURE__*/(0, _engines.component)(mergedConfig);
21
21
  var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
22
22
  var children = _ref.children,
23
23
  _ref$frame = _ref.frame,
24
- frame = _ref$frame === void 0 ? 'theme-root' : _ref$frame,
25
- placement = _ref.placement;
24
+ frame = _ref$frame === void 0 ? 'theme-root' : _ref$frame;
26
25
  return /*#__PURE__*/_react["default"].createElement(_Notification.NotificationsProvider, {
27
26
  config: mergedConfig,
28
- frame: frame,
29
- placement: placement
27
+ frame: frame
30
28
  }, children);
31
29
  };