@megafon/ui-core 8.16.3 → 8.17.1

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 (574) hide show
  1. package/package.json +5 -5
  2. package/dist/es/components/Accordion/Accordion.css +0 -1
  3. package/dist/es/components/Accordion/Accordion.d.ts +0 -46
  4. package/dist/es/components/Accordion/Accordion.js +0 -99
  5. package/dist/es/components/Avatar/Avatar.css +0 -1
  6. package/dist/es/components/Avatar/Avatar.d.ts +0 -22
  7. package/dist/es/components/Avatar/Avatar.js +0 -51
  8. package/dist/es/components/Badges/CounterBadge/CounterBadge.css +0 -1
  9. package/dist/es/components/Badges/CounterBadge/CounterBadge.d.ts +0 -29
  10. package/dist/es/components/Badges/CounterBadge/CounterBadge.js +0 -43
  11. package/dist/es/components/Badges/NotificationBadge/NotificationBadge.css +0 -1
  12. package/dist/es/components/Badges/NotificationBadge/NotificationBadge.d.ts +0 -30
  13. package/dist/es/components/Badges/NotificationBadge/NotificationBadge.js +0 -35
  14. package/dist/es/components/Badges/PriceBadge/PriceBadge.css +0 -1
  15. package/dist/es/components/Badges/PriceBadge/PriceBadge.d.ts +0 -48
  16. package/dist/es/components/Badges/PriceBadge/PriceBadge.js +0 -210
  17. package/dist/es/components/Badges/PromoBadge/PromoBadge.css +0 -1
  18. package/dist/es/components/Badges/PromoBadge/PromoBadge.d.ts +0 -43
  19. package/dist/es/components/Badges/PromoBadge/PromoBadge.js +0 -47
  20. package/dist/es/components/Badges/StatusBadge/StatusBadge.css +0 -1
  21. package/dist/es/components/Badges/StatusBadge/StatusBadge.d.ts +0 -39
  22. package/dist/es/components/Badges/StatusBadge/StatusBadge.js +0 -156
  23. package/dist/es/components/Badges/TimerBadge/TimerBadge.css +0 -1
  24. package/dist/es/components/Badges/TimerBadge/TimerBadge.d.ts +0 -26
  25. package/dist/es/components/Badges/TimerBadge/TimerBadge.js +0 -87
  26. package/dist/es/components/Badges/TimerBadge/components/Timer/Timer.d.ts +0 -13
  27. package/dist/es/components/Badges/TimerBadge/components/Timer/Timer.js +0 -69
  28. package/dist/es/components/Banner/Banner.css +0 -1
  29. package/dist/es/components/Banner/Banner.d.ts +0 -118
  30. package/dist/es/components/Banner/Banner.js +0 -333
  31. package/dist/es/components/Banner/BannerDot.css +0 -1
  32. package/dist/es/components/Banner/BannerDot.d.ts +0 -20
  33. package/dist/es/components/Banner/BannerDot.js +0 -51
  34. package/dist/es/components/Banner/slidesSettings.d.ts +0 -7
  35. package/dist/es/components/Banner/slidesSettings.js +0 -10
  36. package/dist/es/components/Button/Button.css +0 -1
  37. package/dist/es/components/Button/Button.d.ts +0 -93
  38. package/dist/es/components/Button/Button.js +0 -216
  39. package/dist/es/components/Calendar/Calendar.css +0 -1
  40. package/dist/es/components/Calendar/Calendar.d.ts +0 -47
  41. package/dist/es/components/Calendar/Calendar.js +0 -327
  42. package/dist/es/components/Calendar/components/_Day/Day.css +0 -1
  43. package/dist/es/components/Calendar/components/_Day/Day.d.ts +0 -26
  44. package/dist/es/components/Calendar/components/_Day/Day.js +0 -81
  45. package/dist/es/components/Calendar/components/_Month/Month.css +0 -1
  46. package/dist/es/components/Calendar/components/_Month/Month.d.ts +0 -27
  47. package/dist/es/components/Calendar/components/_Month/Month.js +0 -117
  48. package/dist/es/components/Caption/Caption.css +0 -1
  49. package/dist/es/components/Caption/Caption.d.ts +0 -33
  50. package/dist/es/components/Caption/Caption.js +0 -37
  51. package/dist/es/components/Carousel/Carousel.css +0 -1
  52. package/dist/es/components/Carousel/Carousel.d.ts +0 -108
  53. package/dist/es/components/Carousel/Carousel.js +0 -387
  54. package/dist/es/components/Carousel/checkBreakpointsPropTypes.d.ts +0 -5
  55. package/dist/es/components/Carousel/checkBreakpointsPropTypes.js +0 -14
  56. package/dist/es/components/Carousel/useGradient.d.ts +0 -10
  57. package/dist/es/components/Carousel/useGradient.js +0 -36
  58. package/dist/es/components/Checkbox/Checkbox.css +0 -1
  59. package/dist/es/components/Checkbox/Checkbox.d.ts +0 -42
  60. package/dist/es/components/Checkbox/Checkbox.js +0 -86
  61. package/dist/es/components/Chips/Chip.css +0 -1
  62. package/dist/es/components/Chips/Chip.d.ts +0 -57
  63. package/dist/es/components/Chips/Chip.js +0 -77
  64. package/dist/es/components/Chips/Chips.css +0 -1
  65. package/dist/es/components/Chips/Chips.d.ts +0 -49
  66. package/dist/es/components/Chips/Chips.js +0 -163
  67. package/dist/es/components/Chips/components/ChipsDropdown/ChipsDropdown.css +0 -1
  68. package/dist/es/components/Chips/components/ChipsDropdown/ChipsDropdown.d.ts +0 -20
  69. package/dist/es/components/Chips/components/ChipsDropdown/ChipsDropdown.js +0 -92
  70. package/dist/es/components/Chips/components/ChipsScrollPanel/ChipsScrollPanel.css +0 -1
  71. package/dist/es/components/Chips/components/ChipsScrollPanel/ChipsScrollPanel.d.ts +0 -19
  72. package/dist/es/components/Chips/components/ChipsScrollPanel/ChipsScrollPanel.js +0 -86
  73. package/dist/es/components/ContentArea/ContentArea.css +0 -1
  74. package/dist/es/components/ContentArea/ContentArea.d.ts +0 -49
  75. package/dist/es/components/ContentArea/ContentArea.js +0 -48
  76. package/dist/es/components/ContentView/ContentView.css +0 -1
  77. package/dist/es/components/ContentView/ContentView.d.ts +0 -51
  78. package/dist/es/components/ContentView/ContentView.js +0 -66
  79. package/dist/es/components/ContentView/img/alarm.png +0 -0
  80. package/dist/es/components/ContentView/img/empty.png +0 -0
  81. package/dist/es/components/ContentView/img/error.png +0 -0
  82. package/dist/es/components/ContentView/img/fail.png +0 -0
  83. package/dist/es/components/ContentView/img/searchNoResult.png +0 -0
  84. package/dist/es/components/ContentView/img/submit.png +0 -0
  85. package/dist/es/components/ContentView/img/success.png +0 -0
  86. package/dist/es/components/ContentView/img/update.png +0 -0
  87. package/dist/es/components/ContentView/img/waiting.png +0 -0
  88. package/dist/es/components/Counter/Counter.css +0 -1
  89. package/dist/es/components/Counter/Counter.d.ts +0 -36
  90. package/dist/es/components/Counter/Counter.js +0 -121
  91. package/dist/es/components/ErrorLoad/ErrorLoad.css +0 -1
  92. package/dist/es/components/ErrorLoad/ErrorLoad.d.ts +0 -23
  93. package/dist/es/components/ErrorLoad/ErrorLoad.js +0 -59
  94. package/dist/es/components/Grid/Grid.css +0 -1
  95. package/dist/es/components/Grid/Grid.d.ts +0 -25
  96. package/dist/es/components/Grid/Grid.js +0 -36
  97. package/dist/es/components/Grid/GridColumn.css +0 -1
  98. package/dist/es/components/Grid/GridColumn.d.ts +0 -60
  99. package/dist/es/components/Grid/GridColumn.js +0 -69
  100. package/dist/es/components/Header/Header.css +0 -1
  101. package/dist/es/components/Header/Header.d.ts +0 -30
  102. package/dist/es/components/Header/Header.js +0 -38
  103. package/dist/es/components/Link/Link.d.ts +0 -24
  104. package/dist/es/components/Link/Link.js +0 -24
  105. package/dist/es/components/List/List.css +0 -1
  106. package/dist/es/components/List/List.d.ts +0 -17
  107. package/dist/es/components/List/List.js +0 -28
  108. package/dist/es/components/List/ListItem.css +0 -1
  109. package/dist/es/components/List/ListItem.d.ts +0 -9
  110. package/dist/es/components/List/ListItem.js +0 -12
  111. package/dist/es/components/ListData/ListData.css +0 -1
  112. package/dist/es/components/ListData/ListData.d.ts +0 -66
  113. package/dist/es/components/ListData/ListData.js +0 -160
  114. package/dist/es/components/ListData/ListDataGroup.css +0 -1
  115. package/dist/es/components/ListData/ListDataGroup.d.ts +0 -46
  116. package/dist/es/components/ListData/ListDataGroup.js +0 -150
  117. package/dist/es/components/ListData/components/ListDataSortable.css +0 -1
  118. package/dist/es/components/ListData/components/ListDataSortable.d.ts +0 -34
  119. package/dist/es/components/ListData/components/ListDataSortable.js +0 -81
  120. package/dist/es/components/ListData/helpers.d.ts +0 -6
  121. package/dist/es/components/ListData/helpers.js +0 -33
  122. package/dist/es/components/Logo/Logo.css +0 -1
  123. package/dist/es/components/Logo/Logo.d.ts +0 -20
  124. package/dist/es/components/Logo/Logo.js +0 -78
  125. package/dist/es/components/Modal/Modal.css +0 -1
  126. package/dist/es/components/Modal/Modal.d.ts +0 -109
  127. package/dist/es/components/Modal/Modal.js +0 -304
  128. package/dist/es/components/Modal/_ModalContent/ModalContent.css +0 -1
  129. package/dist/es/components/Modal/_ModalContent/ModalContent.d.ts +0 -8
  130. package/dist/es/components/Modal/_ModalContent/ModalContent.js +0 -183
  131. package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.css +0 -1
  132. package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.d.ts +0 -8
  133. package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.js +0 -32
  134. package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +0 -1
  135. package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.d.ts +0 -12
  136. package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.js +0 -119
  137. package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +0 -1
  138. package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +0 -8
  139. package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +0 -56
  140. package/dist/es/components/Modal/mocks.d.ts +0 -3
  141. package/dist/es/components/Modal/mocks.js +0 -83
  142. package/dist/es/components/Modal/types.d.ts +0 -28
  143. package/dist/es/components/Modal/types.js +0 -1
  144. package/dist/es/components/Modal/utils/utils.d.ts +0 -18
  145. package/dist/es/components/Modal/utils/utils.js +0 -66
  146. package/dist/es/components/NavArrow/NavArrow.css +0 -1
  147. package/dist/es/components/NavArrow/NavArrow.d.ts +0 -33
  148. package/dist/es/components/NavArrow/NavArrow.js +0 -98
  149. package/dist/es/components/Notification/Notification.css +0 -1
  150. package/dist/es/components/Notification/Notification.d.ts +0 -85
  151. package/dist/es/components/Notification/Notification.js +0 -298
  152. package/dist/es/components/Pagination/Pagination.css +0 -1
  153. package/dist/es/components/Pagination/Pagination.d.ts +0 -31
  154. package/dist/es/components/Pagination/Pagination.js +0 -128
  155. package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.css +0 -1
  156. package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.d.ts +0 -22
  157. package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.js +0 -41
  158. package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.css +0 -1
  159. package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +0 -21
  160. package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.js +0 -71
  161. package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +0 -1
  162. package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +0 -25
  163. package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +0 -130
  164. package/dist/es/components/Pagination/helpers.d.ts +0 -8
  165. package/dist/es/components/Pagination/helpers.js +0 -37
  166. package/dist/es/components/Pagination/types.d.ts +0 -25
  167. package/dist/es/components/Pagination/types.js +0 -4
  168. package/dist/es/components/Pagination/usePagination.d.ts +0 -13
  169. package/dist/es/components/Pagination/usePagination.js +0 -107
  170. package/dist/es/components/Paragraph/Paragraph.css +0 -1
  171. package/dist/es/components/Paragraph/Paragraph.d.ts +0 -31
  172. package/dist/es/components/Paragraph/Paragraph.js +0 -34
  173. package/dist/es/components/Parameter/Parameter.css +0 -1
  174. package/dist/es/components/Parameter/Parameter.d.ts +0 -59
  175. package/dist/es/components/Parameter/Parameter.js +0 -139
  176. package/dist/es/components/Parameter/components/ParameterDescription.css +0 -1
  177. package/dist/es/components/Parameter/components/ParameterDescription.d.ts +0 -16
  178. package/dist/es/components/Parameter/components/ParameterDescription.js +0 -39
  179. package/dist/es/components/Parameter/helpers.d.ts +0 -6
  180. package/dist/es/components/Parameter/helpers.js +0 -10
  181. package/dist/es/components/Preloader/Preloader.css +0 -1
  182. package/dist/es/components/Preloader/Preloader.d.ts +0 -39
  183. package/dist/es/components/Preloader/Preloader.js +0 -71
  184. package/dist/es/components/RadioButton/RadioButton.css +0 -1
  185. package/dist/es/components/RadioButton/RadioButton.d.ts +0 -38
  186. package/dist/es/components/RadioButton/RadioButton.js +0 -55
  187. package/dist/es/components/Row/Row.css +0 -1
  188. package/dist/es/components/Row/Row.d.ts +0 -48
  189. package/dist/es/components/Row/Row.js +0 -86
  190. package/dist/es/components/ScrollBar/ScrollBar.css +0 -1
  191. package/dist/es/components/ScrollBar/ScrollBar.d.ts +0 -38
  192. package/dist/es/components/ScrollBar/ScrollBar.js +0 -97
  193. package/dist/es/components/Search/Search.css +0 -1
  194. package/dist/es/components/Search/Search.d.ts +0 -126
  195. package/dist/es/components/Search/Search.js +0 -576
  196. package/dist/es/components/Select/Select.css +0 -1
  197. package/dist/es/components/Select/Select.d.ts +0 -97
  198. package/dist/es/components/Select/Select.js +0 -414
  199. package/dist/es/components/Select/reducer/selectReducer.d.ts +0 -34
  200. package/dist/es/components/Select/reducer/selectReducer.js +0 -109
  201. package/dist/es/components/Selector/Selector.css +0 -1
  202. package/dist/es/components/Selector/Selector.d.ts +0 -41
  203. package/dist/es/components/Selector/Selector.js +0 -70
  204. package/dist/es/components/Sliders/Slider/Slider.css +0 -1
  205. package/dist/es/components/Sliders/Slider/Slider.d.ts +0 -39
  206. package/dist/es/components/Sliders/Slider/Slider.js +0 -95
  207. package/dist/es/components/Sliders/SliderRange/SliderRange.css +0 -1
  208. package/dist/es/components/Sliders/SliderRange/SliderRange.d.ts +0 -47
  209. package/dist/es/components/Sliders/SliderRange/SliderRange.js +0 -207
  210. package/dist/es/components/Sliders/SliderRange/helpers.d.ts +0 -6
  211. package/dist/es/components/Sliders/SliderRange/helpers.js +0 -29
  212. package/dist/es/components/Sliders/SliderRatio/SliderRatio.css +0 -1
  213. package/dist/es/components/Sliders/SliderRatio/SliderRatio.d.ts +0 -41
  214. package/dist/es/components/Sliders/SliderRatio/SliderRatio.js +0 -200
  215. package/dist/es/components/Sliders/SliderRatio/helpers.d.ts +0 -15
  216. package/dist/es/components/Sliders/SliderRatio/helpers.js +0 -32
  217. package/dist/es/components/Sliders/SliderRatio/img/thumb.png +0 -0
  218. package/dist/es/components/Sliders/SliderRatio/types.d.ts +0 -8
  219. package/dist/es/components/Sliders/SliderRatio/types.js +0 -5
  220. package/dist/es/components/Sliders/components/SliderScale/SliderScale.css +0 -1
  221. package/dist/es/components/Sliders/components/SliderScale/SliderScale.d.ts +0 -19
  222. package/dist/es/components/Sliders/components/SliderScale/SliderScale.js +0 -37
  223. package/dist/es/components/Sliders/components/SliderScale/helpers.d.ts +0 -2
  224. package/dist/es/components/Sliders/components/SliderScale/helpers.js +0 -35
  225. package/dist/es/components/Sliders/helpers.d.ts +0 -3
  226. package/dist/es/components/Sliders/helpers.js +0 -35
  227. package/dist/es/components/Snackbar/Snackbar.css +0 -1
  228. package/dist/es/components/Snackbar/Snackbar.d.ts +0 -51
  229. package/dist/es/components/Snackbar/Snackbar.js +0 -233
  230. package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.css +0 -1
  231. package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.d.ts +0 -9
  232. package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.js +0 -71
  233. package/dist/es/components/Switcher/Switcher.css +0 -1
  234. package/dist/es/components/Switcher/Switcher.d.ts +0 -34
  235. package/dist/es/components/Switcher/Switcher.js +0 -80
  236. package/dist/es/components/Tabs/Tab.d.ts +0 -28
  237. package/dist/es/components/Tabs/Tab.js +0 -7
  238. package/dist/es/components/Tabs/Tabs.css +0 -1
  239. package/dist/es/components/Tabs/Tabs.d.ts +0 -67
  240. package/dist/es/components/Tabs/Tabs.js +0 -450
  241. package/dist/es/components/TextField/TextField.css +0 -1
  242. package/dist/es/components/TextField/TextField.d.ts +0 -118
  243. package/dist/es/components/TextField/TextField.js +0 -464
  244. package/dist/es/components/TextField/utils/countGraphemes.d.ts +0 -2
  245. package/dist/es/components/TextField/utils/countGraphemes.js +0 -44
  246. package/dist/es/components/TextLink/TextLink.css +0 -1
  247. package/dist/es/components/TextLink/TextLink.d.ts +0 -16
  248. package/dist/es/components/TextLink/TextLink.js +0 -37
  249. package/dist/es/components/Tile/Tile.css +0 -1
  250. package/dist/es/components/Tile/Tile.d.ts +0 -47
  251. package/dist/es/components/Tile/Tile.js +0 -58
  252. package/dist/es/components/Tooltip/Tooltip.css +0 -1
  253. package/dist/es/components/Tooltip/Tooltip.d.ts +0 -123
  254. package/dist/es/components/Tooltip/Tooltip.js +0 -402
  255. package/dist/es/components/UploadForm/UploadField/UploadField.css +0 -1
  256. package/dist/es/components/UploadForm/UploadField/UploadField.d.ts +0 -24
  257. package/dist/es/components/UploadForm/UploadField/UploadField.js +0 -58
  258. package/dist/es/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.css +0 -1
  259. package/dist/es/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.d.ts +0 -21
  260. package/dist/es/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.js +0 -68
  261. package/dist/es/components/UploadForm/UploadField/components/useDragAndDrop.d.ts +0 -3
  262. package/dist/es/components/UploadForm/UploadField/components/useDragAndDrop.js +0 -50
  263. package/dist/es/components/UploadForm/UploadFileItem/UploadFileItem.css +0 -1
  264. package/dist/es/components/UploadForm/UploadFileItem/UploadFileItem.d.ts +0 -38
  265. package/dist/es/components/UploadForm/UploadFileItem/UploadFileItem.js +0 -125
  266. package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/UploadFileItemIcon.d.ts +0 -7
  267. package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/UploadFileItemIcon.js +0 -279
  268. package/dist/es/components/UploadForm/UploadFileItem/helpers.d.ts +0 -5
  269. package/dist/es/components/UploadForm/UploadFileItem/helpers.js +0 -27
  270. package/dist/es/components/ValueField/ValueField.css +0 -1
  271. package/dist/es/components/ValueField/ValueField.d.ts +0 -43
  272. package/dist/es/components/ValueField/ValueField.js +0 -109
  273. package/dist/es/components/_Collapse/Collapse.css +0 -1
  274. package/dist/es/components/_Collapse/Collapse.d.ts +0 -19
  275. package/dist/es/components/_Collapse/Collapse.js +0 -86
  276. package/dist/es/constants/throttleTime.d.ts +0 -5
  277. package/dist/es/constants/throttleTime.js +0 -4
  278. package/dist/es/hooks/usePrevious.d.ts +0 -2
  279. package/dist/es/hooks/usePrevious.js +0 -9
  280. package/dist/es/hooks/useResolution.d.ts +0 -6
  281. package/dist/es/hooks/useResolution.js +0 -51
  282. package/dist/es/hooks/useSwipe.d.ts +0 -13
  283. package/dist/es/hooks/useSwipe.js +0 -127
  284. package/dist/es/index.d.ts +0 -84
  285. package/dist/es/index.js +0 -84
  286. package/dist/es/styles/base.css +0 -1
  287. package/dist/lib/components/Accordion/Accordion.css +0 -1
  288. package/dist/lib/components/Accordion/Accordion.d.ts +0 -46
  289. package/dist/lib/components/Accordion/Accordion.js +0 -108
  290. package/dist/lib/components/Avatar/Avatar.css +0 -1
  291. package/dist/lib/components/Avatar/Avatar.d.ts +0 -22
  292. package/dist/lib/components/Avatar/Avatar.js +0 -60
  293. package/dist/lib/components/Badges/CounterBadge/CounterBadge.css +0 -1
  294. package/dist/lib/components/Badges/CounterBadge/CounterBadge.d.ts +0 -29
  295. package/dist/lib/components/Badges/CounterBadge/CounterBadge.js +0 -52
  296. package/dist/lib/components/Badges/NotificationBadge/NotificationBadge.css +0 -1
  297. package/dist/lib/components/Badges/NotificationBadge/NotificationBadge.d.ts +0 -30
  298. package/dist/lib/components/Badges/NotificationBadge/NotificationBadge.js +0 -44
  299. package/dist/lib/components/Badges/PriceBadge/PriceBadge.css +0 -1
  300. package/dist/lib/components/Badges/PriceBadge/PriceBadge.d.ts +0 -48
  301. package/dist/lib/components/Badges/PriceBadge/PriceBadge.js +0 -219
  302. package/dist/lib/components/Badges/PromoBadge/PromoBadge.css +0 -1
  303. package/dist/lib/components/Badges/PromoBadge/PromoBadge.d.ts +0 -43
  304. package/dist/lib/components/Badges/PromoBadge/PromoBadge.js +0 -56
  305. package/dist/lib/components/Badges/StatusBadge/StatusBadge.css +0 -1
  306. package/dist/lib/components/Badges/StatusBadge/StatusBadge.d.ts +0 -39
  307. package/dist/lib/components/Badges/StatusBadge/StatusBadge.js +0 -165
  308. package/dist/lib/components/Badges/TimerBadge/TimerBadge.css +0 -1
  309. package/dist/lib/components/Badges/TimerBadge/TimerBadge.d.ts +0 -26
  310. package/dist/lib/components/Badges/TimerBadge/TimerBadge.js +0 -96
  311. package/dist/lib/components/Badges/TimerBadge/components/Timer/Timer.d.ts +0 -13
  312. package/dist/lib/components/Badges/TimerBadge/components/Timer/Timer.js +0 -79
  313. package/dist/lib/components/Banner/Banner.css +0 -1
  314. package/dist/lib/components/Banner/Banner.d.ts +0 -118
  315. package/dist/lib/components/Banner/Banner.js +0 -343
  316. package/dist/lib/components/Banner/BannerDot.css +0 -1
  317. package/dist/lib/components/Banner/BannerDot.d.ts +0 -20
  318. package/dist/lib/components/Banner/BannerDot.js +0 -60
  319. package/dist/lib/components/Banner/slidesSettings.d.ts +0 -7
  320. package/dist/lib/components/Banner/slidesSettings.js +0 -17
  321. package/dist/lib/components/Button/Button.css +0 -1
  322. package/dist/lib/components/Button/Button.d.ts +0 -93
  323. package/dist/lib/components/Button/Button.js +0 -225
  324. package/dist/lib/components/Calendar/Calendar.css +0 -1
  325. package/dist/lib/components/Calendar/Calendar.d.ts +0 -47
  326. package/dist/lib/components/Calendar/Calendar.js +0 -336
  327. package/dist/lib/components/Calendar/components/_Day/Day.css +0 -1
  328. package/dist/lib/components/Calendar/components/_Day/Day.d.ts +0 -26
  329. package/dist/lib/components/Calendar/components/_Day/Day.js +0 -90
  330. package/dist/lib/components/Calendar/components/_Month/Month.css +0 -1
  331. package/dist/lib/components/Calendar/components/_Month/Month.d.ts +0 -27
  332. package/dist/lib/components/Calendar/components/_Month/Month.js +0 -126
  333. package/dist/lib/components/Caption/Caption.css +0 -1
  334. package/dist/lib/components/Caption/Caption.d.ts +0 -33
  335. package/dist/lib/components/Caption/Caption.js +0 -46
  336. package/dist/lib/components/Carousel/Carousel.css +0 -1
  337. package/dist/lib/components/Carousel/Carousel.d.ts +0 -108
  338. package/dist/lib/components/Carousel/Carousel.js +0 -453
  339. package/dist/lib/components/Carousel/checkBreakpointsPropTypes.d.ts +0 -5
  340. package/dist/lib/components/Carousel/checkBreakpointsPropTypes.js +0 -24
  341. package/dist/lib/components/Carousel/useGradient.d.ts +0 -10
  342. package/dist/lib/components/Carousel/useGradient.js +0 -43
  343. package/dist/lib/components/Checkbox/Checkbox.css +0 -1
  344. package/dist/lib/components/Checkbox/Checkbox.d.ts +0 -42
  345. package/dist/lib/components/Checkbox/Checkbox.js +0 -95
  346. package/dist/lib/components/Chips/Chip.css +0 -1
  347. package/dist/lib/components/Chips/Chip.d.ts +0 -57
  348. package/dist/lib/components/Chips/Chip.js +0 -86
  349. package/dist/lib/components/Chips/Chips.css +0 -1
  350. package/dist/lib/components/Chips/Chips.d.ts +0 -49
  351. package/dist/lib/components/Chips/Chips.js +0 -172
  352. package/dist/lib/components/Chips/components/ChipsDropdown/ChipsDropdown.css +0 -1
  353. package/dist/lib/components/Chips/components/ChipsDropdown/ChipsDropdown.d.ts +0 -20
  354. package/dist/lib/components/Chips/components/ChipsDropdown/ChipsDropdown.js +0 -101
  355. package/dist/lib/components/Chips/components/ChipsScrollPanel/ChipsScrollPanel.css +0 -1
  356. package/dist/lib/components/Chips/components/ChipsScrollPanel/ChipsScrollPanel.d.ts +0 -19
  357. package/dist/lib/components/Chips/components/ChipsScrollPanel/ChipsScrollPanel.js +0 -95
  358. package/dist/lib/components/ContentArea/ContentArea.css +0 -1
  359. package/dist/lib/components/ContentArea/ContentArea.d.ts +0 -49
  360. package/dist/lib/components/ContentArea/ContentArea.js +0 -57
  361. package/dist/lib/components/ContentView/ContentView.css +0 -1
  362. package/dist/lib/components/ContentView/ContentView.d.ts +0 -51
  363. package/dist/lib/components/ContentView/ContentView.js +0 -75
  364. package/dist/lib/components/ContentView/img/alarm.png +0 -0
  365. package/dist/lib/components/ContentView/img/empty.png +0 -0
  366. package/dist/lib/components/ContentView/img/error.png +0 -0
  367. package/dist/lib/components/ContentView/img/fail.png +0 -0
  368. package/dist/lib/components/ContentView/img/searchNoResult.png +0 -0
  369. package/dist/lib/components/ContentView/img/submit.png +0 -0
  370. package/dist/lib/components/ContentView/img/success.png +0 -0
  371. package/dist/lib/components/ContentView/img/update.png +0 -0
  372. package/dist/lib/components/ContentView/img/waiting.png +0 -0
  373. package/dist/lib/components/Counter/Counter.css +0 -1
  374. package/dist/lib/components/Counter/Counter.d.ts +0 -36
  375. package/dist/lib/components/Counter/Counter.js +0 -130
  376. package/dist/lib/components/ErrorLoad/ErrorLoad.css +0 -1
  377. package/dist/lib/components/ErrorLoad/ErrorLoad.d.ts +0 -23
  378. package/dist/lib/components/ErrorLoad/ErrorLoad.js +0 -68
  379. package/dist/lib/components/Grid/Grid.css +0 -1
  380. package/dist/lib/components/Grid/Grid.d.ts +0 -25
  381. package/dist/lib/components/Grid/Grid.js +0 -45
  382. package/dist/lib/components/Grid/GridColumn.css +0 -1
  383. package/dist/lib/components/Grid/GridColumn.d.ts +0 -60
  384. package/dist/lib/components/Grid/GridColumn.js +0 -78
  385. package/dist/lib/components/Header/Header.css +0 -1
  386. package/dist/lib/components/Header/Header.d.ts +0 -30
  387. package/dist/lib/components/Header/Header.js +0 -47
  388. package/dist/lib/components/Link/Link.d.ts +0 -24
  389. package/dist/lib/components/Link/Link.js +0 -34
  390. package/dist/lib/components/List/List.css +0 -1
  391. package/dist/lib/components/List/List.d.ts +0 -17
  392. package/dist/lib/components/List/List.js +0 -36
  393. package/dist/lib/components/List/ListItem.css +0 -1
  394. package/dist/lib/components/List/ListItem.d.ts +0 -9
  395. package/dist/lib/components/List/ListItem.js +0 -20
  396. package/dist/lib/components/ListData/ListData.css +0 -1
  397. package/dist/lib/components/ListData/ListData.d.ts +0 -66
  398. package/dist/lib/components/ListData/ListData.js +0 -169
  399. package/dist/lib/components/ListData/ListDataGroup.css +0 -1
  400. package/dist/lib/components/ListData/ListDataGroup.d.ts +0 -46
  401. package/dist/lib/components/ListData/ListDataGroup.js +0 -159
  402. package/dist/lib/components/ListData/components/ListDataSortable.css +0 -1
  403. package/dist/lib/components/ListData/components/ListDataSortable.d.ts +0 -34
  404. package/dist/lib/components/ListData/components/ListDataSortable.js +0 -90
  405. package/dist/lib/components/ListData/helpers.d.ts +0 -6
  406. package/dist/lib/components/ListData/helpers.js +0 -40
  407. package/dist/lib/components/Logo/Logo.css +0 -1
  408. package/dist/lib/components/Logo/Logo.d.ts +0 -20
  409. package/dist/lib/components/Logo/Logo.js +0 -87
  410. package/dist/lib/components/Modal/Modal.css +0 -1
  411. package/dist/lib/components/Modal/Modal.d.ts +0 -109
  412. package/dist/lib/components/Modal/Modal.js +0 -313
  413. package/dist/lib/components/Modal/_ModalContent/ModalContent.css +0 -1
  414. package/dist/lib/components/Modal/_ModalContent/ModalContent.d.ts +0 -8
  415. package/dist/lib/components/Modal/_ModalContent/ModalContent.js +0 -192
  416. package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.css +0 -1
  417. package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.d.ts +0 -8
  418. package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.js +0 -41
  419. package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +0 -1
  420. package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.d.ts +0 -12
  421. package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.js +0 -128
  422. package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +0 -1
  423. package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +0 -8
  424. package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +0 -65
  425. package/dist/lib/components/Modal/mocks.d.ts +0 -3
  426. package/dist/lib/components/Modal/mocks.js +0 -89
  427. package/dist/lib/components/Modal/types.d.ts +0 -28
  428. package/dist/lib/components/Modal/types.js +0 -5
  429. package/dist/lib/components/Modal/utils/utils.d.ts +0 -18
  430. package/dist/lib/components/Modal/utils/utils.js +0 -72
  431. package/dist/lib/components/NavArrow/NavArrow.css +0 -1
  432. package/dist/lib/components/NavArrow/NavArrow.d.ts +0 -33
  433. package/dist/lib/components/NavArrow/NavArrow.js +0 -107
  434. package/dist/lib/components/Notification/Notification.css +0 -1
  435. package/dist/lib/components/Notification/Notification.d.ts +0 -85
  436. package/dist/lib/components/Notification/Notification.js +0 -307
  437. package/dist/lib/components/Pagination/Pagination.css +0 -1
  438. package/dist/lib/components/Pagination/Pagination.d.ts +0 -31
  439. package/dist/lib/components/Pagination/Pagination.js +0 -137
  440. package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.css +0 -1
  441. package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.d.ts +0 -22
  442. package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.js +0 -47
  443. package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.css +0 -1
  444. package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +0 -21
  445. package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.js +0 -80
  446. package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +0 -1
  447. package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +0 -25
  448. package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +0 -136
  449. package/dist/lib/components/Pagination/helpers.d.ts +0 -8
  450. package/dist/lib/components/Pagination/helpers.js +0 -43
  451. package/dist/lib/components/Pagination/types.d.ts +0 -25
  452. package/dist/lib/components/Pagination/types.js +0 -10
  453. package/dist/lib/components/Pagination/usePagination.d.ts +0 -13
  454. package/dist/lib/components/Pagination/usePagination.js +0 -114
  455. package/dist/lib/components/Paragraph/Paragraph.css +0 -1
  456. package/dist/lib/components/Paragraph/Paragraph.d.ts +0 -31
  457. package/dist/lib/components/Paragraph/Paragraph.js +0 -43
  458. package/dist/lib/components/Parameter/Parameter.css +0 -1
  459. package/dist/lib/components/Parameter/Parameter.d.ts +0 -59
  460. package/dist/lib/components/Parameter/Parameter.js +0 -148
  461. package/dist/lib/components/Parameter/components/ParameterDescription.css +0 -1
  462. package/dist/lib/components/Parameter/components/ParameterDescription.d.ts +0 -16
  463. package/dist/lib/components/Parameter/components/ParameterDescription.js +0 -48
  464. package/dist/lib/components/Parameter/helpers.d.ts +0 -6
  465. package/dist/lib/components/Parameter/helpers.js +0 -16
  466. package/dist/lib/components/Preloader/Preloader.css +0 -1
  467. package/dist/lib/components/Preloader/Preloader.d.ts +0 -39
  468. package/dist/lib/components/Preloader/Preloader.js +0 -80
  469. package/dist/lib/components/RadioButton/RadioButton.css +0 -1
  470. package/dist/lib/components/RadioButton/RadioButton.d.ts +0 -38
  471. package/dist/lib/components/RadioButton/RadioButton.js +0 -64
  472. package/dist/lib/components/Row/Row.css +0 -1
  473. package/dist/lib/components/Row/Row.d.ts +0 -48
  474. package/dist/lib/components/Row/Row.js +0 -95
  475. package/dist/lib/components/ScrollBar/ScrollBar.css +0 -1
  476. package/dist/lib/components/ScrollBar/ScrollBar.d.ts +0 -38
  477. package/dist/lib/components/ScrollBar/ScrollBar.js +0 -105
  478. package/dist/lib/components/Search/Search.css +0 -1
  479. package/dist/lib/components/Search/Search.d.ts +0 -126
  480. package/dist/lib/components/Search/Search.js +0 -585
  481. package/dist/lib/components/Select/Select.css +0 -1
  482. package/dist/lib/components/Select/Select.d.ts +0 -97
  483. package/dist/lib/components/Select/Select.js +0 -423
  484. package/dist/lib/components/Select/reducer/selectReducer.d.ts +0 -34
  485. package/dist/lib/components/Select/reducer/selectReducer.js +0 -116
  486. package/dist/lib/components/Selector/Selector.css +0 -1
  487. package/dist/lib/components/Selector/Selector.d.ts +0 -41
  488. package/dist/lib/components/Selector/Selector.js +0 -79
  489. package/dist/lib/components/Sliders/Slider/Slider.css +0 -1
  490. package/dist/lib/components/Sliders/Slider/Slider.d.ts +0 -39
  491. package/dist/lib/components/Sliders/Slider/Slider.js +0 -104
  492. package/dist/lib/components/Sliders/SliderRange/SliderRange.css +0 -1
  493. package/dist/lib/components/Sliders/SliderRange/SliderRange.d.ts +0 -47
  494. package/dist/lib/components/Sliders/SliderRange/SliderRange.js +0 -216
  495. package/dist/lib/components/Sliders/SliderRange/helpers.d.ts +0 -6
  496. package/dist/lib/components/Sliders/SliderRange/helpers.js +0 -35
  497. package/dist/lib/components/Sliders/SliderRatio/SliderRatio.css +0 -1
  498. package/dist/lib/components/Sliders/SliderRatio/SliderRatio.d.ts +0 -41
  499. package/dist/lib/components/Sliders/SliderRatio/SliderRatio.js +0 -209
  500. package/dist/lib/components/Sliders/SliderRatio/helpers.d.ts +0 -15
  501. package/dist/lib/components/Sliders/SliderRatio/helpers.js +0 -39
  502. package/dist/lib/components/Sliders/SliderRatio/img/thumb.png +0 -0
  503. package/dist/lib/components/Sliders/SliderRatio/types.d.ts +0 -8
  504. package/dist/lib/components/Sliders/SliderRatio/types.js +0 -11
  505. package/dist/lib/components/Sliders/components/SliderScale/SliderScale.css +0 -1
  506. package/dist/lib/components/Sliders/components/SliderScale/SliderScale.d.ts +0 -19
  507. package/dist/lib/components/Sliders/components/SliderScale/SliderScale.js +0 -46
  508. package/dist/lib/components/Sliders/components/SliderScale/helpers.d.ts +0 -2
  509. package/dist/lib/components/Sliders/components/SliderScale/helpers.js +0 -42
  510. package/dist/lib/components/Sliders/helpers.d.ts +0 -3
  511. package/dist/lib/components/Sliders/helpers.js +0 -41
  512. package/dist/lib/components/Snackbar/Snackbar.css +0 -1
  513. package/dist/lib/components/Snackbar/Snackbar.d.ts +0 -51
  514. package/dist/lib/components/Snackbar/Snackbar.js +0 -242
  515. package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.css +0 -1
  516. package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.d.ts +0 -9
  517. package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.js +0 -80
  518. package/dist/lib/components/Switcher/Switcher.css +0 -1
  519. package/dist/lib/components/Switcher/Switcher.d.ts +0 -34
  520. package/dist/lib/components/Switcher/Switcher.js +0 -89
  521. package/dist/lib/components/Tabs/Tab.d.ts +0 -28
  522. package/dist/lib/components/Tabs/Tab.js +0 -17
  523. package/dist/lib/components/Tabs/Tabs.css +0 -1
  524. package/dist/lib/components/Tabs/Tabs.d.ts +0 -67
  525. package/dist/lib/components/Tabs/Tabs.js +0 -460
  526. package/dist/lib/components/TextField/TextField.css +0 -1
  527. package/dist/lib/components/TextField/TextField.d.ts +0 -118
  528. package/dist/lib/components/TextField/TextField.js +0 -474
  529. package/dist/lib/components/TextField/utils/countGraphemes.d.ts +0 -2
  530. package/dist/lib/components/TextField/utils/countGraphemes.js +0 -50
  531. package/dist/lib/components/TextLink/TextLink.css +0 -1
  532. package/dist/lib/components/TextLink/TextLink.d.ts +0 -16
  533. package/dist/lib/components/TextLink/TextLink.js +0 -46
  534. package/dist/lib/components/Tile/Tile.css +0 -1
  535. package/dist/lib/components/Tile/Tile.d.ts +0 -47
  536. package/dist/lib/components/Tile/Tile.js +0 -67
  537. package/dist/lib/components/Tooltip/Tooltip.css +0 -1
  538. package/dist/lib/components/Tooltip/Tooltip.d.ts +0 -123
  539. package/dist/lib/components/Tooltip/Tooltip.js +0 -411
  540. package/dist/lib/components/UploadForm/UploadField/UploadField.css +0 -1
  541. package/dist/lib/components/UploadForm/UploadField/UploadField.d.ts +0 -24
  542. package/dist/lib/components/UploadForm/UploadField/UploadField.js +0 -67
  543. package/dist/lib/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.css +0 -1
  544. package/dist/lib/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.d.ts +0 -21
  545. package/dist/lib/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.js +0 -77
  546. package/dist/lib/components/UploadForm/UploadField/components/useDragAndDrop.d.ts +0 -3
  547. package/dist/lib/components/UploadForm/UploadField/components/useDragAndDrop.js +0 -57
  548. package/dist/lib/components/UploadForm/UploadFileItem/UploadFileItem.css +0 -1
  549. package/dist/lib/components/UploadForm/UploadFileItem/UploadFileItem.d.ts +0 -38
  550. package/dist/lib/components/UploadForm/UploadFileItem/UploadFileItem.js +0 -134
  551. package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/UploadFileItemIcon.d.ts +0 -7
  552. package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/UploadFileItemIcon.js +0 -289
  553. package/dist/lib/components/UploadForm/UploadFileItem/helpers.d.ts +0 -5
  554. package/dist/lib/components/UploadForm/UploadFileItem/helpers.js +0 -33
  555. package/dist/lib/components/ValueField/ValueField.css +0 -1
  556. package/dist/lib/components/ValueField/ValueField.d.ts +0 -43
  557. package/dist/lib/components/ValueField/ValueField.js +0 -118
  558. package/dist/lib/components/_Collapse/Collapse.css +0 -1
  559. package/dist/lib/components/_Collapse/Collapse.d.ts +0 -19
  560. package/dist/lib/components/_Collapse/Collapse.js +0 -95
  561. package/dist/lib/constants/throttleTime.d.ts +0 -5
  562. package/dist/lib/constants/throttleTime.js +0 -10
  563. package/dist/lib/hooks/usePrevious.d.ts +0 -2
  564. package/dist/lib/hooks/usePrevious.js +0 -18
  565. package/dist/lib/hooks/useResolution.d.ts +0 -6
  566. package/dist/lib/hooks/useResolution.js +0 -61
  567. package/dist/lib/hooks/useSwipe.d.ts +0 -13
  568. package/dist/lib/hooks/useSwipe.js +0 -137
  569. package/dist/lib/index.d.ts +0 -84
  570. package/dist/lib/index.js +0 -594
  571. package/dist/lib/styles/base.css +0 -1
  572. package/styles/base.scss +0 -157
  573. package/styles/colors.css +0 -166
  574. package/styles/colorsDark.css +0 -87
@@ -1,343 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof3(o) { "@babel/helpers - typeof"; return _typeof3 = "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; }, _typeof3(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = exports.Radius = exports.PaginationTheme = exports.PaginationPositionType = exports.PaginationButtonType = exports.PaginationAlign = exports.NavTheme = exports.BackgroundColor = void 0;
8
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
10
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
- require("core-js/modules/es.array.map.js");
12
- var React = _interopRequireWildcard(require("react"));
13
- var _uiHelpers = require("@megafon/ui-helpers");
14
- var _NavArrow = _interopRequireWildcard(require("../NavArrow/NavArrow"));
15
- var _BannerDot = _interopRequireDefault(require("./BannerDot"));
16
- var _slidesSettings = _interopRequireDefault(require("./slidesSettings"));
17
- 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); }
18
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
19
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
20
- /* eslint-disable global-require */
21
-
22
- var Autoplay = null;
23
- var Swiper = null;
24
- var SwiperSlide = null;
25
- try {
26
- // eslint-disable-next-line @typescript-eslint/no-var-requires
27
- var SwiperAll = require('swiper/react');
28
- // eslint-disable-next-line @typescript-eslint/no-var-requires
29
- var Modules = require('swiper/modules');
30
- Swiper = SwiperAll.Swiper;
31
- SwiperSlide = SwiperAll.SwiperSlide;
32
- Autoplay = Modules.Autoplay;
33
- } catch (e) {
34
- // eslint-disable-next-line no-console
35
- console.warn("\n WARNING: megafon/ui-core is using the latest version of swiper.\n For more information about server-side rendering\n please check the Banner component documentation at:\n https://ui.megafon.ru/components/banner\n ");
36
- }
37
- var BackgroundColor = exports.BackgroundColor = {
38
- TRANSPARENT: 'transparent',
39
- GREEN: 'green',
40
- PURPLE: 'purple',
41
- SPB_SKY_0: 'spbSky0',
42
- GRADIENT: 'gradient',
43
- LIGHT: 'light'
44
- };
45
- var Radius = exports.Radius = {
46
- CORNERS: 'corners',
47
- ROUNDED: 'rounded'
48
- };
49
- var NavTheme = exports.NavTheme = {
50
- LIGHT: 'light',
51
- DARK: 'dark'
52
- };
53
- var PaginationAlign = exports.PaginationAlign = {
54
- CENTER: 'center',
55
- LEFT: 'left'
56
- };
57
- var PaginationTheme = exports.PaginationTheme = {
58
- DEFAULT: 'default',
59
- LIGHT: 'light',
60
- DARK: 'dark'
61
- };
62
- var PaginationButtonType = exports.PaginationButtonType = {
63
- DOT: 'dot',
64
- FLAT: 'flat'
65
- };
66
- var PaginationPositionType = exports.PaginationPositionType = {
67
- BOTTOM_OUT: 'bottom-out',
68
- TOP_IN: 'top-in'
69
- };
70
- var cn = (0, _uiHelpers.cnCreate)('mfui-banner');
71
- var Banner = function Banner(_ref) {
72
- var className = _ref.className,
73
- _ref$classes = _ref.classes,
74
- classes = _ref$classes === void 0 ? {} : _ref$classes,
75
- dataAttrs = _ref.dataAttrs,
76
- _ref$paginationAlign = _ref.paginationAlign,
77
- paginationAlign = _ref$paginationAlign === void 0 ? PaginationAlign.CENTER : _ref$paginationAlign,
78
- paginationType = _ref.paginationType,
79
- _ref$withPaginationBo = _ref.withPaginationBottomOffset,
80
- withPaginationBottomOffset = _ref$withPaginationBo === void 0 ? false : _ref$withPaginationBo,
81
- _ref$autoPlay = _ref.autoPlay,
82
- autoPlay = _ref$autoPlay === void 0 ? false : _ref$autoPlay,
83
- _ref$autoPlayDelay = _ref.autoPlayDelay,
84
- autoPlayDelay = _ref$autoPlayDelay === void 0 ? 5000 : _ref$autoPlayDelay,
85
- _ref$loop = _ref.loop,
86
- loop = _ref$loop === void 0 ? false : _ref$loop,
87
- _ref$pauseOnHover = _ref.pauseOnHover,
88
- pauseOnHover = _ref$pauseOnHover === void 0 ? false : _ref$pauseOnHover,
89
- backgroundColor = _ref.backgroundColor,
90
- _ref$radius = _ref.radius,
91
- radius = _ref$radius === void 0 ? Radius.ROUNDED : _ref$radius,
92
- _ref$arrowTheme = _ref.arrowTheme,
93
- arrowTheme = _ref$arrowTheme === void 0 ? _NavArrow.Theme.DARK : _ref$arrowTheme,
94
- _ref$autoHeight = _ref.autoHeight,
95
- autoHeight = _ref$autoHeight === void 0 ? false : _ref$autoHeight,
96
- noIncreaseAutoplayDelay = _ref.noIncreaseAutoplayDelay,
97
- showNextSlide = _ref.showNextSlide,
98
- _ref$hasMarginTop = _ref.hasMarginTop,
99
- hasMarginTop = _ref$hasMarginTop === void 0 ? false : _ref$hasMarginTop,
100
- _ref$children = _ref.children,
101
- children = _ref$children === void 0 ? [] : _ref$children,
102
- getSwiper = _ref.getSwiper,
103
- onNextClick = _ref.onNextClick,
104
- onPrevClick = _ref.onPrevClick,
105
- onDotClick = _ref.onDotClick,
106
- onChange = _ref.onChange;
107
- var isSingleSlide = React.Children.count(children) === 1;
108
- var canAutoPlay = autoPlay && !isSingleSlide;
109
- var _React$useState = React.useState(false),
110
- _React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
111
- isTouch = _React$useState2[0],
112
- setTouch = _React$useState2[1];
113
- var _React$useState3 = React.useState(),
114
- _React$useState4 = (0, _slicedToArray2["default"])(_React$useState3, 2),
115
- swiperInstance = _React$useState4[0],
116
- setSwiperInstance = _React$useState4[1];
117
- var _React$useState5 = React.useState(true),
118
- _React$useState6 = (0, _slicedToArray2["default"])(_React$useState5, 2),
119
- isBeginning = _React$useState6[0],
120
- setBeginning = _React$useState6[1];
121
- var _React$useState7 = React.useState(false),
122
- _React$useState8 = (0, _slicedToArray2["default"])(_React$useState7, 2),
123
- isEnd = _React$useState8[0],
124
- setEnd = _React$useState8[1];
125
- var _React$useState9 = React.useState(canAutoPlay),
126
- _React$useState10 = (0, _slicedToArray2["default"])(_React$useState9, 2),
127
- isAutoPlaying = _React$useState10[0],
128
- setAutoPlaying = _React$useState10[1];
129
- var _React$useState11 = React.useState(0),
130
- _React$useState12 = (0, _slicedToArray2["default"])(_React$useState11, 2),
131
- activeIndex = _React$useState12[0],
132
- setActiveIndex = _React$useState12[1];
133
- var _React$useState13 = React.useState(autoPlayDelay),
134
- _React$useState14 = (0, _slicedToArray2["default"])(_React$useState13, 2),
135
- delay = _React$useState14[0],
136
- setDelay = _React$useState14[1];
137
- var _React$useState15 = React.useState(false),
138
- _React$useState16 = (0, _slicedToArray2["default"])(_React$useState15, 2),
139
- isIncreasedDelay = _React$useState16[0],
140
- setIsIncreasedDelay = _React$useState16[1];
141
- var showDotTimer = loop ? isAutoPlaying : isAutoPlaying && !isEnd;
142
- var dotTimerDelay = delay / 1000;
143
- var arrowSize = arrowTheme === _NavArrow.Theme.WHITE ? _NavArrow.Size.LARGE : _NavArrow.Size.MIDDLE;
144
- var rootRef = React.useRef(null);
145
- var correctPaginationPosition = paginationType === PaginationButtonType.FLAT ? PaginationPositionType.TOP_IN : PaginationPositionType.BOTTOM_OUT;
146
- var correctPaginationAlign = paginationType === PaginationButtonType.FLAT ? paginationAlign : PaginationAlign.CENTER;
147
- var getCorrectPaginationTheme = function getCorrectPaginationTheme() {
148
- switch (backgroundColor) {
149
- case BackgroundColor.GREEN:
150
- case BackgroundColor.PURPLE:
151
- return PaginationTheme.LIGHT;
152
- case BackgroundColor.LIGHT:
153
- case BackgroundColor.GRADIENT:
154
- return PaginationTheme.DARK;
155
- default:
156
- return PaginationTheme.DEFAULT;
157
- }
158
- };
159
- var increaseAutoplayDelay = React.useCallback(function (_ref2) {
160
- var params = _ref2.params,
161
- autoplay = _ref2.autoplay;
162
- if ((0, _typeof2["default"])(params.autoplay) !== 'object' || !canAutoPlay || noIncreaseAutoplayDelay) {
163
- return;
164
- }
165
- autoplay.stop();
166
- // eslint-disable-next-line no-param-reassign
167
- params.autoplay.delay = autoPlayDelay * 3;
168
- setDelay(autoPlayDelay * 3);
169
- setIsIncreasedDelay(true);
170
- autoplay.start();
171
- }, [canAutoPlay, autoPlayDelay, noIncreaseAutoplayDelay]);
172
- var handlePrevClick = React.useCallback(function () {
173
- if (!swiperInstance) {
174
- return;
175
- }
176
- swiperInstance.slidePrev();
177
- onPrevClick === null || onPrevClick === void 0 ? void 0 : onPrevClick(swiperInstance.realIndex);
178
- !isIncreasedDelay && increaseAutoplayDelay(swiperInstance);
179
- }, [swiperInstance, onPrevClick, isIncreasedDelay, increaseAutoplayDelay]);
180
- var handleNextClick = React.useCallback(function () {
181
- if (!swiperInstance) {
182
- return;
183
- }
184
- swiperInstance.slideNext();
185
- onNextClick === null || onNextClick === void 0 ? void 0 : onNextClick(swiperInstance.realIndex);
186
- !isIncreasedDelay && increaseAutoplayDelay(swiperInstance);
187
- }, [swiperInstance, onNextClick, isIncreasedDelay, increaseAutoplayDelay]);
188
- var handleDotClick = React.useCallback(function (index) {
189
- if (!swiperInstance) {
190
- return;
191
- }
192
- if (loop) {
193
- swiperInstance.slideToLoop(index);
194
- } else {
195
- swiperInstance.slideTo(index);
196
- }
197
- onDotClick === null || onDotClick === void 0 ? void 0 : onDotClick(swiperInstance.realIndex);
198
- !isIncreasedDelay && increaseAutoplayDelay(swiperInstance);
199
- }, [swiperInstance, loop, onDotClick, isIncreasedDelay, increaseAutoplayDelay]);
200
- var handleReachBeginning = React.useCallback(function () {
201
- setBeginning(true);
202
- }, []);
203
- var handleReachEnd = React.useCallback(function (_ref3) {
204
- var params = _ref3.params,
205
- autoplay = _ref3.autoplay;
206
- setEnd(true);
207
- if (!params.loop && autoplay.running) {
208
- autoplay.stop();
209
- }
210
- }, []);
211
- var handleFromEdge = React.useCallback(function (swiper) {
212
- setBeginning(swiper.isBeginning);
213
- setEnd(swiper.isEnd);
214
- }, []);
215
- var handleSlideChange = React.useCallback(function (_ref4) {
216
- var realIndex = _ref4.realIndex;
217
- setActiveIndex(realIndex);
218
- onChange === null || onChange === void 0 ? void 0 : onChange(realIndex);
219
- }, [onChange]);
220
- var handleSwiper = React.useCallback(function (swiper) {
221
- setSwiperInstance(swiper);
222
- getSwiper === null || getSwiper === void 0 ? void 0 : getSwiper(swiper);
223
- }, [getSwiper]);
224
- React.useEffect(function () {
225
- setTouch((0, _uiHelpers.detectTouch)());
226
- }, []);
227
- React.useEffect(function () {
228
- var rootElement = rootRef.current;
229
- if (!pauseOnHover || !canAutoPlay) {
230
- return;
231
- }
232
- rootElement === null || rootElement === void 0 ? void 0 : rootElement.addEventListener('mouseenter', function () {
233
- swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.autoplay.stop();
234
- setAutoPlaying(false);
235
- });
236
- rootElement === null || rootElement === void 0 ? void 0 : rootElement.addEventListener('mouseleave', function () {
237
- swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.autoplay.start();
238
- setAutoPlaying(true);
239
- });
240
- }, [canAutoPlay, pauseOnHover, swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.autoplay]);
241
- React.useEffect(function () {
242
- setAutoPlaying(canAutoPlay);
243
- if (canAutoPlay) {
244
- swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.autoplay.start();
245
- return;
246
- }
247
- swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.autoplay.stop();
248
- }, [canAutoPlay, swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.autoplay]);
249
- var renderNavArrows = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_NavArrow["default"], {
250
- className: cn('arrow', {
251
- prev: true,
252
- theme: arrowTheme
253
- }, [classes.arrow, classes.arrowPrev]),
254
- dataAttrs: {
255
- root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.arrowPrev
256
- },
257
- onClick: handlePrevClick,
258
- disabled: !loop && isBeginning,
259
- theme: arrowTheme,
260
- size: arrowSize
261
- }), /*#__PURE__*/React.createElement(_NavArrow["default"], {
262
- className: cn('arrow', {
263
- next: true,
264
- theme: arrowTheme
265
- }, [classes.arrow, classes.arrowNext]),
266
- dataAttrs: {
267
- root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.arrowNext
268
- },
269
- view: "next",
270
- onClick: handleNextClick,
271
- disabled: !loop && isEnd,
272
- theme: arrowTheme,
273
- size: arrowSize
274
- }));
275
- var renderPagination = /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.pagination), {
276
- className: cn('pagination', {
277
- type: paginationType,
278
- align: correctPaginationAlign,
279
- position: correctPaginationPosition,
280
- 'bottom-offset': withPaginationBottomOffset
281
- }, [classes.pagination])
282
- }), children && React.Children.map(children, function (_, i) {
283
- return /*#__PURE__*/React.createElement(_BannerDot["default"], {
284
- className: cn('dot', [classes.dot]),
285
- dataAttrs: {
286
- root: (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.dot, i + 1)),
287
- svg: (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.dotSvg, i + 1)),
288
- inner: (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.dotInner, i + 1))
289
- },
290
- key: i,
291
- index: i,
292
- isActive: i === activeIndex,
293
- showTimer: showDotTimer,
294
- timerDelay: dotTimerDelay,
295
- type: paginationType,
296
- theme: getCorrectPaginationTheme(),
297
- onClick: handleDotClick
298
- });
299
- }));
300
- if (!Swiper || !Autoplay || !SwiperSlide) {
301
- return null;
302
- }
303
- return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
304
- className: cn({
305
- 'auto-height': autoHeight,
306
- 'background-color': backgroundColor,
307
- 'no-touch': !isTouch,
308
- radius: radius,
309
- 'show-next-slide': showNextSlide,
310
- 'margin-top': hasMarginTop
311
- }, className),
312
- ref: rootRef
313
- }), /*#__PURE__*/React.createElement("div", {
314
- className: cn('swiper-container')
315
- }, /*#__PURE__*/React.createElement(Swiper, (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.swiper), {
316
- className: cn('swiper', [classes.swiper]),
317
- loop: loop,
318
- autoplay: {
319
- delay: delay,
320
- waitForTransition: false,
321
- disableOnInteraction: false,
322
- stopOnLastSlide: true
323
- },
324
- watchSlidesProgress: true,
325
- noSwipingClass: classes.noSwiping,
326
- breakpoints: showNextSlide ? _slidesSettings["default"] : undefined,
327
- onSwiper: handleSwiper,
328
- onReachBeginning: handleReachBeginning,
329
- onReachEnd: handleReachEnd,
330
- onFromEdge: handleFromEdge,
331
- onSlideChange: handleSlideChange,
332
- onTouchEnd: increaseAutoplayDelay,
333
- modules: [Autoplay]
334
- }), children && React.Children.map(children, function (child, i) {
335
- return /*#__PURE__*/React.createElement(SwiperSlide, (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.slide, i + 1), {
336
- className: cn('slide', [classes.slide]),
337
- key: i
338
- }), /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.cloneElement(child, {
339
- className: cn('slide-content', [child === null || child === void 0 ? void 0 : child.props.className])
340
- }));
341
- })), !isSingleSlide && renderNavArrows), !isSingleSlide && renderPagination);
342
- };
343
- var _default = exports["default"] = Banner;
@@ -1 +0,0 @@
1
- h1,h2,h3,h4,h5{margin:0}.mfui-banner-dot{background-color:var(--spbSky2);border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:8px;position:relative;width:8px}.mfui-banner-dot_active{background-color:var(--brandGreen);cursor:default;-webkit-transition:background-color .2s linear;transition:background-color .2s linear;width:24px}.mfui-banner-dot_active .mfui-banner-dot__timer-inner{fill:var(--brandGreen)}.mfui-banner-dot_active.mfui-banner-dot_has-timer{background-color:var(--spbSky2)}.mfui-banner-dot_type_flat{-webkit-box-flex:1;border-radius:24px;-ms-flex:1 1 auto;flex:1 1 auto;height:2px;width:auto}.mfui-banner-dot_type_flat .mfui-banner-dot__timer{height:100%;width:100%}.mfui-banner-dot_type_flat .mfui-banner-dot__timer-inner{-webkit-animation:timer-reversed linear;animation:timer-reversed linear;height:100%;-webkit-transform:scale(1);transform:scale(1);width:100%}.mfui-banner-dot_theme_light,.mfui-banner-dot_theme_light .mfui-banner-dot__timer{background-color:var(--stcWhite50)}.mfui-banner-dot_theme_light .mfui-banner-dot__timer-inner{fill:var(--stcWhite)}.mfui-banner-dot_theme_light.mfui-banner-dot_active{background-color:var(--stcWhite)}.mfui-banner-dot_theme_light.mfui-banner-dot_has-timer{background-color:transparent}.mfui-banner-dot_theme_dark,.mfui-banner-dot_theme_dark .mfui-banner-dot__timer{background-color:var(--stcBlack10)}.mfui-banner-dot_theme_dark .mfui-banner-dot__timer-inner{fill:var(--stcBlack)}.mfui-banner-dot_theme_dark.mfui-banner-dot_active{background-color:var(--stcBlack)}.mfui-banner-dot_theme_dark.mfui-banner-dot_has-timer{background-color:transparent}.mfui-banner-dot__timer{border-radius:4px;display:block;height:8px;left:0;position:absolute;top:0;width:24px}.mfui-banner-dot__timer-inner{-webkit-animation:timer linear;animation:timer linear;-webkit-transform:scaleX(-1);transform:scaleX(-1);-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes timer{0%{width:100%}to{width:0}}@keyframes timer{0%{width:100%}to{width:0}}@-webkit-keyframes timer-reversed{0%{width:0}to{width:100%}}@keyframes timer-reversed{0%{width:0}to{width:100%}}
@@ -1,20 +0,0 @@
1
- import * as React from 'react';
2
- import { type PaginationThemeType, type PaginationType } from './Banner';
3
- import './BannerDot.scss';
4
- export interface IBannerDotProps {
5
- className?: string;
6
- index: number;
7
- isActive: boolean;
8
- showTimer: boolean;
9
- timerDelay: number;
10
- dataAttrs?: {
11
- root?: Record<string, string>;
12
- svg?: Record<string, string>;
13
- inner?: Record<string, string>;
14
- };
15
- type?: PaginationType;
16
- theme?: PaginationThemeType;
17
- onClick: (index: number) => void;
18
- }
19
- declare const BannerDot: React.FC<IBannerDotProps>;
20
- export default BannerDot;
@@ -1,60 +0,0 @@
1
- "use strict";
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); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var React = _interopRequireWildcard(require("react"));
10
- var _uiHelpers = require("@megafon/ui-helpers");
11
- var _Banner = require("./Banner");
12
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
- var DOT_VIEW_BOX = '0 0 250 100';
16
- var DOT_RECT_PROPS = {
17
- x: '0',
18
- y: '0',
19
- width: '250',
20
- height: '100',
21
- rx: '50',
22
- ry: '50'
23
- };
24
- var cn = (0, _uiHelpers.cnCreate)('mfui-banner-dot');
25
- var BannerDot = function BannerDot(_ref) {
26
- var className = _ref.className,
27
- dataAttrs = _ref.dataAttrs,
28
- index = _ref.index,
29
- isActive = _ref.isActive,
30
- showTimer = _ref.showTimer,
31
- timerDelay = _ref.timerDelay,
32
- _ref$type = _ref.type,
33
- type = _ref$type === void 0 ? _Banner.PaginationButtonType.DOT : _ref$type,
34
- theme = _ref.theme,
35
- onClick = _ref.onClick;
36
- var viewBox = type === _Banner.PaginationButtonType.DOT ? DOT_VIEW_BOX : undefined;
37
- var rectProps = type === _Banner.PaginationButtonType.DOT ? DOT_RECT_PROPS : {};
38
- var hasTimer = showTimer && isActive;
39
- var handleDotClick = React.useCallback(function () {
40
- onClick(index);
41
- }, [onClick, index]);
42
- return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
43
- className: cn({
44
- active: isActive,
45
- type: type,
46
- theme: theme,
47
- 'has-timer': hasTimer
48
- }, className),
49
- onClick: handleDotClick
50
- }), hasTimer && /*#__PURE__*/React.createElement("svg", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.svg), {
51
- className: cn('timer'),
52
- viewBox: viewBox
53
- }), /*#__PURE__*/React.createElement("rect", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.inner), rectProps, {
54
- className: cn('timer-inner'),
55
- style: {
56
- animationDuration: "".concat(timerDelay, "s")
57
- }
58
- }))));
59
- };
60
- var _default = exports["default"] = BannerDot;
@@ -1,7 +0,0 @@
1
- declare const SLIDES_SETTINGS: {
2
- [x: number]: {
3
- slidesPerView: number;
4
- spaceBetween: number;
5
- };
6
- };
7
- export default SLIDES_SETTINGS;
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
8
- var _uiHelpers = require("@megafon/ui-helpers");
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
- var SLIDES_SETTINGS = (0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _uiHelpers.breakpoints.MOBILE_SMALL_START, {
11
- slidesPerView: 1,
12
- spaceBetween: 16
13
- }), _uiHelpers.breakpoints.MOBILE_BIG_START, {
14
- slidesPerView: 1,
15
- spaceBetween: 0
16
- });
17
- var _default = exports["default"] = SLIDES_SETTINGS;
@@ -1 +0,0 @@
1
- h1,h2,h3,h4,h5{margin:0}.mfui-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:30px;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--stcWhite);cursor:pointer;display:inline-block;font-family:inherit;font-size:15px;font-weight:500;line-height:24px;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content;outline:none;overflow:hidden;padding:0 32px;text-align:center;text-decoration:none;-webkit-transition:background-color .3s,color .3s;transition:background-color .3s,color .3s;vertical-align:top;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mfui-button svg{display:block;-webkit-transition:fill .3s;transition:fill .3s}.mfui-button_size-all_extra-small{font-size:12px;height:24px;line-height:14px;min-width:24px;padding:0 16px}.mfui-button_size-all_extra-small .mfui-button__icon,.mfui-button_size-all_extra-small .mfui-button__icon-arrow,.mfui-button_size-all_extra-small.mfui-button_content-type_icon-text .mfui-button__icon{height:20px;width:20px}.mfui-button_size-all_extra-small.mfui-button_content-type_icon-text .mfui-button__icon{margin-right:2px}.mfui-button_size-all_extra-small .mfui-button__icon-arrow{margin-left:0}.mfui-button_size-all_small{height:40px;min-width:40px;padding:0 24px}.mfui-button_size-all_small .mfui-button__icon,.mfui-button_size-all_small .mfui-button__icon-arrow{height:20px;width:20px}.mfui-button_size-all_small.mfui-button_content-type_icon-text .mfui-button__icon{height:32px;width:32px}.mfui-button_size-all_medium{height:52px;min-width:52px}.mfui-button_size-all_medium .mfui-button__icon,.mfui-button_size-all_medium .mfui-button__icon-arrow,.mfui-button_size-all_medium.mfui-button_content-type_icon-text .mfui-button__icon{height:32px;width:32px}.mfui-button_size-all_large{height:60px;min-width:60px}.mfui-button_size-all_large .mfui-button__icon,.mfui-button_size-all_large .mfui-button__icon-arrow,.mfui-button_size-all_large.mfui-button_content-type_icon-text .mfui-button__icon{height:32px;width:32px}.mfui-button_size-all_extra-small.mfui-buttonhas-arrow{padding:0 8px}.mfui-button_size-all_extra-small.mfui-buttonhas-arrow .mfui-button__content{padding-left:12px}.mfui-button_size-all_large.mfui-buttonhas-arrow,.mfui-button_size-all_medium.mfui-buttonhas-arrow{padding:0 24px}.mfui-button_size-all_large.mfui-buttonhas-arrow .mfui-button__content,.mfui-button_size-all_medium.mfui-buttonhas-arrow .mfui-button__content,.mfui-button_size-all_small.mfui-buttonhas-arrow .mfui-button__content{padding-left:16px}.mfui-button_type_text{padding:0}@media screen and (min-width:1024px){.mfui-button_size-desktop_extra-small{font-size:12px;height:24px;line-height:14px;min-width:24px;padding:0 16px}.mfui-button_size-desktop_extra-small .mfui-button__icon,.mfui-button_size-desktop_extra-small .mfui-button__icon-arrow,.mfui-button_size-desktop_extra-small.mfui-button_content-type_icon-text .mfui-button__icon{height:20px;width:20px}.mfui-button_size-desktop_extra-small.mfui-button_content-type_icon-text .mfui-button__icon{margin-right:2px}.mfui-button_size-desktop_extra-small .mfui-button__icon-arrow{margin-left:0}.mfui-button_size-desktop_small{height:40px;min-width:40px;padding:0 24px}.mfui-button_size-desktop_small .mfui-button__icon,.mfui-button_size-desktop_small .mfui-button__icon-arrow{height:20px;width:20px}.mfui-button_size-desktop_small.mfui-button_content-type_icon-text .mfui-button__icon{height:32px;width:32px}.mfui-button_size-desktop_medium{height:52px;min-width:52px}.mfui-button_size-desktop_medium .mfui-button__icon,.mfui-button_size-desktop_medium .mfui-button__icon-arrow,.mfui-button_size-desktop_medium.mfui-button_content-type_icon-text .mfui-button__icon{height:32px;width:32px}.mfui-button_size-desktop_large{height:60px;min-width:60px}.mfui-button_size-desktop_large .mfui-button__icon,.mfui-button_size-desktop_large .mfui-button__icon-arrow,.mfui-button_size-desktop_large.mfui-button_content-type_icon-text .mfui-button__icon{height:32px;width:32px}.mfui-button_size-desktop_extra-small.mfui-buttonhas-arrow{padding:0 8px}.mfui-button_size-desktop_extra-small.mfui-buttonhas-arrow .mfui-button__content{padding-left:12px}.mfui-button_size-desktop_large.mfui-buttonhas-arrow,.mfui-button_size-desktop_medium.mfui-buttonhas-arrow{padding:0 24px}.mfui-button_size-desktop_large.mfui-buttonhas-arrow .mfui-button__content,.mfui-button_size-desktop_medium.mfui-buttonhas-arrow .mfui-button__content,.mfui-button_size-desktop_small.mfui-buttonhas-arrow .mfui-button__content{padding-left:16px}.mfui-button_type_text{padding:0}}@media screen and (min-width:1280px){.mfui-button_size-wide_extra-small{font-size:12px;height:24px;line-height:14px;min-width:24px;padding:0 16px}.mfui-button_size-wide_extra-small .mfui-button__icon,.mfui-button_size-wide_extra-small .mfui-button__icon-arrow,.mfui-button_size-wide_extra-small.mfui-button_content-type_icon-text .mfui-button__icon{height:20px;width:20px}.mfui-button_size-wide_extra-small.mfui-button_content-type_icon-text .mfui-button__icon{margin-right:2px}.mfui-button_size-wide_extra-small .mfui-button__icon-arrow{margin-left:0}.mfui-button_size-wide_small{height:40px;min-width:40px;padding:0 24px}.mfui-button_size-wide_small .mfui-button__icon,.mfui-button_size-wide_small .mfui-button__icon-arrow{height:20px;width:20px}.mfui-button_size-wide_small.mfui-button_content-type_icon-text .mfui-button__icon{height:32px;width:32px}.mfui-button_size-wide_medium{height:52px;min-width:52px}.mfui-button_size-wide_medium .mfui-button__icon,.mfui-button_size-wide_medium .mfui-button__icon-arrow,.mfui-button_size-wide_medium.mfui-button_content-type_icon-text .mfui-button__icon{height:32px;width:32px}.mfui-button_size-wide_large{height:60px;min-width:60px}.mfui-button_size-wide_large .mfui-button__icon,.mfui-button_size-wide_large .mfui-button__icon-arrow,.mfui-button_size-wide_large.mfui-button_content-type_icon-text .mfui-button__icon{height:32px;width:32px}.mfui-button_size-wide_extra-small.mfui-buttonhas-arrow{padding:0 8px}.mfui-button_size-wide_extra-small.mfui-buttonhas-arrow .mfui-button__content{padding-left:12px}.mfui-button_size-wide_large.mfui-buttonhas-arrow,.mfui-button_size-wide_medium.mfui-buttonhas-arrow{padding:0 24px}.mfui-button_size-wide_large.mfui-buttonhas-arrow .mfui-button__content,.mfui-button_size-wide_medium.mfui-buttonhas-arrow .mfui-button__content,.mfui-button_size-wide_small.mfui-buttonhas-arrow .mfui-button__content{padding-left:16px}.mfui-button_type_text{padding:0}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-button_size-tablet_extra-small{font-size:12px;height:24px;line-height:14px;min-width:24px;padding:0 16px}.mfui-button_size-tablet_extra-small .mfui-button__icon,.mfui-button_size-tablet_extra-small .mfui-button__icon-arrow,.mfui-button_size-tablet_extra-small.mfui-button_content-type_icon-text .mfui-button__icon{height:20px;width:20px}.mfui-button_size-tablet_extra-small.mfui-button_content-type_icon-text .mfui-button__icon{margin-right:2px}.mfui-button_size-tablet_extra-small .mfui-button__icon-arrow{margin-left:0}.mfui-button_size-tablet_small{height:40px;min-width:40px;padding:0 24px}.mfui-button_size-tablet_small .mfui-button__icon,.mfui-button_size-tablet_small .mfui-button__icon-arrow{height:20px;width:20px}.mfui-button_size-tablet_small.mfui-button_content-type_icon-text .mfui-button__icon{height:32px;width:32px}.mfui-button_size-tablet_medium{height:52px;min-width:52px}.mfui-button_size-tablet_medium .mfui-button__icon,.mfui-button_size-tablet_medium .mfui-button__icon-arrow,.mfui-button_size-tablet_medium.mfui-button_content-type_icon-text .mfui-button__icon{height:32px;width:32px}.mfui-button_size-tablet_large{height:60px;min-width:60px}.mfui-button_size-tablet_large .mfui-button__icon,.mfui-button_size-tablet_large .mfui-button__icon-arrow,.mfui-button_size-tablet_large.mfui-button_content-type_icon-text .mfui-button__icon{height:32px;width:32px}.mfui-button_size-tablet_extra-small.mfui-buttonhas-arrow{padding:0 8px}.mfui-button_size-tablet_extra-small.mfui-buttonhas-arrow .mfui-button__content{padding-left:12px}.mfui-button_size-tablet_large.mfui-buttonhas-arrow,.mfui-button_size-tablet_medium.mfui-buttonhas-arrow{padding:0 24px}.mfui-button_size-tablet_large.mfui-buttonhas-arrow .mfui-button__content,.mfui-button_size-tablet_medium.mfui-buttonhas-arrow .mfui-button__content,.mfui-button_size-tablet_small.mfui-buttonhas-arrow .mfui-button__content{padding-left:16px}.mfui-button_type_text{padding:0}}@media screen and (max-width:767px){.mfui-button_size-mobile_extra-small{font-size:12px;height:24px;line-height:14px;min-width:24px;padding:0 16px}.mfui-button_size-mobile_extra-small .mfui-button__icon,.mfui-button_size-mobile_extra-small .mfui-button__icon-arrow,.mfui-button_size-mobile_extra-small.mfui-button_content-type_icon-text .mfui-button__icon{height:20px;width:20px}.mfui-button_size-mobile_extra-small.mfui-button_content-type_icon-text .mfui-button__icon{margin-right:2px}.mfui-button_size-mobile_extra-small .mfui-button__icon-arrow{margin-left:0}.mfui-button_size-mobile_small{height:40px;min-width:40px;padding:0 24px}.mfui-button_size-mobile_small .mfui-button__icon,.mfui-button_size-mobile_small .mfui-button__icon-arrow{height:20px;width:20px}.mfui-button_size-mobile_small.mfui-button_content-type_icon-text .mfui-button__icon{height:32px;width:32px}.mfui-button_size-mobile_medium{height:52px;min-width:52px}.mfui-button_size-mobile_medium .mfui-button__icon,.mfui-button_size-mobile_medium .mfui-button__icon-arrow,.mfui-button_size-mobile_medium.mfui-button_content-type_icon-text .mfui-button__icon{height:32px;width:32px}.mfui-button_size-mobile_large{height:60px;min-width:60px}.mfui-button_size-mobile_large .mfui-button__icon,.mfui-button_size-mobile_large .mfui-button__icon-arrow,.mfui-button_size-mobile_large.mfui-button_content-type_icon-text .mfui-button__icon{height:32px;width:32px}.mfui-button_size-mobile_extra-small.mfui-buttonhas-arrow{padding:0 8px}.mfui-button_size-mobile_extra-small.mfui-buttonhas-arrow .mfui-button__content{padding-left:12px}.mfui-button_size-mobile_large.mfui-buttonhas-arrow,.mfui-button_size-mobile_medium.mfui-buttonhas-arrow{padding:0 24px}.mfui-button_size-mobile_large.mfui-buttonhas-arrow .mfui-button__content,.mfui-button_size-mobile_medium.mfui-buttonhas-arrow .mfui-button__content,.mfui-button_size-mobile_small.mfui-buttonhas-arrow .mfui-button__content{padding-left:16px}.mfui-button_type_text{padding:0}}.mfui-button:hover{text-decoration:none;-webkit-transition:background-color .3s,color .3s;transition:background-color .3s,color .3s}.mfui-button:hover svg{-webkit-transition:fill .3s;transition:fill .3s}.mfui-button_disabled{cursor:default}.mfui-button__inner{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-sizing:border-box;box-sizing:border-box;height:inherit;justify-content:center;vertical-align:top;width:100%}.mfui-button__text{margin-bottom:2px}.mfui-button__text_ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mfui-button__content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-button__content_ellipsis{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;width:inherit}.mfui-button__content_show-loader{visibility:hidden}.mfui-button__preloader{position:absolute}.mfui-button__icon-arrow{height:32px;margin-left:4px;width:32px}.mfui-button_content-type_icon{padding:0}.mfui-button_content-type_icon-text .mfui-button__icon,.mfui-button_content-type_icon-text:not(.mfui-button_type_text) .mfui-button__text{margin-right:4px}.mfui-button_type_text.mfui-button_theme_green{background-color:transparent;color:var(--brandGreen);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.mfui-button_type_text.mfui-button_theme_green svg{fill:var(--brandGreen)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_green:not(.mfui-button_loading):hover{color:var(--buttonHoverGreen)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_green:not(.mfui-button_loading):hover svg{fill:var(--buttonHoverGreen)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_green:not(.mfui-button_loading):active{color:var(--buttonDown)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_green:not(.mfui-button_loading):active svg{fill:var(--buttonDown)}.mfui-button_type_text.mfui-button_theme_purple{background-color:transparent;color:var(--brandPurple);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.mfui-button_type_text.mfui-button_theme_purple svg{fill:var(--brandPurple)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_purple:not(.mfui-button_loading):hover{color:var(--buttonHoverPurple)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_purple:not(.mfui-button_loading):hover svg{fill:var(--buttonHoverPurple)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_purple:not(.mfui-button_loading):active{color:var(--buttonDown)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_purple:not(.mfui-button_loading):active svg{fill:var(--buttonDown)}.mfui-button_type_text.mfui-button_theme_white{background-color:transparent;color:var(--stcWhite);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.mfui-button_type_text.mfui-button_theme_white svg{fill:var(--stcWhite)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_white:not(.mfui-button_loading):hover{color:var(--buttonHoverGrey)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_white:not(.mfui-button_loading):hover svg{fill:var(--buttonHoverGrey)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_white:not(.mfui-button_loading):active{color:var(--buttonDown)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_white:not(.mfui-button_loading):active svg{fill:var(--buttonDown)}.mfui-button_type_text.mfui-button_theme_black{background-color:transparent;color:var(--stcBlack);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.mfui-button_type_text.mfui-button_theme_black svg{fill:var(--stcBlack)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_black{--stcBlack7:#818181}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_black:not(.mfui-button_loading):hover{color:var(--stcBlack7)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_black:not(.mfui-button_loading):hover svg{fill:var(--stcBlack7)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_black:not(.mfui-button_loading):active{color:var(--buttonDown)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_black:not(.mfui-button_loading):active svg{fill:var(--buttonDown)}.mfui-button_type_text.mfui-button_theme_danger{background-color:transparent;color:var(--fury);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.mfui-button_type_text.mfui-button_theme_danger svg{fill:var(--fury)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_danger:not(.mfui-button_loading):hover{color:var(--fury80)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_danger:not(.mfui-button_loading):hover svg{fill:var(--fury80)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_danger:not(.mfui-button_loading):active{color:var(--buttonDown)}.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_danger:not(.mfui-button_loading):active svg{fill:var(--buttonDown)}.mfui-button_type_primary.mfui-button_theme_green{background-color:var(--brandGreen);color:var(--stcWhite)}.mfui-button_type_primary.mfui-button_theme_green svg{fill:var(--stcWhite)}.mfui-button_no-touch.mfui-button_type_primary.mfui-button_theme_green:not(.mfui-button_loading):hover{background-color:var(--buttonHoverGreen)}.mfui-button_no-touch.mfui-button_type_primary.mfui-button_theme_green:not(.mfui-button_loading):active{background-color:var(--buttonDown)}.mfui-button_type_primary.mfui-button_theme_green-soft{background-color:var(--brandGreen20);border:1px solid rgba(0,185,86,.2);color:var(--brandGreen)}.mfui-button_type_primary.mfui-button_theme_green-soft svg{fill:var(--brandGreen)}.mfui-button_no-touch.mfui-button_type_primary.mfui-button_theme_green-soft:not(.mfui-button_loading):hover{background-color:var(--buttonHoverGreenSoft)}.mfui-button_no-touch.mfui-button_type_primary.mfui-button_theme_green-soft:not(.mfui-button_loading):active{background-color:var(--buttonDown);color:var(--stcWhite)}.mfui-button_no-touch.mfui-button_type_primary.mfui-button_theme_green-soft:not(.mfui-button_loading):active svg{fill:var(--stcWhite)}.mfui-button_type_primary.mfui-button_theme_purple{background-color:var(--brandPurple);color:var(--stcWhite)}.mfui-button_type_primary.mfui-button_theme_purple svg{fill:var(--stcWhite)}.mfui-button_no-touch.mfui-button_type_primary.mfui-button_theme_purple:not(.mfui-button_loading):hover{background-color:var(--buttonHoverPurple)}.mfui-button_no-touch.mfui-button_type_primary.mfui-button_theme_purple:not(.mfui-button_loading):active{background-color:var(--buttonDown)}.mfui-button_type_primary.mfui-button_theme_purple-soft{background-color:var(--brandPurple20);border:1px solid rgba(115,25,130,.2);color:var(--brandPurple)}.mfui-button_type_primary.mfui-button_theme_purple-soft svg{fill:var(--brandPurple)}.mfui-button_no-touch.mfui-button_type_primary.mfui-button_theme_purple-soft:not(.mfui-button_loading):hover{background-color:var(--buttonHoverPurpleSoft)}.mfui-button_no-touch.mfui-button_type_primary.mfui-button_theme_purple-soft:not(.mfui-button_loading):active{background-color:var(--buttonDown);color:var(--stcWhite)}.mfui-button_no-touch.mfui-button_type_primary.mfui-button_theme_purple-soft:not(.mfui-button_loading):active svg{fill:var(--stcWhite)}.mfui-button_type_primary.mfui-button_theme_white{background-color:var(--stcWhite);color:var(--stcBlack)}.mfui-button_type_primary.mfui-button_theme_white svg{fill:var(--stcBlack)}.mfui-button_no-touch.mfui-button_type_primary.mfui-button_theme_white:not(.mfui-button_loading):hover{background-color:var(--buttonHoverGrey);color:var(--stcBlack)}.mfui-button_no-touch.mfui-button_type_primary.mfui-button_theme_white:not(.mfui-button_loading):hover svg{fill:var(--stcBlack)}.mfui-button_no-touch.mfui-button_type_primary.mfui-button_theme_white:not(.mfui-button_loading):active{background-color:var(--buttonDown);color:var(--stcWhite)}.mfui-button_no-touch.mfui-button_type_primary.mfui-button_theme_white:not(.mfui-button_loading):active svg{fill:var(--stcWhite)}.mfui-button_type_outline.mfui-button_theme_green{background-color:transparent;border:1px solid var(--brandGreen);color:var(--brandGreen)}.mfui-button_type_outline.mfui-button_theme_green svg{fill:var(--brandGreen)}.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_green{--brandGreen7:rgba(0,185,86,.07);--brandGreen14:rgba(0,185,86,.14)}.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_green:not(.mfui-button_loading):hover{background-color:var(--brandGreen7)}.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_green:not(.mfui-button_loading):active{background-color:var(--brandGreen14)}.mfui-button_type_outline.mfui-button_theme_green-soft{background-color:transparent;color:var(--brandGreen)}.mfui-button_type_outline.mfui-button_theme_green-soft svg{fill:var(--brandGreen)}.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_green-soft{--brandGreen7:rgba(0,185,86,.07);--brandGreen14:rgba(0,185,86,.14)}.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_green-soft:not(.mfui-button_loading):hover{background-color:var(--brandGreen7)}.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_green-soft:not(.mfui-button_loading):active{background-color:var(--brandGreen14)}.mfui-button_type_outline.mfui-button_theme_purple{background-color:transparent;border:1px solid var(--brandPurple);color:var(--brandPurple)}.mfui-button_type_outline.mfui-button_theme_purple svg{fill:var(--brandPurple)}.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_purple{--brandPurple7:rgba(115,25,130,.07);--brandPurple14:rgba(115,25,130,.14)}.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_purple:not(.mfui-button_loading):hover{background-color:var(--brandPurple7)}.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_purple:not(.mfui-button_loading):active{background-color:var(--brandPurple14)}.mfui-button_type_outline.mfui-button_theme_white{background-color:transparent;border:1px solid var(--stcWhite);color:var(--stcWhite)}.mfui-button_type_outline.mfui-button_theme_white svg{fill:var(--stcWhite)}.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_white{--stcWhite7:hsla(0,0%,100%,.07);--stcWhite14:hsla(0,0%,100%,.14)}.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_white:not(.mfui-button_loading):hover{background-color:var(--stcWhite7)}.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_white:not(.mfui-button_loading):active{background-color:var(--stcWhite14)}.mfui-button_type_outline.mfui-button_theme_black{background-color:transparent;border:1px solid var(--stcBlack);color:var(--stcBlack)}.mfui-button_type_outline.mfui-button_theme_black svg{fill:var(--stcBlack)}.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_black{--stcBlack7:rgba(51,51,51,.07);--stcBlack14:rgba(51,51,51,.14)}.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_black:not(.mfui-button_loading):hover{background-color:var(--stcBlack7)}.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_black:not(.mfui-button_loading):active{background-color:var(--stcBlack14)}.mfui-button_full-width{display:block;width:100%}@media screen and (max-width:767px){.mfui-button_full-width-mobile{display:block;width:100%}}.mfui-button.mfui-button_no-touch.mfui-button_type_primary.mfui-button_disabled,.mfui-button.mfui-button_no-touch.mfui-button_type_primary.mfui-button_disabled:active,.mfui-button.mfui-button_no-touch.mfui-button_type_primary.mfui-button_disabled:hover,.mfui-button.mfui-button_type_primary.mfui-button_disabled{background-color:var(--spbSky1);border:1px solid var(--spbSky2);color:var(--spbSky3)}.mfui-button.mfui-button_no-touch.mfui-button_type_primary.mfui-button_disabled svg,.mfui-button.mfui-button_no-touch.mfui-button_type_primary.mfui-button_disabled:active svg,.mfui-button.mfui-button_no-touch.mfui-button_type_primary.mfui-button_disabled:hover svg,.mfui-button.mfui-button_type_primary.mfui-button_disabled svg{fill:var(--spbSky3)}.mfui-button.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_white.mfui-button_disabled,.mfui-button.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_white.mfui-button_disabled:active,.mfui-button.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_white.mfui-button_disabled:hover,.mfui-button.mfui-button_type_outline.mfui-button_theme_white.mfui-button_disabled{background-color:transparent;border:1px solid var(--stcWhite);color:var(--stcWhite50)}.mfui-button.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_white.mfui-button_disabled svg,.mfui-button.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_white.mfui-button_disabled:active svg,.mfui-button.mfui-button_no-touch.mfui-button_type_outline.mfui-button_theme_white.mfui-button_disabled:hover svg,.mfui-button.mfui-button_type_outline.mfui-button_theme_white.mfui-button_disabled svg{fill:var(--stcWhite50)}.mfui-button.mfui-button_no-touch.mfui-button_type_outline.mfui-button_disabled,.mfui-button.mfui-button_no-touch.mfui-button_type_outline.mfui-button_disabled:active,.mfui-button.mfui-button_no-touch.mfui-button_type_outline.mfui-button_disabled:hover,.mfui-button.mfui-button_type_outline.mfui-button_disabled{background-color:transparent;border:1px solid var(--spbSky2);color:var(--spbSky3)}.mfui-button.mfui-button_no-touch.mfui-button_type_outline.mfui-button_disabled svg,.mfui-button.mfui-button_no-touch.mfui-button_type_outline.mfui-button_disabled:active svg,.mfui-button.mfui-button_no-touch.mfui-button_type_outline.mfui-button_disabled:hover svg,.mfui-button.mfui-button_type_outline.mfui-button_disabled svg{fill:var(--spbSky3)}.mfui-button.mfui-button_no-touch.mfui-button_type_text.mfui-button_disabled,.mfui-button.mfui-button_no-touch.mfui-button_type_text.mfui-button_disabled:active,.mfui-button.mfui-button_no-touch.mfui-button_type_text.mfui-button_disabled:hover,.mfui-button.mfui-button_type_text.mfui-button_disabled{color:var(--spbSky3)}.mfui-button.mfui-button_no-touch.mfui-button_type_text.mfui-button_disabled svg,.mfui-button.mfui-button_no-touch.mfui-button_type_text.mfui-button_disabled:active svg,.mfui-button.mfui-button_no-touch.mfui-button_type_text.mfui-button_disabled:hover svg,.mfui-button.mfui-button_type_text.mfui-button_disabled svg{fill:var(--spbSky3)}.mfui-button.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_white.mfui-button_disabled,.mfui-button.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_white.mfui-button_disabled:active,.mfui-button.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_white.mfui-button_disabled:hover,.mfui-button.mfui-button_type_text.mfui-button_theme_white.mfui-button_disabled{background-color:transparent;color:var(--stcWhite)}.mfui-button.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_white.mfui-button_disabled svg,.mfui-button.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_white.mfui-button_disabled:active svg,.mfui-button.mfui-button_no-touch.mfui-button_type_text.mfui-button_theme_white.mfui-button_disabled:hover svg,.mfui-button.mfui-button_type_text.mfui-button_theme_white.mfui-button_disabled svg{fill:var(--stcWhite)}
@@ -1,93 +0,0 @@
1
- import * as React from 'react';
2
- import './Button.scss';
3
- export declare const ButtonTypes: {
4
- readonly PRIMARY: "primary";
5
- readonly OUTLINE: "outline";
6
- readonly TEXT: "text";
7
- };
8
- type ButtonTypesType = (typeof ButtonTypes)[keyof typeof ButtonTypes];
9
- export declare const ButtonThemes: {
10
- readonly GREEN: "green";
11
- readonly GREEN_SOFT: "green-soft";
12
- readonly PURPLE: "purple";
13
- readonly PURPLE_SOFT: "purple-soft";
14
- readonly WHITE: "white";
15
- readonly BLACK: "black";
16
- readonly DANGER: "danger";
17
- };
18
- type ButtonThemesType = (typeof ButtonThemes)[keyof typeof ButtonThemes];
19
- export declare const ButtonSizes: {
20
- readonly EXTRA_SMALL: "extra-small";
21
- readonly SMALL: "small";
22
- readonly MEDIUM: "medium";
23
- readonly LARGE: "large";
24
- };
25
- type ButtonSizesType = (typeof ButtonSizes)[keyof typeof ButtonSizes];
26
- type ButtonLinkCommonAttributes = Pick<React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>, keyof (React.ButtonHTMLAttributes<HTMLButtonElement> | React.AnchorHTMLAttributes<HTMLAnchorElement>)>;
27
- export interface IButtonProps extends Omit<ButtonLinkCommonAttributes, 'className' | 'type'> {
28
- /** Дополнительный класс корневого элемента */
29
- className?: string | string[];
30
- /** Дополнительные классы для внутренних элементов */
31
- classes?: {
32
- /** Button class */
33
- root?: string;
34
- /** Content class */
35
- content?: string;
36
- /** Inner container class */
37
- inner?: string;
38
- };
39
- /** Дополнительные data атрибуты к внутренним элементам */
40
- dataAttrs?: {
41
- root?: Record<string, string>;
42
- content?: Record<string, string>;
43
- inner?: Record<string, string>;
44
- loader?: Record<string, string>;
45
- text?: Record<string, string>;
46
- arrow?: Record<string, string>;
47
- };
48
- /** Тема компонента */
49
- theme?: ButtonThemesType;
50
- /** Тип компонента */
51
- type?: ButtonTypesType;
52
- /** Ссылка */
53
- href?: string;
54
- /** Задает атрибут download для тега <a> */
55
- download?: boolean;
56
- /** Target - свойство тега <a> */
57
- target?: '_self' | '_blank' | '_parent' | '_top';
58
- /** Rel - атрибут тега <a> */
59
- rel?: string;
60
- /** Поведение кнопки */
61
- actionType?: 'button' | 'reset' | 'submit';
62
- /** Размер на всех разрешениях экрана */
63
- sizeAll?: ButtonSizesType;
64
- /** Размер на разрешении экрана 1280+ */
65
- sizeWide?: ButtonSizesType;
66
- /** Размер на разрешении экрана 1024+ */
67
- sizeDesktop?: ButtonSizesType;
68
- /** Размер на разрешении экрана 768-1023 */
69
- sizeTablet?: ButtonSizesType;
70
- /** Размер на разрешении экрана 0-767 */
71
- sizeMobile?: ButtonSizesType;
72
- /** Растянуть на полную ширину контейнера */
73
- fullWidth?: boolean;
74
- /** Растянуть на полную ширину контейнера на разрешении экрана 0-767 */
75
- fullWidthMobile?: boolean;
76
- /** Показать загрузку */
77
- showLoader?: boolean;
78
- /** Показать стелку */
79
- showArrow?: boolean;
80
- /** Иконка */
81
- icon?: JSX.Element;
82
- /** Отключение кнопки */
83
- disabled?: boolean;
84
- /** Ссылка на элемент */
85
- buttonRef?: React.Ref<HTMLButtonElement | HTMLAnchorElement>;
86
- /** Обрезать текст при недостаточной ширине и добавлять многоточие */
87
- ellipsis?: boolean;
88
- children?: React.ReactNode;
89
- /** Обработчик клика по кнопке */
90
- onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
91
- }
92
- declare const Button: React.FC<IButtonProps>;
93
- export default Button;