@salutejs/plasma-new-hope 0.175.1-canary.1497.11552145733.0 → 0.175.1-canary.1506.11553215359.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (465) 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_1ye9068.css} +1 -1
  7. package/cjs/components/Calendar/Calendar.tokens.js +3 -0
  8. package/cjs/components/Calendar/Calendar.tokens.js.map +1 -1
  9. package/cjs/components/Calendar/CalendarBase/CalendarBase.css +11 -10
  10. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  11. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  12. package/{es/components/Calendar/CalendarBase/CalendarBase.styles_1m6uih1.css → cjs/components/Calendar/CalendarBase/CalendarBase.styles_ni8729.css} +1 -1
  13. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +11 -10
  14. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +9 -8
  15. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -4
  16. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  17. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +11 -1
  18. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  19. package/{es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1jfelqf.css → cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1xijs8w.css} +1 -0
  20. package/cjs/components/Combobox/ComboboxNew/Combobox.css +12 -12
  21. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +10 -10
  22. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  23. package/{es/components/Combobox/ComboboxNew/Combobox.styles_1s09ifw.css → cjs/components/Combobox/ComboboxNew/Combobox.styles_1nqrvms.css} +1 -1
  24. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +5 -1
  25. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  26. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
  27. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +12 -12
  28. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +2 -1
  29. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  30. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +21 -7
  31. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  32. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/{Item.styles_y71664.css → Item.styles_1njzasn.css} +3 -3
  33. package/cjs/components/Combobox/ComboboxOld/Combobox.css +14 -28
  34. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +18 -32
  35. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +18 -32
  36. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +18 -32
  37. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +18 -32
  38. package/cjs/components/DatePicker/DatePicker.tokens.js +5 -0
  39. package/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -1
  40. package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
  41. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  42. package/cjs/components/DatePicker/DatePickerBase.styles_1x090si.css +2 -0
  43. package/cjs/components/DatePicker/RangeDate/RangeDate.css +15 -14
  44. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +13 -12
  45. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
  46. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1i6gpss.css +2 -0
  47. package/cjs/components/DatePicker/SingleDate/SingleDate.css +15 -14
  48. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  49. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  50. package/{es/components/DatePicker/SingleDate/SingleDate.styles_1rrq00l.css → cjs/components/DatePicker/SingleDate/SingleDate.styles_e72b5o.css} +1 -1
  51. package/cjs/components/Dropdown/Dropdown.css +16 -30
  52. package/cjs/components/Dropdown/Dropdown.js +37 -60
  53. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  54. package/cjs/components/Dropdown/Dropdown.styles.js +26 -14
  55. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  56. package/cjs/components/Dropdown/Dropdown.styles_zvi9m3.css +3 -0
  57. package/cjs/components/Dropdown/Dropdown.tokens.js +3 -24
  58. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  59. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +51 -17
  60. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  61. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +6 -46
  62. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +18 -29
  63. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  64. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +31 -25
  65. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  66. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_blclup.css +6 -0
  67. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +1 -1
  68. package/cjs/components/Dropdown/ui/DropdownItemOld/{DropdownItem.styles_1lyg81y.css → DropdownItem.styles_12e50g5.css} +1 -1
  69. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -4
  70. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  71. package/cjs/components/Notification/Notification.css +11 -11
  72. package/cjs/components/Notification/Notification.styles.js +15 -15
  73. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  74. package/cjs/components/Notification/{Notification.styles_7h8hp0.css → Notification.styles_1g34msm.css} +1 -1
  75. package/cjs/components/Notification/Notification.tokens.js +2 -0
  76. package/cjs/components/Notification/Notification.tokens.js.map +1 -1
  77. package/cjs/components/Notification/NotificationsProvider.css +11 -11
  78. package/cjs/components/Pagination/Pagination.css +10 -10
  79. package/cjs/components/Pagination/Pagination.js +5 -5
  80. package/cjs/components/Pagination/Pagination.js.map +1 -1
  81. package/cjs/components/Pagination/Pagination.styles.js +3 -3
  82. package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
  83. package/cjs/components/Pagination/{Pagination.styles_y6gcva.css → Pagination.styles_1w5oej6.css} +1 -1
  84. package/cjs/components/Pagination/Pagination.tokens.js +4 -1
  85. package/cjs/components/Pagination/Pagination.tokens.js.map +1 -1
  86. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +3 -3
  87. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  88. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  89. package/cjs/components/Pagination/ui/PaginationSelectPerPage/{PaginationSelectPerPage.styles_187mk6b.css → PaginationSelectPerPage.styles_1fesyfv.css} +1 -1
  90. package/cjs/components/Select/Select.js +1 -1
  91. package/cjs/components/Select/utils/getCorrectHeight.js.map +1 -1
  92. package/cjs/components/Tabs/tokens.js +7 -1
  93. package/cjs/components/Tabs/tokens.js.map +1 -1
  94. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -5
  95. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  96. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  97. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/{HorizontalTabItem.styles_hfqv5b.css → HorizontalTabItem.styles_uaaqqg.css} +1 -1
  98. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -5
  99. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  100. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  101. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/{VerticalTabItem.styles_16d3lah.css → VerticalTabItem.styles_1g7zipg.css} +1 -1
  102. package/cjs/hooks/useOutsideClick.js +1 -1
  103. package/cjs/hooks/useOutsideClick.js.map +1 -1
  104. package/cjs/index.css +74 -71
  105. package/emotion/cjs/components/Autocomplete/Autocomplete.tokens.js +1 -0
  106. package/emotion/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  107. package/emotion/cjs/components/Calendar/Calendar.tokens.js +3 -0
  108. package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -2
  109. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  110. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +22 -17
  111. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +7 -7
  112. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +5 -1
  113. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +2 -1
  114. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +21 -15
  115. package/emotion/cjs/components/DatePicker/DatePicker.tokens.js +5 -0
  116. package/emotion/cjs/components/DatePicker/DatePickerBase.styles.js +3 -3
  117. package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +5 -5
  118. package/emotion/cjs/components/Dropdown/Dropdown.js +37 -58
  119. package/emotion/cjs/components/Dropdown/Dropdown.styles.js +25 -9
  120. package/emotion/cjs/components/Dropdown/Dropdown.tokens.js +4 -36
  121. package/emotion/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +51 -17
  122. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +18 -29
  123. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +41 -21
  124. package/emotion/cjs/components/Dropdown/utils/index.js +1 -23
  125. package/emotion/cjs/components/Notification/Notification.styles.js +11 -11
  126. package/emotion/cjs/components/Notification/Notification.tokens.js +2 -0
  127. package/emotion/cjs/components/Pagination/Pagination.js +5 -5
  128. package/emotion/cjs/components/Pagination/Pagination.styles.js +8 -8
  129. package/emotion/cjs/components/Pagination/Pagination.tokens.js +4 -1
  130. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  131. package/emotion/cjs/components/Tabs/tokens.js +7 -1
  132. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +5 -5
  133. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +5 -5
  134. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  135. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  136. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +5 -6
  137. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  138. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  139. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +5 -6
  140. package/emotion/cjs/hooks/useOutsideClick.js +1 -1
  141. package/emotion/es/components/Autocomplete/Autocomplete.tokens.js +1 -0
  142. package/emotion/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  143. package/emotion/es/components/Calendar/Calendar.tokens.js +3 -0
  144. package/emotion/es/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -2
  145. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
  146. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +21 -16
  147. package/emotion/es/components/Combobox/ComboboxNew/Combobox.styles.js +7 -7
  148. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +5 -1
  149. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +2 -1
  150. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +21 -15
  151. package/emotion/es/components/DatePicker/DatePicker.tokens.js +5 -0
  152. package/emotion/es/components/DatePicker/DatePickerBase.styles.js +3 -3
  153. package/emotion/es/components/DatePicker/SingleDate/SingleDate.styles.js +5 -5
  154. package/emotion/es/components/Dropdown/Dropdown.js +40 -60
  155. package/emotion/es/components/Dropdown/Dropdown.styles.js +25 -9
  156. package/emotion/es/components/Dropdown/Dropdown.tokens.js +3 -35
  157. package/emotion/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +52 -18
  158. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +20 -31
  159. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +42 -22
  160. package/emotion/es/components/Dropdown/utils/index.js +1 -4
  161. package/emotion/es/components/Notification/Notification.styles.js +11 -11
  162. package/emotion/es/components/Notification/Notification.tokens.js +2 -0
  163. package/emotion/es/components/Pagination/Pagination.js +5 -5
  164. package/emotion/es/components/Pagination/Pagination.styles.js +8 -8
  165. package/emotion/es/components/Pagination/Pagination.tokens.js +4 -1
  166. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  167. package/emotion/es/components/Tabs/tokens.js +7 -1
  168. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +5 -5
  169. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +5 -5
  170. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  171. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +6 -6
  172. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +5 -6
  173. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  174. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +6 -6
  175. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +5 -6
  176. package/emotion/es/hooks/useOutsideClick.js +1 -1
  177. package/es/components/Autocomplete/Autocomplete.css +1 -1
  178. package/es/components/Autocomplete/Autocomplete.tokens.js +1 -0
  179. package/es/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  180. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  181. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  182. package/es/components/Autocomplete/ui/TextField/{TextField.styles_1csckkd.css → TextField.styles_1ye9068.css} +1 -1
  183. package/es/components/Calendar/Calendar.tokens.js +3 -0
  184. package/es/components/Calendar/Calendar.tokens.js.map +1 -1
  185. package/es/components/Calendar/CalendarBase/CalendarBase.css +11 -10
  186. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  187. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  188. package/{cjs/components/Calendar/CalendarBase/CalendarBase.styles_1m6uih1.css → es/components/Calendar/CalendarBase/CalendarBase.styles_ni8729.css} +1 -1
  189. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +11 -10
  190. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +9 -8
  191. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +4 -5
  192. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  193. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +11 -2
  194. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  195. package/{cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1jfelqf.css → es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1xijs8w.css} +1 -0
  196. package/es/components/Combobox/ComboboxNew/Combobox.css +12 -12
  197. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +10 -10
  198. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  199. package/{cjs/components/Combobox/ComboboxNew/Combobox.styles_1s09ifw.css → es/components/Combobox/ComboboxNew/Combobox.styles_1nqrvms.css} +1 -1
  200. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +5 -1
  201. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  202. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
  203. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +12 -12
  204. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +2 -1
  205. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  206. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +21 -7
  207. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  208. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/{Item.styles_y71664.css → Item.styles_1njzasn.css} +3 -3
  209. package/es/components/Combobox/ComboboxOld/Combobox.css +14 -28
  210. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +18 -32
  211. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +18 -32
  212. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +18 -32
  213. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +18 -32
  214. package/es/components/DatePicker/DatePicker.tokens.js +5 -0
  215. package/es/components/DatePicker/DatePicker.tokens.js.map +1 -1
  216. package/es/components/DatePicker/DatePickerBase.styles.js +1 -1
  217. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  218. package/es/components/DatePicker/DatePickerBase.styles_1x090si.css +2 -0
  219. package/es/components/DatePicker/RangeDate/RangeDate.css +15 -14
  220. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +13 -12
  221. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
  222. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1i6gpss.css +2 -0
  223. package/es/components/DatePicker/SingleDate/SingleDate.css +15 -14
  224. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  225. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  226. package/{cjs/components/DatePicker/SingleDate/SingleDate.styles_1rrq00l.css → es/components/DatePicker/SingleDate/SingleDate.styles_e72b5o.css} +1 -1
  227. package/es/components/Dropdown/Dropdown.css +16 -30
  228. package/es/components/Dropdown/Dropdown.js +40 -62
  229. package/es/components/Dropdown/Dropdown.js.map +1 -1
  230. package/es/components/Dropdown/Dropdown.styles.js +26 -15
  231. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  232. package/es/components/Dropdown/Dropdown.styles_zvi9m3.css +3 -0
  233. package/es/components/Dropdown/Dropdown.tokens.js +3 -24
  234. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  235. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +52 -18
  236. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  237. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +6 -46
  238. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +20 -31
  239. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  240. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +29 -24
  241. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  242. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_blclup.css +6 -0
  243. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +1 -1
  244. package/es/components/Dropdown/ui/DropdownItemOld/{DropdownItem.styles_1lyg81y.css → DropdownItem.styles_12e50g5.css} +1 -1
  245. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -4
  246. package/es/components/Dropdown/utils/index.js.map +1 -1
  247. package/es/components/Notification/Notification.css +11 -11
  248. package/es/components/Notification/Notification.styles.js +15 -15
  249. package/es/components/Notification/Notification.styles.js.map +1 -1
  250. package/es/components/Notification/{Notification.styles_7h8hp0.css → Notification.styles_1g34msm.css} +1 -1
  251. package/es/components/Notification/Notification.tokens.js +2 -0
  252. package/es/components/Notification/Notification.tokens.js.map +1 -1
  253. package/es/components/Notification/NotificationsProvider.css +11 -11
  254. package/es/components/Pagination/Pagination.css +10 -10
  255. package/es/components/Pagination/Pagination.js +5 -5
  256. package/es/components/Pagination/Pagination.js.map +1 -1
  257. package/es/components/Pagination/Pagination.styles.js +3 -3
  258. package/es/components/Pagination/Pagination.styles.js.map +1 -1
  259. package/es/components/Pagination/{Pagination.styles_y6gcva.css → Pagination.styles_1w5oej6.css} +1 -1
  260. package/es/components/Pagination/Pagination.tokens.js +4 -1
  261. package/es/components/Pagination/Pagination.tokens.js.map +1 -1
  262. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +3 -3
  263. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  264. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  265. package/es/components/Pagination/ui/PaginationSelectPerPage/{PaginationSelectPerPage.styles_187mk6b.css → PaginationSelectPerPage.styles_1fesyfv.css} +1 -1
  266. package/es/components/Select/Select.js +1 -1
  267. package/es/components/Select/utils/getCorrectHeight.js.map +1 -1
  268. package/es/components/Tabs/tokens.js +7 -1
  269. package/es/components/Tabs/tokens.js.map +1 -1
  270. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -5
  271. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  272. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  273. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/{HorizontalTabItem.styles_hfqv5b.css → HorizontalTabItem.styles_uaaqqg.css} +1 -1
  274. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -5
  275. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  276. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  277. package/es/components/Tabs/ui/vertical/VerticalTabItem/{VerticalTabItem.styles_16d3lah.css → VerticalTabItem.styles_1g7zipg.css} +1 -1
  278. package/es/hooks/useOutsideClick.js +1 -1
  279. package/es/hooks/useOutsideClick.js.map +1 -1
  280. package/es/index.css +74 -71
  281. package/package.json +2 -2
  282. package/styled-components/cjs/components/Autocomplete/Autocomplete.tokens.js +1 -0
  283. package/styled-components/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  284. package/styled-components/cjs/components/Calendar/Calendar.tokens.js +3 -0
  285. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  286. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  287. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +6 -2
  288. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  289. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +5 -1
  290. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +2 -1
  291. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +12 -6
  292. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +5 -0
  293. package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
  294. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  295. package/styled-components/cjs/components/Dropdown/Dropdown.js +37 -58
  296. package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +15 -9
  297. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +4 -36
  298. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +51 -17
  299. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +18 -29
  300. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +19 -17
  301. package/styled-components/cjs/components/Dropdown/utils/index.js +1 -23
  302. package/styled-components/cjs/components/Notification/Notification.styles.js +1 -1
  303. package/styled-components/cjs/components/Notification/Notification.tokens.js +2 -0
  304. package/styled-components/cjs/components/Pagination/Pagination.js +5 -5
  305. package/styled-components/cjs/components/Pagination/Pagination.styles.js +1 -1
  306. package/styled-components/cjs/components/Pagination/Pagination.tokens.js +4 -1
  307. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  308. package/styled-components/cjs/components/Tabs/tokens.js +7 -1
  309. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  310. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  311. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  312. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  313. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +5 -6
  314. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  315. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  316. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +5 -6
  317. package/styled-components/cjs/hooks/useOutsideClick.js +1 -1
  318. package/styled-components/es/components/Autocomplete/Autocomplete.tokens.js +1 -0
  319. package/styled-components/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  320. package/styled-components/es/components/Calendar/Calendar.tokens.js +3 -0
  321. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  322. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
  323. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +5 -1
  324. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  325. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +5 -1
  326. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +2 -1
  327. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +12 -6
  328. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +5 -0
  329. package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +1 -1
  330. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  331. package/styled-components/es/components/Dropdown/Dropdown.js +40 -60
  332. package/styled-components/es/components/Dropdown/Dropdown.styles.js +15 -9
  333. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +3 -35
  334. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +52 -18
  335. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +20 -31
  336. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +20 -18
  337. package/styled-components/es/components/Dropdown/utils/index.js +1 -4
  338. package/styled-components/es/components/Notification/Notification.styles.js +1 -1
  339. package/styled-components/es/components/Notification/Notification.tokens.js +2 -0
  340. package/styled-components/es/components/Pagination/Pagination.js +5 -5
  341. package/styled-components/es/components/Pagination/Pagination.styles.js +1 -1
  342. package/styled-components/es/components/Pagination/Pagination.tokens.js +4 -1
  343. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  344. package/styled-components/es/components/Tabs/tokens.js +7 -1
  345. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  346. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  347. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  348. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +6 -6
  349. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +5 -6
  350. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  351. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +6 -6
  352. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +5 -6
  353. package/styled-components/es/hooks/useOutsideClick.js +1 -1
  354. package/types/components/Autocomplete/Autocomplete.tokens.d.ts +1 -0
  355. package/types/components/Autocomplete/Autocomplete.tokens.d.ts.map +1 -1
  356. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  357. package/types/components/Calendar/Calendar.tokens.d.ts +3 -0
  358. package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
  359. package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts.map +1 -1
  360. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.d.ts.map +1 -1
  361. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +1 -0
  362. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
  363. package/types/components/Combobox/ComboboxNew/Combobox.styles.d.ts.map +1 -1
  364. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +4 -0
  365. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  366. package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  367. package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
  368. package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts +1 -2
  369. package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts.map +1 -1
  370. package/types/components/DatePicker/DatePicker.tokens.d.ts +5 -0
  371. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -1
  372. package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +1 -1
  373. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  374. package/types/components/Dropdown/Dropdown.d.ts +1 -2
  375. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  376. package/types/components/Dropdown/Dropdown.styles.d.ts +6 -1
  377. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  378. package/types/components/Dropdown/Dropdown.tokens.d.ts +2 -25
  379. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  380. package/types/components/Dropdown/Dropdown.types.d.ts +4 -30
  381. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  382. package/types/components/Dropdown/index.d.ts +1 -1
  383. package/types/components/Dropdown/index.d.ts.map +1 -1
  384. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +1 -1
  385. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +12 -1
  386. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +1 -1
  387. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  388. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +3 -32
  389. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  390. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +14 -1
  391. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  392. package/types/components/Dropdown/utils/index.d.ts +0 -3
  393. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  394. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  395. package/types/components/Notification/Notification.tokens.d.ts +2 -0
  396. package/types/components/Notification/Notification.tokens.d.ts.map +1 -1
  397. package/types/components/Pagination/Pagination.d.ts.map +1 -1
  398. package/types/components/Pagination/Pagination.styles.d.ts.map +1 -1
  399. package/types/components/Pagination/Pagination.tokens.d.ts +3 -0
  400. package/types/components/Pagination/Pagination.tokens.d.ts.map +1 -1
  401. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  402. package/types/components/Select/utils/getCorrectHeight.d.ts +2 -2
  403. package/types/components/Select/utils/getCorrectHeight.d.ts.map +1 -1
  404. package/types/components/Tabs/tokens.d.ts +6 -0
  405. package/types/components/Tabs/tokens.d.ts.map +1 -1
  406. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
  407. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
  408. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts +3 -3
  409. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  410. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +4 -4
  411. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -1
  412. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts +3 -3
  413. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  414. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts +4 -4
  415. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts.map +1 -1
  416. package/types/hooks/useOutsideClick.d.ts +1 -1
  417. package/types/hooks/useOutsideClick.d.ts.map +1 -1
  418. package/cjs/components/DatePicker/DatePickerBase.styles_mjc9xz.css +0 -2
  419. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1gljtdv.css +0 -2
  420. package/cjs/components/Dropdown/Dropdown.styles_1ix6io8.css +0 -2
  421. package/cjs/components/Dropdown/FloatingPopover.js +0 -104
  422. package/cjs/components/Dropdown/FloatingPopover.js.map +0 -1
  423. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_17va0nk.css +0 -5
  424. package/cjs/components/Dropdown/utils/getItemByFocused.js +0 -13
  425. package/cjs/components/Dropdown/utils/getItemByFocused.js.map +0 -1
  426. package/cjs/components/Dropdown/utils/getItemId.js +0 -10
  427. package/cjs/components/Dropdown/utils/getItemId.js.map +0 -1
  428. package/cjs/components/Dropdown/utils/getPlacement.js +0 -16
  429. package/cjs/components/Dropdown/utils/getPlacement.js.map +0 -1
  430. package/emotion/cjs/components/Dropdown/FloatingPopover.js +0 -109
  431. package/emotion/cjs/components/Dropdown/utils/getItemByFocused.js +0 -12
  432. package/emotion/cjs/components/Dropdown/utils/getItemId.js +0 -9
  433. package/emotion/cjs/components/Dropdown/utils/getPlacement.js +0 -15
  434. package/emotion/es/components/Dropdown/FloatingPopover.js +0 -102
  435. package/emotion/es/components/Dropdown/utils/getItemByFocused.js +0 -6
  436. package/emotion/es/components/Dropdown/utils/getItemId.js +0 -3
  437. package/emotion/es/components/Dropdown/utils/getPlacement.js +0 -9
  438. package/es/components/DatePicker/DatePickerBase.styles_mjc9xz.css +0 -2
  439. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1gljtdv.css +0 -2
  440. package/es/components/Dropdown/Dropdown.styles_1ix6io8.css +0 -2
  441. package/es/components/Dropdown/FloatingPopover.js +0 -100
  442. package/es/components/Dropdown/FloatingPopover.js.map +0 -1
  443. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_17va0nk.css +0 -5
  444. package/es/components/Dropdown/utils/getItemByFocused.js +0 -9
  445. package/es/components/Dropdown/utils/getItemByFocused.js.map +0 -1
  446. package/es/components/Dropdown/utils/getItemId.js +0 -6
  447. package/es/components/Dropdown/utils/getItemId.js.map +0 -1
  448. package/es/components/Dropdown/utils/getPlacement.js +0 -12
  449. package/es/components/Dropdown/utils/getPlacement.js.map +0 -1
  450. package/styled-components/cjs/components/Dropdown/FloatingPopover.js +0 -109
  451. package/styled-components/cjs/components/Dropdown/utils/getItemByFocused.js +0 -12
  452. package/styled-components/cjs/components/Dropdown/utils/getItemId.js +0 -9
  453. package/styled-components/cjs/components/Dropdown/utils/getPlacement.js +0 -15
  454. package/styled-components/es/components/Dropdown/FloatingPopover.js +0 -102
  455. package/styled-components/es/components/Dropdown/utils/getItemByFocused.js +0 -6
  456. package/styled-components/es/components/Dropdown/utils/getItemId.js +0 -3
  457. package/styled-components/es/components/Dropdown/utils/getPlacement.js +0 -9
  458. package/types/components/Dropdown/FloatingPopover.d.ts +0 -5
  459. package/types/components/Dropdown/FloatingPopover.d.ts.map +0 -1
  460. package/types/components/Dropdown/utils/getItemByFocused.d.ts +0 -4
  461. package/types/components/Dropdown/utils/getItemByFocused.d.ts.map +0 -1
  462. package/types/components/Dropdown/utils/getItemId.d.ts +0 -2
  463. package/types/components/Dropdown/utils/getItemId.d.ts.map +0 -1
  464. package/types/components/Dropdown/utils/getPlacement.d.ts +0 -3
  465. package/types/components/Dropdown/utils/getPlacement.d.ts.map +0 -1
@@ -5,20 +5,29 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var React = require('react');
6
6
  var Dropdown_tokens = require('../../Dropdown.tokens.js');
7
7
  var index = require('../../../../utils/index.js');
8
- var Dropdown = require('../../Dropdown.js');
9
8
  var DropdownItem_styles = require('./DropdownItem.styles.js');
10
- var getItemId = require('../../utils/getItemId.js');
11
9
  var IconDisclosureRight = require('../../../_Icon/Icons/IconDisclosureRight.js');
12
10
 
13
11
  var DropdownItem = function DropdownItem(_ref) {
14
12
  var item = _ref.item,
15
13
  path = _ref.path,
14
+ focusedPath = _ref.focusedPath,
16
15
  currentLevel = _ref.currentLevel,
17
16
  index$1 = _ref.index,
17
+ itemRole = _ref.itemRole,
18
+ closeOnSelect = _ref.closeOnSelect,
19
+ handleGlobalToggle = _ref.handleGlobalToggle,
20
+ onHover = _ref.onHover,
21
+ onItemSelect = _ref.onItemSelect,
22
+ onItemClick = _ref.onItemClick,
18
23
  ariaControls = _ref.ariaControls,
19
24
  ariaExpanded = _ref.ariaExpanded,
25
+ ariaHasPopup = _ref.ariaHasPopup,
20
26
  ariaLevel = _ref.ariaLevel,
21
- ariaLabel = _ref.ariaLabel;
27
+ ariaLabel = _ref.ariaLabel,
28
+ variant = _ref.variant,
29
+ hasArrow = _ref.hasArrow,
30
+ size = _ref.size;
22
31
  var value = item.value,
23
32
  label = item.label,
24
33
  disabled = item.disabled,
@@ -28,19 +37,6 @@ var DropdownItem = function DropdownItem(_ref) {
28
37
  dividerBefore = item.dividerBefore,
29
38
  dividerAfter = item.dividerAfter;
30
39
  var ref = React.useRef(null);
31
- var _useContext = React.useContext(Dropdown.Context),
32
- focusedPath = _useContext.focusedPath,
33
- size = _useContext.size,
34
- variant = _useContext.variant,
35
- itemRole = _useContext.itemRole,
36
- handleGlobalToggle = _useContext.handleGlobalToggle,
37
- closeOnSelect = _useContext.closeOnSelect,
38
- onHover = _useContext.onHover,
39
- onItemSelect = _useContext.onItemSelect,
40
- onItemClick = _useContext.onItemClick,
41
- hasArrow = _useContext.hasArrow,
42
- treeId = _useContext.treeId;
43
- var hasDescendants = Boolean(item.items);
44
40
  var disclosureIconSize = size === 'xs' ? 'xs' : 's';
45
41
  var isDisabledClassName = disabled || isDisabled ? Dropdown_tokens.classes.dropdownItemIsDisabled : undefined;
46
42
  var focusedClass = currentLevel === focusedPath.length - 1 && index$1 === (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[currentLevel]) ? Dropdown_tokens.classes.dropdownItemIsFocused : undefined;
@@ -64,9 +60,7 @@ var DropdownItem = function DropdownItem(_ref) {
64
60
  if (onItemClick) {
65
61
  onItemClick(item, event);
66
62
  }
67
-
68
- // Закрываем весь дропдаун целиком при клике на айтем без потомков. Только при closeOnSelect === true.
69
- if (closeOnSelect && !hasDescendants) {
63
+ if (handleGlobalToggle && closeOnSelect) {
70
64
  handleGlobalToggle(false, event);
71
65
  }
72
66
  };
@@ -78,25 +72,20 @@ var DropdownItem = function DropdownItem(_ref) {
78
72
  return /*#__PURE__*/React.createElement(React.Fragment, null, dividerBefore && /*#__PURE__*/React.createElement(DropdownItem_styles.Divider, {
79
73
  variant: variant
80
74
  }), /*#__PURE__*/React.createElement(DropdownItem_styles.Wrapper, {
81
- ref: ref,
82
75
  className: index.cx(isDisabledClassName, focusedClass, activeClass),
83
- id: getItemId.getItemId(treeId, value.toString()),
76
+ id: value.toString(),
84
77
  role: itemRole,
78
+ ref: ref,
79
+ "aria-disabled": disabled || isDisabled,
85
80
  onClick: handleClick,
86
81
  onMouseEnter: handleHover,
87
82
  variant: variant,
88
- "aria-disabled": disabled || isDisabled,
89
83
  "aria-controls": ariaControls,
90
84
  "aria-expanded": ariaExpanded,
85
+ "aria-haspopup": ariaHasPopup,
91
86
  "aria-level": ariaLevel,
92
87
  "aria-label": ariaLabel
93
- }, /*#__PURE__*/React.createElement(DropdownItem_styles.CellWrapper, null, /*#__PURE__*/React.createElement(DropdownItem_styles.StyledCell, {
94
- contentLeft: contentLeft,
95
- contentRight: contentRight,
96
- alignContentLeft: "center",
97
- alignContentRight: "center",
98
- title: label
99
- })), item.items && hasArrow && /*#__PURE__*/React.createElement(DropdownItem_styles.DisclosureIconWrapper, null, /*#__PURE__*/React.createElement(IconDisclosureRight.IconDisclosureRight, {
88
+ }, contentLeft && /*#__PURE__*/React.createElement(DropdownItem_styles.StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(DropdownItem_styles.StyledText, null, label), contentRight && /*#__PURE__*/React.createElement(DropdownItem_styles.StyledContentRight, null, contentRight), item.items && hasArrow && /*#__PURE__*/React.createElement(DropdownItem_styles.DisclosureIconWrapper, null, /*#__PURE__*/React.createElement(IconDisclosureRight.IconDisclosureRight, {
100
89
  size: disclosureIconSize,
101
90
  color: "inherit"
102
91
  }))), dividerAfter && /*#__PURE__*/React.createElement(DropdownItem_styles.Divider, {
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownItem.js","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.tsx"],"sourcesContent":["import React, { useEffect, useRef, FC, useContext } from 'react';\n\nimport { classes } from '../../Dropdown.tokens';\nimport { cx } from '../../../../utils';\nimport { IconDisclosureRight } from '../../../_Icon';\nimport { Context } from '../../Dropdown';\nimport { getItemId } from '../../utils';\n\nimport { Wrapper, DisclosureIconWrapper, Divider, CellWrapper, StyledCell } from './DropdownItem.styles';\nimport type { DropdownItemProps } from './DropdownItem.type';\n\nexport const DropdownItem: FC<DropdownItemProps> = ({\n item,\n path,\n currentLevel,\n index,\n ariaControls,\n ariaExpanded,\n ariaLevel,\n ariaLabel,\n}) => {\n const { value, label, disabled, isDisabled, contentLeft, contentRight, dividerBefore, dividerAfter } = item;\n\n const ref = useRef<HTMLLIElement | null>(null);\n\n const {\n focusedPath,\n size,\n variant,\n itemRole,\n handleGlobalToggle,\n closeOnSelect,\n onHover,\n onItemSelect,\n onItemClick,\n hasArrow,\n treeId,\n } = useContext(Context);\n\n const hasDescendants = Boolean(item.items);\n const disclosureIconSize = size === 'xs' ? 'xs' : 's';\n const isDisabledClassName = disabled || isDisabled ? classes.dropdownItemIsDisabled : undefined;\n const focusedClass =\n currentLevel === focusedPath.length - 1 && index === focusedPath?.[currentLevel]\n ? classes.dropdownItemIsFocused\n : undefined;\n const activeClass = value === path?.[currentLevel + 1] ? classes.dropdownItemIsActive : undefined;\n\n useEffect(() => {\n if (focusedClass && ref?.current) {\n ref.current.scrollIntoView({\n behavior: 'smooth',\n block: 'center',\n inline: 'center',\n });\n }\n }, [focusedClass]);\n\n const handleClick = (event: React.MouseEvent<HTMLLIElement>): void => {\n if (disabled || isDisabled) {\n return;\n }\n\n if (onItemSelect) {\n onItemSelect(item, event);\n }\n\n if (onItemClick) {\n onItemClick(item, event);\n }\n\n // Закрываем весь дропдаун целиком при клике на айтем без потомков. Только при closeOnSelect === true.\n if (closeOnSelect && !hasDescendants) {\n handleGlobalToggle(false, event);\n }\n };\n\n const handleHover = () => {\n if (onHover) {\n onHover(index);\n }\n };\n\n return (\n <>\n {dividerBefore && <Divider variant={variant} />}\n\n <Wrapper\n ref={ref}\n className={cx(isDisabledClassName, focusedClass, activeClass)}\n id={getItemId(treeId, value.toString())}\n role={itemRole}\n onClick={handleClick}\n onMouseEnter={handleHover}\n variant={variant}\n aria-disabled={disabled || isDisabled}\n aria-controls={ariaControls}\n aria-expanded={ariaExpanded}\n aria-level={ariaLevel}\n aria-label={ariaLabel}\n >\n <CellWrapper>\n <StyledCell\n contentLeft={contentLeft}\n contentRight={contentRight}\n alignContentLeft=\"center\"\n alignContentRight=\"center\"\n title={label}\n />\n </CellWrapper>\n\n {item.items && hasArrow && (\n <DisclosureIconWrapper>\n <IconDisclosureRight size={disclosureIconSize} color=\"inherit\" />\n </DisclosureIconWrapper>\n )}\n </Wrapper>\n\n {dividerAfter && <Divider variant={variant} />}\n </>\n );\n};\n"],"names":["DropdownItem","_ref","item","path","currentLevel","index","ariaControls","ariaExpanded","ariaLevel","ariaLabel","value","label","disabled","isDisabled","contentLeft","contentRight","dividerBefore","dividerAfter","ref","useRef","_useContext","useContext","Context","focusedPath","size","variant","itemRole","handleGlobalToggle","closeOnSelect","onHover","onItemSelect","onItemClick","hasArrow","treeId","hasDescendants","Boolean","items","disclosureIconSize","isDisabledClassName","classes","dropdownItemIsDisabled","undefined","focusedClass","length","dropdownItemIsFocused","activeClass","dropdownItemIsActive","useEffect","current","scrollIntoView","behavior","block","inline","handleClick","event","handleHover","React","createElement","Fragment","Divider","Wrapper","className","cx","id","getItemId","toString","role","onClick","onMouseEnter","CellWrapper","StyledCell","alignContentLeft","alignContentRight","title","DisclosureIconWrapper","IconDisclosureRight","color"],"mappings":";;;;;;;;;;;;IAWaA,YAAmC,GAAG,SAAtCA,YAAmCA,CAAAC,IAAA,EAS1C;AAAA,EAAA,IARFC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,YAAY,GAAAH,IAAA,CAAZG,YAAY;IACZC,OAAK,GAAAJ,IAAA,CAALI,KAAK;IACLC,YAAY,GAAAL,IAAA,CAAZK,YAAY;IACZC,YAAY,GAAAN,IAAA,CAAZM,YAAY;IACZC,SAAS,GAAAP,IAAA,CAATO,SAAS;IACTC,SAAS,GAAAR,IAAA,CAATQ,SAAS,CAAA;AAET,EAAA,IAAQC,KAAK,GAA0FR,IAAI,CAAnGQ,KAAK;IAAEC,KAAK,GAAmFT,IAAI,CAA5FS,KAAK;IAAEC,QAAQ,GAAyEV,IAAI,CAArFU,QAAQ;IAAEC,UAAU,GAA6DX,IAAI,CAA3EW,UAAU;IAAEC,WAAW,GAAgDZ,IAAI,CAA/DY,WAAW;IAAEC,YAAY,GAAkCb,IAAI,CAAlDa,YAAY;IAAEC,aAAa,GAAmBd,IAAI,CAApCc,aAAa;IAAEC,YAAY,GAAKf,IAAI,CAArBe,YAAY,CAAA;AAElG,EAAA,IAAMC,GAAG,GAAGC,YAAM,CAAuB,IAAI,CAAC,CAAA;AAE9C,EAAA,IAAAC,WAAA,GAYIC,gBAAU,CAACC,gBAAO,CAAC;IAXnBC,WAAW,GAAAH,WAAA,CAAXG,WAAW;IACXC,IAAI,GAAAJ,WAAA,CAAJI,IAAI;IACJC,OAAO,GAAAL,WAAA,CAAPK,OAAO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S,CAAC/B,MAAM,EAAEvB,KAAK,CAACuD,QAAQ,EAAE,CAAE;AACxCC,IAAAA,IAAI,EAAExC,QAAS;AACfyC,IAAAA,OAAO,EAAEd,WAAY;AACrBe,IAAAA,YAAY,EAAEb,WAAY;AAC1B9B,IAAAA,OAAO,EAAEA,OAAQ;IACjB,eAAeb,EAAAA,QAAQ,IAAIC,UAAW;AACtC,IAAA,eAAA,EAAeP,YAAa;AAC5B,IAAA,eAAA,EAAeC,YAAa;AAC5B,IAAA,YAAA,EAAYC,SAAU;IACtB,YAAYC,EAAAA,SAAAA;GAEZ+C,eAAAA,KAAA,CAAAC,aAAA,CAACY,+BAAW,qBACRb,KAAA,CAAAC,aAAA,CAACa,8BAAU,EAAA;AACPxD,IAAAA,WAAW,EAAEA,WAAY;AACzBC,IAAAA,YAAY,EAAEA,YAAa;AAC3BwD,IAAAA,gBAAgB,EAAC,QAAQ;AACzBC,IAAAA,iBAAiB,EAAC,QAAQ;AAC1BC,IAAAA,KAAK,EAAE9D,KAAAA;AAAM,GAChB,CACQ,CAAC,EAEbT,IAAI,CAACkC,KAAK,IAAIJ,QAAQ,iBACnBwB,KAAA,CAAAC,aAAA,CAACiB,yCAAqB,EAAA,IAAA,eAClBlB,KAAA,CAAAC,aAAA,CAACkB,uCAAmB,EAAA;AAACnD,IAAAA,IAAI,EAAEa,kBAAmB;AAACuC,IAAAA,KAAK,EAAC,SAAA;GAAW,CAC7C,CAEtB,CAAC,EAET3D,YAAY,iBAAIuC,KAAA,CAAAC,aAAA,CAACE,2BAAO,EAAA;AAAClC,IAAAA,OAAO,EAAEA,OAAAA;AAAQ,GAAE,CAC/C,CAAC,CAAA;AAEX;;;;"}
1
+ {"version":3,"file":"DropdownItem.js","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.tsx"],"sourcesContent":["import React, { useEffect, useRef, FC } from 'react';\n\nimport { classes } from '../../Dropdown.tokens';\nimport { cx } from '../../../../utils';\nimport { IconDisclosureRight } from '../../../_Icon';\n\nimport {\n StyledContentLeft,\n StyledContentRight,\n StyledText,\n Wrapper,\n DisclosureIconWrapper,\n Divider,\n} from './DropdownItem.styles';\nimport type { DropdownItemProps } from './DropdownItem.type';\n\nexport const DropdownItem: FC<DropdownItemProps> = ({\n item,\n path,\n focusedPath,\n currentLevel,\n index,\n itemRole,\n closeOnSelect,\n handleGlobalToggle,\n onHover,\n onItemSelect,\n onItemClick,\n ariaControls,\n ariaExpanded,\n ariaHasPopup,\n ariaLevel,\n ariaLabel,\n variant,\n hasArrow,\n size,\n}) => {\n const { value, label, disabled, isDisabled, contentLeft, contentRight, dividerBefore, dividerAfter } = item;\n\n const ref = useRef<HTMLLIElement | null>(null);\n\n const disclosureIconSize = size === 'xs' ? 'xs' : 's';\n const isDisabledClassName = disabled || isDisabled ? classes.dropdownItemIsDisabled : undefined;\n const focusedClass =\n currentLevel === focusedPath.length - 1 && index === focusedPath?.[currentLevel]\n ? classes.dropdownItemIsFocused\n : undefined;\n const activeClass = value === path?.[currentLevel + 1] ? classes.dropdownItemIsActive : undefined;\n\n useEffect(() => {\n if (focusedClass && ref?.current) {\n ref.current.scrollIntoView({\n behavior: 'smooth',\n block: 'center',\n inline: 'center',\n });\n }\n }, [focusedClass]);\n\n const handleClick = (event: React.MouseEvent<HTMLLIElement>): void => {\n if (disabled || isDisabled) {\n return;\n }\n\n if (onItemSelect) {\n onItemSelect(item, event);\n }\n\n if (onItemClick) {\n onItemClick(item, event);\n }\n\n if (handleGlobalToggle && closeOnSelect) {\n handleGlobalToggle(false, event);\n }\n };\n\n const handleHover = () => {\n if (onHover) {\n onHover(index);\n }\n };\n\n return (\n <>\n {dividerBefore && <Divider variant={variant} />}\n <Wrapper\n className={cx(isDisabledClassName, focusedClass, activeClass)}\n id={value.toString()}\n role={itemRole}\n ref={ref}\n aria-disabled={disabled || isDisabled}\n onClick={handleClick}\n onMouseEnter={handleHover}\n variant={variant}\n aria-controls={ariaControls}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-level={ariaLevel}\n aria-label={ariaLabel}\n >\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n <StyledText>{label}</StyledText>\n {contentRight && <StyledContentRight>{contentRight}</StyledContentRight>}\n\n {item.items && hasArrow && (\n <DisclosureIconWrapper>\n <IconDisclosureRight size={disclosureIconSize} color=\"inherit\" />\n </DisclosureIconWrapper>\n )}\n </Wrapper>\n {dividerAfter && <Divider variant={variant} />}\n </>\n );\n};\n"],"names":["DropdownItem","_ref","item","path","focusedPath","currentLevel","index","itemRole","closeOnSelect","handleGlobalToggle","onHover","onItemSelect","onItemClick","ariaControls","ariaExpanded","ariaHasPopup","ariaLevel","ariaLabel","variant","hasArrow","size","value","label","disabled","isDisabled","contentLeft","contentRight","dividerBefore","dividerAfter","ref","useRef","disclosureIconSize","isDisabledClassName","classes","dropdownItemIsDisabled","undefined","focusedClass","length","dropdownItemIsFocused","activeClass","dropdownItemIsActive","useEffect","current","scrollIntoView","behavior","block","inline","handleClick","event","handleHover","React","createElement","Fragment","Divider","Wrapper","className","cx","id","toString","role","onClick","onMouseEnter","StyledContentLeft","StyledText","StyledContentRight","items","DisclosureIconWrapper","IconDisclosureRight","color"],"mappings":";;;;;;;;;;IAgBaA,YAAmC,GAAG,SAAtCA,YAAmCA,CAAAC,IAAA,EAoB1C;AAAA,EAAA,IAnBFC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IACXC,YAAY,GAAAJ,IAAA,CAAZI,YAAY;IACZC,OAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,QAAQ,GAAAN,IAAA,CAARM,QAAQ;IACRC,aAAa,GAAAP,IAAA,CAAbO,aAAa;IACbC,kBAAkB,GAAAR,IAAA,CAAlBQ,kBAAkB;IAClBC,OAAO,GAAAT,IAAA,CAAPS,OAAO;IACPC,YAAY,GAAAV,IAAA,CAA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BAAIsB,KAAA,CAAAC,aAAA,CAACE,2BAAO,EAAA;AAACnC,IAAAA,OAAO,EAAEA,OAAAA;AAAQ,GAAE,CAC/C,CAAC,CAAA;AAEX;;;;"}
@@ -1,40 +1,38 @@
1
- import './DropdownItem.styles_17va0nk.css';
1
+ import './DropdownItem.styles_blclup.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var react = require('@linaria/react');
7
7
  var Dropdown_tokens = require('../../Dropdown.tokens.js');
8
- var common = require('../../../../engines/common.js');
9
- var Cell$1 = require('../../../Cell/Cell.js');
10
8
 
11
- var mergedCellConfig = /*#__PURE__*/common.mergeConfig(Cell$1.cellConfig);
12
- var Cell = /*#__PURE__*/common.component(mergedCellConfig);
13
- var CellWrapper = /*#__PURE__*/react.styled('div')({
14
- name: "CellWrapper",
15
- "class": "c1gkzlls",
9
+ var StyledContentLeft = /*#__PURE__*/react.styled('div')({
10
+ name: "StyledContentLeft",
11
+ "class": "s1gkzlls",
16
12
  propsAsIs: false
17
13
  });
18
- var _exp29 = function _exp29() {
19
- return Cell;
20
- };
21
- var StyledCell = /*#__PURE__*/react.styled(_exp29())({
22
- name: "StyledCell",
14
+ var StyledContentRight = /*#__PURE__*/react.styled('div')({
15
+ name: "StyledContentRight",
23
16
  "class": "sz6s14y",
24
- propsAsIs: true
17
+ propsAsIs: false
25
18
  });
26
19
  var DisclosureIconWrapper = /*#__PURE__*/react.styled('div')({
27
20
  name: "DisclosureIconWrapper",
28
21
  "class": "d1m97l2m",
29
22
  propsAsIs: false
30
23
  });
31
- var _exp31 = function _exp31() {
24
+ var StyledText = /*#__PURE__*/react.styled('div')({
25
+ name: "StyledText",
26
+ "class": "soib72h",
27
+ propsAsIs: false
28
+ });
29
+ var _exp3 = function _exp3() {
32
30
  return function (_ref) {
33
31
  var variant = _ref.variant;
34
32
  return "var(".concat(variant === 'tight' ? Dropdown_tokens.tokens.dividerMarginTopTight : Dropdown_tokens.tokens.dividerMarginTop, ")");
35
33
  };
36
34
  };
37
- var _exp33 = function _exp33() {
35
+ var _exp5 = function _exp5() {
38
36
  return function (_ref2) {
39
37
  var variant = _ref2.variant;
40
38
  return "var(".concat(variant === 'tight' ? Dropdown_tokens.tokens.dividerMarginBottomTight : Dropdown_tokens.tokens.dividerMarginBottom, ")");
@@ -42,31 +40,39 @@ var _exp33 = function _exp33() {
42
40
  };
43
41
  var Divider = /*#__PURE__*/react.styled('div')({
44
42
  name: "Divider",
45
- "class": "doib72h",
43
+ "class": "d6l2f0g",
46
44
  propsAsIs: false,
47
45
  vars: {
48
- "doib72h-0": [/*#__PURE__*/_exp31()],
49
- "doib72h-1": [/*#__PURE__*/_exp33()]
46
+ "d6l2f0g-0": [/*#__PURE__*/_exp3()],
47
+ "d6l2f0g-1": [/*#__PURE__*/_exp5()]
50
48
  }
51
49
  });
52
- var _exp37 = function _exp37() {
50
+ var _exp8 = function _exp8() {
53
51
  return function (_ref3) {
54
52
  var variant = _ref3.variant;
55
- return "var(".concat(variant === 'tight' ? Dropdown_tokens.tokens.itemPaddingTight : Dropdown_tokens.tokens.itemPadding, ")");
53
+ return "var(".concat(variant === 'tight' ? Dropdown_tokens.tokens.itemPaddingTopTight : Dropdown_tokens.tokens.itemPaddingTop, ")");
54
+ };
55
+ };
56
+ var _exp10 = function _exp10() {
57
+ return function (_ref4) {
58
+ var variant = _ref4.variant;
59
+ return "var(".concat(variant === 'tight' ? Dropdown_tokens.tokens.itemPaddingBottomTight : Dropdown_tokens.tokens.itemPaddingBottom, ")");
56
60
  };
57
61
  };
58
62
  var Wrapper = /*#__PURE__*/react.styled('li')({
59
63
  name: "Wrapper",
60
- "class": "w6l2f0g",
64
+ "class": "w1jav4ek",
61
65
  propsAsIs: false,
62
66
  vars: {
63
- "w6l2f0g-0": [/*#__PURE__*/_exp37()]
67
+ "w1jav4ek-0": [/*#__PURE__*/_exp8()],
68
+ "w1jav4ek-1": [/*#__PURE__*/_exp10()]
64
69
  }
65
70
  });
66
71
 
67
- exports.CellWrapper = CellWrapper;
68
72
  exports.DisclosureIconWrapper = DisclosureIconWrapper;
69
73
  exports.Divider = Divider;
70
- exports.StyledCell = StyledCell;
74
+ exports.StyledContentLeft = StyledContentLeft;
75
+ exports.StyledContentRight = StyledContentRight;
76
+ exports.StyledText = StyledText;
71
77
  exports.Wrapper = Wrapper;
72
78
  //# sourceMappingURL=DropdownItem.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownItem.styles.js","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { classes, tokens, constants } from '../../Dropdown.tokens';\nimport { addFocus } from '../../../../mixins';\nimport { DropdownProps } from '../../Dropdown.types';\nimport { cellConfig, cellTokens } from '../../../Cell';\nimport { component, mergeConfig } from '../../../../engines';\n\nconst mergedCellConfig = mergeConfig(cellConfig);\nconst Cell = component(mergedCellConfig);\n\nexport const CellWrapper = styled.div`\n ${cellTokens.cellTitleColor}: var(${constants.cellTitleColor});\n ${cellTokens.cellBackgroundColor}: var(${constants.cellBackgroundColor});\n ${cellTokens.cellPadding}: var(${tokens.cellPadding});\n ${cellTokens.cellPaddingLeftContent}: var(${tokens.cellPaddingLeftContent});\n ${cellTokens.cellPaddingContent}: var(${tokens.cellPaddingContent});\n ${cellTokens.cellPaddingRightContent}: var(${tokens.cellPaddingRightContent});\n ${cellTokens.cellTextboxGap}: var(${tokens.cellTextboxGap});\n ${cellTokens.cellGap}: var(${tokens.cellGap});\n ${cellTokens.cellTitleFontFamily}: var(${tokens.cellTitleFontFamily});\n ${cellTokens.cellTitleFontSize}: var(${tokens.cellTitleFontSize});\n ${cellTokens.cellTitleFontStyle}: var(${tokens.cellTitleFontStyle});\n ${cellTokens.cellTitleFontWeight}: var(${tokens.cellTitleFontWeight});\n ${cellTokens.cellTitleLetterSpacing}: var(${tokens.cellTitleLetterSpacing});\n ${cellTokens.cellTitleLineHeight}: var(${tokens.cellTitleLineHeight});\n width: 100%;\n`;\n\nexport const StyledCell = styled(Cell)``;\n\nexport const DisclosureIconWrapper = styled.div`\n line-height: 0;\n color: var(${constants.disclosureIconColor});\n`;\n\nexport const Divider = styled.div<{ variant: DropdownProps['variant'] }>`\n height: 1px;\n margin-top: ${({ variant }) =>\n `var(${variant === 'tight' ? tokens.dividerMarginTopTight : tokens.dividerMarginTop})`};\n margin-right: var(${tokens.dividerMarginRight});\n margin-bottom: ${({ variant }) =>\n `var(${variant === 'tight' ? tokens.dividerMarginBottomTight : tokens.dividerMarginBottom})`};\n margin-left: var(${tokens.dividerMarginLeft});\n background: var(${tokens.dividerColor});\n`;\n\nexport const Wrapper = styled.li<{ variant: DropdownProps['variant'] }>`\n display: flex;\n align-items: center;\n min-height: var(${tokens.itemHeight});\n margin: 0;\n box-sizing: content-box;\n padding: ${({ variant }) => `var(${variant === 'tight' ? tokens.itemPaddingTight : tokens.itemPadding})`};\n font-family: var(${tokens.itemFontFamily});\n font-size: var(${tokens.itemFontSize});\n font-style: var(${tokens.itemFontStyle});\n font-weight: var(${tokens.itemFontWeightBold});\n letter-spacing: var(${tokens.itemFontLetterSpacing});\n line-height: var(${tokens.itemFontLineHeight});\n background-color: var(${constants.itemBackground});\n border-radius: var(${tokens.borderRadius});\n user-select: none;\n border-right: 0.125rem solid transparent;\n border-left: 0.125rem solid transparent;\n background-clip: padding-box;\n\n &:hover:not(.${classes.dropdownItemIsDisabled}) {\n cursor: pointer;\n background-color: var(${constants.itemBackgroundHover});\n }\n\n &.${classes.dropdownItemIsActive} {\n background-color: var(${constants.itemBackgroundHover});\n }\n\n &.${classes.dropdownItemIsDisabled} {\n opacity: ${constants.opacity};\n cursor: not-allowed;\n }\n\n :focus {\n outline: none;\n }\n\n ${addFocus({\n outlineSize: '0.0625rem',\n outlineOffset: '0',\n outlineColor: `var(${constants.focusColor})`,\n outlineRadius: `var(${tokens.itemBorderRadius})`,\n hasTransition: false,\n customFocusRules: `\n &.${classes.dropdownItemIsFocused}:before {\n outline: none;\n box-shadow: 0 0 0 0.0625rem var(${constants.focusColor});\n }\n `,\n })};\n`;\n"],"names":["mergedCellConfig","mergeConfig","cellConfig","Cell","component","CellWrapper","styled","name","class","propsAsIs","_exp29","StyledCell","DisclosureIconWrapper","_exp31","_ref","variant","tokens","dividerMarginTopTight","dividerMarginTop","_exp33","_ref2","dividerMarginBottomTight","dividerMarginBottom","Divider","vars","_exp37","_ref3","itemPaddingTight","itemPadding","Wrapper"],"mappings":";;;;;;;;;AAQA,IAAMA,gBAAgB,gBAAGC,kBAAW,CAACC,iBAAU,CAAC,CAAA;AAChD,IAAMC,IAAI,gBAAGC,gBAAS,CAACJ,gBAAgB,CAAC,CAAA;AAEjC,IAAMK,WAAW,gBAAGC,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAgBhC,EAAA;AAAC,IAAAC,MAAA,GA1BgBA,SA0BhBA,MAAAA,GAAA;AAAA,EAAA,OAE+BP,IAAI,CAAA;AAAA,CAAA,CAAA;AAA9B,IAAMQ,UAAU,gBAAGL,YAAM,CAAAI,MAAA,EAAA,CAAA,CAAA;AAAAH,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAAQ,EAAA;AAEjC,IAAMG,qBAAqB,gBAAGN,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,uBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAG1C,EAAA;AAAC,IAAAI,MAAA,GAjCgBA,SAiChBA,MAAAA,GAAA;AAAA,EAAA,OAIgB,UAAAC,IAAA,EAAA;AAAA,IAAA,IAAGC,OAAAA,GAAAA,IAAAA,CAAAA,OA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AAAAC,EAAAA,IAAA,EAAA,SAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAAe,EAAAA,IAAA,EAAA;AAAA,IAAA,WAAA,EAAA,cAMdC,MAA6F,EAAA,CAAA;AAAA,GAAA;AAAA,CA6C3G;;;;;;;;"}
1
+ {"version":3,"file":"DropdownItem.styles.js","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { classes, tokens } from '../../Dropdown.tokens';\nimport { addFocus, applyEllipsis } from '../../../../mixins';\nimport { DropdownProps } from '../../Dropdown.types';\n\nexport const StyledContentLeft = styled.div`\n display: inline-flex;\n`;\n\nexport const StyledContentRight = styled.div`\n margin-left: auto;\n display: inline-flex;\n`;\n\nexport const DisclosureIconWrapper = styled.div`\n line-height: 0;\n color: var(${tokens.disclosureIconColor});\n`;\n\nexport const StyledText = styled.div`\n ${applyEllipsis()};\n flex: 1;\n`;\n\nexport const Divider = styled.div<{ variant: DropdownProps['variant'] }>`\n height: 1px;\n margin-top: ${({ variant }) =>\n `var(${variant === 'tight' ? tokens.dividerMarginTopTight : tokens.dividerMarginTop})`};\n margin-right: var(${tokens.dividerMarginRight});\n margin-bottom: ${({ variant }) =>\n `var(${variant === 'tight' ? tokens.dividerMarginBottomTight : tokens.dividerMarginBottom})`};\n margin-left: var(${tokens.dividerMarginLeft});\n background: var(${tokens.dividerColor});\n`;\n\nexport const Wrapper = styled.li<{ variant: DropdownProps['variant'] }>`\n display: flex;\n align-items: center;\n margin: 0;\n box-sizing: content-box;\n padding-top: ${({ variant }) => `var(${variant === 'tight' ? tokens.itemPaddingTopTight : tokens.itemPaddingTop})`};\n padding-right: var(${tokens.itemPaddingRight});\n padding-bottom: ${({ variant }) =>\n `var(${variant === 'tight' ? tokens.itemPaddingBottomTight : tokens.itemPaddingBottom})`};\n padding-left: var(${tokens.itemPaddingLeft});\n font-family: var(${tokens.itemFontFamily});\n font-size: var(${tokens.itemFontSize});\n font-style: var(${tokens.itemFontStyle});\n font-weight: var(${tokens.itemFontWeightBold});\n letter-spacing: var(${tokens.itemFontLetterSpacing});\n line-height: var(${tokens.itemFontLineHeight});\n background: var(${tokens.itemBackground});\n color: var(${tokens.itemColor});\n border-radius: var(${tokens.itemBorderRadius});\n user-select: none;\n\n &:hover:not(.${classes.dropdownItemIsDisabled}) {\n cursor: pointer;\n background: var(${tokens.itemBackgroundHover});\n }\n\n &.${classes.dropdownItemIsActive} {\n background: var(${tokens.itemBackgroundHover});\n }\n\n &.${classes.dropdownItemIsDisabled} {\n opacity: var(${tokens.disabledOpacity});\n cursor: not-allowed;\n }\n\n :focus {\n outline: none;\n }\n\n ${addFocus({\n outlineSize: '0.0625rem',\n outlineOffset: '0',\n outlineColor: `var(${tokens.focusColor})`,\n outlineRadius: `var(${tokens.itemBorderRadius})`,\n hasTransition: false,\n customFocusRules: `\n &.${classes.dropdownItemIsFocused}:before {\n outline: none;\n box-shadow: 0 0 0 0.0625rem var(${tokens.focusColor});\n }\n `,\n })};\n`;\n"],"names":["StyledContentLeft","styled","name","class","propsAsIs","StyledContentRight","DisclosureIconWrapper","StyledText","_exp3","_ref","variant","tokens","dividerMarginTopTight","dividerMarginTop","_exp5","_ref2","dividerMarginBottomTight","dividerMarginBottom","Divider","vars","_exp8","_ref3","itemPaddingTopTight","itemPaddingTop","_exp10","_ref4","itemPaddingBottomTight","itemPaddingBottom","Wrapper"],"mappings":";;;;;;;AAMO,IAAMA,iBAAiB,gBAAGC,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAEtC,EAAA;AAEM,IAAMC,kBAAkB,gBAAGJ,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,oBAAA;AAAAC,EAAAA,OAA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ms-inline-flexbox;display:inline-flex;}
2
+ .sz6s14y{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
3
+ .d1m97l2m{line-height:0;color:var(--plasma-dropdown-disclosure-icon-color);}
4
+ .soib72h{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-flex:1;-ms-flex:1;flex:1;}
5
+ .d6l2f0g{height:1px;margin-top:var(--d6l2f0g-0);margin-right:var(--plasma-dropdown-divider-margin-right);margin-bottom:var(--d6l2f0g-1);margin-left:var(--plasma-dropdown-divider-margin-left);background:var(--plasma-dropdown-divider-color);}
6
+ .w1jav4ek{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;margin:0;box-sizing:content-box;padding-top:var(--w1jav4ek-0);padding-right:var(--plasma-dropdown-item-padding-right);padding-bottom:var(--w1jav4ek-1);padding-left:var(--plasma-dropdown-item-padding-left);font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;}.w1jav4ek:hover:not(.dropdown-item-is-disabled){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.w1jav4ek.dropdown-item-is-active{background:var(--plasma-dropdown-item-background-hover);}.w1jav4ek.dropdown-item-is-disabled{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}.w1jav4ek:focus{outline:none;}.w1jav4ek::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.w1jav4ek.dropdown-item-is-focused:before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}
@@ -1,4 +1,4 @@
1
- import './DropdownItem.styles_1lyg81y.css';
1
+ import './DropdownItem.styles_12e50g5.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
1
  .s1iqs5in{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-left-width);color:var(--plasma-dropdown-item-content-left-color);}
2
2
  .sfg3dyd{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-right-width);color:var(--plasma-dropdown-item-content-right-color);}
3
3
  .s1dea6tl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
4
- .b1b2nce8{box-sizing:content-box;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-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;width:auto;font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);width:var(--plasma-dropdown-item-width);height:var(--plasma-dropdown-item-height);padding:var(--plasma-dropdown-item-padding-top) var(--plasma-dropdown-item-padding-right) var(--plasma-dropdown-item-padding-bottom) var(--plasma-dropdown-item-padding-left);margin:var(--plasma-dropdown-item-margin-top) var(--plasma-dropdown-item-margin-right) var(--plasma-dropdown-item-margin-bottom) var(--plasma-dropdown-item-margin-left);}.b1b2nce8:focus{outline:none;}.b1b2nce8::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.b1b2nce8.focus-visible:focus::before,.b1b2nce8[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}.b1b2nce8:hover:not(.dropdown-item-is-disabled){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.b1b2nce8.dropdown-item-is-selected{color:var(--plasma-dropdown-item-color-selected);background:var(--plasma-dropdown-item-background-selected);}.b1b2nce8.dropdown-item-is-selected:hover:not(.dropdown-item-is-disabled){background:var(--plasma-dropdown-item-background-selected-hover);}.b1b2nce8.dropdown-item-is-disabled{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}
4
+ .b1b2nce8{box-sizing:content-box;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-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;width:auto;font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);width:var(--plasma-dropdown-item-width);height:var(--plasma-dropdown-item-height);padding:var(--plasma-dropdown-item-padding-top) var(--plasma-dropdown-item-padding-right) var(--plasma-dropdown-item-padding-bottom) var(--plasma-dropdown-item-padding-left);margin:var(--plasma-dropdown-item-margin-top) var(--plasma-dropdown-item-margin-right) var(--plasma-dropdown-item-margin-bottom) var(--plasma-dropdown-item-margin-left);}.b1b2nce8:focus{outline:none;}.b1b2nce8::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.b1b2nce8.focus-visible:focus::before,.b1b2nce8[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}.b1b2nce8:hover:not(.dropdown-item-is-disabled){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.b1b2nce8.dropdownItemIsSelected{color:var(--plasma-dropdown-item-color-selected);background:var(--plasma-dropdown-item-background-selected);}.b1b2nce8.dropdownItemIsSelected:hover:not(.dropdown-item-is-disabled){background:var(--plasma-dropdown-item-background-selected-hover);}.b1b2nce8.dropdown-item-is-disabled{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}
@@ -1,4 +1,4 @@
1
- .DropdownItem_styles_1lyg81y_s1iqs5in__b17ea060{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-left-width);color:var(--plasma-dropdown-item-content-left-color);}
2
- .DropdownItem_styles_1lyg81y_sfg3dyd__b17ea060{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-right-width);color:var(--plasma-dropdown-item-content-right-color);}
3
- .DropdownItem_styles_1lyg81y_s1dea6tl__b17ea060{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
4
- .DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060{box-sizing:content-box;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-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;width:auto;font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);width:var(--plasma-dropdown-item-width);height:var(--plasma-dropdown-item-height);padding:var(--plasma-dropdown-item-padding-top) var(--plasma-dropdown-item-padding-right) var(--plasma-dropdown-item-padding-bottom) var(--plasma-dropdown-item-padding-left);margin:var(--plasma-dropdown-item-margin-top) var(--plasma-dropdown-item-margin-right) var(--plasma-dropdown-item-margin-bottom) var(--plasma-dropdown-item-margin-left);}.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060:focus{outline:none;}.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060.DropdownItem_styles_1lyg81y_focusVisible__b17ea060:focus::before,.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060:hover:not(.DropdownItem_styles_1lyg81y_dropdownItemIsDisabled__b17ea060){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060.DropdownItem_styles_1lyg81y_dropdownItemIsSelected__b17ea060{color:var(--plasma-dropdown-item-color-selected);background:var(--plasma-dropdown-item-background-selected);}.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060.DropdownItem_styles_1lyg81y_dropdownItemIsSelected__b17ea060:hover:not(.DropdownItem_styles_1lyg81y_dropdownItemIsDisabled__b17ea060){background:var(--plasma-dropdown-item-background-selected-hover);}.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060.DropdownItem_styles_1lyg81y_dropdownItemIsDisabled__b17ea060{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}
1
+ .DropdownItem_styles_12e50g5_s1iqs5in__94ac8eef{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-left-width);color:var(--plasma-dropdown-item-content-left-color);}
2
+ .DropdownItem_styles_12e50g5_sfg3dyd__94ac8eef{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-right-width);color:var(--plasma-dropdown-item-content-right-color);}
3
+ .DropdownItem_styles_12e50g5_s1dea6tl__94ac8eef{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
4
+ .DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef{box-sizing:content-box;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-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;width:auto;font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);width:var(--plasma-dropdown-item-width);height:var(--plasma-dropdown-item-height);padding:var(--plasma-dropdown-item-padding-top) var(--plasma-dropdown-item-padding-right) var(--plasma-dropdown-item-padding-bottom) var(--plasma-dropdown-item-padding-left);margin:var(--plasma-dropdown-item-margin-top) var(--plasma-dropdown-item-margin-right) var(--plasma-dropdown-item-margin-bottom) var(--plasma-dropdown-item-margin-left);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef:focus{outline:none;}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_focusVisible__94ac8eef:focus::before,.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef:hover:not(.DropdownItem_styles_12e50g5_dropdownItemIsDisabled__94ac8eef){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_dropdownItemIsSelected__94ac8eef{color:var(--plasma-dropdown-item-color-selected);background:var(--plasma-dropdown-item-background-selected);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_dropdownItemIsSelected__94ac8eef:hover:not(.DropdownItem_styles_12e50g5_dropdownItemIsDisabled__94ac8eef){background:var(--plasma-dropdown-item-background-selected-hover);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_dropdownItemIsDisabled__94ac8eef{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Dropdown/utils/index.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport React, { Children, HTMLAttributes, ElementType, cloneElement, isValidElement } from 'react';\n\nimport type { DropdownProps } from '../Dropdown.types';\n\nexport const getCorrectHeight = (listHeight: Required<DropdownProps>['listHeight']): string => {\n if (Number.isNaN(Number(listHeight))) {\n return listHeight.toString();\n }\n return `${listHeight}rem`;\n};\n\nexport const childrenWithProps = (children: ReactNode, additionalProps: HTMLAttributes<HTMLLIElement>) =>\n Children.map(children, (child) => {\n if (React.isValidElement(child)) {\n return React.cloneElement(child, additionalProps);\n }\n return child;\n });\n\nconst isReactObject = (element: any): element is ElementType => {\n return typeof element === 'object' || typeof element === 'function';\n};\n\nexport const getValidComponent = (element: ElementType | ReactNode, props: object) => {\n if (isValidElement(element)) {\n return cloneElement(element, props);\n }\n\n if (isReactObject(element)) {\n const Component = element;\n\n return <Component {...props} />;\n }\n\n return element;\n};\n\nexport { getItemId } from './getItemId';\nexport { getItemByFocused } from './getItemByFocused';\nexport { getPlacement } from './getPlacement';\n"],"names":["getCorrectHeight","listHeight","Number","isNaN","toString","concat","childrenWithProps","children","additionalProps","Children","map","child","React","isValidElement","cloneElement","isReactObject","element","_typeof","getValidComponent","props","Component","createElement"],"mappings":";;;;;;;IAKaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,UAAiD,EAAa;EAC3F,IAAIC,MAAM,CAACC,KAAK,CAACD,MAAM,CAACD,UAAU,CAAC,CAAC,EAAE;AAClC,IAAA,OAAOA,UAAU,CAACG,QAAQ,EAAE,CAAA;AAChC,GAAA;EACA,OAAAC,EAAAA,CAAAA,MAAA,CAAUJ,UAAU,EAAA,KAAA,CAAA,CAAA;AACxB,EAAC;AAEM,IAAMK,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,QAAmB,EAAEC,eAA8C,EAAA;EAAA,OACjGC,cAAQ,CAACC,GAAG,CAACH,QAAQ,EAAE,UAACI,KAAK,EAAK;AAC9B,IAAA,kBAAIC,KAAK,CAACC,cAAc,CAACF,KAAK,CAAC,EAAE;AAC7B,MAAA,oBAAOC,KAAK,CAACE,YAAY,CAACH,KAAK,EAAEH,eAAe,CAAC,CAAA;AACrD,KAAA;AACA,IAAA,OAAOG,KAAK,CAAA;AAChB,GAAC,CAAC,CAAA;AAAA,EAAA;AAEN,IAAMI,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,OAAY,EAA6B;EAC5D,OAAOC,gCAAA,CAAOD,OAAO,CAAA,KAAK,QAAQ,IAAI,OAAOA,OAAO,KAAK,UAAU,CAAA;AACvE,CAAC,CAAA;AAEM,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIF,OAAgC,EAAEG,KAAa,EAAK;AAClF,EAAA,kBAAIN,oBAAc,CAACG,OAAO,CAAC,EAAE;AACzB,IAAA,oBAAOF,kBAAY,CAACE,OAAO,EAAEG,KAAK,CAAC,CAAA;AACvC,GAAA;AAEA,EAAA,IAAIJ,aAAa,CAACC,OAAO,CAAC,EAAE;IACxB,IAAMI,SAAS,GAAGJ,OAAO,CAAA;AAEzB,IAAA,oBAAOJ,KAAA,CAAAS,aAAA,CAACD,SAAS,EAAKD,KAAQ,CAAC,CAAA;AACnC,GAAA;AAEA,EAAA,OAAOH,OAAO,CAAA;AAClB;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/Dropdown/utils/index.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport React, { Children, HTMLAttributes, ElementType, cloneElement, isValidElement } from 'react';\n\nimport type { DropdownProps } from '../Dropdown.types';\n\nexport const getCorrectHeight = (listHeight: Required<DropdownProps>['listHeight']): string => {\n if (Number.isNaN(Number(listHeight))) {\n return listHeight.toString();\n }\n return `${listHeight}rem`;\n};\n\nexport const childrenWithProps = (children: ReactNode, additionalProps: HTMLAttributes<HTMLLIElement>) =>\n Children.map(children, (child) => {\n if (React.isValidElement(child)) {\n return React.cloneElement(child, additionalProps);\n }\n return child;\n });\n\nconst isReactObject = (element: any): element is ElementType => {\n return typeof element === 'object' || typeof element === 'function';\n};\n\nexport const getValidComponent = (element: ElementType | ReactNode, props: object) => {\n if (isValidElement(element)) {\n return cloneElement(element, props);\n }\n\n if (isReactObject(element)) {\n const Component = element;\n\n return <Component {...props} />;\n }\n\n return element;\n};\n"],"names":["getCorrectHeight","listHeight","Number","isNaN","toString","concat","childrenWithProps","children","additionalProps","Children","map","child","React","isValidElement","cloneElement","isReactObject","element","_typeof","getValidComponent","props","Component","createElement"],"mappings":";;;;;;;IAKaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,UAAiD,EAAa;EAC3F,IAAIC,MAAM,CAACC,KAAK,CAACD,MAAM,CAACD,UAAU,CAAC,CAAC,EAAE;AAClC,IAAA,OAAOA,UAAU,CAACG,QAAQ,EAAE,CAAA;AAChC,GAAA;EACA,OAAAC,EAAAA,CAAAA,MAAA,CAAUJ,UAAU,EAAA,KAAA,CAAA,CAAA;AACxB,EAAC;AAEM,IAAMK,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,QAAmB,EAAEC,eAA8C,EAAA;EAAA,OACjGC,cAAQ,CAACC,GAAG,CAACH,QAAQ,EAAE,UAACI,KAAK,EAAK;AAC9B,IAAA,kBAAIC,KAAK,CAACC,cAAc,CAACF,KAAK,CAAC,EAAE;AAC7B,MAAA,oBAAOC,KAAK,CAACE,YAAY,CAACH,KAAK,EAAEH,eAAe,CAAC,CAAA;AACrD,KAAA;AACA,IAAA,OAAOG,KAAK,CAAA;AAChB,GAAC,CAAC,CAAA;AAAA,EAAA;AAEN,IAAMI,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,OAAY,EAA6B;EAC5D,OAAOC,gCAAA,CAAOD,OAAO,CAAA,KAAK,QAAQ,IAAI,OAAOA,OAAO,KAAK,UAAU,CAAA;AACvE,CAAC,CAAA;AAEM,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIF,OAAgC,EAAEG,KAAa,EAAK;AAClF,EAAA,kBAAIN,oBAAc,CAACG,OAAO,CAAC,EAAE;AACzB,IAAA,oBAAOF,kBAAY,CAACE,OAAO,EAAEG,KAAK,CAAC,CAAA;AACvC,GAAA;AAEA,EAAA,IAAIJ,aAAa,CAACC,OAAO,CAAC,EAAE;IACxB,IAAMI,SAAS,GAAGJ,OAAO,CAAA;AAEzB,IAAA,oBAAOJ,KAAA,CAAAS,aAAA,CAACD,SAAS,EAAKD,KAAQ,CAAC,CAAA;AACnC,GAAA;AAEA,EAAA,OAAOH,OAAO,CAAA;AAClB;;;;;;"}
@@ -30,14 +30,14 @@
30
30
  .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);}
31
31
  .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;}
32
32
 
33
- .Notification_styles_7h8hp0_sb12p__2b784e15{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}
34
- .Notification_styles_7h8hp0_crvd7hm__2b784e15{position:absolute;width:1.5rem;height:1.5rem;color:var(--plasma-notification-close-icon-color);}.Notification_styles_7h8hp0_crvd7hm__2b784e15:hover{color:var(--plasma-notification-close-icon-color-on-hover);}.Notification_styles_7h8hp0_crvd7hm__2b784e15.Notification_styles_7h8hp0_notificationLayoutHorizontal__2b784e15{position:relative;}
35
- .Notification_styles_7h8hp0_wg1ga5v__2b784e15{position:relative;box-sizing:border-box;background:var(--plasma-notification-backgorund);border-radius:var(--plasma-notification-border-radius);}.Notification_styles_7h8hp0_wg1ga5v__2b784e15.Notification_styles_7h8hp0_notificationLayoutHorizontal__2b784e15{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;gap:var(--plasma-notification-horizontal-layout-gap);}
36
- .Notification_styles_7h8hp0_b1amsn8a__2b784e15{margin-top:var(--plasma-notification-buttons-margin-top);margin-left:var(--b1amsn8a-0);}.Notification_styles_7h8hp0_b1amsn8a__2b784e15.Notification_styles_7h8hp0_notificationLayoutHorizontal__2b784e15{margin-top:unset;margin-left:unset;}
37
- .Notification_styles_7h8hp0_i14raqr9__2b784e15{width:var(--plasma-notification-content-left-icon-size);height:var(--plasma-notification-content-left-icon-size);margin-right:var(--i14raqr9-0);margin-bottom:var(--i14raqr9-1);}.Notification_styles_7h8hp0_i14raqr9__2b784e15.Notification_styles_7h8hp0_notificationLayoutHorizontal__2b784e15{margin-right:var(--plasma-notification-horizontal-layout-left-icon-margin);margin-bottom:unset;}
38
- .Notification_styles_7h8hp0_c157peez__2b784e15{display:var(--c157peez-0);padding-top:var(--c157peez-1);}.Notification_styles_7h8hp0_c157peez__2b784e15.Notification_styles_7h8hp0_notificationLayoutHorizontal__2b784e15{padding:unset;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-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
39
- .Notification_styles_7h8hp0_t1vmb0f2__2b784e15{padding:var(--plasma-notification-textbox-padding-top) var(--plasma-notification-textbox-padding-right) var(--plasma-notification-textbox-padding-bottom) var(--plasma-notification-textbox-padding-left);padding-top:var(--t1vmb0f2-0);padding-right:var(--t1vmb0f2-1);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;row-gap:var(--plasma-notification-textbox-gap);word-break:break-word;}.Notification_styles_7h8hp0_t1vmb0f2__2b784e15.Notification_styles_7h8hp0_notificationLayoutHorizontal__2b784e15{padding:unset;}
40
- .Notification_styles_7h8hp0_s1k4e58v__2b784e15{font-family:var(--plasma-notification-title-font-family);font-size:var(--plasma-notification-title-font-size);font-style:var(--plasma-notification-title-font-style);font-weight:var(--plasma-notification-title-font-weight);-webkit-letter-spacing:var(--plasma-notification-title-font-letter-spacing);-moz-letter-spacing:var(--plasma-notification-title-font-letter-spacing);-ms-letter-spacing:var(--plasma-notification-title-font-letter-spacing);letter-spacing:var(--plasma-notification-title-font-letter-spacing);line-height:var(--plasma-notification-title-font-line-height);overflow-wrap:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;}
41
- .Notification_styles_7h8hp0_s92kmpm__2b784e15{font-family:var(--plasma-notification-content-font-family);font-size:var(--plasma-notification-content-font-size);font-style:var(--plasma-notification-content-font-style);font-weight:var(--plasma-notification-content-font-weight);-webkit-letter-spacing:var(--plasma-notification-content-font-letter-spacing);-moz-letter-spacing:var(--plasma-notification-content-font-letter-spacing);-ms-letter-spacing:var(--plasma-notification-content-font-letter-spacing);letter-spacing:var(--plasma-notification-content-font-letter-spacing);line-height:var(--plasma-notification-content-font-line-height);overflow-wrap:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;color:var(--plasma-notification-content-color);}
42
- .Notification_styles_7h8hp0_s18m0x6v__2b784e15{margin-top:1rem;opacity:1;}.Notification_styles_7h8hp0_s18m0x6v__2b784e15.Notification_styles_7h8hp0_s18m0x6v__2b784e15.Notification_styles_7h8hp0_notificationItemOpened__2b784e15{-webkit-animation:0.4s Notification_styles_7h8hp0_showAnimationS18m0x6v__2b784e15 ease-out;animation:0.4s Notification_styles_7h8hp0_showAnimationS18m0x6v__2b784e15 ease-out;}.Notification_styles_7h8hp0_s18m0x6v__2b784e15.Notification_styles_7h8hp0_s18m0x6v__2b784e15.Notification_styles_7h8hp0_notificationItemHidden__2b784e15{-webkit-animation:0.4s Notification_styles_7h8hp0_hideAnimationS18m0x6v__2b784e15 ease-out;animation:0.4s Notification_styles_7h8hp0_hideAnimationS18m0x6v__2b784e15 ease-out;}@-webkit-keyframes Notification_styles_7h8hp0_showAnimationS18m0x6v__2b784e15{0%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}}@keyframes Notification_styles_7h8hp0_showAnimationS18m0x6v__2b784e15{0%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}}@-webkit-keyframes Notification_styles_7h8hp0_hideAnimationS18m0x6v__2b784e15{0%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}100%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}}@keyframes Notification_styles_7h8hp0_hideAnimationS18m0x6v__2b784e15{0%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}100%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}}
43
- .Notification_styles_7h8hp0_sfe5ql2__2b784e15{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;box-sizing:border-box;padding:0 1.5rem 1.5rem;max-height:100%;-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;}
33
+ .Notification_styles_1g34msm_sb12p__eebd252f{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}
34
+ .Notification_styles_1g34msm_crvd7hm__eebd252f{position:absolute;width:1.5rem;height:1.5rem;color:var(--plasma-notification-close-icon-color);}.Notification_styles_1g34msm_crvd7hm__eebd252f:hover{color:var(--plasma-notification-close-icon-color-on-hover);}.Notification_styles_1g34msm_crvd7hm__eebd252f.Notification_styles_1g34msm_notificationLayoutHorizontal__eebd252f{position:relative;}
35
+ .Notification_styles_1g34msm_wg1ga5v__eebd252f{position:relative;box-sizing:border-box;background:var(--plasma-notification-backgorund);border-radius:var(--plasma-notification-border-radius);border:var(--plasma-notification-border-width) solid var(--plasma-notification-border-color);}.Notification_styles_1g34msm_wg1ga5v__eebd252f.Notification_styles_1g34msm_notificationLayoutHorizontal__eebd252f{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;gap:var(--plasma-notification-horizontal-layout-gap);}
36
+ .Notification_styles_1g34msm_b1amsn8a__eebd252f{margin-top:var(--plasma-notification-buttons-margin-top);margin-left:var(--b1amsn8a-0);}.Notification_styles_1g34msm_b1amsn8a__eebd252f.Notification_styles_1g34msm_notificationLayoutHorizontal__eebd252f{margin-top:unset;margin-left:unset;}
37
+ .Notification_styles_1g34msm_i14raqr9__eebd252f{width:var(--plasma-notification-content-left-icon-size);height:var(--plasma-notification-content-left-icon-size);margin-right:var(--i14raqr9-0);margin-bottom:var(--i14raqr9-1);}.Notification_styles_1g34msm_i14raqr9__eebd252f.Notification_styles_1g34msm_notificationLayoutHorizontal__eebd252f{margin-right:var(--plasma-notification-horizontal-layout-left-icon-margin);margin-bottom:unset;}
38
+ .Notification_styles_1g34msm_c157peez__eebd252f{display:var(--c157peez-0);padding-top:var(--c157peez-1);}.Notification_styles_1g34msm_c157peez__eebd252f.Notification_styles_1g34msm_notificationLayoutHorizontal__eebd252f{padding:unset;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-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
39
+ .Notification_styles_1g34msm_t1vmb0f2__eebd252f{padding:var(--plasma-notification-textbox-padding-top) var(--plasma-notification-textbox-padding-right) var(--plasma-notification-textbox-padding-bottom) var(--plasma-notification-textbox-padding-left);padding-top:var(--t1vmb0f2-0);padding-right:var(--t1vmb0f2-1);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;row-gap:var(--plasma-notification-textbox-gap);word-break:break-word;}.Notification_styles_1g34msm_t1vmb0f2__eebd252f.Notification_styles_1g34msm_notificationLayoutHorizontal__eebd252f{padding:unset;}
40
+ .Notification_styles_1g34msm_s1k4e58v__eebd252f{font-family:var(--plasma-notification-title-font-family);font-size:var(--plasma-notification-title-font-size);font-style:var(--plasma-notification-title-font-style);font-weight:var(--plasma-notification-title-font-weight);-webkit-letter-spacing:var(--plasma-notification-title-font-letter-spacing);-moz-letter-spacing:var(--plasma-notification-title-font-letter-spacing);-ms-letter-spacing:var(--plasma-notification-title-font-letter-spacing);letter-spacing:var(--plasma-notification-title-font-letter-spacing);line-height:var(--plasma-notification-title-font-line-height);overflow-wrap:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;}
41
+ .Notification_styles_1g34msm_s92kmpm__eebd252f{font-family:var(--plasma-notification-content-font-family);font-size:var(--plasma-notification-content-font-size);font-style:var(--plasma-notification-content-font-style);font-weight:var(--plasma-notification-content-font-weight);-webkit-letter-spacing:var(--plasma-notification-content-font-letter-spacing);-moz-letter-spacing:var(--plasma-notification-content-font-letter-spacing);-ms-letter-spacing:var(--plasma-notification-content-font-letter-spacing);letter-spacing:var(--plasma-notification-content-font-letter-spacing);line-height:var(--plasma-notification-content-font-line-height);overflow-wrap:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;color:var(--plasma-notification-content-color);}
42
+ .Notification_styles_1g34msm_s18m0x6v__eebd252f{margin-top:1rem;opacity:1;}.Notification_styles_1g34msm_s18m0x6v__eebd252f.Notification_styles_1g34msm_s18m0x6v__eebd252f.Notification_styles_1g34msm_notificationItemOpened__eebd252f{-webkit-animation:0.4s Notification_styles_1g34msm_showAnimationS18m0x6v__eebd252f ease-out;animation:0.4s Notification_styles_1g34msm_showAnimationS18m0x6v__eebd252f ease-out;}.Notification_styles_1g34msm_s18m0x6v__eebd252f.Notification_styles_1g34msm_s18m0x6v__eebd252f.Notification_styles_1g34msm_notificationItemHidden__eebd252f{-webkit-animation:0.4s Notification_styles_1g34msm_hideAnimationS18m0x6v__eebd252f ease-out;animation:0.4s Notification_styles_1g34msm_hideAnimationS18m0x6v__eebd252f ease-out;}@-webkit-keyframes Notification_styles_1g34msm_showAnimationS18m0x6v__eebd252f{0%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}}@keyframes Notification_styles_1g34msm_showAnimationS18m0x6v__eebd252f{0%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}}@-webkit-keyframes Notification_styles_1g34msm_hideAnimationS18m0x6v__eebd252f{0%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}100%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}}@keyframes Notification_styles_1g34msm_hideAnimationS18m0x6v__eebd252f{0%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}100%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}}
43
+ .Notification_styles_1g34msm_sfe5ql2__eebd252f{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;box-sizing:border-box;padding:0 1.5rem 1.5rem;max-height:100%;-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;}
@@ -1,4 +1,4 @@
1
- import './Notification.styles_7h8hp0.css';
1
+ import './Notification.styles_1g34msm.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -25,7 +25,7 @@ var Wrapper = /*#__PURE__*/react.styled('div')({
25
25
  "class": "wg1ga5v",
26
26
  propsAsIs: false
27
27
  });
28
- var _exp10 = function _exp10() {
28
+ var _exp12 = function _exp12() {
29
29
  return function (_ref) {
30
30
  var iconPlacement = _ref.iconPlacement;
31
31
  return iconPlacement === Notification_types.placements.left ? "var(".concat(Notification_tokens.tokens.buttonsMarginLeft, ")") : 'unset';
@@ -36,16 +36,16 @@ var ButtonsWrapper = /*#__PURE__*/react.styled('div')({
36
36
  "class": "b1amsn8a",
37
37
  propsAsIs: false,
38
38
  vars: {
39
- "b1amsn8a-0": [/*#__PURE__*/_exp10()]
39
+ "b1amsn8a-0": [/*#__PURE__*/_exp12()]
40
40
  }
41
41
  });
42
- var _exp14 = function _exp14() {
42
+ var _exp16 = function _exp16() {
43
43
  return function (_ref2) {
44
44
  var iconPlacement = _ref2.iconPlacement;
45
45
  return iconPlacement === Notification_types.placements.left ? "var(".concat(Notification_tokens.tokens.contentLeftIconMargin, ")") : 'unset';
46
46
  };
47
47
  };
48
- var _exp15 = function _exp15() {
48
+ var _exp17 = function _exp17() {
49
49
  return function (_ref3) {
50
50
  var iconPlacement = _ref3.iconPlacement;
51
51
  return iconPlacement === Notification_types.placements.top ? "var(".concat(Notification_tokens.tokens.contentTopIconMargin, ")") : 'unset';
@@ -56,17 +56,17 @@ var IconWrapper = /*#__PURE__*/react.styled('div')({
56
56
  "class": "i14raqr9",
57
57
  propsAsIs: false,
58
58
  vars: {
59
- "i14raqr9-0": [/*#__PURE__*/_exp14()],
60
- "i14raqr9-1": [/*#__PURE__*/_exp15()]
59
+ "i14raqr9-0": [/*#__PURE__*/_exp16()],
60
+ "i14raqr9-1": [/*#__PURE__*/_exp17()]
61
61
  }
62
62
  });
63
- var _exp18 = function _exp18() {
63
+ var _exp20 = function _exp20() {
64
64
  return function (_ref4) {
65
65
  var iconPlacement = _ref4.iconPlacement;
66
66
  return iconPlacement === Notification_types.placements.left ? 'flex' : 'block';
67
67
  };
68
68
  };
69
- var _exp19 = function _exp19() {
69
+ var _exp21 = function _exp21() {
70
70
  return function (_ref5) {
71
71
  var iconPlacement = _ref5.iconPlacement;
72
72
  return iconPlacement ? "var(".concat(Notification_tokens.tokens.contentPaddingTop, ")") : "var(".concat(Notification_tokens.tokens.contentPaddingTopWithoutIcon, ")");
@@ -77,17 +77,17 @@ var ContentBox = /*#__PURE__*/react.styled('div')({
77
77
  "class": "c157peez",
78
78
  propsAsIs: false,
79
79
  vars: {
80
- "c157peez-0": [/*#__PURE__*/_exp18()],
81
- "c157peez-1": [/*#__PURE__*/_exp19()]
80
+ "c157peez-0": [/*#__PURE__*/_exp20()],
81
+ "c157peez-1": [/*#__PURE__*/_exp21()]
82
82
  }
83
83
  });
84
- var _exp25 = function _exp25() {
84
+ var _exp27 = function _exp27() {
85
85
  return function (_ref6) {
86
86
  var iconPlacement = _ref6.iconPlacement;
87
87
  return !iconPlacement || iconPlacement === Notification_types.placements.top ? "var(".concat(Notification_tokens.tokens.textboxPaddingTopWithTopIcon, ")") : "var(".concat(Notification_tokens.tokens.textboxPaddingTop, ")");
88
88
  };
89
89
  };
90
- var _exp26 = function _exp26() {
90
+ var _exp28 = function _exp28() {
91
91
  return function (_ref7) {
92
92
  var showCloseIcon = _ref7.showCloseIcon,
93
93
  iconPlacement = _ref7.iconPlacement;
@@ -99,8 +99,8 @@ var TextBox = /*#__PURE__*/react.styled('div')({
99
99
  "class": "t1vmb0f2",
100
100
  propsAsIs: false,
101
101
  vars: {
102
- "t1vmb0f2-0": [/*#__PURE__*/_exp25()],
103
- "t1vmb0f2-1": [/*#__PURE__*/_exp26()]
102
+ "t1vmb0f2-0": [/*#__PURE__*/_exp27()],
103
+ "t1vmb0f2-1": [/*#__PURE__*/_exp28()]
104
104
  }
105
105
  });
106
106
  var StyledTitle = /*#__PURE__*/react.styled('div')({
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.styles.js","sources":["../../../src/components/Notification/Notification.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\nimport { styled } from '@linaria/react';\n\nimport { applyHyphens } from '../../mixins';\nimport { buttonConfig } from '../Button';\nimport { component, mergeConfig } from '../../engines';\n\nimport { classes, tokens } from './Notification.tokens';\nimport { CloseIconType, IconPlacementType, placements } from './Notification.types';\n\nexport const StyledNotification = css`\n width: fit-content;\n`;\n\nconst mergedButtonConfig = mergeConfig(buttonConfig);\nconst Button = component(mergedButtonConfig);\n\nexport const CloseIconWrapper = styled(Button)`\n position: absolute;\n width: 1.5rem;\n height: 1.5rem;\n\n color: var(${tokens.closeIconColor});\n\n :hover {\n color: var(${tokens.closeIconColorOnHover});\n }\n\n &.${classes.horizontal} {\n position: relative;\n }\n`;\n\nexport const Wrapper = styled.div`\n position: relative;\n box-sizing: border-box;\n\n background: var(${tokens.background});\n border-radius: var(${tokens.borderRadius});\n\n &.${classes.horizontal} {\n display: flex;\n align-items: center;\n gap: var(${tokens.horizontalLayoutGap});\n }\n`;\n\nexport const ButtonsWrapper = styled.div<IconPlacementType>`\n margin-top: var(${tokens.buttonsMarginTop});\n margin-left: ${({ iconPlacement }) =>\n iconPlacement === placements.left ? `var(${tokens.buttonsMarginLeft})` : 'unset'};\n\n &.${classes.horizontal} {\n margin-top: unset;\n margin-left: unset;\n }\n`;\n\nexport const IconWrapper = styled.div<IconPlacementType>`\n width: var(${tokens.contentLeftIconSize});\n height: var(${tokens.contentLeftIconSize});\n\n margin-right: ${({ iconPlacement }) =>\n iconPlacement === placements.left ? `var(${tokens.contentLeftIconMargin})` : 'unset'};\n margin-bottom: ${({ iconPlacement }) =>\n iconPlacement === placements.top ? `var(${tokens.contentTopIconMargin})` : 'unset'};\n\n &.${classes.horizontal} {\n margin-right: var(${tokens.horizontalLayoutLeftIconMargin});\n margin-bottom: unset;\n }\n`;\n\nexport const ContentBox = styled.div<IconPlacementType>`\n // TODO: переделать, когда научимся работать с токенами при пересечнии свойств\n // issue #909\n display: ${({ iconPlacement }) => (iconPlacement === placements.left ? 'flex' : 'block')};\n\n padding-top: ${({ iconPlacement }) =>\n iconPlacement ? `var(${tokens.contentPaddingTop})` : `var(${tokens.contentPaddingTopWithoutIcon})`};\n\n &.${classes.horizontal} {\n padding: unset;\n display: flex;\n align-items: center;\n flex-grow: 1;\n }\n`;\n\nexport const TextBox = styled.div<CloseIconType & IconPlacementType>`\n padding: var(${tokens.textboxPaddingTop}) var(${tokens.textboxPaddingRight}) var(${tokens.textboxPaddingBottom})\n var(${tokens.textboxPaddingLeft});\n\n padding-top: ${({ iconPlacement }) =>\n !iconPlacement || iconPlacement === placements.top\n ? `var(${tokens.textboxPaddingTopWithTopIcon})`\n : `var(${tokens.textboxPaddingTop})`};\n padding-right: ${({ showCloseIcon, iconPlacement }) =>\n showCloseIcon && iconPlacement !== placements.top\n ? `var(${tokens.textboxPaddingRightWithCloseIcon})`\n : `var(${tokens.textboxPaddingRight})`};\n\n display: flex;\n flex-direction: column;\n row-gap: var(${tokens.textboxGap});\n word-break: break-word;\n\n &.${classes.horizontal} {\n padding: unset;\n }\n`;\n\nexport const StyledTitle = styled.div`\n font-family: var(${tokens.titleFontFamily});\n font-size: var(${tokens.titleFontSize});\n font-style: var(${tokens.titleFontStyle});\n font-weight: var(${tokens.titleFontWeight});\n letter-spacing: var(${tokens.titleFontLetterSpacing});\n line-height: var(${tokens.titleFontLineHeight});\n ${String(applyHyphens)};\n`;\n\nexport const StyledContent = styled.div`\n font-family: var(${tokens.contentFontFamily});\n font-size: var(${tokens.contentFontSize});\n font-style: var(${tokens.contentFontStyle});\n font-weight: var(${tokens.contentFontWeight});\n letter-spacing: var(${tokens.contentFontLetterSpacing});\n line-height: var(${tokens.contentFontLineHeight});\n ${String(applyHyphens)};\n\n color: var(${tokens.contentColor});\n`;\n\nexport const StyledItemWrapper = styled.div<{ isHidden: boolean }>`\n margin-top: 1rem;\n opacity: 1;\n\n &&.${classes.notificationItemOpened} {\n animation: 0.4s showAnimation ease-out;\n }\n\n &&.${classes.notificationItemHidden} {\n animation: 0.4s hideAnimation ease-out;\n }\n\n @keyframes showAnimation {\n 0% {\n transform: translateX(100%);\n opacity: 0;\n }\n\n 100% {\n transform: translateX(0);\n opacity: 1;\n }\n }\n\n @keyframes hideAnimation {\n 0% {\n transform: translateX(0);\n opacity: 1;\n }\n\n 100% {\n transform: translateX(100%);\n opacity: 0;\n }\n }\n`;\n\nexport const StyledRoot = styled.div`\n display: flex;\n flex-direction: column-reverse;\n box-sizing: border-box;\n padding: 0 1.5rem 1.5rem;\n max-height: 100%;\n align-items: flex-end;\n`;\n"],"names":["StyledNotification","mergedButtonConfig","mergeConfig","buttonConfig","Button","component","_exp","CloseIconWrapper","styled","name","class","propsAsIs","Wrapper","_exp10","_ref","iconPlacement","placements","left","concat","tokens","buttonsMarginLeft","ButtonsWrapper","vars","_exp14","_ref2","contentLeftIconMargin","_exp15","_ref3","top","contentTopIconMargin","IconWrapper","_exp18","_ref4","_exp19","_ref5","contentPaddingTop","contentPaddingTopWithoutIcon","ContentBox","_exp25","_ref6","textboxPaddingTopWithTopIcon","textboxPaddingTop","_exp26","_ref7","showCloseIcon","textboxPaddingRightWithCloseIcon","textboxPaddingRight","TextBox","StyledTitle","StyledContent","StyledItemWrapper","StyledRoot"],"mappings":";;;;;;;;;;AAUO,IAAMA,kBAAkB,GAE9B,QAAA;AAED,IAAMC,kBAAkB,gBAAGC,kBAAW,CAACC,qBAAY,CAAC,CAAA;AACpD,IAAMC,MAAM,gBAAGC,gBAAS,CAACJ,kBAAkB,CAAC,CAAA;AAAC,IAAAK,IAAA,GAd3BA,SAc2BA,IAAAA,GAAA;AAAA,EAAA,OAENF,MAAM,CAAA;AAAA,CAAA,CAAA;AAAtC,IAAMG,gBAAgB,gBAAGC,YAAM,CAAAF,IAAA,EAAA,CAAA,CAAA;AAAAG,EAAAA,IAAA,EAAA,kBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAcrC,EAAA;AAEM,IAAMC,OAAO,gBAAGJ,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,SAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAY5B,EAAA;AAAC,IAAAE,MAAA,GA5CgBA,SA4ChBA,MAAAA,GAAA;AAAA,EAAA,OAIiB,UAAAC,IAAA,EAAA;AAAA,IAAA,IAAGC,aAAAA,GAAAA,IAAAA,CAAAA,aAAAA,CAAAA;AAAAA,IAAAA,OACdA,aAAa,KAAKC,6BAAU,CAACC,IAAI,GAAA,MAAA,CAAAC,MAAA,CAAUC,0BAAM,CAACC,iBAAkB,EAAA,GAAA,CAAA,GAAK,OAAO,CAAA;AAAA,GAAA,CAAA;AAAA,CAAA,CAAA;AAHj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AA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAUlC,EAAA;AAEM,IAAMuC,iBAAiB,gBAAG1C,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAmCtC,EAAA;AAEM,IAAMwC,UAAU,gBAAG3C,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAO/B;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Notification.styles.js","sources":["../../../src/components/Notification/Notification.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\nimport { styled } from '@linaria/react';\n\nimport { applyHyphens } from '../../mixins';\nimport { buttonConfig } from '../Button';\nimport { component, mergeConfig } from '../../engines';\n\nimport { classes, tokens } from './Notification.tokens';\nimport { CloseIconType, IconPlacementType, placements } from './Notification.types';\n\nexport const StyledNotification = css`\n width: fit-content;\n`;\n\nconst mergedButtonConfig = mergeConfig(buttonConfig);\nconst Button = component(mergedButtonConfig);\n\nexport const CloseIconWrapper = styled(Button)`\n position: absolute;\n width: 1.5rem;\n height: 1.5rem;\n\n color: var(${tokens.closeIconColor});\n\n :hover {\n color: var(${tokens.closeIconColorOnHover});\n }\n\n &.${classes.horizontal} {\n position: relative;\n }\n`;\n\nexport const Wrapper = styled.div`\n position: relative;\n box-sizing: border-box;\n\n background: var(${tokens.background});\n border-radius: var(${tokens.borderRadius});\n border: var(${tokens.borderWidth}) solid var(${tokens.borderColor});\n\n &.${classes.horizontal} {\n display: flex;\n align-items: center;\n gap: var(${tokens.horizontalLayoutGap});\n }\n`;\n\nexport const ButtonsWrapper = styled.div<IconPlacementType>`\n margin-top: var(${tokens.buttonsMarginTop});\n margin-left: ${({ iconPlacement }) =>\n iconPlacement === placements.left ? `var(${tokens.buttonsMarginLeft})` : 'unset'};\n\n &.${classes.horizontal} {\n margin-top: unset;\n margin-left: unset;\n }\n`;\n\nexport const IconWrapper = styled.div<IconPlacementType>`\n width: var(${tokens.contentLeftIconSize});\n height: var(${tokens.contentLeftIconSize});\n\n margin-right: ${({ iconPlacement }) =>\n iconPlacement === placements.left ? `var(${tokens.contentLeftIconMargin})` : 'unset'};\n margin-bottom: ${({ iconPlacement }) =>\n iconPlacement === placements.top ? `var(${tokens.contentTopIconMargin})` : 'unset'};\n\n &.${classes.horizontal} {\n margin-right: var(${tokens.horizontalLayoutLeftIconMargin});\n margin-bottom: unset;\n }\n`;\n\nexport const ContentBox = styled.div<IconPlacementType>`\n // TODO: переделать, когда научимся работать с токенами при пересечнии свойств\n // issue #909\n display: ${({ iconPlacement }) => (iconPlacement === placements.left ? 'flex' : 'block')};\n\n padding-top: ${({ iconPlacement }) =>\n iconPlacement ? `var(${tokens.contentPaddingTop})` : `var(${tokens.contentPaddingTopWithoutIcon})`};\n\n &.${classes.horizontal} {\n padding: unset;\n display: flex;\n align-items: center;\n flex-grow: 1;\n }\n`;\n\nexport const TextBox = styled.div<CloseIconType & IconPlacementType>`\n padding: var(${tokens.textboxPaddingTop}) var(${tokens.textboxPaddingRight}) var(${tokens.textboxPaddingBottom})\n var(${tokens.textboxPaddingLeft});\n\n padding-top: ${({ iconPlacement }) =>\n !iconPlacement || iconPlacement === placements.top\n ? `var(${tokens.textboxPaddingTopWithTopIcon})`\n : `var(${tokens.textboxPaddingTop})`};\n padding-right: ${({ showCloseIcon, iconPlacement }) =>\n showCloseIcon && iconPlacement !== placements.top\n ? `var(${tokens.textboxPaddingRightWithCloseIcon})`\n : `var(${tokens.textboxPaddingRight})`};\n\n display: flex;\n flex-direction: column;\n row-gap: var(${tokens.textboxGap});\n word-break: break-word;\n\n &.${classes.horizontal} {\n padding: unset;\n }\n`;\n\nexport const StyledTitle = styled.div`\n font-family: var(${tokens.titleFontFamily});\n font-size: var(${tokens.titleFontSize});\n font-style: var(${tokens.titleFontStyle});\n font-weight: var(${tokens.titleFontWeight});\n letter-spacing: var(${tokens.titleFontLetterSpacing});\n line-height: var(${tokens.titleFontLineHeight});\n ${String(applyHyphens)};\n`;\n\nexport const StyledContent = styled.div`\n font-family: var(${tokens.contentFontFamily});\n font-size: var(${tokens.contentFontSize});\n font-style: var(${tokens.contentFontStyle});\n font-weight: var(${tokens.contentFontWeight});\n letter-spacing: var(${tokens.contentFontLetterSpacing});\n line-height: var(${tokens.contentFontLineHeight});\n ${String(applyHyphens)};\n\n color: var(${tokens.contentColor});\n`;\n\nexport const StyledItemWrapper = styled.div<{ isHidden: boolean }>`\n margin-top: 1rem;\n opacity: 1;\n\n &&.${classes.notificationItemOpened} {\n animation: 0.4s showAnimation ease-out;\n }\n\n &&.${classes.notificationItemHidden} {\n animation: 0.4s hideAnimation ease-out;\n }\n\n @keyframes showAnimation {\n 0% {\n transform: translateX(100%);\n opacity: 0;\n }\n\n 100% {\n transform: translateX(0);\n opacity: 1;\n }\n }\n\n @keyframes hideAnimation {\n 0% {\n transform: translateX(0);\n opacity: 1;\n }\n\n 100% {\n transform: translateX(100%);\n opacity: 0;\n }\n }\n`;\n\nexport const StyledRoot = styled.div`\n display: flex;\n flex-direction: column-reverse;\n box-sizing: border-box;\n padding: 0 1.5rem 1.5rem;\n max-height: 100%;\n align-items: flex-end;\n`;\n"],"names":["StyledNotification","mergedButtonConfig","mergeConfig","buttonConfig","Button","component","_exp","CloseIconWrapper","styled","name","class","propsAsIs","Wrapper","_exp12","_ref","iconPlacement","placements","left","concat","tokens","buttonsMarginLeft","ButtonsWrapper","vars","_exp16","_ref2","contentLeftIconMargin","_exp17","_ref3","top","contentTopIconMargin","IconWrapper","_exp20","_ref4","_exp21","_ref5","contentPaddingTop","contentPaddingTopWithoutIcon","ContentBox","_exp27","_ref6","textboxPaddingTopWithTopIcon","textboxPaddingTop","_exp28","_ref7","showCloseIcon","textboxPaddingRightWithC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AAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAmCtC,EAAA;AAEM,IAAMwC,UAAU,gBAAG3C,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAO/B;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  .sb12p{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}
2
2
  .crvd7hm{position:absolute;width:1.5rem;height:1.5rem;color:var(--plasma-notification-close-icon-color);}.crvd7hm:hover{color:var(--plasma-notification-close-icon-color-on-hover);}.crvd7hm.notification-layout-horizontal{position:relative;}
3
- .wg1ga5v{position:relative;box-sizing:border-box;background:var(--plasma-notification-backgorund);border-radius:var(--plasma-notification-border-radius);}.wg1ga5v.notification-layout-horizontal{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;gap:var(--plasma-notification-horizontal-layout-gap);}
3
+ .wg1ga5v{position:relative;box-sizing:border-box;background:var(--plasma-notification-backgorund);border-radius:var(--plasma-notification-border-radius);border:var(--plasma-notification-border-width) solid var(--plasma-notification-border-color);}.wg1ga5v.notification-layout-horizontal{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;gap:var(--plasma-notification-horizontal-layout-gap);}
4
4
  .b1amsn8a{margin-top:var(--plasma-notification-buttons-margin-top);margin-left:var(--b1amsn8a-0);}.b1amsn8a.notification-layout-horizontal{margin-top:unset;margin-left:unset;}
5
5
  .i14raqr9{width:var(--plasma-notification-content-left-icon-size);height:var(--plasma-notification-content-left-icon-size);margin-right:var(--i14raqr9-0);margin-bottom:var(--i14raqr9-1);}.i14raqr9.notification-layout-horizontal{margin-right:var(--plasma-notification-horizontal-layout-left-icon-margin);margin-bottom:unset;}
6
6
  .c157peez{display:var(--c157peez-0);padding-top:var(--c157peez-1);}.c157peez.notification-layout-horizontal{padding:unset;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-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
@@ -25,6 +25,8 @@ var tokens = {
25
25
  horizontalLayoutPadding: '--plasma-notification-horizontal-layout-padding',
26
26
  width: '--plasma-notification-width',
27
27
  borderRadius: '--plasma-notification-border-radius',
28
+ borderWidth: '--plasma-notification-border-width',
29
+ borderColor: '--plasma-notification-border-color',
28
30
  paddingOneLineTextbox: '--plasma-notification-padding-one-line-textbox',
29
31
  horizontalLayoutGap: '--plasma-notification-horizontal-layout-gap',
30
32
  horizontalLayoutLeftIconMargin: '--plasma-notification-horizontal-layout-left-icon-margin',