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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (683) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +1 -1
  2. package/cjs/components/Autocomplete/Autocomplete.tokens.js +1 -0
  3. package/cjs/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  4. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  5. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  6. package/cjs/components/Autocomplete/ui/TextField/{TextField.styles_1csckkd.css → TextField.styles_kcgaix.css} +1 -1
  7. package/cjs/components/Badge/Badge.css +0 -2
  8. package/cjs/components/Badge/Badge.js +4 -17
  9. package/cjs/components/Badge/Badge.js.map +1 -1
  10. package/cjs/components/Badge/Badge.tokens.js +1 -2
  11. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  12. package/cjs/components/Calendar/Calendar.tokens.js +4 -0
  13. package/cjs/components/Calendar/Calendar.tokens.js.map +1 -1
  14. package/cjs/components/Calendar/CalendarBase/CalendarBase.css +16 -15
  15. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  16. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  17. package/cjs/components/Calendar/CalendarBase/{CalendarBase.styles_1m6uih1.css → CalendarBase.styles_zk3a46.css} +1 -1
  18. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +16 -15
  19. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.css +4 -4
  20. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +9 -8
  21. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -4
  22. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  23. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +11 -1
  24. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  25. package/cjs/components/Calendar/ui/CalendarHeader/{CalendarHeader.styles_1jfelqf.css → CalendarHeader.styles_zgya4j.css} +1 -0
  26. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  27. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.css +4 -4
  28. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  29. package/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.css +4 -4
  30. package/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +1 -1
  31. package/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js.map +1 -1
  32. package/cjs/components/Calendar/ui/DateStructureItem/{DateStructureItem.styles_1nxxafr.css → DateStructureItem.styles_uzh6dj.css} +1 -1
  33. package/cjs/components/Combobox/ComboboxNew/Combobox.css +12 -12
  34. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  35. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  36. package/cjs/components/Combobox/ComboboxNew/{Combobox.styles_1s09ifw.css → Combobox.styles_18a8p75.css} +1 -1
  37. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +4 -26
  38. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  39. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
  40. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +12 -12
  41. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -1
  42. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  43. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/{Item.styles_y71664.css → Item.styles_1kzr84z.css} +2 -2
  44. package/cjs/components/Combobox/ComboboxOld/Combobox.css +5 -5
  45. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +5 -5
  46. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +5 -5
  47. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +5 -5
  48. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +5 -5
  49. package/cjs/components/DatePicker/DatePicker.tokens.js +7 -0
  50. package/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -1
  51. package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
  52. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  53. package/cjs/components/DatePicker/DatePickerBase.styles_1vzl5em.css +2 -0
  54. package/cjs/components/DatePicker/RangeDate/RangeDate.css +20 -19
  55. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +18 -17
  56. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
  57. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_k7d8e5.css +2 -0
  58. package/cjs/components/DatePicker/SingleDate/SingleDate.css +20 -19
  59. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  60. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  61. package/cjs/components/DatePicker/SingleDate/{SingleDate.styles_1rrq00l.css → SingleDate.styles_e72b5o.css} +1 -1
  62. package/cjs/components/Dropdown/Dropdown.css +5 -5
  63. package/cjs/components/Dropdown/Dropdown.styles.js +1 -1
  64. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  65. package/cjs/components/Dropdown/{Dropdown.styles_1ix6io8.css → Dropdown.styles_dh7ns1.css} +1 -1
  66. package/cjs/components/Dropdown/Dropdown.tokens.js +2 -0
  67. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  68. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +5 -5
  69. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +1 -1
  70. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  71. package/cjs/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_17va0nk.css → DropdownItem.styles_1b439rx.css} +1 -1
  72. package/cjs/components/Notification/Notification.css +11 -11
  73. package/cjs/components/Notification/Notification.js +17 -5
  74. package/cjs/components/Notification/Notification.js.map +1 -1
  75. package/cjs/components/Notification/Notification.styles.js +17 -17
  76. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  77. package/cjs/components/Notification/{Notification.styles_e6274r.css → Notification.styles_ob8hsa.css} +2 -2
  78. package/cjs/components/Notification/Notification.tokens.js +5 -1
  79. package/cjs/components/Notification/Notification.tokens.js.map +1 -1
  80. package/cjs/components/Notification/Notification.types.js.map +1 -1
  81. package/cjs/components/Notification/NotificationsProvider.css +11 -11
  82. package/cjs/components/{Badge/variations/_truncate → Notification/variations/_closeIconType}/base.js +2 -2
  83. package/cjs/components/Notification/variations/_closeIconType/base.js.map +1 -0
  84. package/cjs/components/Notification/variations/_closeIconType/base_x642ct.css +1 -0
  85. package/cjs/components/Pagination/Pagination.css +10 -10
  86. package/cjs/components/Pagination/Pagination.js +5 -5
  87. package/cjs/components/Pagination/Pagination.js.map +1 -1
  88. package/cjs/components/Pagination/Pagination.styles.js +3 -3
  89. package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
  90. package/cjs/components/Pagination/{Pagination.styles_y6gcva.css → Pagination.styles_1w5oej6.css} +1 -1
  91. package/cjs/components/Pagination/Pagination.tokens.js +4 -1
  92. package/cjs/components/Pagination/Pagination.tokens.js.map +1 -1
  93. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +3 -3
  94. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  95. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  96. package/cjs/components/Pagination/ui/PaginationSelectPerPage/{PaginationSelectPerPage.styles_187mk6b.css → PaginationSelectPerPage.styles_1fesyfv.css} +1 -1
  97. package/cjs/components/Tabs/tokens.js +8 -3
  98. package/cjs/components/Tabs/tokens.js.map +1 -1
  99. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -7
  100. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -14
  101. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  102. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  103. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  104. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css +5 -0
  105. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -7
  106. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -14
  107. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  108. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  109. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  110. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_1g7zipg.css +5 -0
  111. package/cjs/components/Toast/Toast.css +5 -5
  112. package/cjs/components/Toast/Toast.js +17 -5
  113. package/cjs/components/Toast/Toast.js.map +1 -1
  114. package/cjs/components/Toast/Toast.styles.js +3 -3
  115. package/cjs/components/Toast/Toast.styles.js.map +1 -1
  116. package/{es/components/Toast/Toast.styles_1v9oj7f.css → cjs/components/Toast/Toast.styles_1nei944.css} +1 -1
  117. package/cjs/components/Toast/Toast.tokens.js +3 -1
  118. package/cjs/components/Toast/Toast.tokens.js.map +1 -1
  119. package/cjs/components/Toast/ToastController.css +5 -5
  120. package/cjs/components/{Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate → Toast/variations/_closeIconType}/base.js +2 -2
  121. package/cjs/components/Toast/variations/_closeIconType/base.js.map +1 -0
  122. package/cjs/components/Toast/variations/_closeIconType/base_x642ct.css +1 -0
  123. package/cjs/components/_Icon/Icon.assets/CrossThin.js +22 -0
  124. package/cjs/components/_Icon/Icon.assets/CrossThin.js.map +1 -0
  125. package/cjs/components/_Icon/Icons/IconCrossThin.js +25 -0
  126. package/cjs/components/_Icon/Icons/IconCrossThin.js.map +1 -0
  127. package/cjs/index.css +76 -81
  128. package/emotion/cjs/components/Autocomplete/Autocomplete.tokens.js +1 -0
  129. package/emotion/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  130. package/emotion/cjs/components/Badge/Badge.js +4 -22
  131. package/emotion/cjs/components/Badge/Badge.tokens.js +1 -2
  132. package/emotion/cjs/components/Calendar/Calendar.tokens.js +4 -0
  133. package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -2
  134. package/emotion/cjs/components/Calendar/mixins/selected.js +3 -2
  135. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  136. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +22 -17
  137. package/emotion/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +5 -4
  138. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +7 -7
  139. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +4 -4
  140. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +12 -12
  141. package/emotion/cjs/components/DatePicker/DatePicker.tokens.js +7 -0
  142. package/emotion/cjs/components/DatePicker/DatePickerBase.styles.js +3 -3
  143. package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +5 -5
  144. package/emotion/cjs/components/Dropdown/Dropdown.styles.js +2 -2
  145. package/emotion/cjs/components/Dropdown/Dropdown.tokens.js +2 -1
  146. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +6 -6
  147. package/emotion/cjs/components/Notification/Notification.js +18 -6
  148. package/emotion/cjs/components/Notification/Notification.styles.js +11 -11
  149. package/emotion/cjs/components/Notification/Notification.tokens.js +5 -1
  150. package/emotion/cjs/components/Notification/variations/_closeIconType/base.js +8 -0
  151. package/emotion/cjs/components/Notification/variations/_closeIconType/tokens.json +1 -0
  152. package/emotion/cjs/components/Pagination/Pagination.js +5 -5
  153. package/emotion/cjs/components/Pagination/Pagination.styles.js +8 -8
  154. package/emotion/cjs/components/Pagination/Pagination.tokens.js +4 -1
  155. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  156. package/emotion/cjs/components/Tabs/tokens.js +8 -3
  157. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -19
  158. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  159. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -19
  160. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  161. package/emotion/cjs/components/Toast/Toast.js +18 -6
  162. package/emotion/cjs/components/Toast/Toast.styles.js +6 -6
  163. package/emotion/cjs/components/Toast/Toast.tokens.js +3 -1
  164. package/emotion/cjs/components/Toast/variations/_closeIconType/base.js +8 -0
  165. package/emotion/cjs/components/Toast/variations/_closeIconType/tokens.json +1 -0
  166. package/emotion/cjs/components/_Icon/Icon.assets/CrossThin.js +21 -0
  167. package/emotion/cjs/components/_Icon/Icons/IconCrossThin.js +24 -0
  168. package/emotion/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +12 -12
  169. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +14 -17
  170. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  171. package/emotion/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -5
  172. package/emotion/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -5
  173. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  174. package/emotion/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +7 -7
  175. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  176. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.config.js +11 -6
  177. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +8 -0
  178. package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  179. package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  180. package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  181. package/emotion/cjs/examples/plasma_b2c/components/Toast/Toast.config.js +11 -6
  182. package/emotion/cjs/examples/plasma_b2c/components/Toast/Toast.stories.tsx +9 -0
  183. package/emotion/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +12 -12
  184. package/emotion/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -5
  185. package/emotion/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -5
  186. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  187. package/emotion/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +7 -7
  188. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  189. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.config.js +11 -6
  190. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +8 -0
  191. package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  192. package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  193. package/emotion/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  194. package/emotion/cjs/examples/plasma_web/components/Toast/Toast.config.js +11 -6
  195. package/emotion/cjs/examples/plasma_web/components/Toast/Toast.stories.tsx +9 -0
  196. package/emotion/es/components/Autocomplete/Autocomplete.tokens.js +1 -0
  197. package/emotion/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  198. package/emotion/es/components/Badge/Badge.js +4 -23
  199. package/emotion/es/components/Badge/Badge.tokens.js +1 -2
  200. package/emotion/es/components/Calendar/Calendar.tokens.js +4 -0
  201. package/emotion/es/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -2
  202. package/emotion/es/components/Calendar/mixins/selected.js +3 -2
  203. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
  204. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +21 -16
  205. package/emotion/es/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +5 -4
  206. package/emotion/es/components/Combobox/ComboboxNew/Combobox.styles.js +7 -7
  207. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +4 -4
  208. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +12 -12
  209. package/emotion/es/components/DatePicker/DatePicker.tokens.js +7 -0
  210. package/emotion/es/components/DatePicker/DatePickerBase.styles.js +3 -3
  211. package/emotion/es/components/DatePicker/SingleDate/SingleDate.styles.js +5 -5
  212. package/emotion/es/components/Dropdown/Dropdown.styles.js +2 -2
  213. package/emotion/es/components/Dropdown/Dropdown.tokens.js +2 -1
  214. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +6 -6
  215. package/emotion/es/components/Notification/Notification.js +18 -6
  216. package/emotion/es/components/Notification/Notification.styles.js +11 -11
  217. package/emotion/es/components/Notification/Notification.tokens.js +5 -1
  218. package/emotion/es/components/Notification/variations/_closeIconType/base.js +2 -0
  219. package/emotion/es/components/Notification/variations/_closeIconType/tokens.json +1 -0
  220. package/emotion/es/components/Pagination/Pagination.js +5 -5
  221. package/emotion/es/components/Pagination/Pagination.styles.js +8 -8
  222. package/emotion/es/components/Pagination/Pagination.tokens.js +4 -1
  223. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  224. package/emotion/es/components/Tabs/tokens.js +8 -3
  225. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -20
  226. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  227. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -20
  228. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  229. package/emotion/es/components/Toast/Toast.js +18 -6
  230. package/emotion/es/components/Toast/Toast.styles.js +6 -6
  231. package/emotion/es/components/Toast/Toast.tokens.js +3 -1
  232. package/emotion/es/components/Toast/variations/_closeIconType/base.js +2 -0
  233. package/emotion/es/components/Toast/variations/_closeIconType/tokens.json +1 -0
  234. package/emotion/es/components/_Icon/Icon.assets/CrossThin.js +14 -0
  235. package/emotion/es/components/_Icon/Icons/IconCrossThin.js +17 -0
  236. package/emotion/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +12 -12
  237. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +14 -17
  238. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  239. package/emotion/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -5
  240. package/emotion/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -5
  241. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  242. package/emotion/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +7 -7
  243. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  244. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.config.js +11 -6
  245. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +8 -0
  246. package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  247. package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  248. package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  249. package/emotion/es/examples/plasma_b2c/components/Toast/Toast.config.js +11 -6
  250. package/emotion/es/examples/plasma_b2c/components/Toast/Toast.stories.tsx +9 -0
  251. package/emotion/es/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +12 -12
  252. package/emotion/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -5
  253. package/emotion/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -5
  254. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  255. package/emotion/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +7 -7
  256. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  257. package/emotion/es/examples/plasma_web/components/Notification/Notification.config.js +11 -6
  258. package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +8 -0
  259. package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  260. package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -18
  261. package/emotion/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +6 -9
  262. package/emotion/es/examples/plasma_web/components/Toast/Toast.config.js +11 -6
  263. package/emotion/es/examples/plasma_web/components/Toast/Toast.stories.tsx +9 -0
  264. package/es/components/Autocomplete/Autocomplete.css +1 -1
  265. package/es/components/Autocomplete/Autocomplete.tokens.js +1 -0
  266. package/es/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  267. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  268. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  269. package/es/components/Autocomplete/ui/TextField/{TextField.styles_1csckkd.css → TextField.styles_kcgaix.css} +1 -1
  270. package/es/components/Badge/Badge.css +0 -2
  271. package/es/components/Badge/Badge.js +5 -18
  272. package/es/components/Badge/Badge.js.map +1 -1
  273. package/es/components/Badge/Badge.tokens.js +1 -2
  274. package/es/components/Badge/Badge.tokens.js.map +1 -1
  275. package/es/components/Calendar/Calendar.tokens.js +4 -0
  276. package/es/components/Calendar/Calendar.tokens.js.map +1 -1
  277. package/es/components/Calendar/CalendarBase/CalendarBase.css +16 -15
  278. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  279. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  280. package/es/components/Calendar/CalendarBase/{CalendarBase.styles_1m6uih1.css → CalendarBase.styles_zk3a46.css} +1 -1
  281. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +16 -15
  282. package/es/components/Calendar/ui/CalendarDays/CalendarDays.css +4 -4
  283. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +9 -8
  284. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +4 -5
  285. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  286. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +11 -2
  287. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  288. package/es/components/Calendar/ui/CalendarHeader/{CalendarHeader.styles_1jfelqf.css → CalendarHeader.styles_zgya4j.css} +1 -0
  289. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  290. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.css +4 -4
  291. package/es/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  292. package/es/components/Calendar/ui/DateStructureItem/DateStructureItem.css +4 -4
  293. package/es/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +1 -1
  294. package/es/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js.map +1 -1
  295. package/es/components/Calendar/ui/DateStructureItem/{DateStructureItem.styles_1nxxafr.css → DateStructureItem.styles_uzh6dj.css} +1 -1
  296. package/es/components/Combobox/ComboboxNew/Combobox.css +12 -12
  297. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +3 -3
  298. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  299. package/es/components/Combobox/ComboboxNew/{Combobox.styles_1s09ifw.css → Combobox.styles_18a8p75.css} +1 -1
  300. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +5 -26
  301. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  302. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
  303. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +12 -12
  304. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -1
  305. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  306. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/{Item.styles_y71664.css → Item.styles_1kzr84z.css} +2 -2
  307. package/es/components/Combobox/ComboboxOld/Combobox.css +5 -5
  308. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +5 -5
  309. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +5 -5
  310. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +5 -5
  311. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +5 -5
  312. package/es/components/DatePicker/DatePicker.tokens.js +7 -0
  313. package/es/components/DatePicker/DatePicker.tokens.js.map +1 -1
  314. package/es/components/DatePicker/DatePickerBase.styles.js +1 -1
  315. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  316. package/es/components/DatePicker/DatePickerBase.styles_1vzl5em.css +2 -0
  317. package/es/components/DatePicker/RangeDate/RangeDate.css +20 -19
  318. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +18 -17
  319. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
  320. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_k7d8e5.css +2 -0
  321. package/es/components/DatePicker/SingleDate/SingleDate.css +20 -19
  322. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  323. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  324. package/es/components/DatePicker/SingleDate/{SingleDate.styles_1rrq00l.css → SingleDate.styles_e72b5o.css} +1 -1
  325. package/es/components/Dropdown/Dropdown.css +5 -5
  326. package/es/components/Dropdown/Dropdown.styles.js +1 -1
  327. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  328. package/es/components/Dropdown/{Dropdown.styles_1ix6io8.css → Dropdown.styles_dh7ns1.css} +1 -1
  329. package/es/components/Dropdown/Dropdown.tokens.js +2 -0
  330. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  331. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +5 -5
  332. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +1 -1
  333. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  334. package/es/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_17va0nk.css → DropdownItem.styles_1b439rx.css} +1 -1
  335. package/es/components/Notification/Notification.css +11 -11
  336. package/es/components/Notification/Notification.js +18 -6
  337. package/es/components/Notification/Notification.js.map +1 -1
  338. package/es/components/Notification/Notification.styles.js +17 -17
  339. package/es/components/Notification/Notification.styles.js.map +1 -1
  340. package/es/components/Notification/{Notification.styles_e6274r.css → Notification.styles_ob8hsa.css} +2 -2
  341. package/es/components/Notification/Notification.tokens.js +5 -1
  342. package/es/components/Notification/Notification.tokens.js.map +1 -1
  343. package/es/components/Notification/Notification.types.js.map +1 -1
  344. package/es/components/Notification/NotificationsProvider.css +11 -11
  345. package/es/components/{Badge/variations/_truncate → Notification/variations/_closeIconType}/base.js +2 -2
  346. package/es/components/Notification/variations/_closeIconType/base.js.map +1 -0
  347. package/es/components/Notification/variations/_closeIconType/base_x642ct.css +1 -0
  348. package/es/components/Pagination/Pagination.css +10 -10
  349. package/es/components/Pagination/Pagination.js +5 -5
  350. package/es/components/Pagination/Pagination.js.map +1 -1
  351. package/es/components/Pagination/Pagination.styles.js +3 -3
  352. package/es/components/Pagination/Pagination.styles.js.map +1 -1
  353. package/es/components/Pagination/{Pagination.styles_y6gcva.css → Pagination.styles_1w5oej6.css} +1 -1
  354. package/es/components/Pagination/Pagination.tokens.js +4 -1
  355. package/es/components/Pagination/Pagination.tokens.js.map +1 -1
  356. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +3 -3
  357. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  358. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  359. package/es/components/Pagination/ui/PaginationSelectPerPage/{PaginationSelectPerPage.styles_187mk6b.css → PaginationSelectPerPage.styles_1fesyfv.css} +1 -1
  360. package/es/components/Tabs/tokens.js +8 -3
  361. package/es/components/Tabs/tokens.js.map +1 -1
  362. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -7
  363. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +4 -15
  364. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  365. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  366. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  367. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css +5 -0
  368. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -7
  369. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +4 -15
  370. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  371. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  372. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  373. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_1g7zipg.css +5 -0
  374. package/es/components/Toast/Toast.css +5 -5
  375. package/es/components/Toast/Toast.js +18 -6
  376. package/es/components/Toast/Toast.js.map +1 -1
  377. package/es/components/Toast/Toast.styles.js +3 -3
  378. package/es/components/Toast/Toast.styles.js.map +1 -1
  379. package/{cjs/components/Toast/Toast.styles_1v9oj7f.css → es/components/Toast/Toast.styles_1nei944.css} +1 -1
  380. package/es/components/Toast/Toast.tokens.js +3 -1
  381. package/es/components/Toast/Toast.tokens.js.map +1 -1
  382. package/es/components/Toast/ToastController.css +5 -5
  383. package/es/components/Toast/variations/_closeIconType/base.js +5 -0
  384. package/es/components/Toast/variations/_closeIconType/base.js.map +1 -0
  385. package/es/components/Toast/variations/_closeIconType/base_x642ct.css +1 -0
  386. package/es/components/_Icon/Icon.assets/CrossThin.js +18 -0
  387. package/es/components/_Icon/Icon.assets/CrossThin.js.map +1 -0
  388. package/es/components/_Icon/Icons/IconCrossThin.js +21 -0
  389. package/es/components/_Icon/Icons/IconCrossThin.js.map +1 -0
  390. package/es/index.css +76 -81
  391. package/package.json +2 -2
  392. package/styled-components/cjs/components/Autocomplete/Autocomplete.tokens.js +1 -0
  393. package/styled-components/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  394. package/styled-components/cjs/components/Badge/Badge.js +4 -22
  395. package/styled-components/cjs/components/Badge/Badge.tokens.js +1 -2
  396. package/styled-components/cjs/components/Calendar/Calendar.tokens.js +4 -0
  397. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  398. package/styled-components/cjs/components/Calendar/mixins/selected.js +3 -2
  399. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  400. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +6 -2
  401. package/styled-components/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +1 -0
  402. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  403. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +4 -4
  404. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +2 -2
  405. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +7 -0
  406. package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
  407. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  408. package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +2 -2
  409. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +2 -1
  410. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +1 -1
  411. package/styled-components/cjs/components/Notification/Notification.js +18 -6
  412. package/styled-components/cjs/components/Notification/Notification.styles.js +2 -2
  413. package/styled-components/cjs/components/Notification/Notification.tokens.js +5 -1
  414. package/styled-components/cjs/components/Notification/variations/_closeIconType/base.js +8 -0
  415. package/styled-components/cjs/components/Notification/variations/_closeIconType/tokens.json +1 -0
  416. package/styled-components/cjs/components/Pagination/Pagination.js +5 -5
  417. package/styled-components/cjs/components/Pagination/Pagination.styles.js +1 -1
  418. package/styled-components/cjs/components/Pagination/Pagination.tokens.js +4 -1
  419. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  420. package/styled-components/cjs/components/Tabs/tokens.js +8 -3
  421. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -19
  422. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +2 -2
  423. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -19
  424. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  425. package/styled-components/cjs/components/Toast/Toast.js +18 -6
  426. package/styled-components/cjs/components/Toast/Toast.styles.js +1 -1
  427. package/styled-components/cjs/components/Toast/Toast.tokens.js +3 -1
  428. package/styled-components/cjs/components/Toast/variations/_closeIconType/base.js +8 -0
  429. package/styled-components/cjs/components/Toast/variations/_closeIconType/tokens.json +1 -0
  430. package/styled-components/cjs/components/_Icon/Icon.assets/CrossThin.js +21 -0
  431. package/styled-components/cjs/components/_Icon/Icons/IconCrossThin.js +24 -0
  432. package/styled-components/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +4 -4
  433. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +0 -3
  434. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  435. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -5
  436. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -5
  437. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  438. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +5 -5
  439. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +1 -1
  440. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.config.js +6 -1
  441. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +8 -0
  442. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  443. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  444. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  445. package/styled-components/cjs/examples/plasma_b2c/components/Toast/Toast.config.js +6 -1
  446. package/styled-components/cjs/examples/plasma_b2c/components/Toast/Toast.stories.tsx +9 -0
  447. package/styled-components/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +4 -4
  448. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -5
  449. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -5
  450. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  451. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +5 -5
  452. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +1 -1
  453. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.config.js +6 -1
  454. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +8 -0
  455. package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  456. package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  457. package/styled-components/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  458. package/styled-components/cjs/examples/plasma_web/components/Toast/Toast.config.js +6 -1
  459. package/styled-components/cjs/examples/plasma_web/components/Toast/Toast.stories.tsx +9 -0
  460. package/styled-components/es/components/Autocomplete/Autocomplete.tokens.js +1 -0
  461. package/styled-components/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  462. package/styled-components/es/components/Badge/Badge.js +4 -23
  463. package/styled-components/es/components/Badge/Badge.tokens.js +1 -2
  464. package/styled-components/es/components/Calendar/Calendar.tokens.js +4 -0
  465. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  466. package/styled-components/es/components/Calendar/mixins/selected.js +3 -2
  467. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
  468. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +5 -1
  469. package/styled-components/es/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +1 -0
  470. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  471. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +4 -4
  472. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +2 -2
  473. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +7 -0
  474. package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +1 -1
  475. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  476. package/styled-components/es/components/Dropdown/Dropdown.styles.js +2 -2
  477. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +2 -1
  478. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +1 -1
  479. package/styled-components/es/components/Notification/Notification.js +18 -6
  480. package/styled-components/es/components/Notification/Notification.styles.js +2 -2
  481. package/styled-components/es/components/Notification/Notification.tokens.js +5 -1
  482. package/styled-components/es/components/Notification/variations/_closeIconType/base.js +2 -0
  483. package/styled-components/es/components/Notification/variations/_closeIconType/tokens.json +1 -0
  484. package/styled-components/es/components/Pagination/Pagination.js +5 -5
  485. package/styled-components/es/components/Pagination/Pagination.styles.js +1 -1
  486. package/styled-components/es/components/Pagination/Pagination.tokens.js +4 -1
  487. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  488. package/styled-components/es/components/Tabs/tokens.js +8 -3
  489. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -20
  490. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +2 -2
  491. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +3 -20
  492. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  493. package/styled-components/es/components/Toast/Toast.js +18 -6
  494. package/styled-components/es/components/Toast/Toast.styles.js +1 -1
  495. package/styled-components/es/components/Toast/Toast.tokens.js +3 -1
  496. package/styled-components/es/components/Toast/variations/_closeIconType/base.js +2 -0
  497. package/styled-components/es/components/Toast/variations/_closeIconType/tokens.json +1 -0
  498. package/styled-components/es/components/_Icon/Icon.assets/CrossThin.js +14 -0
  499. package/styled-components/es/components/_Icon/Icons/IconCrossThin.js +17 -0
  500. package/styled-components/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +4 -4
  501. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +0 -3
  502. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -5
  503. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -5
  504. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -5
  505. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  506. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +5 -5
  507. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +1 -1
  508. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.config.js +6 -1
  509. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +8 -0
  510. package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +19 -51
  511. package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  512. package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  513. package/styled-components/es/examples/plasma_b2c/components/Toast/Toast.config.js +6 -1
  514. package/styled-components/es/examples/plasma_b2c/components/Toast/Toast.stories.tsx +9 -0
  515. package/styled-components/es/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +4 -4
  516. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -5
  517. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -5
  518. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  519. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +5 -5
  520. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +1 -1
  521. package/styled-components/es/examples/plasma_web/components/Notification/Notification.config.js +6 -1
  522. package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +8 -0
  523. package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +19 -51
  524. package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +0 -3
  525. package/styled-components/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +0 -3
  526. package/styled-components/es/examples/plasma_web/components/Toast/Toast.config.js +6 -1
  527. package/styled-components/es/examples/plasma_web/components/Toast/Toast.stories.tsx +9 -0
  528. package/types/components/Autocomplete/Autocomplete.tokens.d.ts +1 -0
  529. package/types/components/Autocomplete/Autocomplete.tokens.d.ts.map +1 -1
  530. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  531. package/types/components/Badge/Badge.d.ts +2 -10
  532. package/types/components/Badge/Badge.d.ts.map +1 -1
  533. package/types/components/Badge/Badge.tokens.d.ts +0 -1
  534. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  535. package/types/components/Badge/Badge.types.d.ts +0 -5
  536. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  537. package/types/components/Calendar/Calendar.tokens.d.ts +4 -0
  538. package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
  539. package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts.map +1 -1
  540. package/types/components/Calendar/mixins/selected.d.ts +4 -0
  541. package/types/components/Calendar/mixins/selected.d.ts.map +1 -1
  542. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.d.ts.map +1 -1
  543. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +1 -0
  544. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
  545. package/types/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.d.ts.map +1 -1
  546. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +3 -3
  547. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  548. package/types/components/DatePicker/DatePicker.tokens.d.ts +7 -0
  549. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -1
  550. package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +1 -1
  551. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  552. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  553. package/types/components/Dropdown/Dropdown.tokens.d.ts +2 -1
  554. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  555. package/types/components/Notification/Notification.d.ts +4 -0
  556. package/types/components/Notification/Notification.d.ts.map +1 -1
  557. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  558. package/types/components/Notification/Notification.tokens.d.ts +4 -0
  559. package/types/components/Notification/Notification.tokens.d.ts.map +1 -1
  560. package/types/components/Notification/Notification.types.d.ts +4 -0
  561. package/types/components/Notification/Notification.types.d.ts.map +1 -1
  562. package/types/components/Notification/variations/_closeIconType/base.d.ts.map +1 -0
  563. package/types/components/Pagination/Pagination.d.ts.map +1 -1
  564. package/types/components/Pagination/Pagination.styles.d.ts.map +1 -1
  565. package/types/components/Pagination/Pagination.tokens.d.ts +3 -0
  566. package/types/components/Pagination/Pagination.tokens.d.ts.map +1 -1
  567. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  568. package/types/components/Tabs/TabItem.types.d.ts +0 -5
  569. package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
  570. package/types/components/Tabs/tokens.d.ts +6 -1
  571. package/types/components/Tabs/tokens.d.ts.map +1 -1
  572. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts +2 -9
  573. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
  574. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
  575. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts +2 -9
  576. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts.map +1 -1
  577. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
  578. package/types/components/Toast/Toast.d.ts +4 -0
  579. package/types/components/Toast/Toast.d.ts.map +1 -1
  580. package/types/components/Toast/Toast.tokens.d.ts +2 -0
  581. package/types/components/Toast/Toast.tokens.d.ts.map +1 -1
  582. package/types/components/Toast/Toast.types.d.ts +8 -0
  583. package/types/components/Toast/Toast.types.d.ts.map +1 -1
  584. package/types/components/Toast/variations/_closeIconType/base.d.ts.map +1 -0
  585. package/types/components/_Icon/Icon.assets/CrossThin.d.ts +4 -0
  586. package/types/components/_Icon/Icon.assets/CrossThin.d.ts.map +1 -0
  587. package/types/components/_Icon/Icons/IconCrossThin.d.ts +4 -0
  588. package/types/components/_Icon/Icons/IconCrossThin.d.ts.map +1 -0
  589. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.d.ts.map +1 -1
  590. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts +0 -3
  591. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  592. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +0 -6
  593. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  594. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  595. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  596. package/types/examples/plasma_b2c/components/Combobox/Combobox.config.d.ts.map +1 -1
  597. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts.map +1 -1
  598. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  599. package/types/examples/plasma_b2c/components/Notification/Notification.config.d.ts +5 -0
  600. package/types/examples/plasma_b2c/components/Notification/Notification.config.d.ts.map +1 -1
  601. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +0 -6
  602. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
  603. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +0 -3
  604. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  605. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts +0 -3
  606. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  607. package/types/examples/plasma_b2c/components/Toast/Toast.config.d.ts +5 -0
  608. package/types/examples/plasma_b2c/components/Toast/Toast.config.d.ts.map +1 -1
  609. package/types/examples/plasma_b2c/components/Toast/Toast.d.ts +4 -0
  610. package/types/examples/plasma_b2c/components/Toast/Toast.d.ts.map +1 -1
  611. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.config.d.ts.map +1 -1
  612. package/types/examples/plasma_web/components/Badge/Badge.d.ts +0 -3
  613. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  614. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  615. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  616. package/types/examples/plasma_web/components/Combobox/Combobox.config.d.ts.map +1 -1
  617. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts.map +1 -1
  618. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  619. package/types/examples/plasma_web/components/Notification/Notification.config.d.ts +5 -0
  620. package/types/examples/plasma_web/components/Notification/Notification.config.d.ts.map +1 -1
  621. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts +0 -6
  622. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts.map +1 -1
  623. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +0 -3
  624. package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  625. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts +0 -3
  626. package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  627. package/types/examples/plasma_web/components/Toast/Toast.config.d.ts +5 -0
  628. package/types/examples/plasma_web/components/Toast/Toast.config.d.ts.map +1 -1
  629. package/types/examples/plasma_web/components/Toast/Toast.d.ts +4 -0
  630. package/types/examples/plasma_web/components/Toast/Toast.d.ts.map +1 -1
  631. package/cjs/components/Badge/variations/_truncate/base.js.map +0 -1
  632. package/cjs/components/Badge/variations/_truncate/base_nf9u2h.css +0 -1
  633. package/cjs/components/DatePicker/DatePickerBase.styles_mjc9xz.css +0 -2
  634. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1gljtdv.css +0 -2
  635. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1vj7dbl.css +0 -5
  636. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +0 -1
  637. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +0 -1
  638. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_hh65kv.css +0 -5
  639. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -9
  640. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +0 -1
  641. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +0 -1
  642. package/emotion/cjs/components/Badge/variations/_truncate/base.js +0 -10
  643. package/emotion/cjs/components/Badge/variations/_truncate/tokens.json +0 -1
  644. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -10
  645. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
  646. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -10
  647. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
  648. package/emotion/es/components/Badge/variations/_truncate/base.js +0 -4
  649. package/emotion/es/components/Badge/variations/_truncate/tokens.json +0 -1
  650. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -4
  651. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
  652. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -4
  653. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
  654. package/es/components/Badge/variations/_truncate/base.js.map +0 -1
  655. package/es/components/Badge/variations/_truncate/base_nf9u2h.css +0 -1
  656. package/es/components/DatePicker/DatePickerBase.styles_mjc9xz.css +0 -2
  657. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1gljtdv.css +0 -2
  658. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1vj7dbl.css +0 -5
  659. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -5
  660. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +0 -1
  661. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +0 -1
  662. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_hh65kv.css +0 -5
  663. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -5
  664. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +0 -1
  665. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +0 -1
  666. package/styled-components/cjs/components/Badge/variations/_truncate/base.js +0 -10
  667. package/styled-components/cjs/components/Badge/variations/_truncate/tokens.json +0 -1
  668. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -10
  669. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
  670. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -10
  671. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
  672. package/styled-components/es/components/Badge/variations/_truncate/base.js +0 -4
  673. package/styled-components/es/components/Badge/variations/_truncate/tokens.json +0 -1
  674. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +0 -4
  675. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +0 -1
  676. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +0 -4
  677. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +0 -1
  678. package/types/components/Badge/variations/_truncate/base.d.ts.map +0 -1
  679. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts.map +0 -1
  680. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts +0 -2
  681. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts.map +0 -1
  682. /package/types/components/{Badge/variations/_truncate → Notification/variations/_closeIconType}/base.d.ts +0 -0
  683. /package/types/components/{Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate → Toast/variations/_closeIconType}/base.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, extends as _extends, objectSpread2 as _objectSpread2 } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
1
+ import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
2
2
  import React, { forwardRef, useRef, useContext, useEffect, useCallback } from 'react';
3
3
  import { useForkRef } from '@salutejs/plasma-core';
4
4
  import { classes } from '../../../tokens.js';
@@ -8,10 +8,9 @@ import { base as base$2 } from './variations/_view/base.js';
8
8
  import { base as base$1 } from './variations/_size/base.js';
9
9
  import { base as base$4 } from './variations/_pilled/base.js';
10
10
  import { base as base$3 } from './variations/_disabled/base.js';
11
- import { base as base$5 } from './variations/_truncate/base.js';
12
11
  import { LeftContent, StyledContent, TabItemValue, RightContent, base } from './HorizontalTabItem.styles.js';
13
12
 
14
- var _excluded = ["size", "view", "isActive", "selected", "disabled", "pilled", "children", "value", "contentLeft", "contentRight", "animated", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick", "maxItemWidth"];
13
+ var _excluded = ["size", "view", "isActive", "selected", "disabled", "pilled", "children", "value", "contentLeft", "contentRight", "animated", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick"];
15
14
  var horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
16
15
  return /*#__PURE__*/forwardRef(function (props, outerRef) {
17
16
  var size = props.size,
@@ -33,13 +32,11 @@ var horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
33
32
  tabIndex = props.tabIndex,
34
33
  className = props.className,
35
34
  onClick = props.onClick,
36
- maxWidth = props.maxItemWidth,
37
35
  rest = _objectWithoutProperties(props, _excluded);
38
36
  var innerRef = useRef(null);
39
37
  var ref = useForkRef(outerRef, innerRef);
40
38
  var refs = useContext(TabsContext);
41
39
  var role = 'tab';
42
- var truncate = maxWidth !== 'auto';
43
40
  var pilledAttr = view !== 'clear' && pilled;
44
41
  var animatedClass = animated ? classes.tabItemAnimated : undefined;
45
42
  var pilledClass = pilledAttr ? classes.tabsPilled : undefined;
@@ -98,16 +95,11 @@ var horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
98
95
  // TODO: убрать каст any, когда будут удалены deprecated props
99
96
  ,
100
97
  size: size,
101
- truncate: truncate,
102
98
  onFocus: onItemFocus,
103
99
  tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
104
- className: cx(pilledClass, selectedClass, animatedClass, truncate && classes.tabsTruncate, className),
100
+ className: cx(pilledClass, selectedClass, animatedClass, className),
105
101
  onClick: handleClick
106
- }, rest, {
107
- style: _objectSpread2(_objectSpread2({}, rest.style), {}, {
108
- maxWidth: maxWidth
109
- })
110
- }), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
102
+ }, rest), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
111
103
  className: classes.tabLeftContent
112
104
  }, contentLeft), /*#__PURE__*/React.createElement(StyledContent, {
113
105
  className: classes.tabContent
@@ -134,9 +126,6 @@ var horizontalTabItemConfig = {
134
126
  },
135
127
  pilled: {
136
128
  css: base$4
137
- },
138
- truncate: {
139
- css: base$5
140
129
  }
141
130
  },
142
131
  defaults: {
@@ -1 +1 @@
1
- {"version":3,"file":"HorizontalTabItem.js","sources":["../../../../../../src/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.tsx"],"sourcesContent":["import React, { forwardRef, useRef, useContext, useEffect, useCallback } from 'react';\nimport { useForkRef } from '@salutejs/plasma-core';\n\nimport { RootProps } from '../../../../../engines';\nimport { classes } from '../../../tokens';\nimport { cx } from '../../../../../utils';\nimport { TabsContext } from '../../../TabsContext';\nimport { HorizontalTabItemProps } from '../../../TabItem.types';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as pilledCSS } from './variations/_pilled/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport { base as truncateCSS } from './variations/_truncate/base';\nimport { LeftContent, RightContent, StyledContent, TabItemValue, base } from './HorizontalTabItem.styles';\n\nexport const horizontalTabItemRoot = (\n Root: RootProps<HTMLDivElement, HorizontalTabItemProps & { truncate: boolean }>,\n) =>\n forwardRef<HTMLDivElement, HorizontalTabItemProps>((props, outerRef) => {\n const {\n size,\n view,\n isActive,\n selected,\n disabled = false,\n pilled = false,\n children,\n value,\n contentLeft,\n contentRight,\n animated = true,\n onIndexChange,\n itemIndex,\n tabIndex,\n className,\n onClick,\n maxItemWidth: maxWidth,\n ...rest\n } = props;\n\n const innerRef = useRef<HTMLDivElement>(null);\n const ref = useForkRef(outerRef, innerRef);\n const refs = useContext(TabsContext);\n\n const role = 'tab';\n\n const truncate = maxWidth !== 'auto';\n const pilledAttr = view !== 'clear' && pilled;\n const animatedClass = animated ? classes.tabItemAnimated : undefined;\n const pilledClass = pilledAttr ? classes.tabsPilled : undefined;\n const selectedClass = isActive || selected ? classes.selectedTabsItem : undefined;\n\n const hasKeyNavigation = itemIndex !== undefined && onIndexChange !== undefined;\n const navigationTabIndex = !disabled && refs?.current === itemIndex ? 0 : -1;\n\n useEffect(() => {\n if (!refs) {\n return;\n }\n\n refs.register(innerRef);\n\n return () => refs.unregister(innerRef);\n }, [refs]);\n\n const onItemFocus = useCallback<React.FocusEventHandler>(\n (event) => {\n if (disabled) {\n return;\n }\n\n if (!hasKeyNavigation && innerRef?.current) {\n innerRef.current.scrollTo({\n top: 0,\n left: innerRef.current.offsetLeft,\n behavior: 'smooth',\n });\n\n return;\n }\n\n if (!refs) {\n return;\n }\n\n const focusIndex = refs.items.findIndex((itemRef) => itemRef.current === event.target);\n\n if (focusIndex === refs.current) {\n return;\n }\n\n onIndexChange?.(focusIndex);\n refs.setCurrent(focusIndex);\n },\n [refs, innerRef, onIndexChange, disabled],\n );\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n event.currentTarget.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n\n if (!onClick) {\n return;\n }\n\n onClick(event);\n };\n\n return (\n <Root\n ref={ref}\n disabled={disabled}\n pilled={pilled}\n role={role}\n view={view}\n // TODO: убрать каст any, когда будут удалены deprecated props\n size={size as any}\n truncate={truncate}\n onFocus={onItemFocus}\n tabIndex={hasKeyNavigation ? navigationTabIndex : tabIndex}\n className={cx(pilledClass, selectedClass, animatedClass, truncate && classes.tabsTruncate, className)}\n onClick={handleClick}\n {...rest}\n style={{\n ...rest.style,\n maxWidth,\n }}\n >\n <>\n {contentLeft && <LeftContent className={classes.tabLeftContent}>{contentLeft}</LeftContent>}\n <StyledContent className={classes.tabContent}>{children}</StyledContent>\n {!contentRight && value && <TabItemValue>{value}</TabItemValue>}\n {!value && contentRight && (\n <RightContent className={classes.tabRightContent}>{contentRight}</RightContent>\n )}\n </>\n </Root>\n );\n });\n\nexport const horizontalTabItemConfig = {\n name: 'HorizontalTabItem',\n tag: 'button',\n layout: horizontalTabItemRoot,\n base,\n variations: {\n size: {\n css: sizeCSS,\n },\n view: {\n css: viewCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n pilled: {\n css: pilledCSS,\n },\n truncate: {\n css: truncateCSS,\n },\n },\n defaults: {\n view: 'default',\n },\n};\n"],"names":["horizontalTabItemRoot","Root","forwardRef","props","outerRef","size","view","isActive","selected","_props$disabled","disabled","_props$pilled","pilled","children","value","contentLeft","contentRight","_props$animated","animated","onIndexChange","itemIndex","tabIndex","className","onClick","maxWidth","maxItemWidth","rest","_objectWithoutProperties","_excluded","innerRef","useRef","ref","useForkRef","refs","useContext","TabsContext","role","truncate","pilledAttr","animatedClass","classes","tabItemAnimated","undefined","pilledClass","tabsPilled","selectedClass","selectedTabsItem","hasKeyNavigation","navigationTabIndex","current","useEffect","register","unregister","onItemFocus","useCallback","event","scrollTo","top","left","offsetLeft","behavior","focusIndex","items","findIndex","itemRef","target","setCurrent","handleClick","currentTarget","scrollIntoView","block","inline","React","createElement","_extends","onFocus","cx","tabsTruncate","style","_objectSpread","Fragment","LeftContent","tabLeftContent","StyledContent","tabContent","TabItemValue","RightContent","tabRightContent","horizontalTabItemConfig","name","tag","layout","base","variations","css","sizeCSS","viewCSS","disabledCSS","attrs","pilledCSS","truncateCSS","defaults"],"mappings":";;;;;;;;;;;;;;IAgBaA,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAC9BC,IAA+E,EAAA;AAAA,EAAA,oBAE/EC,UAAU,CAAyC,UAACC,KAAK,EAAEC,QAAQ,EAAK;AACpE,IAAA,IACIC,IAAI,GAkBJF,KAAK,CAlBLE,IAAI;MACJC,IAAI,GAiBJH,KAAK,CAjBLG,IAAI;MACJC,QAAQ,GAgBRJ,KAAK,CAhBLI,QAAQ;MACRC,QAAQ,GAeRL,KAAK,CAfLK,QAAQ;MAAAC,eAAA,GAeRN,KAAK,CAdLO,QAAQ;AAARA,MAAAA,QAAQ,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,eAAA;MAAAE,aAAA,GAchBR,KAAK,CAbLS,MAAM;AAANA,MAAAA,MAAM,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,aAAA;MACdE,QAAQ,GAYRV,KAAK,CAZLU,QAAQ;MACRC,KAAK,GAWLX,KAAK,CAXLW,KAAK;MACLC,WAAW,GAUXZ,KAAK,CAVLY,WAAW;MACXC,YAAY,GASZb,KAAK,CATLa,YAAY;MAAAC,eAAA,GASZd,KAAK,CARLe,QAAQ;AAARA,MAAAA,QAAQ,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,eAAA;MACfE,aAAa,GAObhB,KAAK,CAPLgB,aAAa;MACbC,SAAS,GAMTjB,KAAK,CANLiB,SAAS;MACTC,QAAQ,GAKRlB,KAAK,CALLkB,QAAQ;MACRC,SAAS,GAITn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alTabItem/HorizontalTabItem.tsx"],"sourcesContent":["import React, { forwardRef, useRef, useContext, useEffect, useCallback } from 'react';\nimport { useForkRef } from '@salutejs/plasma-core';\n\nimport { RootProps } from '../../../../../engines';\nimport { classes } from '../../../tokens';\nimport { cx } from '../../../../../utils';\nimport { TabsContext } from '../../../TabsContext';\nimport { HorizontalTabItemProps } from '../../../TabItem.types';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as pilledCSS } from './variations/_pilled/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport { LeftContent, RightContent, StyledContent, TabItemValue, base } from './HorizontalTabItem.styles';\n\nexport const horizontalTabItemRoot = (Root: RootProps<HTMLDivElement, HorizontalTabItemProps>) =>\n forwardRef<HTMLDivElement, HorizontalTabItemProps>((props, outerRef) => {\n const {\n size,\n view,\n isActive,\n selected,\n disabled = false,\n pilled = false,\n children,\n value,\n contentLeft,\n contentRight,\n animated = true,\n onIndexChange,\n itemIndex,\n tabIndex,\n className,\n onClick,\n ...rest\n } = props;\n\n const innerRef = useRef<HTMLDivElement>(null);\n const ref = useForkRef(outerRef, innerRef);\n const refs = useContext(TabsContext);\n\n const role = 'tab';\n\n const pilledAttr = view !== 'clear' && pilled;\n const animatedClass = animated ? classes.tabItemAnimated : undefined;\n const pilledClass = pilledAttr ? classes.tabsPilled : undefined;\n const selectedClass = isActive || selected ? classes.selectedTabsItem : undefined;\n const hasKeyNavigation = itemIndex !== undefined && onIndexChange !== undefined;\n const navigationTabIndex = !disabled && refs?.current === itemIndex ? 0 : -1;\n\n useEffect(() => {\n if (!refs) {\n return;\n }\n\n refs.register(innerRef);\n\n return () => refs.unregister(innerRef);\n }, [refs]);\n\n const onItemFocus = useCallback<React.FocusEventHandler>(\n (event) => {\n if (disabled) {\n return;\n }\n\n if (!hasKeyNavigation && innerRef?.current) {\n innerRef.current.scrollTo({\n top: 0,\n left: innerRef.current.offsetLeft,\n behavior: 'smooth',\n });\n\n return;\n }\n\n if (!refs) {\n return;\n }\n\n const focusIndex = refs.items.findIndex((itemRef) => itemRef.current === event.target);\n\n if (focusIndex === refs.current) {\n return;\n }\n\n onIndexChange?.(focusIndex);\n refs.setCurrent(focusIndex);\n },\n [refs, innerRef, onIndexChange, disabled],\n );\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n event.currentTarget.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n\n if (!onClick) {\n return;\n }\n\n onClick(event);\n };\n\n return (\n <Root\n ref={ref}\n disabled={disabled}\n pilled={pilled}\n role={role}\n view={view}\n // TODO: убрать каст any, когда будут удалены deprecated props\n size={size as any}\n onFocus={onItemFocus}\n tabIndex={hasKeyNavigation ? navigationTabIndex : tabIndex}\n className={cx(pilledClass, selectedClass, animatedClass, className)}\n onClick={handleClick}\n {...rest}\n >\n <>\n {contentLeft && <LeftContent className={classes.tabLeftContent}>{contentLeft}</LeftContent>}\n <StyledContent className={classes.tabContent}>{children}</StyledContent>\n {!contentRight && value && <TabItemValue>{value}</TabItemValue>}\n {!value && contentRight && (\n <RightContent className={classes.tabRightContent}>{contentRight}</RightContent>\n )}\n </>\n </Root>\n );\n });\n\nexport const horizontalTabItemConfig = {\n name: 'HorizontalTabItem',\n tag: 'button',\n layout: horizontalTabItemRoot,\n base,\n variations: {\n size: {\n css: sizeCSS,\n },\n view: {\n css: viewCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n pilled: {\n css: pilledCSS,\n },\n },\n defaults: {\n view: 'default',\n },\n};\n"],"names":["horizontalTabItemRoot","Root","forwardRef","props","outerRef","size","view","isActive","selected","_props$disabled","disabled","_props$pilled","pilled","children","value","contentLeft","contentRight","_props$animated","animated","onIndexChange","itemIndex","tabIndex","className","onClick","rest","_objectWithoutProperties","_excluded","innerRef","useRef","ref","useForkRef","refs","useContext","TabsContext","role","pilledAttr","animatedClass","classes","tabItemAnimated","undefined","pilledClass","tabsPilled","selectedClass","selectedTabsItem","hasKeyNavigation","navigationTabIndex","current","useEffect","register","unregister","onItemFocus","useCallback","event","scrollTo","top","left","offsetLeft","behavior","focusIndex","items","findIndex","itemRef","target","setCurrent","handleClick","currentTarget","scrollIntoView","block","inline","React","createElement","_extends","onFocus","cx","Fragment","LeftContent","tabLeftContent","StyledContent","tabContent","TabItemValue","RightContent","tabRightContent","horizontalTabItemConfig","name","tag","layout","base","variations","css","sizeCSS","viewCSS","disabledCSS","attrs","pilledCSS","defaults"],"mappings":";;;;;;;;;;;;;IAeaA,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAIC,IAAuD,EAAA;AAAA,EAAA,oBACzFC,UAAU,CAAyC,UAACC,KAAK,EAAEC,QAAQ,EAAK;AACpE,IAAA,IACIC,IAAI,GAiBJF,KAAK,CAjBLE,IAAI;MACJC,IAAI,GAgBJH,KAAK,CAhBLG,IAAI;MACJC,QAAQ,GAeRJ,KAAK,CAfLI,QAAQ;MACRC,QAAQ,GAcRL,KAAK,CAdLK,QAAQ;MAAAC,eAAA,GAcRN,KAAK,CAbLO,QAAQ;AAARA,MAAAA,QAAQ,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,eAAA;MAAAE,aAAA,GAahBR,KAAK,CAZLS,MAAM;AAANA,MAAAA,MAAM,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,aAAA;MACdE,QAAQ,GAWRV,KAAK,CAXLU,QAAQ;MACRC,KAAK,GAULX,KAAK,CAVLW,KAAK;MACLC,WAAW,GASXZ,KAAK,CATLY,WAAW;MACXC,YAAY,GAQZb,KAAK,CARLa,YAAY;MAAAC,eAAA,GAQZd,KAAK,CAPLe,QAAQ;AAARA,MAAAA,QAAQ,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,eAAA;MACfE,aAAa,GAMbhB,KAAK,CANLgB,aAAa;MACbC,SAAS,GAKTjB,KAAK,CALLiB,SAAS;MACTC,QAAQ,GAIRlB,KAAK,CAJLk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C,aAAA,CAACU,YAAY,EAAA;MAAC1D,SAAS,EAAEe,OAAO,CAAC4C,eAAAA;KAAkBjE,EAAAA,YAA2B,CAEpF,CACA,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAMkE,uBAAuB,GAAG;AACnCC,EAAAA,IAAI,EAAE,mBAAmB;AACzBC,EAAAA,GAAG,EAAE,QAAQ;AACbC,EAAAA,MAAM,EAAErF,qBAAqB;AAC7BsF,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,UAAU,EAAE;AACRlF,IAAAA,IAAI,EAAE;AACFmF,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACDnF,IAAAA,IAAI,EAAE;AACFkF,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACDhF,IAAAA,QAAQ,EAAE;AACN8E,MAAAA,GAAG,EAAEG,MAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;KACV;AACDhF,IAAAA,MAAM,EAAE;AACJ4E,MAAAA,GAAG,EAAEK,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNxF,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;"}
@@ -1,4 +1,4 @@
1
- import './HorizontalTabItem.styles_1vj7dbl.css';
1
+ import './HorizontalTabItem.styles_uaaqqg.css';
2
2
  import { styled } from '@linaria/react';
3
3
 
4
4
  var base = "bkuum0w";
@@ -1 +1 @@
1
- {"version":3,"file":"HorizontalTabItem.styles.js","sources":["../../../../../../src/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { addFocus } from '../../../../../mixins';\nimport { tokens } from '../../../tokens';\n\nexport const base = css`\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n align-items: center;\n white-space: nowrap;\n\n gap: var(${tokens.itemContentGap});\n padding: var(${tokens.itemPaddingClear}, var(${tokens.itemPadding}));\n\n appearance: none;\n border: none;\n outline: none;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n &:first-child {\n margin-left: 0;\n }\n\n ${addFocus({\n outlineSize: '0.063rem',\n outlineOffset: '-0.125rem',\n outlineColor: `var(${tokens.outlineFocusColor})`,\n outlineRadius: 'calc(var(--plasma_private-outline-radius) + 0.063rem)',\n customFocusRules: `\n &.focus-visible:focus,\n &[data-focus-visible-added] {\n &::before {\n z-index: 1;\n outline: none;\n box-shadow: 0 0 0 0.063rem var(${tokens.outlineFocusColor});\n }\n }\n `,\n })};\n`;\n\nexport const StyledContent = styled.div`\n display: inline-block;\n width: fit-content;\n\n padding: 0 var(${tokens.itemContentPaddingClear}, var(${tokens.itemContentPadding}));\n`;\n\nexport const TabItemValue = styled.span`\n color: var(${tokens.itemValueColor});\n`;\n\nexport const RightContent = styled.div`\n display: flex;\n color: inherit;\n\n &:hover {\n color: inherit;\n }\n`;\n\nexport const LeftContent = styled.div`\n display: flex;\n color: inherit;\n\n &:hover {\n color: inherit;\n }\n`;\n"],"names":["base","StyledContent","styled","name","class","propsAsIs","TabItemValue","RightContent","LeftContent"],"mappings":";;AAMO,IAAMA,IAAI,GAsChB,UAAA;AAEM,IAAMC,aAAa,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAKlC,EAAA;AAEM,IAAMC,YAAY,gBAAGJ,MAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAEjC,EAAA;AAEM,IAAME,YAAY,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAOjC,EAAA;AAEM,IAAMG,WAAW,gBAAGN,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAOhC;;;;"}
1
+ {"version":3,"file":"HorizontalTabItem.styles.js","sources":["../../../../../../src/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { addFocus } from '../../../../../mixins';\nimport { tokens } from '../../../tokens';\n\nexport const base = css`\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n align-items: center;\n\n gap: var(${tokens.itemContentGap});\n padding: var(${tokens.itemPaddingClear}, var(${tokens.itemPadding}));\n\n appearance: none;\n border: none;\n outline: none;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n &:first-child {\n margin-left: 0;\n }\n\n ${addFocus({\n outlineSize: '0.063rem',\n outlineOffset: '-0.125rem',\n outlineColor: `var(${tokens.outlineFocusColor})`,\n outlineRadius: 'calc(var(--plasma_private-outline-radius) + 0.063rem)',\n customFocusRules: `\n &.focus-visible:focus,\n &[data-focus-visible-added] {\n &::before {\n z-index: 1;\n outline: none;\n box-shadow: 0 0 0 0.063rem var(${tokens.outlineFocusColor});\n }\n }\n `,\n })};\n`;\n\nexport const StyledContent = styled.div`\n display: inline-block;\n width: fit-content;\n\n padding: 0 var(${tokens.itemContentPaddingClear}, var(${tokens.itemContentPadding}));\n`;\n\nexport const TabItemValue = styled.span`\n color: var(${tokens.itemValueColor});\n\n font-family: var(${tokens.valueFontFamily}, var(${tokens.fontFamily}));\n font-size: var(${tokens.valueFontSize}, var(${tokens.fontSize}));\n font-style: var(${tokens.valueFontStyle}, var(${tokens.fontStyle}));\n font-weight: var(${tokens.valueFontWeight}, var(${tokens.fontWeight}));\n letter-spacing: var(${tokens.valueLetterSpacing}, var(${tokens.letterSpacing}));\n line-height: var(${tokens.valueLineHeight}, var(${tokens.lineHeight}));\n`;\n\nexport const RightContent = styled.div`\n display: flex;\n color: inherit;\n\n &:hover {\n color: inherit;\n }\n`;\n\nexport const LeftContent = styled.div`\n display: flex;\n color: inherit;\n\n &:hover {\n color: inherit;\n }\n`;\n"],"names":["base","StyledContent","styled","name","class","propsAsIs","TabItemValue","RightContent","LeftContent"],"mappings":";;AAMO,IAAMA,IAAI,GAqChB,UAAA;AAEM,IAAMC,aAAa,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAKlC,EAAA;AAEM,IAAMC,YAAY,gBAAGJ,MAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CASjC,EAAA;AAEM,IAAME,YAAY,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAOjC,EAAA;AAEM,IAAMG,WAAW,gBAAGN,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAOhC;;;;"}
@@ -0,0 +1,5 @@
1
+ .bkuum0w{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;box-sizing:border-box;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--plasma-tab-item-content-gap);padding:var(--plasma-tab-item-padding-clear,var(--plasma-tab-item-padding));-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative;}.bkuum0w:first-child{margin-left:0;}.bkuum0w::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma_private-outline-radius) + 0.063rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.bkuum0w.focus-visible:focus::before,.bkuum0w[data-focus-visible-added]::before{z-index:1;outline:none;box-shadow:0 0 0 0.063rem var(--plasma-tabs-outline-focus-color);}
2
+ .s1l5e9z0{display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0 var(--plasma-tab-item-content-padding-clear,var(--plasma-tab-item-content-padding));}
3
+ .t1nh4m12{color:var(--plasma-tab-item-value-color);font-family:var(--plasma-tab-item-value-font-family,var(--plasma-tab-item-font-family));font-size:var(--plasma-tab-item-value-font-size,var(--plasma-tab-item-font-size));font-style:var(--plasma-tab-item-value-font-style,var(--plasma-tab-item-font-style));font-weight:var(--plasma-tab-item-value-font-weight,var(--plasma-tab-item-font-weight));-webkit-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));-moz-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));-ms-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));line-height:var(--plasma-tab-item-value-lineheight,var(--plasma-tab-item-lineheight));}
4
+ .r13nweg3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.r13nweg3:hover{color:inherit;}
5
+ .l1iip2sx{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.l1iip2sx:hover{color:inherit;}
@@ -1,13 +1,11 @@
1
- .VerticalTabItem_styles_hh65kv_b1vnvg8i__78556f3b{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;box-sizing:border-box;white-space:nowrap;gap:var(--plasma-tab-item-content-gap);padding:var(--plasma-tab-item-padding-orientation-vertical);-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative;}.VerticalTabItem_styles_hh65kv_b1vnvg8i__78556f3b::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma_private-outline-radius) + 0.063rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.VerticalTabItem_styles_hh65kv_b1vnvg8i__78556f3b.VerticalTabItem_styles_hh65kv_focusVisible__78556f3b:focus::before,.VerticalTabItem_styles_hh65kv_b1vnvg8i__78556f3b[data-focus-visible-added]::before{z-index:1;outline:none;box-shadow:0 0 0 0.063rem var(--plasma-tabs-outline-focus-color);}
2
- .VerticalTabItem_styles_hh65kv_s4s0t81__78556f3b{display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0 var(--plasma-tab-item-content-padding-clear,var(--plasma-tab-item-content-padding));}
3
- .VerticalTabItem_styles_hh65kv_tur46hh__78556f3b{white-space:nowrap;color:var(--plasma-tab-item-value-color);}
4
- .VerticalTabItem_styles_hh65kv_r1ms3p4x__78556f3b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.VerticalTabItem_styles_hh65kv_r1ms3p4x__78556f3b:hover{color:inherit;}
5
- .VerticalTabItem_styles_hh65kv_l1yz2xa4__78556f3b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.VerticalTabItem_styles_hh65kv_l1yz2xa4__78556f3b:hover{color:inherit;}
1
+ .VerticalTabItem_styles_1g7zipg_b1vnvg8i__043363c5{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;box-sizing:border-box;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--plasma-tab-item-content-gap);padding:var(--plasma-tab-item-padding-orientation-vertical);-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative;}.VerticalTabItem_styles_1g7zipg_b1vnvg8i__043363c5::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma_private-outline-radius) + 0.063rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.VerticalTabItem_styles_1g7zipg_b1vnvg8i__043363c5.VerticalTabItem_styles_1g7zipg_focusVisible__043363c5:focus::before,.VerticalTabItem_styles_1g7zipg_b1vnvg8i__043363c5[data-focus-visible-added]::before{z-index:1;outline:none;box-shadow:0 0 0 0.063rem var(--plasma-tabs-outline-focus-color);}
2
+ .VerticalTabItem_styles_1g7zipg_s4s0t81__043363c5{display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0 var(--plasma-tab-item-content-padding-clear,var(--plasma-tab-item-content-padding));}
3
+ .VerticalTabItem_styles_1g7zipg_tur46hh__043363c5{color:var(--plasma-tab-item-value-color);font-family:var(--plasma-tab-item-value-font-family,var(--plasma-tab-item-font-family));font-size:var(--plasma-tab-item-value-font-size,var(--plasma-tab-item-font-size));font-style:var(--plasma-tab-item-value-font-style,var(--plasma-tab-item-font-style));font-weight:var(--plasma-tab-item-value-font-weight,var(--plasma-tab-item-font-weight));-webkit-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));-moz-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));-ms-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));line-height:var(--plasma-tab-item-value-lineheight,var(--plasma-tab-item-lineheight));}
4
+ .VerticalTabItem_styles_1g7zipg_r1ms3p4x__043363c5{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.VerticalTabItem_styles_1g7zipg_r1ms3p4x__043363c5:hover{color:inherit;}
5
+ .VerticalTabItem_styles_1g7zipg_l1yz2xa4__043363c5{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.VerticalTabItem_styles_1g7zipg_l1yz2xa4__043363c5:hover{color:inherit;}
6
6
 
7
7
  .base_fueiq8_byyhn69__02004398{color:var(--plasma-tab-item-color);background-color:var(--plasma-tab-item-background-color);}.base_fueiq8_byyhn69__02004398:hover{color:var(--plasma-tab-item-color-hover);background-color:var(--plasma-tab-item-background-color-hover);}.base_fueiq8_byyhn69__02004398:hover .base_fueiq8_tur46hh__02004398{color:var(--plasma-tab-item-value-color-hover);}.base_fueiq8_byyhn69__02004398:active{color:var(--plasma-tab-item-color-active);}.base_fueiq8_byyhn69__02004398:active .base_fueiq8_tur46hh__02004398{color:var(--plasma-tab-item-value-color-active);}.base_fueiq8_byyhn69__02004398.base_fueiq8_tabItemAnimated__02004398{-webkit-transition:var(--plasma-tab-item-background-transition);transition:var(--plasma-tab-item-background-transition);}.base_fueiq8_byyhn69__02004398.base_fueiq8_selectedTabsItem__02004398{color:var(--plasma-tab-item-selected-color);background-color:var(--plasma-tab-item-selected-background-color);}.base_fueiq8_byyhn69__02004398.base_fueiq8_selectedTabsItem__02004398:hover{color:var(--plasma-tab-item-selected-color-hover);background-color:var(--plasma-tab-item-selected-background-color-hover);}.base_fueiq8_byyhn69__02004398.base_fueiq8_selectedTabsItem__02004398:hover::after{background:var(--plasma-tab-item-selected-hover-divider-color);}.base_fueiq8_byyhn69__02004398.base_fueiq8_selectedTabsItem__02004398 .base_fueiq8_tur46hh__02004398{color:var(--plasma-tab-item-selected-value-color-hover);}.base_fueiq8_byyhn69__02004398.base_fueiq8_selectedTabsItem__02004398 .base_fueiq8_tur46hh__02004398:hover{color:var(--plasma-tab-item-selected-value-color-hover);}.base_fueiq8_byyhn69__02004398.base_fueiq8_selectedTabsItem__02004398::after{content:'';position:absolute;top:0;left:0;bottom:0;background:var(--plasma-tab-item-selected-divider-color);width:var(--plasma-tab-item-selected-divider-width);border-radius:0.063rem;}
8
8
 
9
9
  .base_322rr_b13ylalc__13d4018e{font-family:var(--plasma-tab-item-font-family);font-size:var(--plasma-tab-item-font-size);font-style:var(--plasma-tab-item-font-style);font-weight:var(--plasma-tab-item-font-weight);-webkit-letter-spacing:var(--plasma-tab-item-letter-spacing);-moz-letter-spacing:var(--plasma-tab-item-letter-spacing);-ms-letter-spacing:var(--plasma-tab-item-letter-spacing);letter-spacing:var(--plasma-tab-item-letter-spacing);line-height:var(--plasma-tab-item-lineheight);--plasma_private-outline-radius:var(--plasma-tab-item-border-radius);border-radius:var(--plasma-tab-item-border-radius);width:100%;height:var(--plasma-tab-item-height);}
10
10
 
11
11
  .base_13f4t5k_bvdfayd__c71883f1[disabled]{cursor:not-allowed;}.base_13f4t5k_bvdfayd__c71883f1[disabled]:hover{color:var(--plasma-tab-item-color);background-color:var(--plasma-tab-item-background-color);}.base_13f4t5k_bvdfayd__c71883f1[disabled].base_13f4t5k_selectedTabsItem__c71883f1:hover{color:var(--plasma-tab-item-selected-color);background-color:var(--plasma-tab-item-selected-background-color);}
12
-
13
- .base_1nwonlh_b1ar5ze4__a4361be8.base_1nwonlh_tabsTruncate__a4361be8 .base_1nwonlh_s4s0t81__a4361be8{overflow:hidden;text-overflow:ellipsis;}.base_1nwonlh_b1ar5ze4__a4361be8.base_1nwonlh_tabsTruncate__a4361be8 .base_1nwonlh_tur46hh__a4361be8{overflow:hidden;text-overflow:ellipsis;}
@@ -1,4 +1,4 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, extends as _extends, objectSpread2 as _objectSpread2 } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
1
+ import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
2
2
  import React, { forwardRef, useRef, useContext, useEffect, useCallback } from 'react';
3
3
  import { useForkRef } from '@salutejs/plasma-core';
4
4
  import { classes } from '../../../tokens.js';
@@ -8,9 +8,8 @@ import { LeftContent, StyledContent, TabItemValue, RightContent, base } from './
8
8
  import { base as base$2 } from './variations/_view/base.js';
9
9
  import { base as base$1 } from './variations/_size/base.js';
10
10
  import { base as base$3 } from './variations/_disabled/base.js';
11
- import { base as base$4 } from './variations/_truncate/base.js';
12
11
 
13
- var _excluded = ["size", "view", "selected", "disabled", "children", "value", "contentLeft", "contentRight", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick", "maxItemWidth"];
12
+ var _excluded = ["size", "view", "selected", "disabled", "children", "value", "contentLeft", "contentRight", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick"];
14
13
  var verticalTabItemRoot = function verticalTabItemRoot(Root) {
15
14
  return /*#__PURE__*/forwardRef(function (props, outerRef) {
16
15
  var size = props.size,
@@ -27,13 +26,11 @@ var verticalTabItemRoot = function verticalTabItemRoot(Root) {
27
26
  tabIndex = props.tabIndex,
28
27
  className = props.className,
29
28
  onClick = props.onClick,
30
- maxWidth = props.maxItemWidth,
31
29
  rest = _objectWithoutProperties(props, _excluded);
32
30
  var innerRef = useRef(null);
33
31
  var ref = useForkRef(outerRef, innerRef);
34
32
  var refs = useContext(TabsContext);
35
33
  var role = 'tab';
36
- var truncate = maxWidth !== 'auto';
37
34
  var selectedClass = selected ? classes.selectedTabsItem : undefined;
38
35
  var hasKeyNavigation = itemIndex !== undefined && onIndexChange !== undefined;
39
36
  var navigationTabIndex = !disabled && (refs === null || refs === void 0 ? void 0 : refs.current) === itemIndex ? 0 : -1;
@@ -85,16 +82,11 @@ var verticalTabItemRoot = function verticalTabItemRoot(Root) {
85
82
  role: role,
86
83
  view: view,
87
84
  size: size,
88
- truncate: truncate,
89
85
  onFocus: onItemFocus,
90
86
  tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
91
- className: cx(selectedClass, truncate && classes.tabsTruncate, className),
87
+ className: cx(selectedClass, className),
92
88
  onClick: handleClick
93
- }, rest, {
94
- style: _objectSpread2(_objectSpread2({}, rest.style), {}, {
95
- maxWidth: maxWidth
96
- })
97
- }), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
89
+ }, rest), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
98
90
  className: classes.tabLeftContent
99
91
  }, contentLeft), /*#__PURE__*/React.createElement(StyledContent, {
100
92
  className: classes.tabContent
@@ -118,9 +110,6 @@ var verticalTabItemConfig = {
118
110
  disabled: {
119
111
  css: base$3,
120
112
  attrs: true
121
- },
122
- truncate: {
123
- css: base$4
124
113
  }
125
114
  },
126
115
  defaults: {
@@ -1 +1 @@
1
- {"version":3,"file":"VerticalTabItem.js","sources":["../../../../../../src/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.tsx"],"sourcesContent":["import React, { forwardRef, useRef, useContext, useEffect, useCallback } from 'react';\nimport { useForkRef } from '@salutejs/plasma-core';\n\nimport { RootProps } from '../../../../../engines';\nimport { classes } from '../../../tokens';\nimport { cx } from '../../../../../utils';\nimport { TabsContext } from '../../../TabsContext';\nimport { VerticalTabItemProps } from '../../../TabItem.types';\n\nimport { base, LeftContent, RightContent, StyledContent, TabItemValue } from './VerticalTabItem.styles';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport { base as truncateCSS } from './variations/_truncate/base';\n\nexport const verticalTabItemRoot = (Root: RootProps<HTMLButtonElement, VerticalTabItemProps & { truncate: boolean }>) =>\n forwardRef<HTMLButtonElement, VerticalTabItemProps>((props, outerRef) => {\n const {\n size,\n view,\n selected,\n disabled = false,\n children,\n value,\n contentLeft,\n contentRight,\n onIndexChange,\n itemIndex,\n tabIndex,\n className,\n onClick,\n maxItemWidth: maxWidth,\n ...rest\n } = props;\n\n const innerRef = useRef<HTMLButtonElement>(null);\n const ref = useForkRef(outerRef, innerRef);\n const refs = useContext(TabsContext);\n\n const role = 'tab';\n const truncate = maxWidth !== 'auto';\n\n const selectedClass = selected ? classes.selectedTabsItem : undefined;\n\n const hasKeyNavigation = itemIndex !== undefined && onIndexChange !== undefined;\n const navigationTabIndex = !disabled && refs?.current === itemIndex ? 0 : -1;\n\n useEffect(() => {\n if (!refs) {\n return;\n }\n\n refs.register(innerRef);\n\n return () => refs.unregister(innerRef);\n }, [refs]);\n\n const onItemFocus = useCallback<React.FocusEventHandler>(\n (event) => {\n if (disabled) {\n return;\n }\n\n if (!hasKeyNavigation && innerRef?.current) {\n innerRef.current.scrollTo({\n top: innerRef.current.offsetTop,\n behavior: 'smooth',\n });\n\n return;\n }\n\n if (!refs) {\n return;\n }\n\n const focusIndex = refs.items.findIndex((itemRef) => itemRef.current === event.target);\n\n if (focusIndex === refs.current) {\n return;\n }\n\n onIndexChange?.(focusIndex);\n refs.setCurrent(focusIndex);\n },\n [refs, innerRef, onIndexChange, disabled],\n );\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n event.currentTarget.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n\n if (!onClick) {\n return;\n }\n\n onClick(event);\n };\n\n return (\n <Root\n ref={ref}\n disabled={disabled}\n role={role}\n view={view}\n size={size}\n truncate={truncate}\n onFocus={onItemFocus}\n tabIndex={hasKeyNavigation ? navigationTabIndex : tabIndex}\n className={cx(selectedClass, truncate && classes.tabsTruncate, className)}\n onClick={handleClick}\n {...rest}\n style={{\n ...rest.style,\n maxWidth,\n }}\n >\n <>\n {contentLeft && <LeftContent className={classes.tabLeftContent}>{contentLeft}</LeftContent>}\n <StyledContent className={classes.tabContent}>{children}</StyledContent>\n {!contentRight && value && <TabItemValue>{value}</TabItemValue>}\n {!value && contentRight && (\n <RightContent className={classes.tabRightContent}>{contentRight}</RightContent>\n )}\n </>\n </Root>\n );\n });\n\nexport const verticalTabItemConfig = {\n name: 'VerticalTabItem',\n tag: 'button',\n layout: verticalTabItemRoot,\n base,\n variations: {\n size: {\n css: sizeCSS,\n },\n view: {\n css: viewCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n truncate: {\n css: truncateCSS,\n },\n },\n defaults: {\n view: 'divider',\n },\n};\n"],"names":["verticalTabItemRoot","Root","forwardRef","props","outerRef","size","view","selected","_props$disabled","disabled","children","value","contentLeft","contentRight","onIndexChange","itemIndex","tabIndex","className","onClick","maxWidth","maxItemWidth","rest","_objectWithoutProperties","_excluded","innerRef","useRef","ref","useForkRef","refs","useContext","TabsContext","role","truncate","selectedClass","classes","selectedTabsItem","undefined","hasKeyNavigation","navigationTabIndex","current","useEffect","register","unregister","onItemFocus","useCallback","event","scrollTo","top","offsetTop","behavior","focusIndex","items","findIndex","itemRef","target","setCurrent","handleClick","currentTarget","scrollIntoView","block","inline","React","createElement","_extends","onFocus","cx","tabsTruncate","style","_objectSpread","Fragment","LeftContent","tabLeftContent","StyledContent","tabContent","TabItemValue","RightContent","tabRightContent","verticalTabItemConfig","name","t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AAE;AACN0E,MAAAA,GAAG,EAAEG,MAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;KACV;AACDvD,IAAAA,QAAQ,EAAE;AACNmD,MAAAA,GAAG,EAAEK,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNnF,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"VerticalTabItem.js","sources":["../../../../../../src/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.tsx"],"sourcesContent":["import React, { forwardRef, useRef, useContext, useEffect, useCallback } from 'react';\nimport { useForkRef } from '@salutejs/plasma-core';\n\nimport { RootProps } from '../../../../../engines';\nimport { classes } from '../../../tokens';\nimport { cx } from '../../../../../utils';\nimport { TabsContext } from '../../../TabsContext';\nimport { VerticalTabItemProps } from '../../../TabItem.types';\n\nimport { base, LeftContent, RightContent, StyledContent, TabItemValue } from './VerticalTabItem.styles';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\n\nexport const verticalTabItemRoot = (Root: RootProps<HTMLButtonElement, VerticalTabItemProps>) =>\n forwardRef<HTMLButtonElement, VerticalTabItemProps>((props, outerRef) => {\n const {\n size,\n view,\n selected,\n disabled = false,\n children,\n value,\n contentLeft,\n contentRight,\n onIndexChange,\n itemIndex,\n tabIndex,\n className,\n onClick,\n ...rest\n } = props;\n\n const innerRef = useRef<HTMLButtonElement>(null);\n const ref = useForkRef(outerRef, innerRef);\n const refs = useContext(TabsContext);\n\n const role = 'tab';\n\n const selectedClass = selected ? classes.selectedTabsItem : undefined;\n\n const hasKeyNavigation = itemIndex !== undefined && onIndexChange !== undefined;\n const navigationTabIndex = !disabled && refs?.current === itemIndex ? 0 : -1;\n\n useEffect(() => {\n if (!refs) {\n return;\n }\n\n refs.register(innerRef);\n\n return () => refs.unregister(innerRef);\n }, [refs]);\n\n const onItemFocus = useCallback<React.FocusEventHandler>(\n (event) => {\n if (disabled) {\n return;\n }\n\n if (!hasKeyNavigation && innerRef?.current) {\n innerRef.current.scrollTo({\n top: innerRef.current.offsetTop,\n behavior: 'smooth',\n });\n\n return;\n }\n\n if (!refs) {\n return;\n }\n\n const focusIndex = refs.items.findIndex((itemRef) => itemRef.current === event.target);\n\n if (focusIndex === refs.current) {\n return;\n }\n\n onIndexChange?.(focusIndex);\n refs.setCurrent(focusIndex);\n },\n [refs, innerRef, onIndexChange, disabled],\n );\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n event.currentTarget.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n\n if (!onClick) {\n return;\n }\n\n onClick(event);\n };\n\n return (\n <Root\n ref={ref}\n disabled={disabled}\n role={role}\n view={view}\n size={size}\n onFocus={onItemFocus}\n tabIndex={hasKeyNavigation ? navigationTabIndex : tabIndex}\n className={cx(selectedClass, className)}\n onClick={handleClick}\n {...rest}\n >\n <>\n {contentLeft && <LeftContent className={classes.tabLeftContent}>{contentLeft}</LeftContent>}\n <StyledContent className={classes.tabContent}>{children}</StyledContent>\n {!contentRight && value && <TabItemValue>{value}</TabItemValue>}\n {!value && contentRight && (\n <RightContent className={classes.tabRightContent}>{contentRight}</RightContent>\n )}\n </>\n </Root>\n );\n });\n\nexport const verticalTabItemConfig = {\n name: 'VerticalTabItem',\n tag: 'button',\n layout: verticalTabItemRoot,\n base,\n variations: {\n size: {\n css: sizeCSS,\n },\n view: {\n css: viewCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n },\n defaults: {\n view: 'divider',\n },\n};\n"],"names":["verticalTabItemRoot","Root","forwardRef","props","outerRef","size","view","selected","_props$disabled","disabled","children","value","contentLeft","contentRight","onIndexChange","itemIndex","tabIndex","className","onClick","rest","_objectWithoutProperties","_excluded","innerRef","useRef","ref","useForkRef","refs","useContext","TabsContext","role","selectedClass","classes","selectedTabsItem","undefined","hasKeyNavigation","navigationTabIndex","current","useEffect","register","unregister","onItemFocus","useCallback","event","scrollTo","top","offsetTop","behavior","focusIndex","items","findIndex","itemRef","target","setCurrent","handleClick","currentTarget","scrollIntoView","block","inline","React","createElement","_extends","onFocus","cx","Fragment","LeftContent","tabLeftContent","StyledContent","tabContent","TabItemValue","RightContent","tabRightContent","verticalTabItemConfig","name","tag","layout","base","variations","css","sizeCSS","viewCSS","disabledCSS","attrs","defaults"],"mappings":";;;;;;;;;;;;IAcaA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIC,IAAwD,EAAA;AAAA,EAAA,oBACxFC,UAAU,CAA0C,UAACC,KAAK,EAAEC,QAAQ,EAAK;AACrE,IAAA,IACIC,IAAI,GAcJF,KAAK,CAdLE,IAAI;MACJC,IAAI,GAaJH,KAAK,CAbLG,IAAI;MACJC,QAAQ,GAYRJ,KAAK,CAZLI,QAAQ;MAAAC,eAAA,GAYRL,KAAK,CAXLM,QAAQ;AAARA,MAAAA,QAAQ,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,eAAA;MAChBE,QAAQ,GAURP,KAAK,CAVLO,QAAQ;MACRC,KAAK,GASLR,KAAK,CATLQ,KAAK;MACLC,WAAW,GAQXT,KAAK,CARLS,WAAW;MACXC,YAAY,GAOZV,KAAK,CAPLU,YAAY;MACZC,aAAa,GAMbX,KAAK,CANLW,aAAa;MACbC,SAAS,GAKTZ,KAAK,CALLY,SAAS;MACTC,QAAQ,GAIRb,KAAK,CAJLa,QAAQ;MACRC,SAAS,GAGTd,KAAK,CAHLc,SAAS;MACTC,OAAO,GAEPf,KAAK,CAFLe,OAAO;AACJC,MAAAA,IAAI,GAAAC,wBAAA,CACPjB,KAAK,EAAAkB,SAAA,CAAA,CAAA;AAET,IAAA,IAAMC,QAAQ,GAAGC,MAAM,CAAoB,IAAI,CAAC,CAAA;AAChD,IAAA,IAAMC,GAAG,GAAGC,UAAU,CAACrB,QAAQ,EAAEkB,QAAQ,CAAC,CAAA;AAC1C,IAAA,IAAMI,IAA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'./VerticalTabItem.styles_hh65kv.css';
1
+ import './VerticalTabItem.styles_1g7zipg.css';
2
2
  import { styled } from '@linaria/react';
3
3
 
4
4
  var base = "b1vnvg8i";
@@ -1 +1 @@
1
- {"version":3,"file":"VerticalTabItem.styles.js","sources":["../../../../../../src/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\nimport { styled } from '@linaria/react';\n\nimport { addFocus } from '../../../../../mixins';\nimport { tokens } from '../../../tokens';\n\nexport const base = css`\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n box-sizing: border-box;\n white-space: nowrap;\n\n gap: var(${tokens.itemContentGap});\n padding: var(${tokens.itemPaddingOrientationVertical});\n\n appearance: none;\n border: none;\n outline: none;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n ${addFocus({\n outlineSize: '0.063rem',\n outlineOffset: '-0.125rem',\n outlineColor: `var(${tokens.outlineFocusColor})`,\n outlineRadius: 'calc(var(--plasma_private-outline-radius) + 0.063rem)',\n customFocusRules: `\n &.focus-visible:focus,\n &[data-focus-visible-added] {\n &::before {\n z-index: 1;\n outline: none;\n box-shadow: 0 0 0 0.063rem var(${tokens.outlineFocusColor});\n }\n }\n `,\n })};\n`;\n\nexport const StyledContent = styled.div`\n display: inline-block;\n width: fit-content;\n\n padding: 0 var(${tokens.itemContentPaddingClear}, var(${tokens.itemContentPadding}));\n`;\n\nexport const TabItemValue = styled.span`\n white-space: nowrap;\n color: var(${tokens.itemValueColor});\n`;\n\nexport const RightContent = styled.div`\n display: flex;\n color: inherit;\n\n &:hover {\n color: inherit;\n }\n`;\n\nexport const LeftContent = styled.div`\n display: flex;\n color: inherit;\n\n &:hover {\n color: inherit;\n }\n`;\n"],"names":["base","StyledContent","styled","name","class","propsAsIs","TabItemValue","RightContent","LeftContent"],"mappings":";;AAMO,IAAMA,IAAI,GAiChB,WAAA;AAEM,IAAMC,aAAa,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAKlC,EAAA;AAEM,IAAMC,YAAY,gBAAGJ,MAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAGjC,EAAA;AAEM,IAAME,YAAY,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAOjC,EAAA;AAEM,IAAMG,WAAW,gBAAGN,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAOhC;;;;"}
1
+ {"version":3,"file":"VerticalTabItem.styles.js","sources":["../../../../../../src/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\nimport { styled } from '@linaria/react';\n\nimport { addFocus } from '../../../../../mixins';\nimport { tokens } from '../../../tokens';\n\nexport const base = css`\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(${tokens.itemContentGap});\n padding: var(${tokens.itemPaddingOrientationVertical});\n\n appearance: none;\n border: none;\n outline: none;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n ${addFocus({\n outlineSize: '0.063rem',\n outlineOffset: '-0.125rem',\n outlineColor: `var(${tokens.outlineFocusColor})`,\n outlineRadius: 'calc(var(--plasma_private-outline-radius) + 0.063rem)',\n customFocusRules: `\n &.focus-visible:focus,\n &[data-focus-visible-added] {\n &::before {\n z-index: 1;\n outline: none;\n box-shadow: 0 0 0 0.063rem var(${tokens.outlineFocusColor});\n }\n }\n `,\n })};\n`;\n\nexport const StyledContent = styled.div`\n display: inline-block;\n width: fit-content;\n\n padding: 0 var(${tokens.itemContentPaddingClear}, var(${tokens.itemContentPadding}));\n`;\n\nexport const TabItemValue = styled.span`\n color: var(${tokens.itemValueColor});\n\n font-family: var(${tokens.valueFontFamily}, var(${tokens.fontFamily}));\n font-size: var(${tokens.valueFontSize}, var(${tokens.fontSize}));\n font-style: var(${tokens.valueFontStyle}, var(${tokens.fontStyle}));\n font-weight: var(${tokens.valueFontWeight}, var(${tokens.fontWeight}));\n letter-spacing: var(${tokens.valueLetterSpacing}, var(${tokens.letterSpacing}));\n line-height: var(${tokens.valueLineHeight}, var(${tokens.lineHeight}));\n`;\n\nexport const RightContent = styled.div`\n display: flex;\n color: inherit;\n\n &:hover {\n color: inherit;\n }\n`;\n\nexport const LeftContent = styled.div`\n display: flex;\n color: inherit;\n\n &:hover {\n color: inherit;\n }\n`;\n"],"names":["base","StyledContent","styled","name","class","propsAsIs","TabItemValue","RightContent","LeftContent"],"mappings":";;AAMO,IAAMA,IAAI,GAiChB,WAAA;AAEM,IAAMC,aAAa,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAKlC,EAAA;AAEM,IAAMC,YAAY,gBAAGJ,MAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CASjC,EAAA;AAEM,IAAME,YAAY,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAOjC,EAAA;AAEM,IAAMG,WAAW,gBAAGN,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAOhC;;;;"}
@@ -0,0 +1,5 @@
1
+ .b1vnvg8i{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;box-sizing:border-box;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--plasma-tab-item-content-gap);padding:var(--plasma-tab-item-padding-orientation-vertical);-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative;}.b1vnvg8i::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma_private-outline-radius) + 0.063rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.b1vnvg8i.focus-visible:focus::before,.b1vnvg8i[data-focus-visible-added]::before{z-index:1;outline:none;box-shadow:0 0 0 0.063rem var(--plasma-tabs-outline-focus-color);}
2
+ .s4s0t81{display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0 var(--plasma-tab-item-content-padding-clear,var(--plasma-tab-item-content-padding));}
3
+ .tur46hh{color:var(--plasma-tab-item-value-color);font-family:var(--plasma-tab-item-value-font-family,var(--plasma-tab-item-font-family));font-size:var(--plasma-tab-item-value-font-size,var(--plasma-tab-item-font-size));font-style:var(--plasma-tab-item-value-font-style,var(--plasma-tab-item-font-style));font-weight:var(--plasma-tab-item-value-font-weight,var(--plasma-tab-item-font-weight));-webkit-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));-moz-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));-ms-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));line-height:var(--plasma-tab-item-value-lineheight,var(--plasma-tab-item-lineheight));}
4
+ .r1ms3p4x{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.r1ms3p4x:hover{color:inherit;}
5
+ .l1yz2xa4{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.l1yz2xa4:hover{color:inherit;}
@@ -34,9 +34,9 @@
34
34
  .Button_styles_1sopr3d_s1rjh7ra__8219590b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:var(--plasma-button-right-content-margin);-webkit-align-self:var(--plasma-button-right-content-align-self);-ms-flex-item-align:var(--plasma-button-right-content-align);align-self:var(--plasma-button-right-content-align-self);}
35
35
  .Button_styles_1sopr3d_b9ga1dj__8219590b{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);}a.Button_styles_1sopr3d_b9ga1dj__8219590b{-webkit-text-decoration:none;text-decoration:none;}.Button_styles_1sopr3d_b9ga1dj__8219590b.Button_styles_1sopr3d_b9ga1dj__8219590b.Button_styles_1sopr3d_buttonSquare__8219590b{width:var(--plasma-button-height);padding:0;}
36
36
 
37
- .Toast_styles_1v9oj7f_b1xqk743__c6e2219d{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma-button-width:1rem;}
38
- .Toast_styles_1v9oj7f_s1ajsqhx__c6e2219d{position:fixed;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);z-index:9901;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:0;top:var(--s1ajsqhx-0);bottom:var(--s1ajsqhx-1);}.Toast_styles_1v9oj7f_s1ajsqhx__c6e2219d.Toast_styles_1v9oj7f_toastShowed__c6e2219d{-webkit-animation:0.3s Toast_styles_1v9oj7f_showToastAnimationS1ajsqhx__c6e2219d ease-out forwards;animation:0.3s Toast_styles_1v9oj7f_showToastAnimationS1ajsqhx__c6e2219d ease-out forwards;}.Toast_styles_1v9oj7f_s1ajsqhx__c6e2219d.Toast_styles_1v9oj7f_toastHidden__c6e2219d{-webkit-animation:0.3s Toast_styles_1v9oj7f_hideToastAnimationS1ajsqhx__c6e2219d ease-out forwards;animation:0.3s Toast_styles_1v9oj7f_hideToastAnimationS1ajsqhx__c6e2219d ease-out forwards;}@-webkit-keyframes Toast_styles_1v9oj7f_showToastAnimationS1ajsqhx__c6e2219d{0%{-webkit-transform:var(--s1ajsqhx-2);-ms-transform:var(--s1ajsqhx-2);transform:var(--s1ajsqhx-2);opacity:0;}80%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:0.7;}100%{opacity:1;}}@keyframes Toast_styles_1v9oj7f_showToastAnimationS1ajsqhx__c6e2219d{0%{-webkit-transform:var(--s1ajsqhx-2);-ms-transform:var(--s1ajsqhx-2);transform:var(--s1ajsqhx-2);opacity:0;}80%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:0.7;}100%{opacity:1;}}@-webkit-keyframes Toast_styles_1v9oj7f_hideToastAnimationS1ajsqhx__c6e2219d{0%{opacity:1;}20%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:0.7;}100%{-webkit-transform:var(--s1ajsqhx-2);-ms-transform:var(--s1ajsqhx-2);transform:var(--s1ajsqhx-2);opacity:0;}}@keyframes Toast_styles_1v9oj7f_hideToastAnimationS1ajsqhx__c6e2219d{0%{opacity:1;}20%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:0.7;}100%{-webkit-transform:var(--s1ajsqhx-2);-ms-transform:var(--s1ajsqhx-2);transform:var(--s1ajsqhx-2);opacity:0;}}
39
- .Toast_styles_1v9oj7f_cb0tpdq__c6e2219d{height:1rem;--plasma_private-close-icon-margin:var(--plasma-toast-close-icon-margin);margin:var(--plasma_private-close-icon-margin);color:var(--plasma-toast-close-icon-color);}.Toast_styles_1v9oj7f_cb0tpdq__c6e2219d:hover{color:var(--plasma-toast-close-icon-color-on-hover);}
40
- .Toast_styles_1v9oj7f_segu2tf__c6e2219d.Toast_styles_1v9oj7f_segu2tf__c6e2219d.Toast_styles_1v9oj7f_toastFadeShowed__c6e2219d{-webkit-animation:0.3s Toast_styles_1v9oj7f_showFadeAnimationSegu2tf__c6e2219d ease-out forwards;animation:0.3s Toast_styles_1v9oj7f_showFadeAnimationSegu2tf__c6e2219d ease-out forwards;}.Toast_styles_1v9oj7f_segu2tf__c6e2219d.Toast_styles_1v9oj7f_segu2tf__c6e2219d.Toast_styles_1v9oj7f_toastFadeHidden__c6e2219d{-webkit-animation:0.3s Toast_styles_1v9oj7f_hideFadeAnimationSegu2tf__c6e2219d ease-out forwards;animation:0.3s Toast_styles_1v9oj7f_hideFadeAnimationSegu2tf__c6e2219d ease-out forwards;}@-webkit-keyframes Toast_styles_1v9oj7f_showFadeAnimationSegu2tf__c6e2219d{0%{opacity:0;}100%{opacity:1;}}@keyframes Toast_styles_1v9oj7f_showFadeAnimationSegu2tf__c6e2219d{0%{opacity:0;}100%{opacity:1;}}@-webkit-keyframes Toast_styles_1v9oj7f_hideFadeAnimationSegu2tf__c6e2219d{0%{opacity:1;}100%{opacity:0;}}@keyframes Toast_styles_1v9oj7f_hideFadeAnimationSegu2tf__c6e2219d{0%{opacity:1;}100%{opacity:0;}}
41
- .Toast_styles_1v9oj7f_s1bt6ppa__c6e2219d{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;--plasma_private-left-content-margin:var(--plasma-toast-left-content-margin);margin:var(--plasma_private-left-content-margin);}
37
+ .Toast_styles_1nei944_b1xqk743__24d4ce6e{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma-button-width:1rem;}
38
+ .Toast_styles_1nei944_s1ajsqhx__24d4ce6e{position:fixed;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);z-index:9901;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:0;top:var(--s1ajsqhx-0);bottom:var(--s1ajsqhx-1);}.Toast_styles_1nei944_s1ajsqhx__24d4ce6e.Toast_styles_1nei944_toastShowed__24d4ce6e{-webkit-animation:0.3s Toast_styles_1nei944_showToastAnimationS1ajsqhx__24d4ce6e ease-out forwards;animation:0.3s Toast_styles_1nei944_showToastAnimationS1ajsqhx__24d4ce6e ease-out forwards;}.Toast_styles_1nei944_s1ajsqhx__24d4ce6e.Toast_styles_1nei944_toastHidden__24d4ce6e{-webkit-animation:0.3s Toast_styles_1nei944_hideToastAnimationS1ajsqhx__24d4ce6e ease-out forwards;animation:0.3s Toast_styles_1nei944_hideToastAnimationS1ajsqhx__24d4ce6e ease-out forwards;}@-webkit-keyframes Toast_styles_1nei944_showToastAnimationS1ajsqhx__24d4ce6e{0%{-webkit-transform:var(--s1ajsqhx-2);-ms-transform:var(--s1ajsqhx-2);transform:var(--s1ajsqhx-2);opacity:0;}80%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:0.7;}100%{opacity:1;}}@keyframes Toast_styles_1nei944_showToastAnimationS1ajsqhx__24d4ce6e{0%{-webkit-transform:var(--s1ajsqhx-2);-ms-transform:var(--s1ajsqhx-2);transform:var(--s1ajsqhx-2);opacity:0;}80%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:0.7;}100%{opacity:1;}}@-webkit-keyframes Toast_styles_1nei944_hideToastAnimationS1ajsqhx__24d4ce6e{0%{opacity:1;}20%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:0.7;}100%{-webkit-transform:var(--s1ajsqhx-2);-ms-transform:var(--s1ajsqhx-2);transform:var(--s1ajsqhx-2);opacity:0;}}@keyframes Toast_styles_1nei944_hideToastAnimationS1ajsqhx__24d4ce6e{0%{opacity:1;}20%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:0.7;}100%{-webkit-transform:var(--s1ajsqhx-2);-ms-transform:var(--s1ajsqhx-2);transform:var(--s1ajsqhx-2);opacity:0;}}
39
+ .Toast_styles_1nei944_cb0tpdq__24d4ce6e{height:var(--plasma-toast-close-icon-button-size);--plasma_private-close-icon-margin:var(--plasma-toast-close-icon-margin);margin:var(--plasma_private-close-icon-margin);color:var(--plasma-toast-close-icon-color);}.Toast_styles_1nei944_cb0tpdq__24d4ce6e:hover{color:var(--plasma-toast-close-icon-color-on-hover);}
40
+ .Toast_styles_1nei944_segu2tf__24d4ce6e.Toast_styles_1nei944_segu2tf__24d4ce6e.Toast_styles_1nei944_toastFadeShowed__24d4ce6e{-webkit-animation:0.3s Toast_styles_1nei944_showFadeAnimationSegu2tf__24d4ce6e ease-out forwards;animation:0.3s Toast_styles_1nei944_showFadeAnimationSegu2tf__24d4ce6e ease-out forwards;}.Toast_styles_1nei944_segu2tf__24d4ce6e.Toast_styles_1nei944_segu2tf__24d4ce6e.Toast_styles_1nei944_toastFadeHidden__24d4ce6e{-webkit-animation:0.3s Toast_styles_1nei944_hideFadeAnimationSegu2tf__24d4ce6e ease-out forwards;animation:0.3s Toast_styles_1nei944_hideFadeAnimationSegu2tf__24d4ce6e ease-out forwards;}@-webkit-keyframes Toast_styles_1nei944_showFadeAnimationSegu2tf__24d4ce6e{0%{opacity:0;}100%{opacity:1;}}@keyframes Toast_styles_1nei944_showFadeAnimationSegu2tf__24d4ce6e{0%{opacity:0;}100%{opacity:1;}}@-webkit-keyframes Toast_styles_1nei944_hideFadeAnimationSegu2tf__24d4ce6e{0%{opacity:1;}100%{opacity:0;}}@keyframes Toast_styles_1nei944_hideFadeAnimationSegu2tf__24d4ce6e{0%{opacity:1;}100%{opacity:0;}}
41
+ .Toast_styles_1nei944_s1bt6ppa__24d4ce6e{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;--plasma_private-left-content-margin:var(--plasma-toast-left-content-margin);margin:var(--plasma_private-left-content-margin);}
42
42
 
@@ -2,14 +2,15 @@ import { objectWithoutProperties as _objectWithoutProperties, extends as _extend
2
2
  import React, { forwardRef } from 'react';
3
3
  import { cx } from '../../utils/index.js';
4
4
  import { IconCross } from '../_Icon/Icons/IconCross.js';
5
- import { classes } from './Toast.tokens.js';
5
+ import { IconCrossThin } from '../_Icon/Icons/IconCrossThin.js';
6
+ import { classes, tokens } from './Toast.tokens.js';
6
7
  import { base as base$1 } from './variations/_view/base.js';
7
8
  import { base as base$2 } from './variations/_size/base.js';
8
9
  import { base as base$3 } from './variations/_pilled/base.js';
10
+ import { base as base$4 } from './variations/_closeIconType/base.js';
9
11
  import { StyledContentLeft, StyledContent, CloseIconWrapper, base } from './Toast.styles.js';
10
12
 
11
- var _IconCross;
12
- var _excluded = ["role", "width", "text", "hasClose", "contentLeft", "view", "size", "pilled", "className", "style", "onCloseButtonClick"];
13
+ var _excluded = ["role", "width", "text", "hasClose", "contentLeft", "view", "size", "pilled", "className", "style", "closeIconType", "onCloseButtonClick"];
13
14
 
14
15
  // TODO https://github.com/salute-developers/plasma/issues/1015
15
16
  var toastRoot = function toastRoot(Root) {
@@ -25,6 +26,7 @@ var toastRoot = function toastRoot(Root) {
25
26
  pilled = props.pilled,
26
27
  className = props.className,
27
28
  style = props.style,
29
+ closeIconType = props.closeIconType,
28
30
  onCloseButtonClick = props.onCloseButtonClick,
29
31
  rest = _objectWithoutProperties(props, _excluded);
30
32
  var pilledClass = pilled ? classes.toastPilled : undefined;
@@ -40,6 +42,7 @@ var toastRoot = function toastRoot(Root) {
40
42
  view: view,
41
43
  size: size,
42
44
  pilled: pilled,
45
+ closeIconType: closeIconType,
43
46
  className: cx(pilledClass, className),
44
47
  style: _objectSpread2({
45
48
  width: width ? fixedWidth : 'unset'
@@ -54,10 +57,15 @@ var toastRoot = function toastRoot(Root) {
54
57
  onClick: onCloseButtonClick,
55
58
  className: cx(classes.closeIcon),
56
59
  stretching: "fixed"
57
- }, _IconCross || (_IconCross = /*#__PURE__*/React.createElement(IconCross, {
60
+ }, closeIconType === 'default' ? /*#__PURE__*/React.createElement(IconCross, {
58
61
  size: "s",
62
+ sizeCustomProperty: tokens.closeIconSize,
59
63
  color: "inherit"
60
- }))));
64
+ }) : /*#__PURE__*/React.createElement(IconCrossThin, {
65
+ size: "s",
66
+ sizeCustomProperty: tokens.closeIconSize,
67
+ color: "inherit"
68
+ })));
61
69
  });
62
70
  };
63
71
  var toastConfig = {
@@ -75,11 +83,15 @@ var toastConfig = {
75
83
  pilled: {
76
84
  css: base$3,
77
85
  attrs: true
86
+ },
87
+ closeIconType: {
88
+ css: base$4
78
89
  }
79
90
  },
80
91
  defaults: {
81
92
  view: 'primary',
82
- size: 'm'
93
+ size: 'm',
94
+ closeIconType: 'default'
83
95
  }
84
96
  };
85
97
 
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.js","sources":["../../../src/components/Toast/Toast.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport type { RootProps } from '../../engines';\nimport { cx } from '../../utils';\nimport { IconCross } from '../_Icon/Icons/IconCross';\n\nimport { classes } from './Toast.tokens';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as pilledCSS } from './variations/_pilled/base';\nimport { ToastProps } from './Toast.types';\nimport { CloseIconWrapper, StyledContent, StyledContentLeft, base } from './Toast.styles';\n\n// TODO https://github.com/salute-developers/plasma/issues/1015\nexport const toastRoot = (Root: RootProps<HTMLDivElement, ToastProps>) =>\n forwardRef<HTMLDivElement, ToastProps>((props, ref) => {\n const {\n role = 'status',\n width,\n text,\n hasClose,\n contentLeft,\n view,\n size,\n pilled,\n className,\n style,\n onCloseButtonClick,\n ...rest\n } = props;\n\n const pilledClass = pilled ? classes.toastPilled : undefined;\n const fixedWidth = !Number.isNaN(Number(width)) ? `${width}%` : width;\n\n let ariaLive: 'assertive' | 'polite' = 'polite';\n let ariaAtomic = false;\n\n if (role === 'alert') {\n ariaLive = 'assertive';\n } else if (role === 'status') {\n ariaAtomic = true;\n }\n\n return (\n <Root\n view={view}\n size={size}\n pilled={pilled}\n className={cx(pilledClass, className)}\n style={{ width: width ? fixedWidth : 'unset', ...style }}\n ref={ref}\n role={role}\n aria-live={ariaLive}\n aria-atomic={ariaAtomic}\n {...rest}\n >\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n <StyledContent>{text}</StyledContent>\n {hasClose && (\n <CloseIconWrapper\n view=\"clear\"\n size=\"s\"\n onClick={onCloseButtonClick}\n className={cx(classes.closeIcon)}\n stretching=\"fixed\"\n >\n <IconCross size=\"s\" color=\"inherit\" />\n </CloseIconWrapper>\n )}\n </Root>\n );\n });\n\nexport const toastConfig = {\n name: 'Toast',\n tag: 'div',\n layout: toastRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n pilled: {\n css: pilledCSS,\n attrs: true,\n },\n },\n defaults: {\n view: 'primary',\n size: 'm',\n },\n};\n"],"names":["toastRoot","Root","forwardRef","props","ref","_props$role","role","width","text","hasClose","contentLeft","view","size","pilled","className","style","onCloseButtonClick","rest","_objectWithoutProperties","_excluded","pilledClass","classes","toastPilled","undefined","fixedWidth","Number","isNaN","concat","ariaLive","ariaAtomic","React","createElement","_extends","cx","_objectSpread","StyledContentLeft","StyledContent","CloseIconWrapper","onClick","closeIcon","stretching","_IconCross","IconCross","color","toastConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","pilledCSS","attrs","defaults"],"mappings":";;;;;;;;;;;;;AAaA;IACaA,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAA2C,EAAA;AAAA,EAAA,oBACjEC,UAAU,CAA6B,UAACC,KAAK,EAAEC,GAAG,EAAK;AACnD,IAAA,IAAAC,WAAA,GAaIF,KAAK,CAZLG,IAAI;AAAJA,MAAAA,IAAI,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,WAAA;MACfE,KAAK,GAWLJ,KAAK,CAXLI,KAAK;MACLC,IAAI,GAUJL,KAAK,CAVLK,IAAI;MACJC,QAAQ,GASRN,KAAK,CATLM,QAAQ;MACRC,WAAW,GAQXP,KAAK,CARLO,WAAW;MACXC,IAAI,GAOJR,KAAK,CAPLQ,IAAI;MACJC,IAAI,GAMJT,KAAK,CANLS,IAAI;MACJC,MAAM,GAKNV,KAAK,CALLU,MAAM;MACNC,SAAS,GAITX,KAAK,CAJLW,SAAS;MACTC,KAAK,GAGLZ,KAAK,CAHLY,KAAK;MACLC,kBAAkB,GAElBb,K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A,CAACK,aAAa,EAAE5B,IAAAA,EAAAA,IAAoB,CAAC,EACpCC,QAAQ,iBACLqB,KAAA,CAAAC,aAAA,CAACM,gBAAgB,EAAA;AACb1B,MAAAA,IAAI,EAAC,OAAO;AACZC,MAAAA,IAAI,EAAC,GAAG;AACR0B,MAAAA,OAAO,EAAEtB,kBAAmB;AAC5BF,MAAAA,SAAS,EAAEmB,EAAE,CAACZ,OAAO,CAACkB,SAAS,CAAE;AACjCC,MAAAA,UAAU,EAAC,OAAA;KAAOC,EAAAA,UAAA,KAAAA,UAAA,gBAElBX,KAAA,CAAAC,aAAA,CAACW,SAAS,EAAA;AAAC9B,MAAAA,IAAI,EAAC,GAAG;AAAC+B,MAAAA,KAAK,EAAC,SAAA;KAAW,CAAC,CACxB,CAEpB,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAMC,WAAW,GAAG;AACvBC,EAAAA,IAAI,EAAE,OAAO;AACbC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE/C,SAAS;AACjBgD,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,UAAU,EAAE;AACRtC,IAAAA,IAAI,EAAE;AACFuC,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACDvC,IAAAA,IAAI,EAAE;AACFsC,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACDvC,IAAAA,MAAM,EAAE;AACJqC,MAAAA,GAAG,EAAEG,MAAS;AACdC,MAAAA,KAAK,EAAE,IAAA;AACX,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACN5C,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"Toast.js","sources":["../../../src/components/Toast/Toast.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport type { RootProps } from '../../engines';\nimport { cx } from '../../utils';\nimport { IconCross } from '../_Icon/Icons/IconCross';\nimport { IconCrossThin } from '../_Icon/Icons/IconCrossThin';\n\nimport { classes, tokens } from './Toast.tokens';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as pilledCSS } from './variations/_pilled/base';\nimport { base as closeIconTypeCSS } from './variations/_closeIconType/base';\nimport { ToastProps } from './Toast.types';\nimport { CloseIconWrapper, StyledContent, StyledContentLeft, base } from './Toast.styles';\n\n// TODO https://github.com/salute-developers/plasma/issues/1015\nexport const toastRoot = (Root: RootProps<HTMLDivElement, ToastProps>) =>\n forwardRef<HTMLDivElement, ToastProps>((props, ref) => {\n const {\n role = 'status',\n width,\n text,\n hasClose,\n contentLeft,\n view,\n size,\n pilled,\n className,\n style,\n closeIconType,\n onCloseButtonClick,\n ...rest\n } = props;\n\n const pilledClass = pilled ? classes.toastPilled : undefined;\n const fixedWidth = !Number.isNaN(Number(width)) ? `${width}%` : width;\n\n let ariaLive: 'assertive' | 'polite' = 'polite';\n let ariaAtomic = false;\n\n if (role === 'alert') {\n ariaLive = 'assertive';\n } else if (role === 'status') {\n ariaAtomic = true;\n }\n\n return (\n <Root\n view={view}\n size={size}\n pilled={pilled}\n closeIconType={closeIconType}\n className={cx(pilledClass, className)}\n style={{ width: width ? fixedWidth : 'unset', ...style }}\n ref={ref}\n role={role}\n aria-live={ariaLive}\n aria-atomic={ariaAtomic}\n {...rest}\n >\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n <StyledContent>{text}</StyledContent>\n {hasClose && (\n <CloseIconWrapper\n view=\"clear\"\n size=\"s\"\n onClick={onCloseButtonClick}\n className={cx(classes.closeIcon)}\n stretching=\"fixed\"\n >\n {closeIconType === 'default' ? (\n <IconCross size=\"s\" sizeCustomProperty={tokens.closeIconSize} color=\"inherit\" />\n ) : (\n <IconCrossThin size=\"s\" sizeCustomProperty={tokens.closeIconSize} color=\"inherit\" />\n )}\n </CloseIconWrapper>\n )}\n </Root>\n );\n });\n\nexport const toastConfig = {\n name: 'Toast',\n tag: 'div',\n layout: toastRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n pilled: {\n css: pilledCSS,\n attrs: true,\n },\n closeIconType: {\n css: closeIconTypeCSS,\n },\n },\n defaults: {\n view: 'primary',\n size: 'm',\n closeIconType: 'default',\n },\n};\n"],"names":["toastRoot","Root","forwardRef","props","ref","_props$role","role","width","text","hasClose","contentLeft","view","size","pilled","className","style","closeIconType","onCloseButtonClick","rest","_objectWithoutProperties","_excluded","pilledClass","classes","toastPilled","undefined","fixedWidth","Number","isNaN","concat","ariaLive","ariaAtomic","React","createElement","_extends","cx","_objectSpread","StyledContentLeft","StyledContent","CloseIconWrapper","onClick","closeIcon","stretching","IconCross","sizeCustomProperty","tokens","closeIconSize","color","IconCrossThin","toastConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","pilledCSS","attrs","closeIconTypeCSS","defaults"],"mappings":";;;;;;;;;;;;;;AAeA;IACaA,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAA2C,EAAA;AAAA,EAAA,oBACjEC,UAAU,CAA6B,UAACC,KAAK,EAAEC,GAAG,EAAK;AACnD,IAAA,IAAAC,WAAA,GAcIF,KAAK,CAbLG,IAAI;AAAJA,MAAAA,IAAI,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,WAAA;MACfE,KAAK,GAYLJ,KAAK,CAZLI,KAAK;MACLC,IAAI,GAWJL,KAAK,CAXLK,IAAI;MACJC,QAAQ,GAURN,KAAK,CAVLM,QAAQ;MACRC,WAAW,GASXP,KAAK,CATLO,WAAW;MACXC,IAAI,GAQJR,KAAK,CARLQ,IAAI;MACJC,IAAI,GAOJT,KAAK,CAPLS,IAAI;MACJC,MAAM,GAMNV,KAAK,CANLU,MAAM;MACNC,SAAS,GAKTX,KAAK,CALLW,SAAS;MACTC,KAAK,GAILZ,KAAK,CAJLY,KAAK;MACLC,aAAa,GAGbb,KAAK,CAHLa,aAA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,EAAE;AACXsC,MAAAA,GAAG,EAAEK,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNjD,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTI,IAAAA,aAAa,EAAE,SAAA;AACnB,GAAA;AACJ;;;;"}
@@ -1,4 +1,4 @@
1
- import './Toast.styles_1v9oj7f.css';
1
+ import './Toast.styles_1nei944.css';
2
2
  import { styled } from '@linaria/react';
3
3
  import { Button } from './utils.js';
4
4
  import { Overlay } from '../Overlay/Overlay.js';
@@ -44,10 +44,10 @@ var CloseIconWrapper = /*#__PURE__*/styled(_exp9())({
44
44
  "class": "cb0tpdq",
45
45
  propsAsIs: true
46
46
  });
47
- var _exp13 = function _exp13() {
47
+ var _exp14 = function _exp14() {
48
48
  return Overlay;
49
49
  };
50
- var StyledOverlay = /*#__PURE__*/styled(_exp13())({
50
+ var StyledOverlay = /*#__PURE__*/styled(_exp14())({
51
51
  name: "StyledOverlay",
52
52
  "class": "segu2tf",
53
53
  propsAsIs: true
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.styles.js","sources":["../../../src/components/Toast/Toast.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\nimport { styled } from '@linaria/react';\n\nimport { Overlay } from '../Overlay';\nimport { buttonTokens } from '../Button';\n\nimport { Button, TOAST_Z_INDEX } from './utils';\nimport { classes, tokens } from './Toast.tokens';\n\nexport const base = css`\n display: inline-flex;\n align-items: center;\n\n flex-shrink: 0;\n\n user-select: none;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n ${buttonTokens.buttonWidth}: 1rem;\n`;\n\nexport const StyledRoot = styled.div<{ position: string; isVisible: boolean; offset?: number }>`\n position: fixed;\n left: 50%;\n transform: translateX(-50%);\n z-index: ${TOAST_Z_INDEX};\n\n display: flex;\n width: 0;\n\n top: ${({ position, offset = 0 }) => (position === 'top' ? `${Number(offset) + 5}rem` : 'unset')};\n bottom: ${({ position, offset = 0 }) => (position === 'bottom' ? `${Number(offset) + 5}rem` : 'unset')};\n\n &.${String(classes.toastShowed)} {\n animation: 0.3s showToastAnimation ease-out forwards;\n }\n\n &.${String(classes.toastHidden)} {\n animation: 0.3s hideToastAnimation ease-out forwards;\n }\n\n @keyframes showToastAnimation {\n 0% {\n transform: ${({ position }) => `translate(-50%, ${position === 'top' ? '-' : ''}5rem)`};\n opacity: 0;\n }\n\n 80% {\n transform: translate(-50%, 0);\n opacity: 0.7;\n }\n\n 100% {\n opacity: 1;\n }\n }\n\n @keyframes hideToastAnimation {\n 0% {\n opacity: 1;\n }\n\n 20% {\n transform: translate(-50%, 0);\n opacity: 0.7;\n }\n\n 100% {\n transform: ${({ position }) => `translate(-50%, ${position === 'top' ? '-' : ''}5rem)`};\n opacity: 0;\n }\n }\n`;\n\nexport const CloseIconWrapper = styled(Button)`\n height: 1rem;\n --plasma_private-close-icon-margin: var(${tokens.closeIconMargin});\n margin: var(--plasma_private-close-icon-margin);\n\n color: var(${tokens.closeIconColor});\n\n :hover {\n color: var(${tokens.closeIconColorOnHover});\n }\n`;\n\nexport const StyledOverlay = styled(Overlay)`\n &&.${String(classes.toastFadeShowed)} {\n animation: 0.3s showFadeAnimation ease-out forwards;\n }\n\n &&.${String(classes.toastFadeHidden)} {\n animation: 0.3s hideFadeAnimation ease-out forwards;\n }\n\n @keyframes showFadeAnimation {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n }\n\n @keyframes hideFadeAnimation {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n }\n`;\n\nexport const StyledContentLeft = styled.div`\n display: flex;\n --plasma_private-left-content-margin: var(${tokens.leftContentMargin});\n margin: var(--plasma_private-left-content-margin);\n`;\n\nexport const StyledContent = styled.div``;\n"],"names":["base","_exp3","_ref","position","_ref$offset","offset","concat","Number","_exp4","_ref2","_ref2$offset","_exp8","_ref3","StyledRoot","styled","name","class","propsAsIs","vars","_exp9","Button","CloseIconWr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,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAM;;;;"}
1
+ {"version":3,"file":"Toast.styles.js","sources":["../../../src/components/Toast/Toast.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\nimport { styled } from '@linaria/react';\n\nimport { Overlay } from '../Overlay';\nimport { buttonTokens } from '../Button';\n\nimport { Button, TOAST_Z_INDEX } from './utils';\nimport { classes, tokens } from './Toast.tokens';\n\nexport const base = css`\n display: inline-flex;\n align-items: center;\n\n flex-shrink: 0;\n\n user-select: none;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n ${buttonTokens.buttonWidth}: 1rem;\n`;\n\nexport const StyledRoot = styled.div<{ position: string; isVisible: boolean; offset?: number }>`\n position: fixed;\n left: 50%;\n transform: translateX(-50%);\n z-index: ${TOAST_Z_INDEX};\n\n display: flex;\n width: 0;\n\n top: ${({ position, offset = 0 }) => (position === 'top' ? `${Number(offset) + 5}rem` : 'unset')};\n bottom: ${({ position, offset = 0 }) => (position === 'bottom' ? `${Number(offset) + 5}rem` : 'unset')};\n\n &.${String(classes.toastShowed)} {\n animation: 0.3s showToastAnimation ease-out forwards;\n }\n\n &.${String(classes.toastHidden)} {\n animation: 0.3s hideToastAnimation ease-out forwards;\n }\n\n @keyframes showToastAnimation {\n 0% {\n transform: ${({ position }) => `translate(-50%, ${position === 'top' ? '-' : ''}5rem)`};\n opacity: 0;\n }\n\n 80% {\n transform: translate(-50%, 0);\n opacity: 0.7;\n }\n\n 100% {\n opacity: 1;\n }\n }\n\n @keyframes hideToastAnimation {\n 0% {\n opacity: 1;\n }\n\n 20% {\n transform: translate(-50%, 0);\n opacity: 0.7;\n }\n\n 100% {\n transform: ${({ position }) => `translate(-50%, ${position === 'top' ? '-' : ''}5rem)`};\n opacity: 0;\n }\n }\n`;\n\nexport const CloseIconWrapper = styled(Button)`\n height: var(${tokens.closeIconButtonSize});\n --plasma_private-close-icon-margin: var(${tokens.closeIconMargin});\n margin: var(--plasma_private-close-icon-margin);\n\n color: var(${tokens.closeIconColor});\n\n :hover {\n color: var(${tokens.closeIconColorOnHover});\n }\n`;\n\nexport const StyledOverlay = styled(Overlay)`\n &&.${String(classes.toastFadeShowed)} {\n animation: 0.3s showFadeAnimation ease-out forwards;\n }\n\n &&.${String(classes.toastFadeHidden)} {\n animation: 0.3s hideFadeAnimation ease-out forwards;\n }\n\n @keyframes showFadeAnimation {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n }\n\n @keyframes hideFadeAnimation {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n }\n`;\n\nexport const StyledContentLeft = styled.div`\n display: flex;\n --plasma_private-left-content-margin: var(${tokens.leftContentMargin});\n margin: var(--plasma_private-left-content-margin);\n`;\n\nexport const StyledContent = styled.div``;\n"],"names":["base","_exp3","_ref","position","_ref$offset","offset","concat","Number","_exp4","_ref2","_ref2$offset","_exp8","_ref3","StyledRoot","styled","name","class","propsAsIs","vars","_exp9","Button","CloseIconWrapper","_exp14","Overlay","StyledOverlay","StyledContentLeft","StyledContent"],"mappings":";;;;AASO,IAAMA,IAAI,GAUhB,WAAA;AAAC,IAAAC,KAAA,GAlBgBA,SAkBhBA,KAAAA,GAAA;AAAA,EAAA,OAWS,UAAAC,IAAA,EAAA;AAAA,IAAA,IAAGC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;MAAAC,WAAA,GAAAF,IAAA,CAAEG,MAAM;AAANA,MAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,CAAA,GAAAA,WAAA,CAAA;AAAA,IAAA,OAASD,QAAQ,KAAK,KAAK,GAAA,EAAA,CAAAG,MAAA,CAAMC,MAAM,CAACF,MAAM,CAAC,GAAG,CAAE,WAAO,OAAQ,CAAA;AAAA,GAAA,CAAA;AAAA,CAAA,CAAA;AAAA,IAAAG,KAAA,GA7BlFA,SA6BkFA,KAAAA,GAAA;AAAA,EAAA,OACtF,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;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAUrC,EAAA;AAAC,IAAAK,MAAA,GAnFgBA,SAmFhBA,MAAAA,GAAA;AAAA,EAAA,OAEkCC,OAAO,CAAA;AAAA,CAAA,CAAA;AAApC,IAAMC,aAAa,gBAAGV,MAAM,CAAAQ,MAAA,EAAA,CAAA,CAAA;AAAAP,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CA4BlC,EAAA;AAEM,IAAMQ,iBAAiB,gBAAGX,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAItC,EAAA;AAEM,IAAMS,aAAa,gBAAGZ,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAM;;;;"}
@@ -1,6 +1,6 @@
1
1
  .b1xqk743{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma-button-width:1rem;}
2
2
  .s1ajsqhx{position:fixed;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);z-index:9901;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:0;top:var(--s1ajsqhx-0);bottom:var(--s1ajsqhx-1);}.s1ajsqhx.toast-showed{-webkit-animation:0.3s showToastAnimation-s1ajsqhx ease-out forwards;animation:0.3s showToastAnimation-s1ajsqhx ease-out forwards;}.s1ajsqhx.toast-hidden{-webkit-animation:0.3s hideToastAnimation-s1ajsqhx ease-out forwards;animation:0.3s hideToastAnimation-s1ajsqhx ease-out forwards;}@-webkit-keyframes showToastAnimation-s1ajsqhx{0%{-webkit-transform:var(--s1ajsqhx-2);-ms-transform:var(--s1ajsqhx-2);transform:var(--s1ajsqhx-2);opacity:0;}80%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:0.7;}100%{opacity:1;}}@keyframes showToastAnimation-s1ajsqhx{0%{-webkit-transform:var(--s1ajsqhx-2);-ms-transform:var(--s1ajsqhx-2);transform:var(--s1ajsqhx-2);opacity:0;}80%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:0.7;}100%{opacity:1;}}@-webkit-keyframes hideToastAnimation-s1ajsqhx{0%{opacity:1;}20%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:0.7;}100%{-webkit-transform:var(--s1ajsqhx-2);-ms-transform:var(--s1ajsqhx-2);transform:var(--s1ajsqhx-2);opacity:0;}}@keyframes hideToastAnimation-s1ajsqhx{0%{opacity:1;}20%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:0.7;}100%{-webkit-transform:var(--s1ajsqhx-2);-ms-transform:var(--s1ajsqhx-2);transform:var(--s1ajsqhx-2);opacity:0;}}
3
- .cb0tpdq{height:1rem;--plasma_private-close-icon-margin:var(--plasma-toast-close-icon-margin);margin:var(--plasma_private-close-icon-margin);color:var(--plasma-toast-close-icon-color);}.cb0tpdq:hover{color:var(--plasma-toast-close-icon-color-on-hover);}
3
+ .cb0tpdq{height:var(--plasma-toast-close-icon-button-size);--plasma_private-close-icon-margin:var(--plasma-toast-close-icon-margin);margin:var(--plasma_private-close-icon-margin);color:var(--plasma-toast-close-icon-color);}.cb0tpdq:hover{color:var(--plasma-toast-close-icon-color-on-hover);}
4
4
  .segu2tf.segu2tf.toast-fade-showed{-webkit-animation:0.3s showFadeAnimation-segu2tf ease-out forwards;animation:0.3s showFadeAnimation-segu2tf ease-out forwards;}.segu2tf.segu2tf.toast-fade-hidden{-webkit-animation:0.3s hideFadeAnimation-segu2tf ease-out forwards;animation:0.3s hideFadeAnimation-segu2tf ease-out forwards;}@-webkit-keyframes showFadeAnimation-segu2tf{0%{opacity:0;}100%{opacity:1;}}@keyframes showFadeAnimation-segu2tf{0%{opacity:0;}100%{opacity:1;}}@-webkit-keyframes hideFadeAnimation-segu2tf{0%{opacity:1;}100%{opacity:0;}}@keyframes hideFadeAnimation-segu2tf{0%{opacity:1;}100%{opacity:0;}}
5
5
  .s1bt6ppa{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;--plasma_private-left-content-margin:var(--plasma-toast-left-content-margin);margin:var(--plasma_private-left-content-margin);}
6
6
 
@@ -22,7 +22,9 @@ var tokens = {
22
22
  leftContentMargin: '--plasma-toast-left-content-margin',
23
23
  closeIconMargin: '--plasma-toast-close-icon-margin',
24
24
  closeIconColor: '--plasma-toast-close-icon-color',
25
- closeIconColorOnHover: '--plasma-toast-close-icon-color-on-hover'
25
+ closeIconColorOnHover: '--plasma-toast-close-icon-color-on-hover',
26
+ closeIconSize: '--plasma-toast-close-icon-size',
27
+ closeIconButtonSize: '--plasma-toast-close-icon-button-size'
26
28
  };
27
29
 
28
30
  export { classes, tokens };
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.tokens.js","sources":["../../../src/components/Toast/Toast.tokens.ts"],"sourcesContent":["export const classes = {\n closeIcon: 'toast-close-icon',\n toastPilled: 'toast-pilled',\n toastShowed: 'toast-showed',\n toastHidden: 'toast-hidden',\n toastFadeShowed: 'toast-fade-showed',\n toastFadeHidden: 'toast-fade-hidden',\n};\n\nexport const tokens = {\n background: '--plasma-toast-background',\n color: '--plasma-toast-color',\n padding: '--plasma-toast-padding',\n borderRadius: '--plasma-toast-border-radius',\n maxWidth: '--plasma-toast-max-width',\n\n fontFamily: '--plasma-toast-font-family',\n fontSize: '--plasma-toast-font-size',\n fontStyle: '--plasma-toast-font-style',\n fontWeight: '--plasma-toast-font-weight',\n letterSpacing: '--plasma-toast-letter-spacing',\n lineHeight: '--plasma-toast-lineheight',\n\n pilledBorderRadius: '--plasma-toast-pilled-border-radius',\n\n leftContentMargin: '--plasma-toast-left-content-margin',\n\n closeIconMargin: '--plasma-toast-close-icon-margin',\n closeIconColor: '--plasma-toast-close-icon-color',\n closeIconColorOnHover: '--plasma-toast-close-icon-color-on-hover',\n};\n"],"names":["classes","closeIcon","toastPilled","toastShowed","toastHidden","toastFadeShowed","toastFadeHidden","tokens","background","color","padding","borderRadius","maxWidth","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","pilledBorderRadius","leftContentMargin","closeIconMargin","closeIconColor","closeIconColorOnHover"],"mappings":"AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,SAAS,EAAE,kBAAkB;AAC7BC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,eAAe,EAAE,mBAAmB;AACpCC,EAAAA,eAAe,EAAE,mBAAA;AACrB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,2BAA2B;AACvCC,EAAAA,KAAK,EAAE,sBAAsB;AAC7BC,EAAAA,OAAO,EAAE,wBAAwB;AACjCC,EAAAA,YAAY,EAAE,8BAA8B;AAC5CC,EAAAA,QAAQ,EAAE,0BAA0B;AAEpCC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,QAAQ,EAAE,0BAA0B;AACpCC,EAAAA,SAAS,EAAE,2BAA2B;AACtCC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,aAAa,EAAE,+BAA+B;AAC9CC,EAAAA,UAAU,EAAE,2BAA2B;AAEvCC,EAAAA,kBAAkB,EAAE,qCAAqC;AAEzDC,EAAAA,iBAAiB,EAAE,oCAAoC;AAEvDC,EAAAA,eAAe,EAAE,kCAAkC;AACnDC,EAAAA,cAAc,EAAE,iCAAiC;AACjDC,EAAAA,qBAAqB,EAAE,0CAAA;AAC3B;;;;"}
1
+ {"version":3,"file":"Toast.tokens.js","sources":["../../../src/components/Toast/Toast.tokens.ts"],"sourcesContent":["export const classes = {\n closeIcon: 'toast-close-icon',\n toastPilled: 'toast-pilled',\n toastShowed: 'toast-showed',\n toastHidden: 'toast-hidden',\n toastFadeShowed: 'toast-fade-showed',\n toastFadeHidden: 'toast-fade-hidden',\n};\n\nexport const tokens = {\n background: '--plasma-toast-background',\n color: '--plasma-toast-color',\n padding: '--plasma-toast-padding',\n borderRadius: '--plasma-toast-border-radius',\n maxWidth: '--plasma-toast-max-width',\n\n fontFamily: '--plasma-toast-font-family',\n fontSize: '--plasma-toast-font-size',\n fontStyle: '--plasma-toast-font-style',\n fontWeight: '--plasma-toast-font-weight',\n letterSpacing: '--plasma-toast-letter-spacing',\n lineHeight: '--plasma-toast-lineheight',\n\n pilledBorderRadius: '--plasma-toast-pilled-border-radius',\n\n leftContentMargin: '--plasma-toast-left-content-margin',\n\n closeIconMargin: '--plasma-toast-close-icon-margin',\n closeIconColor: '--plasma-toast-close-icon-color',\n closeIconColorOnHover: '--plasma-toast-close-icon-color-on-hover',\n closeIconSize: '--plasma-toast-close-icon-size',\n closeIconButtonSize: '--plasma-toast-close-icon-button-size',\n};\n"],"names":["classes","closeIcon","toastPilled","toastShowed","toastHidden","toastFadeShowed","toastFadeHidden","tokens","background","color","padding","borderRadius","maxWidth","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","pilledBorderRadius","leftContentMargin","closeIconMargin","closeIconColor","closeIconColorOnHover","closeIconSize","closeIconButtonSize"],"mappings":"AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,SAAS,EAAE,kBAAkB;AAC7BC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,eAAe,EAAE,mBAAmB;AACpCC,EAAAA,eAAe,EAAE,mBAAA;AACrB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,2BAA2B;AACvCC,EAAAA,KAAK,EAAE,sBAAsB;AAC7BC,EAAAA,OAAO,EAAE,wBAAwB;AACjCC,EAAAA,YAAY,EAAE,8BAA8B;AAC5CC,EAAAA,QAAQ,EAAE,0BAA0B;AAEpCC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,QAAQ,EAAE,0BAA0B;AACpCC,EAAAA,SAAS,EAAE,2BAA2B;AACtCC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,aAAa,EAAE,+BAA+B;AAC9CC,EAAAA,UAAU,EAAE,2BAA2B;AAEvCC,EAAAA,kBAAkB,EAAE,qCAAqC;AAEzDC,EAAAA,iBAAiB,EAAE,oCAAoC;AAEvDC,EAAAA,eAAe,EAAE,kCAAkC;AACnDC,EAAAA,cAAc,EAAE,iCAAiC;AACjDC,EAAAA,qBAAqB,EAAE,0CAA0C;AACjEC,EAAAA,aAAa,EAAE,gCAAgC;AAC/CC,EAAAA,mBAAmB,EAAE,uCAAA;AACzB;;;;"}