@megafon/ui-core 6.0.0-beta.4 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (513) hide show
  1. package/CHANGELOG.md +4008 -0
  2. package/dist/es/colors/ColorItem/ColorItem.css +45 -1
  3. package/dist/es/colors/ColorItem/ColorItem.d.ts +2 -2
  4. package/dist/es/colors/ColorItem/ColorItem.js +7 -5
  5. package/dist/es/colors/Colors.css +233 -1
  6. package/dist/es/colors/Colors.d.ts +1 -1
  7. package/dist/es/colors/Colors.js +55 -33
  8. package/dist/es/colors/colorsData.d.ts +4 -4
  9. package/dist/es/components/Accordion/Accordion.css +89 -1
  10. package/dist/es/components/Accordion/Accordion.d.ts +1 -2
  11. package/dist/es/components/Accordion/Accordion.js +65 -22
  12. package/dist/es/components/Avatar/Avatar.css +52 -1
  13. package/dist/es/components/Avatar/Avatar.d.ts +1 -1
  14. package/dist/es/components/Avatar/Avatar.js +27 -9
  15. package/dist/es/components/Avatar/doc/i/img.png +0 -0
  16. package/dist/es/components/Badges/components/CounterBadge/CounterBadge.css +54 -0
  17. package/dist/es/components/Badges/{CounterBadge → components/CounterBadge}/CounterBadge.d.ts +2 -2
  18. package/dist/es/components/Badges/{CounterBadge → components/CounterBadge}/CounterBadge.js +28 -10
  19. package/dist/es/components/Badges/components/NotificationBadge/NotificationBadge.css +58 -0
  20. package/dist/es/components/Badges/{NotificationBadge → components/NotificationBadge}/NotificationBadge.d.ts +4 -3
  21. package/dist/es/components/Badges/components/NotificationBadge/NotificationBadge.js +49 -0
  22. package/dist/es/components/Badges/components/PriceBadge/PriceBadge.css +119 -0
  23. package/dist/es/components/Badges/{PriceBadge → components/PriceBadge}/PriceBadge.d.ts +4 -4
  24. package/dist/es/components/Badges/{PriceBadge → components/PriceBadge}/PriceBadge.js +54 -11
  25. package/dist/es/components/Badges/components/PromoBadge/PromoBadge.css +64 -0
  26. package/dist/{lib/components/Badges → es/components/Badges/components}/PromoBadge/PromoBadge.d.ts +3 -3
  27. package/dist/es/components/Badges/{PromoBadge → components/PromoBadge}/PromoBadge.js +21 -7
  28. package/dist/es/components/Badges/{TimerBadge/components → components/TimerBadge}/Timer/Timer.js +32 -5
  29. package/dist/es/components/Badges/components/TimerBadge/TimerBadge.css +60 -0
  30. package/dist/{lib/components/Badges → es/components/Badges/components}/TimerBadge/TimerBadge.d.ts +2 -2
  31. package/dist/es/components/Badges/{TimerBadge → components/TimerBadge}/TimerBadge.js +45 -22
  32. package/dist/es/components/Banner/Banner.css +195 -1
  33. package/dist/es/components/Banner/Banner.d.ts +4 -5
  34. package/dist/es/components/Banner/Banner.js +129 -64
  35. package/dist/es/components/Banner/BannerDot.css +69 -1
  36. package/dist/es/components/Banner/BannerDot.d.ts +1 -1
  37. package/dist/es/components/Banner/BannerDot.js +22 -6
  38. package/dist/es/components/Banner/slidesSettings.d.ts +2 -4
  39. package/dist/es/components/Banner/slidesSettings.js +6 -3
  40. package/dist/es/components/Button/Button.css +814 -1
  41. package/dist/es/components/Button/Button.d.ts +6 -7
  42. package/dist/es/components/Button/Button.js +104 -44
  43. package/dist/es/components/Calendar/Calendar.css +5 -1
  44. package/dist/es/components/Calendar/Calendar.d.ts +2 -2
  45. package/dist/es/components/Calendar/Calendar.js +114 -60
  46. package/dist/es/components/Calendar/components/Day/Day.css +128 -0
  47. package/dist/{lib/components/Calendar/components/_Day → es/components/Calendar/components/Day}/Day.d.ts +4 -4
  48. package/dist/es/components/Calendar/components/{_Day → Day}/Day.js +50 -19
  49. package/dist/es/components/Calendar/components/Month/Month.css +81 -0
  50. package/dist/es/components/Calendar/components/{_Month → Month}/Month.d.ts +2 -3
  51. package/dist/es/components/Calendar/components/{_Month → Month}/Month.js +33 -9
  52. package/dist/es/components/Caption/Caption.css +48 -1
  53. package/dist/es/components/Caption/Caption.d.ts +2 -4
  54. package/dist/es/components/Caption/Caption.js +25 -11
  55. package/dist/es/components/Carousel/Carousel.css +215 -1
  56. package/dist/es/components/Carousel/Carousel.d.ts +10 -11
  57. package/dist/es/components/Carousel/Carousel.js +161 -104
  58. package/dist/es/components/Carousel/checkBreakpointsPropTypes.d.ts +1 -1
  59. package/dist/es/components/Carousel/checkBreakpointsPropTypes.js +4 -1
  60. package/dist/es/components/Carousel/useGradient.d.ts +1 -1
  61. package/dist/es/components/Carousel/useGradient.js +13 -9
  62. package/dist/es/components/Checkbox/Checkbox.css +150 -1
  63. package/dist/es/components/Checkbox/Checkbox.d.ts +4 -4
  64. package/dist/es/components/Checkbox/Checkbox.js +50 -21
  65. package/dist/es/components/Chips/Chip.css +132 -1
  66. package/dist/es/components/Chips/Chip.d.ts +26 -6
  67. package/dist/es/components/Chips/Chip.js +42 -17
  68. package/dist/es/components/Chips/Chips.css +19 -1
  69. package/dist/es/components/Chips/Chips.d.ts +2 -2
  70. package/dist/es/components/Chips/Chips.js +56 -32
  71. package/dist/es/components/Chips/components/ChipsDropdown.css +106 -1
  72. package/dist/es/components/Chips/components/ChipsDropdown.d.ts +2 -2
  73. package/dist/es/components/Chips/components/ChipsDropdown.js +27 -12
  74. package/dist/es/components/Collapse/Collapse.css +3 -0
  75. package/dist/{lib/components/_Collapse → es/components/Collapse}/Collapse.d.ts +3 -3
  76. package/dist/es/components/{_Collapse → Collapse}/Collapse.js +62 -25
  77. package/dist/es/components/ContentArea/ContentArea.css +109 -1
  78. package/dist/es/components/ContentArea/ContentArea.d.ts +4 -5
  79. package/dist/es/components/ContentArea/ContentArea.js +28 -9
  80. package/dist/es/components/ContentView/ContentView.css +103 -1
  81. package/dist/es/components/ContentView/ContentView.d.ts +2 -3
  82. package/dist/es/components/ContentView/ContentView.js +46 -12
  83. package/dist/es/components/Counter/Counter.css +123 -1
  84. package/dist/es/components/Counter/Counter.d.ts +1 -1
  85. package/dist/es/components/Counter/Counter.js +55 -20
  86. package/dist/es/components/Grid/Grid.css +102 -1
  87. package/dist/es/components/Grid/Grid.d.ts +1 -1
  88. package/dist/es/components/Grid/Grid.js +24 -8
  89. package/dist/es/components/Grid/GridColumn.css +3102 -1
  90. package/dist/es/components/Grid/GridColumn.d.ts +2 -2
  91. package/dist/es/components/Grid/GridColumn.js +62 -33
  92. package/dist/es/components/Header/Header.css +122 -1
  93. package/dist/es/components/Header/Header.d.ts +1 -3
  94. package/dist/es/components/Header/Header.js +28 -13
  95. package/dist/es/components/Link/Link.d.ts +2 -2
  96. package/dist/es/components/Link/Link.js +25 -9
  97. package/dist/es/components/List/List.css +66 -1
  98. package/dist/es/components/List/List.d.ts +1 -2
  99. package/dist/es/components/List/List.js +18 -8
  100. package/dist/es/components/List/ListItem.css +6 -1
  101. package/dist/es/components/List/ListItem.d.ts +1 -2
  102. package/dist/es/components/List/ListItem.js +7 -1
  103. package/dist/es/components/ListData/ListData.css +162 -1
  104. package/dist/es/components/ListData/ListData.d.ts +34 -6
  105. package/dist/es/components/ListData/ListData.js +65 -22
  106. package/dist/es/components/ListData/ListDataGroup.css +15 -1
  107. package/dist/es/components/ListData/ListDataGroup.d.ts +4 -4
  108. package/dist/es/components/ListData/ListDataGroup.js +74 -29
  109. package/dist/es/components/ListData/components/ListDataSortable.css +79 -1
  110. package/dist/es/components/ListData/components/ListDataSortable.d.ts +4 -4
  111. package/dist/es/components/ListData/components/ListDataSortable.js +42 -21
  112. package/dist/es/components/ListData/doc/i/img.png +0 -0
  113. package/dist/es/components/ListData/helpers.js +8 -1
  114. package/dist/es/components/Logo/Logo.css +43 -1
  115. package/dist/es/components/Logo/Logo.d.ts +1 -1
  116. package/dist/es/components/Logo/Logo.js +25 -9
  117. package/dist/es/components/NavArrow/NavArrow.css +63 -1
  118. package/dist/es/components/NavArrow/NavArrow.d.ts +3 -3
  119. package/dist/es/components/NavArrow/NavArrow.js +28 -8
  120. package/dist/es/components/Notification/Notification.css +350 -1
  121. package/dist/es/components/Notification/Notification.d.ts +4 -5
  122. package/dist/es/components/Notification/Notification.js +131 -61
  123. package/dist/es/components/Pagination/Pagination.css +5 -1
  124. package/dist/es/components/Pagination/Pagination.d.ts +3 -4
  125. package/dist/es/components/Pagination/Pagination.js +22 -7
  126. package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.css +62 -1
  127. package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.d.ts +4 -5
  128. package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.js +26 -10
  129. package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.css +10 -1
  130. package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +2 -3
  131. package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.js +22 -5
  132. package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +17 -1
  133. package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +2 -3
  134. package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +23 -7
  135. package/dist/es/components/Pagination/helpers.js +3 -0
  136. package/dist/es/components/Pagination/usePagination.d.ts +1 -2
  137. package/dist/es/components/Pagination/usePagination.js +18 -6
  138. package/dist/es/components/Paragraph/Paragraph.css +43 -1
  139. package/dist/es/components/Paragraph/Paragraph.d.ts +2 -4
  140. package/dist/es/components/Paragraph/Paragraph.js +22 -9
  141. package/dist/es/components/Preloader/Preloader.css +224 -1
  142. package/dist/es/components/Preloader/Preloader.d.ts +3 -3
  143. package/dist/es/components/Preloader/Preloader.js +36 -16
  144. package/dist/es/components/RadioButton/RadioButton.css +120 -1
  145. package/dist/es/components/RadioButton/RadioButton.d.ts +1 -1
  146. package/dist/es/components/RadioButton/RadioButton.js +50 -18
  147. package/dist/es/components/Row/Row.css +238 -1
  148. package/dist/es/components/Row/Row.d.ts +2 -2
  149. package/dist/es/components/Row/Row.js +48 -23
  150. package/dist/es/components/Search/Search.css +453 -1
  151. package/dist/es/components/Search/Search.d.ts +8 -7
  152. package/dist/es/components/Search/Search.js +149 -54
  153. package/dist/es/components/Select/Select.css +389 -1
  154. package/dist/es/components/Select/Select.d.ts +84 -8
  155. package/dist/es/components/Select/Select.js +142 -52
  156. package/dist/es/components/Select/reducer/selectReducer.d.ts +1 -1
  157. package/dist/es/components/Select/reducer/selectReducer.js +32 -18
  158. package/dist/es/components/Selector/Selector.css +132 -1
  159. package/dist/es/components/Selector/Selector.d.ts +1 -1
  160. package/dist/es/components/Selector/Selector.js +50 -23
  161. package/dist/es/components/Selector/doc/Selector.example.css +17 -0
  162. package/dist/es/components/Sliders/Slider/Slider.css +128 -1
  163. package/dist/es/components/Sliders/Slider/Slider.d.ts +1 -1
  164. package/dist/es/components/Sliders/Slider/Slider.js +56 -25
  165. package/dist/es/components/Sliders/SliderRange/SliderRange.css +169 -1
  166. package/dist/es/components/Sliders/SliderRange/SliderRange.d.ts +1 -1
  167. package/dist/es/components/Sliders/SliderRange/SliderRange.js +80 -33
  168. package/dist/es/components/Sliders/SliderRange/helpers.js +2 -0
  169. package/dist/es/components/Sliders/SliderRatio/SliderRatio.css +219 -1
  170. package/dist/es/components/Sliders/SliderRatio/SliderRatio.d.ts +1 -1
  171. package/dist/es/components/Sliders/SliderRatio/SliderRatio.js +85 -36
  172. package/dist/es/components/Sliders/SliderRatio/helpers.js +1 -1
  173. package/dist/es/components/Sliders/SliderRatio/types.d.ts +1 -1
  174. package/dist/es/components/Sliders/SliderRatio/types.js +1 -0
  175. package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.css +84 -1
  176. package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.d.ts +2 -2
  177. package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.js +35 -11
  178. package/dist/es/components/Sliders/components/SliderScale/SliderScale.css +15 -1
  179. package/dist/es/components/Sliders/components/SliderScale/SliderScale.d.ts +2 -2
  180. package/dist/es/components/Sliders/components/SliderScale/SliderScale.js +20 -6
  181. package/dist/es/components/Sliders/components/SliderScale/helpers.js +16 -12
  182. package/dist/es/components/Sliders/helpers.js +5 -1
  183. package/dist/es/components/Snackbar/Snackbar.css +220 -1
  184. package/dist/es/components/Snackbar/Snackbar.d.ts +3 -3
  185. package/dist/es/components/Snackbar/Snackbar.js +82 -44
  186. package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.css +66 -1
  187. package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.d.ts +3 -3
  188. package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.js +17 -9
  189. package/dist/es/components/Switcher/Switcher.css +160 -1
  190. package/dist/es/components/Switcher/Switcher.d.ts +1 -2
  191. package/dist/es/components/Switcher/Switcher.js +39 -17
  192. package/dist/es/components/Tabs/Tab.d.ts +6 -0
  193. package/dist/es/components/Tabs/Tab.js +14 -0
  194. package/dist/es/components/Tabs/Tabs.css +306 -1
  195. package/dist/es/components/Tabs/Tabs.d.ts +5 -6
  196. package/dist/es/components/Tabs/Tabs.js +177 -87
  197. package/dist/es/components/TextField/TextField.css +343 -1
  198. package/dist/es/components/TextField/TextField.d.ts +3 -3
  199. package/dist/es/components/TextField/TextField.js +188 -80
  200. package/dist/es/components/TextField/utils/countGraphemes.js +18 -10
  201. package/dist/es/components/TextLink/TextLink.css +50 -1
  202. package/dist/es/components/TextLink/TextLink.d.ts +2 -2
  203. package/dist/es/components/TextLink/TextLink.js +27 -14
  204. package/dist/es/components/Tile/Tile.css +43 -1
  205. package/dist/es/components/Tile/Tile.d.ts +5 -7
  206. package/dist/es/components/Tile/Tile.js +36 -16
  207. package/dist/es/components/Tooltip/Tooltip.css +335 -1
  208. package/dist/es/components/Tooltip/Tooltip.d.ts +8 -9
  209. package/dist/es/components/Tooltip/Tooltip.js +139 -58
  210. package/dist/es/hooks/usePrevious.js +2 -0
  211. package/dist/es/hooks/useResolution.d.ts +1 -1
  212. package/dist/es/hooks/useResolution.js +11 -5
  213. package/dist/es/hooks/useSwipe.d.ts +1 -1
  214. package/dist/es/hooks/useSwipe.js +44 -17
  215. package/dist/es/index.d.ts +9 -16
  216. package/dist/es/index.js +10 -17
  217. package/dist/lib/colors/ColorItem/ColorItem.css +45 -1
  218. package/dist/lib/colors/ColorItem/ColorItem.d.ts +2 -2
  219. package/dist/lib/colors/ColorItem/ColorItem.js +18 -9
  220. package/dist/lib/colors/Colors.css +233 -1
  221. package/dist/lib/colors/Colors.d.ts +1 -1
  222. package/dist/lib/colors/Colors.js +79 -37
  223. package/dist/lib/colors/colorsData.d.ts +4 -4
  224. package/dist/lib/colors/colorsData.js +2 -1
  225. package/dist/lib/components/Accordion/Accordion.css +89 -1
  226. package/dist/lib/components/Accordion/Accordion.d.ts +1 -2
  227. package/dist/lib/components/Accordion/Accordion.js +81 -26
  228. package/dist/lib/components/Avatar/Avatar.css +52 -1
  229. package/dist/lib/components/Avatar/Avatar.d.ts +1 -1
  230. package/dist/lib/components/Avatar/Avatar.js +41 -13
  231. package/dist/lib/components/Avatar/doc/i/img.png +0 -0
  232. package/dist/lib/components/Badges/components/CounterBadge/CounterBadge.css +54 -0
  233. package/dist/lib/components/Badges/{CounterBadge → components/CounterBadge}/CounterBadge.d.ts +2 -2
  234. package/dist/lib/components/Badges/components/CounterBadge/CounterBadge.js +81 -0
  235. package/dist/lib/components/Badges/components/NotificationBadge/NotificationBadge.css +58 -0
  236. package/dist/lib/components/Badges/{NotificationBadge → components/NotificationBadge}/NotificationBadge.d.ts +4 -3
  237. package/dist/lib/components/Badges/components/NotificationBadge/NotificationBadge.js +71 -0
  238. package/dist/lib/components/Badges/components/PriceBadge/PriceBadge.css +119 -0
  239. package/dist/lib/components/Badges/{PriceBadge → components/PriceBadge}/PriceBadge.d.ts +4 -4
  240. package/dist/lib/components/Badges/{PriceBadge → components/PriceBadge}/PriceBadge.js +75 -19
  241. package/dist/lib/components/Badges/components/PromoBadge/PromoBadge.css +64 -0
  242. package/dist/{es/components/Badges → lib/components/Badges/components}/PromoBadge/PromoBadge.d.ts +3 -3
  243. package/dist/lib/components/Badges/components/PromoBadge/PromoBadge.js +76 -0
  244. package/dist/lib/components/Badges/{TimerBadge/components → components/TimerBadge}/Timer/Timer.js +55 -11
  245. package/dist/lib/components/Badges/components/TimerBadge/TimerBadge.css +60 -0
  246. package/dist/{es/components/Badges → lib/components/Badges/components}/TimerBadge/TimerBadge.d.ts +2 -2
  247. package/dist/lib/components/Badges/components/TimerBadge/TimerBadge.js +135 -0
  248. package/dist/lib/components/Banner/Banner.css +195 -1
  249. package/dist/lib/components/Banner/Banner.d.ts +4 -5
  250. package/dist/lib/components/Banner/Banner.js +160 -72
  251. package/dist/lib/components/Banner/BannerDot.css +69 -1
  252. package/dist/lib/components/Banner/BannerDot.d.ts +1 -1
  253. package/dist/lib/components/Banner/BannerDot.js +36 -10
  254. package/dist/lib/components/Banner/slidesSettings.d.ts +2 -4
  255. package/dist/lib/components/Banner/slidesSettings.js +11 -4
  256. package/dist/lib/components/Button/Button.css +814 -1
  257. package/dist/lib/components/Button/Button.d.ts +6 -7
  258. package/dist/lib/components/Button/Button.js +157 -70
  259. package/dist/lib/components/Calendar/Calendar.css +5 -1
  260. package/dist/lib/components/Calendar/Calendar.d.ts +2 -2
  261. package/dist/lib/components/Calendar/Calendar.js +148 -70
  262. package/dist/lib/components/Calendar/components/Day/Day.css +128 -0
  263. package/dist/{es/components/Calendar/components/_Day → lib/components/Calendar/components/Day}/Day.d.ts +4 -4
  264. package/dist/lib/components/Calendar/components/Day/Day.js +117 -0
  265. package/dist/lib/components/Calendar/components/Month/Month.css +81 -0
  266. package/dist/lib/components/Calendar/components/{_Month → Month}/Month.d.ts +2 -3
  267. package/dist/lib/components/Calendar/components/Month/Month.js +122 -0
  268. package/dist/lib/components/Caption/Caption.css +48 -1
  269. package/dist/lib/components/Caption/Caption.d.ts +2 -4
  270. package/dist/lib/components/Caption/Caption.js +40 -15
  271. package/dist/lib/components/Carousel/Carousel.css +215 -1
  272. package/dist/lib/components/Carousel/Carousel.d.ts +10 -11
  273. package/dist/lib/components/Carousel/Carousel.js +226 -195
  274. package/dist/lib/components/Carousel/checkBreakpointsPropTypes.d.ts +1 -1
  275. package/dist/lib/components/Carousel/checkBreakpointsPropTypes.js +17 -5
  276. package/dist/lib/components/Carousel/useGradient.d.ts +1 -1
  277. package/dist/lib/components/Carousel/useGradient.js +24 -11
  278. package/dist/lib/components/Checkbox/Checkbox.css +150 -1
  279. package/dist/lib/components/Checkbox/Checkbox.d.ts +4 -4
  280. package/dist/lib/components/Checkbox/Checkbox.js +74 -34
  281. package/dist/lib/components/Chips/Chip.css +132 -1
  282. package/dist/lib/components/Chips/Chip.d.ts +26 -6
  283. package/dist/lib/components/Chips/Chip.js +75 -35
  284. package/dist/lib/components/Chips/Chips.css +19 -1
  285. package/dist/lib/components/Chips/Chips.d.ts +2 -2
  286. package/dist/lib/components/Chips/Chips.js +91 -46
  287. package/dist/lib/components/Chips/components/ChipsDropdown.css +106 -1
  288. package/dist/lib/components/Chips/components/ChipsDropdown.d.ts +2 -2
  289. package/dist/lib/components/Chips/components/ChipsDropdown.js +66 -30
  290. package/dist/lib/components/Collapse/Collapse.css +3 -0
  291. package/dist/{es/components/_Collapse → lib/components/Collapse}/Collapse.d.ts +3 -3
  292. package/dist/lib/components/Collapse/Collapse.js +141 -0
  293. package/dist/lib/components/ContentArea/ContentArea.css +109 -1
  294. package/dist/lib/components/ContentArea/ContentArea.d.ts +4 -5
  295. package/dist/lib/components/ContentArea/ContentArea.js +43 -13
  296. package/dist/lib/components/ContentView/ContentView.css +103 -1
  297. package/dist/lib/components/ContentView/ContentView.d.ts +2 -3
  298. package/dist/lib/components/ContentView/ContentView.js +62 -16
  299. package/dist/lib/components/Counter/Counter.css +123 -1
  300. package/dist/lib/components/Counter/Counter.d.ts +1 -1
  301. package/dist/lib/components/Counter/Counter.js +70 -24
  302. package/dist/lib/components/Grid/Grid.css +102 -1
  303. package/dist/lib/components/Grid/Grid.d.ts +1 -1
  304. package/dist/lib/components/Grid/Grid.js +39 -12
  305. package/dist/lib/components/Grid/GridColumn.css +3102 -1
  306. package/dist/lib/components/Grid/GridColumn.d.ts +2 -2
  307. package/dist/lib/components/Grid/GridColumn.js +76 -37
  308. package/dist/lib/components/Header/Header.css +122 -1
  309. package/dist/lib/components/Header/Header.d.ts +1 -3
  310. package/dist/lib/components/Header/Header.js +42 -17
  311. package/dist/lib/components/Link/Link.d.ts +2 -2
  312. package/dist/lib/components/Link/Link.js +33 -14
  313. package/dist/lib/components/List/List.css +66 -1
  314. package/dist/lib/components/List/List.d.ts +1 -2
  315. package/dist/lib/components/List/List.js +30 -12
  316. package/dist/lib/components/List/ListItem.css +6 -1
  317. package/dist/lib/components/List/ListItem.d.ts +1 -2
  318. package/dist/lib/components/List/ListItem.js +19 -5
  319. package/dist/lib/components/ListData/ListData.css +162 -1
  320. package/dist/lib/components/ListData/ListData.d.ts +34 -6
  321. package/dist/lib/components/ListData/ListData.js +110 -50
  322. package/dist/lib/components/ListData/ListDataGroup.css +15 -1
  323. package/dist/lib/components/ListData/ListDataGroup.d.ts +4 -4
  324. package/dist/lib/components/ListData/ListDataGroup.js +117 -47
  325. package/dist/lib/components/ListData/components/ListDataSortable.css +79 -1
  326. package/dist/lib/components/ListData/components/ListDataSortable.d.ts +4 -4
  327. package/dist/lib/components/ListData/components/ListDataSortable.js +73 -34
  328. package/dist/lib/components/ListData/doc/i/img.png +0 -0
  329. package/dist/lib/components/ListData/helpers.js +24 -6
  330. package/dist/lib/components/Logo/Logo.css +43 -1
  331. package/dist/lib/components/Logo/Logo.d.ts +1 -1
  332. package/dist/lib/components/Logo/Logo.js +40 -13
  333. package/dist/lib/components/NavArrow/NavArrow.css +63 -1
  334. package/dist/lib/components/NavArrow/NavArrow.d.ts +3 -3
  335. package/dist/lib/components/NavArrow/NavArrow.js +46 -14
  336. package/dist/lib/components/Notification/Notification.css +350 -1
  337. package/dist/lib/components/Notification/Notification.d.ts +4 -5
  338. package/dist/lib/components/Notification/Notification.js +200 -113
  339. package/dist/lib/components/Pagination/Pagination.css +5 -1
  340. package/dist/lib/components/Pagination/Pagination.d.ts +3 -4
  341. package/dist/lib/components/Pagination/Pagination.js +50 -18
  342. package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.css +62 -1
  343. package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.d.ts +4 -5
  344. package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.js +34 -11
  345. package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.css +10 -1
  346. package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +2 -3
  347. package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.js +31 -6
  348. package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +17 -1
  349. package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +2 -3
  350. package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +31 -8
  351. package/dist/lib/components/Pagination/helpers.js +6 -1
  352. package/dist/lib/components/Pagination/usePagination.d.ts +1 -2
  353. package/dist/lib/components/Pagination/usePagination.js +35 -9
  354. package/dist/lib/components/Paragraph/Paragraph.css +43 -1
  355. package/dist/lib/components/Paragraph/Paragraph.d.ts +2 -4
  356. package/dist/lib/components/Paragraph/Paragraph.js +37 -13
  357. package/dist/lib/components/Preloader/Preloader.css +224 -1
  358. package/dist/lib/components/Preloader/Preloader.d.ts +3 -3
  359. package/dist/lib/components/Preloader/Preloader.js +57 -22
  360. package/dist/lib/components/RadioButton/RadioButton.css +120 -1
  361. package/dist/lib/components/RadioButton/RadioButton.d.ts +1 -1
  362. package/dist/lib/components/RadioButton/RadioButton.js +69 -22
  363. package/dist/lib/components/Row/Row.css +238 -1
  364. package/dist/lib/components/Row/Row.d.ts +2 -2
  365. package/dist/lib/components/Row/Row.js +75 -39
  366. package/dist/lib/components/Search/Search.css +453 -1
  367. package/dist/lib/components/Search/Search.d.ts +8 -7
  368. package/dist/lib/components/Search/Search.js +261 -121
  369. package/dist/lib/components/Select/Select.css +389 -1
  370. package/dist/lib/components/Select/Select.d.ts +84 -8
  371. package/dist/lib/components/Select/Select.js +186 -69
  372. package/dist/lib/components/Select/reducer/selectReducer.d.ts +1 -1
  373. package/dist/lib/components/Select/reducer/selectReducer.js +41 -21
  374. package/dist/lib/components/Selector/Selector.css +132 -1
  375. package/dist/lib/components/Selector/Selector.d.ts +1 -1
  376. package/dist/lib/components/Selector/Selector.js +70 -27
  377. package/dist/lib/components/Selector/doc/Selector.example.css +17 -0
  378. package/dist/lib/components/Sliders/Slider/Slider.css +128 -1
  379. package/dist/lib/components/Sliders/Slider/Slider.d.ts +1 -1
  380. package/dist/lib/components/Sliders/Slider/Slider.js +75 -29
  381. package/dist/lib/components/Sliders/SliderRange/SliderRange.css +169 -1
  382. package/dist/lib/components/Sliders/SliderRange/SliderRange.d.ts +1 -1
  383. package/dist/lib/components/Sliders/SliderRange/SliderRange.js +100 -37
  384. package/dist/lib/components/Sliders/SliderRange/helpers.js +18 -5
  385. package/dist/lib/components/Sliders/SliderRatio/SliderRatio.css +219 -1
  386. package/dist/lib/components/Sliders/SliderRatio/SliderRatio.d.ts +1 -1
  387. package/dist/lib/components/Sliders/SliderRatio/SliderRatio.js +111 -40
  388. package/dist/lib/components/Sliders/SliderRatio/helpers.js +27 -8
  389. package/dist/lib/components/Sliders/SliderRatio/types.d.ts +1 -1
  390. package/dist/lib/components/Sliders/SliderRatio/types.js +2 -0
  391. package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.css +84 -1
  392. package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.d.ts +2 -2
  393. package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.js +56 -17
  394. package/dist/lib/components/Sliders/components/SliderScale/SliderScale.css +15 -1
  395. package/dist/lib/components/Sliders/components/SliderScale/SliderScale.d.ts +2 -2
  396. package/dist/lib/components/Sliders/components/SliderScale/SliderScale.js +39 -11
  397. package/dist/lib/components/Sliders/components/SliderScale/helpers.js +33 -15
  398. package/dist/lib/components/Sliders/helpers.js +22 -5
  399. package/dist/lib/components/Snackbar/Snackbar.css +220 -1
  400. package/dist/lib/components/Snackbar/Snackbar.d.ts +3 -3
  401. package/dist/lib/components/Snackbar/Snackbar.js +138 -81
  402. package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.css +66 -1
  403. package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.d.ts +3 -3
  404. package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.js +36 -17
  405. package/dist/lib/components/Switcher/Switcher.css +160 -1
  406. package/dist/lib/components/Switcher/Switcher.d.ts +1 -2
  407. package/dist/lib/components/Switcher/Switcher.js +52 -21
  408. package/dist/lib/components/Tabs/Tab.d.ts +6 -0
  409. package/dist/lib/components/Tabs/Tab.js +26 -5
  410. package/dist/lib/components/Tabs/Tabs.css +306 -1
  411. package/dist/lib/components/Tabs/Tabs.d.ts +5 -6
  412. package/dist/lib/components/Tabs/Tabs.js +209 -95
  413. package/dist/lib/components/TextField/TextField.css +343 -1
  414. package/dist/lib/components/TextField/TextField.d.ts +3 -3
  415. package/dist/lib/components/TextField/TextField.js +238 -113
  416. package/dist/lib/components/TextField/utils/countGraphemes.js +28 -11
  417. package/dist/lib/components/TextLink/TextLink.css +50 -1
  418. package/dist/lib/components/TextLink/TextLink.d.ts +2 -2
  419. package/dist/lib/components/TextLink/TextLink.js +41 -18
  420. package/dist/lib/components/Tile/Tile.css +43 -1
  421. package/dist/lib/components/Tile/Tile.d.ts +5 -7
  422. package/dist/lib/components/Tile/Tile.js +54 -26
  423. package/dist/lib/components/Tooltip/Tooltip.css +335 -1
  424. package/dist/lib/components/Tooltip/Tooltip.d.ts +8 -9
  425. package/dist/lib/components/Tooltip/Tooltip.js +218 -110
  426. package/dist/lib/constants/throttleTime.js +3 -2
  427. package/dist/lib/hooks/usePrevious.js +11 -4
  428. package/dist/lib/hooks/useResolution.d.ts +1 -1
  429. package/dist/lib/hooks/useResolution.js +23 -9
  430. package/dist/lib/hooks/useSwipe.d.ts +1 -1
  431. package/dist/lib/hooks/useSwipe.js +63 -21
  432. package/dist/lib/index.d.ts +9 -16
  433. package/dist/lib/index.js +101 -82
  434. package/package.json +101 -106
  435. package/styles/base.less +171 -0
  436. package/styles/colors.css +0 -53
  437. package/dist/es/components/Badges/CounterBadge/CounterBadge.css +0 -1
  438. package/dist/es/components/Badges/NotificationBadge/NotificationBadge.css +0 -1
  439. package/dist/es/components/Badges/NotificationBadge/NotificationBadge.js +0 -34
  440. package/dist/es/components/Badges/PriceBadge/PriceBadge.css +0 -1
  441. package/dist/es/components/Badges/PromoBadge/PromoBadge.css +0 -1
  442. package/dist/es/components/Badges/TimerBadge/TimerBadge.css +0 -1
  443. package/dist/es/components/Calendar/components/_Day/Day.css +0 -1
  444. package/dist/es/components/Calendar/components/_Month/Month.css +0 -1
  445. package/dist/es/components/Modal/Modal.css +0 -1
  446. package/dist/es/components/Modal/Modal.d.ts +0 -106
  447. package/dist/es/components/Modal/Modal.js +0 -277
  448. package/dist/es/components/Modal/_ModalContent/ModalContent.css +0 -1
  449. package/dist/es/components/Modal/_ModalContent/ModalContent.d.ts +0 -8
  450. package/dist/es/components/Modal/_ModalContent/ModalContent.js +0 -167
  451. package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.css +0 -1
  452. package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.d.ts +0 -8
  453. package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.js +0 -32
  454. package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +0 -1
  455. package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.d.ts +0 -12
  456. package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.js +0 -114
  457. package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +0 -1
  458. package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +0 -8
  459. package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +0 -55
  460. package/dist/es/components/Modal/mocks.d.ts +0 -3
  461. package/dist/es/components/Modal/mocks.js +0 -79
  462. package/dist/es/components/Modal/types.d.ts +0 -28
  463. package/dist/es/components/Modal/types.js +0 -1
  464. package/dist/es/components/Modal/utils/utils.d.ts +0 -18
  465. package/dist/es/components/Modal/utils/utils.js +0 -66
  466. package/dist/es/components/ScrollBar/ScrollBar.css +0 -1
  467. package/dist/es/components/ScrollBar/ScrollBar.d.ts +0 -34
  468. package/dist/es/components/ScrollBar/ScrollBar.js +0 -86
  469. package/dist/es/components/_Collapse/Collapse.css +0 -1
  470. package/dist/es/styles/base.css +0 -1
  471. package/dist/lib/components/Badges/CounterBadge/CounterBadge.css +0 -1
  472. package/dist/lib/components/Badges/CounterBadge/CounterBadge.js +0 -52
  473. package/dist/lib/components/Badges/NotificationBadge/NotificationBadge.css +0 -1
  474. package/dist/lib/components/Badges/NotificationBadge/NotificationBadge.js +0 -43
  475. package/dist/lib/components/Badges/PriceBadge/PriceBadge.css +0 -1
  476. package/dist/lib/components/Badges/PromoBadge/PromoBadge.css +0 -1
  477. package/dist/lib/components/Badges/PromoBadge/PromoBadge.js +0 -49
  478. package/dist/lib/components/Badges/TimerBadge/TimerBadge.css +0 -1
  479. package/dist/lib/components/Badges/TimerBadge/TimerBadge.js +0 -97
  480. package/dist/lib/components/Calendar/components/_Day/Day.css +0 -1
  481. package/dist/lib/components/Calendar/components/_Day/Day.js +0 -75
  482. package/dist/lib/components/Calendar/components/_Month/Month.css +0 -1
  483. package/dist/lib/components/Calendar/components/_Month/Month.js +0 -93
  484. package/dist/lib/components/Modal/Modal.css +0 -1
  485. package/dist/lib/components/Modal/Modal.d.ts +0 -106
  486. package/dist/lib/components/Modal/Modal.js +0 -286
  487. package/dist/lib/components/Modal/_ModalContent/ModalContent.css +0 -1
  488. package/dist/lib/components/Modal/_ModalContent/ModalContent.d.ts +0 -8
  489. package/dist/lib/components/Modal/_ModalContent/ModalContent.js +0 -176
  490. package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.css +0 -1
  491. package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.d.ts +0 -8
  492. package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.js +0 -41
  493. package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +0 -1
  494. package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.d.ts +0 -12
  495. package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.js +0 -123
  496. package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +0 -1
  497. package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +0 -8
  498. package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +0 -64
  499. package/dist/lib/components/Modal/mocks.d.ts +0 -3
  500. package/dist/lib/components/Modal/mocks.js +0 -85
  501. package/dist/lib/components/Modal/types.d.ts +0 -28
  502. package/dist/lib/components/Modal/types.js +0 -5
  503. package/dist/lib/components/Modal/utils/utils.d.ts +0 -18
  504. package/dist/lib/components/Modal/utils/utils.js +0 -72
  505. package/dist/lib/components/ScrollBar/ScrollBar.css +0 -1
  506. package/dist/lib/components/ScrollBar/ScrollBar.d.ts +0 -34
  507. package/dist/lib/components/ScrollBar/ScrollBar.js +0 -94
  508. package/dist/lib/components/_Collapse/Collapse.css +0 -1
  509. package/dist/lib/components/_Collapse/Collapse.js +0 -95
  510. package/dist/lib/styles/base.css +0 -1
  511. package/styles/base.scss +0 -150
  512. /package/dist/es/components/Badges/{TimerBadge/components → components/TimerBadge}/Timer/Timer.d.ts +0 -0
  513. /package/dist/lib/components/Badges/{TimerBadge/components → components/TimerBadge}/Timer/Timer.d.ts +0 -0
@@ -1,18 +1,30 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports["default"] = void 0;
9
+
8
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
9
12
  require("core-js/modules/es.array.concat.js");
13
+
10
14
  var React = _interopRequireWildcard(require("react"));
15
+
11
16
  var _uiHelpers = require("@megafon/ui-helpers");
17
+
18
+ var PropTypes = _interopRequireWildcard(require("prop-types"));
19
+
12
20
  var _Link = _interopRequireDefault(require("../Link/Link"));
13
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
21
+
22
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
+
24
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
+
15
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
16
28
  var greenHorizontalImg = function greenHorizontalImg(props) {
17
29
  return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
18
30
  viewBox: "0 0 623 112",
@@ -40,6 +52,7 @@ var greenHorizontalImg = function greenHorizontalImg(props) {
40
52
  fill: "#00B956"
41
53
  }));
42
54
  };
55
+
43
56
  var greenVerticalImg = function greenVerticalImg(props) {
44
57
  return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
45
58
  viewBox: "-213 356.4 169 128.5"
@@ -54,18 +67,20 @@ var greenVerticalImg = function greenVerticalImg(props) {
54
67
  d: "M-128.8 372.1c-17.4 0-31.5 14.1-31.5 31.5 0 15.1 10.6 27.7 24.8 30.8v-28.2c0-1.4 1.1-2.5 2.5-2.5h4c.2 0 .3-.1.3-.3v-31.1l-.1-.2zm-6 25.9c-2.2 0-3.9-1.8-3.9-3.9 0-2.2 1.8-3.9 3.9-3.9s3.9 1.8 3.9 3.9c0 2.2-1.7 3.9-3.9 3.9zm71.2 55.5v6h-8v-6h-3.9v15.7h3.9v-6.3h8v6.3h3.9v-15.7zm-65.5 1.8c-.7-1.4-2-2.1-3.2-2.1-1.3 0-2.6.7-3.2 2.1l-6.4 13.9h4.2l1.4-3.3h8.1l1.4 3.3h4.2l-6.5-13.9zm-5.9 7.5l2.4-5.7c.1-.2.2-.2.3-.2.1 0 .2 0 .3.2l2.4 5.7h-5.4zm-40.8-12.1c-1.8 0-3 1-3.9 3l-5.1 11.8-5.1-11.8c-.9-2-2-3-3.9-3-1.7 0-3.5 1.2-3.5 3.9v14.6h3.9V455l5.2 11.7c.7 1.6 1.8 2.7 3.4 2.7 1.6 0 2.7-1 3.4-2.7l5.2-11.7v14.2h3.9v-14.6c0-2.7-1.8-3.9-3.5-3.9zm10.4 15.2c-.2 0-.3-.2-.3-.3v-2.8h9.8v-3.2h-9.8v-2.4c0-.2.1-.3.3-.3h9.7v-3.3h-11.6c-1.4 0-2.3 1.1-2.3 2.3v11c0 1.2 1 2.3 2.3 2.3h11.6v-3.3h-9.7zm16.3 3.3v-12c0-.2.1-.3.3-.3h9.7v-3.3h-11.6c-1.4 0-2.3 1.1-2.3 2.3v13.3h3.9zm71-7.8c0-5.5-2.4-8-8.3-8h-1.4c-5.9 0-8.3 2.6-8.3 8s2.4 8 8.3 8h1.3c5.9 0 8.4-2.6 8.4-8zm-8.4 4.7h-1.3c-3.3 0-4.5-1.5-4.5-4.8 0-3.2 1.1-4.7 4.5-4.7h1.3c3.3 0 4.5 1.6 4.5 4.7 0 3.3-1.3 4.8-4.5 4.8zm-20.6-15h-7.8c-5.8 0-8.1 2.9-8.1 8.1 0 .8 0 1.5.2 2.2.6 3.6 2.7 5.9 8.2 5.9h1.7v2h3.9v-2h1.7c5.4 0 7.6-2.2 8.2-5.9.1-.7.2-1.4.2-2.2-.1-5.2-2.4-8.1-8.2-8.1zm-5.8 12.8h-1.8c-2.7 0-3.6-1-4.2-2.5-.2-.6-.2-1.4-.2-2.2 0-3.3 1.5-4.8 3.8-4.8h2.4v9.5zm9.9-2.5c-.6 1.6-1.5 2.5-4.2 2.5h-1.8v-9.5h2.4c2.3 0 3.8 1.4 3.8 4.8 0 .8 0 1.6-.2 2.2z"
55
68
  })));
56
69
  };
70
+
57
71
  var cn = (0, _uiHelpers.cnCreate)('mfui-logo');
72
+
58
73
  var Logo = function Logo(_ref) {
59
74
  var className = _ref.className,
60
- _ref$color = _ref.color,
61
- color = _ref$color === void 0 ? 'green' : _ref$color,
62
- _ref$view = _ref.view,
63
- view = _ref$view === void 0 ? 'horizontal' : _ref$view,
64
- _ref$target = _ref.target,
65
- target = _ref$target === void 0 ? '_blank' : _ref$target,
66
- _ref$href = _ref.href,
67
- href = _ref$href === void 0 ? '/' : _ref$href,
68
- dataAttrs = _ref.dataAttrs;
75
+ _ref$color = _ref.color,
76
+ color = _ref$color === void 0 ? 'green' : _ref$color,
77
+ _ref$view = _ref.view,
78
+ view = _ref$view === void 0 ? 'horizontal' : _ref$view,
79
+ _ref$target = _ref.target,
80
+ target = _ref$target === void 0 ? '_blank' : _ref$target,
81
+ _ref$href = _ref.href,
82
+ href = _ref$href === void 0 ? '/' : _ref$href,
83
+ dataAttrs = _ref.dataAttrs;
69
84
  var images = {
70
85
  'green-horizontal': greenHorizontalImg,
71
86
  'green-vertical': greenVerticalImg
@@ -84,4 +99,16 @@ var Logo = function Logo(_ref) {
84
99
  className: cn('svg')
85
100
  })));
86
101
  };
87
- var _default = exports["default"] = Logo;
102
+
103
+ Logo.propTypes = {
104
+ color: PropTypes.oneOf(['green']),
105
+ view: PropTypes.oneOf(['horizontal', 'vertical']),
106
+ target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),
107
+ href: PropTypes.string,
108
+ className: PropTypes.string,
109
+ dataAttrs: PropTypes.shape({
110
+ root: PropTypes.objectOf(PropTypes.string.isRequired)
111
+ })
112
+ };
113
+ var _default = Logo;
114
+ exports["default"] = _default;
@@ -1 +1,63 @@
1
- h1,h2,h3,h4,h5{margin:0}.mfui-nav-arrow{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:40px;margin:0;outline:none;padding:4px;-webkit-transition:background-color .3s,opacity .3s;transition:background-color .3s,opacity .3s;width:40px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mfui-nav-arrow:disabled{cursor:default;opacity:.3;pointer-events:none}.mfui-nav-arrow__icon{display:block;height:100%;width:100%;fill:var(--stcWhite)}.mfui-nav-arrow_theme_purple{background-color:var(--brandPurple)}.mfui-nav-arrow_theme_purple:hover{background-color:var(--buttonHoverPurple)}.mfui-nav-arrow_theme_purple:active{background-color:var(--buttonDown)}.mfui-nav-arrow_theme_dark{background-color:var(--stcBlack20)}.mfui-nav-arrow_theme_dark:hover{background-color:var(--stcBlack50)}.mfui-nav-arrow_theme_dark:active{background-color:var(--buttonDown)}.mfui-nav-arrow_theme_white{background-color:var(--stcWhite);-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.mfui-nav-arrow_theme_white:hover{-webkit-box-shadow:0 8px 28px 0 rgba(0,0,0,.1);box-shadow:0 8px 28px 0 rgba(0,0,0,.1)}.mfui-nav-arrow_theme_white:active{-webkit-box-shadow:0 2px 8px 0 rgba(0,0,0,.16);box-shadow:0 2px 8px 0 rgba(0,0,0,.16)}.mfui-nav-arrow_theme_white .mfui-nav-arrow__icon{fill:var(--stcBlack)}
1
+ .mfui-nav-arrow {
2
+ -webkit-box-sizing: border-box;
3
+ box-sizing: border-box;
4
+ width: 40px;
5
+ height: 40px;
6
+ margin: 0;
7
+ padding: 4px;
8
+ border: none;
9
+ border-radius: 50%;
10
+ outline: none;
11
+ cursor: pointer;
12
+ -webkit-transition: background-color 0.3s, opacity 0.3s;
13
+ transition: background-color 0.3s, opacity 0.3s;
14
+ -webkit-appearance: none;
15
+ -moz-appearance: none;
16
+ appearance: none;
17
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
18
+ }
19
+ .mfui-nav-arrow:disabled {
20
+ cursor: default;
21
+ opacity: 0.3;
22
+ pointer-events: none;
23
+ }
24
+ .mfui-nav-arrow__icon {
25
+ display: block;
26
+ width: 100%;
27
+ height: 100%;
28
+ fill: var(--stcWhite);
29
+ }
30
+ .mfui-nav-arrow_theme_purple {
31
+ background-color: var(--brandPurple);
32
+ }
33
+ .mfui-nav-arrow_theme_purple:hover {
34
+ background-color: var(--buttonHoverPurple);
35
+ }
36
+ .mfui-nav-arrow_theme_purple:active {
37
+ background-color: var(--buttonDown);
38
+ }
39
+ .mfui-nav-arrow_theme_dark {
40
+ background-color: var(--stcBlack20);
41
+ }
42
+ .mfui-nav-arrow_theme_dark:hover {
43
+ background-color: var(--stcBlack50);
44
+ }
45
+ .mfui-nav-arrow_theme_dark:active {
46
+ background-color: var(--buttonDown);
47
+ }
48
+ .mfui-nav-arrow_theme_white {
49
+ background-color: var(--stcWhite);
50
+ -webkit-box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
51
+ box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
52
+ }
53
+ .mfui-nav-arrow_theme_white:hover {
54
+ -webkit-box-shadow: 0 8px 28px 0 rgba(0, 0, 0, 0.1);
55
+ box-shadow: 0 8px 28px 0 rgba(0, 0, 0, 0.1);
56
+ }
57
+ .mfui-nav-arrow_theme_white:active {
58
+ -webkit-box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.16);
59
+ box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.16);
60
+ }
61
+ .mfui-nav-arrow_theme_white .mfui-nav-arrow__icon {
62
+ fill: var(--stcBlack);
63
+ }
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import './NavArrow.scss';
2
+ import './NavArrow.less';
3
3
  export declare const Theme: {
4
4
  readonly PURPLE: "purple";
5
5
  readonly DARK: "dark";
@@ -9,8 +9,8 @@ export declare const View: {
9
9
  readonly PREV: "prev";
10
10
  readonly NEXT: "next";
11
11
  };
12
- export type ThemeType = (typeof Theme)[keyof typeof Theme];
13
- type ViewType = (typeof View)[keyof typeof View];
12
+ export declare type ThemeType = typeof Theme[keyof typeof Theme];
13
+ declare type ViewType = typeof View[keyof typeof View];
14
14
  export interface INavArrowProps {
15
15
  dataAttrs?: {
16
16
  root?: Record<string, string>;
@@ -1,16 +1,28 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports["default"] = exports.View = exports.Theme = void 0;
9
+
8
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ require("core-js/modules/es.object.values.js");
13
+
9
14
  var React = _interopRequireWildcard(require("react"));
15
+
10
16
  var _uiHelpers = require("@megafon/ui-helpers");
11
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
17
+
18
+ var PropTypes = _interopRequireWildcard(require("prop-types"));
19
+
20
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
+
22
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
+
13
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
14
26
  var ArrowLeft = function ArrowLeft(props) {
15
27
  return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
16
28
  viewBox: "0 0 32 32"
@@ -18,6 +30,7 @@ var ArrowLeft = function ArrowLeft(props) {
18
30
  d: "M19.5 20.8L14.7 16l4.8-4.8-1.6-1.7-6.4 6.5 6.4 6.5z"
19
31
  }));
20
32
  };
33
+
21
34
  var ArrowRight = function ArrowRight(props) {
22
35
  return /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({
23
36
  viewBox: "0 0 32 32"
@@ -25,32 +38,37 @@ var ArrowRight = function ArrowRight(props) {
25
38
  d: "M12.5 20.8l4.8-4.8-4.8-4.8 1.6-1.7 6.4 6.5-6.4 6.5z"
26
39
  }));
27
40
  };
28
- var Theme = exports.Theme = {
41
+
42
+ var Theme = {
29
43
  PURPLE: 'purple',
30
44
  DARK: 'dark',
31
45
  WHITE: 'white'
32
46
  };
33
- var View = exports.View = {
47
+ exports.Theme = Theme;
48
+ var View = {
34
49
  PREV: 'prev',
35
50
  NEXT: 'next'
36
51
  };
52
+ exports.View = View;
37
53
  var cn = (0, _uiHelpers.cnCreate)('mfui-nav-arrow');
54
+
38
55
  var NavArrow = function NavArrow(_ref) {
39
56
  var dataAttrs = _ref.dataAttrs,
40
- className = _ref.className,
41
- _ref$view = _ref.view,
42
- view = _ref$view === void 0 ? View.PREV : _ref$view,
43
- _ref$theme = _ref.theme,
44
- theme = _ref$theme === void 0 ? Theme.PURPLE : _ref$theme,
45
- _ref$disabled = _ref.disabled,
46
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
47
- onClick = _ref.onClick;
57
+ className = _ref.className,
58
+ _ref$view = _ref.view,
59
+ view = _ref$view === void 0 ? View.PREV : _ref$view,
60
+ _ref$theme = _ref.theme,
61
+ theme = _ref$theme === void 0 ? Theme.PURPLE : _ref$theme,
62
+ _ref$disabled = _ref.disabled,
63
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
64
+ onClick = _ref.onClick;
48
65
  var renderIcon = React.useCallback(function () {
49
66
  switch (view) {
50
67
  case View.PREV:
51
68
  return /*#__PURE__*/React.createElement(ArrowLeft, (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.prevArrow), {
52
69
  className: cn('icon')
53
70
  }));
71
+
54
72
  default:
55
73
  return /*#__PURE__*/React.createElement(ArrowRight, (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.nextArrow), {
56
74
  className: cn('icon')
@@ -66,4 +84,18 @@ var NavArrow = function NavArrow(_ref) {
66
84
  disabled: disabled
67
85
  }), renderIcon());
68
86
  };
69
- var _default = exports["default"] = NavArrow;
87
+
88
+ NavArrow.propTypes = {
89
+ dataAttrs: PropTypes.shape({
90
+ root: PropTypes.objectOf(PropTypes.string.isRequired),
91
+ prevArrow: PropTypes.objectOf(PropTypes.string.isRequired),
92
+ nextArrow: PropTypes.objectOf(PropTypes.string.isRequired)
93
+ }),
94
+ className: PropTypes.string,
95
+ theme: PropTypes.oneOf(Object.values(Theme)),
96
+ view: PropTypes.oneOf(Object.values(View)),
97
+ disabled: PropTypes.bool,
98
+ onClick: PropTypes.func
99
+ };
100
+ var _default = NavArrow;
101
+ exports["default"] = _default;
@@ -1 +1,350 @@
1
- h1,h2,h3,h4,h5{margin:0}.mfui-notification{background-color:var(--base);border-radius:12px;padding:20px 12px 20px 32px;position:relative}@media screen and (max-width:767px){.mfui-notification{padding:16px 12px}}.mfui-notification__container{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-notification__title{color:var(--content);display:block;font-size:15px;font-weight:500;line-height:18px;margin-bottom:4px}@media screen and (min-width:1280px){.mfui-notification__title{line-height:24px}}.mfui-notification__title_close-padding{padding-right:20px}.mfui-notification__text{color:var(--content);font-size:12px;line-height:18px;margin:0;max-width:100%;position:relative;-webkit-transition:height .3s;transition:height .3s}@media screen and (min-width:768px){.mfui-notification__text{font-size:15px;line-height:24px}}.mfui-notification__short-text{opacity:1;position:static;-webkit-transition:opacity .2s;transition:opacity .2s;visibility:visible}.mfui-notification__full-text,.mfui-notification__short-text_hidden{opacity:0;position:absolute;top:0;-webkit-transition:opacity .3s,visibility .3s;transition:opacity .3s,visibility .3s;visibility:hidden}.mfui-notification__full-text_visible{opacity:1;position:static;-webkit-transition:opacity .2s;transition:opacity .2s;visibility:visible}.mfui-notification__content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-ms-flex-item-align:center;align-self:center;margin-left:12px;overflow:hidden;width:100%}.mfui-notification__icon-container{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-item-align:start;align-self:flex-start;-webkit-box-pack:center;-ms-flex-pack:center;border-radius:50%;height:40px;justify-content:center;min-width:40px;width:40px}.mfui-notification__attention-icon,.mfui-notification__icon-container svg{height:32px;min-width:32px;width:32px}.mfui-notification__text-container{margin-right:56px;width:85%}@media screen and (min-width:768px){.mfui-notification__text-container{margin-right:72px}}.mfui-notification__bottom{display:-webkit-box;display:-ms-flexbox;display:flex;z-index:1;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:8px;width:100%}.mfui-notification__bottom-block{display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.mfui-notification__bottom_has-button{margin-top:12px}.mfui-notification__button+.mfui-notification__link{margin-left:16px}.mfui-notification__collapse-button,.mfui-notification__link{font-family:inherit;font-size:15px;font-weight:500;line-height:18px}@media screen and (max-width:767px){.mfui-notification__collapse-button,.mfui-notification__link{font-size:12px;line-height:14px}}.mfui-notification__collapse-button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;background-color:transparent;border:none;color:var(--brandGreen);cursor:pointer;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:0;text-align:right}@media screen and (max-width:767px){.mfui-notification__collapse-button{-webkit-box-align:center;-ms-flex-align:center;align-items:center}}.mfui-notification__collapse-arrow,.mfui-notification__link-arrow{height:20px;min-width:20px;width:20px;fill:var(--brandGreen)}.mfui-notification__collapse-arrow_close{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.mfui-notification__link-arrow{margin-bottom:-2px}@media screen and (min-width:768px){.mfui-notification__link-arrow{margin-bottom:-4px}}.mfui-notification__bottom-block+.mfui-notification__collapse-button{margin-left:20px}@media screen and (max-width:767px){.mfui-notification__bottom-block+.mfui-notification__collapse-button{margin-left:16px}}.mfui-notification__collapse_hidden{visibility:hidden}.mfui-notification__close{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;right:8px;top:8px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background-color:var(--stcBlack5);border:none;border-radius:50%;cursor:pointer;height:24px;justify-content:center;padding:0;width:24px}@media screen and (min-width:768px){.mfui-notification__close{height:32px;right:12px;top:12px;width:32px}}.mfui-notification__close:hover{background-color:var(--spbSky1)}.mfui-notification__close:active{background-color:var(--spbSky2)}.mfui-notification__close-icon{height:10px;opacity:.5;width:10px;fill:var(--content)}.mfui-notification_type_error .mfui-notification__icon-container{background-color:var(--fury20)}.mfui-notification_type_error .mfui-notification__icon-container svg{fill:var(--fury)}.mfui-notification_type_success .mfui-notification__icon-container{background-color:var(--brandGreen20)}.mfui-notification_type_success .mfui-notification__icon-container svg{fill:var(--brandGreen)}.mfui-notification_type_warning .mfui-notification__icon-container{background-color:var(--137C20)}.mfui-notification_type_warning .mfui-notification__icon-container svg{fill:var(--137C)}.mfui-notification_type_info .mfui-notification__icon-container{background-color:var(--311C20)}.mfui-notification_type_info .mfui-notification__icon-container svg{fill:var(--311C)}.mfui-notification_colored .mfui-notification__icon-container{background-color:var(--base)}.mfui-notification_colored.mfui-notification_type_info{background-color:var(--311C20)}.mfui-notification_colored.mfui-notification_type_warning{background-color:var(--137C20)}.mfui-notification_colored.mfui-notification_type_success{background-color:var(--brandGreen20)}.mfui-notification_colored.mfui-notification_type_info .mfui-notification__text,.mfui-notification_colored.mfui-notification_type_info .mfui-notification__title,.mfui-notification_colored.mfui-notification_type_success .mfui-notification__text,.mfui-notification_colored.mfui-notification_type_success .mfui-notification__title,.mfui-notification_colored.mfui-notification_type_warning .mfui-notification__text,.mfui-notification_colored.mfui-notification_type_warning .mfui-notification__title{color:var(--content)}.mfui-notification_colored.mfui-notification_type_error{background-color:var(--fury80)}.mfui-notification_colored.mfui-notification_type_error .mfui-notification__collapse-button,.mfui-notification_colored.mfui-notification_type_error .mfui-notification__link,.mfui-notification_colored.mfui-notification_type_error .mfui-notification__text,.mfui-notification_colored.mfui-notification_type_error .mfui-notification__title{color:var(--stcWhite)}.mfui-notification_colored.mfui-notification_type_error .mfui-notification__collapse-arrow,.mfui-notification_colored.mfui-notification_type_error .mfui-notification__link-arrow{fill:var(--stcWhite)}.mfui-notification_colored.mfui-notification_type_error .mfui-notification__icon-container{background-color:var(--stcWhite20)}.mfui-notification_colored.mfui-notification_type_error .mfui-notification__icon-container svg{fill:var(--stcWhite)}.mfui-notification_colored.mfui-notification_type_error .mfui-notification__close:not(:hover){background-color:var(--stcWhite20)}.mfui-notification_colored.mfui-notification_type_error .mfui-notification__close:not(:hover) .mfui-notification__close-icon{opacity:1;fill:var(--stcWhite)}
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5 {
6
+ margin: 0;
7
+ }
8
+ .mfui-notification {
9
+ position: relative;
10
+ padding: 20px 12px 20px 32px;
11
+ border-radius: 12px;
12
+ background-color: var(--base);
13
+ }
14
+ @media screen and (max-width: 767px) {
15
+ .mfui-notification {
16
+ padding: 16px 12px;
17
+ }
18
+ }
19
+ .mfui-notification__container {
20
+ display: -webkit-box;
21
+ display: -ms-flexbox;
22
+ display: flex;
23
+ }
24
+ .mfui-notification__title {
25
+ display: block;
26
+ margin-bottom: 4px;
27
+ color: var(--content);
28
+ font-weight: 500;
29
+ font-size: 15px;
30
+ line-height: 18px;
31
+ }
32
+ @media screen and (min-width: 1280px) {
33
+ .mfui-notification__title {
34
+ line-height: 24px;
35
+ }
36
+ }
37
+ .mfui-notification__title_close-padding {
38
+ padding-right: 20px;
39
+ }
40
+ .mfui-notification__text {
41
+ font-size: 12px;
42
+ line-height: 18px;
43
+ position: relative;
44
+ max-width: 100%;
45
+ margin: 0;
46
+ color: var(--content);
47
+ -webkit-transition: height 300ms;
48
+ transition: height 300ms;
49
+ }
50
+ @media screen and (min-width: 768px) {
51
+ .mfui-notification__text {
52
+ font-size: 15px;
53
+ line-height: 24px;
54
+ }
55
+ }
56
+ .mfui-notification__short-text {
57
+ position: static;
58
+ visibility: visible;
59
+ opacity: 1;
60
+ -webkit-transition: opacity 200ms;
61
+ transition: opacity 200ms;
62
+ }
63
+ .mfui-notification__short-text_hidden,
64
+ .mfui-notification__full-text {
65
+ position: absolute;
66
+ top: 0;
67
+ visibility: hidden;
68
+ opacity: 0;
69
+ -webkit-transition: opacity 300ms, visibility 300ms;
70
+ transition: opacity 300ms, visibility 300ms;
71
+ }
72
+ .mfui-notification__full-text_visible {
73
+ position: static;
74
+ visibility: visible;
75
+ opacity: 1;
76
+ -webkit-transition: opacity 200ms;
77
+ transition: opacity 200ms;
78
+ }
79
+ .mfui-notification__content {
80
+ display: -webkit-box;
81
+ display: -ms-flexbox;
82
+ display: flex;
83
+ -webkit-box-orient: vertical;
84
+ -webkit-box-direction: normal;
85
+ -ms-flex-direction: column;
86
+ flex-direction: column;
87
+ -webkit-box-align: start;
88
+ -ms-flex-align: start;
89
+ align-items: flex-start;
90
+ -ms-flex-item-align: center;
91
+ align-self: center;
92
+ width: 100%;
93
+ margin-left: 12px;
94
+ overflow: hidden;
95
+ }
96
+ .mfui-notification__icon-container {
97
+ display: -webkit-box;
98
+ display: -ms-flexbox;
99
+ display: flex;
100
+ -ms-flex-negative: 0;
101
+ flex-shrink: 0;
102
+ -webkit-box-align: center;
103
+ -ms-flex-align: center;
104
+ align-items: center;
105
+ -ms-flex-item-align: start;
106
+ align-self: flex-start;
107
+ -webkit-box-pack: center;
108
+ -ms-flex-pack: center;
109
+ justify-content: center;
110
+ width: 40px;
111
+ min-width: 40px;
112
+ height: 40px;
113
+ border-radius: 50%;
114
+ }
115
+ .mfui-notification__attention-icon,
116
+ .mfui-notification__icon-container svg {
117
+ width: 32px;
118
+ min-width: 32px;
119
+ height: 32px;
120
+ }
121
+ .mfui-notification__text-container {
122
+ width: 85%;
123
+ margin-right: 56px;
124
+ }
125
+ @media screen and (min-width: 768px) {
126
+ .mfui-notification__text-container {
127
+ margin-right: 72px;
128
+ }
129
+ }
130
+ .mfui-notification__bottom {
131
+ z-index: 1;
132
+ display: -webkit-box;
133
+ display: -ms-flexbox;
134
+ display: flex;
135
+ -webkit-box-align: end;
136
+ -ms-flex-align: end;
137
+ align-items: flex-end;
138
+ -webkit-box-pack: justify;
139
+ -ms-flex-pack: justify;
140
+ justify-content: space-between;
141
+ width: 100%;
142
+ margin-top: 8px;
143
+ }
144
+ .mfui-notification__bottom-block {
145
+ display: -webkit-box;
146
+ display: -ms-flexbox;
147
+ display: flex;
148
+ overflow: hidden;
149
+ }
150
+ .mfui-notification__bottom_has-button {
151
+ margin-top: 12px;
152
+ }
153
+ .mfui-notification__link {
154
+ display: -webkit-inline-box;
155
+ display: -ms-inline-flexbox;
156
+ display: inline-flex;
157
+ -webkit-box-align: center;
158
+ -ms-flex-align: center;
159
+ align-items: center;
160
+ color: var(--brandGreen);
161
+ cursor: pointer;
162
+ }
163
+ .mfui-notification__button + .mfui-notification__link {
164
+ margin-left: 16px;
165
+ }
166
+ .mfui-notification__link,
167
+ .mfui-notification__collapse-button {
168
+ font-weight: 500;
169
+ font-size: 15px;
170
+ font-family: inherit;
171
+ line-height: 18px;
172
+ }
173
+ @media screen and (max-width: 767px) {
174
+ .mfui-notification__link,
175
+ .mfui-notification__collapse-button {
176
+ font-size: 12px;
177
+ line-height: 14px;
178
+ }
179
+ }
180
+ .mfui-notification__collapse-button {
181
+ display: -webkit-box;
182
+ display: -ms-flexbox;
183
+ display: flex;
184
+ -webkit-box-align: start;
185
+ -ms-flex-align: start;
186
+ align-items: flex-start;
187
+ height: -webkit-fit-content;
188
+ height: -moz-fit-content;
189
+ height: fit-content;
190
+ padding: 0;
191
+ border: none;
192
+ color: var(--brandGreen);
193
+ text-align: right;
194
+ background-color: transparent;
195
+ cursor: pointer;
196
+ }
197
+ @media screen and (max-width: 767px) {
198
+ .mfui-notification__collapse-button {
199
+ -webkit-box-align: center;
200
+ -ms-flex-align: center;
201
+ align-items: center;
202
+ }
203
+ }
204
+ .mfui-notification__link-arrow,
205
+ .mfui-notification__collapse-arrow {
206
+ width: 20px;
207
+ min-width: 20px;
208
+ height: 20px;
209
+ fill: var(--brandGreen);
210
+ }
211
+ .mfui-notification__collapse-arrow_close {
212
+ -webkit-transform: rotate(180deg);
213
+ transform: rotate(180deg);
214
+ }
215
+ .mfui-notification__link-arrow {
216
+ margin-bottom: -2px;
217
+ }
218
+ @media screen and (min-width: 768px) {
219
+ .mfui-notification__link-arrow {
220
+ margin-bottom: -4px;
221
+ }
222
+ }
223
+ .mfui-notification__bottom-block + .mfui-notification__collapse-button {
224
+ margin-left: 20px;
225
+ }
226
+ @media screen and (max-width: 767px) {
227
+ .mfui-notification__bottom-block + .mfui-notification__collapse-button {
228
+ margin-left: 16px;
229
+ }
230
+ }
231
+ .mfui-notification__collapse_hidden {
232
+ visibility: hidden;
233
+ }
234
+ .mfui-notification__close {
235
+ position: absolute;
236
+ top: 8px;
237
+ right: 8px;
238
+ display: -webkit-box;
239
+ display: -ms-flexbox;
240
+ display: flex;
241
+ -webkit-box-align: center;
242
+ -ms-flex-align: center;
243
+ align-items: center;
244
+ -webkit-box-pack: center;
245
+ -ms-flex-pack: center;
246
+ justify-content: center;
247
+ width: 24px;
248
+ height: 24px;
249
+ padding: 0;
250
+ border: none;
251
+ border-radius: 50%;
252
+ background-color: var(--stcBlack5);
253
+ cursor: pointer;
254
+ }
255
+ @media screen and (min-width: 768px) {
256
+ .mfui-notification__close {
257
+ top: 12px;
258
+ right: 12px;
259
+ width: 32px;
260
+ height: 32px;
261
+ }
262
+ }
263
+ .mfui-notification__close:hover {
264
+ background-color: var(--spbSky1);
265
+ }
266
+ .mfui-notification__close:active {
267
+ background-color: var(--spbSky2);
268
+ }
269
+ .mfui-notification__close-icon {
270
+ width: 10px;
271
+ height: 10px;
272
+ opacity: 0.5;
273
+ fill: var(--content);
274
+ }
275
+ .mfui-notification_type_error .mfui-notification__icon-container {
276
+ background-color: var(--fury20);
277
+ }
278
+ .mfui-notification_type_error .mfui-notification__icon-container svg {
279
+ /* stylelint-disable-line max-nesting-depth */
280
+ fill: var(--fury);
281
+ }
282
+ .mfui-notification_type_success .mfui-notification__icon-container {
283
+ background-color: var(--brandGreen20);
284
+ }
285
+ .mfui-notification_type_success .mfui-notification__icon-container svg {
286
+ /* stylelint-disable-line max-nesting-depth */
287
+ fill: var(--brandGreen);
288
+ }
289
+ .mfui-notification_type_warning .mfui-notification__icon-container {
290
+ background-color: var(--137C20);
291
+ }
292
+ .mfui-notification_type_warning .mfui-notification__icon-container svg {
293
+ /* stylelint-disable-line max-nesting-depth */
294
+ fill: var(--137C);
295
+ }
296
+ .mfui-notification_type_info .mfui-notification__icon-container {
297
+ background-color: var(--311C20);
298
+ }
299
+ .mfui-notification_type_info .mfui-notification__icon-container svg {
300
+ /* stylelint-disable-line max-nesting-depth */
301
+ fill: var(--311C);
302
+ }
303
+ .mfui-notification_colored .mfui-notification__icon-container {
304
+ background-color: var(--base);
305
+ }
306
+ .mfui-notification_colored.mfui-notification_type_info {
307
+ background-color: var(--311C20);
308
+ }
309
+ .mfui-notification_colored.mfui-notification_type_warning {
310
+ background-color: var(--137C20);
311
+ }
312
+ .mfui-notification_colored.mfui-notification_type_success {
313
+ background-color: var(--brandGreen20);
314
+ }
315
+ .mfui-notification_colored.mfui-notification_type_info .mfui-notification__title,
316
+ .mfui-notification_colored.mfui-notification_type_warning .mfui-notification__title,
317
+ .mfui-notification_colored.mfui-notification_type_success .mfui-notification__title,
318
+ .mfui-notification_colored.mfui-notification_type_info .mfui-notification__text,
319
+ .mfui-notification_colored.mfui-notification_type_warning .mfui-notification__text,
320
+ .mfui-notification_colored.mfui-notification_type_success .mfui-notification__text {
321
+ color: var(--content);
322
+ }
323
+ .mfui-notification_colored.mfui-notification_type_error {
324
+ background-color: var(--fury80);
325
+ }
326
+ .mfui-notification_colored.mfui-notification_type_error .mfui-notification__title,
327
+ .mfui-notification_colored.mfui-notification_type_error .mfui-notification__text,
328
+ .mfui-notification_colored.mfui-notification_type_error .mfui-notification__link,
329
+ .mfui-notification_colored.mfui-notification_type_error .mfui-notification__collapse-button {
330
+ color: var(--stcWhite);
331
+ }
332
+ .mfui-notification_colored.mfui-notification_type_error .mfui-notification__link-arrow,
333
+ .mfui-notification_colored.mfui-notification_type_error .mfui-notification__collapse-arrow {
334
+ fill: var(--stcWhite);
335
+ }
336
+ .mfui-notification_colored.mfui-notification_type_error .mfui-notification__icon-container {
337
+ background-color: var(--stcWhite20);
338
+ }
339
+ .mfui-notification_colored.mfui-notification_type_error .mfui-notification__icon-container svg {
340
+ /* stylelint-disable-line max-nesting-depth */
341
+ fill: var(--stcWhite);
342
+ }
343
+ .mfui-notification_colored.mfui-notification_type_error .mfui-notification__close:not(:hover) {
344
+ background-color: var(--stcWhite20);
345
+ }
346
+ .mfui-notification_colored.mfui-notification_type_error .mfui-notification__close:not(:hover) .mfui-notification__close-icon {
347
+ /* stylelint-disable-line max-nesting-depth */
348
+ opacity: 1;
349
+ fill: var(--stcWhite);
350
+ }