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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (276) hide show
  1. package/cjs/components/Badge/Badge.css +0 -2
  2. package/cjs/components/Badge/Badge.js +4 -17
  3. package/cjs/components/Badge/Badge.js.map +1 -1
  4. package/cjs/components/Badge/Badge.tokens.js +1 -2
  5. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  6. package/cjs/components/Notification/Notification.css +11 -11
  7. package/cjs/components/Notification/Notification.js +2 -2
  8. package/cjs/components/Notification/Notification.js.map +1 -1
  9. package/cjs/components/Notification/Notification.styles.js +11 -2
  10. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  11. package/{es/components/Notification/Notification.styles_7h8hp0.css → cjs/components/Notification/Notification.styles_e6274r.css} +2 -2
  12. package/cjs/components/Notification/Notification.tokens.js +2 -1
  13. package/cjs/components/Notification/Notification.tokens.js.map +1 -1
  14. package/cjs/components/Notification/Notification.types.js.map +1 -1
  15. package/cjs/components/Notification/NotificationsPortal.js +8 -4
  16. package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
  17. package/cjs/components/Notification/NotificationsProvider.css +11 -11
  18. package/cjs/components/Notification/NotificationsProvider.js +3 -1
  19. package/cjs/components/Notification/NotificationsProvider.js.map +1 -1
  20. package/cjs/components/Tabs/tokens.js +1 -2
  21. package/cjs/components/Tabs/tokens.js.map +1 -1
  22. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -7
  23. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -14
  24. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  25. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  26. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  27. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/{HorizontalTabItem.styles_1vj7dbl.css → HorizontalTabItem.styles_hfqv5b.css} +1 -1
  28. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -7
  29. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -14
  30. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  31. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  32. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  33. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css +5 -0
  34. package/cjs/index.css +21 -27
  35. package/cjs/index.js +1 -1
  36. package/emotion/cjs/components/Badge/Badge.js +4 -22
  37. package/emotion/cjs/components/Badge/Badge.tokens.js +1 -2
  38. package/emotion/cjs/components/Notification/Notification.js +2 -2
  39. package/emotion/cjs/components/Notification/Notification.styles.js +14 -19
  40. package/emotion/cjs/components/Notification/Notification.template-doc.mdx +17 -8
  41. package/emotion/cjs/components/Notification/Notification.tokens.js +2 -1
  42. package/emotion/cjs/components/Notification/NotificationsPortal.js +9 -5
  43. package/emotion/cjs/components/Notification/NotificationsProvider.js +3 -1
  44. package/emotion/cjs/components/Notification/index.js +4 -4
  45. package/emotion/cjs/components/Tabs/tokens.js +1 -2
  46. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -19
  47. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  48. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -19
  49. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  50. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +14 -17
  51. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  52. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.js +5 -3
  53. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  54. package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +16 -48
  55. package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  56. package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  57. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.js +5 -3
  58. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  59. package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +16 -48
  60. package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  61. package/emotion/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  62. package/emotion/es/components/Badge/Badge.js +4 -23
  63. package/emotion/es/components/Badge/Badge.tokens.js +1 -2
  64. package/emotion/es/components/Notification/Notification.js +1 -1
  65. package/emotion/es/components/Notification/Notification.styles.js +14 -19
  66. package/emotion/es/components/Notification/Notification.template-doc.mdx +17 -8
  67. package/emotion/es/components/Notification/Notification.tokens.js +2 -1
  68. package/emotion/es/components/Notification/NotificationsPortal.js +9 -5
  69. package/emotion/es/components/Notification/NotificationsProvider.js +3 -1
  70. package/emotion/es/components/Notification/index.js +1 -1
  71. package/emotion/es/components/Tabs/tokens.js +1 -2
  72. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -20
  73. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  74. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -20
  75. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  76. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +14 -17
  77. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  78. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.js +6 -4
  79. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  80. package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +16 -48
  81. package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  82. package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  83. package/emotion/es/examples/plasma_web/components/Notification/Notification.js +6 -4
  84. package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  85. package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +16 -48
  86. package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  87. package/emotion/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  88. package/es/components/Badge/Badge.css +0 -2
  89. package/es/components/Badge/Badge.js +5 -18
  90. package/es/components/Badge/Badge.js.map +1 -1
  91. package/es/components/Badge/Badge.tokens.js +1 -2
  92. package/es/components/Badge/Badge.tokens.js.map +1 -1
  93. package/es/components/Notification/Notification.css +11 -11
  94. package/es/components/Notification/Notification.js +2 -2
  95. package/es/components/Notification/Notification.js.map +1 -1
  96. package/es/components/Notification/Notification.styles.js +11 -2
  97. package/es/components/Notification/Notification.styles.js.map +1 -1
  98. package/{cjs/components/Notification/Notification.styles_7h8hp0.css → es/components/Notification/Notification.styles_e6274r.css} +2 -2
  99. package/es/components/Notification/Notification.tokens.js +2 -1
  100. package/es/components/Notification/Notification.tokens.js.map +1 -1
  101. package/es/components/Notification/Notification.types.js.map +1 -1
  102. package/es/components/Notification/NotificationsPortal.js +8 -4
  103. package/es/components/Notification/NotificationsPortal.js.map +1 -1
  104. package/es/components/Notification/NotificationsProvider.css +11 -11
  105. package/es/components/Notification/NotificationsProvider.js +3 -1
  106. package/es/components/Notification/NotificationsProvider.js.map +1 -1
  107. package/es/components/Tabs/tokens.js +1 -2
  108. package/es/components/Tabs/tokens.js.map +1 -1
  109. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -7
  110. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +4 -15
  111. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  112. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  113. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  114. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/{HorizontalTabItem.styles_1vj7dbl.css → HorizontalTabItem.styles_hfqv5b.css} +1 -1
  115. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -7
  116. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +4 -15
  117. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  118. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  119. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  120. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css +5 -0
  121. package/es/index.css +21 -27
  122. package/es/index.js +1 -1
  123. package/package.json +2 -2
  124. package/styled-components/cjs/components/Badge/Badge.js +4 -22
  125. package/styled-components/cjs/components/Badge/Badge.tokens.js +1 -2
  126. package/styled-components/cjs/components/Notification/Notification.js +2 -2
  127. package/styled-components/cjs/components/Notification/Notification.styles.js +5 -2
  128. package/styled-components/cjs/components/Notification/Notification.template-doc.mdx +17 -8
  129. package/styled-components/cjs/components/Notification/Notification.tokens.js +2 -1
  130. package/styled-components/cjs/components/Notification/NotificationsPortal.js +8 -4
  131. package/styled-components/cjs/components/Notification/NotificationsProvider.js +3 -1
  132. package/styled-components/cjs/components/Notification/index.js +4 -4
  133. package/styled-components/cjs/components/Tabs/tokens.js +1 -2
  134. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -19
  135. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  136. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -19
  137. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  138. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +0 -3
  139. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  140. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.js +5 -3
  141. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  142. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +16 -48
  143. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  144. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  145. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.js +5 -3
  146. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  147. package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +16 -48
  148. package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  149. package/styled-components/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  150. package/styled-components/es/components/Badge/Badge.js +4 -23
  151. package/styled-components/es/components/Badge/Badge.tokens.js +1 -2
  152. package/styled-components/es/components/Notification/Notification.js +1 -1
  153. package/styled-components/es/components/Notification/Notification.styles.js +5 -2
  154. package/styled-components/es/components/Notification/Notification.template-doc.mdx +17 -8
  155. package/styled-components/es/components/Notification/Notification.tokens.js +2 -1
  156. package/styled-components/es/components/Notification/NotificationsPortal.js +8 -4
  157. package/styled-components/es/components/Notification/NotificationsProvider.js +3 -1
  158. package/styled-components/es/components/Notification/index.js +1 -1
  159. package/styled-components/es/components/Tabs/tokens.js +1 -2
  160. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -20
  161. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  162. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -20
  163. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  164. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +0 -3
  165. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  166. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.js +6 -4
  167. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  168. package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +16 -48
  169. package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  170. package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  171. package/styled-components/es/examples/plasma_web/components/Notification/Notification.js +6 -4
  172. package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  173. package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +16 -48
  174. package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  175. package/styled-components/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  176. package/types/components/Badge/Badge.d.ts +2 -10
  177. package/types/components/Badge/Badge.d.ts.map +1 -1
  178. package/types/components/Badge/Badge.tokens.d.ts +0 -1
  179. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  180. package/types/components/Badge/Badge.types.d.ts +0 -5
  181. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  182. package/types/components/Notification/Notification.d.ts +3 -3
  183. package/types/components/Notification/Notification.d.ts.map +1 -1
  184. package/types/components/Notification/Notification.styles.d.ts +4 -2
  185. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  186. package/types/components/Notification/Notification.tokens.d.ts +1 -0
  187. package/types/components/Notification/Notification.tokens.d.ts.map +1 -1
  188. package/types/components/Notification/Notification.types.d.ts +11 -5
  189. package/types/components/Notification/Notification.types.d.ts.map +1 -1
  190. package/types/components/Notification/NotificationsPortal.d.ts.map +1 -1
  191. package/types/components/Notification/NotificationsProvider.d.ts +4 -3
  192. package/types/components/Notification/NotificationsProvider.d.ts.map +1 -1
  193. package/types/components/Notification/index.d.ts +2 -2
  194. package/types/components/Notification/index.d.ts.map +1 -1
  195. package/types/components/Tabs/TabItem.types.d.ts +0 -5
  196. package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
  197. package/types/components/Tabs/tokens.d.ts +0 -1
  198. package/types/components/Tabs/tokens.d.ts.map +1 -1
  199. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts +2 -9
  200. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
  201. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
  202. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts +2 -9
  203. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts.map +1 -1
  204. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
  205. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts +0 -3
  206. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  207. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +0 -6
  208. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  209. package/types/examples/plasma_b2c/components/Notification/Notification.d.ts +4 -2
  210. package/types/examples/plasma_b2c/components/Notification/Notification.d.ts.map +1 -1
  211. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +0 -6
  212. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
  213. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +0 -3
  214. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  215. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts +0 -3
  216. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  217. package/types/examples/plasma_web/components/Badge/Badge.d.ts +0 -3
  218. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  219. package/types/examples/plasma_web/components/Notification/Notification.d.ts +4 -13
  220. package/types/examples/plasma_web/components/Notification/Notification.d.ts.map +1 -1
  221. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts +0 -6
  222. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts.map +1 -1
  223. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +0 -3
  224. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  225. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts +0 -3
  226. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  227. package/cjs/components/Badge/variations/_truncate/base.js +0 -9
  228. package/cjs/components/Badge/variations/_truncate/base.js.map +0 -1
  229. package/cjs/components/Badge/variations/_truncate/base_nf9u2h.css +0 -1
  230. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -9
  231. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +0 -1
  232. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +0 -1
  233. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_6ssvos.css +0 -5
  234. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -9
  235. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +0 -1
  236. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +0 -1
  237. package/emotion/cjs/components/Badge/variations/_truncate/base.js +0 -10
  238. package/emotion/cjs/components/Badge/variations/_truncate/tokens.json +0 -1
  239. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -10
  240. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
  241. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -10
  242. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
  243. package/emotion/es/components/Badge/variations/_truncate/base.js +0 -4
  244. package/emotion/es/components/Badge/variations/_truncate/tokens.json +0 -1
  245. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -4
  246. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
  247. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -4
  248. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
  249. package/es/components/Badge/variations/_truncate/base.js +0 -5
  250. package/es/components/Badge/variations/_truncate/base.js.map +0 -1
  251. package/es/components/Badge/variations/_truncate/base_nf9u2h.css +0 -1
  252. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -5
  253. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +0 -1
  254. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +0 -1
  255. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_6ssvos.css +0 -5
  256. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -5
  257. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +0 -1
  258. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +0 -1
  259. package/styled-components/cjs/components/Badge/variations/_truncate/base.js +0 -10
  260. package/styled-components/cjs/components/Badge/variations/_truncate/tokens.json +0 -1
  261. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -10
  262. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
  263. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -10
  264. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
  265. package/styled-components/es/components/Badge/variations/_truncate/base.js +0 -4
  266. package/styled-components/es/components/Badge/variations/_truncate/tokens.json +0 -1
  267. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -4
  268. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
  269. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -4
  270. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
  271. package/types/components/Badge/variations/_truncate/base.d.ts +0 -2
  272. package/types/components/Badge/variations/_truncate/base.d.ts.map +0 -1
  273. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts +0 -2
  274. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts.map +0 -1
  275. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts +0 -2
  276. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts.map +0 -1
@@ -31,9 +31,6 @@ const meta: Meta<typeof Badge> = {
31
31
  control: { type: 'boolean' },
32
32
  if: { arg: 'clear', truthy: false },
33
33
  },
34
- maxWidth: {
35
- control: { type: 'text' },
36
- },
37
34
  ...disableProps(['contentLeft', 'contentRight']),
38
35
  },
39
36
  };
@@ -67,7 +64,7 @@ export const Default: Story = {
67
64
  },
68
65
  },
69
66
  args: {
70
- text: 'Hello Kitty',
67
+ text: 'Hello',
71
68
  view: 'default',
72
69
  size: 'm',
73
70
  enableContentLeft: false,
@@ -75,7 +72,6 @@ export const Default: Story = {
75
72
  clear: false,
76
73
  pilled: false,
77
74
  transparent: false,
78
- maxWidth: '',
79
75
  },
80
76
  render: ({ enableContentLeft, enableContentRight, size, ...rest }: StoryProps) => {
81
77
  const iconSize = size === 'l' ? '1rem' : '0.75rem';
@@ -1,16 +1,18 @@
1
1
  import React from 'react';
2
- import { noticationConfig, NotificationsProvider as Provider } from '../../../../components/Notification';
2
+ import { notificationConfig, NotificationsProvider as Provider } from '../../../../components/Notification';
3
3
  import { component, mergeConfig } from '../../../../engines';
4
4
  import { config } from './Notification.config';
5
5
  export { modalClasses } from '../../../../components/Modal';
6
- var mergedConfig = /*#__PURE__*/mergeConfig(noticationConfig, config);
6
+ var mergedConfig = /*#__PURE__*/mergeConfig(notificationConfig, config);
7
7
  export var Notification = /*#__PURE__*/component(mergedConfig);
8
8
  export var NotificationsProvider = function NotificationsProvider(_ref) {
9
9
  var children = _ref.children,
10
10
  _ref$frame = _ref.frame,
11
- frame = _ref$frame === void 0 ? 'theme-root' : _ref$frame;
11
+ frame = _ref$frame === void 0 ? 'theme-root' : _ref$frame,
12
+ placement = _ref.placement;
12
13
  return /*#__PURE__*/React.createElement(Provider, {
13
14
  config: mergedConfig,
14
- frame: frame
15
+ frame: frame,
16
+ placement: placement
15
17
  }, children);
16
18
  };
@@ -5,6 +5,7 @@ import type { StoryObj, Meta } from '@storybook/react';
5
5
  import { Button } from '../Button/Button';
6
6
  import { Modal } from '../Modal/Modal';
7
7
  import {
8
+ NotificationPlacement,
8
9
  NotificationIconPlacement,
9
10
  NotificationLayout,
10
11
  addNotification,
@@ -20,6 +21,7 @@ const titles = ['Выполнено', 'Внимание', 'Ошибка'];
20
21
  const texts = ['SSH ключ успешно скопирован', 'Нельзя скопировать SSH ключ', 'Не удалось скопировать SSH ключ'];
21
22
  const size = ['xs', 'xxs'];
22
23
  const iconPlacement = ['top', 'left'];
24
+ const notificationsPlacements = ['bottom-right', 'bottom-left'];
23
25
 
24
26
  const longText = `JavaScript frameworks are an essential part of modern front-end web development,
25
27
  providing developers with proven tools for building scalable, interactive web applications.
@@ -49,6 +51,7 @@ interface StoryDefaultProps {
49
51
  layout: NotificationLayout;
50
52
  size: 'xs' | 'xxs';
51
53
  iconPlacement: NotificationIconPlacement;
54
+ placement?: NotificationPlacement;
52
55
  }
53
56
 
54
57
  const StoryDefault = ({ title, children, iconPlacement, size, layout, showLeftIcon, ...rest }: StoryDefaultProps) => {
@@ -111,9 +114,10 @@ type StoryLiveDemoProps = ComponentProps<typeof Notification> & {
111
114
  layout: NotificationLayout;
112
115
  size: 'xs' | 'xxs';
113
116
  iconPlacement: NotificationIconPlacement;
117
+ placement?: NotificationPlacement;
114
118
  };
115
119
 
116
- const StoryLiveDemo = ({ timeout, ...rest }: StoryLiveDemoProps) => {
120
+ const StoryLiveDemo = ({ timeout, placement, ...rest }: StoryLiveDemoProps) => {
117
121
  const count = useRef(0);
118
122
  const handleClick = useCallback(() => {
119
123
  addNotification({ icon: <IconDisclosureRight />, ...rest, ...getNotificationProps(count.current) }, timeout);
@@ -121,7 +125,7 @@ const StoryLiveDemo = ({ timeout, ...rest }: StoryLiveDemoProps) => {
121
125
  }, [count, rest]);
122
126
 
123
127
  return (
124
- <NotificationsProvider>
128
+ <NotificationsProvider placement={placement}>
125
129
  <Button text="Добавить уведомление" onClick={handleClick} />
126
130
  </NotificationsProvider>
127
131
  );
@@ -135,20 +139,28 @@ export const LiveDemo: StoryObj<StoryLiveDemoProps> = {
135
139
  type: 'select',
136
140
  },
137
141
  },
142
+ placement: {
143
+ options: notificationsPlacements,
144
+ control: {
145
+ type: 'select',
146
+ },
147
+ },
138
148
  },
139
149
  args: {
140
150
  timeout: 3000,
141
151
  role: 'alert',
142
152
  layout: 'vertical',
153
+ placement: 'bottom-right',
143
154
  },
144
155
  render: (args) => <StoryLiveDemo {...args} />,
145
156
  };
146
157
 
147
158
  type StoryWithModalProps = ComponentProps<typeof Notification> & {
148
159
  timeout: number;
160
+ placement?: NotificationPlacement;
149
161
  };
150
162
 
151
- const StoryWithModal = ({ timeout }: StoryWithModalProps) => {
163
+ const StoryWithModal = ({ timeout, placement }: StoryWithModalProps) => {
152
164
  const [isModalOpen, setIsModalOpen] = useState(false);
153
165
  const count = useRef(0);
154
166
  const handleClick = useCallback(() => {
@@ -157,7 +169,7 @@ const StoryWithModal = ({ timeout }: StoryWithModalProps) => {
157
169
  }, [count]);
158
170
 
159
171
  return (
160
- <NotificationsProvider>
172
+ <NotificationsProvider placement={placement}>
161
173
  <PopupProvider>
162
174
  <Button text="Open modal" onClick={() => setIsModalOpen(true)} />
163
175
  <Modal frame="theme-root" opened={isModalOpen} onClose={() => setIsModalOpen(false)}>
@@ -172,6 +184,15 @@ const StoryWithModal = ({ timeout }: StoryWithModalProps) => {
172
184
  export const WithModal: StoryObj<StoryLiveDemoProps> = {
173
185
  args: {
174
186
  timeout: 3500,
187
+ placement: 'bottom-right',
188
+ },
189
+ argTypes: {
190
+ placement: {
191
+ options: notificationsPlacements,
192
+ control: {
193
+ type: 'select',
194
+ },
195
+ },
175
196
  },
176
197
  render: (args) => <StoryWithModal {...args} />,
177
198
  };
@@ -29,7 +29,6 @@ type CustomStoryTabsProps = {
29
29
 
30
30
  const contentLeftOptions = ['none', 'icon'];
31
31
  const contentRightOptions = ['none', 'counter', 'icon'];
32
- const labels = ['Label', 'Middle label', 'Very long label'];
33
32
 
34
33
  const getContentLeft = (contentLeftOption: string, size: Size) => {
35
34
  const iconSize = size === 'xs' ? 'xs' : 's';
@@ -77,12 +76,6 @@ const meta: Meta<StoryTabsProps> = {
77
76
  },
78
77
  if: { arg: 'helperText', eq: '' },
79
78
  },
80
- maxItemWidth: {
81
- control: {
82
- type: 'text',
83
- },
84
- if: { arg: 'stretch', truthy: false },
85
- },
86
79
  },
87
80
  };
88
81
 
@@ -97,14 +90,13 @@ const StoryHorizontalDefault = (props: HorizontalStoryTabsProps) => {
97
90
  contentRight: contentRightOption,
98
91
  hasDivider,
99
92
  stretch,
100
- maxItemWidth,
101
93
  helperText,
102
94
  } = props;
103
95
  const items = Array(itemQuantity).fill(0);
104
96
  const [index, setIndex] = useState(0);
105
97
 
106
98
  return (
107
- <Tabs clip="none" view={hasDivider ? 'divider' : 'clear'} stretch={stretch} disabled={disabled} size={size}>
99
+ <Tabs view={hasDivider ? 'divider' : 'clear'} stretch={stretch} disabled={disabled} size={size}>
108
100
  {items.map((_, i) => {
109
101
  if (helperText !== '') {
110
102
  return (
@@ -118,9 +110,8 @@ const StoryHorizontalDefault = (props: HorizontalStoryTabsProps) => {
118
110
  value={helperText}
119
111
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
120
112
  size={size as Size}
121
- maxItemWidth={maxItemWidth}
122
113
  >
123
- {`${labels[i % labels.length]} ${i + 1}`}
114
+ {`Label${i + 1}`}
124
115
  </TabItem>
125
116
  );
126
117
  }
@@ -136,9 +127,8 @@ const StoryHorizontalDefault = (props: HorizontalStoryTabsProps) => {
136
127
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
137
128
  contentRight={getContentRight(contentRightOption, size as Size)}
138
129
  size={size as Size}
139
- maxItemWidth={maxItemWidth}
140
130
  >
141
- {`${labels[i % labels.length]} ${i + 1}`}
131
+ {`Label${i + 1}`}
142
132
  </TabItem>
143
133
  );
144
134
  })}
@@ -157,7 +147,6 @@ const StoryHorizontalScroll = (props: HorizontalStoryTabsProps) => {
157
147
  hasDivider,
158
148
  helperText,
159
149
  width,
160
- maxItemWidth,
161
150
  } = props;
162
151
  const items = Array(itemQuantity).fill(0);
163
152
  const [index, setIndex] = useState(0);
@@ -177,9 +166,8 @@ const StoryHorizontalScroll = (props: HorizontalStoryTabsProps) => {
177
166
  value={helperText}
178
167
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
179
168
  size={size as Size}
180
- maxItemWidth={maxItemWidth}
181
169
  >
182
- {`${labels[i % labels.length]} ${i + 1}`}
170
+ {`Label${i + 1}`}
183
171
  </TabItem>
184
172
  );
185
173
  }
@@ -195,9 +183,8 @@ const StoryHorizontalScroll = (props: HorizontalStoryTabsProps) => {
195
183
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
196
184
  contentRight={getContentRight(contentRightOption, size as Size)}
197
185
  size={size as Size}
198
- maxItemWidth={maxItemWidth}
199
186
  >
200
- {`${labels[i % labels.length]} ${i + 1}`}
187
+ {`Label${i + 1}`}
201
188
  </TabItem>
202
189
  );
203
190
  })}
@@ -215,7 +202,6 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
215
202
  contentRight: contentRightOption,
216
203
  hasDivider,
217
204
  helperText,
218
- maxItemWidth,
219
205
  } = props;
220
206
  const maxItemQuantity = 3;
221
207
  const items = Array(itemQuantity).fill(0);
@@ -248,9 +234,8 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
248
234
  value={helperText}
249
235
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
250
236
  size={size as Size}
251
- maxItemWidth={maxItemWidth}
252
237
  >
253
- {`${labels[i % labels.length]} ${i + 1}`}
238
+ {`Label${i + 1}`}
254
239
  </TabItem>
255
240
  );
256
241
  }
@@ -266,9 +251,8 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
266
251
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
267
252
  contentRight={getContentRight(contentRightOption, size as Size)}
268
253
  size={size as Size}
269
- maxItemWidth={maxItemWidth}
270
254
  >
271
- {`${labels[i % labels.length]} ${i + 1}`}
255
+ {`Label${i + 1}`}
272
256
  </TabItem>
273
257
  );
274
258
  })}
@@ -285,7 +269,6 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
285
269
  tabIndex={!disabled ? 0 : -1}
286
270
  disabled={disabled}
287
271
  size={size as Size}
288
- maxItemWidth="auto"
289
272
  >
290
273
  ShowAll
291
274
  </TabItem>
@@ -302,10 +285,9 @@ export const HorizontalTabs: StoryObj<HorizontalStoryTabsProps> = {
302
285
  disabled: false,
303
286
  hasDivider: true,
304
287
  helperText: '',
305
- itemQuantity: 6,
288
+ itemQuantity: 8,
306
289
  stretch: false,
307
290
  width: '15rem',
308
- maxItemWidth: '',
309
291
  },
310
292
  argTypes: {
311
293
  contentLeft: {
@@ -361,7 +343,6 @@ const StoryVerticalDefault = (props: VerticalStoryTabsProps) => {
361
343
  contentRight: contentRightOption,
362
344
  hasDivider,
363
345
  helperText,
364
- maxItemWidth,
365
346
  } = props;
366
347
  const items = Array(itemQuantity).fill(0);
367
348
  const [index, setIndex] = useState(0);
@@ -382,9 +363,8 @@ const StoryVerticalDefault = (props: VerticalStoryTabsProps) => {
382
363
  value={helperText}
383
364
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
384
365
  size={size as Size}
385
- maxItemWidth={maxItemWidth}
386
366
  >
387
- {`${labels[i % labels.length]} ${i + 1}`}
367
+ {`Label${i + 1}`}
388
368
  </TabItem>
389
369
  );
390
370
  }
@@ -401,9 +381,8 @@ const StoryVerticalDefault = (props: VerticalStoryTabsProps) => {
401
381
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
402
382
  contentRight={getContentRight(contentRightOption, size as Size)}
403
383
  size={size as Size}
404
- maxItemWidth={maxItemWidth}
405
384
  >
406
- {`${labels[i % labels.length]} ${i + 1}`}
385
+ {`Label${i + 1}`}
407
386
  </TabItem>
408
387
  );
409
388
  })}
@@ -422,7 +401,6 @@ const StoryVerticalScroll = (props: VerticalStoryTabsProps) => {
422
401
  hasDivider,
423
402
  helperText,
424
403
  height,
425
- maxItemWidth,
426
404
  } = props;
427
405
  const items = Array(itemQuantity).fill(0);
428
406
  const [index, setIndex] = useState(0);
@@ -450,9 +428,8 @@ const StoryVerticalScroll = (props: VerticalStoryTabsProps) => {
450
428
  value={helperText}
451
429
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
452
430
  size={size as Size}
453
- maxItemWidth={maxItemWidth}
454
431
  >
455
- {`${labels[i % labels.length]} ${i + 1}`}
432
+ {`Label${i + 1}`}
456
433
  </TabItem>
457
434
  );
458
435
  }
@@ -469,9 +446,8 @@ const StoryVerticalScroll = (props: VerticalStoryTabsProps) => {
469
446
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
470
447
  contentRight={getContentRight(contentRightOption, size as Size)}
471
448
  size={size as Size}
472
- maxItemWidth={maxItemWidth}
473
449
  >
474
- {`${labels[i % labels.length]} ${i + 1}`}
450
+ {`Label${i + 1}`}
475
451
  </TabItem>
476
452
  );
477
453
  })}
@@ -489,7 +465,6 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
489
465
  contentRight: contentRightOption,
490
466
  hasDivider,
491
467
  helperText,
492
- maxItemWidth,
493
468
  } = props;
494
469
  const maxItemQuantity = 3;
495
470
  const items = Array(itemQuantity).fill(0);
@@ -523,9 +498,8 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
523
498
  value={helperText}
524
499
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
525
500
  size={size as Size}
526
- maxItemWidth={maxItemWidth}
527
501
  >
528
- {`${labels[i % labels.length]} ${i + 1}`}
502
+ {`Label${i + 1}`}
529
503
  </TabItem>
530
504
  );
531
505
  }
@@ -542,9 +516,8 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
542
516
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
543
517
  contentRight={getContentRight(contentRightOption, size as Size)}
544
518
  size={size as Size}
545
- maxItemWidth={maxItemWidth}
546
519
  >
547
- {`${labels[i % labels.length]} ${i + 1}`}
520
+ {`Label${i + 1}`}
548
521
  </TabItem>
549
522
  );
550
523
  })}
@@ -561,7 +534,6 @@ const StoryVerticalShowAll = (props: VerticalStoryTabsProps) => {
561
534
  tabIndex={!disabled ? 0 : -1}
562
535
  disabled={disabled}
563
536
  size={size as Size}
564
- maxItemWidth="auto"
565
537
  >
566
538
  ShowAll
567
539
  </TabItem>
@@ -576,11 +548,10 @@ export const VerticalTabs: StoryObj<VerticalStoryTabsProps> = {
576
548
  size: 'xs',
577
549
  disabled: false,
578
550
  hasDivider: true,
579
- itemQuantity: 6,
551
+ itemQuantity: 8,
580
552
  orientation: 'vertical',
581
553
  helperText: '',
582
554
  height: '10rem',
583
- maxItemWidth: '',
584
555
  },
585
556
  argTypes: {
586
557
  contentLeft: {
@@ -641,7 +612,6 @@ const StoryHeaderTabs = (props: StoryTabsProps) => {
641
612
  contentRight: contentRightOption,
642
613
  hasDivider,
643
614
  stretch,
644
- maxItemWidth,
645
615
  } = props;
646
616
  const items = Array(itemQuantity).fill(0);
647
617
  const [index, setIndex] = useState(0);
@@ -659,9 +629,8 @@ const StoryHeaderTabs = (props: StoryTabsProps) => {
659
629
  contentLeft={getContentLeft(contentLeftOption, size as Size)}
660
630
  contentRight={getContentRight(contentRightOption, size as Size)}
661
631
  size={size as HeaderSize}
662
- maxItemWidth={maxItemWidth}
663
632
  >
664
- {`${labels[i % labels.length]} ${i + 1}`}
633
+ {`Label${i + 1}`}
665
634
  </TabItem>
666
635
  ))}
667
636
  </Tabs>
@@ -674,7 +643,6 @@ export const HeaderTabs: StoryObj<StoryTabsProps> = {
674
643
  disabled: false,
675
644
  hasDivider: true,
676
645
  itemQuantity: 4,
677
- maxItemWidth: '',
678
646
  },
679
647
  argTypes: {
680
648
  size: {